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

将生成"compile_commands.json"文件的默认地址从".vscode"文件夹移动到"build"文件夹 #253

Open
Xuanluo-Qiu opened this issue Feb 15, 2024 · 3 comments

Comments

@Xuanluo-Qiu
Copy link

Is your feature request related to a problem? Please describe.

在当前使用clangd时,默认生成的compile_commands.json文件出现在.vscode文件夹中,我认为这是不合理且麻烦的。因为并不是每个人都在使用vscode,并且现在的方案十分的繁琐,对其他编辑器的使用者并不友好。

Describe the solution you'd like

compile_commands.json文件移动到build文件夹有以下好处:

  1. 不是每个人都在用vscode,如果提案通过,那么无论是否使用vscode
    都能拥有开箱即用的体验。
  2. clangd默认寻找compile_commands.json文件的路径就是build文件夹,这一简单的修改会省去修改路径的时间,并且十分优雅,无需做其他改动。

Describe alternatives you've considered

No response

Additional context

No response

@Xuanluo-Qiu Xuanluo-Qiu changed the title 将生成"compile_commands.json"文件的默认地址从".vscode"文件夹移动到"build"文件夹 将生成compile_commands.json文件的默认地址从.vscode文件夹移动到build文件夹 Feb 15, 2024
@Issues-translate-bot
Copy link

Bot detected the issue body's language is not English, translate it automatically.


Title: Move the default address of the generated "compile_commands.json" file from the ".vscode" folder to the "build" folder

@Xuanluo-Qiu Xuanluo-Qiu changed the title 将生成compile_commands.json文件的默认地址从.vscode文件夹移动到build文件夹 将生成"compile_commands.json"文件的默认地址从".vscode"文件夹移动到"build"文件夹 Feb 15, 2024
@waruqi
Copy link
Member

waruqi commented Feb 15, 2024

这是 xmake-vscode 插件的行为,跟 xmake cli 无关,请提到 xmake-vscode/issues 那边去。。

另外,插件可以自己配置修改目录的。。xmake.compileCommandsDirectory 自己改下就行了。。

默认路径不会改,会 break 其他用户,而且众口难调,不可能满足所有用户需求

@Issues-translate-bot
Copy link

Bot detected the issue body's language is not English, translate it automatically.


This is the behavior of the xmake-vscode plug-in and has nothing to do with xmake cli. Please refer to xmake-vscode/issues. .

In addition, the plug-in can configure and modify the directory by itself. . xmake.compileCommandsDirectory Just change it yourself. .

The default path will not be changed and will break other users. It is also difficult to adjust and cannot meet the needs of all users.

@waruqi waruqi transferred this issue from xmake-io/xmake Feb 15, 2024
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

3 participants