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

Browser treats symlinks as files #734

Closed
giantcow opened this issue Jun 1, 2019 · 3 comments · Fixed by #857
Closed

Browser treats symlinks as files #734

giantcow opened this issue Jun 1, 2019 · 3 comments · Fixed by #857
Labels
bug Something isn't working

Comments

@giantcow
Copy link

giantcow commented Jun 1, 2019

  • code-server version: 1.1119-vsc1.33.1-linux-x64
  • OS Version: Ubuntu 18.04.2 LTS

Description

Folder browser treats symlinks as files.

Steps to Reproduce

  1. Create symlink:
    # kayo @ <snip> in /var/www/<snip> [5:28:51] 
    $ ll
    total 244K
    -rw-r--r-- 1 root root 232K Jun  1 05:25 access.log
    drwxr-xr-x 2 kayo kayo 4.0K Jun  1 04:53 coder
    -rw-r--r-- 1 root root    0 Jun  1 04:53 error.log
    drwxrwxr-x 2 kayo kayo 4.0K Jun  1 05:26 test
    
    # kayo @ <snip> in /var/www/<snip> [5:28:52] 
    $ ln -s /home/kayo/workspace/ ./
    
    # kayo @ <snip> in /var/www/<snip> [5:29:01] 
    $ ll
    total 244K
    -rw-r--r-- 1 root root 232K Jun  1 05:25 access.log
    drwxr-xr-x 2 kayo kayo 4.0K Jun  1 04:53 coder
    -rw-r--r-- 1 root root    0 Jun  1 04:53 error.log
    drwxrwxr-x 2 kayo kayo 4.0K Jun  1 05:26 test
    lrwxrwxrwx 1 kayo kayo   21 Jun  1 05:29 workspace -> /home/kayo/workspace/
  2. In browser File -> Open Folder: Browser
@giantcow giantcow added the bug Something isn't working label Jun 1, 2019
@sr229
Copy link
Contributor

sr229 commented Jun 1, 2019

This is the File Watcher though, not the browser.

@giantcow
Copy link
Author

giantcow commented Jun 1, 2019

The UI element that allows users to chose another working directory * :)

@sr229
Copy link
Contributor

sr229 commented Jun 1, 2019

This has been fixed upstream since February 2018. I might need more info regarding this, it might be the file watcher not treating the symlink properly

CC @coadler

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