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 155603

Summary: platform manager removes platform in use without "warning"
Product: python Reporter: Peter Lam <petersl>
Component: ProjectsAssignee: Lou Dasaro <mr_lou_d>
Status: NEW ---    
Severity: blocker    
Priority: P3    
Version: 8.1   
Hardware: All   
OS: All   
See Also: https://netbeans.org/bugzilla/show_bug.cgi?id=154975
Issue Type: ENHANCEMENT Exception Reporter:

Description Peter Lam 2008-12-16 22:24:14 UTC
When a project is associated with a particular platform runtime, removing that platform runtime from the platform
manager is allowed without warning that a platform is being used by the project. Then, looking at the project's platform
runtime from project's properties shows the default platform runtime is used because the previously assigned platform
has been removed. But running the project is not possible and the dialog showing the following message popped up.
Manually reselecting the python platform runtime is needed in order to run or debug the project again.

dialog title: Python Launch Error 
dialog message: select project has broken python platform: default=> bind to an existing python platform in project's
properties

steps to reproduce:
- make sure there are at least 2 python platforms listed in python platform manager
- create a python project using one of the available python platforms
- select Tools->Python Platform and remove the platform that's used by the project, close the platform manager
- right click on the project and select Properties
- click Python from the Categories. The default python platform runtime is displayed instead of the previously selected
during project creation, click Cancel on the Properties dialog
- right click on the project and select Run or Debug. The dialog mentioned above popped up and project can not be run or
debugged.

Solution: maybe a warning dialog should be displayed to allow user to confirm if a python platform in use should be removed.
Comment 1 Lou Dasaro 2015-05-18 03:53:11 UTC
Since it's the USER who is deleting the platform, giving them a warning that  "existing projects use said platform" is a nice enhancement...