Re: LSP Language Server Protocol

2021-10-31 Thread Eric Bresie
js/javascript as a basis and starting to try to get that working
but running into minor issues (see Public vs Friend API thread)

>
> > Depending on the language assume there may be need for additional
> plug-in/module management support (i.e. node module, Python pips, etc.).
> Or would this be in someway some kind of dependency handling functionality
> for the language?
>
> If there is smth else that you need beside the language server or the
> textmate like a package manager or whatever, you need to add this by your
> own. But should be simple. Custom nodes, adding CLIs etc.
>

For python usage, I'm trying to account for (1) different versions of
python (maybe including jython), and (2) python modules/packages (node js
uses npm so though python + pip might be a good equivalent mechanism), and
(3) debugging (this is a bigger beast but I think python may provide a
"pdb" type interface which may be usable at some point).

>
> > If in the past there was an older implementations for a given language,
> is
> it better to start over, to convert over to an LSP based merging code when
> possible or just maintain the existing updating to current standards?
> Assume this depends on the implemented language but figure I’d add as an
> extra step to start porting languages.
>
> I would say it is a matter of taste. If you think ANTLR is easy, use this.
> For me I would definitely use the newest stuff if all is working just fine.
>
> Well...I'm trying to reimplement python as an LSP, so I will see how this
pans out.

If that does work, would it be better to include it as a cluster in
mainline or as a separate plugin?  I'm leaning towards plugin at the
moment, but still in the early stages.


> Hope that helps.
>

Very much.  Thanks again.


> Cheers
>
> Chris
>
> Von: Eric Bresie
> Gesendet: Samstag, 16. Oktober 2021 16:49
> An: Netbeans Developer List
> Betreff: Re: LSP Language Server Protocol
>
> While looking on the wiki, I noticed the following.
>
>
> https://cwiki.apache.org/confluence/display/NETBEANS/Adding+New+Language+Support
>
> Perhaps discussions of writing a tutorial can be added to this to help the
> community.
>
> Eric Bresie
> ebre...@gmail.com
>
>
> On Fri, Oct 8, 2021 at 7:45 AM Eric Bresie  wrote:
>
> > Follow up question…
> >
> > Assume the LSP is for language editing mainly but how do linking with a
> > given compiler and/or run type action get handled?
> >
> > Assume there may be need to handle setting up instances of a given
> > languages compiler/runtime so where is this setup?
> >
> > Depending on the language assume there may be need for additional
> > plug-in/module management support (i.e. node module, Python pips, etc.).
> > Or would this be in someway some kind of dependency handling
> functionality
> > for the language?
> >
> > If in the past there was an older implementations for a given language,
> is
> > it better to start over, to convert over to an LSP based merging code
> when
> > possible or just maintain the existing updating to current standards?
> > Assume this depends on the implemented language but figure I’d add as an
> > extra step to start porting languages.
> >
> > On Fri, Oct 8, 2021 at 7:34 AM Eric Bresie  wrote:
> >
> >> I’ve seen the tutorial and appreciated the context, but was curious if
> >> more generalized perspective can be expanded on as this is a specific
> >> implementation.  Some of the following may be implied by the article
> >> indirectly but wanted to confirm it here as well.
> >>
> >> It talks about setting up a node.js bash LSP server.  So in general,
> does
> >> each language need some sort of equivalent LSP Server ?  Or does the
> >> provided LSP in Netbeans work well enough to support other languages?
> >>
> >> Assume if a server is not available then one may need to be implemented.
> >> Assume to do this would require compliance with LSP interface of some
> type
> >> and if so where can this be found?  Is there interface defined in
> Netbeans
> >> which can be extended or implemented from?
> >>
> >> If an server is available how should that be brought in?  Add a
> >> dependency which gets pulled in with maybe some wrapper layer having it?
> >>
> >> In what context does the “server” get started up/loaded within Netbeans?
> >> Are there specific triggers to start it (i.e. when working on a specific
> >> file type of the given language, if the language support is “active”, at
> >> startup, or some other trigger)?
> >>
> >> I seem to recall in the prefer

AW: LSP Language Server Protocol

2021-10-27 Thread Christian Lenz
an “external
implemented server”, does this mean limited or no coverage of the grammar
would have to be considered?

Back to that, what I already wrote, both the textmate grammar file and the lsp 
are not coupled in NetBeans. The LSP has their own parser, maybe they are also 
based on the given textmate, but not from NetBeans. You can have a look into a 
LSP and search for the parser and you will see that.


> What client interfaces need to be implemented and where are they defined?
Does the client also need knowledge of the grammar in some way?

I have no idea what that means, sry about that.


> Assume the “mime-type” may need to be based on standardized ‘mime-types”
for a given language.  Is there a sources to use to get these
“mime-types”?  Can always google but if there is someplace already
established with these to base on that may also help some.

The problem with the options UI, it will only add a mimetype which does not 
make any sense (text/x-ext-a, text/x-ext-b, text/x-ext-c, etc.). So I added my 
own mimetype to each filetype, where I think it makes sense. I dunno whether 
every filetype has a standard mimetype, I know there is a list somewhere in the 
net but yeah.


> Assume the LSP is for language editing mainly but how do linking with a
given compiler and/or run type action get handled?

I think for building and compiling you will need a CLI to add this like adding 
node, rust or the .net CLI. I dunno whether the LSP will do this also but could 
be.


> Assume there may be need to handle setting up instances of a given
languages compiler/runtime so where is this setup?

Just create a new option where it make sense and let the user search for the 
binaries that you need as you also can see in the node implementation or in a 
could of other plugins.


> Depending on the language assume there may be need for additional
plug-in/module management support (i.e. node module, Python pips, etc.).
Or would this be in someway some kind of dependency handling functionality
for the language?

If there is smth else that you need beside the language server or the textmate 
like a package manager or whatever, you need to add this by your own. But 
should be simple. Custom nodes, adding CLIs etc.


> If in the past there was an older implementations for a given language, is
it better to start over, to convert over to an LSP based merging code when
possible or just maintain the existing updating to current standards?
Assume this depends on the implemented language but figure I’d add as an
extra step to start porting languages.

I would say it is a matter of taste. If you think ANTLR is easy, use this. For 
me I would definitely use the newest stuff if all is working just fine.

Hope that helps.


Cheers

Chris

Von: Eric Bresie
Gesendet: Samstag, 16. Oktober 2021 16:49
An: Netbeans Developer List
Betreff: Re: LSP Language Server Protocol

While looking on the wiki, I noticed the following.

https://cwiki.apache.org/confluence/display/NETBEANS/Adding+New+Language+Support

Perhaps discussions of writing a tutorial can be added to this to help the
community.

Eric Bresie
ebre...@gmail.com


On Fri, Oct 8, 2021 at 7:45 AM Eric Bresie  wrote:

> Follow up question…
>
> Assume the LSP is for language editing mainly but how do linking with a
> given compiler and/or run type action get handled?
>
> Assume there may be need to handle setting up instances of a given
> languages compiler/runtime so where is this setup?
>
> Depending on the language assume there may be need for additional
> plug-in/module management support (i.e. node module, Python pips, etc.).
> Or would this be in someway some kind of dependency handling functionality
> for the language?
>
> If in the past there was an older implementations for a given language, is
> it better to start over, to convert over to an LSP based merging code when
> possible or just maintain the existing updating to current standards?
> Assume this depends on the implemented language but figure I’d add as an
> extra step to start porting languages.
>
> On Fri, Oct 8, 2021 at 7:34 AM Eric Bresie  wrote:
>
>> I’ve seen the tutorial and appreciated the context, but was curious if
>> more generalized perspective can be expanded on as this is a specific
>> implementation.  Some of the following may be implied by the article
>> indirectly but wanted to confirm it here as well.
>>
>> It talks about setting up a node.js bash LSP server.  So in general, does
>> each language need some sort of equivalent LSP Server ?  Or does the
>> provided LSP in Netbeans work well enough to support other languages?
>>
>> Assume if a server is not available then one may need to be implemented.
>> Assume to do this would require compliance with LSP interface of some type
>> and if so where can this be found?  Is there interface defined in Netbeans
>

Re: [External] : LSP Language Server Protocol

2021-10-24 Thread Eric Bresie
FYI...May be other sources but...

https://cwiki.apache.org/confluence/display/NETBEANS/Adding+New+Language+Support

Eric Bresie
ebre...@gmail.com


On Wed, Sep 8, 2021 at 1:39 PM Jack W.  wrote:

> Thanks, Martin ... I had not previously noticed the evolution of this
> cross-platform language server model.
>
> On Wed, Sep 8, 2021 at 9:51 AM Martin Balin 
> wrote:
>
> > https://github.com/apache/netbeans/tree/master/java/java.lsp.server
> > heavily used in VSCode NetBeans Language Server.
> > Martin
> >
>
>
> --
> ---
> Jack Woehr   # Woehr's Asymptote: The ratio of the time spent
> Box 51, Golden CO 80402  # administering productivity software over the
> time
> http://www.softwoehr.com # saved by said software eventually approximates
> 1.
>


Re: LSP Language Server Protocol

2021-10-16 Thread Eric Bresie
I've started to add comments on the page taken from many mailing list
threads in hopes these can be edited together and make it into the page
proper at some point.

There are suggested items needed for a new language, references to specs,
references to existing text mate grammers, LSP implementations, etc.

See what you think.

Eric Bresie
ebre...@gmail.com


On Sat, Oct 16, 2021 at 9:49 AM Eric Bresie  wrote:

> While looking on the wiki, I noticed the following.
>
>
> https://cwiki.apache.org/confluence/display/NETBEANS/Adding+New+Language+Support
>
> Perhaps discussions of writing a tutorial can be added to this to help the
> community.
>
> Eric Bresie
> ebre...@gmail.com
>
>
> On Fri, Oct 8, 2021 at 7:45 AM Eric Bresie  wrote:
>
>> Follow up question…
>>
>> Assume the LSP is for language editing mainly but how do linking with a
>> given compiler and/or run type action get handled?
>>
>> Assume there may be need to handle setting up instances of a given
>> languages compiler/runtime so where is this setup?
>>
>> Depending on the language assume there may be need for additional
>> plug-in/module management support (i.e. node module, Python pips, etc.).
>> Or would this be in someway some kind of dependency handling functionality
>> for the language?
>>
>> If in the past there was an older implementations for a given language,
>> is it better to start over, to convert over to an LSP based merging code
>> when possible or just maintain the existing updating to current standards?
>> Assume this depends on the implemented language but figure I’d add as an
>> extra step to start porting languages.
>>
>> On Fri, Oct 8, 2021 at 7:34 AM Eric Bresie  wrote:
>>
>>> I’ve seen the tutorial and appreciated the context, but was curious if
>>> more generalized perspective can be expanded on as this is a specific
>>> implementation.  Some of the following may be implied by the article
>>> indirectly but wanted to confirm it here as well.
>>>
>>> It talks about setting up a node.js bash LSP server.  So in general,
>>> does each language need some sort of equivalent LSP Server ?  Or does the
>>> provided LSP in Netbeans work well enough to support other languages?
>>>
>>> Assume if a server is not available then one may need to be
>>> implemented.  Assume to do this would require compliance with LSP interface
>>> of some type and if so where can this be found?  Is there interface defined
>>> in Netbeans which can be extended or implemented from?
>>>
>>> If an server is available how should that be brought in?  Add a
>>> dependency which gets pulled in with maybe some wrapper layer having it?
>>>
>>> In what context does the “server” get started up/loaded within
>>> Netbeans?  Are there specific triggers to start it (i.e. when working on a
>>> specific file type of the given language, if the language support is
>>> “active”, at startup, or some other trigger)?
>>>
>>> I seem to recall in the preference section there is the ability to
>>> define an LSP support.  How does this interact with the new language
>>> implemented here?  In other words, does something have to be defined and
>>> added so that it includes in that area?  Does the user have to manually
>>> define that (I would hope not but maybe initially) and link up the LSP?
>>>
>>> How is the grammar (tm) linked up?  Is that supported by the server or
>>> does the server link to the external grammar?  So if there is an “external
>>> implemented server”, does this mean limited or no coverage of the grammar
>>> would have to be considered?
>>>
>>> What client interfaces need to be implemented and where are they
>>> defined?  Does the client also need knowledge of the grammar in some way?
>>>
>>> Assume the “mime-type” may need to be based on standardized ‘mime-types”
>>> for a given language.  Is there a sources to use to get these
>>> “mime-types”?  Can always google but if there is someplace already
>>> established with these to base on that may also help some.
>>>
>>>
>>> On Thu, Oct 7, 2021 at 1:18 AM Jaroslav Tulach <
>>> jaroslav.tul...@gmail.com> wrote:
>>>
 >- LSP  seems to be gaining ground, but
 there
 >are no tutorials, apart from Jan Lahoda's rudimental one
 >.


 Why do you call the tutorial "rudimental"? The tutorial is short, but
 it
 contains grammar, syntax coloring, and LSP server. E.g. everything.
 Shouldn't
 you rather call the tutorial "end-to-end" guide for integrating
 languages into
 NetBeans via LSP?

 -jt

 PS: The only question is why people don't follow the tutorial and
 create a new
 PR with a new language integration per week?




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

 For 

Re: LSP Language Server Protocol

2021-10-16 Thread Eric Bresie
While looking on the wiki, I noticed the following.

https://cwiki.apache.org/confluence/display/NETBEANS/Adding+New+Language+Support

Perhaps discussions of writing a tutorial can be added to this to help the
community.

Eric Bresie
ebre...@gmail.com


On Fri, Oct 8, 2021 at 7:45 AM Eric Bresie  wrote:

> Follow up question…
>
> Assume the LSP is for language editing mainly but how do linking with a
> given compiler and/or run type action get handled?
>
> Assume there may be need to handle setting up instances of a given
> languages compiler/runtime so where is this setup?
>
> Depending on the language assume there may be need for additional
> plug-in/module management support (i.e. node module, Python pips, etc.).
> Or would this be in someway some kind of dependency handling functionality
> for the language?
>
> If in the past there was an older implementations for a given language, is
> it better to start over, to convert over to an LSP based merging code when
> possible or just maintain the existing updating to current standards?
> Assume this depends on the implemented language but figure I’d add as an
> extra step to start porting languages.
>
> On Fri, Oct 8, 2021 at 7:34 AM Eric Bresie  wrote:
>
>> I’ve seen the tutorial and appreciated the context, but was curious if
>> more generalized perspective can be expanded on as this is a specific
>> implementation.  Some of the following may be implied by the article
>> indirectly but wanted to confirm it here as well.
>>
>> It talks about setting up a node.js bash LSP server.  So in general, does
>> each language need some sort of equivalent LSP Server ?  Or does the
>> provided LSP in Netbeans work well enough to support other languages?
>>
>> Assume if a server is not available then one may need to be implemented.
>> Assume to do this would require compliance with LSP interface of some type
>> and if so where can this be found?  Is there interface defined in Netbeans
>> which can be extended or implemented from?
>>
>> If an server is available how should that be brought in?  Add a
>> dependency which gets pulled in with maybe some wrapper layer having it?
>>
>> In what context does the “server” get started up/loaded within Netbeans?
>> Are there specific triggers to start it (i.e. when working on a specific
>> file type of the given language, if the language support is “active”, at
>> startup, or some other trigger)?
>>
>> I seem to recall in the preference section there is the ability to define
>> an LSP support.  How does this interact with the new language implemented
>> here?  In other words, does something have to be defined and added so that
>> it includes in that area?  Does the user have to manually define that (I
>> would hope not but maybe initially) and link up the LSP?
>>
>> How is the grammar (tm) linked up?  Is that supported by the server or
>> does the server link to the external grammar?  So if there is an “external
>> implemented server”, does this mean limited or no coverage of the grammar
>> would have to be considered?
>>
>> What client interfaces need to be implemented and where are they
>> defined?  Does the client also need knowledge of the grammar in some way?
>>
>> Assume the “mime-type” may need to be based on standardized ‘mime-types”
>> for a given language.  Is there a sources to use to get these
>> “mime-types”?  Can always google but if there is someplace already
>> established with these to base on that may also help some.
>>
>>
>> On Thu, Oct 7, 2021 at 1:18 AM Jaroslav Tulach 
>> wrote:
>>
>>> >- LSP  seems to be gaining ground, but
>>> there
>>> >are no tutorials, apart from Jan Lahoda's rudimental one
>>> >.
>>>
>>>
>>> Why do you call the tutorial "rudimental"? The tutorial is short, but it
>>> contains grammar, syntax coloring, and LSP server. E.g. everything.
>>> Shouldn't
>>> you rather call the tutorial "end-to-end" guide for integrating
>>> languages into
>>> NetBeans via LSP?
>>>
>>> -jt
>>>
>>> PS: The only question is why people don't follow the tutorial and create
>>> a new
>>> PR with a new language integration per week?
>>>
>>>
>>>
>>>
>>> -
>>> 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
>>>
>>>
>>>
>>> --
>> Eric Bresie
>> ebre...@gmail.com
>>
> --
> Eric Bresie
> ebre...@gmail.com
>


Re: LSP Language Server Protocol

2021-10-08 Thread Eric Bresie
I’ve seen the tutorial and appreciated the context, but was curious if more
generalized perspective can be expanded on as this is a specific
implementation.  Some of the following may be implied by the article
indirectly but wanted to confirm it here as well.

It talks about setting up a node.js bash LSP server.  So in general, does
each language need some sort of equivalent LSP Server ?  Or does the
provided LSP in Netbeans work well enough to support other languages?

Assume if a server is not available then one may need to be implemented.
Assume to do this would require compliance with LSP interface of some type
and if so where can this be found?  Is there interface defined in Netbeans
which can be extended or implemented from?

If an server is available how should that be brought in?  Add a dependency
which gets pulled in with maybe some wrapper layer having it?

In what context does the “server” get started up/loaded within Netbeans?
Are there specific triggers to start it (i.e. when working on a specific
file type of the given language, if the language support is “active”, at
startup, or some other trigger)?

I seem to recall in the preference section there is the ability to define
an LSP support.  How does this interact with the new language implemented
here?  In other words, does something have to be defined and added so that
it includes in that area?  Does the user have to manually define that (I
would hope not but maybe initially) and link up the LSP?

How is the grammar (tm) linked up?  Is that supported by the server or does
the server link to the external grammar?  So if there is an “external
implemented server”, does this mean limited or no coverage of the grammar
would have to be considered?

What client interfaces need to be implemented and where are they defined?
Does the client also need knowledge of the grammar in some way?

Assume the “mime-type” may need to be based on standardized ‘mime-types”
for a given language.  Is there a sources to use to get these
“mime-types”?  Can always google but if there is someplace already
established with these to base on that may also help some.


On Thu, Oct 7, 2021 at 1:18 AM Jaroslav Tulach 
wrote:

> >- LSP  seems to be gaining ground, but there
> >are no tutorials, apart from Jan Lahoda's rudimental one
> >.
>
>
> Why do you call the tutorial "rudimental"? The tutorial is short, but it
> contains grammar, syntax coloring, and LSP server. E.g. everything.
> Shouldn't
> you rather call the tutorial "end-to-end" guide for integrating languages
> into
> NetBeans via LSP?
>
> -jt
>
> PS: The only question is why people don't follow the tutorial and create a
> new
> PR with a new language integration per week?
>
>
>
>
> -
> 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
>
>
>
> --
Eric Bresie
ebre...@gmail.com


Re: LSP Language Server Protocol

2021-10-07 Thread Jaroslav Tulach
>- LSP  seems to be gaining ground, but there
>are no tutorials, apart from Jan Lahoda's rudimental one
>.


Why do you call the tutorial "rudimental"? The tutorial is short, but it 
contains grammar, syntax coloring, and LSP server. E.g. everything. Shouldn't 
you rather call the tutorial "end-to-end" guide for integrating languages into 
NetBeans via LSP?

-jt

PS: The only question is why people don't follow the tutorial and create a new 
PR with a new language integration per week? 




-
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





Re: LSP Language Server Protocol

2021-09-30 Thread John Kostaras
That could be a good idea even though it might be a hard task for a
Hackathlon. I 'll do the JIRA PR work and update confluence
<https://cwiki.apache.org/confluence/display/NETBEANS/Community+plugins>.

Thanks Adam.

Ioannis.

On Thu, 30 Sept 2021 at 15:29, Adam Russell  wrote:

> Digital Ocean's Hacktoberfest is right around the corner. If a repo for
> plugins is amrked as participating, along with some guidance on what a good
> PR would cover, that might be a good opportunity to kick start some new
> plugin work.
> 
> From: John Kostaras 
> Sent: Thursday, September 30, 2021 7:33 AM
> To: dev@netbeans.apache.org 
> Subject: Re: LSP Language Server Protocol
>
> I 'd like to take this opportunity to mention that NetBeans loses many
> users because it simply doesn't support many other languages anymore, and
> it is not easy to migrate the many half-baked plugins
> <https://cwiki.apache.org/confluence/display/NETBEANS/Community+plugins>
> from older versions to the latest Apache NetBeans platform.
>
>- JavaCC <https://javacc.github.io/javacc/> is the old way
>- ANTLR <https://www.antlr.org/> is the modern way, but it is not easy
>to keep the many languages up-to-date; there are a number of tutorials
> on
>how to create a NB plugin using ANTLR, many outdated, with the best one
> in
>the Apache NetBeans book
>- LSP <https://langserver.org/> seems to be gaining ground, but there
>are no tutorials, apart from Jan Lahoda's rudimental one
><https://blogs.apache.org/netbeans/entry/lsp-client-demo-ba-sh>.
>
> I plan to also write a tutorial on the various ways (e.g. javacc, antlr,
> lsp) but it will take time, which I don't have in my already very heavy
> list of ToDos.
>
> I don't know how we could:
>
>- organise to write tutorials on how to port a new language as a
>NetBeans plugin
>- port the half-baked plugins
><https://cwiki.apache.org/confluence/display/NETBEANS/Community+plugins
> >
>providing help to the respective authors ; the NetBeans Platform APIs
> have
>changed during time, and it is not obvious how to migrate old code
>
> Kind regards,
>
> Ioannis.
>
>
>
>
> On Sun, 26 Sept 2021 at 21:46, Eric Bresie  wrote:
>
> > Some of this may be of help…
> >
> > (1) https://langserver.org/
> > (2)
> >
> >
> https://lists.apache.org/thread.html/r004212da38a55a7779b58ed03e851e6f017b150abe43d7a868bea236%40%3Cdev.netbeans.apache.org%3E
> >
> > Eric
> >
> > On Wed, Sep 8, 2021 at 11:55 AM Jack W.  wrote:
> >
> > > Thanks for the pointer, John, very helpful.
> > >
> > > On Wed, Sep 8, 2021 at 10:52 AM John Kostaras 
> > wrote:
> > >
> > > > There is this
> > > > <https://blogs.apache.org/netbeans/entry/lsp-client-demo-ba-sh>.
> > > >
> > >
> > > ---
> > > Jack Woehr   # Woehr's Asymptote: The ratio of the time
> spent
> > > Box 51, Golden CO 80402  # administering productivity software over the
> > > time
> > > http://www.softwoehr.com # saved by said software eventually
> > approximates
> > > 1.
> > >
> > --
> > Eric Bresie
> > ebre...@gmail.com
> >
>


Re: LSP Language Server Protocol

2021-09-30 Thread Adam Russell
Digital Ocean's Hacktoberfest is right around the corner. If a repo for plugins 
is amrked as participating, along with some guidance on what a good PR would 
cover, that might be a good opportunity to kick start some new plugin work.

From: John Kostaras 
Sent: Thursday, September 30, 2021 7:33 AM
To: dev@netbeans.apache.org 
Subject: Re: LSP Language Server Protocol

I 'd like to take this opportunity to mention that NetBeans loses many
users because it simply doesn't support many other languages anymore, and
it is not easy to migrate the many half-baked plugins
<https://cwiki.apache.org/confluence/display/NETBEANS/Community+plugins>
from older versions to the latest Apache NetBeans platform.

   - JavaCC <https://javacc.github.io/javacc/> is the old way
   - ANTLR <https://www.antlr.org/> is the modern way, but it is not easy
   to keep the many languages up-to-date; there are a number of tutorials on
   how to create a NB plugin using ANTLR, many outdated, with the best one in
   the Apache NetBeans book
   - LSP <https://langserver.org/> seems to be gaining ground, but there
   are no tutorials, apart from Jan Lahoda's rudimental one
   <https://blogs.apache.org/netbeans/entry/lsp-client-demo-ba-sh>.

I plan to also write a tutorial on the various ways (e.g. javacc, antlr,
lsp) but it will take time, which I don't have in my already very heavy
list of ToDos.

I don't know how we could:

   - organise to write tutorials on how to port a new language as a
   NetBeans plugin
   - port the half-baked plugins
   <https://cwiki.apache.org/confluence/display/NETBEANS/Community+plugins>
   providing help to the respective authors ; the NetBeans Platform APIs have
   changed during time, and it is not obvious how to migrate old code

Kind regards,

Ioannis.




On Sun, 26 Sept 2021 at 21:46, Eric Bresie  wrote:

> Some of this may be of help…
>
> (1) https://langserver.org/
> (2)
>
> https://lists.apache.org/thread.html/r004212da38a55a7779b58ed03e851e6f017b150abe43d7a868bea236%40%3Cdev.netbeans.apache.org%3E
>
> Eric
>
> On Wed, Sep 8, 2021 at 11:55 AM Jack W.  wrote:
>
> > Thanks for the pointer, John, very helpful.
> >
> > On Wed, Sep 8, 2021 at 10:52 AM John Kostaras 
> wrote:
> >
> > > There is this
> > > <https://blogs.apache.org/netbeans/entry/lsp-client-demo-ba-sh>.
> > >
> >
> > ---
> > Jack Woehr   # Woehr's Asymptote: The ratio of the time spent
> > Box 51, Golden CO 80402  # administering productivity software over the
> > time
> > http://www.softwoehr.com # saved by said software eventually
> approximates
> > 1.
> >
> --
> Eric Bresie
> ebre...@gmail.com
>


Re: LSP Language Server Protocol

2021-09-30 Thread John Kostaras
I 'd like to take this opportunity to mention that NetBeans loses many
users because it simply doesn't support many other languages anymore, and
it is not easy to migrate the many half-baked plugins

from older versions to the latest Apache NetBeans platform.

   - JavaCC  is the old way
   - ANTLR  is the modern way, but it is not easy
   to keep the many languages up-to-date; there are a number of tutorials on
   how to create a NB plugin using ANTLR, many outdated, with the best one in
   the Apache NetBeans book
   - LSP  seems to be gaining ground, but there
   are no tutorials, apart from Jan Lahoda's rudimental one
   .

I plan to also write a tutorial on the various ways (e.g. javacc, antlr,
lsp) but it will take time, which I don't have in my already very heavy
list of ToDos.

I don't know how we could:

   - organise to write tutorials on how to port a new language as a
   NetBeans plugin
   - port the half-baked plugins
   
   providing help to the respective authors ; the NetBeans Platform APIs have
   changed during time, and it is not obvious how to migrate old code

Kind regards,

Ioannis.




On Sun, 26 Sept 2021 at 21:46, Eric Bresie  wrote:

> Some of this may be of help…
>
> (1) https://langserver.org/
> (2)
>
> https://lists.apache.org/thread.html/r004212da38a55a7779b58ed03e851e6f017b150abe43d7a868bea236%40%3Cdev.netbeans.apache.org%3E
>
> Eric
>
> On Wed, Sep 8, 2021 at 11:55 AM Jack W.  wrote:
>
> > Thanks for the pointer, John, very helpful.
> >
> > On Wed, Sep 8, 2021 at 10:52 AM John Kostaras 
> wrote:
> >
> > > There is this
> > > .
> > >
> >
> > ---
> > Jack Woehr   # Woehr's Asymptote: The ratio of the time spent
> > Box 51, Golden CO 80402  # administering productivity software over the
> > time
> > http://www.softwoehr.com # saved by said software eventually
> approximates
> > 1.
> >
> --
> Eric Bresie
> ebre...@gmail.com
>


Re: LSP Language Server Protocol

2021-09-26 Thread Eric Bresie
Some of this may be of help…

(1) https://langserver.org/
(2)
https://lists.apache.org/thread.html/r004212da38a55a7779b58ed03e851e6f017b150abe43d7a868bea236%40%3Cdev.netbeans.apache.org%3E

Eric

On Wed, Sep 8, 2021 at 11:55 AM Jack W.  wrote:

> Thanks for the pointer, John, very helpful.
>
> On Wed, Sep 8, 2021 at 10:52 AM John Kostaras  wrote:
>
> > There is this
> > .
> >
>
> ---
> Jack Woehr   # Woehr's Asymptote: The ratio of the time spent
> Box 51, Golden CO 80402  # administering productivity software over the
> time
> http://www.softwoehr.com # saved by said software eventually approximates
> 1.
>
-- 
Eric Bresie
ebre...@gmail.com


Re: [External] : LSP Language Server Protocol

2021-09-08 Thread Jack W.
Thanks, Martin ... I had not previously noticed the evolution of this
cross-platform language server model.

On Wed, Sep 8, 2021 at 9:51 AM Martin Balin  wrote:

> https://github.com/apache/netbeans/tree/master/java/java.lsp.server
> heavily used in VSCode NetBeans Language Server.
> Martin
>


-- 
---
Jack Woehr   # Woehr's Asymptote: The ratio of the time spent
Box 51, Golden CO 80402  # administering productivity software over the time
http://www.softwoehr.com # saved by said software eventually approximates 1.


Re: LSP Language Server Protocol

2021-09-08 Thread Jack W.
Thanks for the pointer, John, very helpful.

On Wed, Sep 8, 2021 at 10:52 AM John Kostaras  wrote:

> There is this
> .
>

---
Jack Woehr   # Woehr's Asymptote: The ratio of the time spent
Box 51, Golden CO 80402  # administering productivity software over the time
http://www.softwoehr.com # saved by said software eventually approximates 1.


Re: LSP Language Server Protocol

2021-09-08 Thread Jack W.
Thanks, Neil ... we're looking at an OpenQASM language server
 ...

On Wed, Sep 8, 2021 at 9:58 AM Neil C Smith  wrote:

> On Wed, 8 Sept 2021 at 16:40, Jack W.  wrote:
> >
> > Can an "LSP" language server
> >  be integrated
> with
> > NetBeans?
>
> See under Tools / Options / Editors / Language Servers.
>
> I'm not sure if we have a good how-to for that somewhere?
>
> Best wishes,
>
> Neil
>
> -
> 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
>
>
>
>

-- 
---
Jack Woehr   # Woehr's Asymptote: The ratio of the time spent
Box 51, Golden CO 80402  # administering productivity software over the time
http://www.softwoehr.com # saved by said software eventually approximates 1.


Re: LSP Language Server Protocol

2021-09-08 Thread John Kostaras
There is this
.

On Wed, 8 Sept 2021 at 18:58, Neil C Smith  wrote:

> On Wed, 8 Sept 2021 at 16:40, Jack W.  wrote:
> >
> > Can an "LSP" language server
> >  be integrated
> with
> > NetBeans?
>
> See under Tools / Options / Editors / Language Servers.
>
> I'm not sure if we have a good how-to for that somewhere?
>
> Best wishes,
>
> Neil
>
> -
> 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
>
>
>
>


Re: LSP Language Server Protocol

2021-09-08 Thread Neil C Smith
On Wed, 8 Sept 2021 at 16:40, Jack W.  wrote:
>
> Can an "LSP" language server
>  be integrated with
> NetBeans?

See under Tools / Options / Editors / Language Servers.

I'm not sure if we have a good how-to for that somewhere?

Best wishes,

Neil

-
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





Re: [External] : LSP Language Server Protocol

2021-09-08 Thread Martin Balin
https://github.com/apache/netbeans/tree/master/java/java.lsp.server
heavily used in VSCode NetBeans Language Server.
Martin

On 8. 9. 2021, at 17:39, Jack W. 
mailto:softwo...@gmail.com>> wrote:

Can an "LSP" language server
 be integrated with
NetBeans?

--
---
Jack Woehr   # Woehr's Asymptote: The ratio of the time spent
Box 51, Golden CO 80402  # administering productivity software over the time
https://urldefense.com/v3/__http://www.softwoehr.com__;!!ACWV5N9M2RV99hQ!YttkCZv6U0whaUcIvEefKv_ixW28DTNl877IyPf0AAYhiQMiDtAbls3FxPvPLKbLdA$
  # saved by said software eventually approximates 1.



LSP Language Server Protocol

2021-09-08 Thread Jack W.
Can an "LSP" language server
 be integrated with
NetBeans?

-- 
---
Jack Woehr   # Woehr's Asymptote: The ratio of the time spent
Box 51, Golden CO 80402  # administering productivity software over the time
http://www.softwoehr.com # saved by said software eventually approximates 1.