Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[BUG] Cannot run the generator using the commands in the documentation #1322

Open
2 tasks done
Rokko11 opened this issue Dec 4, 2024 · 3 comments
Open
2 tasks done
Labels
bug Something isn't working

Comments

@Rokko11
Copy link

Rokko11 commented Dec 4, 2024

Describe the bug.

I get an error that I cannot use the code generator just like described in the documentation

Expected behavior

I expect that copy pasting commands from the documentation does work

Screenshots

I get the exception

Generator Error: This template is not compatible with the current version of the generator (1.17.25). This template is compatible with the following version range: >=2.0.0 <3.0.0.

Bildschirmfoto 2024-12-04 um 19 12 02

How to Reproduce

Locally installed

  1. Install newest version of @asyncapi/[email protected]
  2. Run
asyncapi generate fromTemplate https://bit.ly/asyncapi @asyncapi/html-template -o example

With Docker

  1. Verify that there is no old docker image of asyncapi
  2. Run
docker run --rm -it --user=root asyncapi/cli:latest generate fromTemplate https://bit.ly/asyncapi @asyncapi/html-template -o example

🥦 Browser

None

👀 Have you checked for similar open issues?

  • I checked and didn't find similar issue

🏢 Have you read the Contributing Guidelines?

Are you willing to work on this issue ?

No, someone else can work on it

@Rokko11 Rokko11 added the bug Something isn't working label Dec 4, 2024
Copy link
Contributor

github-actions bot commented Dec 4, 2024

Welcome to AsyncAPI. Thanks a lot for reporting your first issue. Please check out our contributors guide and the instructions about a basic recommended setup useful for opening a pull request.
Keep in mind there are also other channels you can use to interact with AsyncAPI community. For more details check out this issue.

@derberg
Copy link
Member

derberg commented Dec 11, 2024

@Rokko11 thanks so much for the issue. The problem is that latest HTML template is used in docs examples - but with latest one, in the AsyncAPI CLI the --use-new-generator must be added

best would be to fix docs by replacing @asyncapi/html-template with @asyncapi/[email protected] --use-new-generator

@Bharath-dev05
Copy link

Bharath-dev05 commented Dec 13, 2024

@derberg, I need small suggestion. that there are 25 matches in docs and also 4 matches in generator\apps\generator\lib\generator.js.
So, both as to be replaced or only in the docs,

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants