wasmerio / vscode-wasm

WebAssembly extension for VSCode
https://marketplace.visualstudio.com/items?itemName=dtsvet.vscode-wasm
MIT License
129 stars 19 forks source link

`Show WebAssembly` feature not working - `ENOPRO` #71

Open AjaniBilby opened 9 months ago

AjaniBilby commented 9 months ago

When trying to right-click Show WebAssembly on a .wasm file I get the following error:

The editor could not be opened due to an unexpected error: ENOPRO: No file system provider found for resource 'wasm-preview:/c%3A/Users/REDACTED/out.wasm'

This error message implies that I haven't registered some wasm-preview application to be able to open the file, but I can find no documentation about such a thing. Also in the settings for the extension there is a mention of a wai-language-server which when I look into the extension's files, only leads no a non-compiled single file rust project.

I assume this is probably just a configuration issue, but I can't find any information on how I am supposed to configure this plugin, nor any mention of a standard wasm LSP which I could install and would hopefully just work.


Extra likely unnecessary Context
When I use the right-click menus to re-save it as a .wat then back to a .wasm it still has the same issue, and also has no issue generating those variations suggesting there isn't any issue with the wasm file itself. Also for context here is the .wat version:

(module
  (type (;0;) (func (result i32)))
  (func (;0;) (type 0) (result i32)
    (local i32)
    i32.const 3
    local.set 0
    i32.const 0
    return
    unreachable))

So the extension does seem to be somewhat working

VSCode Version: 1.86.0
Plugin Version: 1.4.1