Please use the Apache issue tracking system for new NetBeans issues ( !!
Bug 156709 - Rename of main module should be reflected in project properties
Rename of main module should be reflected in project properties
Product: python
Classification: Unclassified
Component: Projects
All All
: P3 (vote)
Assigned To: ardavis26
Depends on:
  Show dependency treegraph
Reported: 2009-01-13 18:59 UTC by tonybeckham
Modified: 2017-06-23 08:06 UTC (History)
1 user (show)

See Also:


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.

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.

By use of this website, you agree to the NetBeans Policies and Terms of Use. © 2014, Oracle Corporation and/or its affiliates. Sponsored by Oracle logo