This Bugzilla instance is a read-only archive of historic NetBeans bug reports. To report a bug in NetBeans please follow the project's instructions for reporting issues.

Bug 192807

Summary: regression in "New File" wizard if it is called from makefile based project
Product: cnd Reporter: soldatov <soldatov>
Component: ProjectAssignee: Vladimir Kvashin <vkvashin>
Status: RESOLVED FIXED    
Severity: normal CC: apepin
Priority: P3    
Version: 7.0   
Hardware: PC   
OS: All   
Issue Type: DEFECT Exception Reporter:
Bug Depends on: 194418    
Bug Blocks:    
Attachments: screenshot

Description soldatov 2010-12-02 15:37:11 UTC
Created attachment 103539 [details]
screenshot

cnd.projects.TestMakefileBasedProject.testMakefileBasedProjectAdd test from
http://elif:8080/hudson/view/IDE-tests/job/ss-test-intel-S2-2/55/testReport

Latest correct build: NetBeans Platform Dev (Build cnd-build-4051-on-101127)
First wrong build: NetBeans Platform Dev (Build cnd-build-4054-on-101128)

Scenario:
- in Makefile based project select some folder (real project should be selected) and call New File wizard
- Select "C Source File" and press Next
- Check "Location" and "Folder" fields
==> In Solaris Studio and old NetBeans builds: "Folder" text field is empty, "Location" field is equal to source location
==> in new NetBeans builds: "Folder" field contains path to project location, "Location" field contains relative path source folder
Comment 1 Thomas Preisler 2010-12-08 01:09:56 UTC
Fixed:

changeset:   184214:25e8c552b8d6
user:        Thomas Preisler <thp@netbeans.org>
date:        Tue Dec 07 17:04:21 2010 -0800
summary:     #192807 - regression in "New File" wizard if it is called from makefile based project

Logical folder (FileObject) in node context was not normalized causing the regression in the wizard:

LogicalFolderNode.java
       createLFNLookup(...)
               .....
                String rootPath = folder.getRootPath();
                FileObject fo = RemoteFileUtil.getFileObject(conf.getBaseDirFileObject(), rootPath);
                fo = RemoteFileUtil.normalizeFileObject(fo); // See 192807 <==== added this
Comment 2 Quality Engineering 2010-12-09 06:15:23 UTC
Integrated into 'main-golden', will be available in build *201012090001* on http://bits.netbeans.org/dev/nightly/ (upload may still be in progress)
Changeset: http://hg.netbeans.org/main/rev/25e8c552b8d6
User: Thomas Preisler <thp@netbeans.org>
Log: #192807 - regression in "New File" wizard if it is called from makefile based project
Comment 3 soldatov 2011-01-17 14:48:09 UTC
I see this problem again (test fails for 4 latest times)
Comment 4 Alexander Simon 2011-01-17 17:51:42 UTC
Regression after latest "full remote" changes.
Logical folder has not normalized file object in lookup.
Comment 5 Vladimir Kvashin 2011-01-17 18:11:03 UTC
http://hg.netbeans.org/cnd-main/rev/2a0519d87729
Comment 6 Quality Engineering 2011-01-18 06:12:06 UTC
Integrated into 'main-golden', will be available in build *201101180000* on http://bits.netbeans.org/dev/nightly/ (upload may still be in progress)
Changeset: http://hg.netbeans.org/main/rev/2a0519d87729
User: Vladimir Kvashin <vkvashin@netbeans.org>
Log: fixed #192807 -  regression in "New File" wizard if it is called from makefile based project