Skip to content

not showing python platforms #129

@armanvafamand

Description

@armanvafamand

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

Activity

github-actions

github-actions commented on Apr 2, 2025

@github-actions

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

martinwildam

martinwildam commented on May 2, 2025

@martinwildam

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.

mwildam

mwildam commented on Aug 13, 2025

@mwildam

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

bugSomething isn't working

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions

    not showing python platforms · Issue #129 · albilu/netbeansPython