[jira] [Commented] (NETBEANS-3769) Cannot rename project and directory
[ https://issues.apache.org/jira/browse/NETBEANS-3769?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel=17030907#comment-17030907 ] Eirik Bakke commented on NETBEANS-3769: --- After some testing, it turns out that the exception from CachedHiDPIIcon was a red herring. Even with this one definitively fixed (in the PR at https://github.com/apache/netbeans/pull/1922 ), the problem remains: {code:java} WARNING [org.netbeans.modules.project.uiapi.DefaultProjectOperationsImplementation] msg msg Caused: org.netbeans.modules.masterfs.filebasedfs.utils.FSException: Cannot rename file JavaApplication21 in C:/Users/ebakke/Deletables to JavaApplication21tofo. at org.netbeans.modules.masterfs.filebasedfs.utils.FSException.io(FSException.java:93) at org.netbeans.modules.masterfs.filebasedfs.fileobjects.BaseFileObj.rename(BaseFileObj.java:441) at org.netbeans.modules.masterfs.filebasedfs.fileobjects.BaseFileObj$1.call(BaseFileObj.java:495) at org.netbeans.modules.masterfs.filebasedfs.fileobjects.BaseFileObj$1.call(BaseFileObj.java:492) at org.netbeans.modules.masterfs.filebasedfs.FileBasedFileSystem.runAsInconsistent(FileBasedFileSystem.java:97) at org.netbeans.modules.masterfs.filebasedfs.fileobjects.BaseFileObj.rename(BaseFileObj.java:499) at org.openide.filesystems.FileObject.move(FileObject.java:157) at org.netbeans.modules.masterfs.filebasedfs.fileobjects.BaseFileObj.move(BaseFileObj.java:291) at org.netbeans.modules.project.uiapi.DefaultProjectOperationsImplementation.doMoveProject(DefaultProjectOperationsImplementation.java:521) [catch] at org.netbeans.modules.project.uiapi.DefaultProjectOperationsImplementation$4.execute(DefaultProjectOperationsImplementation.java:377) at org.netbeans.modules.project.uiapi.DefaultProjectOperationsImplementation$6$1.run(DefaultProjectOperationsImplementation.java:685) at org.openide.util.RequestProcessor$Task.run(RequestProcessor.java:1418) at org.netbeans.modules.openide.util.GlobalLookup.execute(GlobalLookup.java:45) at org.openide.util.lookup.Lookups.executeWith(Lookups.java:278) at org.openide.util.RequestProcessor$Processor.run(RequestProcessor.java:2033) ALL [null]: Cannot rename file JavaApplication21 in C:/Users/ebakke/Deletables to JavaApplication21tofo. ALL [null]: Cannot rename project, reason: Cannot rename file JavaApplication21 in C:/Users/ebakke/Deletables to JavaApplication21tofo. {code} The problem does not seem to occur on 11.1. > Cannot rename project and directory > --- > > Key: NETBEANS-3769 > URL: https://issues.apache.org/jira/browse/NETBEANS-3769 > Project: NetBeans > Issue Type: Bug > Components: projects - Generic Infrastructure, projects - Generic > Projects UI >Affects Versions: 11.3 > Environment: NB 11.3b running on JDK-13.0.2, Win7 >Reporter: Ernie Rael >Assignee: Eirik Bakke >Priority: Major > Labels: pull-request-available > Fix For: 11.3 > > Attachments: CannotRenameProject.log.1, CannotRenameProject.log.2, > ProjRenameAtRename.png > > Time Spent: 10m > Remaining Estimate: 0h > > (Attaching log with relevant exceptions) > To reproduce > # NewProject > JavaWithAnt > JavaApplication; accept all defaults > # From context menu on new project, select "Rename..." > # In dialog change the name > # Select "Also Rename Project Folder" > # Click "Rename" button > Observe error dialog > {quote}Error > Cannot rename file JavaApplication8 in F:/j/nb-stuff/NetBeansProjects to > RenameProject > {quote} > -- This message was sent by Atlassian Jira (v8.3.4#803005) - To unsubscribe, e-mail: commits-unsubscr...@netbeans.apache.org For additional commands, e-mail: commits-h...@netbeans.apache.org For further information about the NetBeans mailing lists, visit: https://cwiki.apache.org/confluence/display/NETBEANS/Mailing+lists
[jira] [Commented] (NETBEANS-3769) Cannot rename project and directory
[ https://issues.apache.org/jira/browse/NETBEANS-3769?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel=17030388#comment-17030388 ] Eirik Bakke commented on NETBEANS-3769: --- Added a PR for this at https://github.com/apache/netbeans/pull/1922/files . > Cannot rename project and directory > --- > > Key: NETBEANS-3769 > URL: https://issues.apache.org/jira/browse/NETBEANS-3769 > Project: NetBeans > Issue Type: Bug > Components: projects - Generic Infrastructure, projects - Generic > Projects UI >Affects Versions: 11.3 > Environment: NB 11.3b running on JDK-13.0.2, Win7 >Reporter: Ernie Rael >Assignee: Eirik Bakke >Priority: Major > Labels: pull-request-available > Fix For: 11.3 > > Attachments: CannotRenameProject.log.1, CannotRenameProject.log.2, > ProjRenameAtRename.png > > Time Spent: 10m > Remaining Estimate: 0h > > (Attaching log with relevant exceptions) > To reproduce > # NewProject > JavaWithAnt > JavaApplication; accept all defaults > # From context menu on new project, select "Rename..." > # In dialog change the name > # Select "Also Rename Project Folder" > # Click "Rename" button > Observe error dialog > {quote}Error > Cannot rename file JavaApplication8 in F:/j/nb-stuff/NetBeansProjects to > RenameProject > {quote} > -- This message was sent by Atlassian Jira (v8.3.4#803005) - To unsubscribe, e-mail: commits-unsubscr...@netbeans.apache.org For additional commands, e-mail: commits-h...@netbeans.apache.org For further information about the NetBeans mailing lists, visit: https://cwiki.apache.org/confluence/display/NETBEANS/Mailing+lists
[jira] [Commented] (NETBEANS-3769) Cannot rename project and directory
[ https://issues.apache.org/jira/browse/NETBEANS-3769?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel=17029382#comment-17029382 ] Ernie Rael commented on NETBEANS-3769: -- To be clear, the "java.io.NotSerializableException" has nothing to do with this issue. Take a look at the 2nd log,log.2, the project rename fails and the serialize issue is not there. > Cannot rename project and directory > --- > > Key: NETBEANS-3769 > URL: https://issues.apache.org/jira/browse/NETBEANS-3769 > Project: NetBeans > Issue Type: Bug > Components: projects - Generic Infrastructure, projects - Generic > Projects UI >Affects Versions: 11.3 > Environment: NB 11.3b running on JDK-13.0.2, Win7 >Reporter: Ernie Rael >Assignee: Eirik Bakke >Priority: Major > Fix For: 11.3 > > Attachments: CannotRenameProject.log.1, CannotRenameProject.log.2, > ProjRenameAtRename.png > > > (Attaching log with relevant exceptions) > To reproduce > # NewProject > JavaWithAnt > JavaApplication; accept all defaults > # From context menu on new project, select "Rename..." > # In dialog change the name > # Select "Also Rename Project Folder" > # Click "Rename" button > Observe error dialog > {quote}Error > Cannot rename file JavaApplication8 in F:/j/nb-stuff/NetBeansProjects to > RenameProject > {quote} > -- This message was sent by Atlassian Jira (v8.3.4#803005) - To unsubscribe, e-mail: commits-unsubscr...@netbeans.apache.org For additional commands, e-mail: commits-h...@netbeans.apache.org For further information about the NetBeans mailing lists, visit: https://cwiki.apache.org/confluence/display/NETBEANS/Mailing+lists
[jira] [Commented] (NETBEANS-3769) Cannot rename project and directory
[ https://issues.apache.org/jira/browse/NETBEANS-3769?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel=17029376#comment-17029376 ] Eirik Bakke commented on NETBEANS-3769: --- I can't reproduce it on my current dev build, but a a patch is easy enough. I believe icons are serialized so that they can be shown in the "Open Recent Project" menu. Will submit a PR the next time I am working on the master branch... > Cannot rename project and directory > --- > > Key: NETBEANS-3769 > URL: https://issues.apache.org/jira/browse/NETBEANS-3769 > Project: NetBeans > Issue Type: Bug > Components: projects - Generic Infrastructure, projects - Generic > Projects UI >Affects Versions: 11.3 > Environment: NB 11.3b running on JDK-13.0.2, Win7 >Reporter: Ernie Rael >Assignee: Eirik Bakke >Priority: Major > Fix For: 11.3 > > Attachments: CannotRenameProject.log.1, CannotRenameProject.log.2, > ProjRenameAtRename.png > > > (Attaching log with relevant exceptions) > To reproduce > # NewProject > JavaWithAnt > JavaApplication; accept all defaults > # From context menu on new project, select "Rename..." > # In dialog change the name > # Select "Also Rename Project Folder" > # Click "Rename" button > Observe error dialog > {quote}Error > Cannot rename file JavaApplication8 in F:/j/nb-stuff/NetBeansProjects to > RenameProject > {quote} > -- This message was sent by Atlassian Jira (v8.3.4#803005) - To unsubscribe, e-mail: commits-unsubscr...@netbeans.apache.org For additional commands, e-mail: commits-h...@netbeans.apache.org For further information about the NetBeans mailing lists, visit: https://cwiki.apache.org/confluence/display/NETBEANS/Mailing+lists
[jira] [Commented] (NETBEANS-3769) Cannot rename project and directory
[ https://issues.apache.org/jira/browse/NETBEANS-3769?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel=17027089#comment-17027089 ] Laszlo Kishalmi commented on NETBEANS-3769: --- I do not know why we need to serialize the project icon (maybe we shall not), though the new one are not serializable. java.io.NotSerializableException: org.openide.util.ImageUtilities$ToolTipImage > Cannot rename project and directory > --- > > Key: NETBEANS-3769 > URL: https://issues.apache.org/jira/browse/NETBEANS-3769 > Project: NetBeans > Issue Type: Bug > Components: projects - Generic Infrastructure, projects - Generic > Projects UI >Affects Versions: 11.3 > Environment: NB 11.3b running on JDK-13.0.2, Win7 >Reporter: Ernie Rael >Assignee: Eirik Bakke >Priority: Major > Fix For: 11.3 > > Attachments: CannotRenameProject.log.1, CannotRenameProject.log.2, > ProjRenameAtRename.png > > > (Attaching log with relevant exceptions) > To reproduce > # NewProject > JavaWithAnt > JavaApplication; accept all defaults > # From context menu on new project, select "Rename..." > # In dialog change the name > # Select "Also Rename Project Folder" > # Click "Rename" button > Observe error dialog > {quote}Error > Cannot rename file JavaApplication8 in F:/j/nb-stuff/NetBeansProjects to > RenameProject > {quote} > -- This message was sent by Atlassian Jira (v8.3.4#803005) - To unsubscribe, e-mail: commits-unsubscr...@netbeans.apache.org For additional commands, e-mail: commits-h...@netbeans.apache.org For further information about the NetBeans mailing lists, visit: https://cwiki.apache.org/confluence/display/NETBEANS/Mailing+lists
[jira] [Commented] (NETBEANS-3769) Cannot rename project and directory
[ https://issues.apache.org/jira/browse/NETBEANS-3769?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel=17027023#comment-17027023 ] Ernie Rael commented on NETBEANS-3769: -- On the statement where the rename fails, in platform/masterfs/.../FileName.java:rename line 67, SysInternals shows the project directory, strangely it shows all the directories in the project. Some kind of windows thing? > Cannot rename project and directory > --- > > Key: NETBEANS-3769 > URL: https://issues.apache.org/jira/browse/NETBEANS-3769 > Project: NetBeans > Issue Type: Bug > Components: projects - Generic Infrastructure, projects - Generic > Projects UI >Affects Versions: 11.3 > Environment: NB 11.3b running on JDK-13.0.2, Win7 >Reporter: Ernie Rael >Priority: Major > Fix For: 11.3 > > Attachments: CannotRenameProject.log.1, CannotRenameProject.log.2 > > > (Attaching log with relevant exceptions) > To reproduce > # NewProject > JavaWithAnt > JavaApplication; accept all defaults > # From context menu on new project, select "Rename..." > # In dialog change the name > # Select "Also Rename Project Folder" > # Click "Rename" button > Observe error dialog > {quote}Error > Cannot rename file JavaApplication8 in F:/j/nb-stuff/NetBeansProjects to > RenameProject > {quote} > -- This message was sent by Atlassian Jira (v8.3.4#803005) - To unsubscribe, e-mail: commits-unsubscr...@netbeans.apache.org For additional commands, e-mail: commits-h...@netbeans.apache.org For further information about the NetBeans mailing lists, visit: https://cwiki.apache.org/confluence/display/NETBEANS/Mailing+lists
[jira] [Commented] (NETBEANS-3769) Cannot rename project and directory
[ https://issues.apache.org/jira/browse/NETBEANS-3769?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel=17026865#comment-17026865 ] Ernie Rael commented on NETBEANS-3769: -- It doesn't seem to be jdk dependent. And it also fails with the locally built from repo Product Version: Apache NetBeans IDE DEV (Build 20200125-unknown-revn) Java: 1.8.0_241; Java HotSpot(TM) 64-Bit Server VM 25.241-b07 Runtime: Java(TM) SE Runtime Environment 1.8.0_241-b07 System: Windows 7 version 6.1 running on amd64; Cp1252; en_US (nb) Assuming it's failing because something has the project directory open, any ideas on debugging it? I've deleted the old log and attached a shorter version log. Later today, I'll try to step into/around org.netbeans.modules.masterfs.filebasedfs.fileobjects.BaseFileObj.rename(BaseFileObj.java:441) any ideas on what to look for. An obvious thing is that something has the directory open. Any trick on finding it? > Cannot rename project and directory > --- > > Key: NETBEANS-3769 > URL: https://issues.apache.org/jira/browse/NETBEANS-3769 > Project: NetBeans > Issue Type: Bug > Components: projects - Generic Infrastructure, projects - Generic > Projects UI >Affects Versions: 11.3 > Environment: NB 11.3b running on JDK-13.0.2, Win7 >Reporter: Ernie Rael >Priority: Major > Fix For: 11.3 > > Attachments: CannotRenameProject.log.1 > > > (Attaching log with relevant exceptions) > To reproduce > # NewProject > JavaWithAnt > JavaApplication; accept all defaults > # From context menu on new project, select "Rename..." > # In dialog change the name > # Select "Also Rename Project Folder" > # Click "Rename" button > Observe error dialog > {quote}Error > Cannot rename file JavaApplication8 in F:/j/nb-stuff/NetBeansProjects to > RenameProject > {quote} > -- This message was sent by Atlassian Jira (v8.3.4#803005) - To unsubscribe, e-mail: commits-unsubscr...@netbeans.apache.org For additional commands, e-mail: commits-h...@netbeans.apache.org For further information about the NetBeans mailing lists, visit: https://cwiki.apache.org/confluence/display/NETBEANS/Mailing+lists
[jira] [Commented] (NETBEANS-3769) Cannot rename project and directory
[ https://issues.apache.org/jira/browse/NETBEANS-3769?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel=17026527#comment-17026527 ] Geertjan Wielenga commented on NETBEANS-3769: - Tried with 11.3 beta on Mac OSX and failed to reproduce. > Cannot rename project and directory > --- > > Key: NETBEANS-3769 > URL: https://issues.apache.org/jira/browse/NETBEANS-3769 > Project: NetBeans > Issue Type: Bug > Components: projects - Generic Infrastructure, projects - Generic > Projects UI >Affects Versions: 11.3 > Environment: NB 11.3b running on JDK-13.0.2, Win7 >Reporter: Ernie Rael >Priority: Major > Fix For: 11.3 > > Attachments: CannotRenameProject.log.1 > > > (Attaching log with relevant exceptions) > To reproduce > # NewProject > JavaWithAnt > JavaApplication; accept all defaults > # From context menu on new project, select "Rename..." > # In dialog change the name > # Select "Also Rename Project Folder" > # Click "Rename" button > Observe error dialog > {quote}Error > Cannot rename file JavaApplication8 in F:/j/nb-stuff/NetBeansProjects to > RenameProject > {quote} > -- This message was sent by Atlassian Jira (v8.3.4#803005) - To unsubscribe, e-mail: commits-unsubscr...@netbeans.apache.org For additional commands, e-mail: commits-h...@netbeans.apache.org For further information about the NetBeans mailing lists, visit: https://cwiki.apache.org/confluence/display/NETBEANS/Mailing+lists