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 无法识别同一标头中的某些函数

Guru**** 2330830 points
Other Parts Discussed in Thread: MSPM0G3507
请注意,本文内容源自机器翻译,可能存在语法或其它翻译错误,仅供参考。如需获取准确内容,请参阅链接中的英语原文或自行翻译。

https://e2e.ti.com/support/tools/code-composer-studio-group/ccs/f/code-composer-studio-forum/1448946/codecomposer-thiea-clangd-fails-to-recognize-some-functions-in-the-same-header

器件型号:CODECOMPOSER
主题中讨论的其他器件:MSPM0G3507

工具与软件:

你好

我正在使用最新版 Theia 版本: 20.0.0.12_1.6.0(下面提供的扩展版本)与 clangd Ver. 18.1.3.

我有一个支持 MSPM0G3507的工程、我选择了 TI clang 编译器+ driverlib src (要包含它们、以便我可以查看源文件)。

问题:

AutoComplete 会显示库中的某些内容、但不会显示其他内容。 例如、这两个函数同时来自同一个文件"dl_gpio.h":

预测的第一个函数

第二个可用函数恰好低于前一个函数、则不进行预测。

如您所见、它无法预测函数。 这是一个示例、即使在 v1.4版本的原理上也会发生同样的问题、多次、无论是否有 driverliv src、采用 ARM GCC 或 TI CLANG、但我今天是这样报告的、因为我认为这在最新版本中得到了解决。

已尝试的功能:

1-清洁和重建

2-重新启动 Clangd 语言服务器

3-完全重新安装、全新安装(我们在多台计算机上使用 Theia)

扩展的版本:

  • @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

此致、

Tirdad