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] ver 3.0.0 unable to determine version of generator #697

Closed
2 tasks
TertiumOrganum1 opened this issue Oct 28, 2024 · 3 comments
Closed
2 tasks

[BUG] ver 3.0.0 unable to determine version of generator #697

TertiumOrganum1 opened this issue Oct 28, 2024 · 3 comments
Labels
bug Something isn't working

Comments

@TertiumOrganum1
Copy link

TertiumOrganum1 commented Oct 28, 2024

ver 3.0.0 unable to determine version of generator

When I try to generate docs I get:

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.

However, I have 2.8.0 generator installed:

$ sudo asyncapi --version
@asyncapi/cli/2.8.0 linux-x64 node-v20.13.1

Expected behavior

Should work

Screenshots

image

How to Reproduce

Using it as always:

sudo asyncapi generate fromTemplate asyncapi-cpp-router.yaml @asyncapi/[email protected] --param singleFile=true --output ./docs/cpp-router --force-write

🥦 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 ?

None

@TertiumOrganum1 TertiumOrganum1 added the bug Something isn't working label Oct 28, 2024
@TertiumOrganum1 TertiumOrganum1 changed the title [BUG] <description> [BUG] ver 3.0.0 unable to determine version of generator Oct 28, 2024
@TertiumOrganum1
Copy link
Author

TertiumOrganum1 commented Oct 28, 2024

Version 0.28.3 works just fine.
Strange thing that 2.3.14 work as well (none except 0.28.3 worked this spring).

Copy link
Member

derberg commented Oct 28, 2024

CLI is not generator. CLI is a mesh of multiple different projects, including generator - so CLI version os not what the console log talks about. Please have a look at https://github.com/asyncapi/html-template?tab=readme-ov-file#usage

@TertiumOrganum1
Copy link
Author

found out that you should use --use-new-generator flag. Worths mention in 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

No branches or pull requests

2 participants