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 253167 - "Project Properties > NetBeans Platform" setting doesn't stick
Summary: "Project Properties > NetBeans Platform" setting doesn't stick
Status: RESOLVED FIXED
Alias: None
Product: apisupport
Classification: Unclassified
Component: Project (show other bugs)
Version: 8.1
Hardware: PC Windows 7
: P2 normal (vote)
Assignee: Ondrej Vrabec
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2015-06-24 17:42 UTC by err
Modified: 2015-08-20 01:27 UTC (History)
1 user (show)

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments
project to reproduce issue (152.49 KB, application/octet-stream)
2015-07-18 01:58 UTC, err
Details

Note You need to log in before you can comment on or make changes to this bug.
Description err 2015-06-24 17:42:09 UTC
Using a recent dev build, with NB-8.0.2 as a registered NB platform, "nb802".

Summary: change NBPlatform to nb802, close properties, open properties,
         NBPlatform still says default

Open a platfrom app module suite and many of its modules. This app behaves OK with 8.0.2. But runs into refactoring issues with dev/8.1 about openide.
(The platform app builds into its own cluster, in case this might be part of
the issue)

Steps I took
- open project properties on module suite
- for NetBeansPlatform select nb802 in combo box
Observe
    there's a ! message:
        Module metawb in A MetaphysicalWorkbench depends
        on module guava in metaphysicalworkbench but this is excluded.
    Fix this by checking, under Platform Modules,
    the box "metaphysicalworkbench" which is my app-module-suite.
    FYI, guava is a wrapper-module.

    Now there's the ! message:
        Module JavaFX wrapper in platform requests the token
        org.openide.modules.jre.JavaFX but there are no known providers.
    which I ignore
- click OK and close the dialog

- open project properties on module suite 
Observe
    The NetBeans Platform still says Default


Workaround
    Close the IDE, manually edit the suite's platform properties
         metaphysical.workbench/nbproject/platform.properties
    and change "nbplatform.active=default" to
        nbplatform.active=nb802

    Restart IDE and things seem to be OK so far


Product Version: NetBeans IDE Dev (Build 201506200001)
Java: 1.8.0_40; Java HotSpot(TM) 64-Bit Server VM 25.40-b25
Runtime: Java(TM) SE Runtime Environment 1.8.0_40-b26
System: Windows 7 version 6.1 running on amd64; Cp1252; en_US (nb)
Comment 1 Ondrej Vrabec 2015-07-15 11:34:57 UTC
Seems to work fine in 20150707, can you please attach a platform app project you can reproduce it with?
Comment 2 err 2015-07-18 01:57:09 UTC
NOTE: in the attached project , I did not include 
    metaphysical.workbench/guava/release/modules/ext/guava-18.0.jar
you can pick that up at
    https://code.google.com/p/guava-libraries/wiki/Release18

untar the file: tar -xf mwb.tar.bz
open the app metaphysical.workbench

proceed as described.
Comment 3 err 2015-07-18 01:58:46 UTC
Created attachment 154705 [details]
project to reproduce issue
Comment 4 Ondrej Vrabec 2015-08-18 12:16:07 UTC
Was able to reproduce, it's just a minor issue, happens only when you change something else inside the project properties besides the active platform. In that case the active platform is persisted sadly immediately overwritten with the previous value.

Fix: http://hg.netbeans.org/core-main/rev/3689d1354795
Comment 5 Quality Engineering 2015-08-20 01:27:16 UTC
Integrated into 'main-silver', will be available in build *201508200002* on http://bits.netbeans.org/dev/nightly/ (upload may still be in progress)

Changeset: http://hg.netbeans.org/main-silver/rev/3689d1354795
User: Ondrej Vrabec <ovrabec@netbeans.org>
Log: #253167 - "Project Properties > NetBeans Platform" setting doesn't stick
Save active platform as the last to prevent it from being overwritten.