zoellner / openapi-preview

OpenAPI Preview Extension for VS Code
MIT License
7 stars 3 forks source link

Error starting the preview #8

Open teodorlu opened 2 years ago

teodorlu commented 2 years ago

Hey, thanks for a great plugin! It's really helpful to see what I'm doing while working on an OpenAPI speficiation.

I recently reinstalled my OS, and I'm getting this error:

image

I suspect that it's related to how I manage my Node installation. I'm using asdf-vm to provide Node, which takes prescedence over my system-installed node.

Any ideas on how to make it work?

I'd be happy to provide an explicit path to Node in the settings.

$ which node
/home/teodorlu/.asdf/shims/node
$ node --version
v17.3.0
/usr/bin/node
$ /usr/bin/node --version
v17.3.0
$ where node
/home/teodorlu/.asdf/shims/node
/usr/bin/node
/bin/node
$ head /home/teodorlu/.asdf/shims/node
#!/usr/bin/env bash
# asdf-plugin: nodejs 14.18.2
# asdf-plugin: nodejs 16.7.0
# asdf-plugin: nodejs 10.16.0
# asdf-plugin: nodejs 12.22.8
# asdf-plugin: nodejs 16.13.1
# asdf-plugin: nodejs 14.13.0
exec /opt/asdf-vm/bin/asdf exec "node" "$@"
userAugustos commented 2 years ago

Same here, did u find a solution?

teodorlu commented 2 years ago

Nope, sorry. I found a plugin for Intellij that worked 🤷

zoellner commented 2 years ago

I'd need more information about the system in order to help debug - but if it's not macOS I can't really help anyways since that's the only one I have access to

teodorlu commented 2 years ago

Aww, this is on Linux, unfortunately. I was guessing ASDF was to blame, but you might be right.

Happy to provide more debug information if that's useful.

Note: ASDF supports MacOS.