How to cripple the prompt message in vscode - visual-studio-code

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

Related

How to debug a VSCode extension

I'm trying to write an extension for VSCode, however I'm having all sorts of problems in that part of the extension doesn't appear to be recognised.
The extension is in two parts, a grammar and languages part -- this is recognised and is working well.
The second part is a debugger, but I cannot get VSCode to see this. There is obviously an error somewhere in my package.json, but I cannot find an error message anywhere.
Is there anyway to validate the package.json file? Or the solution as a whole? Hitting F5 starts up a child VSCode, but no errors. Looking in the extensions tab, it doesn't show that there is a debugger in the extension, so it must be the wrong configuration?

How to disable the "Get Started" tab in Theia before the first execution?

I have a Theia IDE built in a docker.
Every time I launch a new docker and open a python file for the first time, I got some annoying pop-up:
A new tab: Python - Get Started
A pop up: Linter pylint not installed
Both have a Do not show again option. However, it does not work in my use case because every time a user connects, he will get a new Docker.
I tried to look in the settings and preferences but could not find where to disable these pop-ups.
I also tried to look at the settings files (launch.json for example) after having clicked the Do not show again button but nothing change.
The perfect solution for me would be to add a line in the launch.json file to tell Theia to never display those pop-up in the first place but I am not sure it is possible.
If you know a way to do it (in the launch.json or another way) I would be pleased to hear it!
If you know how to do it in VS code I would also be pleased to hear about it as Theia took a lot from VS code
Thanks!
I finally found the answer by observing which files were changed last on the docker.
I found out that you have to write "python.showStartPage": false in /home/theia/.theia/settings.json
However, it was not enough, I also had to add some lines in /home/theia/.theia/plugin-storage/global-state.json.
I don't know which lines exactly as I just copied-pasted the full file from a previous execution. But I would guess that it is one of the lines beginning with gettingStarted.overrideCategory

Have to restart Visual Studio Code to elimante mistakenly shown errors

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

Double clicking to open a file doesn't work with Visual Studio Code

I am using Visual Studio code and it works fine except that double clicking the file doesn't seem to open the file. Instead the Program just opens with an Untitled.txt screen.
Right click -> Open with code also works.
How do I make it work? I am using Windows 8.
This wasn't the case some versions back, but now it seems, that it actually is the expected behaviour. The developers intentionally do not register VSCode as the default open handler (don't ask me why).
But maybe there is a workaround. Try the following steps:
1. Try to associate the filetype(s) with another app, and then again to VSCode.
2. If setting to other editors and returning to VSCode still opens Untitled-1.txt, then you could
3. try reinstalling VSCode, and then reset it. When resetting, confirm that there is only one VSCode in the choice list.
It also could be, that you'll need to reboot your machine. Finally, you'll possibly also want to take a look at this issue on GitHub.
Hope you can solve it this way.

Matlab failed to open m file

I am new to matlab and I've installed it successfully. Everything works fine. But when ever I try to open .m files, I always get following error popping out of dialog box:
Error using open(line 162)
Failed to open matlab editor.
And in command window it throws a lot of Java exceptions.
First of all please forgive my poor English.
I've been searching for this problem all over the internet but couldn't find any useful solution.
I'm using windows 8.1 pro 64-bit os.
Your error message indicates that there is an error in a line that justs consists of
<br>
This is not valid matlab code (looks more like html). As such it seems like you have either messed up the open function, or overloaded it somehow.
I think the first thing to do is check which open and see where this points you.
If this does not help, try to look at the matlab path carefully and see whether you accidentally added a (html?) file on it called open.m.
Lastly, you could try to use the built in open function directly, check doc builtin for this. If you succeed at least you are sure it is not a matter of corrupting the standard file.