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

idris2-add-clause doesn't send a message when cursor is on a dash (-) #16

Closed
ohad opened this issue Feb 9, 2022 · 0 comments
Closed

Comments

@ohad
Copy link
Collaborator

ohad commented Feb 9, 2022

(-) : Nat

(|+-+|) : Nat

Put the cursor on either of the minus signs (line 1 and line 3).
Hit (C-c C-s)

Expected behaviour

Add a stub definition.

Actual behaviour

Nothing, no messages are sent over the connection.

Moving the curosr to a non-dash character (the pipe or the plus in line 3), this command does send a message and the correct definition is generated.

keram added a commit to keram/idris-mode that referenced this issue Nov 25, 2022
Why:
The `-` char is defined in idris-syntax-table as being
beginning of comment and causing condition:
`(equal (syntax-after (point)) (string-to-syntax ".")`
in `idris-thing-at-point` be evaluated to nil (false)
and throw error.

Fixes:
idris-community/idris2-mode#16
keram added a commit to keram/idris-mode that referenced this issue Nov 26, 2022
Why:
The `-` char is defined in idris-syntax-table as being
beginning of comment and causing condition:
`(equal (syntax-after (point)) (string-to-syntax ".")`
in `idris-thing-at-point` be evaluated to nil (false)
and throw error.

Fixes:
idris-community/idris2-mode#16
keram added a commit to keram/idris-mode that referenced this issue Nov 26, 2022
Why:
The `-` char is defined in idris-syntax-table as being
beginning of comment and causing condition:
`(equal (syntax-after (point)) (string-to-syntax ".")`
in `idris-thing-at-point` be evaluated to nil (false)
and throw error.

Fixes:
idris-community/idris2-mode#16
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

No branches or pull requests

1 participant