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

Full path to output directory during "run command" #64

Closed
jcook793 opened this issue Feb 23, 2021 · 5 comments · Fixed by #65
Closed

Full path to output directory during "run command" #64

jcook793 opened this issue Feb 23, 2021 · 5 comments · Fixed by #65

Comments

@jcook793
Copy link

The latest version of VICE for macOS seems to have a bug loading .prg files from relative paths. That is, this works:

x64sc /Users/jcook/personal/test-kickassembler/bin/GoatPowerExample.prg

but using a relative path doesn't load anything:

x64sc bin/GoatPowerExample.prg

I attempted to work around this problem by changing kickass_run_command_x64, but I can't seem to figure out any available environment variables for the fully-qualified path to the current project directory or the output directory. Are there any available during the run command that could help with this? Thank you!

@Swoffa
Copy link
Owner

Swoffa commented Feb 23, 2021

Thanks @jcook793 for creating an issue!
I also noticed this, but had no time to investigate. Good to get confirmation. Will be fixed.

@Swoffa
Copy link
Owner

Swoffa commented Feb 23, 2021

@jcook793 as a workaround, I think you can use this for kickass_run_command_x64:

${kickass_run_path}\" -logfile \"${file_path}/${kickass_output_path}/${build_file_base_name}_ViceLog.txt\" -moncommands \"${file_path}/${kickass_output_path}/${build_file_base_name}.vs\" ${kickass_run_args} \"${file_path}/${kickass_output_path}/${start_filename}

Like this in the settings json:

"kickass_run_command_x64": "\"${kickass_run_path}\" -logfile \"${file_path}/${kickass_output_path}/${build_file_base_name}_ViceLog.txt\" -moncommands \"${file_path}/${kickass_output_path}/${build_file_base_name}.vs\" ${kickass_run_args} \"${file_path}/${kickass_output_path}/${start_filename}\"",

It might not work as expected when using build annotations startup-file and file-to-run.

@Swoffa
Copy link
Owner

Swoffa commented Feb 23, 2021

...and here is a workaround for the debug command:

"kickass_debug_command_x64": "\"${kickass_debug_path}\" -logfile \"${file_path}/${kickass_output_path}/${build_file_base_name}_ViceLog.txt\" -moncommands \"${file_path}/${kickass_output_path}/${build_file_base_name}_MonCommands.mon\" ${kickass_debug_args} \"${file_path}/${kickass_output_path}/${start_filename}\""

@jcook793
Copy link
Author

Ahhhhh - ${file_path} is the secret sauce, that worked great! Thank you so much for the quick follow-up and for this great Sublime Text package!

@Swoffa Swoffa linked a pull request Mar 8, 2021 that will close this issue
@Swoffa
Copy link
Owner

Swoffa commented Mar 8, 2021

@jcook793 A fix has now been released, in version 1.3.4. \o/

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants