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

Eirik Bakke edited comment on NETBEANS-3769 at 2/5/20 6:46 PM:
---------------------------------------------------------------

After some testing, it turns out that the exception from 
ImageUtilities$ToolTipImage 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.


was (Author: ebakke):
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
>            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

Reply via email to