You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@netbeans.apache.org by "Ludovic HOCHET (Jira)" <ji...@apache.org> on 2021/07/14 22:05:00 UTC

[jira] [Commented] (NETBEANS-5851) Renaming a file in an HTML project with git support closes file after rename

    [ https://issues.apache.org/jira/browse/NETBEANS-5851?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17380876#comment-17380876 ] 

Ludovic HOCHET commented on NETBEANS-5851:
------------------------------------------

I can reproduce with:
*Product Version:* Apache NetBeans IDE 12.4
*Java:* 17-internal; OpenJDK 64-Bit Server VM 17-internal+25-adhoc.Ludovic.jdk

*Runtime:* OpenJDK Runtime Environment 17-internal+25-adhoc.Ludovic.jdk

*System:* Windows 10 version 10.0 running on amd64; Cp1252; fr_FR (nb)

 
 # Open NetBeans 12.4
 # Create a new HTML5/JS application project (next, next,... finish), the index.html file is open
 # Initialise a Git repository for it (right click on the project, Versioning/Initialise Git Repository, ok on the dialog)
 # Change the system rename keybinding (Tools/Options/Keymap, search for rename, edit the system category one, set the shortcut to F2, ok)
 # Click on say the title line of index.html in the editor
 # Press F2, the rename dialog open, change the name to indexs then ok
 # This may, or may not close the editor for index(s), if it does not, then trying again (F2, indexs2) does it for me and closes the editor for indexs2.
 # Then on, I can repeat by reopening the index, then renaming with F2
 # If I close and reopen NetBeans, then I can reproduce on the second attempt

Along side step 6 I get:
{noformat}
java.lang.IllegalStateException: Warning - the node "indexs.html" [org.netbeans.modules.html.api.HtmlDataNode] is trying to fire the property name which is not included in its property sets. This is illegal. See IZ #31413 for details.
	at org.openide.nodes.Node.firePropertyChange(Node.java:996)
	at org.openide.loaders.DataNode.access$1000(DataNode.java:44)
	at org.openide.loaders.DataNode$5.run(DataNode.java:870)
	at org.netbeans.modules.openide.util.GlobalLookup.execute(GlobalLookup.java:45)
	at org.openide.util.lookup.Lookups.executeWith(Lookups.java:278)
	at org.netbeans.modules.openide.util.NbMutexEventProvider$Event.lambda$doEvent$0(NbMutexEventProvider.java:101)
	at java.desktop/java.awt.event.InvocationEvent.dispatch(InvocationEvent.java:318)
	at java.desktop/java.awt.EventQueue.dispatchEventImpl(EventQueue.java:771)
	at java.desktop/java.awt.EventQueue$4.run(EventQueue.java:722)
	at java.desktop/java.awt.EventQueue$4.run(EventQueue.java:716)
	at java.base/java.security.AccessController.doPrivileged(AccessController.java:399)
	at java.base/java.security.ProtectionDomain$JavaSecurityAccessImpl.doIntersectionPrivilege(ProtectionDomain.java:86)
	at java.desktop/java.awt.EventQueue.dispatchEvent(EventQueue.java:741)
	at org.netbeans.core.TimableEventQueue.dispatchEvent(TimableEventQueue.java:136)
	at java.desktop/java.awt.EventDispatchThread.pumpOneEventForFilters(EventDispatchThread.java:203)
	at java.desktop/java.awt.EventDispatchThread.pumpEventsForFilter(EventDispatchThread.java:124)
	at java.desktop/java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:113)
	at java.desktop/java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:109)
	at java.desktop/java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:101)
	at java.desktop/java.awt.EventDispatchThread.run(EventDispatchThread.java:90)
java.lang.IllegalStateException: Warning - the node "indexs.html" [org.netbeans.modules.html.api.HtmlDataNode] is trying to fire the property files which is not included in its property sets. This is illegal. See IZ #31413 for details.
	at org.openide.nodes.Node.firePropertyChange(Node.java:996)
	at org.openide.loaders.DataNode.access$1000(DataNode.java:44)
	at org.openide.loaders.DataNode$5.run(DataNode.java:870)
	at org.netbeans.modules.openide.util.GlobalLookup.execute(GlobalLookup.java:45)
	at org.openide.util.lookup.Lookups.executeWith(Lookups.java:278)
	at org.netbeans.modules.openide.util.NbMutexEventProvider$Event.lambda$doEvent$0(NbMutexEventProvider.java:101)
	at java.desktop/java.awt.event.InvocationEvent.dispatch(InvocationEvent.java:318)
	at java.desktop/java.awt.EventQueue.dispatchEventImpl(EventQueue.java:771)
	at java.desktop/java.awt.EventQueue$4.run(EventQueue.java:722)
	at java.desktop/java.awt.EventQueue$4.run(EventQueue.java:716)
	at java.base/java.security.AccessController.doPrivileged(AccessController.java:399)
	at java.base/java.security.ProtectionDomain$JavaSecurityAccessImpl.doIntersectionPrivilege(ProtectionDomain.java:86)
	at java.desktop/java.awt.EventQueue.dispatchEvent(EventQueue.java:741)
	at org.netbeans.core.TimableEventQueue.dispatchEvent(TimableEventQueue.java:136)
	at java.desktop/java.awt.EventDispatchThread.pumpOneEventForFilters(EventDispatchThread.java:203)
	at java.desktop/java.awt.EventDispatchThread.pumpEventsForFilter(EventDispatchThread.java:124)
	at java.desktop/java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:113)
	at java.desktop/java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:109)
	at java.desktop/java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:101)
	at java.desktop/java.awt.EventDispatchThread.run(EventDispatchThread.java:90)
WARNING [org.netbeans.modules.versioning.util.Utils]: associateEncoding() no file object available for C:\Users\Ludovic\AppData\Local\Temp\vcs-1626295963942\vcs-1626299686084\indexs.html
WARNING [org.netbeans.modules.versioning.util.Utils]: associateEncoding() no file object available for C:\Users\Ludovic\AppData\Local\Temp\vcs-1626295963942\vcs-1626299686917\indexs.html
{noformat}
 

> Renaming a file in an HTML project with git support closes file after rename
> ----------------------------------------------------------------------------
>
>                 Key: NETBEANS-5851
>                 URL: https://issues.apache.org/jira/browse/NETBEANS-5851
>             Project: NetBeans
>          Issue Type: Bug
>          Components: versioncontrol - Git, web - HTML Project
>    Affects Versions: 12.4
>         Environment: Product Version: Apache NetBeans IDE 12.4
> Java: 14; OpenJDK 64-Bit Server VM 14+36-1461
> Runtime: OpenJDK Runtime Environment 14+36-1461
> System: Windows 10 version 10.0 running on amd64; Cp1252; de_DE (nb)
> User directory: C:\Users\Chris\AppData\Roaming\Netbeans\12.4
> Cache directory: C:\Users\Chris\AppData\Local\NetBeans\Cache\12.4
> Git for Windows version: 2.31.1.windows.1
>            Reporter: Christian Lenz
>            Priority: Major
>
> When I create a simple HTML5 project and initilize this project as a git project and try to rename a file, which is open inside of the editor, it will close the file after renaming it.
> Steps to reproduce:
> * Open NetBeans 12.4 as clean as possible
> * Create a new HTML5 project and follow the steps until the end, everything default
> * Wait for opening the project
> * Right click on the project -> Versioning -> Initilize Git Repository...
> * Go to options -> keymap -> search for Rename... with category System and set it to F2
> * Click ok
> * Open the index.html file and hit F2
> * Rename dialog opens
> * Change index to indexs and hit enter
> * It will close the rename dialog and also the index.html file.
> * If it doesn't work for the first time, stay in the indexs.html file, hit F2 again and rename it back to index and hit enter.
> * Try any other file like XML, JSON, JS etc.
> What was expected
> That the file still stays open after renaming. This just happens if I initilize the project with git. If not, everything works fine and as expected.



--
This message was sent by Atlassian Jira
(v8.3.4#803005)

---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@netbeans.apache.org
For additional commands, e-mail: commits-help@netbeans.apache.org

For further information about the NetBeans mailing lists, visit:
https://cwiki.apache.org/confluence/display/NETBEANS/Mailing+lists