AW: Provide basic editor features for more file types out of thebox[WAS: Re: AW: Introductory Email]

2017-06-19 Thread Christian Lenz
The Problem is, what I think, to find or create such files by my self. I 
searched for months to find a C# grammar file for JavaCC. There isn’t so I used 
the Java and changed some stuff. Very error related because I don’t know much 
about grammar stuff.

Now I will rewrite my Plugin to ANTLR, because I found a proper C#.g4 file and 
will have a look whether it is better or not, but I think it is. So if you want 
to implement Haskell or F# to NB you need those files too and I think, to use a 
similar functionality what other IDEs/Editors alredas have would be better, 
because such user defined files are already there, look into the list for 
NotePad++: 
http://docs.notepad-plus-plus.org/index.php/User_Defined_Language_Files sor 
UltraEdit: https://www.ultraedit.com/downloads/extras/wordfiles.html

Not to missunderstand here. We really need such simpler method to bring a new 
language to NetBeans but we should use similar technics like other IDEs/Editors 
already do. So we can use the great list of user defined files from other 
IDEs/Editors.


Von: Peter Blemel
Gesendet: Montag, 19. Juni 2017 17:13
An: dev@netbeans.incubator.apache.org
Betreff: Re: Provide basic editor features for more file types out of 
thebox[WAS: Re: AW: Introductory Email]


I do.  I wrote both of my editors in Schliemann, and then re-wrote them when it 
was abandoned. There was some discussion at the time about why it was 
unsupportable, or perhaps just obsolete but I don't remember the details. 
However, that experience is part of why I am proposing an "editor generator" 
instead of another scripting language.


When developing a JavaCC or ANTLR grammar most tools require you to write the 
grammar first, in text, and then provide tools for visual representation.  As a 
software developer I have found this process to be tedious and error prone, and 
a lot of important meta data is lost. I propose to reverse the process, using a 
data model that can be manipulated by visual editing tools to model the 
language (and editor features), from which code can be generated and 
maintained. Additional plugins could be written that do other things with the 
model.


Peter



From: Sven Reimers 
Sent: Monday, June 19, 2017 9:00 AM
To: dev@netbeans.incubator.apache.org
Subject: Re: Provide basic editor features for more file types out of the 
box[WAS: Re: AW: Introductory Email]

Who can remember Schliemann Project in NetBeans?

Sven

Am 19.06.2017 1:08 nachm. schrieb "Emilian Bold" :

> In theory adding LSP support should be just as easy since the server does
> all the heavy lifting.
>
> But if we want to have for example Erlang syntax highlighting, etc. in the
> first case we just add another 10kb configuration file. In the second case
> we have to find and ship an Erlang LSP server.
>
> --emi
>
> Pe 19 iun. 2017, la 12:13, ehsavoie  a scris:
>
> > LSP is an API so you would 'only' have to start a process and connect to
> it
> > (through input/output stream mostly).
> > From my point of view a LSP editor is the generic editor you  are talking
> > about, and the LSP server is the file you are loading from.
> > The advantage is that you have a quick more advanced support of a lot of
> > languages without even having to support them while you would have to
> > support every file you are providing.
> >
> >
> > --
> > Emmanuel Hugonnet
> > http://www.ehsavoie.com
Java in the Alps - ehsavoie.com
www.ehsavoie.com
On the 16th of October was hold the first NetBeans Day event in France thanks 
to Geertjan Wielenga , Nebrass Lamouchi (@NebrassLamouchi) and Paul Bernardi 
from ...


> > http://twitter.com/ehsavoie
ehsavoie (@ehsavoie) | Twitter
twitter.com
The latest Tweets from ehsavoie (@ehsavoie). WildFly dev, AlpesJUG leader, 
NetBeans Dream team member. Grenoble, France


>



AW: Provide basic editor features for more file types out of thebox[WAS: Re: AW: Introductory Email]

2017-06-19 Thread Christian Lenz
Nice, I scanned the document and it describes exact that what I requested How 
and why: http://wiki.netbeans.org/Schliemann

And here is a proposal how: 
http://wiki.netbeans.org/SchliemannNBSLanguageDescription

But unfortunately it was not implemented, right? I think to create a new file 
Format doesn’t make sense, I prefer to use that what we have in the document + 
based on the files from other IDEs, because it is already there. No need to 
create a new Format for this.


Von: Sven Reimers
Gesendet: Montag, 19. Juni 2017 17:00
An: dev@netbeans.incubator.apache.org
Betreff: Re: Provide basic editor features for more file types out of 
thebox[WAS: Re: AW: Introductory Email]

Who can remember Schliemann Project in NetBeans?

Sven

Am 19.06.2017 1:08 nachm. schrieb "Emilian Bold" :

> In theory adding LSP support should be just as easy since the server does
> all the heavy lifting.
>
> But if we want to have for example Erlang syntax highlighting, etc. in the
> first case we just add another 10kb configuration file. In the second case
> we have to find and ship an Erlang LSP server.
>
> --emi
>
> Pe 19 iun. 2017, la 12:13, ehsavoie  a scris:
>
> > LSP is an API so you would 'only' have to start a process and connect to
> it
> > (through input/output stream mostly).
> > From my point of view a LSP editor is the generic editor you  are talking
> > about, and the LSP server is the file you are loading from.
> > The advantage is that you have a quick more advanced support of a lot of
> > languages without even having to support them while you would have to
> > support every file you are providing.
> >
> >
> > --
> > Emmanuel Hugonnet
> > http://www.ehsavoie.com
> > http://twitter.com/ehsavoie
>



AW: Provide basic editor features for more file types out of thebox[WAS: Re: AW: Introductory Email]

2017-06-19 Thread Christian Lenz
For the LSP you Need the Server which will provide the language, but those 
files are already there for years.

Gesendet von Mail für Windows 10

Von: ehsavoie
Gesendet: Montag, 19. Juni 2017 09:44
An: dev@netbeans.incubator.apache.org
Betreff: Re: Provide basic editor features for more file types out of 
thebox[WAS: Re: AW: Introductory Email]

Isn't Language Server Protocol the simpliest way to get that ?

--
Emmanuel Hugonnet
http://www.ehsavoie.com
http://twitter.com/ehsavoie



AW: Provide basic editor features for more file types out of thebox[WAS: Re: AW: Introductory Email]

2017-06-19 Thread Christian Lenz
I think LSP can be an other Option too.

Gesendet von Mail für Windows 10

Von: ehsavoie
Gesendet: Montag, 19. Juni 2017 09:44
An: dev@netbeans.incubator.apache.org
Betreff: Re: Provide basic editor features for more file types out of 
thebox[WAS: Re: AW: Introductory Email]

Isn't Language Server Protocol the simpliest way to get that ?

--
Emmanuel Hugonnet
http://www.ehsavoie.com
http://twitter.com/ehsavoie