netbeansPython icon indicating copy to clipboard operation
netbeansPython copied to clipboard

not showing python platforms

Open av325 opened this issue 9 months ago • 1 comments

after installing plugin for add python platform an exception occurred: java.nio.file.NoSuchFileException: /Users/{user}/Library/Application Support/NetBeans/25/.pythonlsp/platforms.json

av325 avatar Apr 02 '25 21:04 av325

Thanks for reporting this issue, we will take a look on ASAP

github-actions[bot] avatar Apr 02 '25 21:04 github-actions[bot]

Same issue here - I am on Ubuntu 22.04 and NetBeans 25. Since I was not able to install the plugin by automatically downloading it from the plugins management feature in NetBeans I downloaded the latest releast (250) manually and added it to NetBeans via plugins management from NetBeans UI. On startup I get

java.io.IOException: error=2, No such file or directory
	at java.base/java.lang.ProcessImpl.forkAndExec(Native Method)
	at java.base/java.lang.ProcessImpl.<init>(ProcessImpl.java:295)
	at java.base/java.lang.ProcessImpl.start(ProcessImpl.java:225)
	at java.base/java.lang.ProcessBuilder.start(ProcessBuilder.java:1126)
Caused: java.io.IOException: Cannot run program "/home/myuser/.netbeans/25/.pythonlsp/.venv/bin/python": error=2, No such file or directory
	at java.base/java.lang.ProcessBuilder.start(ProcessBuilder.java:1170)
	at java.base/java.lang.ProcessBuilder.start(ProcessBuilder.java:1089)
[catch] at org.netbeans.modules.python.PythonLspClient.startServer(PythonLspClient.java:30)
	at org.netbeans.modules.lsp.client.LSPBindings.buildBindings(LSPBindings.java:299)
	at org.netbeans.modules.lsp.client.LSPBindings.getBindingsImpl(LSPBindings.java:216)
	at org.netbeans.modules.lsp.client.LSPBindings.ensureServerRunning(LSPBindings.java:175)
	at org.netbeans.modules.lsp.client.bindings.CustomIndexerImpl.lambda$index$0(CustomIndexerImpl.java:75)
	at org.openide.util.RequestProcessor$Task.run(RequestProcessor.java:1403)
	at org.netbeans.modules.openide.util.GlobalLookup.execute(GlobalLookup.java:45)
	at org.openide.util.lookup.Lookups.executeWith(Lookups.java:287)
	at org.openide.util.RequestProcessor$Processor.run(RequestProcessor.java:2018)

and I tried to create the directory /home/myuser/.netbeans/25/.pythonlsp/.venv but that did not help. In the Tools menu I can see the Python platforms entry and when I open it and try to manage the platforms, autodetect does not work and either no chance to add a new platform. An open file dialog appears, but I am not sure what I should select there. Selecting e.g. /usr/bin/python3 does not work. - A test python program does work on run, but autocomplete for function inside the same python file etc does not work.

martinwildam avatar May 02 '25 11:05 martinwildam

I can confirm that it is working now. Thanks for the fix.

mwildam avatar Aug 13 '25 07:08 mwildam