-
Notifications
You must be signed in to change notification settings - Fork 1.1k
Error Messages: Refactor backticks, capitalize messages #5335
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
Conversation
dottybot
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Hello, and thank you for opening this PR! 🎉
All contributors have signed the CLA, thank you! ❤️
Have an awesome day! ☀️
|
Waiting on tests to perform on CI so I can fix any broken, since on my machine I can't compile the |
Fix test resources by making them be like the result from messages Remove backticks from 1379
|
Tests fixed! |
|
@sleepiejohn could you rebase your PR the changes so far look good. |
compiler/test-resources/repl/errmsgs
Outdated
| | found: Int(1) | ||
| | required: String | ||
| | Found: Int(1) | ||
| | Required: Stri |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
You removed part of String by mistake here.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Oh dang, my bad!
|
Seems that language server tests are now included and it's currently broke because of capitalization, I'll tend to it later today |
Fix LS diagnostics tests
|
Thanks @sleepiejohn |
This PR removes unnecessary backticks ` from messages and explanations, around interpolations and from text, wraping those texts into interpolations so it can be picked by the highlighter
`()`becomes${"()"}`$mySymbol`becomes$mySymbolAlso capitalizes messages, but:
matchwere not capitalized.value,class,objectwere not capitalized.This all to remove clutter and increase experience when sending those errors to editors for example, and dont let newcomers be confused since
`is part of the language when used in a case expression and to escape keywordsPart of #1589