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

Code formatting removes comment strings #1593

Closed
paulcadman opened this issue Oct 18, 2022 · 0 comments · Fixed by #1737
Closed

Code formatting removes comment strings #1593

paulcadman opened this issue Oct 18, 2022 · 0 comments · Fixed by #1737

Comments

@paulcadman
Copy link
Collaborator

Format a file in emacs containing a comment, the comment is removed.

The emacs formatter uses juvix dev scope, you can see the issue in this example:

$ cd examples/milestone/HelloWorld
$ cat HelloWorld.juvix
-- HelloWorld.juvix
module HelloWorld;

open import Stdlib.Prelude;

main : IO;
main := putStrLn "hello world!";

end;
$ juvix dev scope HelloWorld.juvix
module HelloWorld;
  open import Stdlib.Prelude;

  main : IO;
  main := putStrLn "hello world!";
end;

If we intent to use the scoper output as a formatter, we should preserve the comment strings.

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

Successfully merging a pull request may close this issue.

3 participants