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

Add global package directory to search paths (and update Idris2 submodule) #215

Merged
merged 3 commits into from
Mar 10, 2024

Conversation

mattpolzin
Copy link
Member

@mattpolzin mattpolzin commented Feb 12, 2024

This Pull Request will be necessitated by idris-lang/Idris2#3214 but it will also fail to build until that PR has merged.

In short, the global package search path has been moved out of a function called by both the compiler and the LSP and into the compiler's updateEnv function which the LSP largely reproduces in its Main module. The change in this PR mirrors the one made to updateEnv in the compiler. You can see the analogous change in the upstream PR here: https://github.com/idris-lang/Idris2/pull/3214/files#diff-2459d1bfe7d1e6e584656adf0a5d01e88b5de037ce1785d9a1ff432a04b43f80R79-R84.

@mattpolzin mattpolzin marked this pull request as ready for review March 9, 2024 20:24
@mattpolzin mattpolzin changed the title Add global package directory to search paths Add global package directory to search paths (and update Idris2 submodule) Mar 9, 2024
@stefan-hoeck
Copy link
Contributor

Since this is a necessary fix for the idris2-lsp to keep working with pack, I'm going to merge this.

@stefan-hoeck stefan-hoeck merged commit 07e751b into idris-community:main Mar 10, 2024
2 checks passed
@mattpolzin mattpolzin deleted the pkg-search-paths branch March 10, 2024 05:42
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