If you create a python project from existing sources the Run menu item "Run Main Project" is never enabled as long as
this project is set as main.
Product Version: NetBeans IDE 6.5 RC2 (Build 20081024150422)
Java: 1.5.0_16; Java HotSpot(TM) Client VM 1.5.0_16-133
System: Mac OS X version 10.5.5 running on i386; MacRoman; en_US (nb)
1. Create a new Python Project from Existing Sources
2. Either select next and select a source file or just select finish
3. The project will appear to be set as the main project. You can double check by setting it as main via the menu item
Run|Set as main Project or right click on the project and select "Set as Main Project"
4. Go to the Run menu and "Run Main Project" is disabled
After a project is created the main file needs to be set. Open project properties and select the run panel. Click the
browse button on the select main moddule. Click Ok
I am reopening this because after giving it some thought that it should prompt you for the main file and set that before
a run if it doesn't have one.
added selection box on run if main file is not set in project properties
verified in build 120 (20081029).
Initially if no main file set, it prompts for setting the main file. However, after manually removing the main file for
the project, running it result in the following message but it did not prompt to set main file again. Reopening issue.
Traceback (most recent call last):
(no code object) at line 0
IOError: [Errno 2] File not found - C:\Users\peter\Documents\NetBeansProjects\PythonSamples (Access is denied)
Also, if you rename the main file get NPE:
[catch] at org.openide.util.RequestProcessor$Processor.run(RequestProcessor.java:997)
I have down graded this to a p2 it's not a show stopper because you can select a main module at run. I am working on
finding the bug about clearing the main module. and renaming the main module will be dealt with when i look at
refactoring functions for files.
Reset to New, since it was "Started" 7 years ago...
Not sure it is still relevant with the current version. Closing this as old bug. If this is still a thing, please reopen and accept my apologies.
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.