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

🐛 You must have at least one workspace #365

Open
3 tasks
johnlindquist opened this issue Sep 26, 2024 · 3 comments
Open
3 tasks

🐛 You must have at least one workspace #365

johnlindquist opened this issue Sep 26, 2024 · 3 comments
Labels
Bug confirmed Report has been confirmed as a valid bug v3-prerelease

Comments

@johnlindquist
Copy link

VS Code version

Cursor 0.41.3

Extension version

biome-2024.9.200949

Biome version

1.9.2

Operating system

  • Windows
  • macOS
  • Linux

Description

2024-09-26 16:20:57.099 [info] 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:75:14
Thread Name: tokio-runtime-worker
Message: You must have at least one workspace.

2024-09-26 16:20:57.103 [info] [Error - 4:20:57 PM] Handling connection error failed
2024-09-26 16:20:57.103 [info] TypeError: Cannot read properties of undefined (reading 'toString')
at Object.error (/Users/johnlindquist/.cursor/extensions/biomejs.biome-2024.9.200949/out/index.js:48582:28)
at BiomeLanguageClient.handleConnectionError (/Users/johnlindquist/.cursor/extensions/biomejs.biome-2024.9.200949/out/index.js:47045:71)
at errorHandler (/Users/johnlindquist/.cursor/extensions/biomejs.biome-2024.9.200949/out/index.js:46991:19)
at /Users/johnlindquist/.cursor/extensions/biomejs.biome-2024.9.200949/out/index.js:47374:37
at CallbackList.invoke (/Users/johnlindquist/.cursor/extensions/biomejs.biome-2024.9.200949/out/index.js:30421:40)
at Emitter.fire (/Users/johnlindquist/.cursor/extensions/biomejs.biome-2024.9.200949/out/index.js:30483:37)
at writeErrorHandler (/Users/johnlindquist/.cursor/extensions/biomejs.biome-2024.9.200949/out/index.js:31532:23)
at CallbackList.invoke (/Users/johnlindquist/.cursor/extensions/biomejs.biome-2024.9.200949/out/index.js:30421:40)
at Emitter.fire (/Users/johnlindquist/.cursor/extensions/biomejs.biome-2024.9.200949/out/index.js:30483:37)
at StreamMessageWriter.fireError (/Users/johnlindquist/.cursor/extensions/biomejs.biome-2024.9.200949/out/index.js:30975:28)
at Socket. (/Users/johnlindquist/.cursor/extensions/biomejs.biome-2024.9.200949/out/index.js:31012:48)
at Socket.emit (node:events:514:28)
at emitErrorNT (node:internal/streams/destroy:151:8)
at emitErrorCloseNT (node:internal/streams/destroy:116:3)
at process.processTicksAndRejections (node:internal/process/task_queues:82:21)
2024-09-26 16:20:57.103 [info] [Error - 4:20:57 PM] Sending document notification textDocument/didOpen failed
2024-09-26 16:20:57.103 [info] Error: write EPIPE
at WriteWrap.onWriteComplete [as oncomplete] (node:internal/stream_base_commons:94:16)
2024-09-26 16:20:57.104 [info] [Error - 4:20:57 PM] Biome language server error
2024-09-26 16:20:57.104 [info] [Error - 4:20:57 PM] Request textDocument/codeAction failed.
2024-09-26 16:20:57.104 [info] Message: Cannot call write after a stream was destroyed
Code: -32099
2024-09-26 16:20:57.104 [info] [Error - 4:20:57 PM] Connection to server got closed. Server will not be restarted.
2024-09-26 16:20:57.104 [info] [Error - 4:20:57 PM] Stopping server failed
2024-09-26 16:20:57.104 [info] Message: Cannot call write after a stream was destroyed
Code: -32099
2024-09-26 16:20:57.104 [info] [Error - 4:20:57 PM] Stopping server failed
2024-09-26 16:20:57.104 [info] Message: Cannot call write after a stream was destroyed
Code: -32099
2024-09-26 16:24:55.531 [info] Biome encountered an unexpected error

Steps to reproduce

Simple open your project

Expected behavior

for it to work

Does this issue occur when using the CLI directly?

Not sure / Not applicable

Link to a minimal reproduction

No response

Logs

No response

@nhedger nhedger added v3-prerelease Bug confirmed Report has been confirmed as a valid bug and removed Triage labels Oct 4, 2024
@nhedger
Copy link
Member

nhedger commented Oct 4, 2024

I've been trying to reproduce this issue for quite some time.

Any chance you're able to reproduce it consistently? If so any additional information would help troubleshooting this.

@KurtGokhan
Copy link

KurtGokhan commented Oct 13, 2024

I had this issue with a new project I created. Latest VSCode stable version. I tried these but couldn't solve the problem:

  • Installed all 1.9.x versions individually. None worked.
  • Restarted VSCode, Extensions, LSP server. None worked.
  • Tried both the latest release and pre-release version of this extension. Although, the latest release version reports a different error with less details (data 393).

Then I tried these and some of them must have worked because it started working suddenly:

  • I noticed I had another VSCode workspace open. So I closed it.
  • Installed Biome v1.8.3 then reinstalled v1.9.3 again.
  • I noticed there was 1 minor issue in my Biome config. Fixed that.

Hope this helps.

@imertz
Copy link

imertz commented Oct 17, 2024

I had this issue with a new project I created. Latest VSCode stable version. I tried these but couldn't solve the problem:

  • Installed all 1.9.x versions individually. None worked.
  • Restarted VSCode, Extensions, LSP server. None worked.
  • Tried both the latest release and pre-release version of this extension. Although, the latest release version reports a different error with less details (data 393).

Then I tried these and some of them must have worked because it started working suddenly:

  • I noticed I had another VSCode workspace open. So I closed it.
  • Installed Biome v1.8.3 then reinstalled v1.9.3 again.
  • I noticed there was 1 minor issue in my Biome config. Fixed that.

Hope this helps.

Worked! Thanks!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Bug confirmed Report has been confirmed as a valid bug v3-prerelease
Projects
None yet
Development

No branches or pull requests

4 participants