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

ctags: require scip-ctags to be present #700

Merged
merged 1 commit into from
Nov 17, 2023
Merged

ctags: require scip-ctags to be present #700

merged 1 commit into from
Nov 17, 2023

Conversation

jtibshirani
Copy link
Member

Previously, we didn't require that scip-ctags be available even if if you set
require_ctags and set language_map to something like go:scip. Instead, we
silently fell back to universal-ctags. This is tricky and could mask a real
issue where we expect scip-ctags to be available but it isn't.

Now, we check if SCIP is needed based on language_map, and if so require that
scip-ctags is available.

Test plan

Lots of manual testing with various combinations of language_map and
require_ctags. Also hooked up this change to sg start and checked indexing
works well.

Copy link
Member

@keegancsmith keegancsmith left a comment

Choose a reason for hiding this comment

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

LGTM

// this happens if CTagsMustSucceed is not true and we didn't find universal-ctags
continue
}
// this happens if CTagsMustSucceed is false and we didn't find the binary
Copy link
Member

Choose a reason for hiding this comment

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

I can't believe I wrote "not true" instead of "false" in the old code comment.

@jtibshirani jtibshirani merged commit 7c14b93 into main Nov 17, 2023
8 checks passed
@jtibshirani jtibshirani deleted the jtibs/ctags branch November 17, 2023 16:55
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