Re: [C/C++] Unable to install and use clangd protocol server

2022-01-19 Thread slipbits

NB 12.5
Win-7-64
cygwin
gcc v11 installed under cygwin
clang v8.0.1 installed under cygwin
clangd v13.0.0 installed under Win-7

Hi (and sorry for being a pest);

I'm still having difficulty.

1. clang/clangd downloaded and installed. (no issue)
2. Tools->Option->C/C++->ccls configuration changed to clangd location.
   (no issue)
3. Tools->Option->C/C++->code assistance->C++ Compiler changed to the
   current location of the include libraries. (issue).
4. Compile fails to find . I have verified that this file
   exists and is in the C++ paths in Step 3.
5. Right click on ->Build and found 4 entries;
   Configuration Name, Build, Clean, and Run. All were empty. David
   said to put the include directories here. Does this mean that the
   include directories are inserted directly, as in Step 3 above, or
   does the gcc build parameters have to be used. I have inserted all
   of the directories in Step 3 into Build w/wo gcc link prefixes
   without good effect.
6. What purpose does Step 3 have if the include files are not used in
   the compile. I could understand that the Step 3 includes are for all
   builds and the Step 5 includes are for project specific needs, but I
   can't get either to work.

OK. What am I getting wrong. Are my assumptions  incorrect (Step 3/6) or 
is there something that I'm missing (probably), or both (most likely). 
Do I have to install NB 12.6 (it's on my todo list so this really isn't 
an issue).


thanks
art

=== code ===
#include 

int main(int argc, char* argv[]) {
   exit (1);
}

On 1/18/2022 11:29 AM, slipbits wrote:

Thanks;

After I followed Bradley Willcott's directions I returned to 
Tools->Options->C/C++ and found that it (now) contained linkages to 
clang, not clangd. Before this change the C/C++ options where for ccls 
and clangd, not clang. You are probably correct in that I downloaded 
the indexer, but I think that NB should change to 'clangd' to 'clang' 
to clear up any confusion, not to say that I won't continued to be 
confused.


art

On 1/18/2022 9:33 AM, antonio wrote:

Hi there,

The "clangd for Windows" does not have any "clangd-index-server.exe", 
nor "clangd-indexer.exe", just a "clangd.exe". You've probably 
downloaded the indexer, not the clangd.


Just unzip clangd zip file somewhere in a directory in your disk. If 
you have this directory in your PATH then NetBeans should find it for 
you. Otherwise you'll have to add it manually (say 
"C:\Users\whatever\clang\bin\clangd.exe).


Cheers,
Antonio



On 17/01/2022 22:17, slipbits wrote:
'm trying to host all my C/C++ projects on Netbeans (because I like 
NB) and am having some difficulty. NB tools->options->C/C++ requires 
either a ccls or clangd 
protocol 
server. I downloaded clangd 
 for windows 
 
as a zip file and then extracted clangd-index-server-monitor.exe, 
clangd-index-server.exe. clangd-indexer.exe to my cygwin /bin 
directory. Then, in turn, I changed the C/C++ "clangd Location" to 
each of  the files (/bin/). In all cases I was then unable 
to modify my project file (below).


H



-
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: [C/C++] Unable to install and use clangd protocol server

2022-01-18 Thread antonio

Hi,

NetBeans does indeed use ccls[1] or clangd[2] (with a d), not clang.

Both of them are LSP Servers for C/C++ (and more languages).

You can use these LSP Servers with some other editor (Vim, Emacs, 
VSCode, etc.).


We are trying to recover some of the previous NB<=8.2 C/C++ features, 
too. These will arrive into NetBeans in the future.


Cheers,
Antonio

[1]
https://github.com/MaskRay/ccls

[2]
https://clangd.llvm.org/

El 18/1/22 a las 20:29, slipbits escribió:
I think that NB should change to 'clangd' to 'clang' to clear up any 
confusion


-
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: [C/C++] Unable to install and use clangd protocol server

2022-01-18 Thread slipbits

Thanks;

After I followed Bradley Willcott's directions I returned to 
Tools->Options->C/C++ and found that it (now) contained linkages to 
clang, not clangd. Before this change the C/C++ options where for ccls 
and clangd, not clang. You are probably correct in that I downloaded the 
indexer, but I think that NB should change to 'clangd' to 'clang' to 
clear up any confusion, not to say that I won't continued to be confused.


art

On 1/18/2022 9:33 AM, antonio wrote:

Hi there,

The "clangd for Windows" does not have any "clangd-index-server.exe", 
nor "clangd-indexer.exe", just a "clangd.exe". You've probably 
downloaded the indexer, not the clangd.


Just unzip clangd zip file somewhere in a directory in your disk. If 
you have this directory in your PATH then NetBeans should find it for 
you. Otherwise you'll have to add it manually (say 
"C:\Users\whatever\clang\bin\clangd.exe).


Cheers,
Antonio



On 17/01/2022 22:17, slipbits wrote:
'm trying to host all my C/C++ projects on Netbeans (because I like 
NB) and am having some difficulty. NB tools->options->C/C++ requires 
either a ccls or clangd 
protocol 
server. I downloaded clangd 
 for windows 
 
as a zip file and then extracted clangd-index-server-monitor.exe, 
clangd-index-server.exe. clangd-indexer.exe to my cygwin /bin 
directory. Then, in turn, I changed the C/C++ "clangd Location" to 
each of  the files (/bin/). In all cases I was then unable 
to modify my project file (below).


H



-
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: [C/C++] Unable to install and use clangd protocol server

2022-01-18 Thread antonio

Hi there,

The "clangd for Windows" does not have any "clangd-index-server.exe", 
nor "clangd-indexer.exe", just a "clangd.exe". You've probably 
downloaded the indexer, not the clangd.


Just unzip clangd zip file somewhere in a directory in your disk. If you 
have this directory in your PATH then NetBeans should find it for you. 
Otherwise you'll have to add it manually (say 
"C:\Users\whatever\clang\bin\clangd.exe).


Cheers,
Antonio



On 17/01/2022 22:17, slipbits wrote:
'm trying to host all my C/C++ projects on Netbeans (because I like NB) 
and am having some difficulty. NB tools->options->C/C++ requires either 
a ccls or clangd 
protocol server. I 
downloaded clangd  
for windows 
 
as a zip file and then extracted clangd-index-server-monitor.exe, 
clangd-index-server.exe. clangd-indexer.exe to my cygwin /bin directory. 
Then, in turn, I changed the C/C++ "clangd Location" to each of  the 
files (/bin/). In all cases I was then unable to modify my 
project file (below).


H



-
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: [C/C++] Unable to install and use clangd protocol server

2022-01-17 Thread Bradley Willcott

Try the following:

NB: Tools -> Plugins -> Settings:
Activate: Netbeans 8.2 Plugin Portal

Switch to -> Updates:
Click on: [Check for Updates]

Switch to -> Available Plugins:
Install: "C/C++" plugin

Hope this helps.
Brad.

On 18/1/22 05:17, slipbits wrote:


NB 12.5
Windows 7
Cygwin

I'm trying to host all my C/C++ projects on Netbeans (because I like 
NB) and am having some difficulty. NB tools->options->C/C++ requires 
either a ccls or clangd 
protocol server. 
I downloaded clangd 
 for windows 
 
as a zip file and then extracted clangd-index-server-monitor.exe, 
clangd-index-server.exe. clangd-indexer.exe to my cygwin /bin 
directory. Then, in turn, I changed the C/C++ "clangd Location" to 
each of  the files (/bin/). In all cases I was then unable 
to modify my project file (below).


How can I get some functionality out of NB w/C/C++?  I know, I know, 
I've asked this question before, and the answer was something like 
File->New Project->C/C++ etc. Then enter the compile and build 
commands. But no previous guidance on clangd, although there was 
guidance on using the NB 8.2 plugin for C/C++ (which is not listed as 
available in NB 12.5). So, I'm stumped.


= project code =

/*
 * Click 
nbfs://nbhost/SystemFileSystem/Templates/Licenses/license-default.txt 
to change this license
 * Click 
nbfs://nbhost/SystemFileSystem/Templates/cpplite/CPPTemplate.cpp to 
edit this template

 */
int main(int argc, char* argv[]) {
   exit 1;
}





[C/C++] Unable to install and use clangd protocol server

2022-01-17 Thread slipbits

NB 12.5
Windows 7
Cygwin

I'm trying to host all my C/C++ projects on Netbeans (because I like NB) 
and am having some difficulty. NB tools->options->C/C++ requires either 
a ccls or clangd 
protocol server. I 
downloaded clangd  
for windows 
 
as a zip file and then extracted clangd-index-server-monitor.exe, 
clangd-index-server.exe. clangd-indexer.exe to my cygwin /bin directory. 
Then, in turn, I changed the C/C++ "clangd Location" to each of  the 
files (/bin/). In all cases I was then unable to modify my 
project file (below).


How can I get some functionality out of NB w/C/C++?  I know, I know, 
I've asked this question before, and the answer was something like 
File->New Project->C/C++ etc. Then enter the compile and build commands. 
But no previous guidance on clangd, although there was guidance on using 
the NB 8.2 plugin for C/C++ (which is not listed as available in NB 
12.5). So, I'm stumped.


= project code =

/*
 * Click 
nbfs://nbhost/SystemFileSystem/Templates/Licenses/license-default.txt to 
change this license
 * Click 
nbfs://nbhost/SystemFileSystem/Templates/cpplite/CPPTemplate.cpp to edit 
this template

 */
int main(int argc, char* argv[]) {
   exit 1;
}