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.
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.
Created attachment 125923 [details] project with platform problem
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.
fixed, change set: http://hg.netbeans.org/cnd-main/rev/70271ccfca42
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
*** Bug 222195 has been marked as a duplicate of this bug. ***