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

🐛 Unable to get Biome running in a subfolder of a single-folder workspace #403

Open
1 of 3 tasks
flekschas opened this issue Oct 17, 2024 · 2 comments
Open
1 of 3 tasks
Labels

Comments

@flekschas
Copy link

flekschas commented Oct 17, 2024

VS Code version

1.93.1

Extension version

v2024.10.131712

Biome version

1.9.4

Operating system

  • Windows
  • macOS
  • Linux

Description

I'm trying to get the Biome VSCode extension running to lint+format JS code that lives in a subfolder of my workspace.

My setup is fairly simply:

- .vscode
   - settings.json
- js
   - src
      - index.js (etc.)
   - biome.json
- pypackage

My .vscode/settings.json is

{
  "biome.enabled": true,
  "biome.lsp.trace.server": "verbose",
  "biome.projects": [
    {
      "path": "js"
    }
  ]
}

I see that the extension is loaded when looking at the Output panel:

2024-10-17 16:33:02.458 [info] Biome extension 2024.10.131712 activated
2024-10-17 16:33:02.558 [error] Could not find the Biome binary
2024-10-17 16:33:02.575 [info] Using previously downloaded version 1.9.3: /Users/Me/Library/Application Support/Cursor/User/globalStorage/biomejs.biome/global-bin/biome
2024-10-17 16:33:02.576 [debug] Found downloaded Biome binary
	path=/Users/Me/Library/Application Support/Cursor/User/globalStorage/biomejs.biome/global-bin/biome
	strategy=Download Biome
2024-10-17 16:33:02.586 [debug] A Biome binary for the same version 1.9.3 already exists in the temporary location.
	original=/Users/Me/Library/Application Support/Cursor/User/globalStorage/biomejs.biome/global-bin/biome
	temporary=/Users/Me/Library/Application Support/Cursor/User/globalStorage/biomejs.biome/tmp-bin/biome-1.9.3
2024-10-17 16:33:02.586 [debug] Ensure binary is executable
	binary=/Users/Me/Library/Application Support/Cursor/User/globalStorage/biomejs.biome/global-bin/biome
	before=is executable: true
	after=is executable: true
2024-10-17 16:33:02.801 [error] Failed to start Biome extension
2024-10-17 16:33:02.801 [info] Biome extension started
2024-10-17 16:33:02.802 [info] User-facing commands registered
2024-10-17 16:33:02.802 [info] Started listening for lockfile changes
2024-10-17 16:33:02.802 [info] Started listening for configuration changes
2024-10-17 16:33:02.802 [info] Started listening for active text editor changes

Apart from that, nothing else is logged, even after I change some files to JS files under js/src.

Am I missing anything? Should I be concerned about the initial fail to start biome and then the info output saying the extension started?

Steps to reproduce

Create an environment as outlined in Description, install VSCode, install the extension, open a JS file under js/src and add an unused variable, and finally notice how no hints are shown in the code panel.

Expected behavior

See Biome hints in the code editor

Does this issue occur when using the CLI directly?

No

Link to a minimal reproduction

https://github.com/flekschas/biome-issue

Logs

No response

@nhedger
Copy link
Member

nhedger commented Oct 18, 2024

Hey, thanks for reporting. Would you mind creating a minimal reproduction repo using npm create @biomejs/biome-reproduction

@flekschas
Copy link
Author

flekschas commented Oct 20, 2024

Thanks for getting back quickly and apologies for my late response. I've create a minimal reproducing repo at https://github.com/flekschas/biome-issue.

Screen.Recording.2024-10-20.at.11.33.23.AM.mp4

I wonder if my configuration is incorrect or if this kind of setup is just not supported by Biome. I hope it's the former because you guys did an absolutely fantastic job with Biome 👏 and I would not want to go back to ESLint + Prettier.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants