asyncapi / vs-asyncapi-preview

VSCode AsyncAPI Preview Extension
Apache License 2.0
41 stars 26 forks source link

Does not work on macOS #1

Closed seitbekir-seidametov-codeit closed 3 years ago

seitbekir-seidametov-codeit commented 3 years ago

Today I found this extension and that was inspiring due to exceptions, I already using Swagger Viewer. But unfortunately it works only on linux, which would be fine, but I use macOS mainly. The only thing I see when I open a viewer is black message:

Cannot GET /file//Users/.../asyncapi.yml

I've tried to play around, but did not find quick solution.

ivangsa commented 3 years ago

Hi @seitbekir-seidametov-codeit I don't have a macOS to test...

Maybe you can help me track this..

Can you try setting this config asyncapiPreview.previewInBrowser to true, so you can open preview in chrome Inside chrome devtools console try this javascript window.location.pathname.replace(/\/file\//g, '');

I'm guessing that in macOS is not doing the replacement of /file/ prefix

Thanks and sorry for the delay answering

nealdam commented 3 years ago

Using Arch Linux, it's also not doing the replacement of /file/ prefix Cannot GET /file//home/.../tabata.yaml

ivangsa commented 3 years ago

Hi @nealdam and @seitbekir-seidametov-codeit

I have uploaded version 0.0.3 to the marketplace which fixes this issue

Sorry for the delay fixing this