Skip to content
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

opening folder issue #213442

Open
viral-vadera opened this issue May 25, 2024 · 5 comments
Open

opening folder issue #213442

viral-vadera opened this issue May 25, 2024 · 5 comments
Assignees
Labels
info-needed Issue requires more information from poster

Comments

@viral-vadera
Copy link

Type: Bug

while opening a folder on file browser in ubuntu desktop , the selected folder opens when clicked on open button but if the user double clicks on folder the whole visual studio ide quits.

VS Code version: Code 1.89.1 (dc96b83, 2024-05-07T05:16:23.416Z)
OS version: Linux x64 6.8.0-31-generic snap
Modes:

System Info
Item Value
CPUs AMD Ryzen 3 3200U with Radeon Vega Mobile Gfx (4 x 2794)
GPU Status 2d_canvas: unavailable_software
canvas_oop_rasterization: disabled_off
direct_rendering_display_compositor: disabled_off_ok
gpu_compositing: disabled_software
multiple_raster_threads: enabled_on
opengl: disabled_off
rasterization: disabled_software
raw_draw: disabled_off_ok
skia_graphite: disabled_off
video_decode: disabled_software
video_encode: disabled_software
vulkan: disabled_off
webgl: unavailable_software
webgl2: unavailable_software
webgpu: disabled_off
Load (avg) 2, 3, 3
Memory (System) 9.59GB (4.94GB free)
Process Argv --no-sandbox --force-user-env --crash-reporter-id cfd34dad-636f-4e3d-9586-8521edd6459d
Screen Reader no
VM 0%
DESKTOP_SESSION ubuntu
XDG_CURRENT_DESKTOP Unity
XDG_SESSION_DESKTOP ubuntu
XDG_SESSION_TYPE wayland
Extensions: none
A/B Experiments
vsliv368:30146709
vspor879:30202332
vspor708:30202333
vspor363:30204092
vscorecescf:30445987
vscod805:30301674
binariesv615:30325510
vsaa593:30376534
py29gd2263:31024239
vscaac:30438847
c4g48928:30535728
azure-dev_surveyone:30548225
962ge761:30959799
pythongtdpath:30769146
welcomedialog:30910333
pythonidxpt:30866567
pythonnoceb:30805159
asynctok:30898717
pythontestfixt:30902429
pythonregdiag2:30936856
pythonmypyd1:30879173
pythoncet0:30885854
2e7ec940:31000449
pythontbext0:30879054
accentitlementst:30995554
dsvsc016:30899300
dsvsc017:30899301
dsvsc018:30899302
cppperfnew:31000557
dsvsc020:30976470
pythonait:31006305
chatpanelc:31048052
dsvsc021:30996838
945dj816:31013170
pythoncenvptcf:31049071
a69g1124:31058053
dvdeprecationcf:31052040
pythonprt:31056678
dwnewjupytercf:31046870
26j00206:31048877

@Sanzi87
Copy link

Sanzi87 commented May 29, 2024

I have the same issue. VSCode has some issue with .mjs files.

Example 1: If I try to open a Python project, VSCode can open it, but If I create a Next JS project what includes 2 pcs .mjs files (next.config.mjs and postcss.config.mjs) and I try to open the folder from the menu (File>Open Folder), VSCode just quit. If I delete these 2 files temporarily, VSCode can open the folder.
There is 2 ways to open this folder. 1. From the terminal, I can use "code ." command and it opens in VSCode or 2. If I opened this folder earlier I can reopen it from the "File>Open recent>Foldername"

Example 2: If the folder is already open and I click the "File>Open Workplace from File..." button, VSCode quit again. (This not happen if I delete the .mjs files.

Example 3: If I delete a .mjs file and I try to restore it with Ctrl+Z. VSCode just quit again.

VS Code version: Code 1.89.1
OS version: Linux x64 6.8.0-31-generic snap

@lramos15 lramos15 assigned deepak1556 and rzhao271 and unassigned lramos15 May 30, 2024
@rzhao271
Copy link
Contributor

It sounds like the product is crashing in both cases.
Could you two create crash reports following the Wiki instructions?

@rzhao271 rzhao271 added the info-needed Issue requires more information from poster label May 30, 2024
@deepak1556
Copy link
Contributor

@Sanzi87 if you can share a minimal repro (folder with problematic .mjs file) to demonstrate the issue it would be helpful for us to debug the issue further.

@Sanzi87
Copy link

Sanzi87 commented May 31, 2024

@Sanzi87 if you can share a minimal repro (folder with problematic .mjs file) to demonstrate the issue it would be helpful for us to debug the issue further.

The simplest way to reproduce the error is to create a new folder, which you then open in VS Code. After that, create a new Next JS 14 project in the VS Code terminal by using the command: "npx create-next-app ." Then, wait for the project to be set up. The .mjs files will be in the project directory. If you try to open the project from the file menu, VS Code exits.

Of course I can share these original files from a Next JS project too. Just uncompress the zip file, open the VS Code and select File>Open Folder and select the unzipped map. (My OS is Ubuntu 24.04.)
vscodemjsissue.zip

@Sanzi87
Copy link

Sanzi87 commented May 31, 2024

@Sanzi87 if you can share a minimal repro (folder with problematic .mjs file) to demonstrate the issue it would be helpful for us to debug the issue further.

The simplest way to reproduce the error is to create a new folder, which you then open in VS Code. After that, create a new Next JS 14 project in the VS Code terminal by using the command: "npx create-next-app ." Then, wait for the project to be set up. The .mjs files will be in the project directory. If you try to open the project from the file menu, VS Code exits.

Of course I can share these original files from a Next JS project too. Just uncompress the zip file, open the VS Code and select File>Open Folder and select the unzipped map. (My OS is Ubuntu 24.04.) vscodemjsissue.zip

There is a bug in VS Code with commenting in .mjs files. If you create a new folder, open it in VS Code, create a something.mjs file, and just write a comment line, for example: "/* something */", then save it, VS Code will exit.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
info-needed Issue requires more information from poster
Projects
None yet
Development

No branches or pull requests

5 participants