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 220055 - Project platform problem cannot be resolved
Summary: Project platform problem cannot be resolved
Status: RESOLVED FIXED
Alias: None
Product: cnd
Classification: Unclassified
Component: Toolchain (show other bugs)
Version: 7.2
Hardware: PC Linux
: P3 normal (vote)
Assignee: Alexander Simon
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2012-10-13 22:04 UTC by tbrunhoff
Modified: 2012-11-20 14:45 UTC (History)
1 user (show)

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments
project with platform problem (6.25 KB, application/x-compressed-tar)
2012-10-13 22:07 UTC, tbrunhoff
Details

Note You need to log in before you can comment on or make changes to this bug.
Description tbrunhoff 2012-10-13 22:04:18 UTC
The attached file is a project to build the universal hello world project for an Arduino (Atmel AVR processor) which merely blinks an led on the board. The project was constructed on windows using NB 7.2 and the WinAVR toolchain, and worked just fine.

I moved the project (via subversion) to linux, but NB refuses to open the project.  I fixed a number of problems through the GUI, such as switching the tool chain from WinAVR to LinuxAVR (the latter an adaptation of the former which NB likes), and includes, etc.

However, what remains is when I right-click on the project, there exists a menu entry "resolve project platform problem...". If I select this, I get the dialog "The project was configured to be used on a different platform..." but clicking "yes" appears to have no effect, or perhaps not enough of an effect.

I can build other projects from scratch using the AVR tools and my adapted LinuxAVR toolchain description. But the "resolve..." menu item appears to be broken.

The solution appears to be that, while the  the "release" configuration's platform was never changed from windows to linux. Making that change through the ide fixed the problem. This of course is a change in private/configurations.xml of <platform>3<platform/> to <platform>2<platform/>.

The "resolve project platform problem..." menu item should do this too.
Comment 1 tbrunhoff 2012-10-13 22:07:40 UTC
Created attachment 125923 [details]
project with platform problem
Comment 2 Alexander Simon 2012-10-17 09:09:42 UTC
The issue is consequence of the fix of the bug #209864.
The method MakeLogicalViewRootNode.reInitWithRemovedPrivate()
does not fix bug #209864 in some cases and result in this problem (and introduced another latent problems).

So delete() in the line:
provider.getMakeConfigurationDescriptor().getNbPrivateProjectFileObject().delete()
must be rewritten on something more resolvable.
Comment 3 Alexander Simon 2012-10-18 13:57:46 UTC
fixed, change set:
http://hg.netbeans.org/cnd-main/rev/70271ccfca42
Comment 4 Quality Engineering 2012-10-19 13:40:22 UTC
Integrated into 'main-golden', will be available in build *201210191216* on http://bits.netbeans.org/dev/nightly/ (upload may still be in progress)
Changeset: http://hg.netbeans.org/main-golden/rev/70271ccfca42
User: Alexander Simon <alexvsimon@netbeans.org>
Log: fixed Bug #220055 Project platform problem cannot be resolved
Comment 5 Alexander Simon 2012-11-20 14:45:18 UTC
*** Bug 222195 has been marked as a duplicate of this bug. ***