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.
Build: NetBeans IDE Dev (Build 20141009-55af4c8de886) VM: Java HotSpot(TM) 64-Bit Server VM, 24.72-b04, Java(TM) SE Runtime Environment, 1.7.0_72-b14 OS: Linux User Comments: tmysik: move package.json from one HTML5 project to another Stacktrace: java.lang.AssertionError: Unhandled property change: PROJECT_NAME at org.netbeans.modules.web.clientproject.ClientSideProject$PlatformProvidersListenerImpl.propertyChanged(ClientSideProject.java:1011) at org.netbeans.modules.web.clientproject.api.platform.PlatformProvidersListener$Support.firePropertyChanged(PlatformProvidersListener.java:129) at org.netbeans.modules.web.clientproject.api.platform.PlatformProviders$DelegatingPlatformProviderListener.propertyChanged(PlatformProviders.java:272) at org.netbeans.modules.web.clientproject.spi.platform.PlatformProviderImplementationListener$Support.firePropertyChanged(PlatformProviderImplementationListener.java:115) at org.netbeans.modules.javascript.nodejs.platform.NodeJsPlatformProvider.propertyChange(NodeJsPlatformProvider.java:174) at java.beans.PropertyChangeSupport.fire(PropertyChangeSupport.java:335)
Created attachment 149954 [details] stacktrace
Mainly project name and start file.
This must be fixed in FCS.
Project name sync done, will be pushed today. Start file follows.
Should be working now I hope. Please verify, thanks.
Tomasi I've found two issues: #1 - create a NodeJS sample project - right click on project and select Rename - check to also rename project folder => project name is not updated in package.json. It is if project folder is set to keep its name #2 - create a NodeJS sample project - in project properties, set start file to listdirectory.js instead - confirm package.json sync => package.json contains "start": "node src\/listdirectory.js" while it should be "start": "node src/listdirectory.js" Product Version: NetBeans IDE Dev (Build 201410310002) Updates: Updates available Java: 1.8.0_20; Java HotSpot(TM) Client VM 25.20-b23 Runtime: Java(TM) SE Runtime Environment 1.8.0_20-b26 System: Linux version 3.13.0-35-generic running on i386; UTF-8; en_US (nb)
(In reply to Vladimir Riha from comment #6) > "start": "node src\/listdirectory.js" > > while it should be > > "start": "node src/listdirectory.js" Likely not, we use JSONValue.escape() so it is perhaps OK.
(In reply to Vladimir Riha from comment #6) > #1 > - create a NodeJS sample project > - right click on project and select Rename > - check to also rename project folder > => project name is not updated in package.json. It is if project folder is > set to keep its name Should be fixed now. Closing, point #2 explained earlier. Thanks. http://hg.netbeans.org/web-main/rev/227c025ba292
Integrated into 'main-silver', will be available in build *201411010002* on http://bits.netbeans.org/dev/nightly/ (upload may still be in progress) Changeset: http://hg.netbeans.org/main-silver/rev/227c025ba292 User: Tomas Mysik <tmysik@netbeans.org> Log: #247997 cont'd - Sync changes between project and its package.json
Tomasi, I've tried the > - create a NodeJS sample project > - right click on project and select Rename > - check to also rename project folder > => project name is not updated in package.json. It is if project folder is > set to keep its name and now IDE displays the confirmation dialog (if I want to sync changes with package.json) but it immediately disappears without waiting for confirmation. The same happens if the folder is not supposed to be renamed. Do you want me to file a new issue for it? Thanks
(In reply to Vladimir Riha from comment #10) > Do you want me to file a new issue for it? Yes please, thanks.
Reported as #248485. Thank you