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**** 2033340 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)

扩展的版本:

  • Fullscreen
    1
    2
    3
    4
    5
    6
    7
    8
    9
    10
    11
    12
    13
    14
    15
    16
    17
    18
    19
    20
    21
    @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
    XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX

此致、

Tirdad

  • 请注意,本文内容源自机器翻译,可能存在语法或其它翻译错误,仅供参考。如需获取准确内容,请参阅链接中的英语原文或自行翻译。

    好的、我看到这个特定函数存在这个问题。 我还不知道问题是什么。 我需要进一步调查。

  • 请注意,本文内容源自机器翻译,可能存在语法或其它翻译错误,仅供参考。如需获取准确内容,请参阅链接中的英语原文或自行翻译。

    我为此提出了一个 TT。 跟踪链接: https://sir.ext.ti.com/jira/browse/EXT_EP-12151

    谢谢

    Ki