Swoffa / SublimeKickAssemblerC64

Sublime Package for C64 development with Kick Assembler.
47 stars 15 forks source link

MacOS 11.4 & Sublime 4113 class path issue #70

Open Swoffa opened 3 years ago

Swoffa commented 3 years ago

I can confirm similar problem on MacOS 11.4 & Sublime 4113.

I've got KickAss in the location as by the guide (/Applications/KickAssembler/KickAss.jar).

Just Build a file gives:

bash: -c: line 0: unexpected EOF while looking for matching '' bash: -c: line 1: syntax error: unexpected end of file [Finished in 43ms with exit code 2] [shell_cmd: echo 'ascii' codec can't decode byte 0xe2 in position 959: ordinal not in range(128)] [dir: /Users/<redacted>/Documents/development/6502/rehelloworld] [path: /usr/local/bin:/usr/bin:/bin:/usr/sbin:/sbin:/opt/X11/bin:/Library/Frameworks/Mono.framework/Versions/Current/Commands]

I've tried adding "kickass_jar_path": "/Applications/KickAssembler/KickAss.jar" to the Preferences.sublime-settings.

But same issue..

However, if I start it manually from Terminal with:

CLASSPATH=/Applications/KickAssembler/KickAss.jar /Applications/Sublime\ Text.app/Contents/MacOS/sublime_text

Then everything works as a charm.

Originally posted by @Swoffa in https://github.com/Swoffa/SublimeKickAssemblerC64/issues/67#issuecomment-942592437

Swoffa commented 3 years ago

My guess is that this is an encoding issue. Probably your CLASSPATH has some character (0xe2) that cannot be interpreted in the sublime+java program pipeline.

The reason why it works for: CLASSPATH=/Applications/KickAssembler/KickAss.jar /Applications/Sublime\ Text.app/Contents/MacOS/sublime_text ...is because here the whole class path is replaced, while in the package /Applications/KickAssembler/KickAss.jar is just temporarily appended to the existing machine CLASSPATH.

Can you send me your "machine" CLASSPATH so I can investigate @garlix42

garlix42 commented 3 years ago

Hmm. I don't believe I have a global CLASSPATH set and I am not sure if it's even possible to set on a Mac outside of a shell.

I have one set by using .zprofile (zsh) and it works fine to just launch a terminal and run sublime by hand.

But it doesn't seem launching it through Finder uses .zprofile/.profile.