Re: New Python Plugin Release

2023-04-07 Thread Bill Brooks
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
?

Bill


On Thu, Apr 6, 2023 at 12:53 PM Albilu  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  porjects creation (common
>poetry commands supported)
>- Run/Build projects
>
> [image: f9b73732e9534000af91eb4e9bf11208.png]
> LSP Server Features
>
>- See list of features supported
>
>
> [image: d242d82a04c729be7c6e6b0b84759c2f.png]
>
> LSP Configurations
>  available
> in Netbeans via:
> Tools -> Python Platforms -> Lsp Server
>
> [image: f4ecdf1c9e7648113e8dd265b277366a.png]
>
> Python Interpreters Management
>
>- Multiple Python Interpreters Management including venv
> and virtualenv
>
> [image: cad96c97900764698d62caf7d6bf49b4.png]
> Packages Management
>
>- Manage Python Packages (Install/Delete) via Pypi 
>or personal Repositories
>
> [image: 74a5dd8877b9608931b49604ab59440d.png]
> Python REPL
>
>- IPython  and PTPython
> integrated as Interactive
>Shells (with autocompletion)
>Windows -> Interactive Python Interpreters -> IPython
>
> [image: b18df5a8d44631819affe75ecd6fab61.png]
> Unittest/Test Coverage
>
>- Unittest /code
>coverage  suportted
>- Create/Generate unit tests
>- Go to test/tested class
>
> [image: ebaed2b72b503dec7733d6698f3a0a72.png]
>
>


Re: New Python Plugin Release

2023-04-07 Thread Piotr Hoppe

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  porjects creation (common
   |poetry| commands supported)
 * Run/Build projects

f9b73732e9534000af91eb4e9bf11208.png


 LSP Server Features

 * See list of features supported


d242d82a04c729be7c6e6b0b84759c2f.png

LSP Configurations 
 
available in Netbeans via:

|Tools -> Python Platforms -> Lsp Server|

f4ecdf1c9e7648113e8dd265b277366a.png||


 Python Interpreters Management

 * Multiple Python Interpreters Management including venv
 and |virtualenv|

cad96c97900764698d62caf7d6bf49b4.png


 Packages Management

 * Manage Python Packages (Install/Delete) via Pypi 
   or personal Repositories

74a5dd8877b9608931b49604ab59440d.png


 Python REPL

 * IPython  and PTPython
 integrated as
   Interactive Shells (with autocompletion)
   |Windows -> Interactive Python Interpreters -> IPython|

b18df5a8d44631819affe75ecd6fab61.png


 Unittest/Test Coverage

 * Unittest /code
   coverage  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(Native

Re: New Python Plugin Release

2023-04-07 Thread Albilu

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  porjects creation (common
   |poetry| commands supported)
 * Run/Build projects

f9b73732e9534000af91eb4e9bf11208.png


 LSP Server Features

 * See list of features supported


d242d82a04c729be7c6e6b0b84759c2f.png

LSP Configurations 
 
available in Netbeans via:

|Tools -> Python Platforms -> Lsp Server|

f4ecdf1c9e7648113e8dd265b277366a.png||


 Python Interpreters Management

 * Multiple Python Interpreters Management including venv
 and |virtualenv|

cad96c97900764698d62caf7d6bf49b4.png


 Packages Management

 * Manage Python Packages (Install/Delete) via Pypi 
   or personal Repositories

74a5dd8877b9608931b49604ab59440d.png


 Python REPL

 * IPython  and PTPython
 integrated as
   Interactive Shells (with autocompletion)
   |Windows -> Interactive Python Interpreters -> IPython|

b18df5a8d44631819affe75ecd6fab61.png


 Unittest/Test Coverage

 * Unittest /code
   coverage  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

Re: [Lazy Consensus] Minimum JDK build and run policy (dropping JDK 8)

2023-04-07 Thread John Kostaras
+1

Reading Neil's proposal carefully it seems like a reasonable/practical way
ahead. Sooner or later everybody will have to move forward and we need to
see how we can move on while supporting older Java versions where needed.

Just keep in mind that not all industries move as fast and it isn't  easy
to build huge legacy code bases in newer JDK versions sometimes (exactly
the opposite of what we are discussing here :) ).


K/r,

I. Kostaras

Στις Πέμ 6 Απρ 2023, 22:02 ο χρήστης Antonio 
έγραψε:

> +1
>
> On 3/4/23 11:38, Neil C Smith wrote:
> > Thanks, Neil
>
> Thank you, Neil, for a reasonable proposal.
>
> It's great to try to support the oldest JDKs possible, but that doesn't
> mean we have to live stuck in the past forever.
>
> The proposal to use NB18 release branch for backports makes sense to me,
> too, so people that require JDK8 compatibility can contribute there.
>
> Cheers,
> Antonio
>
> -
> 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
>
>
>
>