ERROR Unable to create link - better error message
ilbinek opened this issue · comments
When HEMTT fails to create a symlink to the arma folder, a generic error is shown.
Unable to create link: Nelze vytvo�it soubor, kter� ji� existuje.
(pardon my Czech).
This was caused by there already being a %pathtoarma%/prefix/tag
symlink. Deleting this symlink manually fixes the error, but it's required to look into HEMTT logs to find out what happened. A better error message would be nice.
Logs
2024-02-06T14:35:12.328920Z TRACE ThreadId(01) junction link "C:\\Program Files (x86)\\Steam\\steamapps\\common\\Arma 3\\x\\tbd" => "E:\\arma\\tbd_addon\\.hemttout\\dev"
2024-02-06T14:35:12.336029Z TRACE ThreadId(01) directory symbolic link "C:\\Program Files (x86)\\Steam\\steamapps\\common\\Arma 3\\x\\tbd" => "E:\\arma\\tbd_addon\\.hemttout\\dev"
2024-02-06T14:35:12.341714Z ERROR ThreadId(01) Unable to create link: Nelze vytvo�it soubor, kter� ji� existuje.
did the link already exist from a using a previous tool, did you move the source files somewhere else, or did it just pop up while using hemtt as normal?
Can't say for sure, but my guess is that it was created by hemtt from different project with same prefix
There's already a check to see if the link exists, this one may just need to wait until someone can reproduce it