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.

Bug 207879 - Checking for external changes hangs preventing source format, code completion and syntax check
Summary: Checking for external changes hangs preventing source format, code completion...
Status: RESOLVED FIXED
Alias: None
Product: editor
Classification: Unclassified
Component: CSL (API & infrastructure) (show other bugs)
Version: 7.2
Hardware: PC Linux
: P1 normal (vote)
Assignee: Tomas Zezula
URL:
Keywords:
Depends on: 207989
Blocks: 207893
  Show dependency tree
 
Reported: 2012-01-29 14:07 UTC by paolosca
Modified: 2012-02-03 10:35 UTC (History)
2 users (show)

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments
Netbeans messages log (93.40 KB, text/x-log)
2012-01-29 14:07 UTC, paolosca
Details
Snapshot after code completion invoked (13.76 KB, application/octet-stream)
2012-01-30 10:19 UTC, Ondrej Brejla
Details
Snapshot after source format invoked (21.19 KB, application/octet-stream)
2012-01-30 10:20 UTC, Ondrej Brejla
Details
Just another CC snapshot. (12.04 KB, application/octet-stream)
2012-01-30 10:23 UTC, Ondrej Brejla
Details
CC snapshot (12.66 KB, application/octet-stream)
2012-01-30 10:40 UTC, Ondrej Brejla
Details
TDs... (4.90 KB, application/x-gzip)
2012-01-30 13:38 UTC, Ondrej Brejla
Details
Message.log (101.24 KB, text/x-log)
2012-01-30 14:54 UTC, Ondrej Brejla
Details

Note You need to log in before you can comment on or make changes to this bug.
Description paolosca 2012-01-29 14:07:31 UTC
Created attachment 115354 [details]
Netbeans messages log

Product Version: NetBeans IDE Dev (Build nbms-and-javadoc-8568-on-20120120)
Java: 1.7.0_147-icedtea; OpenJDK Client VM 21.0-b17
System: Linux version 3.2.0-1-686-pae running on i386; UTF-8; en_US (nb)
User directory: /home/paolo/.netbeans/dev
Cache directory: /run/netbeans

Once in a while "Checking for external changes" hangs, it just says Suspended but there is no progress (progress bar is grey).

While the editor is in this state other IDE functions like source formatting, code completion and syntax check don't work.

In messages.log I have lots of the following warnings:

WARNING [org.netbeans.modules.parsing.impl.indexing.errors.TaskProvider]: file: /var/www/cogeweb/cgphp/php/cnpiasoc.php is not on its own source classpath: , project: class org.netbeans.modules.php.project.PhpProject
WARNING [org.netbeans.modules.java.editor.whitelist.WhiteListTaskProvider]: file: /var/www/cogeweb/cgphp/php/cnpiasoc.php is not on its own source classpath: , project: class org.netbeans.modules.php.project.PhpProject

Regards,

Paolo
Comment 1 Tomas Mysik 2012-01-30 09:31:20 UTC
Tome, what does the message mean exactly, please?

Thanks for reporting, I will look at it.
Comment 2 Tomas Zezula 2012-01-30 10:00:25 UTC
The warning is probably unrelated.
It complains that the Project returned a class path for a file which does not contain the file.
Can someone generate thread dumps? At least 3 successive thread dumps when the Checking for external changes is frozen with 5 sec delay are needed.
Comment 3 Ondrej Brejla 2012-01-30 10:19:56 UTC
Created attachment 115375 [details]
Snapshot after code completion invoked
Comment 4 Ondrej Brejla 2012-01-30 10:20:26 UTC
Created attachment 115376 [details]
Snapshot after source format invoked
Comment 5 Ondrej Brejla 2012-01-30 10:20:42 UTC
CCing me
Comment 6 Ondrej Brejla 2012-01-30 10:23:16 UTC
Created attachment 115377 [details]
Just another CC snapshot.
Comment 7 Ondrej Brejla 2012-01-30 10:40:52 UTC
Created attachment 115378 [details]
CC snapshot

It happens everytime I make a change in a file and then invoke CC.
Comment 8 Ondrej Brejla 2012-01-30 13:38:30 UTC
Created attachment 115387 [details]
TDs...

And here are four thread dumps...in the third, I think there is a CC thread waiting for Parsing loop which is waiting for something....maybe :)
Comment 9 Ondrej Brejla 2012-01-30 14:54:11 UTC
Created attachment 115393 [details]
Message.log

And here is just a message log...maybe it can help. The end (PARKing) is done after I typed a "space" in the editor...nothing else...just run the IDE and after few secs I typed a space.
Comment 10 Ondrej Brejla 2012-01-31 12:29:54 UTC
It doesn't work in javascript support as well (since background_scan branch was merged).

Reproducible test case: open project, open php (or javascript) file...click somewhere and invoce CC...it works. Type a space (edit that file), invoke CC again and just "Please wait..." item appears.

To let CC work again, you have to restart IDE.
Comment 11 Tomas Zezula 2012-01-31 12:41:34 UTC
I will look at it.
Comment 12 Tomas Zezula 2012-02-01 14:29:33 UTC
Hot fixed.
Fixed jet-main c40fef63e428
Comment 13 paolosca 2012-02-03 09:45:21 UTC
Bug is still present in latest nightly build (20120202):

Product Version: NetBeans IDE Dev (Build 201202020600)
Java: 1.7.0_147-icedtea; OpenJDK Client VM 21.0-b17
System: Linux version 3.2.0-1-686-pae running on i386; UTF-8; en_US (nb)
User directory: /home/paolo/.netbeans/dev
Cache directory: /run/netbeans

Do you know when the fix will be available?

Thanks,

Paolo
Comment 14 Tomas Zezula 2012-02-03 09:48:06 UTC
When it gets into the silver-main and will be built by the build server. The notification will be added into this issue by build server.
Comment 15 paolosca 2012-02-03 10:35:48 UTC
(In reply to comment #14)
Thank you.