Theia: Go to definition and outline doesn't work in cpp code

Created on 4 Mar 2019  路  6Comments  路  Source: eclipse-theia/theia

Description

Go to definition and outline work in java, but they don't in cpp code even if I installed cpp and textmate packages. Anyone knows why?

Reproduction Steps


image
image

OS and Theia version:
Windows 10
@theia/java : ^0.3.19
@theia/cpp: ^0.3.19
@theia/textmate-grammars: ^0.3.19

Diagnostics:

Most helpful comment

@yeonggyulim with clangd installed and the path referenced through the preference, were you able to benefit from cpp language support? (go to definition, hover...)

but, how can I compile this to bundle?
there's no tsconfig.json file and it goes away whenever I build with yarn.

I'm not quite sure what you mean, can you clarify what are you looking to accomplish?

All 6 comments

Do you have the cpp language server installed ? You can find information in the @theia/cpp readme.
Theia uses clangd to enable LSP features for cpp.

Do you have the cpp language server installed ? You can find information in the @theia/cpp readme.
Theia uses clangd to enable LSP features for cpp.

I installed clangd through LLVM and make the path in C:\Program Fiels\LLVM\bin.
image

However, I still see this error and LSP features don't work. Do you know why?

image
image

You can try specifying the location of your clangd using the following preference:
theia/packages/cpp/src/browser/cpp-preferences.ts

Line 56 in e1b5a60

description: 'Specify the executable name/path to run in order to start clangd.',

Is this what you mean?
image

but, how can I compile this to bundle?
there's no tsconfig.json file and it goes away whenever I build with yarn.

image
I installed @thiea/cpp package and clangd, but I can't figure out what to do next.

@yeonggyulim with clangd installed and the path referenced through the preference, were you able to benefit from cpp language support? (go to definition, hover...)

but, how can I compile this to bundle?
there's no tsconfig.json file and it goes away whenever I build with yarn.

I'm not quite sure what you mean, can you clarify what are you looking to accomplish?

I found the problem.

It works after downloading clangd.
The problem I was suffering is it works on windows command prompt, but it doesn't with terminal on visual studio code.

Thank you for your help.

Was this page helpful?
0 / 5 - 0 ratings

Related issues

marechal-p picture marechal-p  路  3Comments

dhananjayharel picture dhananjayharel  路  3Comments

kittaakos picture kittaakos  路  3Comments

jeanlucburot picture jeanlucburot  路  3Comments

Beetix picture Beetix  路  3Comments