atom-typescript: False Linter Errors require close/open files
I am getting lots of Linter Errors that usually involved extremely distorted code. For example I write:
providers: [SalesService]
and get the error:
“Cannot find name 'SalesServiceecivreSsealS”.
If I close and reopen the file in question the error is gone. Pressing F6 for a build tells me “Emit success”, but the linter continues to show the errors.
This happens a lot, but not always. Sometimes I can write stuff and it all works. But it also often shows such errors where it seems as if the linter is reading a file that involves random distortion of my actual code.
Running Atom 1.18 and atom-typescript 11.0.5
About this issue
- Original URL
- State: closed
- Created 7 years ago
- Reactions: 1
- Comments: 24 (2 by maintainers)
Not anymore. I’ve switched to VS Code and forgot about all this. It’s like Atom, but without all these annoying bugs.
I think I got a consistant way of reproducing this error. Open the save
.ts-file in two panes and have them side-by-side. After just a few edits, this error shows up.You know what, that explains the errors - multiple keystrokes are recorded where there should only be one. Multiple TypescriptBuffers are listening for the same changes. This should be an easy fix.
I get the same error on my own project, even if it’s the only one open.
As you can see on the screen bellow, the error message doesn’t correspond to the editor content. (before writing this line there was no error)
@theGABS hey, it is an open source project you can use for free. If you demand something, pay for or work on it. 😐
Still, have this error.
WTF???!!! Why it is not been fixing yet??
I am on the latest Atom and
atom-typescriptand I have to constantly close and reopen files for these false errors to go away. Seems to happen more often when I have two panes open. Very annoying.Facing this error every day, I’m tired of that. No PR?
@guncha please, can you inform a place to start a fix?
At least yesterday it wasn’t just happening “once in a while”. It was happening more like 95% of the time. I tried atom restarts and typescript reinstalls.
From the many error messages of this kind I had to see it made the strong impression that it somehow saw keypresses multiple times.
In many cases I’d write “word” and it told me “cannot find wwwwwoooooooorrrrrrrrdddddd”. I assume combined with a little randomness in how often a keypress is registered and backspace presses and maybe copy paste that’s what makes it produce those random patterns.
I’ll check up on this tomorrow and provide you with the info you need. Unless it magically fixed itself tomorrow similar to the way it magically broke itself I have a setup that seems to cause this all the time.