Error creating and editing Haxe script on windows 10

#1

If I add a new armory trait with a script and try to edit it, the following error is thrown:

 Traceback (most recent call last):
  File "P:/tools/Armory/armsdk//armory/blender\arm\props_traits.py", line 265, in execute
arm.utils.kode_studio(hx_path)
  File "P:/tools/Armory/armsdk//armory/blender\arm\utils.py", line 571, in kode_studio
kode_studio_mklink_win(get_sdk_path())
  File "P:/tools/Armory/armsdk//armory/blender\arm\utils.py", line 532, in kode_studio_mklink_win
subprocess.check_call('mklink /J "%s" "%s"' % (source, target), shell=True)
  File "P:\tools\Armory\2.80\python\lib\subprocess.py", line 328, in check_call
raise CalledProcessError(retcode, cmd)
subprocess.CalledProcessError: Command 'mklink /J "P:/tools/Armory/armsdk//win32/resources/app/kodeExtensions/kha/Kha" "P:/tools/Armory/armsdk//Kha"' returned non-zero exit status 1.

location: <unknown location>:-1

Does anybody know what that means?

0 Likes

#2

Try this command manually in PowerShell

mklink /J “P:/tools/Armory/armsdk//win32/resources/app/kodeExtensions/kha/Kha” “P:/tools/Armory/armsdk//Kha”

What it outputs?

1 Like

#3

I have the same problem in the Armory on the blender 2.8

0 Likes

#4

The command try to create the symbolic link, and here apparently the file//folder is not available … do you have something like that in your explorer ?

0 Likes

#5

I figured it out.

Symbolic links don’t work on FAT volumes. Solution : Move the Armory dir onto a non FAT location.

Question is: Why does Armory use links? They are neither portable nor reliable. As we can see…

0 Likes

#6

@mpue do you know if we get the message error “device does not handle symbolic links” in this case ?

0 Likes

#7

… and, for whatever it’s worth, I would strongly recommend not using FAT anywhere, anytime, anymore.

Windows-10 has very solid implementations of file systems that are much more robust and secure.

0 Likes

#8

Why? There are still reasons to use FAT. Not every platform supports NTFS or journaling file systems. My digital mixer, several samplers and most of embedded platforms have no clue about NTFS, especially when it comes to changeable flash memory .

However I’m with you on PC platforms like Windows or Mac.

0 Likes