Hi everyone. Total noob here. I just downloaded Armory and when I create a new script and try to edit it, blender gives me the error below. Did I install something incorrectly? It seems like it can’t find KodeStudio, but weirdly enough it will open when I create and edit a canvas.
Thanks for any help!
Traceback (most recent call last):
File “/private/var/folders/5z/38lmn33d5ygf_2dgwkd6w1nc0000gp/T/AppTranslocation/FE988BC6-67F0-4E42-9753-067A64D69B42/d/Armory.app//armsdk//armory/blender/arm/props_traits.py”, line 252, in execute
File “/private/var/folders/5z/38lmn33d5ygf_2dgwkd6w1nc0000gp/T/AppTranslocation/FE988BC6-67F0-4E42-9753-067A64D69B42/d/Armory.app//armsdk//armory/blender/arm/utils.py”, line 570, in kode_studio
File “/private/var/folders/5z/38lmn33d5ygf_2dgwkd6w1nc0000gp/T/AppTranslocation/FE988BC6-67F0-4E42-9753-067A64D69B42/d/Armory.app//armsdk//armory/blender/arm/utils.py”, line 545, in kode_studio_mklink_mac
subprocess.check_call(‘ln -fs “%s” “%s”’ % (target, source), shell=True)
File “/private/var/folders/5z/38lmn33d5ygf_2dgwkd6w1nc0000gp/T/AppTranslocation/FE988BC6-67F0-4E42-9753-067A64D69B42/d/Armory.app/Contents/Resources/2.79/python/lib/python3.5/subprocess.py”, line 271, in check_call
raise CalledProcessError(retcode, cmd)
subprocess.CalledProcessError: Command ‘ln -fs “/private/var/folders/5z/38lmn33d5ygf_2dgwkd6w1nc0000gp/T/AppTranslocation/FE988BC6-67F0-4E42-9753-067A64D69B42/d/Armory.app//armsdk//Kha” “/private/var/folders/5z/38lmn33d5ygf_2dgwkd6w1nc0000gp/T/AppTranslocation/FE988BC6-67F0-4E42-9753-067A64D69B42/d/Armory.app//armsdk//KodeStudio.app/Contents/Resources/app/kodeExtensions/kha/Kha”’ returned non-zero exit status 1
There are some commit about changing the way armory open kode studio, i think this is the reason, I can’t open Kode Studio too, when i try to open it(from blender) it will open other IDE.
Look like we both are using mac, so it might only be mac problem, maybe you can file github issue.
Does anybody with windows and linux have this problem?
EDIT: It not bug, when you download armory from itch.io, you will get KodeStudio with it, what happened is that i didn’t download armory from itch rather clone Single-clone armsdk which don’t have Kode Studio, so i was actually missing it.
Since you are on MacOS:
- Right-click on
blender.app and select
Show Package contents
- Than go to
armsdk folder and check if there is
KodeStudio.app(has big K as icon)
Another total noob here with the same problem. I downloaded Armory from the official page (https://armory.itch.io/armory3d?download) - did not help. I’m on Linux.
How to set up the code editor is written on the setup page(https://github.com/armory3d/armory/wiki/setup).
Had same issue in macOS. Followed instructions Sandy mentioned, but it was not working for me.
- Set Armory’s Preferences for Code Editor to System Default
- In macOS, set .hx files to open by default in Kode Studio—
—for step 2, I first created a .hx file in Armory Traits by clicking the +, select Haxe, click “ok”, then click “New Script”, and named it in the window that pops up. I then searched my computer for this .hx file. Selected the .hx file in the finder, typed Command-I (opens file info), and under “Open With” selected Kode Studio, then in this same info window I chose “Change All …” so that all .hx files will automatically open with Kode Studio.
I can now click “Edit Script” in Armory Traits and Kode Studio opens up.
Downloaded Kode Studio separately since it was not installed with the Armory version I downloaded from itch.io.
Armory3d version 2019.12.0