Re: [DISCUSS] CND, cnd.antlr & cnd.apt on top of Antlrv4?

2021-05-11 Thread antonio

Thanks John,

I'll be adding assorted compiler-specific cases at [1].

Kind regards,
Antonio


[1]
https://github.com/vieiro/cnd.nextapt/blob/master/cnd.apt.antlr4/src/test/resources/org/netbeans/modules/cnd/nextapt/antlr4/c/regressions.c

On 11/05/2021 17:41, John Kostaras wrote:

#define  CMPLX(__real,__imag) \
 _Pragma("clang diagnostic push") \
*_Pragma("clang diagnostic ignored \"-Wcomplex-component-init\"") \*
 (double _Complex){(__real),(__imag)} \
 _Pragma("clang diagnostic pop")

line 59 being the highlighted one.

After pulling, building, re-running: java -Dlexer.print=false -jar
target/cnd.apt.antlr4-1.0-SNAPSHOT-jar-with-dependencies.jar /usr/include

I get

-- /usr/include/complex.h --
Syntax error on 59:12 token recognition error at: '"clang diagnostic
ignored \"'
Please report this error on the dev mailing list, including the line where
the error happeened.%n



On Mon, 10 May 2021 at 23:58, antonio  wrote:


Hi John,

Thanks for the report! It seems we weren't lexing '#error' yet (that's
probably what is on line 59 in "/usr/include/complex.h", right?
Otherwise send me the line 59).

The newest version should detect #error properly (and also checks for
ends of directives, and *.hpp/*.cpp).

Talking about antlr4, it seems the AST is analyzed using the visitor
pattern (that approach is also used in libclang) but NetBeans <= 8.2
expects the whole AST in memory, so it seems we have a long refactoring
road ahead (all this after successfully migrating the CXXParser.g to
antlr4, which reads >3300 lines long).

In parallel I'm giving libclang [1] a run. It seems quite powerful (it
provides completion, precompiled headers, reparsing, diagnostics, AST)
but it may require an extra +30Mb download on Windows (linux users may
apt-get install libclang, though). More on this in a few days.

Thanks again,
Antonio

[1]
https://clang.llvm.org/doxygen/group__CINDEX.html

El 10/5/21 a las 21:39, John Kostaras escribió:

+1 cnd.nextapt

java -Dlexer.print=false -jar
target/cnd.apt.antlr4-1.0-SNAPSHOT-jar-with-dependencies.jar /usr/include

-- /usr/include/complex.h --
Syntax error on 59:12 token recognition error at: '"clang diagnostic
ignored \"'

Will also take a look. Thanks Antonio. Great initiative.

P.S. I guess .hpp/.cpp files are next?


-
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








-
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





NetBeans Serbian Translation

2021-05-11 Thread Zoran Sevarac
Hi,

I have two students at University of Belgrade Nikola Sicovic
sicovic.nik...@gmail.com and
Nikola Radenovic radenovicnikol...@gmail.com (already on the mailing  list)
who will be translating NetBeans to Serbian.

Is this the recommended way to do it?
https://github.com/apache/netbeans-l10n

Any other recommendati/ons?

Thanks!
-- 
Zoran Sevarac, PhD, Associate Professor
University of Belgrade, Faculty of Organisational Sciences, Department for
Software Engineering
Java Champion 
| Oracle Groundbreaker Ambassador | Deep Netts 
Co-founder & CEO


Virus-free.
www.avast.com

<#DAB4FAD8-2DD7-40BB-A1B8-4E2AA1F9FDF2>


Re: [DISCUSS] CND, cnd.antlr & cnd.apt on top of Antlrv4?

2021-05-11 Thread John Kostaras
#define  CMPLX(__real,__imag) \
_Pragma("clang diagnostic push") \
*_Pragma("clang diagnostic ignored \"-Wcomplex-component-init\"") \*
(double _Complex){(__real),(__imag)} \
_Pragma("clang diagnostic pop")

line 59 being the highlighted one.

After pulling, building, re-running: java -Dlexer.print=false -jar
target/cnd.apt.antlr4-1.0-SNAPSHOT-jar-with-dependencies.jar /usr/include

I get

-- /usr/include/complex.h --
Syntax error on 59:12 token recognition error at: '"clang diagnostic
ignored \"'
Please report this error on the dev mailing list, including the line where
the error happeened.%n



On Mon, 10 May 2021 at 23:58, antonio  wrote:

> Hi John,
>
> Thanks for the report! It seems we weren't lexing '#error' yet (that's
> probably what is on line 59 in "/usr/include/complex.h", right?
> Otherwise send me the line 59).
>
> The newest version should detect #error properly (and also checks for
> ends of directives, and *.hpp/*.cpp).
>
> Talking about antlr4, it seems the AST is analyzed using the visitor
> pattern (that approach is also used in libclang) but NetBeans <= 8.2
> expects the whole AST in memory, so it seems we have a long refactoring
> road ahead (all this after successfully migrating the CXXParser.g to
> antlr4, which reads >3300 lines long).
>
> In parallel I'm giving libclang [1] a run. It seems quite powerful (it
> provides completion, precompiled headers, reparsing, diagnostics, AST)
> but it may require an extra +30Mb download on Windows (linux users may
> apt-get install libclang, though). More on this in a few days.
>
> Thanks again,
> Antonio
>
> [1]
> https://clang.llvm.org/doxygen/group__CINDEX.html
>
> El 10/5/21 a las 21:39, John Kostaras escribió:
> > +1 cnd.nextapt
> >
> > java -Dlexer.print=false -jar
> > target/cnd.apt.antlr4-1.0-SNAPSHOT-jar-with-dependencies.jar /usr/include
> > 
> > -- /usr/include/complex.h --
> > Syntax error on 59:12 token recognition error at: '"clang diagnostic
> > ignored \"'
> >
> > Will also take a look. Thanks Antonio. Great initiative.
> >
> > P.S. I guess .hpp/.cpp files are next?
>
> -
> 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: SceneBuilder integration and update

2021-05-11 Thread Mar R
I know JavaFX and Swing are not the same, I was confused about the editor,
but you've just clarified that one is one different from SB; I didn't know
there was one integrated, thanks!

Il giorno mar 11 mag 2021 alle ore 13:50 Geertjan Wielenga
 ha scritto:

> You’re talking about the GUI editor for Swing, which has always been there?
>
> Maybe you’re confused between JavaFX and Swing?
>
> Gj
>
> On Tue, 11 May 2021 at 13:47, Mar R  wrote:
>
> > Jeremy thanks for the info for but that wasn't my problem, I used SB in
> > the past.
> > So if SB isn't integrated in NB, what's that GUI editor?
> > Because I'm on a fresh system install, and this time I haven't downloaded
> > SB not any plugins, I don't even have JavaFX installed nor activated it
> > through the Tools > Options > Java > JavaFX
> >
> > Attached there's a screenshot of the GUI editor I'm talking about, on a
> > file from a NB source module
> >
> > Il giorno dom 9 mag 2021 alle ore 21:11 Geertjan Wielenga
> >  ha scritto:
> >
> >> Would be great, yes.
> >>
> >> Gj
> >>
> >> On Sun, 9 May 2021 at 20:57, Sven Reimers 
> wrote:
> >>
> >> > If there is enough interest, I can donate the code to Apache NetBeans
> >> so we
> >> > can work on this as a community.
> >> >
> >> > Just let me know
> >> >
> >> > Sven
> >> >
> >> > P.S. The major problems for now 1. javafx can not be distributed via
> >> Apache
> >> > Binaries (so we need to build this using an auto download at runtime)
> 2.
> >> > Persistent backend storage... and XML-Editor...
> >> >
> >> > On Sun, May 9, 2021 at 11:31 AM John Kostaras 
> >> wrote:
> >> >
> >> > > There is this attempt <
> https://github.com/svenreimers/nbscenebuilder>
> >> to
> >> > > integrate it with NetBeans.
> >> > >
> >> > > On Sun, 9 May 2021 at 09:12, Mar R 
> wrote:
> >> > >
> >> > > > While browsing some module from NetBeans source a file opened in
> >> design
> >> > > > view, I premused it was SB embedded, but maybe NB has another GUI
> >> > editor
> >> > > I
> >> > > > don't know of
> >> > > >
> >> > > > Il giorno ven 7 mag 2021 alle ore 18:44 Scott Palmer <
> >> > swpal...@gmail.com
> >> > > >
> >> > > > ha scritto:
> >> > > >
> >> > > > > Since when has NetBeans embedded SceneBuilder?  I've always had
> to
> >> > > > install
> >> > > > > it separately.
> >> > > > >
> >> > > > > On Fri, May 7, 2021 at 9:34 AM Mar R  >
> >> > > wrote:
> >> > > > >
> >> > > > > > I was wondering if there is a particular reason about the
> >> > > SceneBuilder
> >> > > > > > embedded being still a very old version. As far as I could see
> >> the
> >> > > > > current
> >> > > > > > one (version 16) and the one for Java 8 too are under BSD
> >> license
> >> > > which
> >> > > > > is
> >> > > > > > compatible with Apache 2.0.
> >> > > > > > So should it be feasible to update it?
> >> > > > > >
> >> > > > >
> >> > > >
> >> > >
> >> >
> >> >
> >> > --
> >> > Sven Reimers
> >> >
> >> > * Java Champion
> >> > * Apache NetBeans PMC: http://netbeans.apache.org
> >> > * JUG Leader JUG Bodensee: https://www.meetup.com/JUG-Bodensee
> >> > * Duke's Choice Award Winner 2009 & 2018
> >> >
> >> > * LinkedIn: http://www.linkedin.com/in/svenreimers
> >> >
> >>
> >
> > -
> > 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: SceneBuilder integration and update

2021-05-11 Thread Geertjan Wielenga
You’re talking about the GUI editor for Swing, which has always been there?

Maybe you’re confused between JavaFX and Swing?

Gj

On Tue, 11 May 2021 at 13:47, Mar R  wrote:

> Jeremy thanks for the info for but that wasn't my problem, I used SB in
> the past.
> So if SB isn't integrated in NB, what's that GUI editor?
> Because I'm on a fresh system install, and this time I haven't downloaded
> SB not any plugins, I don't even have JavaFX installed nor activated it
> through the Tools > Options > Java > JavaFX
>
> Attached there's a screenshot of the GUI editor I'm talking about, on a
> file from a NB source module
>
> Il giorno dom 9 mag 2021 alle ore 21:11 Geertjan Wielenga
>  ha scritto:
>
>> Would be great, yes.
>>
>> Gj
>>
>> On Sun, 9 May 2021 at 20:57, Sven Reimers  wrote:
>>
>> > If there is enough interest, I can donate the code to Apache NetBeans
>> so we
>> > can work on this as a community.
>> >
>> > Just let me know
>> >
>> > Sven
>> >
>> > P.S. The major problems for now 1. javafx can not be distributed via
>> Apache
>> > Binaries (so we need to build this using an auto download at runtime) 2.
>> > Persistent backend storage... and XML-Editor...
>> >
>> > On Sun, May 9, 2021 at 11:31 AM John Kostaras 
>> wrote:
>> >
>> > > There is this attempt 
>> to
>> > > integrate it with NetBeans.
>> > >
>> > > On Sun, 9 May 2021 at 09:12, Mar R  wrote:
>> > >
>> > > > While browsing some module from NetBeans source a file opened in
>> design
>> > > > view, I premused it was SB embedded, but maybe NB has another GUI
>> > editor
>> > > I
>> > > > don't know of
>> > > >
>> > > > Il giorno ven 7 mag 2021 alle ore 18:44 Scott Palmer <
>> > swpal...@gmail.com
>> > > >
>> > > > ha scritto:
>> > > >
>> > > > > Since when has NetBeans embedded SceneBuilder?  I've always had to
>> > > > install
>> > > > > it separately.
>> > > > >
>> > > > > On Fri, May 7, 2021 at 9:34 AM Mar R 
>> > > wrote:
>> > > > >
>> > > > > > I was wondering if there is a particular reason about the
>> > > SceneBuilder
>> > > > > > embedded being still a very old version. As far as I could see
>> the
>> > > > > current
>> > > > > > one (version 16) and the one for Java 8 too are under BSD
>> license
>> > > which
>> > > > > is
>> > > > > > compatible with Apache 2.0.
>> > > > > > So should it be feasible to update it?
>> > > > > >
>> > > > >
>> > > >
>> > >
>> >
>> >
>> > --
>> > Sven Reimers
>> >
>> > * Java Champion
>> > * Apache NetBeans PMC: http://netbeans.apache.org
>> > * JUG Leader JUG Bodensee: https://www.meetup.com/JUG-Bodensee
>> > * Duke's Choice Award Winner 2009 & 2018
>> >
>> > * LinkedIn: http://www.linkedin.com/in/svenreimers
>> >
>>
>
> -
> 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: SceneBuilder integration and update

2021-05-11 Thread Mar R
Jeremy thanks for the info for but that wasn't my problem, I used SB in the
past.
So if SB isn't integrated in NB, what's that GUI editor?
Because I'm on a fresh system install, and this time I haven't downloaded
SB not any plugins, I don't even have JavaFX installed nor activated it
through the Tools > Options > Java > JavaFX

Attached there's a screenshot of the GUI editor I'm talking about, on a
file from a NB source module

Il giorno dom 9 mag 2021 alle ore 21:11 Geertjan Wielenga
 ha scritto:

> Would be great, yes.
>
> Gj
>
> On Sun, 9 May 2021 at 20:57, Sven Reimers  wrote:
>
> > If there is enough interest, I can donate the code to Apache NetBeans so
> we
> > can work on this as a community.
> >
> > Just let me know
> >
> > Sven
> >
> > P.S. The major problems for now 1. javafx can not be distributed via
> Apache
> > Binaries (so we need to build this using an auto download at runtime) 2.
> > Persistent backend storage... and XML-Editor...
> >
> > On Sun, May 9, 2021 at 11:31 AM John Kostaras 
> wrote:
> >
> > > There is this attempt 
> to
> > > integrate it with NetBeans.
> > >
> > > On Sun, 9 May 2021 at 09:12, Mar R  wrote:
> > >
> > > > While browsing some module from NetBeans source a file opened in
> design
> > > > view, I premused it was SB embedded, but maybe NB has another GUI
> > editor
> > > I
> > > > don't know of
> > > >
> > > > Il giorno ven 7 mag 2021 alle ore 18:44 Scott Palmer <
> > swpal...@gmail.com
> > > >
> > > > ha scritto:
> > > >
> > > > > Since when has NetBeans embedded SceneBuilder?  I've always had to
> > > > install
> > > > > it separately.
> > > > >
> > > > > On Fri, May 7, 2021 at 9:34 AM Mar R 
> > > wrote:
> > > > >
> > > > > > I was wondering if there is a particular reason about the
> > > SceneBuilder
> > > > > > embedded being still a very old version. As far as I could see
> the
> > > > > current
> > > > > > one (version 16) and the one for Java 8 too are under BSD license
> > > which
> > > > > is
> > > > > > compatible with Apache 2.0.
> > > > > > So should it be feasible to update it?
> > > > > >
> > > > >
> > > >
> > >
> >
> >
> > --
> > Sven Reimers
> >
> > * Java Champion
> > * Apache NetBeans PMC: http://netbeans.apache.org
> > * JUG Leader JUG Bodensee: https://www.meetup.com/JUG-Bodensee
> > * Duke's Choice Award Winner 2009 & 2018
> >
> > * LinkedIn: http://www.linkedin.com/in/svenreimers
> >
>

-
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