BrettMayson / HEMTT

Build System for Arma 3
http://hemtt.dev/
GNU General Public License v2.0
115 stars 40 forks source link

Wiki folder missing folder cause crash #784

Open tuntematonjr opened 1 month ago

tuntematonjr commented 1 month ago

Tools (complete and add to the following information):

Description:

When using hemtt launch, an error occurs if certain files are deleted from the %LOCALAPPDATA%\acemod\arma3-wiki folder. This affects all mods, which were previously built successfully. Deleting the entire folder, however, forces HEMTT to redownload the necessary files, resolving the issue.

ERROR panicked at C:\Users\runneradmin/.cargo\registry\src\index.crates.io-6f17d22bba15001f\arma3-wiki-0.3.2\src/lib.rs:137:89:
called `Result::unwrap()` on an `Err` value: Os { code: 3, kind: NotFound, message: "Määritettyä polkua ei löydy." }

"Määritettyä polkua ei löydy." means "The specified path cannot be found."

Steps to reproduce:

  1. Attempt to use hemtt launch with any mod.
  2. Delete files from the commands folder inside %LOCALAPPDATA%\acemod\arma3-wiki.
  3. Attempt to use hemtt launch again.

Expected behavior: HEMTT should function normally or rebuild the missing files after deletion of specific files.

Logs: latest.log

Additional context: i tried to reinstall hemtt and it did not help.

tuntematonjr commented 1 month ago

I did some testing, and it seems that deleting the %LOCALAPPDATA%\acemod folder fixes the issue.

It appears that I can delete all the files from the commands folder (which just causes random build errors due to missing commands), but if I delete the folder itself, I get the error. It looks like everything except for the last-update.timestamp file can be deleted until hemtt redownloads everything.

BrettMayson commented 1 month ago

Why are you deleting files in there?

tuntematonjr commented 1 month ago

The log file mentioned something about the wiki, so I found that folder. I’ve also seen VS Code giving some errors, not sure if that’s related, but it was my only lead, so I gave it a shot to fix the issue.

I’m not sure why it broke in the first place, i touched it after I started getting errors.

BrettMayson commented 1 month ago

What was the problem you were trying to fix by deleting files in that folder?

tuntematonjr commented 1 month ago

I got the same error mentioned in the original post, and the log file is from the first time I encountered it. Deleting the entire folder fixed it, but I wanted to test what specifically caused the error.

It gave me the same error with all the commands hemtt run dev/build/launch/release/wiki

BrettMayson commented 1 month ago

Ah ok, it wasn't clear that you encountered the error before you deleted some of the files manually, which made this a very weird issue to report

tuntematonjr commented 1 month ago

Oh yeah, seems like I deleted that part when I edited the post. Sorry about that.