Eclipse problems view not showing warnings - java

I have a very similar problem to these threads: Eclipse Problems View not showing Errors anymore and Eclipse Problems View doesn't show Errors
However, my problem is that warnings are not showing up any longer, instead of errors. Errors show up just fine. They aren't showing up in files either. I tried the solutions in that thread anyways, but no luck.
I even tried going to Configure Contents and added a configuration to show everything with severity of "Warning". I tried moving the project to another computer, and warnings showed up just fine. I tried re-installing Eclipse, and the same issue appeared. Any other ideas?

This could be a problem with the Java compiler settings where you describe whether each kind compile issue (e.g. local value not read, etc.) is to be treated as an error, warning or simple ignored.
Go to Preferences -> Java -> Compiler -> Errors/Warnings and confirm that the warnings you expect to be flagged are in fact configured to be warnings.

Related

How to remove this error signs in my Eclipse IDE?

It shows too many errors but the codes we're ok.
Put your mouse on the red fork, IDE will display the detailed error message.
first check all the methods were define correctly all the required statements should be imports. even though the errors are still then just do one thing.
got Project tab and clean the project.
this is enough for resolving the errors.

Intellij show warnings as errors

A feature I like in eclipse the most is that it easily shows me all my errors and warnings in the code (in a list)
Also - by each file there is a mark whether the file has warnings/errors
In Intellij I found it rather challenging...
So for all the Intellij experts out there -
Is there a way so show warnings in a list (I saw something similar in the messages toolbar but it dissapears when there are no compilation errors)
How can I see if a file has warnings without looking into it's contents?
Thanks!
Also I like error/warning list that appears when trying to commit file into Subversion. If any errors or warnings present in file, IDEA shows popup window with Review button. This button opens Message sub-window with very handy and good-looking errors/warnings list.
P.S. Also may be helpful Build -> Rebuild Project
P.S.2. Also see about displaying warnings here: Warnings in IntelliJ IDEA v12
I think what you're looking for is "Inspect Code" under the "Analyze" menu. It allows you to specify which inspections you want to run (called an Inspection Profile) and on what set of files, and puts them all in a window to let you look through them and resolve them.
See Code Inspection in the documentation for more information.
If you do build->rebuild project in IntelliJ, the messages tab (usually at the bottom) should show all the warnings. They should not disappear anywhere even after compiler has finished. If they do, check you have not enabled the "hide warnings" icon on the messages tab.
I guess the difference with Eclipse is due to Eclipse always running the background compiler and also collecting the warnings. IntelliJ runs its own parser and highlights errors in the source tree, haven't really needed the warnings to be displayed always so not sure how to do that.

Eclipse Kepler shows error marks on warnings

I've got a problem with Eclipse Kepler. In my Java project i've got some warnings and now they are shown as error marks (red crosses) in the project explorer.
It looks like this picture http://i.stack.imgur.com/H8j7f.png
So my question is:
Is it possible to switch it back to the yellow cross for warnings and red cross for errors?
I haven't found anything about it, so I hope you can help me.
Edit:
I've made a test project, and here is a screenshot:
Thanks!
It might me because you set the compiler to mark as errors what used to be a warning. You can set this in the Window->Preference menu. So open it and go into Java->Compiler->ErrorsWarnings and check if everything is like you want it to be.
You can also check into the compiler menu (Java->Compiler) if the java Compiler compliance level is set as you want it to be as #Chrylis suggested.
Otherwise it might be because your program is unable to compile because of a dependency problem then you might want to check your build path or JRE in the Run configurations menu.
Right click on your project -> Run as -> Run Configurations.
I solved it :)
At the first start I took my old workspace as workspace. Because of that there was an Error "Missing Action set" (I've found the "error log"-window :) ) and thats why the red crosses has been shown.
Now I have a new workspace and now everything is fine!

refresh out of date eclipse warnings

I have a warning in my Java code that I fixed. However, it remains in the "Problems" view. I can't figure out how to get eclipse to refresh it. It's even highlighting the wrong line (it's an unchecked cast, and it's displaying on the method header line)
I'm using eclipse 3.7.2 with the android development kit and the git plugin installed in the workspace, although this project is not an android project.
The project does not have a builder associated with it; I am building at the command line. I have cleaned and rebuilt everything and refreshed the project.
I've also tried removing org.eclipse.jdt.core and org.eclipse.core.resources/.projects//.indexes, and I've tried closing and re-opening the project.
Any suggestions?
Does the "Source" column of the problems view say "Android lint" for this warning, even though it is no Android project? If so, please upgrade the Android Development Tools plugin to the current version. In ADT 20.0.2 a bug was fixed which held outdated Java warnings/errors active even after fixing them.
See suggestion by original requester in comments for How to update warnings in Eclipse?
"Take a look in the 'Problems' view and delete the warnings manually."
Once the 'stuck' warnings are deleted normal Eclipse service should resume.

Intellij IDEA: False positives on build

I'm using Intellij IDEA for work on a Java project.
I'm finding I get a lot of false positives when I build in Intellij, but only when there are other compilation errors - e.g. I've made a change and expect a number of compile errors, so I build to find all the errors. (In this instance, I changed a widely used interface, and want the compiler to catch the errors so that I know which implementations to fix.) In addition to some of these expected errors, Intellij reports hundreds of false positives (which makes it difficult to find the real errors - at present the compiler is showing only one genuine compile error each time, so I have to rebuild to find the next error...). These false compile errors are not highlighted - indeed, they are not real compile errors. (Nor do they appear if I compile via Maven.)
The most common error is 'cannot find symbol class [X]', despite that class often being in the same project.
I've tried:
- upgrading Intellij (from 10.5.1 to 10.5.2 to 11.0.1)
- invalidating and rebuilding caches
- restarting Intellij
...but all to no effect.
I've searched the Intellij Bug Tracking board, but haven't found any reference to this there, so wondered whether this is user error (if so, what settings do I need to change)?
Has anyone else experienced anything like this? If so, how did you fix it?
This is probably too late to help you, but maybe it will help somebody else. I had a similar problem. IntelliJ complained that it couldn't find a symbol class, and the class it couldn't find had an icon with a little x in the upper left hand corner. The x indicates that the class was excluded from compilation. (I have no idea how that happened.)
To include the excluded file, access project settings, e.g., by clicking Ctrl+Alt+S. Then you can modify the list found under Project Settings -> Compiler -> Excludes, to re-include the excluded file.
Such issue can be caused by incorrect project configuration, like when some module source directories are added to the dependencies as library roots. If you can't find a problem yourself, either contact support or file a bug to YouTrack with a sample project attached and the steps to reproduce the problem.

Categories