Re: Re: Can anyone give me a help about developing antlr formatter

2019-09-22 Thread Eric Bresie
Also noticed there is a Netbeans plugin list on the Tools section of the 
ANTLR.org site.

https://www.antlr.org/tools.html

Eric Bresie
ebre...@gmail.com
> On September 20, 2019 at 4:26:51 AM CDT, Mario Schroeder 
>  wrote:
> Hi,
>
> maybe this one can help you as well:
> https://github.com/mario-s/nb-hyperledger
> It uses a ANTLR Grammar to generate Lexer and Parser.
>
> A lot of ANTLR samples can be found in this repository:
> https://github.com/antlr/grammars-v4
>
> Greetings,
> Mario
>
> Am Fr., 20. Sept. 2019 um 10:29 Uhr schrieb Alessandro <
> alex.fala...@gmail.com>:
>
> > Hi Tim,
> > I am interested too.
> >
> > I have a plugin with an editor using a JFlex based lexer and a Parboiled
> > based parser and I would like to move to a unified solution with an ANTLR
> > based lexer and parser.
> >
> > It would be wonderful if you could share something.
> >
> > Greets,
> > Alex
> >
> >
> > Il giorno lun 16 set 2019 alle ore 01:48 Tim Boudreau  > >
> > ha scritto:
> >
> > > I have some stuff under development that might be useful for that. You
> > want
> > > to format a language that has an Antlr grammar, right?
> > >
> > > -Tim
> > >
> > > On Sun, Sep 15, 2019 at 11:43 AM Peter Cheung 
> > > wrote:
> > >
> > > > Hi All
> > > > Can anyone give me a help about developing antlr formatter? Where
> > i
> > > > can get an example to develop a custom formatter?
> > > > Thanks
> > > > From Peter
> > > >
> > > M
> > > --
> > > http://timboudreau.com
> > >
> >


Re: Gradle Issue with OpenJFX

2019-09-22 Thread Scott Palmer
It may be similar. I agree that the Open JFX Gradle code is unwieldy, but in 
terms of the project structure it is organized. The source for the module 
sub-projects is at a relative path, but only as a subdirectories off the parent 
project. The sub-projects are contained within the root project. No “../“ just 
an extra folder “modules”. I think this case should be handled. 

Scott

> On Sep 22, 2019, at 1:16 AM, Laszlo Kishalmi  
> wrote:
> 
> 
> I fear the issue is on OpenJFX side. You might experiencing NETBEANS-2629 
> (https://issues.apache.org/jira/browse/NETBEANS-2629) Please read my comments 
> there.
> 
> IMHO openjdk-jfx shall improve it's build. 5000+ line of gradle/groovy 
> scripts in one place does not seem to be rational to me no matter what.
> 
> But generally the Error node is displayed by NetBeans if the source root is 
> outside of the project directory, meaning that  an other project can claim 
> the ownership of a file.
> 
>> On 9/21/19 4:55 PM, Scott Palmer wrote:
>> I’m using NB 11.1 with OpenJDK 12.0.2 and Gradle 5.3 on macOS 10.15 (public 
>> beta)
>> (also tried without "Prefer to use Gradle Wrapper that comes with the 
>> Project” selected”, and a Gradle version of 5.6.2)
>> 
>> I’m opening the OpenJFX project from 
>> https://github.com/javafxports/openjdk-jfx.git
>> 
>> This was working at one point a few days ago...
>> Oddly, having left NB open for a day or so, I noticed that the graphics 
>> module project (which I also had opened and was working on) went to a weird 
>> state, after many successful sleep/wake cycles of my laptop.
>> Now I recall that once before the ‘javafx.graphics’ module sub-project did 
>> not appear in the list of sub-projects, and this appears to be happening 
>> again.
>> When I open it explicitly it is in the same weird state that it seemed to 
>> get into on it’s own while NB was open.  After a few restarts and tweaking 
>> Gradle settings (which version to use, though I don’t think that was the 
>> issue), I managed to get NB to load the main project and show the 
>> ‘javafx.graphics’ sub-project again. It was listed differently than other 
>> projects which showed a ‘modules:javafx.’ prefix.  I don’t think that prefix 
>> is supposed to be there, based on the settings.gradle file.  I suspect it ws 
>> listed differently because I had some Java source files from it still opened 
>> in editor tabs.
>> 
>> When I load it, it shows with what I believe to be the correct name, 
>> 'openjdk-jfx:graphics’, but the project is in a strange state.
>> All of the sub-nodes in the project tree, under the graphics project (where 
>> it should show source roots, resources, etc) don’t show an icon anymore and 
>> are prefixed with the text “Error Node:” - and they show as leaf-nodes so I 
>> can’t look into the files.
>> I’ll attach a screenshot.
>> 
>> I don’t have “Use Project Project Description as Project Name” checked in 
>> the Java->Gradle settings.  (That shouldn’t even be an option in my opinion 
>> - it make little sense to me. The description is a big thing that doesn’t 
>> fit, and the project has a definite name used in gradle commands that is 
>> nothing related to the description string.)
>> 
>> The “Experimental” option “use on-disk cache” is checked - I don’t remember 
>> if I did that or it defaults to being selected.
>> 
>> Regards,
>> 
>> Scott
>>