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 156709 - Rename of main module should be reflected in project properties
Summary: Rename of main module should be reflected in project properties
Status: CLOSED FIXED
Alias: None
Product: python
Classification: Unclassified
Component: Projects (show other bugs)
Version: 6.x
Hardware: All All
: P3 blocker (vote)
Assignee: ardavis26
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2009-01-13 18:59 UTC by tonybeckham
Modified: 2017-06-23 08:06 UTC (History)
1 user (show)

See Also:
Issue Type: ENHANCEMENT
Exception Reporter:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description tonybeckham 2009-01-13 18:59:41 UTC
If you select rename of a python file that is the projects main module, the rename is not reflected in the project
properties thus exception thrown if you try and run it without the extra step of changing the main module manually in
project properties.

Steps:
Create a new python project.
Rename the python module by selecting rename from the context menu and give it a new name.
Run the project...of course exception because the projects property->run->main module is still the original name
Select browse and choose the renamed file.
Comment 1 Jenselme 2017-06-22 20:25:16 UTC
If the file is renamed and you try to run the project, you will see a popup to select the new main file. I think this is enough due to our limiting resources. Feel free to make a patch to improve that. Closing this.
Comment 2 Jiri Kovalsky 2017-06-23 08:06:07 UTC
Thanks for your evaluation Julien. Reporter, if you think your issue is still valid and needs to be addressed, don't hesitate to reopen it with additional information. Closing for now.