chunkypixel / atari-dev-studio

Homebrew game creation for the Atari 8-bit consoles (VS Code Extension)
http://atariage.com/forums/topic/290365-atari-dev-studio-for-homebrew-development-release/
GNU General Public License v3.0
76 stars 8 forks source link

Permission denied when trying to compile #1

Closed mengstr closed 5 years ago

mengstr commented 5 years ago

Using VC version 1.33.1 on Mojave 10.14.5 I get this when I try to compile some code (by pressing the "Compile source code" button at the bottom status line)

Starting build of fluuw.a... /bin/sh: /Users/mats/.vscode/extensions/chunkypixel.atari-dev-studio-0.1.0/out/bin/compilers/dasm/dasm.Darwin.x86: Permission denied

The issue persists even after a restart of code (tried that since older versions of code required a restart after installation of extentions)

mengstr commented 5 years ago

Easy fix for the time being...

chmod a+x ~/.vscode/extensions/chunkypixel.atari-dev-studio-0.1.0/out/bin/compilers/dasm/dasm.Darwin.x86

chunkypixel commented 5 years ago

Hey thanks for the report! I have added some chmod permission checks which I thought should have covered this off (does on Linux which I have checked myself). I'll check that out very soon and get a fix done. Thanks again.

chunkypixel commented 5 years ago

Reviewed in build v.0.1.1 I've reviewed the code and it should be working (it may not follow the same permissions process as Linux though this code has previously worked in my other batari Basic extension for another mac user). I've updated the notification to also show in the Compile log instead of just the Console log (which is available via the Developer Tools). I may need to access my brothers mac to fix this one...

mengstr commented 5 years ago

I can remove the extension and then re-install and see what happens. Are there any log that shows the commands/steps being executed during the installation?

chunkypixel commented 5 years ago

None that I am aware of unfortunately or can find. Even using the extension I couldn't find any logs so I output stuff to the console which you can see via the Help -> Developer Tools (select the console tab). Ive added the actual error now for permission to the compiler output.

mengstr commented 5 years ago

I'll try it when I get back home later tonight...

mengstr commented 5 years ago

You've got an extra '/dasm.Darwin.x86' on the chmod line..

failed to set chmod permissions: ENOTDIR: not a directory, chmod '/Users/mats/.vscode/extensions/chunkypixel.atari-dev-studio-0.1.1/out/bin/compilers/dasm/dasm.Darwin.x86/dasm.Darwin.x86'
Starting build of fluuw.a...
/bin/sh: /Users/mats/.vscode/extensions/chunkypixel.atari-dev-studio-0.1.1/out/bin/compilers/dasm/dasm.Darwin.x86: Permission denied
chunkypixel commented 5 years ago

Fixed in build v0.1.2 Sorry I had refactored this code which duplicated the filename.