Skip to content

Use dedicated hie-self-debug-test.yaml for self-debug (tests)#313

Merged
Saizan merged 1 commit intomasterfrom
hie-self-debug-test
May 8, 2026
Merged

Use dedicated hie-self-debug-test.yaml for self-debug (tests)#313
Saizan merged 1 commit intomasterfrom
hie-self-debug-test

Conversation

@Saizan
Copy link
Copy Markdown
Collaborator

@Saizan Saizan commented May 8, 2026

I kept getting annoyed that the tests would pick up configs from cabal.project.local so I added this extra config option:

  • 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

As a bonus we can now have the multi cradle in hie.yaml while using an "all" cradle for .vscode/launch.json:

  • 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.

We can get rid of hie-self-debug.yaml once we add the LoadAll/Eagerly load style to HIE.

@Saizan Saizan force-pushed the hie-self-debug-test branch 4 times, most recently from d4d3f28 to 4c6aeab Compare May 8, 2026 13:16
@alt-romes
Copy link
Copy Markdown
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).

@alt-romes
Copy link
Copy Markdown
Collaborator

note: the self debug test can be debugged by calling cabal sdist and running the testsuite in the unzipped result

@Saizan Saizan force-pushed the hie-self-debug-test branch from 4c6aeab to 189ce28 Compare May 8, 2026 15:13
- 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.
@Saizan Saizan force-pushed the hie-self-debug-test branch from 189ce28 to 998c127 Compare May 8, 2026 19:33
@Saizan Saizan merged commit 1c5be4d into master May 8, 2026
5 checks passed
@Saizan Saizan deleted the hie-self-debug-test branch May 8, 2026 19:39
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