How to get Intellij Idea to display compilation warnings? - intellij-idea

I'm working with Intellij Idea 10 and Java 6 JDK Update 7. When I run Build --> Rebuild Project command, and the (javac) compilation generates warnings, Idea doesn't display what those warnings exactly are in the Messages view. I just see an "Information: XX warnings" node, but no way to expand it to see the actual warnings. Or I just see a message "Compilation completed successfully with XX warnings" on the status bar. For errors, Idea displays the error information (error message, filename, line number etc.) automatically. How can I get it to work similarly with warnings?
(For the record, I've already tried using additional command line parameters such as -Xlint, but it does not make a difference.)

Make sure that "Hide Warnings" option is disabled in the Messages panel on the left:

Related

Netbeans IDE 8.1 warning for Class Length

I'm using Netbeans IDE 8.1 version for MVC (Codeigniter). In Model i'm getting warning like Class Length is 251 Lines (200 allowed).
What is exact meaning of this warning and if not resolved, then what exactly will happen ?
First, this warning is nothing to do with CodeIgniter. NetBeans is simply giving you a friendly advisory warning that your PHP class is more than 200 lines long (251 lines in your case).
Nothing bad will happen if you get that message, but you may or may not appreciate it. Either way, it can be configured as follows:
The message can be suppressed entirely if it is considered unhelpful.
Alternatively, the message can be shown as an "Info", "Warning" or "Error" message. By default it is a warning message.
The number of lines allowed before the message is displayed can be adjusted up or down as desired. The default is 200 lines.
Configure the message as follows:
Tools menu -> Options -> click the Editor icon -> click the Hints tab.
Select PHP from the Language drop list.
Select the Too Many Lines node from the list of message categories, and expand it.
Simply uncheck Class Declaration if you don't want to see the message at all.
Otherwise, select the severity of the message from the Show As drop list, and adjust the default line threshold of 200 if appropriate.
Here's the configuration screen:
Finally, note that these configuration settings are global. I don't believe it is possible to customize the message individually for each PHP project.

JDeveloper Error Pane Not Showing

I am using the JDeveloper IDE to build a Java application and, at some point, my error pane has stopped appearing to display compile errors.
When I alter the code to intentionally produce errors during compilation (such as deleting a required parenthesis or brace, etc), I will be informed that there were errors during compilation within the "Messages - Log" window. However, I cannot find the window which describes the errors occuring and their location in the code.
Basically, I just want to access the window that lists the errors found, what class they are located in and what line or method they are in. How do I do this?
Try from menu Window > Reset Windows to Factory Settings.

IntelliJ - show all compilation errors automatically in the project when code is changed

In Eclipse, when I make any code changes it automatically shows all compilation errors in the workspace in a console. It seems like in IntelliJ I have to make/build the project in order to see any compilation errors. Is there a window/tab to show all compilation errors?
Nowadays you have the same option as in eclipse to have automatic builds when you save.
Edit
Any changes in the editor will now trigger a compilation either when Ctrl+s is pressed or after a short interval.
This first image will show a main method and a class with a simple print method. No compilation errors.
In the next image I have removed the parameter message in the print method. That's the only thing I did, I did not even save I just waited a couple of seconds. And then suddenly the compilation error is shown below because the caller of the method has now supplied too many arguments.

Warnings in IntelliJ IDEA v12

The answer given for How to get Intellij Idea to display compilation warnings? no longer applies from version 12. There is no longer a messages panel, as far as I can see.
How can I see a full list of all warnings in the project in version 12?
This option and the Messages panel is on the same place as before in IDEA 12.0.3:
If you don't see it, it means that your project has no errors. Make any error and the panel will appear. Verify that Hide warnings is not enabled. Fix the error, Make the project again, you should see only warnings:
Note that Make is incremental, if there were no changes, it will not compile and report any old warnings, so you may need to Rebuild to see all of them.

Write to XCode build transcript

Is there any way to write to the XCode build transcript? What i want to do, is throw a warning if a device is not attached to the computer instead of an assertion failure in my unit test cases (some cases rely on an attached ipod).
I thought of something like the standard compiler warnings (only with custom message).
Thanks.
In shell build phases you can write to stderr using the following format:
<filename>:<linenumber>: error | warn | note : <message>\n
It's the same format gcc uses to show errors. The filename:linenumber part can be omitted. Depending on the mode (error, warn, note), Xcode will show your message with a red or yellow badge.
If you include an absolute file path and a line number (if the error occurred in a file), double clicking the error in the build log lets Xcode open the file and jumps to the line, even if it is not part of the project. Very handy.