You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@netbeans.apache.org by Albilu <al...@gmail.com> on 2023/04/06 19:53:08 UTC

New Python Plugin Release

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

Re: New Python Plugin Release

Posted by Albilu <al...@gmail.com>.
sorry, just noticed i didnt answer the question correctly. Short term 
plan is to include on the Plugin Portal and long term PR to Netbeans

Le 08/04/2023 à 08:12, Albilu a écrit :
>
> Yes that is the plan!
>
> Le 07/04/2023 à 19:51, Bill Brooks a écrit :
>> Looks interesting! I'll check it out this weekend.
>>
>> What happens when the beta period has completed? Are you planning on 
>> submitting this as a PR or for inclusion on the NetBeans Plugin 
>> Portal <https://plugins.netbeans.apache.org/>?
>>
>> Bill
>>
>>
>> On Thu, Apr 6, 2023 at 12:53 PM Albilu <al...@gmail.com> wrote:
>>
>>     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
>>

Re: New Python Plugin Release

Posted by Albilu <al...@gmail.com>.
Yes that is the plan!

Le 07/04/2023 à 19:51, Bill Brooks a écrit :
> Looks interesting! I'll check it out this weekend.
>
> What happens when the beta period has completed? Are you planning on 
> submitting this as a PR or for inclusion on the NetBeans Plugin Portal 
> <https://plugins.netbeans.apache.org/>?
>
> Bill
>
>
> On Thu, Apr 6, 2023 at 12:53 PM Albilu <al...@gmail.com> wrote:
>
>     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
>

Re: New Python Plugin Release

Posted by Bill Brooks <ww...@gmail.com>.
Looks interesting! I'll check it out this weekend.

What happens when the beta period has completed? Are you planning on
submitting this as a PR or for inclusion on the NetBeans Plugin Portal
<https://plugins.netbeans.apache.org/>?

Bill


On Thu, Apr 6, 2023 at 12:53 PM Albilu <al...@gmail.com> wrote:

> 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
>
> [image: f9b73732e9534000af91eb4e9bf11208.png]
> LSP Server Features
>
>    - See list of features supported
>    <https://github.com/python-lsp/python-lsp-server#lsp-server-features>
>
> [image: d242d82a04c729be7c6e6b0b84759c2f.png]
>
> LSP Configurations
> <https://github.com/python-lsp/python-lsp-server#configuration> available
> in Netbeans via:
> Tools -> Python Platforms -> Lsp Server
>
> [image: f4ecdf1c9e7648113e8dd265b277366a.png]
>
> Python Interpreters Management
>
>    - Multiple Python Interpreters Management including venv
>    <https://docs.python.org/3/library/venv.html#venv-def> and virtualenv
>
> [image: cad96c97900764698d62caf7d6bf49b4.png]
> Packages Management
>
>    - Manage Python Packages (Install/Delete) via Pypi <https://pypi.org/>
>    or personal Repositories
>
> [image: 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
>
> [image: 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
>
> [image: ebaed2b72b503dec7733d6698f3a0a72.png]
>
>

Re: New Python Plugin Release

Posted by Albilu <al...@gmail.com>.
Seems something is preventing the config files to be created in your 
environment.
Please fill a bug with your messages.log  to have much conntext.

Thanks

Le 07/04/2023 à 20:14, Piotr Hoppe a écrit :
> W dniu 07.04.2023 o 18:16, Albilu pisze:
>>
>> Can you show what your Settings tab (Tools-> Python Platforms-> Lsp 
>> Server) looks like?
>>
>> Seems installation of the Lsp was not completed. Should looks like 
>> below. if not Check the Auto update Check box. Delete previous 
>> installation environment: ${netbeans_userdir}/.pythonlsp
>>
> 1. I deleted previous installation environment from: .pythonlsp
>
> 2. Start NetBeans again then I got this:
>
> java.nio.file.NoSuchFileException: 
> C:\Users\Piotr\AppData\Roaming\NetBeans\17\.pythonlsp\platforms.json
>     at 
> java.base/sun.nio.fs.WindowsException.translateToIOException(WindowsException.java:85)
>     at 
> java.base/sun.nio.fs.WindowsException.rethrowAsIOException(WindowsException.java:103)
>     at 
> java.base/sun.nio.fs.WindowsException.rethrowAsIOException(WindowsException.java:108)
>     at 
> java.base/sun.nio.fs.WindowsFileSystemProvider.newByteChannel(WindowsFileSystemProvider.java:236)
>     at java.base/java.nio.file.Files.newByteChannel(Files.java:380)
>     at java.base/java.nio.file.Files.newByteChannel(Files.java:432)
>     at java.base/java.nio.file.Files.readAllBytes(Files.java:3288)
>     at java.base/java.nio.file.Files.readString(Files.java:3366)
>     at java.base/java.nio.file.Files.readString(Files.java:3325)
> [catch] at 
> org.netbeans.modules.python.options.PythonPlatformManager.getDefault(PythonPlatformManager.java:147)
>     at 
> org.netbeans.modules.python.PythonUtility.getPlatformPythonExe(PythonUtility.java:231)
>     at 
> org.netbeans.modules.python.statusbar.PythonStatusBarPanel.<init>(PythonStatusBarPanel.java:42)
>     at 
> org.netbeans.modules.python.statusbar.PythonStatusBar.getStatusLineElement(PythonStatusBar.java:16)
>     at 
> org.netbeans.core.windows.view.ui.MainWindow$7.run(MainWindow.java:403)
>     at 
> org.netbeans.core.windows.view.ui.MainWindow.getStatusLineElements(MainWindow.java:415)
>     at 
> org.netbeans.core.windows.view.ui.MainWindow.decoratePanel(MainWindow.java:369)
>     at 
> org.netbeans.core.windows.view.ui.MainWindow.access$100(MainWindow.java:56)
>     at 
> org.netbeans.core.windows.view.ui.MainWindow$2.run(MainWindow.java:246)
>     at 
> org.netbeans.core.windows.WindowManagerImpl$Exclusive$1.run(WindowManagerImpl.java:1611)
>     at 
> org.netbeans.modules.openide.util.GlobalLookup.execute(GlobalLookup.java:45)
>     at org.openide.util.lookup.Lookups.executeWith(Lookups.java:287)
>     at 
> org.netbeans.modules.openide.util.NbMutexEventProvider$Event.lambda$doEventRequest$1(NbMutexEventProvider.java:112)
>     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)
>     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)
> 3. I see: "Install pylsp dependencies"
>
> 4. I go to: Tool|Options|Python|Lsp Server and I seeing nothing in 
> "Configuration" text area and the "Python platform" list is empty
>
>
> Piotr
>
>> And restart Netbeans.
>>
>> Le 07/04/2023 à 17:43, Piotr Hoppe a écrit :
>>> 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
>>>
>>>
>

Re: New Python Plugin Release

Posted by Piotr Hoppe <ty...@gmail.com>.
W dniu 07.04.2023 o 18:16, Albilu pisze:
>
> Can you show what your Settings tab (Tools-> Python Platforms-> Lsp 
> Server) looks like?
>
> Seems installation of the Lsp was not completed. Should looks like 
> below. if not Check the Auto update Check box. Delete previous 
> installation environment: ${netbeans_userdir}/.pythonlsp
>
1. I deleted previous installation environment from: .pythonlsp

2. Start NetBeans again then I got this:

java.nio.file.NoSuchFileException: 
C:\Users\Piotr\AppData\Roaming\NetBeans\17\.pythonlsp\platforms.json
     at 
java.base/sun.nio.fs.WindowsException.translateToIOException(WindowsException.java:85)
     at 
java.base/sun.nio.fs.WindowsException.rethrowAsIOException(WindowsException.java:103)
     at 
java.base/sun.nio.fs.WindowsException.rethrowAsIOException(WindowsException.java:108)
     at 
java.base/sun.nio.fs.WindowsFileSystemProvider.newByteChannel(WindowsFileSystemProvider.java:236)
     at java.base/java.nio.file.Files.newByteChannel(Files.java:380)
     at java.base/java.nio.file.Files.newByteChannel(Files.java:432)
     at java.base/java.nio.file.Files.readAllBytes(Files.java:3288)
     at java.base/java.nio.file.Files.readString(Files.java:3366)
     at java.base/java.nio.file.Files.readString(Files.java:3325)
[catch] at 
org.netbeans.modules.python.options.PythonPlatformManager.getDefault(PythonPlatformManager.java:147)
     at 
org.netbeans.modules.python.PythonUtility.getPlatformPythonExe(PythonUtility.java:231)
     at 
org.netbeans.modules.python.statusbar.PythonStatusBarPanel.<init>(PythonStatusBarPanel.java:42)
     at 
org.netbeans.modules.python.statusbar.PythonStatusBar.getStatusLineElement(PythonStatusBar.java:16)
     at 
org.netbeans.core.windows.view.ui.MainWindow$7.run(MainWindow.java:403)
     at 
org.netbeans.core.windows.view.ui.MainWindow.getStatusLineElements(MainWindow.java:415)
     at 
org.netbeans.core.windows.view.ui.MainWindow.decoratePanel(MainWindow.java:369)
     at 
org.netbeans.core.windows.view.ui.MainWindow.access$100(MainWindow.java:56)
     at 
org.netbeans.core.windows.view.ui.MainWindow$2.run(MainWindow.java:246)
     at 
org.netbeans.core.windows.WindowManagerImpl$Exclusive$1.run(WindowManagerImpl.java:1611)
     at 
org.netbeans.modules.openide.util.GlobalLookup.execute(GlobalLookup.java:45)
     at org.openide.util.lookup.Lookups.executeWith(Lookups.java:287)
     at 
org.netbeans.modules.openide.util.NbMutexEventProvider$Event.lambda$doEventRequest$1(NbMutexEventProvider.java:112)
     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)
     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)
3. I see: "Install pylsp dependencies"

4. I go to: Tool|Options|Python|Lsp Server and I seeing nothing in 
"Configuration" text area and the "Python platform" list is empty


Piotr

> And restart Netbeans.
>
> Le 07/04/2023 à 17:43, Piotr Hoppe a écrit :
>> 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
>>
>>

Re: New Python Plugin Release

Posted by Piotr Hoppe <ty...@gmail.com>.
W dniu 07.04.2023 o 18:16, Albilu pisze:
>
> Can you show what your Settings tab (Tools-> Python Platforms-> Lsp 
> Server) looks like?
>
It is completely empty:

Options

Piotr


> Seems installation of the Lsp was not completed. Should looks like 
> below. if not Check the Auto update Check box. Delete previous 
> installation environment: ${netbeans_userdir}/.pythonlsp
>
> And restart Netbeans.
>
> Le 07/04/2023 à 17:43, Piotr Hoppe a écrit :
>> 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
>>
>>

Re: New Python Plugin Release

Posted by Albilu <al...@gmail.com>.
Can you show what your Settings tab (Tools-> Python Platforms-> Lsp 
Server) looks like?

Seems installation of the Lsp was not completed. Should looks like 
below. if not Check the Auto update Check box. Delete previous 
installation environment: ${netbeans_userdir}/.pythonlsp

And restart Netbeans.

Le 07/04/2023 à 17:43, Piotr Hoppe a écrit :
> 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
>
>

Re: New Python Plugin Release

Posted by Piotr Hoppe <ty...@gmail.com>.
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-unsubscribe@netbeans.apache.org
For additional commands, e-mail: dev-help@netbeans.apache.org

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




Re: New Python Plugin Release

Posted by Albilu <al...@gmail.com>.
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?


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

Re: New Python Plugin Release

Posted by Piotr Hoppe <ty...@gmail.com>.
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

Re: New Python Plugin Release

Posted by Bill Brooks <ww...@gmail.com>.
Looks interesting! I'll check it out this weekend.

What happens when the beta period has completed? Are you planning on
submitting this as a PR or for inclusion on the NetBeans Plugin Portal
<https://plugins.netbeans.apache.org/>?

Bill


On Thu, Apr 6, 2023 at 12:53 PM Albilu <al...@gmail.com> wrote:

> 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
>
> [image: f9b73732e9534000af91eb4e9bf11208.png]
> LSP Server Features
>
>    - See list of features supported
>    <https://github.com/python-lsp/python-lsp-server#lsp-server-features>
>
> [image: d242d82a04c729be7c6e6b0b84759c2f.png]
>
> LSP Configurations
> <https://github.com/python-lsp/python-lsp-server#configuration> available
> in Netbeans via:
> Tools -> Python Platforms -> Lsp Server
>
> [image: f4ecdf1c9e7648113e8dd265b277366a.png]
>
> Python Interpreters Management
>
>    - Multiple Python Interpreters Management including venv
>    <https://docs.python.org/3/library/venv.html#venv-def> and virtualenv
>
> [image: cad96c97900764698d62caf7d6bf49b4.png]
> Packages Management
>
>    - Manage Python Packages (Install/Delete) via Pypi <https://pypi.org/>
>    or personal Repositories
>
> [image: 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
>
> [image: 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
>
> [image: ebaed2b72b503dec7733d6698f3a0a72.png]
>
>