Details
-
Improvement
-
Status: Open
-
Major
-
Resolution: Unresolved
-
8.2
-
None
-
None
Description
During the opening of the file in the editor, DiffSidebar creates a temporary file. If a project is detected based on this file, then a new project will be created.
I tested it on 8.2, but I did not find any modifications in the current code regarding this issue.
BTW.: DiffSidebar came up when I solved why File System starts guarding the tmp directory in NETBEANS-168
at org.netbeans.modules.android.project.api.NbAndroidProjectFactory.loadProject(NbAndroidProjectFactory.java:110) at org.netbeans.modules.projectapi.nb.NbProjectManager.createProject(NbProjectManager.java:401) at org.netbeans.modules.projectapi.nb.NbProjectManager.access$300(NbProjectManager.java:94) at org.netbeans.modules.projectapi.nb.NbProjectManager$2.run(NbProjectManager.java:314) at org.netbeans.modules.projectapi.nb.NbProjectManager$2.run(NbProjectManager.java:243) at org.netbeans.modules.openide.util.DefaultMutexImplementation.readAccess(DefaultMutexImplementation.java:209) at org.openide.util.Mutex.readAccess(Mutex.java:250) at org.netbeans.modules.projectapi.nb.NbProjectManager.findProject(NbProjectManager.java:243) at org.netbeans.api.project.ProjectManager.findProject(ProjectManager.java:167) at org.netbeans.modules.projectapi.SimpleFileOwnerQueryImplementation.getOwner(SimpleFileOwnerQueryImplementation.java:161) at org.netbeans.api.project.FileOwnerQuery.getOwner(FileOwnerQuery.java:116) at org.netbeans.modules.projectapi.ProjectFileEncodingQueryImplementation.getEncoding(ProjectFileEncodingQueryImplementation.java:72) at org.netbeans.api.queries.FileEncodingQuery.getEncoding(FileEncodingQuery.java:96) at org.openide.text.DataEditorSupport.openDocument(DataEditorSupport.java:584) at org.netbeans.modules.versioning.ui.diff.DiffSidebar.getText(DiffSidebar.java:1090) at org.netbeans.modules.versioning.ui.diff.DiffSidebar.getText(DiffSidebar.java:1004) at org.netbeans.modules.versioning.ui.diff.DiffSidebar.access$1600(DiffSidebar.java:114) at org.netbeans.modules.versioning.ui.diff.DiffSidebar$RefreshDiffTask.fetchOriginalContent(DiffSidebar.java:965) at org.netbeans.modules.versioning.ui.diff.DiffSidebar$RefreshDiffTask.computeDiff(DiffSidebar.java:934) at org.netbeans.modules.versioning.ui.diff.DiffSidebar$RefreshDiffTask.run(DiffSidebar.java:919) at org.openide.util.RequestProcessor$Task.run(RequestProcessor.java:1443) at org.netbeans.modules.openide.util.GlobalLookup.execute(GlobalLookup.java:68) at org.openide.util.lookup.Lookups.executeWith(Lookups.java:303) at org.openide.util.RequestProcessor$Processor.run(RequestProcessor.java:2058)