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 233739 - NB gets stuck on "Locking file"
Summary: NB gets stuck on "Locking file"
Alias: None
Product: javascript
Classification: Unclassified
Component: Editor (show other bugs)
Version: 7.4
Hardware: PC Other
: P3 normal with 1 vote (vote)
Assignee: Petr Pisl
Depends on:
Reported: 2013-07-31 22:23 UTC by Petah
Modified: 2013-12-16 18:08 UTC (History)
1 user (show)

See Also:
Issue Type: DEFECT
Exception Reporter:

Profile (836.48 KB, application/octet-stream)
2013-07-31 22:23 UTC, Petah
Thread dump (38.86 KB, text/plain)
2013-07-31 22:24 UTC, Petah
messages.log (311.02 KB, text/plain)
2013-07-31 22:24 UTC, Petah

Note You need to log in before you can comment on or make changes to this bug.
Description Petah 2013-07-31 22:23:46 UTC
Created attachment 138091 [details]

NB gets stuck on "Locking file".

Sometime when I try to start editing a file, NB pops up a message saying:

Lengthy operation in progress
Locking C:\path\to\my\file.php

It never finishes, I have left it for about 5-10 minutes.

I checked the file for locks using Lock Hunter while NB was doing this, and it said nothing was locking the file.

I have to restart NB to fix this.
Comment 1 Petah 2013-07-31 22:24:13 UTC
Created attachment 138092 [details]
Thread dump
Comment 2 Petah 2013-07-31 22:24:48 UTC
Created attachment 138093 [details]
Comment 3 Petah 2013-08-01 21:36:25 UTC
Now it doing something else weird. Its popping up the same dialog, but it goes away after a while and my edits are not applied.
Comment 4 Miloslav Metelka 2013-08-28 15:03:45 UTC
The DataEditorSupport$Env.markModified() posts into ProgressUtils.
ProgressUtils is already running NbGenerateCodeAction which waits for Code Completion thread to finish. It is in RUNNABLE state so if it takes more than several minutes it seems that there's something strange in javascript2.editor.model.impl.
Comment 5 paulbrickell 2013-10-24 13:02:28 UTC
Is there any possible workaround? I can no longer use Netbeans for Javascript development.
Comment 6 tudorilisoi 2013-11-13 15:03:49 UTC
the same happens to me on ubuntu precise/32bit

java version "1.7.0_45"
Java(TM) SE Runtime Environment (build 1.7.0_45-b18)
Java HotSpot(TM) Client VM (build 24.45-b08, mixed mode)
Comment 7 Petr Pisl 2013-12-09 11:41:16 UTC
Guys, do you have a file, where I can reproduce it? It looks like resolving a type is never ending for some reason.
Comment 8 Petr Pisl 2013-12-09 11:59:31 UTC
For the original report, the build is a little old. Guys, did you try newer build. Do you have the option "Perform full type resolution" (Tools -> Options -> Editor -> Code Completion -> JavaScript) switch off? If not, could you switch off, whether it helps?
Comment 9 Petah 2013-12-09 20:22:24 UTC
Just FYI, for me "Perform full type resolution" is off. And I am using 201312020002 dev build.

Also my file system is not slow. Whatever netbeans is doing is slow.
Comment 10 Geertjan Wielenga 2013-12-16 14:53:39 UTC
Guys, do you have a file, where I can reproduce it? It looks like resolving a type is never ending for some reason.
Comment 11 Petah 2013-12-16 18:08:16 UTC
Happens all the time, with no particular steps tot reproduce. 

This is one project I have issues with