Open weichzh opened 3 months ago
Bot detected the issue body's language is not English, translate it automatically.
Title: compile_commands.json cannot be recognized by VS Code IntelliSense
这不应该是 VS Code IntelliSense 的问题么,你得到他们那边去反馈。。
Bot detected the issue body's language is not English, translate it automatically.
Shouldn't this be a problem with VS Code IntelliSense? You need to get feedback from them. .
这不应该是 VS Code IntelliSense 的问题么,你得到他们那边去反馈。。
我那边也发了。感觉module现在各方面支持都还是很差。。。
Bot detected the issue body's language is not English, translate it automatically.
Shouldn't this be a problem with VS Code IntelliSense? You need to get feedback from them. .
I also sent it over there. I feel that module support in all aspects is still very poor. . .
不是感觉,原本现在 lsp 和 编译器都还没完整支持。你现在用 就是躺坑。。想要稳定用,建议再等 5 年。
Bot detected the issue body's language is not English, translate it automatically.
It's not my feeling, originally lsp and compiler are not fully supported yet. What you use now is just lying in a trap. . If you want stable use, it is recommended to wait another 5 years.
u can try https://github.com/ChuanqiXu9/clangd-for-modules and https://github.com/Arthapz/xmake/tree/clangd-module-map
i can confirm that it work (i'm using it under neovim, but vscode clangd lsp ext should handle it too)
(i added these parameters to clangd to make it work
"--offset-encoding=utf-16", "--header-insertion=never", "--experimental-modules-support", "--compile-commands-dir=.vscode", "--modules-map-path=build/clangd_mapper.txt"
)
Xmake 版本
2.9.3
操作系统版本和架构
Windows 11 23H2
描述问题
不修改直接生成 compile_commands.json IntelliSense 会报错,找不到 module。
给改为绝对路径后智能提示能正常显示。
期待的结果
生成 compile_commands.json 时给设置为绝对路径。
工程配置
附加信息和错误日志
无