Skip to content

Conversation

keram
Copy link
Contributor

@keram keram commented Sep 28, 2025

This is failing test PR to demonstrate the issue. I hope someone will help with the fix :) 🙏🏻

Currently

when calling make-case in a .lidr file such as

> foo : Nat -> Nat
> foo x = ?foo_rhs

Idris2 returns double ">" on first line

(:ok "> > foo x = case _ of\n>                case_val => ?foo_rhs")

Expected:

Single ">" on the first line and correctly indented second line

(:ok "> foo x = case _ of\n>              case_val => ?foo_rhs")

This issue seems to be only in ideMode code as in REPL mode the output is generated correctly. See https://github.com/idris-lang/Idris2/blob/main/tests/idris2/literate/literate015/expected

Relates to idris-hackers/idris-mode#644

Description

Self-check

  • This is my first time contributing, I've carefully read CONTRIBUTING.md
    and I've updated CONTRIBUTORS.md with my name.
  • If this is a fix, user-facing change, a compiler change, or a new paper
    implementation, I have updated CHANGELOG_NEXT.md

when calling :make-case in a `.lidr` file.
Currently Idris2 returns double ">" on first line
```
(:ok "> > foo x = case _ of\n>                case_val => ?foo_rhs")
```
Expected:
Single ">" on the first line and correctly indented second line

```
(:ok "> foo x = case _ of\n>              case_val => ?foo_rhs")
```
Expected:
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.

1 participant