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 253223 - Deleting html5 project including sources raises 'can not lock read only bower.json file'
Summary: Deleting html5 project including sources raises 'can not lock read only bower...
Status: NEW
Alias: None
Product: projects
Classification: Unclassified
Component: Generic Infrastructure (show other bugs)
Version: 8.1
Hardware: PC Linux
: P3 normal (vote)
Assignee: Tomas Stupka
Depends on:
Reported: 2015-06-28 08:23 UTC by everflux
Modified: 2015-07-23 06:50 UTC (History)
1 user (show)

See Also:
Issue Type: DEFECT
Exception Reporter:


Note You need to log in before you can comment on or make changes to this bug.
Description everflux 2015-06-28 08:23:26 UTC
Product Version: NetBeans IDE Dev (Build 201506260309)
Updates: Updates available
Java: 1.8.0_45; Java HotSpot(TM) 64-Bit Server VM 25.45-b02
Runtime: Java(TM) SE Runtime Environment 1.8.0_45-b14
System: Linux version 3.19.0-21-generic running on amd64; UTF-8; en_US (nb)

I switched to a different project group with several php/html5-js projects. I right clicked on a project I wanted to delete, I selected "remove source files as well".

Afterwards the project directory was empty except the .git folder. I had to delete the directory myself.

INFO [org.netbeans.modules.parsing.impl.indexing.RepositoryUpdater]: Complete indexing of 0 source roots took: 0 ms (New or modified files: 0, Deleted files: 0) [Adding listeners took: 0 ms]
WARNING [org.netbeans.modules.project.uiapi.DefaultProjectOperationsImplementation]

Caused: org.netbeans.modules.masterfs.filebasedfs.utils.FSException: Cannot lock read-only file /home/tkruse/arbeit/projekte/crosswords/bower.json.
        at org.netbeans.modules.masterfs.filebasedfs.fileobjects.FileObj.lock(
        at org.openide.filesystems.FileObject.delete(
        at org.netbeans.modules.project.uiapi.DefaultProjectOperationsImplementation.performDelete(
        at org.netbeans.modules.project.uiapi.DefaultProjectOperationsImplementation.access$200(
[catch] at org.netbeans.modules.project.uiapi.DefaultProjectOperationsImplementation$1.execute(
        at org.netbeans.modules.project.uiapi.DefaultProjectOperationsImplementation$6$
        at org.openide.util.RequestProcessor$
        at org.netbeans.modules.openide.util.GlobalLookup.execute(
        at org.openide.util.lookup.Lookups.executeWith(
        at org.openide.util.RequestProcessor$
ALL [null]: Cannot lock read-only file /home/tkruse/arbeit/projekte/crosswords/bower.json.
ALL [null]: Project crosswords cannot be deleted.
WARNING [org.netbeans.modules.masterfs.watcher.Watcher]: Cannot add filesystem watch for /home/tkruse/arbeit/projekte/crosswords/node_modules/grunt-serve/tasks: addWatch
 on /home/tkruse/arbeit/projekte/crosswords/node_modules/grunt-serve/tasks errno: 2
Comment 1 Tomas Mysik 2015-07-23 06:49:35 UTC
Reassigning, not sure we can do anything with it. Thanks.
Comment 2 Tomas Mysik 2015-07-23 06:50:48 UTC
(In reply to Tomas Mysik from comment #1)
> Reassigning, not sure we can do anything with it. Thanks.

I meant other than catching the exception and informing user that something went wrong.