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

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

Christian Lenz created NETBEANS-5851:
----------------------------------------

             Summary: 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


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