Scony / godot-gdscript-toolkit

Independent set of GDScript tools - parser, linter, formatter, and more
MIT License
957 stars 65 forks source link

Issue parsing unicode characters #225

Closed TranquilMarmot closed 5 months ago

TranquilMarmot commented 1 year ago

If you put a unicode character somewhere in your script (i.e. ) then the formatter will complain:

UnicodeEncodeError: 'charmap' codec can't encode character '\u2728' in position 3133: character maps to <undefined>
Scony commented 1 year ago

@TranquilMarmot what gdtoolkit version do you use? I cannot reproduce the issue with latest version from master

TranquilMarmot commented 1 year ago

I'm on version 4.1.0.

For more context, I'm running this via the GDScript Formatter VSCode extension, so it's possible that the error is actually coming from there? The extension lists this repo as its repo, but this obviously isn't where its code lives 😝

Scony commented 1 year ago

I'm on version 4.1.0.

For more context, I'm running this via the GDScript Formatter VSCode extension, so it's possible that the error is actually coming from there? The extension lists this repo as its repo, but this obviously isn't where its code lives 😝

actually the sources are here. I'll check if the extension is the source of the problem

Scony commented 5 months ago

VSCode extension is no longer part of this repo.

Scony commented 5 months ago

VSCode extension is no longer part of this repo.