Home » Eclipse Projects » Eclipse Platform » Ganymede JavaDoc Auto-Completion problems
Ganymede JavaDoc Auto-Completion problems [message #331014] |
Thu, 21 August 2008 08:59  |
Eclipse User |
|
|
|
Hi,
I'm using Ganymede (Version: 3.4.0, Build id: I20080617-2000) in Mac OS
10.4 (intel) and experience problems with the JavaDoc autocompletion:
Precondition is an error- and warning-free project. I have a couple of
methods in different class files which have no JavaDoc comments yet.
Usually I type "/**" and RETURN to automatically create a JavaDoc
template I just have to fill in with my comments. That's the way it
worked in 3.3 everytime, everywhere and also in its predecessors.
But in 3.4 the autocompletion fails absolutely randomly on some methods
- I can find no logical connection between a non-working JavaDoc
autocompletion and the class files or methods. Sometimes it works,
sometimes it doesn't - it's not a matter of time (no restarts helps
e.g.), only the method itself matters.
"Not working" means that I type "/**" and RETURN and simply nothing
happens, the comment isn't even closed.
I have browsed the configuration dialogs up and down multiple times and
queried the knowledge base, but I seem to be the only one facing this
odd behaviour.
Has anybody any idea what's going on here?
Thank you very much in advance
Bastian
|
|
|
Re: Ganymede JavaDoc Auto-Completion problems [message #331090 is a reply to message #331014] |
Mon, 25 August 2008 07:06   |
Eclipse User |
|
|
|
Well,
obviously I'm the only one with that problem - very strange.
Sincerely I've restored the autocomplete defaults in the settings (even
if I never changed them) but it didn't help.
It has to be somewhat depending on the classfile - if the JavaDoc
autocompletion doesn't work for a specific method and I copy and paste
the method to another class, it most often works. But other method's may
work in the same class.
I have absolutely no idea what's the crux here...
Bastian
|
|
|
Re: Ganymede JavaDoc Auto-Completion problems [message #331093 is a reply to message #331090] |
Mon, 25 August 2008 08:31   |
Eclipse User |
|
|
|
Hi,
is there any none JavaDoc comment before? I think I can remember that
JavaDoc auto-creation failed when the code looked like this.
/*
*
*/
/** => didn't worked
public void bla() {
}
Tom
Bastian Preindl schrieb:
> Well,
>
> obviously I'm the only one with that problem - very strange.
> Sincerely I've restored the autocomplete defaults in the settings (even
> if I never changed them) but it didn't help.
>
> It has to be somewhat depending on the classfile - if the JavaDoc
> autocompletion doesn't work for a specific method and I copy and paste
> the method to another class, it most often works. But other method's may
> work in the same class.
>
> I have absolutely no idea what's the crux here...
>
> Bastian
--
B e s t S o l u t i o n . at
------------------------------------------------------------ --------
Tom Schindl JFace-Committer
------------------------------------------------------------ --------
|
|
|
Re: Ganymede JavaDoc Auto-Completion problems [message #331094 is a reply to message #331093] |
Mon, 25 August 2008 08:45   |
Eclipse User |
|
|
|
Hi,
no, there is no other comment before. The code looks like this:
/**
/* Javadoc autocompletion may work here
*/
public ... method (...) {
....
}
public ... othermethod (...) {
....
}
The JavaDoc autocompletion fails when putting /** in the line before
"public othermethod (...)" and hitting RETURN.
As it works properly in 3.3 I fear this is somewhat more delicate...
Thanks a lot
Bastian
|
|
|
Re: Ganymede JavaDoc Auto-Completion problems [message #331095 is a reply to message #331093] |
Mon, 25 August 2008 08:59   |
Eclipse User |
|
|
|
Hi,
some additional info (and most probably the root of all evil):
I've tested it on another machine, also Ganymede, but Mac OS 10.5.4.
Same behaviour. And it becomes even more odd:
A file, having a couple of private variables and public methods, has one
method looking like that:
public Bean executeMethod(HttpMethodBase method, Bean bean) throws
JobFinderException
{
method.setRequestHeader("Accept",
" text/xml,application/xml,application/xhtml+xml,text/html;q=0 .9,text/plain;q=0.8,image/png,*/*;q=0.5 ");
method.setRequestHeader("Accept-Language",
"de-de,de;q=0.8,en-us;q=0.5,en;q=0.3");
method.setRequestHeader("Accept-Encoding", "gzip,deflate");
method.setRequestHeader("Accept-Charset",
"ISO-8859-1,utf-8;q=0.7,*;q=0.7");
method.setRequestHeader("Keep-Alive", "300");
method.setRequestHeader("Connection", "keep-alive");
HttpClient client = new HttpClient();
.....
}
Autocompletion does not work here. BUT when I remove the line
method.setRequestHeader("Accept",
" text/xml,application/xml,application/xhtml+xml,text/html;q=0 .9,text/plain;q=0.8,image/png,*/*;q=0.5 ");
it works properly in the whole file.
Even if I just change the line to:
method.setRequestHeader("Accept",
" text/xml,application/xml,application/xhtml+xml,text/html;q=0 .9,text/plain;q=0.8,image/png;q=0.5 ");
it works as it should. So the crux here is that the string "*/" is
obviously confusing the - apparently very simple - algorithm for
detecting comments (and their ends).
I guess this is indeed a bug in Ganymede - what do you think?
Thanks
Bastian
|
|
|
Re: Ganymede JavaDoc Auto-Completion problems [message #331096 is a reply to message #331095] |
Mon, 25 August 2008 09:03  |
Eclipse User |
|
|
|
Bastian Preindl wrote:
> Hi,
>
> some additional info (and most probably the root of all evil):
>
> I've tested it on another machine, also Ganymede, but Mac OS 10.5.4.
> Same behaviour. And it becomes even more odd:
>
> A file, having a couple of private variables and public methods, has
> one method looking like that:
>
> public Bean executeMethod(HttpMethodBase method, Bean bean) throws
> JobFinderException
> {
> method.setRequestHeader("Accept",
> " text/xml,application/xml,application/xhtml+xml,text/html;q=0 .9,text/plain;q=0.8,image/png,*/*;q=0.5 ");
>
> method.setRequestHeader("Accept-Language",
> "de-de,de;q=0.8,en-us;q=0.5,en;q=0.3");
> method.setRequestHeader("Accept-Encoding", "gzip,deflate");
> method.setRequestHeader("Accept-Charset",
> "ISO-8859-1,utf-8;q=0.7,*;q=0.7");
> method.setRequestHeader("Keep-Alive", "300");
> method.setRequestHeader("Connection", "keep-alive");
> HttpClient client = new HttpClient();
> ....
> }
>
> Autocompletion does not work here. BUT when I remove the line
>
> method.setRequestHeader("Accept",
> " text/xml,application/xml,application/xhtml+xml,text/html;q=0 .9,text/plain;q=0.8,image/png,*/*;q=0.5 ");
>
>
> it works properly in the whole file.
>
> Even if I just change the line to:
>
> method.setRequestHeader("Accept",
> " text/xml,application/xml,application/xhtml+xml,text/html;q=0 .9,text/plain;q=0.8,image/png;q=0.5 ");
>
>
> it works as it should. So the crux here is that the string "*/" is
> obviously confusing the - apparently very simple - algorithm for
> detecting comments (and their ends).
>
> I guess this is indeed a bug in Ganymede - what do you think?
I think that bugzilla is the right forum to report bugs ;-)
Dani
>
> Thanks
>
> Bastian
|
|
|
Goto Forum:
Current Time: Tue Feb 11 00:10:03 GMT 2025
Powered by FUDForum. Page generated in 0.03347 seconds
|