ebresie / python4nb

This is a Python Plugin for Netbeans.
Apache License 2.0
13 stars 1 forks source link

Implement Python Execution Feature #4

Open ebresie opened 2 years ago

ebresie commented 2 years ago

Presently as of 0.1, there is no ability to run a Python script.

This is issue will implement run functionality within the IDE.

ebresie commented 2 years ago

WIth installed nbm, and attempting to run, get following when attempting to run

java.lang.NullPointerException: Cannot invoke "org.openide.filesystems.FileObject.getParent()" because "script" is null at org.apache.netbeans.modules.python4nb.ui.actions.RunCommand.invokeAction(RunCommand.java:88) at org.apache.netbeans.modules.python4nb.project.PythonActionProvider$1.run(PythonActionProvider.java:99) at org.openide.util.RequestProcessor$Task.run(RequestProcessor.java:1418) at org.netbeans.modules.openide.util.GlobalLookup.execute(GlobalLookup.java:45) at org.openide.util.lookup.Lookups.executeWith(Lookups.java:278) [catch] at org.openide.util.RequestProcessor$Processor.run(RequestProcessor.java:2033)

ebresie commented 2 years ago

In code recently checked in (this check-in may have been premature but was done to avoid losing in work code), able to execute code once a default python platform has been selected, the main project file has been selected. More cleaned up version of this will likely be in release 0.3

ebresie commented 1 year ago

Additional updates with recent commit.