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] Creating a asyncapi specification file form examples with different name fails to open it in studio. #1648

Open
2 tasks done
neoandmatrix opened this issue Feb 4, 2025 · 4 comments · May be fixed by #1651
Open
2 tasks done
Labels
bug Something isn't working

Comments

@neoandmatrix
Copy link
Contributor

Describe the bug.

When using asyncapi new -e any-example to generate a new asyncapi specification file based on an example file after providing a different file name than the example file and selecting yes to open it in studio cli fails to do it.

Example

using anyof-asyncapi.yml example file and providing it a different name as different than the example file name and selecting yes to open it in studio we get SpecificationFileError: File differnt does not exist. even after the file has been created.

but if the same file name is provided the studio opens perfectly.

Expected behavior

Studio should open with the custom file name given by user.

Screenshots

Image

Image

How to Reproduce

  1. Create an new file using asyncapi new -e anyof-asyncapi.yml
  2. Give it a different file name than the example.
  3. Select yes when asked to open in studio.
  4. Gives Specification Error

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

Yes I am willing to submit a PR!

@neoandmatrix neoandmatrix added the bug Something isn't working label Feb 4, 2025
@github-project-automation github-project-automation bot moved this to To Triage in CLI - Kanban Feb 4, 2025
Copy link
Contributor

github-actions bot commented Feb 4, 2025

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.

@neoandmatrix
Copy link
Contributor Author

@AayushSaini101 can you please have a look at it. If approved i would like to work on it.
Thanks.

@AayushSaini101
Copy link
Collaborator

@AayushSaini101 can you please have a look at it. If approved i would like to work on it. Thanks.

Seems valid for me @neoandmatrix cc: @Souvikns

@neoandmatrix
Copy link
Contributor Author

@AayushSaini101 can you please have a look at it. If approved i would like to work on it. Thanks.

Seems valid for me @neoandmatrix cc: @Souvikns

Thanks, working on it now.

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
Status: To Triage
Development

Successfully merging a pull request may close this issue.

2 participants