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

Constant errors in TypeScript files #98

Open
rodrigojcmello opened this issue Oct 13, 2024 · 1 comment
Open

Constant errors in TypeScript files #98

rodrigojcmello opened this issue Oct 13, 2024 · 1 comment
Labels
Needs reproduction Needs a reproduction Waiting for response Waiting for a response from the author of the issue

Comments

@rodrigojcmello
Copy link

I noticed that several errors appeared in my TypeScript files. Initially, I thought they were TypeScript or WebStorm errors, but after some tests, I identified that the problem was with Biome.

It seems that Biome doesn't trigger some action after the last user action (last character typed), causing the error.

Common declaration without any errors in the file:
Screenshot 2024-10-13 at 10 46 34

I added a simple "export" and the error appeared:
Screenshot 2024-10-13 at 10 46 47

More about the error:
Screenshot 2024-10-13 at 10 46 56

When I restart the Biome service, the error disappears. I can also solve the problem by closing and reopening the file:
Screenshot 2024-10-13 at 10 47 10

To rule out configuration issues, Biome, or the plugin, I tested the same code in VSCode:
Screenshot 2024-10-13 at 10 47 32

When typing, it shows an error, which is expected because I haven't added the necessary space yet:
Screenshot 2024-10-13 at 10 47 48

And after adding the space, no errors appear, meaning it's not a configuration or Biome library issue, but a problem with the WebStorm plugin:
Screenshot 2024-10-13 at 10 48 02

This issue is quite frustrating as it mixes real problems with this bug, making the work harder.

While I was gathering evidence, I noticed that I didn't have a tsconfig in the project. I thought this might be a dependency of the plugin, but it wasn't. I added the tsconfig, and unfortunately, the problem persists.

Ah, congratulations on the excellent tool, Biome, and this plugin! I'm sure they will soon become an industry standard :)

MacBook 16" 2019 (Intel) - Mac Sequoia
WebStorm 2024.2.3

@denbezrukov denbezrukov added Needs reproduction Needs a reproduction Waiting for response Waiting for a response from the author of the issue labels Nov 10, 2024
@denbezrukov
Copy link
Contributor

Hi @rodrigojcmello
Thank you for the report. Could you please provide a minimal reproducible example?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Needs reproduction Needs a reproduction Waiting for response Waiting for a response from the author of the issue
Projects
None yet
Development

No branches or pull requests

2 participants