W dniu 07.04.2023 o 11:06, Albilu pisze:
Thanks for reporting it. It is now fixed in a new release.

Just discovered JavaFx is not platform dependant. Very weird.

When you said:/I can't use your plugin becaus I got this error: /

    - you mean other features also are not usable or just the Package Manager?


I was mean I can't open the Python project, other thing as: options, Python Platform, Python Package Manager, Lsp Server they seems to works correctly.

After update to version 2 I got this when I try open project:

java.lang.NullPointerException: Cannot invoke "java.util.Map.remove(Object)" because "settings" is null     at org.netbeans.modules.python.PythonProjectOpenedHook.projectOpened(PythonProjectOpenedHook.java:67)     at org.netbeans.spi.project.ui.ProjectOpenedHook$1.projectOpened(ProjectOpenedHook.java:60) [catch] at org.netbeans.modules.project.ui.OpenProjectList.notifyOpened(OpenProjectList.java:1321)     at org.netbeans.modules.project.ui.OpenProjectList.doOpenProject(OpenProjectList.java:1402)     at org.netbeans.modules.project.ui.OpenProjectList.open(OpenProjectList.java:848)     at org.netbeans.modules.project.ui.OpenProjectList$6.run(OpenProjectList.java:672)     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:287)
    at org.openide.util.RequestProcessor$Processor.run(RequestProcessor.java:2033)


Replication steps:

1. Select the File|New Projects...

2. Chose Project|Select the "Python Project" and click on the "Next" button

3. Name and Location|Leave all as is and click on the "Finish" button

4. The "Opening Project" indication occurred on the bottom and after a while I see the Unexpected Exception notification with content as above.


Piotr


Le 06/04/2023 à 22:39, Piotr Hoppe a écrit :
W dniu 06.04.2023 o 21:53, Albilu pisze:
Hello,
As AI is booming with Python as the leading Programming Language it is very sad that Netbeans is not offering support for it.

I started this project with the aim to bring the support to Python in Netbeans focusing mainly on features available on Pycharm/Spyder IDE and VScode (Package management/Environment management etc...)

I am now releasing the first version which will stay in beta till the end of this month.

See much details on available features here: https://github.com/albilu/netbeansPython

NBMs available here: https://github.com/albilu/netbeansPython/releases

Please try it and share your feedback.
Thanks


   Main Features


     Project Management

 * Simple Python projects type creation (with |venv/virtualenv|)
 * Import projects from Sources
 * Simple Poetry <https://python-poetry.org/> porjects creation (common
   |poetry| commands supported)
 * Run/Build projects

f9b73732e9534000af91eb4e9bf11208.png


     LSP Server Features

 * See list of features supported
<https://github.com/python-lsp/python-lsp-server#lsp-server-features>

d242d82a04c729be7c6e6b0b84759c2f.png

LSP Configurations <https://github.com/python-lsp/python-lsp-server#configuration> available in Netbeans via:
|Tools -> Python Platforms -> Lsp Server|

f4ecdf1c9e7648113e8dd265b277366a.png||


     Python Interpreters Management

 * Multiple Python Interpreters Management including venv
<https://docs.python.org/3/library/venv.html#venv-def> and |virtualenv|

cad96c97900764698d62caf7d6bf49b4.png


     Packages Management

 * Manage Python Packages (Install/Delete) via Pypi <https://pypi.org/>
   or personal Repositories

74a5dd8877b9608931b49604ab59440d.png


     Python REPL

 * IPython <https://github.com/ipython/ipython> and PTPython
<https://github.com/prompt-toolkit/ptpython> integrated as
   Interactive Shells (with autocompletion)
   |Windows -> Interactive Python Interpreters -> IPython|

b18df5a8d44631819affe75ecd6fab61.png


     Unittest/Test Coverage

 * Unittest <https://docs.python.org/3/library/unittest.html>/code
   coverage <https://coverage.readthedocs.io/en/7.2.2/#> suportted
 * Create/Generate unit tests
 * Go to test/tested class

ebaed2b72b503dec7733d6698f3a0a72.png


Thanks for your great job. It is nice surprise ;) that makes the Apache NetBeans more completed!!!

But now I can't use your plugin becaus I got this error:

java.lang.RuntimeException: No toolkit found
    at com.sun.javafx.tk.Toolkit.getToolkit(Toolkit.java:272)
    at com.sun.javafx.application.PlatformImpl.startup(PlatformImpl.java:267)     at com.sun.javafx.application.PlatformImpl.startup(PlatformImpl.java:158)
    at javafx.embed.swing.JFXPanel.lambda$initFx$1(JFXPanel.java:234)
    at java.base/java.lang.Thread.run(Thread.java:833)
Caused: java.lang.ExceptionInInitializerError
    at java.base/jdk.internal.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)     at java.base/jdk.internal.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:77)     at java.base/jdk.internal.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45)     at java.base/java.lang.reflect.Constructor.newInstanceWithCaller(Constructor.java:499)     at java.base/java.lang.reflect.Constructor.newInstance(Constructor.java:480)     at org.netbeans.modules.settings.convertors.XMLSettingsSupport.newInstance(XMLSettingsSupport.java:75)     at org.netbeans.modules.settings.convertors.XMLSettingsSupport$SettingsRecognizer.instanceCreate(XMLSettingsSupport.java:603)     at org.netbeans.modules.settings.convertors.SerialDataConvertor$SettingsInstance.instanceCreate(SerialDataConvertor.java:402)     at org.netbeans.core.windows.persistence.PersistenceManager.getTopComponentPersistentForID(PersistenceManager.java:547)     at org.netbeans.core.windows.persistence.PersistenceManager.getTopComponentForID(PersistenceManager.java:657)     at org.netbeans.core.windows.PersistenceHandler.getTopComponentForID(PersistenceHandler.java:453)     at org.netbeans.core.windows.WindowManagerImpl.getTopComponentForID(WindowManagerImpl.java:1012)     at org.netbeans.core.windows.WindowManagerImpl.findTopComponent(WindowManagerImpl.java:276)     at org.netbeans.modules.python.statusbar.PythonStatusBarPanel$2.lambda$resultChanged$0(PythonStatusBarPanel.java:120)     at java.desktop/java.awt.event.InvocationEvent.dispatch(InvocationEvent.java:318)     at java.desktop/java.awt.EventQueue.dispatchEventImpl(EventQueue.java:771)
    at java.desktop/java.awt.EventQueue$4.run(EventQueue.java:722)
    at java.desktop/java.awt.EventQueue$4.run(EventQueue.java:716)
    at java.base/java.security.AccessController.doPrivileged(AccessController.java:399)     at java.base/java.security.ProtectionDomain$JavaSecurityAccessImpl.doIntersectionPrivilege(ProtectionDomain.java:86)     at java.desktop/java.awt.EventQueue.dispatchEvent(EventQueue.java:741)     at org.netbeans.core.TimableEventQueue.dispatchEvent(TimableEventQueue.java:136) [catch] at java.desktop/java.awt.EventDispatchThread.pumpOneEventForFilters(EventDispatchThread.java:203)     at java.desktop/java.awt.EventDispatchThread.pumpEventsForFilter(EventDispatchThread.java:124)     at java.desktop/java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:113)     at java.desktop/java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:109)     at java.desktop/java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:101)     at java.desktop/java.awt.EventDispatchThread.run(EventDispatchThread.java:90)


My environment:

*Product Version:* Apache NetBeans IDE 17

*Java:* 17.0.6; OpenJDK 64-Bit Server VM 17.0.6+10-LTS

*Runtime:* OpenJDK Runtime Environment 17.0.6+10-LTS

*System:* Windows 11 version 10.0 running on amd64; Cp1250; pl_PL (nb)


Python.3.10


Piotr



---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscr...@netbeans.apache.org
For additional commands, e-mail: dev-h...@netbeans.apache.org

For further information about the NetBeans mailing lists, visit:
https://cwiki.apache.org/confluence/display/NETBEANS/Mailing+lists



Reply via email to