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

🐛 "Message: You must have at least one workspace." #5074

Closed
1 task done
nizamiza opened this issue Feb 10, 2025 · 1 comment
Closed
1 task done

🐛 "Message: You must have at least one workspace." #5074

nizamiza opened this issue Feb 10, 2025 · 1 comment
Labels
S-Needs repro Status: needs a reproduction

Comments

@nizamiza
Copy link

nizamiza commented Feb 10, 2025

Environment information

CLI:
  Version:                      1.9.4
  Color support:                true

Platform:
  CPU Architecture:             x86_64
  OS:                           windows

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:                       unset

Workspace:
  Open Documents:               0

What happened?

  1. Update to 1.9.4
  2. Open a TypeScript project in Helix
  3. Enjoy Biome crashing

Helix log:

2025-02-10T13:06:12.322 helix_lsp::transport [ERROR] biome err <- "Biome encountered an unexpected error\n"
2025-02-10T13:06:12.323 helix_lsp::transport [ERROR] biome err <- "\n"
2025-02-10T13:06:12.323 helix_lsp::transport [ERROR] biome err <- "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:\n"
2025-02-10T13:06:12.323 helix_lsp::transport [ERROR] biome err <- "\n"
2025-02-10T13:06:12.323 helix_lsp::transport [ERROR] biome err <- "Source Location: crates\\biome_service\\src\\settings.rs:78:14\n"
2025-02-10T13:06:12.323 helix_lsp::transport [ERROR] biome err <- "Thread Name: tokio-runtime-worker\n"
2025-02-10T13:06:12.323 helix_lsp::transport [ERROR] biome err <- "Message: You must have at least one workspace.\n"
2025-02-10T13:06:12.323 helix_lsp::transport [ERROR] biome err <- "\n"
2025-02-10T13:06:21.250 helix_view::document [ERROR] Failed to copy metadata on write: The operation completed successfully. (os error 0)
2025-02-10T13:06:21.258 helix_lsp::transport [ERROR] biome err: <- StreamClosed

Helix languages.toml:

[language-server]
biome = { command = "biome", args = ["lsp-proxy"] }

[[language]]
name             = "javascript"
shebangs         = ["deno", "node"]
language-servers = [{ name = "biome" }]

[[language]]
name             = "typescript"
shebangs         = ["deno", "node"]
language-servers = [{ name = "biome" }]

Expected result

Biome not to crash. It was working fine previously.

Code of Conduct

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

Hello @nizamiza, 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 Feb 10, 2025
@github-actions github-actions bot closed this as not planned Won't fix, can't repro, duplicate, stale Feb 14, 2025
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