Skip to content
This repository has been archived by the owner on Feb 26, 2021. It is now read-only.

The errors are incorrectly located #99

Open
mrakgr opened this issue May 20, 2019 · 7 comments
Open

The errors are incorrectly located #99

mrakgr opened this issue May 20, 2019 · 7 comments

Comments

@mrakgr
Copy link

mrakgr commented May 20, 2019

I am guessing the plugin is incorrectly counting lines for some reason. In the attached screenshot it literally puts me 15 lines away from the error every time I compile. It is quite distracting.

I also find it annoying that every time I compile I need to save manually beforehand. I've also ran into issues when compiling would not clear the buffer and it would show me the old goal in the same place though that might be just me forgetting to save.

I am using Atom on Windows 10.

agda atom bug

@mrakgr
Copy link
Author

mrakgr commented May 20, 2019

I forgot to mention, the same goes for highlighting of the errors.

@banacorn
Copy link
Owner

Does this incorrect line-counting also happens on .agda files, or just .lagda files?

I'll see why save-before-load is not working.

@mrakgr
Copy link
Author

mrakgr commented May 20, 2019

It happens for both.

@banacorn
Copy link
Owner

I've been writing tests recently (finally) and found some glitches in parsing highlighting locations!

@DimaSamoz
Copy link

Not sure if this is still active, but I've been having similar issues: the highlighting showing the warning or error has the correct "shape" but is shifted. Attached is an example: the first line is what compilation displays, the second line is the same text but shifted by 10 spaces to the left to show how the text should be aligned with the highlighting.

image

Thank you for your work on Agda support in Atom!

@banacorn
Copy link
Owner

@DimaSamoz thank you for reporting this. Could you provide a piece of code that causes this problem?

@DimaSamoz
Copy link

Hmm not sure how minimal of an example I can find, since the issue usually arises for larger files... I'll try to put something together when I have time!

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants