C/C++ Integration

2022-09-06 Thread slipbits

Is Netbeans abandoning future development of C/C++?

I have tried to use Netbeans Lightweight C/C++ IDE in the last few 
releases unsuccessfully. The current Netbeans 15 does not support syntax 
highlighting using CLANGD, and as in previous releases, individual files 
can not be compiled and (for me) I am unable to build. I would really 
like to use the Netbeans IDE, but is it time for me to look at other IDE's?


You have worked hard and successfully at your IDE. I use is for Java 
projects with no difficulty, and I'd like to thank you for the hard work 
you have put in to make this possible.


thanks
art


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

For further information about the NetBeans mailing lists, visit:
https://cwiki.apache.org/confluence/display/NETBEANS/Mailing+lists



Re: gradle project: how to pass jvm args for debug/run

2022-09-06 Thread Neil C Smith
On Tue, 6 Sept 2022 at 16:47, László Kishalmi  wrote:
> Project Properties > Build > Build Actions

Thanks, but yes, I know that page.  I've only just realised that you
can select the *already selected* Custom... in the combobox to create
a new action.  Sorry, but that's not the most intuitive UI.  Maven
support has a nice big Add Custom button on there.

Best wishes,

Neil

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

For further information about the NetBeans mailing lists, visit:
https://cwiki.apache.org/confluence/display/NETBEANS/Mailing+lists



Re: Generate setters that return this

2022-09-06 Thread Neil C Smith
On Tue, 6 Sept 2022 at 18:20, Mitch Claborn  wrote:
> Yes, I suppose Builder is the more correct term.

No, it isn't.  It's a fluent API.  A builder might use fluent setters,
but they have uses elsewhere (if you do need mutability).

Personally, I think this might be a good addition - the file you
probably want to look at is at
https://github.com/apache/netbeans/blob/master/java/java.editor/src/org/netbeans/modules/java/editor/codegen/GetterSetterGenerator.java

I'd also like to see an option to leave out the set and get prefixes.
Best decision in records was not to bake that convention into the
language!

Best wishes,

Neil

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

For further information about the NetBeans mailing lists, visit:
https://cwiki.apache.org/confluence/display/NETBEANS/Mailing+lists



Re: gradle project: how to pass jvm args for debug/run

2022-09-06 Thread Ernie Rael



To easily conditionalize some execution behavior, I can do the following

   tasks.run {
    if(findProperty('JviDebugSettings')) {
    systemProperties['com.raelity.jvi.DEBUG'] = 'true'
    enableAssertions = true
    }
   }

and then in NetBeans' BuildActions can add "-PJviDebugSettings[=x]". But 
I'll probably find it easier to put this into gradle.properties myself 
considering the large number of NetBeans actions that would want this 
property. I tried various combinations of setting the property and 
coercing findProperty(), for example


   JviDebugSettings=true
   if(findProperty('JviDebugSettings') as boolean) {

but didn't find an obvious way to use a value for the property to set 
meaningful true/false. (so back to old "C" style #ifdef mindset)


BTW, it's interesting how NB saves these actions in gradle.properties.

-ernie

On 9/6/22 8:04 AM, László Kishalmi wrote:
Actually we have a pretty good UI for custom actions. Though passing 
JVM arguments to a build is a sensitive topic mostly due to the daemon 
execution model.


The way you set up the run task in your project is a good way to do that.

On Tue, Sep 6, 2022 at 4:10 AM Neil C Smith  wrote:

On Mon, 5 Sept 2022 at 19:56, Ernie Rael  wrote:
>
> On 9/4/22 4:47 PM, Ernie Rael wrote:
> > Just converted an ancient project from ant to gradle. With ant
and I did
> >
> > project.properties:run.jvmargs=-Dcom.raelity.jvi.DEBUG\=true -ea
> >
> > With gradle I tried, on the "Main Project"
>
> I was hoping to find a way to *do it from NetBeans*,
>
> but the following in build.gradle works for now
>
>     tasks.run {
>          systemProperties['com.raelity.jvi.DEBUG'] = 'true'
>          enableAssertions = true
>     }
>

I guess similar to Maven support, Run Gradle / Tasks ... then remember
as?  If you can work out the syntax.

Not sure if I've missed it, but Gradle doesn't seem to have a way to
add (not edit) custom actions in the project properties UI?

Neil

-
To unsubscribe, e-mail: users-unsubscr...@netbeans.apache.org
For additional commands, e-mail: users-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: users-unsubscr...@netbeans.apache.org
For additional commands, e-mail: users-h...@netbeans.apache.org

For further information about the NetBeans mailing lists, visit:
https://cwiki.apache.org/confluence/display/NETBEANS/Mailing+lists



RE: Generate setters that return this

2022-09-06 Thread Greenberg, Gary
Under 'Refactor' menu you can find options to 
a) Replace constructor with Builder;
b) Replace constructor with Factory
But I don't think you can generate builders directly.

-Original Message-
From: Mitch Claborn  
Sent: Tuesday, September 6, 2022 10:20 AM
To: users@netbeans.apache.org
Subject: Re: Generate setters that return this

Yes, I suppose Builder is the more correct term. The question is the 
same: Is there a way in NetBeans to generate those?


Mitch

On 9/6/22 11:52, Greenberg, Gary wrote:
> I think you are confusing setters with builders.
> Setters do not return anything, but builders do return this.
> Lookup design patterns.
> 
> -Original Message-
> From: Mitch Claborn 
> Sent: Tuesday, September 6, 2022 5:49 AM
> To: users@netbeans.apache.org
> Subject: Re: Generate setters that return this
> 
> I assume from the lack of response that this is not currently possible and 
> would require development. Does anyone have an idea of how much work would be 
> required to develop this?
> 
> 
> Mitch
> 
> On 8/30/22 13:40, Mitch Claborn wrote:
>> The "Generate Getters and Setters" dialog generates setters plain Java
>> setters with return type "void". Many times I'd like the setter to
>> return "this" instead. Is there a way to have those generated
>> automatically?
>>
> 
> -
> To unsubscribe, e-mail: users-unsubscr...@netbeans.apache.org
> For additional commands, e-mail: users-h...@netbeans.apache.org
> 
> For further information about the NetBeans mailing lists, visit:
> https://nam10.safelinks.protection.outlook.com/?url=https%3A%2F%2Fcwiki.apache.org%2Fconfluence%2Fdisplay%2FNETBEANS%2FMailing%2Blistsdata=05%7C01%7Cggreenbe%40visa.com%7C69aeaefe5d984239883d08da902c0e97%7C38305e12e15d4ee888b9c4db1c477d76%7C0%7C0%7C637980816142573703%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C3000%7C%7C%7Csdata=m5q3zwm8CtjXLUVTogvUPQsFIjMsEN0HLD5lTeRURy8%3Dreserved=0
> 
> 
> -
> To unsubscribe, e-mail: users-unsubscr...@netbeans.apache.org
> For additional commands, e-mail: users-h...@netbeans.apache.org
> 
> For further information about the NetBeans mailing lists, visit:
> https://nam10.safelinks.protection.outlook.com/?url=https%3A%2F%2Fcwiki.apache.org%2Fconfluence%2Fdisplay%2FNETBEANS%2FMailing%2Blistsdata=05%7C01%7Cggreenbe%40visa.com%7C69aeaefe5d984239883d08da902c0e97%7C38305e12e15d4ee888b9c4db1c477d76%7C0%7C0%7C637980816142573703%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C3000%7C%7C%7Csdata=m5q3zwm8CtjXLUVTogvUPQsFIjMsEN0HLD5lTeRURy8%3Dreserved=0
> 

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

For further information about the NetBeans mailing lists, visit:
https://nam10.safelinks.protection.outlook.com/?url=https%3A%2F%2Fcwiki.apache.org%2Fconfluence%2Fdisplay%2FNETBEANS%2FMailing%2Blistsdata=05%7C01%7Cggreenbe%40visa.com%7C69aeaefe5d984239883d08da902c0e97%7C38305e12e15d4ee888b9c4db1c477d76%7C0%7C0%7C637980816142573703%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C3000%7C%7C%7Csdata=m5q3zwm8CtjXLUVTogvUPQsFIjMsEN0HLD5lTeRURy8%3Dreserved=0


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

For further information about the NetBeans mailing lists, visit:
https://cwiki.apache.org/confluence/display/NETBEANS/Mailing+lists



Re: Generate setters that return this

2022-09-06 Thread Mitch Claborn
Yes, I suppose Builder is the more correct term. The question is the 
same: Is there a way in NetBeans to generate those?



Mitch

On 9/6/22 11:52, Greenberg, Gary wrote:

I think you are confusing setters with builders.
Setters do not return anything, but builders do return this.
Lookup design patterns.

-Original Message-
From: Mitch Claborn 
Sent: Tuesday, September 6, 2022 5:49 AM
To: users@netbeans.apache.org
Subject: Re: Generate setters that return this

I assume from the lack of response that this is not currently possible and 
would require development. Does anyone have an idea of how much work would be 
required to develop this?


Mitch

On 8/30/22 13:40, Mitch Claborn wrote:

The "Generate Getters and Setters" dialog generates setters plain Java
setters with return type "void". Many times I'd like the setter to
return "this" instead. Is there a way to have those generated
automatically?



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

For further information about the NetBeans mailing lists, visit:
https://nam10.safelinks.protection.outlook.com/?url=https%3A%2F%2Fcwiki.apache.org%2Fconfluence%2Fdisplay%2FNETBEANS%2FMailing%2Blistsdata=05%7C01%7Cggreenbe%40visa.com%7Cd6af7d4be6a24329ebde08da90063d98%7C38305e12e15d4ee888b9c4db1c477d76%7C0%7C0%7C637980653738217386%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C3000%7C%7C%7Csdata=1Ejwm399RgNZOE4haI%2FCnRfTp6MH2uJI3hX8hC8L1Z0%3Dreserved=0


-
To unsubscribe, e-mail: users-unsubscr...@netbeans.apache.org
For additional commands, e-mail: users-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: users-unsubscr...@netbeans.apache.org
For additional commands, e-mail: users-h...@netbeans.apache.org

For further information about the NetBeans mailing lists, visit:
https://cwiki.apache.org/confluence/display/NETBEANS/Mailing+lists



RE: Generate setters that return this

2022-09-06 Thread Greenberg, Gary
I think you are confusing setters with builders.
Setters do not return anything, but builders do return this.
Lookup design patterns.

-Original Message-
From: Mitch Claborn  
Sent: Tuesday, September 6, 2022 5:49 AM
To: users@netbeans.apache.org
Subject: Re: Generate setters that return this

I assume from the lack of response that this is not currently possible and 
would require development. Does anyone have an idea of how much work would be 
required to develop this?


Mitch

On 8/30/22 13:40, Mitch Claborn wrote:
> The "Generate Getters and Setters" dialog generates setters plain Java 
> setters with return type "void". Many times I'd like the setter to 
> return "this" instead. Is there a way to have those generated 
> automatically?
> 

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

For further information about the NetBeans mailing lists, visit:
https://nam10.safelinks.protection.outlook.com/?url=https%3A%2F%2Fcwiki.apache.org%2Fconfluence%2Fdisplay%2FNETBEANS%2FMailing%2Blistsdata=05%7C01%7Cggreenbe%40visa.com%7Cd6af7d4be6a24329ebde08da90063d98%7C38305e12e15d4ee888b9c4db1c477d76%7C0%7C0%7C637980653738217386%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C3000%7C%7C%7Csdata=1Ejwm399RgNZOE4haI%2FCnRfTp6MH2uJI3hX8hC8L1Z0%3Dreserved=0


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

For further information about the NetBeans mailing lists, visit:
https://cwiki.apache.org/confluence/display/NETBEANS/Mailing+lists



Re: gradle project: how to pass jvm args for debug/run

2022-09-06 Thread László Kishalmi
Project Properties > Build > Build Actions

On Tue, Sep 6, 2022 at 8:09 AM Neil C Smith  wrote:

> On Tue, 6 Sept 2022 at 16:05, László Kishalmi 
> wrote:
> > Actually we have a pretty good UI for custom actions.
>
> Agreed.  My comment was specifically that I can't see a way to add a
> custom action directly from the project properties, which Maven does
> have.  Or have I missed something blindingly obvious?!
>
> Best wishes,
>
> Neil
>


Re: gradle project: how to pass jvm args for debug/run

2022-09-06 Thread Neil C Smith
On Tue, 6 Sept 2022 at 16:05, László Kishalmi  wrote:
> Actually we have a pretty good UI for custom actions.

Agreed.  My comment was specifically that I can't see a way to add a
custom action directly from the project properties, which Maven does
have.  Or have I missed something blindingly obvious?!

Best wishes,

Neil

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

For further information about the NetBeans mailing lists, visit:
https://cwiki.apache.org/confluence/display/NETBEANS/Mailing+lists



Re: gradle project: how to pass jvm args for debug/run

2022-09-06 Thread László Kishalmi
Actually we have a pretty good UI for custom actions. Though passing JVM
arguments to a build is a sensitive topic mostly due to the daemon
execution model.

The way you set up the run task in your project is a good way to do that.

On Tue, Sep 6, 2022 at 4:10 AM Neil C Smith  wrote:

> On Mon, 5 Sept 2022 at 19:56, Ernie Rael  wrote:
> >
> > On 9/4/22 4:47 PM, Ernie Rael wrote:
> > > Just converted an ancient project from ant to gradle. With ant and I
> did
> > >
> > >project.properties:run.jvmargs=-Dcom.raelity.jvi.DEBUG\=true -ea
> > >
> > > With gradle I tried, on the "Main Project"
> >
> > I was hoping to find a way to *do it from NetBeans*,
> >
> > but the following in build.gradle works for now
> >
> > tasks.run {
> >  systemProperties['com.raelity.jvi.DEBUG'] = 'true'
> >  enableAssertions = true
> > }
> >
>
> I guess similar to Maven support, Run Gradle / Tasks ... then remember
> as?  If you can work out the syntax.
>
> Not sure if I've missed it, but Gradle doesn't seem to have a way to
> add (not edit) custom actions in the project properties UI?
>
> Neil
>
> -
> To unsubscribe, e-mail: users-unsubscr...@netbeans.apache.org
> For additional commands, e-mail: users-h...@netbeans.apache.org
>
> For further information about the NetBeans mailing lists, visit:
> https://cwiki.apache.org/confluence/display/NETBEANS/Mailing+lists
>
>


Re: Generate setters that return this

2022-09-06 Thread Mitch Claborn
I assume from the lack of response that this is not currently possible 
and would require development. Does anyone have an idea of how much work 
would be required to develop this?



Mitch

On 8/30/22 13:40, Mitch Claborn wrote:
The "Generate Getters and Setters" dialog generates setters plain Java 
setters with return type "void". Many times I'd like the setter to 
return "this" instead. Is there a way to have those generated 
automatically?




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

For further information about the NetBeans mailing lists, visit:
https://cwiki.apache.org/confluence/display/NETBEANS/Mailing+lists



Re: Netbeans 15 release

2022-09-06 Thread joe foe
Awesome, thanks for the update!

On Tue, 6 Sep 2022, 13:27 Neil C Smith,  wrote:

> On Tue, 6 Sept 2022 at 12:23, joe foe  wrote:
> >  The vscode plugin has been auto updated to 15 but I don't see any
> release notes for that and under
> dist.apache.org/repos/dist/release/netbeans/netbeans-installers/15 the
> Linux package is missing.
> >
> > Question, when will be the Linux installer be available and where can I
> see what's changed in the vscode plugin?
>
> The announcement is currently in progress.  Changes at
> https://github.com/apache/netbeans/releases/tag/15
>
> There won't be an ASF Linux installer.  You can use the binary zip,
> Snap package, the .AppImage or .deb from the linked community
> installers (already up at https://www.codelerity.com/netbeans/ ) or
> another community source (eg. flatpak, distro).
>
> Best wishes,
>
> Neil
>


Re: Netbeans 15 release

2022-09-06 Thread Neil C Smith
On Tue, 6 Sept 2022 at 12:23, joe foe  wrote:
>  The vscode plugin has been auto updated to 15 but I don't see any release 
> notes for that and under 
> dist.apache.org/repos/dist/release/netbeans/netbeans-installers/15 the Linux 
> package is missing.
>
> Question, when will be the Linux installer be available and where can I see 
> what's changed in the vscode plugin?

The announcement is currently in progress.  Changes at
https://github.com/apache/netbeans/releases/tag/15

There won't be an ASF Linux installer.  You can use the binary zip,
Snap package, the .AppImage or .deb from the linked community
installers (already up at https://www.codelerity.com/netbeans/ ) or
another community source (eg. flatpak, distro).

Best wishes,

Neil

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

For further information about the NetBeans mailing lists, visit:
https://cwiki.apache.org/confluence/display/NETBEANS/Mailing+lists



Netbeans 15 release

2022-09-06 Thread joe foe
Hello ,

 The vscode plugin has been auto updated to 15 but I don't see any release
notes for that and under
dist.apache.org/repos/dist/release/netbeans/netbeans-installers/15 the
Linux package is missing.

Question, when will be the Linux installer be available and where can I see
what's changed in the vscode plugin?

Thanks,
Regards
Joe


Re: gradle project: how to pass jvm args for debug/run

2022-09-06 Thread Neil C Smith
On Mon, 5 Sept 2022 at 19:56, Ernie Rael  wrote:
>
> On 9/4/22 4:47 PM, Ernie Rael wrote:
> > Just converted an ancient project from ant to gradle. With ant and I did
> >
> >project.properties:run.jvmargs=-Dcom.raelity.jvi.DEBUG\=true -ea
> >
> > With gradle I tried, on the "Main Project"
>
> I was hoping to find a way to *do it from NetBeans*,
>
> but the following in build.gradle works for now
>
> tasks.run {
>  systemProperties['com.raelity.jvi.DEBUG'] = 'true'
>  enableAssertions = true
> }
>

I guess similar to Maven support, Run Gradle / Tasks ... then remember
as?  If you can work out the syntax.

Not sure if I've missed it, but Gradle doesn't seem to have a way to
add (not edit) custom actions in the project properties UI?

Neil

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

For further information about the NetBeans mailing lists, visit:
https://cwiki.apache.org/confluence/display/NETBEANS/Mailing+lists