C_CPP.intellisense disabled. How to enable again - intellisense

An extension I had tried in Visual-Studio code appears to have disabled C/C++ intellisense. It can't be turned on again. Modifying the setting in the settings dialog has no effect [evidence: switch source/header leads to a pop up message stating C_CPP.intellisense is set to disabled.].
Spent now several hours on this, the setting even survives uninstalling the software, purging all (known) vs-code related directories or starting a thermonuclear war.
I am getting a bit desperate here. Here are my questions:
Is there a way to wipe everything (short of reinstalling the entire machine)?
Where is the authoritative setting for C-CPP.intellisense? Entry occurs in several locations (User/Remote/....). Is there a priority?
What other mechanisms could interfere with this setting?
Any help is greatly appreciated.

Maybe the effect involved from default setting.json in below directory
C:\Users\chanli\AppData\Roaming\Code\User\settings.json
try add
"C_Cpp.intelliSenseEngine": "Default"

settings -> in search bar search this: C_Cpp.intelliSenseEngine
for me it was "disable" . for solve error set it "default".
after that in any .cpp file click on yellow lamp and change the compiler path to C:\ .... \gcc.exe ( i think any of them are ok to choose )
sorry for my bad english

Related

Disable rainbow variables in PhpStorm

I accidentally enabled rainbow variables in PhpStorm and it looks absolutely horrible. It sounds kinda silly but I just cant find the settings to disable them.
I have looked up the extension and followed the steps to uninstall but I haven't found anything related to rainbow variables https://plugins.jetbrains.com/plugin/17748-rainbow-variable
I also uninstalled Rainbow Brackets and everything else relating to styling code or variables from the plugins page
And yes I restarted the IDE after those changes with no success. I'm currently on the version 2022.2.3 of PhpStorm.
If you have disabled that Rainbow Variables plugin and still seeing the functionality then it might be PhpStorm's Semantic Highlighting in action.
Settings/Preferences | Editor | Color Scheme | Language Defaults | Semantic highlighting and make sure it is disabled there.
Please note that Rainbow Brackets plugin turns the above option ON automatically and prevents disabling it (on IDE restart). This should be fixed in latest plugin versions:
2022.3.3 Fix #2541: [Rainbow variables] Ask to enable rainbow variables before turn it on
2022.3.4 Fix #2551: [Rainbow variables] rainbow variable does not take effect after IDEA is restarted
For PhpStorm 2022.3, it is here we can disable rainbow variables (even for .json file, where each line has a diffent color).
I found the same problem in IntelliJ. However, there're checkboxes in the IntelliJ settings -> Rainbow Brackets(yes, it has an independent setting bar). If PS has the same form of settings, you may uncheck the 'rainbow variable' box. screen shot

Tooltip doesn't let me type text when it is appeared. IDEA's editor

I am working with Itellij IDEA (2017.2.4). I am not sure whether the reason is new version of IDEA, but I started to face it after new version installed.
When I type some code in editor and Tooltip is shown (it can be inspection or just parameters of method shown ect.) I cannot type new symbols until pressing ESCAPE button, it is not useful for me. Before updating the IDEA there was behavior when user types new code, tooltip is hidden without ESCAPE pressing. It was made hidden by any key pressed.
Actually maybe I just change some setting property unconsciously, if yes - what is the property needed to be restored to default?
How to make it hidden not by ESCAPE but by any button?
In next image I pictured the moment when only ESCAPE key can be pressed.
I'm not able to reproduce the issue, even when I use v2017.2.4 on windows. The behavior should be that you can still type even when the tooltip is present:
I can't think of anything in terms of settings that could cause this issue. If it's just the "parameter info" tooltip that is causing the issue, you can disable it (or just increase the delay time) from automatically popping up via the setting: Settings > Editor > Code Completion > "Parameter Info" > "Autopopup" You can then manually open it via the Parameter Info Action via Ctrl+P / ⌘P. The setting #Maciej-Białorucki mentioned will effect the time before other tooltips open. Setting to a high value might help if other tooltips are causing issues.
Personally, I find the auto popup useful. To troubleshoot why this is causing issues, I'd recommend trying the following:
Upgrade to v 2017.2.6 which was released yesterday. While I personally can't reproduce it, and I'm not seeing anything about it in the 2017.2.5 Release Notes nor the 2017.2.6 Release Notes, it can't hurt to try and upgrade.
Disable all third party plugins and restart IDEA. See if the issue persists. In my 14 years of using IDEA and helping people with it on the forums, I've seen 3rd party plugins having bugs that cause other parts of IDEA to misbehave. Since you recently upgraded, it's possible a 3rd party plugin is having a compatibility issue with the new version. If the disabling them solves it, use a binary search to as you re-enable the plugins to track down the culprit and then report the bug to the plugin's developer.
See if it happens in other projects. If not there may be something wrong with the project's configuration. (A long shot. But worth checking out)
As another long shot, you can try invalidating the caches and then restarting IDEA via File > Invalidate Caches / Restart... I have on occasion over the years seen a corrupted index file or cache cause strange behavior.
If none of the above work, I suggest opening a bug report with JetBrains at: https://youtrack.jetbrains.com
Check Tooltip initial delay(ms) option under Appearance in Idea settings.
As I divined there was a property in settings that influences to the behavior described in a question. So to continue writing code without pressing ESCAPE key you must uncheck the following property:
Menu page Settings -> Appearance & Behavior -> System Settings
Checkbox Accessibility -> Support screen readers (requires start)
(for more details see the link)

How in the earth my aplication is still running even when the appdelegate and main.m is missing

I restore the apps from time machine.
The app run just fine.
However, when I check the project, my appDelegate is gone. I can't see the file in the editor. It becomes red.
What is going on?
The files are still in finder though.
Restarting xcode doesn't work. Removing and adding files is kind of risky, though I'll give it a try tomorrow.
Maybe xcode just "forget" where the file is. But I get my app compiled.
Note: The problem is solved. Restarting iMac works. It's one of those get fixed by it self eventually. However, if someone can explain why the hell this happened in the first place it'll be great.
Check the target's Build Phases. The files being compiled can be shown in Finder using a context menu.
u can do a dirty move trick in deleting and re-adding ur file into Xcode. They'be correctly added into the build phase as well.
Deleting the reference is not risky because the references are lost. If you do a clean project, you may have a compiler build error.
U just has to drop again ur already added file into your Xcode project, but don't check "Copy items into destination group's folder" since your files are already included in your folder.
This happening to me lot of time when i'm using svn.
All those are good answer. I restarted iMac and things work fine.
I think this has happened several times. It's one of those fixed by itself problem eventually. This one it ticked me off that I asked question.
I still do not understand why it actually happens. So I'll wait for more people to answer this.

IntelliJ missing all inspections

I'm having an issue with IntelliJ, that I cannot seem to find a solution for myself. I have not changed any settings, yet when I started my IDE this morning, all Inspections and other highlighting has disappeared.
By highlighting, I mean stuff like variable names becoming purple, static finals shown with italic text, etc.
Inheritance seems to be broken as well, in that an implementing method links to the implemented interface method, but interface methods do not link to the implementing method.
My search for this tells me that there is an icon for this in the bottom right. That's set to "Inspections", and under configuration, it seems like everything is set to default.
Is there some way to un-break my IDE?
Another solution:
File -> Power Save mode
It needs to be disabled.
The (or at least one) answer to this is:
File -> Invalidate Caches
Make sure the folder the code is in is marked as the sources root. If it's not marked as the sources root, syntax highlighting will be very limited.
To mark a directory as the sources root, right click the directory, then navigate down to "Mark directory as" and select "Sources root."

WIX: change/repair/remove buttons disabled in WixUI_MaintenanceTypeDlg

I'm using WIX to create an installer and WixUI_Mondo for the UI. Everything had gone well until I stumbled upon a problem with MaintenanceTypeDlg. Things work finely when I install the application, however when I click the MSI later on (when the app is installed), I get change/repair/remove buttons grayed out.
Here are relevant parts of my installation project (sorry, didn't manage to put them inline, since they got cut by the forum software, so had to upload them to pastebin.ca): http://pastebin.ca/1958654.
So, as you see, I'm setting ARPNO*** properties to zero, and, what's more, the log shows these properties set to zero during install. I've also tried to swap include directives, so that UI goes after ControlPanel - unfortunately, with no luck. Any ideas about what am I doing wrong? Thanks in advance.
Don't set the ARPNO* properties; as the documentation says, "setting them" -- i.e., to anything -- disables the ARP behavior.