Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Unity Build时生成compile_commands.json使用原始文件名 #2514

Closed
MaxwellGengYF opened this issue Jun 30, 2022 · 8 comments
Closed

Unity Build时生成compile_commands.json使用原始文件名 #2514

MaxwellGengYF opened this issue Jun 30, 2022 · 8 comments

Comments

@MaxwellGengYF
Copy link
Contributor

你在什么场景下需要该功能?

compile_commands.json中使用unity build生成的文件,会导致某些语法高亮插件无法正常工作。

描述可能的解决方案

Unity Build时生成compile_commands.json使用原始文件名,而非生成的unity build文件

描述你认为的候选方案

No response

其他信息

No response

@waruqi waruqi added this to the v2.6.9 milestone Jun 30, 2022
@waruqi
Copy link
Member

waruqi commented Jun 30, 2022

更新到 dev 试试,应该可以了

xmake update -s dev

@MaxwellGengYF
Copy link
Contributor Author

MaxwellGengYF commented Jun 30, 2022 via email

@MaxwellGengYF
Copy link
Contributor Author

MaxwellGengYF commented Jun 30, 2022 via email

@waruqi
Copy link
Member

waruqi commented Jun 30, 2022

本地确认下 4c35213

这个 patch 的代码合进去了么,我这 mac 上测试是 ok 的

@waruqi
Copy link
Member

waruqi commented Jun 30, 2022

看了一下似乎是vscode插件的行为和直接用命令行生成的不一致,只有vscode插件生成的json文件会使用unity build文件名

________________________________ 发件人: ruki @.> 发送时间: 2022年6月30日 10:37 收件人: xmake-io/xmake @.> 抄送: Maxwell Geng @.>; Author @.> 主题: Re: [xmake-io/xmake] Unity Build时生成compile_commands.json使用原始文件名 (Issue #2514) 更新到 dev 试试,应该可以了 xmake update -s dev ― Reply to this email directly, view it on GitHub<#2514 (comment)>, or unsubscribehttps://github.com/notifications/unsubscribe-auth/AH5QXOQSOCOKE6MP5PCSL7TVRT26NANCNFSM52HS4DCQ. You are receiving this because you authored the thread.Message ID: @.***>

插件只有在 xmake.lua 变动时候,才会重新生成 compile_commands.json,你看到的可能是老的

@MaxwellGengYF
Copy link
Contributor Author

MaxwellGengYF commented Jun 30, 2022 via email

@waruqi
Copy link
Member

waruqi commented Jun 30, 2022

改了下,你更新下插件试试 1.6.9

@MaxwellGengYF
Copy link
Contributor Author

MaxwellGengYF commented Jun 30, 2022 via email

@waruqi waruqi closed this as completed Jun 30, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants