No file and line number information for build error messages

Answered

Just recently I stopped getting the file and line number associated with Java build errors. I was using 2017.2 on Windows 7 at the time. I updated to 2018.3.3 to see if that would fix the issue. It did not.  I could really use some help sorting out my problem. The following is some output from my build

Information:java: Some input files use or override a deprecated API.
Information:java: Recompile with -Xlint:deprecation for details.
Information:java: Some input files use unchecked or unsafe operations.
Information:java: Recompile with -Xlint:unchecked for details.
Information:java: Some messages have been simplified; recompile with -Xdiags:verbose to get full output
Information:java: Errors occurred while compiling module 'HEAD'
Information:javac 9.0.4 was used to compile java sources
Information:1/25/2019 3:35 PM - Compilation completed with 33 errors and 2 warnings in 5 m 18 s 753 ms
Error:java: constructor SimulationTreeTableRow in class ui.views.simulation.treeWindow.SimulationTreeTableRow cannot be applied to given types;
required: ui.views.simulation.treeWindow.SimulationTreeWindowModel,ui.views.waveform.executive.protobuf.WVTree.WVTreeNode
found: ui.views.waveform.executive.protobuf.WVTree.WVTreeNode
reason: actual and formal argument lists differ in length
Error:java: package m_panel does not exist
Error:java: m_node has protected access in ui.views.simulation.objects.SimulationObjectsModel.TreeTableRow
Error:java: m_node has protected access in ui.views.simulation.objects.SimulationObjectsModel.TreeTableRow

 

Thanks in advance!

 

0
4 comments

Is it specific to IntelliJ IDEA? Do you get line numbers when compiling outside of IntelliJ IDEA using javac or via Maven/Gradle?

Are you sure there were line numbers in this specific error?

0
Avatar
Permanently deleted user

The problem is specific to this one project. I tried the Hello, World! example and it does the right thing. I am sure I have something wrong in my project setup. Can you give me an idea of how the file/line number information is gathered? Does it come from an output file? If it does where is that located? 

0

Check the compiler settings, make sure debugging info generation is enabled:

0
Avatar
Permanently deleted user

It is. I have a Linux IDEA environment that works properly. I am comparing the two to see what I messed up. Thanks for your help. When I figure out what the issue is, I will post my results here.

0

Please sign in to leave a comment.