JuliaSyntax.jl icon indicating copy to clipboard operation
JuliaSyntax.jl copied to clipboard

Unclear error message for invalid string

Open ParadaCarleton opened this issue 2 years ago • 3 comments

New users may not know that $ (or some other character) has a special meaning in Julia, in which case this error is confusing:

julia> str = "hello $x$"
ERROR: ParseError:
# Error @ REPL[26]:1:17
str = "hello $x$"
#               └ ── identifier or parenthesized expression expected after $ in string

ParadaCarleton avatar Sep 13 '23 16:09 ParadaCarleton

Hi @c42f, is this issue fixed? I am a new contributor and want to work on it ^^'

ketgg avatar Dec 23 '23 13:12 ketgg

Hi @c42f, is this issue fixed? I am a new contributor and want to work on it ^^'

Nope, but this looks like a great first issue! Feel free to make a PR :)

ParadaCarleton avatar Dec 27 '23 16:12 ParadaCarleton

I don't see anything 'unclear' about the error message. But it would be nice if the error message nudged me in the right direction:

identifier or parenthesized expression expected after $ in string. Did you want a raw"..." string literal?

jefft avatar Jan 19 '24 05:01 jefft