-
-
Notifications
You must be signed in to change notification settings - Fork 784
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
Comments
更新到 dev 试试,应该可以了 xmake update -s dev |
我已经更新到dev版本了,目前看来生成的compile_commands.json还是unity_xx.cpp这样的文件名
…________________________________
发件人: 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 unsubscribe<https://github.com/notifications/unsubscribe-auth/AH5QXOQSOCOKE6MP5PCSL7TVRT26NANCNFSM52HS4DCQ>.
You are receiving this because you authored the thread.Message ID: ***@***.***>
|
看了一下似乎是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 unsubscribe<https://github.com/notifications/unsubscribe-auth/AH5QXOQSOCOKE6MP5PCSL7TVRT26NANCNFSM52HS4DCQ>.
You are receiving this because you authored the thread.Message ID: ***@***.***>
|
本地确认下 4c35213 这个 patch 的代码合进去了么,我这 mac 上测试是 ok 的 |
插件只有在 xmake.lua 变动时候,才会重新生成 compile_commands.json,你看到的可能是老的 |
是的,我本地已经确定调用xmake f -c清空缓存,并删除项目下所有vscode和xmake相关的缓存文件夹,这时在VSCode中调用XMake.UpdateIntellisence,生成的是Unity Build后的文件名,而直接用命令行输入xmake project -k compile_commands生成的则是原始文件名。
…________________________________
发件人: ruki ***@***.***>
发送时间: 2022年6月30日 11:13
收件人: xmake-io/xmake ***@***.***>
抄送: Maxwell Geng ***@***.***>; Author ***@***.***>
主题: Re: [xmake-io/xmake] Unity Build时生成compile_commands.json使用原始文件名 (Issue #2514)
看了一下似乎是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<#2514>) 更新到 dev 试试,应该可以了 xmake update -s dev D Reply to this email directly, view it on GitHub<#2514 (comment)<#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
―
Reply to this email directly, view it on GitHub<#2514 (comment)>, or unsubscribe<https://github.com/notifications/unsubscribe-auth/AH5QXOQUND7JZ2SES74XQM3VRT7GHANCNFSM52HS4DCQ>.
You are receiving this because you authored the thread.Message ID: ***@***.***>
|
改了下,你更新下插件试试 1.6.9 |
好的,已经没问题了,十分感谢!
…________________________________
发件人: ruki ***@***.***>
发送时间: 2022年6月30日 11:30
收件人: xmake-io/xmake ***@***.***>
抄送: Maxwell Geng ***@***.***>; Author ***@***.***>
主题: Re: [xmake-io/xmake] Unity Build时生成compile_commands.json使用原始文件名 (Issue #2514)
改了下,你更新下插件试试 1.6.9
―
Reply to this email directly, view it on GitHub<#2514 (comment)>, or unsubscribe<https://github.com/notifications/unsubscribe-auth/AH5QXOR3JLPLN4OH3UIADSDVRUBFJANCNFSM52HS4DCQ>.
You are receiving this because you authored the thread.Message ID: ***@***.***>
|
你在什么场景下需要该功能?
compile_commands.json中使用unity build生成的文件,会导致某些语法高亮插件无法正常工作。
描述可能的解决方案
Unity Build时生成compile_commands.json使用原始文件名,而非生成的unity build文件
描述你认为的候选方案
No response
其他信息
No response
The text was updated successfully, but these errors were encountered: