-
-
Notifications
You must be signed in to change notification settings - Fork 38
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
Error: TypeError: The "path" argument must be of type string. Received undefined #146
Comments
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. |
Works well with: Version: 1.72.2
Commit: d045a5eda657f4d7b676dedbfa7aab8207f8a075
Date: 2022-10-12T22:16:30.254Z (1 mo ago)
Electron: 19.0.17
Chromium: 102.0.5005.167
Node.js: 16.14.2
V8: 10.2.154.15-electron.0
OS: Darwin x64 20.6.0
Sandboxed: No now I made an upgrade Version: 1.73.1
Commit: 6261075646f055b99068d3688932416f2346dd3b
Date: 2022-11-09T02:08:38.961Z (3 wks ago)
Electron: 19.0.17
Chromium: 102.0.5005.167
Node.js: 16.14.2
V8: 10.2.154.15-electron.0
OS: Darwin x64 20.6.0
Sandboxed: No The only different that I can see between our setup os OS. I'm on Mac. other extensions that support preview work for you? like markdown previewer for example? |
There is for now just one You do not see these under |
I'm running into this same issue with plugin version 0.4.0: foo.yamlasyncapi: 2.5.0 id: urn:com.asyncapi.examples.user info: title: User signed-up event version: 0.1.1 channels: user/signedup: publish: message: payload: type: object properties: fullName: type: string email: type: string format: email age: type: integer minimum: 18The However, if I:
...the Dev Tools Console shows:
Help? |
I don't have a Mac to test this, but does the editor menu (on the top right corner of you file editor) work for you? |
Hi @leigh-johnson @philCryoport can you try (unziping and) installing this package and test if it fixes this issue (to install de vsix, from inside vscode -> right click on the file and select |
Hi @ivangsa I'm a little wary of installing a binary file from an untrusted source (please don't take offense, this is a standard precaution). I'll try building your PR and then installing it from there |
@leigh-johnson I pulled your PR and compiled it. No error dialog message...however here's what DevTools showed when I:
...in comparison, when I do Command Palette and just pick the YAML file from the Open File dialog, then I only get:
|
I don't see the error locally and I don't know this url @philCryoport I suspect this error is unrelated to the asyncapi preview... |
Anyhoo -- the fix you put into the code seemed to work. When you get a moment would you please publish a new release? Thanks! |
🎉 This issue has been resolved in version 0.4.1 🎉 The release is available on GitHub release Your semantic-release bot 📦🚀 |
The marketplace still has version 0.4.0. Will you push 0.4.1 to the marketplace please? |
This is odd. GitHub action says that it was published:
And in the same run it was successfully published to https://open-vsx.org/extension/asyncapi/asyncapi-preview 🤷♂️ And... https://marketplace.visualstudio.com/items?itemName=asyncapi.asyncapi-preview says it was actually updated on 19.12 - which means the day of We need to investigate what this inconsistency happened there Related CI runs https://github.com/asyncapi/vs-asyncapi-preview/actions/runs/3732414616/jobs/6331836655 |
I honestly do not know why as admin I see latest is @ivangsa have you even seen stuff like that? |
in marketplace version 0.4.0 shows publish date 19/12/22 which is odd I'm guessing that this may be an error in the marketplace.. I downloaded the file and it looks like actually the 0.4.0 version |
maybe we can redeploy now, and investigate this later... it looks to me like issue on the marketplace... |
Ok, lets do it. PR opened #152 |
@ivangsa you were right, it was some temporary issue on marketplace side. New release was successful. @fourlincoln10 |
Thanks! I see it in the marketplace now. Much appreciated.Sent from my iPhoneOn Jan 13, 2023, at 1:02 AM, Lukasz Gornicki ***@***.***> wrote:
@ivangsa you were right, it was some temporary issue on marketplace side. New release was successful.
@fourlincoln10 0.4.2 is out in the wild
—Reply to this email directly, view it on GitHub, or unsubscribe.You are receiving this because you were mentioned.Message ID: ***@***.***>
|
Describe the bug
👋 Hey there, thanks for all the hard work on this extension! I'm seeing the following error when I attempt to open a preview using command+shift+p.
VS Code version:
How to Reproduce
Open an async API schema
Press control+shift+p or command+shift-p to open commands
Select
Preview AsyncAPI
commandI'm getting prompted to open an AsyncAPI file, even though I already have one open in VS Code. I verified my schema is valid via https://studio.asyncapi.com/

After selecting the Async API schema again (even though it's already open in my editor), I'm seeing the following error:

In VSCode's
Output
underLog (Extension Host)
I see the following error:Maybe the extension is unable to find an executable named
asyncapi
? Unsure how to proceed or how this should be sandboxed. Thanks for looking into this! 🙇♀️Expected behavior
File preview opens in a new panel.
The text was updated successfully, but these errors were encountered: