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

Underscores in field name cause pretty print parse failure #189

Open
brekk opened this issue Aug 26, 2024 · 0 comments
Open

Underscores in field name cause pretty print parse failure #189

brekk opened this issue Aug 26, 2024 · 0 comments

Comments

@brekk
Copy link
Contributor

brekk commented Aug 26, 2024

What version of Madlib are you running?

[email protected]

How is Madlib installed on your system?

Installed via npm

What were you trying to do?

import IO from "IO"



main = () => {
  _underscores = "failure"
  IO.pTrace("no wrap", mappend("no ", _underscores))
  IO.pTrace("record wrap", { _underscores })

  interior_under = "fail"
  IO.pTrace("interior, no wrap", mappend("no ", interior_under))
  IO.pTrace("interior, record wrap", { interior_under })

  noUnderscore = "check"
  IO.pTrace("underscores?", { noUnderscore })
}

What did you expect to happen?

Expected the records with underscore fields to work.

What actually happened?

Records with underscore fields fail to parse.

Logs

no wrap "no failure"
record wrap UnknownError(Loc(2, 0, 2))
interior, no wrap "no fail"
interior, record wrap UnknownError(Loc(2, 0, 2))
underscores? { noUnderscore: "check" }

Code Targets

No response

Environment details

No response

@madlib-lang madlib-lang deleted a comment Aug 26, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant