Skip to content

codeserver complaining that a directory is a directory #7352

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

Open
2 tasks done
elapt1c opened this issue May 21, 2025 · 1 comment
Open
2 tasks done

codeserver complaining that a directory is a directory #7352

elapt1c opened this issue May 21, 2025 · 1 comment
Labels
bug Something isn't working triage This issue needs to be triaged by a maintainer

Comments

@elapt1c
Copy link

elapt1c commented May 21, 2025

Is there an existing issue for this?

  • I have searched the existing issues

OS/Web Information

  • Web Browser: any will have same issue
  • Local OS: any (but currently ubuntu)
  • Remote OS: zorin os 17
  • Remote Architecture: intel x86
  • code-server --version: i cannot run that command currently but it is super recent

Image
im clicking on open folder and it freaks out because the folder i am trying to open is a folder? this used to work just fine a week ago

Steps to Reproduce

  1. open code server on browser
  2. try to open a folder using the open folder button
  3. doesnt open and get an error complaining that the folder is a folder

Expected

it should have just simply opened the folder and worked like it used to

Actual

it throws an error and doesnt open a folder.

Logs

unable to run it with commands currently since it is headless

Screenshot/Video

2025-05-21.13-21-47.mp4

Does this bug reproduce in native VS Code?

No, this works as expected in native VS Code

Does this bug reproduce in GitHub Codespaces?

I did not test GitHub Codespaces

Are you accessing code-server over a secure context?

  • I am using a secure context.

Notes

No response

@elapt1c elapt1c added bug Something isn't working triage This issue needs to be triaged by a maintainer labels May 21, 2025
@code-asher
Copy link
Member

code-asher commented May 22, 2025

I think the problem is that you launched code-server with ?workspace=/root/code-server. A "workspace" in VS Code parlance is a file that contains a list of folders. So, it tries to add that directory to the /root/code-server workspace file, but it is a directory not a file. You could try instead something like ?workspace=/root/code-server/project.code-workspace or something like that (.code-workspace is the file ending VS Code usually uses), or remove ?workspace and create the workspace from code-server's menu instead.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working triage This issue needs to be triaged by a maintainer
Projects
None yet
Development

No branches or pull requests

2 participants