Highlighting level will not change to "Inspections"

Answered

IntelliJ no longer allows me to change the highlighting level to inspections.  I have uninstalled and reinstalled IntelliJ, Python, the Python plugins, invalidated the cache and then restarted.  I have messed with the Inspections in the Editor, that did not help, so I changed them back to default settings.  I have done everything except throw out my computer and build a new one.

This is what happens when I try to change the highlighting level to Inspections.

The problem did fix itself in exactly one Python file while I was working.  I pressed Enter and suddenly all of the Inspections popped up and the highlighting level had changed.  It still does not work for any projects created before or after the one where it fixed itself.

Are there any known solutions to this?

Edit: It now seems to be working on new Python files and projects, but it still does not function in existing files

0
3 comments

Try the steps from https://intellij-support.jetbrains.com/hc/en-us/articles/360007568559 (to run with a clean install and all the default settings / no third-party plug-ins).

If the issue persists, share a sample project to reproduce it and the logs (Help | Collect Logs and Diagnostic Data) at https://uploads.services.jetbrains.com/.

0
Avatar
Permanently deleted user

It seems like the problem has to do with where I create the .py files. If I right-click on .idea, then select New Python File, the inspections will not work.  If I right-click the project name, they do work.  This doesn't explain why the inspections stopped working when I was in the middle of a project, but I have checked and moving files up to the Project directory rather than the .idea subdirectory does fix the problem.

0

.idea directory is for the project metadata only, not for your project source files.

See also https://www.jetbrains.com/help/idea/configuring-content-roots.html.

0

Please sign in to leave a comment.