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

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.

Related

How to use methods from one project in another project with Intellij?

I have set up a project, which has a method that I want to use in another project. I tried adding the other project (the one that I want to get the method from) into my dependencies. However all this seems to have done is make so the errors in the text editing space disappear, but when I run the code I still get the errors that I would have gotten without adding the dependency.
The error report was pretty basic and just said that it can't find my symbols.
Also, the method that I want does autocomplete so clearly it is being detected, but for some reason just when I compile it does it encounter an error.

Intellij IDEA:How to copy wrong hint?

I want to copy the hint in the picture, what should I do?
The hints provided by IntelliJ in the editor are generally the same messages you'd see if you compiled the project. So, you can either:
compile the class, or
attempt to run your main method, which would attempt to compile this class
in order to copy the error message.
If the code does compile successfully, then a screenshot is your only option, as the tooltip text cannot be freely copied.

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.

Why doesn't Visual Studio debug my VB.NET application?

I recently have encountered a weird issue with my project: as soon as I click debug and it builds the project, it stops debugging. There isn't any error message, or anything else that comes up, including the form itself.
I've tried messing with the settings: no splash screen and I've even changed the startup form to a blank Windows form. What could be causing this problem? Is it Visual Studio or my code?
Probably your program is exiting normally. Set a breakpoint at the first statement to be executed, press F5, then single-step through the program until you get to the last statement executed.
If the first statement is never reached, then one of two things probably happened:
You're mistaken about which statement is executed first, or
The program is terminating during initialization, probably because a class constructor is exiting the program either normally or abnormally.
A few ideas:
Use Debug->Exceptions, and check all the checkboxes so you break when an exception is thrown.
Use Debug->Step into to step into your code.
Then you can use Step Over and Step Into (look at the menu for the keyboard shortcuts)
I found a solution, but not the problem.
How I fixed it:
I just created a template for each form, created a new project, and imported everything into the new project. One thing that I found useful is in the new project is to add an existing item (CTRL + D), and group select (maybe, don't know if you can) and select all the non-code/form/designer/etc. files (like text files or images) and then import them.
I have found a possible solution after I had the same problem.
You probably have more than one project in your solution (The main project, plus an "InstallShield" project",perhaps)
Make sure you have the main project set up as "Startup Project".
In the Solution Explorer, right click on the Main Project and select "Set as Startup Project".
Everything will then run OK.
If you get the error like: "The debug mode is program but there is no program specified....." Go to Solution Explorer then Right Click on main project's name and Click on Set as StartUp project. You can debug your program.

How to get Intellij Idea to display compilation warnings?

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: