-
Notifications
You must be signed in to change notification settings - Fork 27.8k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Cannot open source files from within file manager (Thunar) #212125
Comments
This does not sound like a bug in VS Code but an issue with your setup, but leaving this issue open to see if others hit it as well. |
What inclined me to think this could be a VS Code bug is that it appeared exactly after the last VS Code update. VS Code is my IDE and I use it every day. If there's something I can do to test which one is the case, I am more than willing to try. I could think of one test, which is not conclusive but seems to suggest the issue is related to VS Code: |
So you cannot reproduce when you install
|
I'm also experiencing the same issue with the Dolphin file manager after the last update, opening a file with the "Open file" dialog o dragging it to an opened Code window works fine. Code is installed through the snap package manager. These are the information displayed in the About dialog: Version: 1.89.0 |
Please downgrade and see if its not reproducible then: #212125 (comment) |
I can confirm that reverting Code with the "snap revert" command resolved the issue, the current installation details are the following: Version: 1.88.1 |
@majid4466 are you also on Snap? Does this reproduce when not using Snap but Deb? |
Yes, I have VS Code installed as a Snap package. I am hesitant to experiment with my development machine by uninstalling VS Code and testing the deb version. If I get the chance to install the deb version on another machine I will report the result here. |
Thanks |
But it would still be interesting to get at the verbose logs when it works vs when it does not work. |
I tried to reproduce the issue on another workstation and a virtual machine but the snap package 1.89.0 works fine. If I find some time today I will retry to upgrade Code again on the pc that presented the issue and let you know the result. |
Yeah I am not expecting a regression in VS Code but a setup/install issue. |
I attached the log generated by opening a file from file manager with both Code versions. |
Yeah, as expected, in version
And in
So on the way of opening from the finder to VS Code, the argument is either never passed or lost. |
Moving to Daniel and Deepak as this seems Snap install related, I doubt we changed something how we create the Snap file, but I am not sure either. |
I have the same issue on Gnome Nautilus, double click on the file in the file manager launches a new empty instance of VSCode. I'm using Arch and VSCode is installed through AUR. Version: 1.89.1 |
same for me |
Same problem with thunar file manager on ubuntu: Version: 1.89.1 Installed through the deb package from apt repo |
After downgrading to 1.89.0 the issue still exists: # downgrading code from 1.89.1-1715060508 to 1.89.0-1714530869
sudo apt install code=1.89.0-1714530869 First buggy version (.deb)Version: 1.89.0 A further downgrade to 1.88.1 fixes the problem: # downgrading code from 1.89.0-1714530869 to 1.88.1-1712771838
sudo apt install code=1.88.1-1712771838 Last working version (.deb)Version: 1.88.1 |
Type: Bug
After the most recent update when I double click source files (*.php, *.js, etc.) a new instance of VS code is spawned and nothing is opened, neither in the already open vs code instance nor in the new one.
Files could be opened by dropping them on VS code window and by using the explorer as well as using search results.
My dev box has Xubuntu 20.04 and the file manager I use is Thunar.
Here is the version information from the "About" dialog:
Version: 1.89.0
Commit: b58957e
Date: 2024-05-01T02:08:25.066Z
Electron: 28.2.8
ElectronBuildId: 27744544
Chromium: 120.0.6099.291
Node.js: 18.18.2
V8: 12.0.267.19-electron.0
OS: Linux x64 5.4.0-177-generic
VS Code version: Code 1.89.0 (b58957e, 2024-05-01T02:08:25.066Z)
OS version: Linux x64 5.4.0-177-generic
Modes:
System Info
canvas_oop_rasterization: disabled_off
direct_rendering_display_compositor: disabled_off_ok
gpu_compositing: enabled
multiple_raster_threads: enabled_on
opengl: enabled_on
rasterization: enabled
raw_draw: disabled_off_ok
skia_graphite: disabled_off
video_decode: enabled
video_encode: disabled_software
vulkan: disabled_off
webgl: enabled
webgl2: enabled
webgpu: disabled_off
Extensions (10)
(1 theme extensions excluded)
A/B Experiments
The text was updated successfully, but these errors were encountered: