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

Float.mod.doc cannot be edited or viewed, and crashes the UCM #5520

Closed
rlmark opened this issue Jan 3, 2025 · 0 comments · Fixed by #5533
Closed

Float.mod.doc cannot be edited or viewed, and crashes the UCM #5520

rlmark opened this issue Jan 3, 2025 · 0 comments · Fixed by #5533
Labels

Comments

@rlmark
Copy link
Contributor

rlmark commented Jan 3, 2025

Describe and demonstrate the bug

Float.mod.doc.md

The Unison term, Float.mod.doc cannot be viewed or edited by the present version of the UCM.

scratch/main> pull.without-history @unison/base/releases/latest
scratch/main> view Float.mod.doc

This will fail with the following output:

Encountered exception:
1:6:
  |
1 | Float..*
  |      ^
unexpected '.'
expecting end of input or identifier (ex: abba1, snake_case, .foo.bar#xyz, .foo.++#xyz, or 🌻)

CallStack (from HasCallStack):
  error, called at src/Unison/Syntax/Name.hs:67:11 in unison-syntax-0.0.0-Hr2rjcvvY1WHgcUQ1jicug:Unison.Syntax.Name
  unsafeParseText, called at src/Unison/Syntax/TermPrinter.hs:1362:16 in unison-parser-typechecker-0.0.0-JliU30UQmMa2dDW5SxUdL:Unison.Syntax.TermPrinter

Environment (please complete the following information):

  • ucm version: release/0.5.29
  • OS/Architecture: MacOS 14.5, Apple Silicon

Additional context
While edit and view do not work with this term, you can, however, display it in the UCM without issue:

scratch/main> display Float.mod.doc
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant