You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@netbeans.apache.org by Jan Lahoda <la...@gmail.com> on 2020/07/17 18:30:38 UTC

Temporary lightweight C/C++ support?

Hi,

I believe we are still working on integrating the CND C/C++ support.

So, I wonder, would a temporary lightweight C/C++ support make sense? See:
https://github.com/apache/netbeans/pull/2234

Basically, this has a rudimentary C/C++ project that allows the users to
provide commands for the build/run actions and some additional settings;
syntax highlighting using TextMate grammars; code completion and other
editing support is through the Language Server Protocol, using the ccls
language server, which the users need to provide themselves; and a *very*
rudimentary debugger using gdb (based on the Ant debugger, and gdb
interface from CND).

It does not have as many features as CND, so this is not fully featured,
but I wonder if it could help at least some of our users until CND is
finished.

When CND is installed, CND should take precedence in important aspects. At
least that is the idea.

What do you think?

Any feedback on the support if welcome as well, of course!

Thanks,
    Jan

Re: Temporary lightweight C/C++ support?

Posted by Jan Lahoda <la...@gmail.com>.
On Fri, Jul 17, 2020 at 9:53 PM Siddhesh Rane <si...@disroot.org>
wrote:

> Is it not possible to just provide the nbms for the original C/C++ support
> through the update center with a note. I remember installing it on 11.3
> with the only glitch that Alt+up/down arrow navigation said no occurrences
> found.
>

Sure, that's still possible at this time (assuming the IDE is running on a
JDK that has unpack200). There is a somewhat relevant discussion here,
though:
http://mail-archives.apache.org/mod_mbox/netbeans-dev/202007.mbox/%3Cf6631d66-84b6-239b-a73e-eb4430c23670%40vieiro.net%3E

But, to me, that seems like a very temporary solution - I don't think
there's any realistic way to fix bugs there or enhance it.


> Introducing a new codebase might bring it's own issues and headaches such
> as separate installation of language server.
>

Sure.

(Note the lighweight C/C++ does not prevent installation and use of CND -
so anyone who wants to install CND is very welcome to do so!)


> Also, is there a wiki page where the integration effort is being
> documented? I read the Readme on CND branch which mentions copying a bunch
> of files but does not specify what issues we are facing in integration. Is
> it license related, API changes or cnd did something weird which is taking
> time? Or might have missed something.
>

I am not aware of such a wiki page - please create one. I guess the work on
CND has two parts:
-the easy one is to resolve most of the file copying from the readme and
changing the license headers. For example, we can probably use
"cnd.debugger.common2/src/org/netbeans/modules/cnd/debugger/common2/icons/debugger_log.png"
from the original CDDL sources, it just needs to be properly marked. It
will be some work to find the solutions, but not that different from what
was done for other languages.
-what worries me are the parsers for C/C++ - not only some files for the
parsers are missing, the more troublesome part is that we will need to
update those over time, to fix bugs and add support fo new language
features. So someone will need to take care of this - and I don't think I
have enough time for that. So, I think volunteers are welcome.

Jan


>
>
> Siddhesh Rane
>
> July 17, 2020 2:30 PM, "Jan Lahoda" <la...@gmail.com> wrote:
>
> > Hi,
> >
> > I believe we are still working on integrating the CND C/C++ support.
> >
> > So, I wonder, would a temporary lightweight C/C++ support make sense?
> See:
> > https://github.com/apache/netbeans/pull/2234
> >
> > Basically, this has a rudimentary C/C++ project that allows the users to
> > provide commands for the build/run actions and some additional settings;
> > syntax highlighting using TextMate grammars; code completion and other
> > editing support is through the Language Server Protocol, using the ccls
> > language server, which the users need to provide themselves; and a *very*
> > rudimentary debugger using gdb (based on the Ant debugger, and gdb
> > interface from CND).
> >
> > It does not have as many features as CND, so this is not fully featured,
> > but I wonder if it could help at least some of our users until CND is
> > finished.
> >
> > When CND is installed, CND should take precedence in important aspects.
> At
> > least that is the idea.
> >
> > What do you think?
> >
> > Any feedback on the support if welcome as well, of course!
> >
> > Thanks,
> > Jan
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: dev-unsubscribe@netbeans.apache.org
> For additional commands, e-mail: dev-help@netbeans.apache.org
>
> For further information about the NetBeans mailing lists, visit:
> https://cwiki.apache.org/confluence/display/NETBEANS/Mailing+lists
>
>
>
>

Re: Temporary lightweight C/C++ support?

Posted by Siddhesh Rane <si...@disroot.org>.
Is it not possible to just provide the nbms for the original C/C++ support through the update center with a note. I remember installing it on 11.3 with the only glitch that Alt+up/down arrow navigation said no occurrences found. 

Introducing a new codebase might bring it's own issues and headaches such as separate installation of language server. 

Also, is there a wiki page where the integration effort is being documented? I read the Readme on CND branch which mentions copying a bunch of files but does not specify what issues we are facing in integration. Is it license related, API changes or cnd did something weird which is taking time? Or might have missed something. 


Siddhesh Rane 

July 17, 2020 2:30 PM, "Jan Lahoda" <la...@gmail.com> wrote:

> Hi,
> 
> I believe we are still working on integrating the CND C/C++ support.
> 
> So, I wonder, would a temporary lightweight C/C++ support make sense? See:
> https://github.com/apache/netbeans/pull/2234
> 
> Basically, this has a rudimentary C/C++ project that allows the users to
> provide commands for the build/run actions and some additional settings;
> syntax highlighting using TextMate grammars; code completion and other
> editing support is through the Language Server Protocol, using the ccls
> language server, which the users need to provide themselves; and a *very*
> rudimentary debugger using gdb (based on the Ant debugger, and gdb
> interface from CND).
> 
> It does not have as many features as CND, so this is not fully featured,
> but I wonder if it could help at least some of our users until CND is
> finished.
> 
> When CND is installed, CND should take precedence in important aspects. At
> least that is the idea.
> 
> What do you think?
> 
> Any feedback on the support if welcome as well, of course!
> 
> Thanks,
> Jan

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

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




Re: Temporary lightweight C/C++ support?

Posted by Jaroslav Tulach <ja...@gmail.com>.
> ... would a temporary lightweight C/C++ support make sense? See:
> https://github.com/apache/netbeans/pull/2234
>
>
+1 to move forward somehow, especially, if:


> When CND is installed, CND should take precedence in important aspects.
>

+1
-jt

Re: Temporary lightweight C/C++ support?

Posted by Geertjan Wielenga <ge...@apache.org>.
I think this should be merged.

We need some scenarios or documentation of some kind fof testing purposes
and for users of this functionality.

Gj

On Sat, 18 Jul 2020 at 15:39, Neil C Smith <ne...@apache.org> wrote:

> On Sat, 18 Jul 2020 at 13:25, Antonio <an...@vieiro.net> wrote:
> > I understand that dates are important to get things done, but I don't
> > see a problem in delaying the whole 12.1 one or two tweeks, if required.
> >
> > I'd rather have a featureful 12.1 than a timed one :-). After all this
> > is an open source project, where people contribute as time permits,
> right?
>
> I disagree.  We agreed to make time-based releases, not feature-based
> ones.  We release what's ready in master on particular dates.  And the
> point of that was to make things easier, not harder, for people to
> contribute as time permits.  It's never a problem if a feature can't
> be completed by some arbitrary date.
>
> Likewise, I want to get this in master and in beta1 so there's as much
> time to test and iron out bugs without putting undue pressure on
> anyone, Jan in particular, if issues are raised.  Landing things late
> causes problems.  I already believe we should merge this, if ready,
> despite it missing the freeze date.
>
> Best wishes,
>
> Neil
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: dev-unsubscribe@netbeans.apache.org
> For additional commands, e-mail: dev-help@netbeans.apache.org
>
> For further information about the NetBeans mailing lists, visit:
> https://cwiki.apache.org/confluence/display/NETBEANS/Mailing+lists
>
>
>
>

Re: Temporary lightweight C/C++ support?

Posted by Antonio <an...@vieiro.net>.
Ah, cool. So no need to hurry to have things done by monday.

Cheers,
Antonio

P.S.: I hate doing thigns in a rush :-).

El 18/07/2020 a las 15:39, Neil C Smith escribió:
> I disagree.  We agreed to make time-based releases, not feature-based
> ones.  We release what's ready in master on particular dates.  And the
> point of that was to make things easier, not harder, for people to
> contribute as time permits.  It's never a problem if a feature can't
> be completed by some arbitrary date.
> 
> Likewise, I want to get this in master and in beta1 so there's as much
> time to test and iron out bugs without putting undue pressure on
> anyone, Jan in particular, if issues are raised.  Landing things late
> causes problems.  I already believe we should merge this, if ready,
> despite it missing the freeze date.

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

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




Re: Temporary lightweight C/C++ support?

Posted by Neil C Smith <ne...@apache.org>.
On Sat, 18 Jul 2020 at 13:25, Antonio <an...@vieiro.net> wrote:
> I understand that dates are important to get things done, but I don't
> see a problem in delaying the whole 12.1 one or two tweeks, if required.
>
> I'd rather have a featureful 12.1 than a timed one :-). After all this
> is an open source project, where people contribute as time permits, right?

I disagree.  We agreed to make time-based releases, not feature-based
ones.  We release what's ready in master on particular dates.  And the
point of that was to make things easier, not harder, for people to
contribute as time permits.  It's never a problem if a feature can't
be completed by some arbitrary date.

Likewise, I want to get this in master and in beta1 so there's as much
time to test and iron out bugs without putting undue pressure on
anyone, Jan in particular, if issues are raised.  Landing things late
causes problems.  I already believe we should merge this, if ready,
despite it missing the freeze date.

Best wishes,

Neil

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

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




Re: Temporary lightweight C/C++ support?

Posted by Antonio <an...@vieiro.net>.
Mmm... I think content is more important than dates!

I understand that dates are important to get things done, but I don't 
see a problem in delaying the whole 12.1 one or two tweeks, if required.

I'd rather have a featureful 12.1 than a timed one :-). After all this 
is an open source project, where people contribute as time permits, right?

Cheers,
Antonio


El 18/07/2020 a las 12:38, Neil C Smith escribió:
> I agree, but I'd also like to merge by end of day Monday so it can be
> in the first beta.  So, treating this thread somewhat as lazy
> consensus for 12.1 - if you object, please object soon!:-)   Not that
> we can't remove / disable before final release, but I'd rather not.

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

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




Re: Temporary lightweight C/C++ support?

Posted by Brad Walker <bw...@musings.com>.
Wowza.. I go away with the family and come back to a whole herd of email..
8-)

Just an FYI, I've been working on the CND module. Basically, getting it
into better shape doing things like code cleanup and fixing the licenses.
Hopefully, should have something productive in the next month. But, that's
where I currently stand.

Hope this helps and thanks to Jan for this work.

-brad w.


On Mon, Jul 20, 2020 at 1:47 PM Jan Lahoda <la...@gmail.com> wrote:

> On Mon, Jul 20, 2020 at 11:12 AM Neil C Smith <ne...@apache.org>
> wrote:
>
> > On Sun, 19 Jul 2020 at 19:59, Jan Lahoda <la...@gmail.com> wrote:
> > > There is a short README in the cpplite cluster:
> > > https://github.com/jlahoda/netbeans/blob/cpplite/cpplite/README.md
> >
> > Ah, thanks, missed that.
> >
> > It looks like we're good to go with this.  Can you handle merging
> > sometime today/tomorrow?  Not sure whether you would prefer squashing
> > everything or not?
> >
>
> Done (squashed). I am eager to hear what people think!
>
> Jan
>
>
> > Best wishes,
> >
> > Neil
> >
>

Re: Temporary lightweight C/C++ support?

Posted by Jan Lahoda <la...@gmail.com>.
On Mon, Jul 20, 2020 at 11:12 AM Neil C Smith <ne...@apache.org> wrote:

> On Sun, 19 Jul 2020 at 19:59, Jan Lahoda <la...@gmail.com> wrote:
> > There is a short README in the cpplite cluster:
> > https://github.com/jlahoda/netbeans/blob/cpplite/cpplite/README.md
>
> Ah, thanks, missed that.
>
> It looks like we're good to go with this.  Can you handle merging
> sometime today/tomorrow?  Not sure whether you would prefer squashing
> everything or not?
>

Done (squashed). I am eager to hear what people think!

Jan


> Best wishes,
>
> Neil
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: dev-unsubscribe@netbeans.apache.org
> For additional commands, e-mail: dev-help@netbeans.apache.org
>
> For further information about the NetBeans mailing lists, visit:
> https://cwiki.apache.org/confluence/display/NETBEANS/Mailing+lists
>
>
>
>

Re: Temporary lightweight C/C++ support?

Posted by Neil C Smith <ne...@apache.org>.
On Sun, 19 Jul 2020 at 19:59, Jan Lahoda <la...@gmail.com> wrote:
> There is a short README in the cpplite cluster:
> https://github.com/jlahoda/netbeans/blob/cpplite/cpplite/README.md

Ah, thanks, missed that.

It looks like we're good to go with this.  Can you handle merging
sometime today/tomorrow?  Not sure whether you would prefer squashing
everything or not?

Best wishes,

Neil

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

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




Re: Temporary lightweight C/C++ support?

Posted by Jan Lahoda <la...@gmail.com>.
Hi,

On Sat, Jul 18, 2020 at 12:38 PM Neil C Smith <ne...@apache.org> wrote:

> On Sat, 18 Jul 2020 at 11:01, Antonio <an...@vieiro.net> wrote:
> > El 17/7/20 a las 20:30, Jan Lahoda escribió:
> > > I believe we are still working on integrating the CND C/C++ support.
> >
> > Do we have a branch somewhere? How can I join?
>
> It's at https://github.com/apache/netbeans/tree/cnd I believe?
>
> > > So, I wonder, would a temporary lightweight C/C++ support make sense?
> See:
> > > https://github.com/apache/netbeans/pull/2234
> >
> > Definitely. This should go in 12.1 I think.
>
> I agree, but I'd also like to merge by end of day Monday so it can be
> in the first beta.  So, treating this thread somewhat as lazy
> consensus for 12.1 - if you object, please object soon! :-)  Not that
> we can't remove / disable before final release, but I'd rather not.
>
> Jan, could you provide a short description and enough usage info to go
> along with beta announcement to help with testing?
>

There is a short README in the cpplite cluster:
https://github.com/jlahoda/netbeans/blob/cpplite/cpplite/README.md

Jan


> Best wishes,
>
> Neil
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: dev-unsubscribe@netbeans.apache.org
> For additional commands, e-mail: dev-help@netbeans.apache.org
>
> For further information about the NetBeans mailing lists, visit:
> https://cwiki.apache.org/confluence/display/NETBEANS/Mailing+lists
>
>
>
>

Re: Temporary lightweight C/C++ support?

Posted by Neil C Smith <ne...@apache.org>.
On Sat, 18 Jul 2020 at 11:01, Antonio <an...@vieiro.net> wrote:
> El 17/7/20 a las 20:30, Jan Lahoda escribió:
> > I believe we are still working on integrating the CND C/C++ support.
>
> Do we have a branch somewhere? How can I join?

It's at https://github.com/apache/netbeans/tree/cnd I believe?

> > So, I wonder, would a temporary lightweight C/C++ support make sense? See:
> > https://github.com/apache/netbeans/pull/2234
>
> Definitely. This should go in 12.1 I think.

I agree, but I'd also like to merge by end of day Monday so it can be
in the first beta.  So, treating this thread somewhat as lazy
consensus for 12.1 - if you object, please object soon! :-)  Not that
we can't remove / disable before final release, but I'd rather not.

Jan, could you provide a short description and enough usage info to go
along with beta announcement to help with testing?

Best wishes,

Neil

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

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




Re: Temporary lightweight C/C++ support?

Posted by Antonio <an...@vieiro.net>.
Hi there,

El 17/7/20 a las 20:30, Jan Lahoda escribió:
> I believe we are still working on integrating the CND C/C++ support.

Do we have a branch somewhere? How can I join?

> 
> So, I wonder, would a temporary lightweight C/C++ support make sense? See:
> https://github.com/apache/netbeans/pull/2234

Definitely. This should go in 12.1 I think.

Cheers,
Antonio

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

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