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

Fix #2621 - Set default build directory options #2713

Closed
wants to merge 1 commit into from

Conversation

w0rp
Copy link
Member

@w0rp w0rp commented Aug 18, 2019

clangd and ccls require the build directory to be set when compile_commands.json exists in other directories.

Tests are needed.

clangd and ccls require the build directory to be set when
`compile_commands.json` exists in other directories.

Tests are needed.
Copy link

@rustushki rustushki left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The changes look like what I would expect for clangd. I commented out the workaround, then tried the changes in my local environment with only g:ale_c_build_dir='build' (which is a typical folder for cmake projects). My test case worked as expected. I also tried setting the option to some other directory which did not exist and my problem reproduced (as expected). At least for clangd, I believe these changes are good.

rustushki
rustushki previously approved these changes Aug 18, 2019
Copy link

@rustushki rustushki left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The changes look like what I would expect for clangd. I commented out the workaround, then tried the changes in my local environment with only g:ale_c_build_dir='build' (which is a typical folder for cmake projects). My test case worked as expected. I also tried setting the option to some other directory which did not exist and my problem reproduced (as expected). At least for clangd, I believe these changes are good.

@rustushki
Copy link

Apologies for dup review.. don't do reviews in GitHub often.

@w0rp w0rp force-pushed the bugfix/c-lsp-build-dir-settings branch from e72b269 to 1bcf3dc Compare August 18, 2019 17:31
@w0rp w0rp removed the fix tests label Feb 22, 2020
@w0rp w0rp closed this Aug 6, 2020
@w0rp w0rp deleted the bugfix/c-lsp-build-dir-settings branch February 6, 2021 20:31
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants