This Bugzilla instance is a read-only archive of historic NetBeans bug reports. To report a bug in NetBeans please follow the project's instructions for reporting issues.
Yesterday's build from main-golden. Having the lines in the editor and the cursor at | static Log LOG = LogFactory.getLog(AdIdReduceTest.class); ... LOG.| assert 0 == someCondition() : "someCondition non zero"; Then choosing the autocompletion for the "debug(Object)" method results in the lines LOG.debug(object) assert; 0 == someCondition() : "someCondition non zero"; Notice the semicolon on the second line. wtf?
Unfortunately, I cannot reproduce the problem in the current dev build. Could you please create a simple test case and attach it to the issue? Thanks.
Created attachment 107436 [details] Bug197221.java Open the file in netbeans. Autocomplete line 8 (it doesn't matter which method from the autocomplete list you choose).
(remove the second import statement. it crept in).
Updated main-golden and rebuilt. still reproducible.
I've just tested your case and I'm still not able to reproduce. Could you please make sure, that your build contains the following changeset: http://hg.netbeans.org/main/rev/0a374763a147 ? Also, could you please download the latest dev build form http://bits.netbeans.org/dev/nightly/ ant test it using that build? Thanks.
dev nightly does not reproduce the problem. The main-golden sources i'm building from does include that changeset so i have no suggestion why my main-golden fails but the nightly dev is ok. Any ideas? I used both with the same userdir.
I have no idea what's wrong with your build. Did you perform full clean-build or did you perform some incremental building sequence? Also, have you tried to clean caches inside your NB userdir (or to start NB with the new userdir)? Anyway, since the dev build works correctly - closing as WORKSFORME.
my builds are done with # initial hg clone http://hg.netbeans.org/main-golden cd main-golden ant build-nozip # next time hg pull hg update -C ant clean-untracked-files clean build-nozip Is there anything wrong there?
`rm -fR var/*` didn't help.
I've just tried hg clone http://hg.netbeans.org/main-golden cd main-golden ant build-nozip and it works for me. Really don't know what is wrong with your build.
Ok. there was a file sticking in the "final" netbeans install directory. removing it fixed the problem. thanks for being persistent Dusan.
original issue was #177657