Use dedicated hie-self-debug-test.yaml for self-debug (tests)#313
Merged
Use dedicated hie-self-debug-test.yaml for self-debug (tests)#313
Conversation
d4d3f28 to
4c6aeab
Compare
Collaborator
|
This is great! Means we can have HLS and the debugger both running without needing "multiComponents:" issues (not that I had them anymore but yeah). |
Collaborator
|
note: the self debug test can be debugged by calling |
4c6aeab to
189ce28
Compare
- Added `cradleFile` Launch argument and --cradle-file option to support use of custom hie.yaml files for debug. - self-debug tests specify cradleFile=hie-self-debug-test.yaml, which means: - using cradle with single "all" component - ignoring cabal.project.local - Also added hie-self-debug.yaml which also uses "all" cradle but does not ignore cabal.project.local. - specified as cradleFile in .vscode/launch.json - Uncommented multi cradles in default hie.yaml file, and removed "all" cradle.
189ce28 to
998c127
Compare
alt-romes
approved these changes
May 8, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
I kept getting annoyed that the tests would pick up configs from cabal.project.local so I added this extra config option:
cradleFileLaunch argument and --cradle-file option to support use of custom hie.yaml files for debug.As a bonus we can now have the
multicradle in hie.yaml while using an "all" cradle for .vscode/launch.json:We can get rid of hie-self-debug.yaml once we add the LoadAll/Eagerly load style to HIE.