Solved

Eclipse Problems output/tab

Posted on 2008-10-20
8
769 Views
Last Modified: 2013-12-15
Hello, I have enabled the Eclipse Windows/show view/Problems (tab) and I have 52 warnings.  Let's say that they could be errors listed as well.
My question is: When they are listed.  Is the top listed warning/error occuring first or is it the last one.
In other words, which warning/error should I solve first, the bottom one or the top one.
I hope I made sense.
0
Comment
Question by:chima
  • 4
  • 2
  • 2
8 Comments
 
LVL 4

Expert Comment

by:tvedtem
Comment Utility
Fix the errors first, then the warnings (if you want to)
It doesn't matter which error you fix first, nor which warning.
0
 
LVL 24

Expert Comment

by:sciuriware
Comment Utility
Double click the TAB so it fills the screen, then choose a message and check if you
understand it. Then double that message and ECLIPSE brings you to the source
and line of that error.
You'll see a little icon to the left.
Right click it for more info.

And so on.

;JOOP!
0
 
LVL 24

Expert Comment

by:sciuriware
Comment Utility
I forgot to tell you that, before you can double click a message in the Problems tab
you have to double click the TAB again or the source can't become visible
because of the full screen state of the problems tab.

Good to have a 24" screen for that.....

;JOOP!
0
 

Author Comment

by:chima
Comment Utility
tvedtem: and joop, I might have been clicking on the tab automatically, to get what you explained.  Now I know that I do have to click on the tab.  I knew about the other click comments you made.  What I am looking for is which direction does the information grow.  Let's say for example that one error creates several other errors.  Is the first error detected at the bottom or at the top of the list?
0
IT, Stop Being Called Into Every Meeting

Highfive is so simple that setting up every meeting room takes just minutes and every employee will be able to start or join a call from any room with ease. Never be called into a meeting just to get it started again. This is how video conferencing should work!

 
LVL 4

Accepted Solution

by:
tvedtem earned 250 total points
Comment Utility
I think it's sorted by field, by default by the error message...
e.g. your messsages would be in a strange looking order perhaps initially.....
proxyHost cannot be resolved Sandbox Proxy.java line 109
proxyHost cannot be resolved Sandbox Proxy.java line 200
Syntax error on token "2", delete this token Sandbox Proxy.java line 12
 
In the above, the error on line 12 is causing the errors on 109/200.  Eclipse doesn't tell us this though, because it has sorted 'proxy' before 'Syntax'.
Within a file at least, you'll get the 'first' problem by sorting on location (click the 'location' field to sort) so the above becomes..
Syntax error on token "2", delete this token Sandbox Proxy.java line 12
proxyHost cannot be resolved Sandbox Proxy.java line 109
proxyHost cannot be resolved Sandbox Proxy.java line 200

0
 
LVL 24

Assisted Solution

by:sciuriware
sciuriware earned 250 total points
Comment Utility
That's not a good approach:
a missing { or a spurious keyword is not always preceded or followed
by so-called 'fantom-errors'.
It is important that you check a method with an error in it as a whole.
Many compilers complain top-down; not JAVA.
Especially the eclipse compiler is very smart.
It helps a lot to set the error messages in:
Window-Preferences-Java-Compiler-Errors/Warnings.
Some errors are no errors but style problems.
For instance, you may not make use of serialization or externalized strings.
On the other hand you can set your personal style sharper by not allowing
to ignore arguments etc.

Work like that, also when solving errors.

;JOOP!
0
 
LVL 24

Expert Comment

by:sciuriware
Comment Utility
My response was to the asker.

If you check for simple errors in the code around the flagged error,
like missing ; { } [ ] etc.
you will solve errors faster than working from the first error message.
Also you will recognise certain errors.

;JOOP!
0
 

Author Closing Comment

by:chima
Comment Utility
thanks
0

Featured Post

How to run any project with ease

Manage projects of all sizes how you want. Great for personal to-do lists, project milestones, team priorities and launch plans.
- Combine task lists, docs, spreadsheets, and chat in one
- View and edit from mobile/offline
- Cut down on emails

Join & Write a Comment

Java contains several comparison operators (e.g., <, <=, >, >=, ==, !=) that allow you to compare primitive values. However, these operators cannot be used to compare the contents of objects. Interface Comparable is used to allow objects of a cl…
Introduction This article is the last of three articles that explain why and how the Experts Exchange QA Team does test automation for our web site. This article covers our test design approach and then goes through a simple test case example, how …
Viewers learn how to read error messages and identify possible mistakes that could cause hours of frustration. Coding is as much about debugging your code as it is about writing it. Define Error Message: Line Numbers: Type of Error: Break Down…
Viewers will learn one way to get user input in Java. Introduce the Scanner object: Declare the variable that stores the user input: An example prompting the user for input: Methods you need to invoke in order to properly get  user input:

763 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

11 Experts available now in Live!

Get 1:1 Help Now