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

Project folder fails to open #32962

Closed
kbrgl opened this issue Aug 22, 2017 · 19 comments
Closed

Project folder fails to open #32962

kbrgl opened this issue Aug 22, 2017 · 19 comments
Assignees
Labels
bug Issue identified by VS Code Team member as probable bug tree-views Extension tree view issues verified Verification succeeded
Milestone

Comments

@kbrgl
Copy link

kbrgl commented Aug 22, 2017

The issue

I'm unable to open project folders in VS Code - attempting to open one results in seemingly nothing happening. However, going to the desired folder and running code . --verbose --disable-extensions gives:

Unable to read folders in /Users/kabir/Library/Application Support/Code/Workspaces (Error: ENOENT: no such file or directory, scandir '/Users/kabir/Library/Application Support/Code/Workspaces').

Reinstalling VS Code worked initially, but then the issue started occurring again.

Details

  • VSCode Version: Code 1.15.1 (41abd21, 2017-08-16T17:15:57.756Z)
  • OS Version: Darwin x64 16.6.0
  • Extensions:
Extension Author (truncated) Version
EditorConfig Edi 0.9.4
vsc-material-theme Equ 1.0.2
python don 0.7.0
file-icons fil 1.0.5
Go luk 0.6.63
atom-keybindings ms- 3.0.1
laravel-blade one 1.8.1
sass-indented rob 1.4.1
nunjucks ron 0.2.3
laravel-5-snippets sac 2.0.1
standard shi 0.2.3

(2 theme extensions excluded)


Steps to Reproduce:

  1. Try to open a project folder on macOS

Reproduces without extensions: Yes

@Tyriar
Copy link
Member

Tyriar commented Aug 22, 2017

What's the output of ls -la /Users/kabir/Library/Application Support/Code | grep Workspaces ?

@Tyriar Tyriar added the info-needed Issue requires more information from poster label Aug 22, 2017
@kbrgl
Copy link
Author

kbrgl commented Aug 22, 2017

@Tyriar that doesn't output anything, but I created the directory and the editor is still unable to open project folders. The earlier error Unable to read folders... doesn't appear though.

@bpasero
Copy link
Member

bpasero commented Aug 23, 2017

@kbrgl is that a some remote drive (samba share) or similar?

@bpasero bpasero added this to the Backlog milestone Aug 23, 2017
@kbrgl
Copy link
Author

kbrgl commented Aug 23, 2017

@bpasero no, it's all local.

@NGorco
Copy link

NGorco commented Aug 23, 2017

The same issue on MacOS Sierra

@bpasero
Copy link
Member

bpasero commented Aug 23, 2017

Can you try to reproduce with our nightly insider builds? You can give our preview releases a try from: http://code.visualstudio.com/Download#insiders

@kbrgl
Copy link
Author

kbrgl commented Aug 23, 2017

@bpasero sure, but the issue had taken a few days to come up, so I'll let you know when it turns up on the insider build

@kbrgl
Copy link
Author

kbrgl commented Aug 23, 2017

@bpasero welp, it turned up already. Yes, I can reproduce with the nightly builds.

@kbrgl
Copy link
Author

kbrgl commented Aug 23, 2017

Clean install of VS Code (after removing all folders, including those in ~/Library, ~/.code, etc) still shows the issue. I think the steps to reproduce might be a little more specific:

  1. Do clean install of VS Code
  2. Start VS Code
  3. Open folder
  4. Remove from sidebar
  5. Try to open that or any other folder again

Update: this issue only presents with folders that have been removed using right click > Remove from sidebar

@bpasero
Copy link
Member

bpasero commented Aug 24, 2017

@kbrgl maybe best to share a video of what you are doing and how it results in this error 👍

@CameronFraser
Copy link

CameronFraser commented Aug 24, 2017

Having the same issue, preventing me from opening folders and doing work with vscode. It was also after I had removed a folder using right click remove from sidebar. I tried a clean install and it still doesn't work.

@bpasero
Copy link
Member

bpasero commented Aug 24, 2017

/cc @sandy081 as these people seem to talk about removing a view from the explorer

@sandy081
Copy link
Member

@kbrgl Looks like you removed the folder view and which will be remembered. You can get back the folder by adding it back. See the following video.

kapture 2017-08-25 at 11 14 47

@bpasero
Copy link
Member

bpasero commented Aug 25, 2017

@sandy081 I wonder if we should make it harder to get into this state, e.g. prompt the user if he really wants to remove the files explorer view.

@sandy081
Copy link
Member

I would also question do we need to provide an option to hide the files explorer?

@kbrgl
Copy link
Author

kbrgl commented Aug 25, 2017

Ah, okay. That worked.

I'd question whether it makes sense though, since in other editors (e.g. Atom and Sublime) removing a dir from the sidebar has the effect of closing the folder as well. It's rather unexpected that the folder should just disappear.

Perhaps this behavior should be made clear when the user tries to remove the folder for the first time, or perhaps the behavior should be removed altogether?

Thanks for helping me out though 😄

@bpasero
Copy link
Member

bpasero commented Aug 25, 2017

@sandy081 yeah maybe not now that we can reorder sections around and collapsed state is persisted.

@sandy081
Copy link
Member

Related to #31485

@sandy081 sandy081 removed the info-needed Issue requires more information from poster label Aug 28, 2017
@sandy081 sandy081 assigned sandy081 and unassigned bpasero Aug 28, 2017
@sandy081 sandy081 added tree-views Extension tree view issues feature-request Request for new features or functionality and removed new release labels Aug 28, 2017
@honzajavorek
Copy link

I clicked the option by accident and it took me several hours of searching the internet to find #32962 (comment) and to get the folder back 😰

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
bug Issue identified by VS Code Team member as probable bug tree-views Extension tree view issues verified Verification succeeded
Projects
None yet
Development

No branches or pull requests

8 participants