Have to restart Visual Studio Code to elimante mistakenly shown errors - visual-studio-code

sometimes my changes cause an error and after fixing it, VS Code wont get rid of the error. In that case I have to close VS Code and reopen it.
Example:
I add at first an click-event to an html-element, that isnt defined yet in the component.ts File. Angular shows the red unterline and the error message. After defining the missing function, the error does not disapper (even if I save all files and/or refresh explorer). I have to restart VS Code.
Of course I can prevent this using the right order. But sometimes there are errors like this.
Does anybody have an idea how to fix this?
Thanks and best regards

Related

VS Code won't autosuggest when importing a file

(Currently using VS Code on macOS Monterey, mostly for React and JavaScript.)
When I used to import a component at the top of my file, Vs Code would suggest the path of the file. I would simply press enter or click on the suggestion and VS Code would fill in the rest. Seems to me like a standard feature of VS Code, and I've grown pretty accustomed to it.
Now, it doesn't suggest anything. I'll type out a file that exists in the project, and nothing appears. I've tried it with several projects, and none of them suggest anything anymore — when just last week it was working fine.
trying to import
One thing... I have a lingering suspicion that it's from doing this:
npm i #types/react -g
A friend recommended I add it. With it, you can declare a component in your project and VS Code will auto import it. Really, it's the only thing I can remember changing since this strange behavior with VS Code started, but I'm not positive. Just a suspicion. I've tried to remove it, but it didn't fix anything.
I've done a bunch of stuff found on stackoverflow already with no improvements:
adding to setting.json, like this, or this
even deleted VS Code w/ extensions

How to cripple the prompt message in vscode

I read my project code in vs code. However, I don't have to run it and thus I choose not to configure it. Unfortunately, each time I hit a file window, vs code would show me a error message. What's more, the message window rightly holds up my toolbar. It is annoying! >_<
How can I disable the function of showing error message?
I will appreciate it if someone could give me some advice.
This is coming the clang-format extension. You should disable this extension if you are not going to use it or configure it.
The error is expected and correct in this case as that extension will not work without a valid clang executable

Coocox Coide Compiler error : String index out of range: -1

I'm having problems with my project, I'm trying to build it and coocox coide gives me this error.
Building has encountered an error
an internal error occured during building:
An internal error occurred during: "Building".
String index out of range: -1
It doesn't say where it happened or what triggered it ...
I looked all over and I can't find an answer for it, at least not for my situation.
Does anyone know how to fix this ? I could realy use help with this :/
I'm using:
CooCox CoIDE
Version: 1.7.7
Build id: 20140628-3328-1557
I also used CubeMx to generate my project, then manually inserted it into Coide.
you can download my project from here if that helps
https://1drv.ms/u/s!Ao4Ba524gyr6eDpD1FP6UonCjVo
Thanks in advance!
I have various built files open. I think it has sometimes problems to erase them. Even with the rebuild button, it (sometimes) gives an error at first (no popup window though)"something like: cannot delete files" and the second time I try it works. Maybe the build files that are erased need some time after they are deleted to be recognized by coide as deleted, and it returns an error if not done fast enough?!
Well, also with the build button, sometimes pressing a second time works!
Hmm but it is not reliable... this is a work in progress.
follow up:
If there was a compile error, the build button works when building the next time.
If there was a link error, the build button doesn't work for the next compilation.
-interesting link with similar problem: http://www.coocox.org/forum/viewtopic.php?f=2&t=4145&start=15
(unfortunatly does not solve my issue)
I faced the same problem when I tried to build with a custom scatter file for the linker.
The link #lode provided solved the issue for me:
I had to remove every occurence of the string rom from the comments inside the .ld file. I replaced the word from with fr_om and voilà, issue resolved.

Get more descriptive errors from Windows and Visual Studio

How can I have Visual Studio show me details like in Eclipse when errors occur? is this simply a debugging feature that needs to be turned on (selected) or is there more to it?
maybe because it's a more important error :/ while(true) is a really bad idea you should better put a boolean that will stay true.
You should have the error you do appear on the back of the screen.

Eclipse error log pops up after every save

Whenever I make any edits in eclipse (using STS) and save them the error log pops up. It's extremely annoying and I have no idea how to get rid of it. Anyone face a similar issue and how to resolve it?