That worked.  Have checked in updates already.

Furthermore after more hacking around I was able to get things to start
working.

>From the Tools..Options...Python preferences (still needs work), it
identifies where python is installed.

In the applicable python environment, the python-language-server (see
https://pypi.org/project/python-language-server/ ) and all the applicable
dependencies had to be installed (need to figure out how to automate/setup
this upfront) into the environment (i.e. pip install
python-language-server[all] ).

Still a lot more to go (including a lot of code cleanup), but can check it
out https://github.com/ebresie/python4nb

Eric Bresie
[email protected]


On Sun, Feb 20, 2022 at 10:51 AM Matthias Bläsing <[email protected]>
wrote:

> Hi,
>
> Am Sonntag, dem 20.02.2022 um 09:31 -0600 schrieb Eric Bresie:
> > I have pushed my code to Github located at:
> >
> > https://github.com/ebresie/python4nb
> >
> > Keeping in mind this is a new implementation (i.e. not based on nbPython)
> > which is intended to be LSP based with textmate based highlighting.
> >
> > Note this is in very early stages of development with a lot still left to
> > do (i.e. like get past the problem in this thread).
>
> I think you are seeing the mess caused by NetBeans embracing JSR305 and
> that JSR failing. To fix:
>
> - I had to switch to maven-compiler-plugin 3.10.0, 3.9.0 failed with
>   java.lang.NoClassDefFoundError:
> org/codehaus/plexus/compiler/manager/NoSuchCompilerException
>   for me
>
> - The LSP dependency should be:
>           <dependency>
>             <groupId>org.netbeans.api</groupId>
>             <artifactId>org-netbeans-modules-lsp-client</artifactId>
>             <version>RELEASE126</version>
>         </dependency>
>
> - You need to have a provider for the JSR305 annotations:
>
>         <dependency>
>             <groupId>com.google.code.findbugs</groupId>
>             <artifactId>jsr305</artifactId>
>             <version>3.0.2</version>
>             <scope>provided</scope>
>         </dependency>
>
> For the last change, the annotations don't need to be present at
> runtime, just to make the classpath scanner of the maven nbm plugin
> happy. You can also disable runtime verification for the nbm maven
> plugin.
>
> HTH
>
> Matthias
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [email protected]
> For additional commands, e-mail: [email protected]
>
> For further information about the NetBeans mailing lists, visit:
> https://cwiki.apache.org/confluence/display/NETBEANS/Mailing+lists
>
>
>
>

Reply via email to