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

🐛 internalError/io: "You must have at least one workspace" #4804

Open
1 task done
scruffymongrel opened this issue Dec 29, 2024 · 3 comments
Open
1 task done

🐛 internalError/io: "You must have at least one workspace" #4804

scruffymongrel opened this issue Dec 29, 2024 · 3 comments
Labels
S-Needs repro Status: needs a reproduction

Comments

@scruffymongrel
Copy link

Environment information

CLI:
  Version:                      1.9.4
  Color support:                true

Platform:
  CPU Architecture:             aarch64
  OS:                           macos

Environment:
  BIOME_LOG_PATH:               unset
  BIOME_LOG_PREFIX_NAME:        unset
  BIOME_CONFIG_PATH:            unset
  NO_COLOR:                     unset
  TERM:                         "xterm-256color"
  JS_RUNTIME_VERSION:           unset
  JS_RUNTIME_NAME:              unset
  NODE_PACKAGE_MANAGER:         unset

Biome Configuration:
  Status:                       Loaded successfully
  Formatter disabled:           false
  Linter disabled:              false
  Organize imports disabled:    false
  VCS disabled:                 false

Workspace:
  Open Documents:               0

What happened?

  1. configure zed with biome support
  2. save a JS file with a deliberate formatting error
  3. see message that formatting failed and open the issue
  4. see the following message...
Language server error: biome

oneshot canceled
-- stderr--
Biome encountered an unexpected error

This is a bug in Biome, not an error in your code, and we would appreciate it if you could report it to https://github.com/biomejs/biome/issues/ along with the following information to help us fixing the issue:

Source Location: crates/biome_service/src/settings.rs:78:14
Thread Name: tokio-runtime-worker
Message: You must have at least one workspace.

internalError/io ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━

  × Errors occurred while executing I/O operations.
    
    Caused by:
      the server process exited before the connection could be established
  

Expected result

Formatting should be corrected on save.

Code of Conduct

  • I agree to follow Biome's Code of Conduct
@scruffymongrel scruffymongrel added the S-Needs triage Status: this issue needs to be triaged label Dec 29, 2024
@ematipico ematipico added the S-Needs repro Status: needs a reproduction label Dec 29, 2024
Copy link
Contributor

Hello @scruffymongrel, please provide a minimal reproduction. You can use one of the following options:

  • Provide a link to our playground, if it's applicable.
  • Provide a link to GitHub repository. To easily create a reproduction, you can use our interactive CLI via npm create @biomejs/biome-reproduction

Issues marked with S-Needs repro will be closed if they have no activity within 3 days.

@github-actions github-actions bot removed the S-Needs triage Status: this issue needs to be triaged label Dec 29, 2024
@scruffymongrel
Copy link
Author

Unfortunately I'm not sure how to create a repro as the issue arose inside of Zed.

If anyone can provide advice on how best to create a repro for this kind of issue, I'll see what I can do.

@scruffymongrel
Copy link
Author

In case it helps, I also had biome installed via brew install biome... I've since uninstalled it and this issue no longer arises (I still have issues, but I think they're prolly Zed-specific).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
S-Needs repro Status: needs a reproduction
Projects
None yet
Development

No branches or pull requests

2 participants