Skip to main content



      Home
Home » Newcomers » Newcomers » How to fix several Java errors on the same line?
How to fix several Java errors on the same line? [message #157286] Mon, 19 June 2006 03:55 Go to next message
Eclipse UserFriend
Originally posted by: mikael.staldal.ingen-reklam-univits.com

I have Eclipse 3.1.2. I have turned off the "Report problems as you
type" option in Preferences->Java->Editor because I the default
behaviour annoying. That gives me a problem.

When there are errors in my Java code, Eclipse puts a lightnbulb in the
left column, and when I click on it I get advice on how to fix the
error. This is nice.

However, if there are two or more errors on the same line, I can only
get advice about one of them (Eclipse choose one for me).

How can I get advice on the other errors on the same line?

The only solution I have found is fix the first error, force rebuilding
by saving the file and then fix the other error. But it would be nice to
be able to fix all errors before saving/rebuilding.
Re: How to fix several Java errors on the same line? [message #157397 is a reply to message #157286] Mon, 19 June 2006 09:31 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: cburgess.progressrail.com

Mikael Ståldal wrote:
> I have Eclipse 3.1.2. I have turned off the "Report problems as you
> type" option in Preferences->Java->Editor because I the default
> behaviour annoying. That gives me a problem.
>
> When there are errors in my Java code, Eclipse puts a lightnbulb in the
> left column, and when I click on it I get advice on how to fix the
> error. This is nice.
>
> However, if there are two or more errors on the same line, I can only
> get advice about one of them (Eclipse choose one for me).
>
> How can I get advice on the other errors on the same line?
>
> The only solution I have found is fix the first error, force rebuilding
> by saving the file and then fix the other error. But it would be nice to
> be able to fix all errors before saving/rebuilding.

Insisting on that behavior would probably mean Eclipse would have to
_entirely_ reparse the _entire_ file you have open after _every single
character_ you type. I think performance would go to pot if Eclipse
were configured to work that way.
Re: How to fix several Java errors on the same line? [message #157404 is a reply to message #157397] Mon, 19 June 2006 10:02 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: mikael.staldal.ingen-reklam-univits.com

Chuck Burgess wrote:
> Insisting on that behavior would probably mean Eclipse would have to
> _entirely_ reparse the _entire_ file you have open after _every single
> character_ you type.

Why would it mean that? I only want to be able to access all errors
Eclipse already have discovered. I can access then if they are on
different lines.

I just discovered that I can access all errors on a line if I break up
the line. But it's cumbersome.
Re: How to fix several Java errors on the same line? [message #157412 is a reply to message #157404] Mon, 19 June 2006 10:15 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: cburgess.progressrail.com

Mikael Ståldal wrote:
> Chuck Burgess wrote:
>> Insisting on that behavior would probably mean Eclipse would have to
>> _entirely_ reparse the _entire_ file you have open after _every single
>> character_ you type.
>
> Why would it mean that? I only want to be able to access all errors
> Eclipse already have discovered. I can access then if they are on
> different lines.
>
> I just discovered that I can access all errors on a line if I break up
> the line. But it's cumbersome.

Based on that, it sounds more like Eclipse may be reparsing lines after
it sees modifications on said line have "ended", by either a line break
or a save. What other trigger could Eclipse use to recognize that you
want it to reparse the line you're on? A 2-second pause in typing on
that line?
Re: How to fix several Java errors on the same line? [message #157441 is a reply to message #157286] Mon, 19 June 2006 10:55 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: hendrik_maryns.despammed.com

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Mikael Ståldal schreef:
> I have Eclipse 3.1.2. I have turned off the "Report problems as you
> type" option in Preferences->Java->Editor because I the default
> behaviour annoying. That gives me a problem.
>
> When there are errors in my Java code, Eclipse puts a lightnbulb in the
> left column, and when I click on it I get advice on how to fix the
> error. This is nice.

You mean a yellow bulb with a red cross, right? If you click on it, you
should get the option to choose which error to fix. If not, switch to a
newer Eclipse...

H.
- --
Hendrik Maryns

==================
http://aouw.org
Ask smart questions, get good answers:
http://www.catb.org/~esr/faqs/smart-questions.html
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.2 (GNU/Linux)

iD8DBQFElrrFe+7xMGD3itQRAi6XAJ0Rp7oXXHPiUaK40H9+KnByO6wG5ACf arA/
q1iU+dRDjSh4rK9qzG5rjqg=
=yAfw
-----END PGP SIGNATURE-----
Re: How to fix several Java errors on the same line? [message #157464 is a reply to message #157441] Mon, 19 June 2006 11:20 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: mikael.staldal.ingen-reklam-univits.com

Hendrik Maryns wrote:
> You mean a yellow bulb with a red cross, right?

Yes.

> If you click on it, you should get the option to choose which error to fix.

I don't get that, it just jump to one of the errors (always the same).

> If not, switch to a newer Eclipse...

I use version 3.1.2, and it seems to be the latest version.
Re: How to fix several Java errors on the same line? [message #157472 is a reply to message #157412] Mon, 19 June 2006 11:21 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: mikael.staldal.ingen-reklam-univits.com

Chuck Burgess wrote:
> Based on that, it sounds more like Eclipse may be reparsing lines after
> it sees modifications on said line have "ended", by either a line break
> or a save. What other trigger could Eclipse use to recognize that you
> want it to reparse the line you're on?

I do not want it to rephrase anything.
Re: How to fix several Java errors on the same line? [message #158085 is a reply to message #157464] Thu, 22 June 2006 07:23 Go to previous message
Eclipse UserFriend
Originally posted by: mikael.staldal.ingen-reklam-univits.com

Mikael Ståldal wrote:
> I use version 3.1.2, and it seems to be the latest version.

I have now upgraded to 3.2RC7, and the problem remains.
Previous Topic:Problem accessing Help
Next Topic:Infopop support in RSA6.0
Goto Forum:
  


Current Time: Tue May 06 10:20:58 EDT 2025

Powered by FUDForum. Page generated in 0.06613 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top