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 project root discovery when project features aren't loaded. #4463

Merged

Conversation

brownts
Copy link
Contributor

@brownts brownts commented May 27, 2024

It's possible for the corresponding project package (i.e., projectile or project) to not be loaded yet but there to exist autoloads for the functions. In that situation, using featurep to check for the existence of the package will fail. Therefore, fboundp is used instead to check for the existence (possibly an autoload) of the needed functions.

It's possible for the corresponding project package (i.e., projectile
or project) to not be loaded yet but there to exist autoloads for the
functions.  In that situation, using `featurep` to check for the
existence of the package will fail.  Therefore, `fboundp` is used
instead to check for the existence (possibly an autoload) of the
needed functions.
@jcs090218
Copy link
Member

Make sense. Thank you!

@jcs090218 jcs090218 merged commit fceda19 into emacs-lsp:master May 27, 2024
10 of 13 checks passed
cheerio-pixel pushed a commit to cheerio-pixel/lsp-mode that referenced this pull request May 29, 2024
…s-lsp#4463)

It's possible for the corresponding project package (i.e., projectile
or project) to not be loaded yet but there to exist autoloads for the
functions.  In that situation, using `featurep` to check for the
existence of the package will fail.  Therefore, `fboundp` is used
instead to check for the existence (possibly an autoload) of the
needed functions.
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.

None yet

2 participants