This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

CODECOMPOSER: Thiea clangd fails to recognize some functions in the same header

Part Number: CODECOMPOSER
Other Parts Discussed in Thread: MSPM0G3507

Tool/software:

Good day

I'm using latest version of Theia Version: 20.0.0.12__1.6.0 (extensions' versions provided below) with clangd Ver. 18.1.3.

I have a project with MSPM0G3507 and I chose TI CLANG compiler + driverlib src (to include them so I can see the source files).

Problem:

Autocomplete does show some from the library, but doesn't show others. For example these are 2 functions, at the same moment, from the same file "dl_gpio.h":

The first function which is predicted

The second function which is available just below the previous function is not predicted.

As you can see, it can't predict the function. This was an example and the same problem happened even on v1.4 of theia, numerous times, with or without driverliv src, with ARM GCC or TI CLANG but I reported it today because I thought it's addressed in the newest version.

What have been tried:

1- Cleaning and rebuilding

2- restarting clangd language server

3- fully reinstalling, fresh installing (we use Theia on multiple computers)

The extensions' versions:

  • @ccs/ccstudio 20.0.0
    @ccs/ccstudio-debug 20.0.0
    @ccs/ccstudio-getting-started 20.0.0
    @ccs/ccstudio-guicomposer 20.0.0
    @ccs/ccstudio-plugin 20.0.0
    @ccs/ccstudio-project 20.0.0
    @ccs/ccstudio-support 20.0.0
    @ccs/ccstudio-trace-config 20.0.0
    @ccs/ccstudio-trace-viewer 20.0.0
    @ccs/ccstudio-updater 20.0.0
    @theia/bulk-edit 1.53.2
    @theia/callhierarchy 1.53.2
    @theia/collaboration 1.53.2
    @theia/console 1.53.2
    @theia/core 1.53.2
    @theia/debug 1.53.2
    @theia/dev-container 1.53.2
    @theia/editor 1.53.2
    @theia/editor-preview 1.53.2
    @theia/electron 1.53.2
    @theia/external-terminal 1.53.2
    @theia/file-search 1.53.2
    @theia/filesystem 1.53.2
    @theia/keymaps 1.53.2
    @theia/markers 1.53.2
    @theia/messages 1.53.2
    @theia/metrics 1.53.2
    @theia/mini-browser 1.53.2
    @theia/monaco 1.53.2
    @theia/navigator 1.53.2
    @theia/notebook 1.53.2
    @theia/outline-view 1.53.2
    @theia/output 1.53.2
    @theia/plugin-dev 1.53.2
    @theia/plugin-ext 1.53.2
    @theia/plugin-ext-headless 1.53.2
    @theia/plugin-ext-vscode 1.53.2
    @theia/preferences 1.53.2
    @theia/preview 1.53.2
    @theia/process 1.53.2
    @theia/property-view 1.53.2
    @theia/remote 1.53.2
    @theia/scm 1.53.2
    @theia/scm-extra 1.53.2
    @theia/search-in-workspace 1.53.2
    @theia/secondary-window 1.53.2
    @theia/task 1.53.2
    @theia/terminal 1.53.2
    @theia/test 1.53.2
    @theia/timeline 1.53.2
    @theia/toolbar 1.53.2
    @theia/typehierarchy 1.53.2
    @theia/userstorage 1.53.2
    @theia/variable-resolver 1.53.2
    @theia/vsx-registry 1.53.2
    @theia/workspace 1.53.2

Kind regards,

Tirdad