Skip to content

Unable to open 'project': File is a directory. #374

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

Closed
vimota opened this issue Mar 29, 2019 · 5 comments · Fixed by #857
Closed

Unable to open 'project': File is a directory. #374

vimota opened this issue Mar 29, 2019 · 5 comments · Fixed by #857
Labels
bug Something isn't working

Comments

@vimota
Copy link

vimota commented Mar 29, 2019

  • code-server version: codercom/code-server:latest
  • OS Version: Linux VM, Chrome 73.0.3683.86 (but also repro on Safari)

Description

Ever since yesterday anytime I run docker run -t -p 127.0.0.1:8443:8443 -v "$HOME/git/kaggleazure:/root/project" -v "/tmp/foobar:/root/.local" codercom/code-server:latest code-server --allow-http --no-auth (and pretty much any permutation of that) I'm not able to open a folder remotely (going to localhost:8443 on another machine that has port forward to the VM). The default working dir is set to /root/project/code-server for some reason. When I click Open Folder... the open file (yes, file, not sure why) dialog comes up . And when I click confirm at the directory I get the Unable to open 'project': File is a directory.. For some reason I'm stuck in a state where I can't open folders, no mater how many times I kill the image, use a different image, or clear local storage.
open file

@vimota vimota added the bug Something isn't working label Mar 29, 2019
@vimota
Copy link
Author

vimota commented Mar 29, 2019

The other weird thing is that this only happens on the remote machine, but if I access localhost:8443 on the Linux VM where code-server is running, I don't have that issue.

@vimota
Copy link
Author

vimota commented Mar 29, 2019

Ah looks like this was the issue for me: 3b8cd0a#diff-04c6e90faac2675aa89e2176d2eec7d8 . When I change code-server -> . like so: docker run -t -p 127.0.0.1:8443:8443 -v "$HOME/git/kaggleazure:/root/project" -v "/tmp/foobar:/root/.local" codercom/code-server:latest . --allow-http --no-auth, the issue is resolved.

@vimota
Copy link
Author

vimota commented Mar 29, 2019

I'm not sure what that parameter is used for (the code-server one after the image name), or why this was causing different behaviour in remote and local client...

@Kiricon
Copy link

Kiricon commented Apr 10, 2019

Having this exact same issue with a version of this code hosted on digital ocean. I can't open folders on my remote machine. 😢

@Kiricon
Copy link

Kiricon commented Apr 14, 2019

Having this exact same issue with a version of this code hosted on digital ocean. I can't open folders on my remote machine. 😢

Just as an update: This issue seems to only happen I visit the page from a mac.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants