Vscode-cpptools: IntelliSense doesn't recognize uint32_t type only.

Created on 7 Nov 2017  路  2Comments  路  Source: microsoft/vscode-cpptools

  • Operating System and version: windows 10 x64 1709 / windows 7 x32
  1. As the gif shows, it seems that intellisense doesn't recognize uint32_t type. However, other types like uint8_t and int32_t are just fine.bug1

  2. Go to Definition, Peek Definiton, Go to Declaration, and Peek Declaration still work on uin32_t.bug2

  3. Sometimes there is a message "Unable to begin adding code symbols for file. error = -2147467259" showed on the OUTPUT window. I don't known if this is related to the problem.

Language Service by design

Most helpful comment

It's not a bug -- in core_cm3.h, it needs to have a compiler define set, such as "__CC_ARM" or it hits a "#error Unknown compiler". Adding it to the defines fixes the issue. It would be nice if we showed all the errors for the current translation unit in compiler order, which would make this particular omission easier to detect. The current implementation requires that you open all the include files until you discover the first error. "Unable to begin adding code symbols..." is a different issue -- do you know how to repro that? We should make that error message more detailed.

All 2 comments

It's not a bug -- in core_cm3.h, it needs to have a compiler define set, such as "__CC_ARM" or it hits a "#error Unknown compiler". Adding it to the defines fixes the issue. It would be nice if we showed all the errors for the current translation unit in compiler order, which would make this particular omission easier to detect. The current implementation requires that you open all the include files until you discover the first error. "Unable to begin adding code symbols..." is a different issue -- do you know how to repro that? We should make that error message more detailed.

Was this page helpful?
0 / 5 - 0 ratings

Related issues

SkyRiderMike picture SkyRiderMike  路  3Comments

vicatcu picture vicatcu  路  3Comments

DemoCrazer picture DemoCrazer  路  3Comments

jrieken picture jrieken  路  3Comments

thndrwrks picture thndrwrks  路  3Comments