Closed Vinno97 closed 5 years ago
Hi,
Unfortunately I am not able to recreate the issue locally. So let's see if we can gather some more info.
OpenApi Designer: Preview in Side Panel
. I chose this command over the compile command since we know that it also fails and atleast prints an error message.1) Are you still able to recreate the issue?
2) If so, please document any errors or output again here, like you did before.
3) Do you have anything running on port 9005? If so, this could be interfering with the extension. You can change the default port the extension uses by changing the openApiDesigner.defaultPort
setting.
4) It looks like you may be on a mac or *nix system based on the paths in your trace. I will try to get my hands on a similar OS and see if I can recreate the issue there.
Hi, thank you for you response. I was not able to get to the same machine as I originally got the error on, but I was able to reproduce it on another one as well.
Regarding your questions:
Error: Running the contributed command:'openapidesigner.runDesignerInSideView' failed.
at e._executeContributedCommand (/usr/share/code/resources/app/out/vs/workbench/node/extensionHostProcess.js:726:802)
at e.$executeContributedCommand (/usr/share/code/resources/app/out/vs/workbench/node/extensionHostProcess.js:727:212)
at e._doInvokeHandler (/usr/share/code/resources/app/out/vs/workbench/node/extensionHostProcess.js:681:309)
at e._invokeHandler (/usr/share/code/resources/app/out/vs/workbench/node/extensionHostProcess.js:681:27)
at e._receiveRequest (/usr/share/code/resources/app/out/vs/workbench/node/extensionHostProcess.js:679:802)
at e._receiveOneMessage (/usr/share/code/resources/app/out/vs/workbench/node/extensionHostProcess.js:678:993)
at /usr/share/code/resources/app/out/vs/workbench/node/extensionHostProcess.js:677:791
at /usr/share/code/resources/app/out/vs/workbench/node/extensionHostProcess.js:98:597
at e.fire (/usr/share/code/resources/app/out/vs/workbench/node/extensionHostProcess.js:99:917)
at a (/usr/share/code/resources/app/out/vs/workbench/node/extensionHostProcess.js:164:787)
at Socket._socketDataListener (/usr/share/code/resources/app/out/vs/workbench/node/extensionHostProcess.js:164:1006)
at emitOne (events.js:116:13)
at Socket.emit (events.js:211:7)
at addChunk (_stream_readable.js:263:12)
at readableAddChunk (_stream_readable.js:250:11)
at Socket.Readable.push (_stream_readable.js:208:10)
at Pipe.onread (net.js:594:20)
Facing the same issue on Ubuntu 18.04
I also had problems with the extension. I'm not completely sure if this is related, but maybe it helps investigating the issue.
I've started vscode in ~/Code/my-project
and tried all preview options. All of them failed. I noticed an error message in the extension host protocol saying ~/code/my-project does not exist
(so the folder Code was lowercase). I then moved the project to another directory with everything lowercase and the extension seemed to work correct.
I am running on elementary OS Juno.
@thccorni & @phani1kumar & @Vinno97
Created a PR with the fixes suggested by @thccorni. I checked in a compiled extension with the fix in it which you can find here.
If someone would be able to download that version of the extension and install it to verify the issue is resolved then I will merge it and release the fix.
Thank you @philosowaffle, I will try it as soon as possible
Hi, I have tested it on a new installation using the method described in https://github.com/philosowaffle/vs-openapi-designer/issues/19#issuecomment-425451969, with both the version from the marketplace and your new .vsix
. The first didn't work with (as was expected), but your new version worked perfectly!
The fix has been released under version 0.2.1 and should be available in the Marketplace shortly.
Hi,
I cannot seem to get the extension to work and though I wish I could give you a detailed description of the error, I cannot find much info about what exactly goes wrong.
The
Compile Schema
option does not show any error, but the preview options show an error message and log the following error toLog(Extension Host)
:I am using the OpenAPI 3.0.0 spec and my files have no errors according to
swagger-cli validate
.At first I tried using the extension on a
.yaml
file with references to other files. When this did not work, I also tried to run the extension on a.json
file compiled by theswagger-cli
. This also did not work.I am willing to provide more info if necessary.