microsoft / vscode

Visual Studio Code
https://code.visualstudio.com
MIT License
163.06k stars 28.8k forks source link

"Cannot open resource ..." error when using snap package #139442

Open inorick opened 2 years ago

inorick commented 2 years ago

Issue Type: Bug

When opening a .wlnb file with the non-snap version of vscode, the file is correctly opened with the wolfram-language-notebook extension [1]. With the snap version, the following error is displayed:

"Cannot open resource with notebook editor type 'wolfram-language-notebook', please check if you have the right extension installed or enabled."

This happens with both on the stable and the insider channel. As this error only occurs with the snap version, I do no think it is an extension issue.

[1] https://marketplace.visualstudio.com/items?itemName=njpipeorgan.wolfram-language-notebook

VS Code version: Code - Insiders 1.64.0-insider (d12df34e31b4a018735d312a8947d79331132368, 2021-12-17T05:14:39.048Z) OS version: Linux x64 5.15.8-200.fc35.x86_64 snap Restricted Mode: No

System Info |Item|Value| |---|---| |CPUs|Intel(R) Core(TM) i5-8259U CPU @ 2.30GHz (8 x 2300)| |GPU Status|2d_canvas: unavailable_software
gpu_compositing: disabled_software
multiple_raster_threads: enabled_on
oop_rasterization: disabled_off
opengl: disabled_off
rasterization: disabled_software
skia_renderer: enabled_on
video_decode: disabled_software
vulkan: disabled_off
webgl: unavailable_software
webgl2: unavailable_software| |Load (avg)|1, 1, 1| |Memory (System)|7.62GB (1.24GB free)| |Process Argv|--no-sandbox --crash-reporter-id c544c754-76ab-4582-915e-657dcd6185d0| |Screen Reader|no| |VM|0%| |DESKTOP_SESSION|gnome| |XDG_CURRENT_DESKTOP|GNOME| |XDG_SESSION_DESKTOP|gnome| |XDG_SESSION_TYPE|wayland|
Extensions (1) Extension|Author (truncated)|Version ---|---|--- wolfram-language-notebook|njp|0.0.6
A/B Experiments ``` vsliv695:30137379 vsins829:30139715 vsliv368cf:30146710 vsreu685:30147344 python383:30185418 vspor879:30202332 vspor708:30202333 vspor363:30204092 pythontb:30258533 pythonvspyt551cf:30291413 pythonptprofiler:30281269 vsdfh931:30280409 vshan820:30294714 pythondataviewer:30285072 vscod805cf:30301675 pythonvspyt200:30323110 bridge0708:30335490 bridge0723:30353136 vsaa593:30376534 pythonvs932:30404738 vscop804cf:30404767 vs360cf:30404996 vsclayoutctrt:30405800 py55gd98:30408621 vscexrecpromp3t3:30407760 azactmsalcf:30409288 ```
giammi56 commented 2 years ago

Same problem on:

Version: 1.67.2 Commit: c3511e6c69bb39013c4a4b7b9566ec1ca73fc4d5 Date: 2022-05-17T18:23:40.286Z Electron: 17.4.1 Chromium: 98.0.4758.141 Node.js: 16.13.0 V8: 9.8.177.13-electron.0 OS: Linux x64 5.13.0-44-generic snap

and

Version: 1.68.0-insider Commit: 6428d0fc7dae5801cdaf2d160ac39a3dfc8f0c06 Date: 2022-05-27T05:21:40.934Z Electron: 17.4.4 Chromium: 98.0.4758.141 Node.js: 16.13.0 V8: 9.8.177.13-electron.0 OS: Linux x64 5.13.0-44-generic

but it works on .deb !