Funkin icon indicating copy to clipboard operation
Funkin copied to clipboard

[COMPILING] Installation of funkin.vis fails with "Execution error"

Open EliteMasterEric opened this issue 1 year ago • 7 comments

When attempting to build the project on Windows, some users experience the following error:

image

PS C:\Users\godee\Desktop\Funkin> hmm reinstall --force funkin.vis
reinstalling git library: funkin.vis from https://github.com/FunkinCrew/funkVis (ref: Some(98c9db09f0bbfedfe67a84538a5814aaef80bdea), dir: None)
haxelib --never remove funkin.vis
Error: Library funkin.vis is not installed
Warning: command "haxelib --never remove funkin.vis" failed with status: 1 in dir: C:\Users\godee\Desktop\Funkin/
haxelib --never git funkin.vis https://github.com/FunkinCrew/funkVis 98c9db09f0bbfedfe67a84538a5814aaef80bdea
Installing funkin.vis from https://github.com/FunkinCrew/funkVis branch: 98c9db09f0bbfedfe67a84538a5814aaef80bdea
Error: std@sys_remove_dir
Execution error: command "haxelib --never git funkin.vis https://github.com/FunkinCrew/funkVis 98c9db09f0bbfedfe67a84538a5814aaef80bdea" failed with status: 1 in cwd: C:\Users\godee\Desktop\Funkin/
Use "hmm help" to see usage
PS C:\Users\godee\Desktop\Funkin>

This issue is related to the game trying to download the code for Nene's visualizer (which is in a separate dependency library) and failing to do so.

EliteMasterEric avatar May 08 '24 01:05 EliteMasterEric

So is there a way to fix this error ?

TheJustAnto avatar May 08 '24 01:05 TheJustAnto

you could try to manually download the library through the hmm files GitHub link for it. and add it to the haxelib folder manually. at least till this issue gets solved

Eviethecoder avatar May 08 '24 02:05 Eviethecoder

haxelib remove funkin.vis then haxelib git funkin.vis https://github.com/FunkinCrew/funkVis

Gato-chistoso avatar May 08 '24 02:05 Gato-chistoso

Getting the same error image Original command: hmm install

Download complete: 295.46KB in 0s (3110KB/s)
Installing format...
  Current version is now 3.5.0
Done
haxelib --never git funkin.vis https://github.com/FunkinCrew/funkVis 98c9db09f0bbfedfe67a84538a5814aaef80bdea 
Installing funkin.vis from https://github.com/FunkinCrew/funkVis branch: 98c9db09f0bbfedfe67a84538a5814aaef80bdea
Error: std@sys_remove_dir
Execution error: command "haxelib --never git funkin.vis https://github.com/FunkinCrew/funkVis 98c9db09f0bbfedfe67a84538a5814aaef80bdea" failed with status: 1 in cwd: D:\raf\Documents\.Code\funkin/
Use "hmm help" to see usage

Re-running hmm install causes it to skip over funkin.vis and installs all the other modules without error. Attempting to compile causes this error:

source/funkin/audio/visualize/ABotVis.hx:11: characters 8-39

 11 | import funkin.vis.dsp.SpectralAnalyzer;
    |        ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
    | Type not found : funkin.vis.dsp.SpectralAnalyzer

Following @Gato-chistoso's comment allows me to compile with lime test html5

prplnorangesoda avatar May 08 '24 08:05 prplnorangesoda

I think I might have figured it out, the issue seems to be the commit that hmm tries to download/clone from.
Replacing the commit hash ref to the one from the latest commit and running hmm reinstall --force funkin.vis was successful.

NotHyper-474 avatar May 09 '24 13:05 NotHyper-474

Curiously 98c9db09f0bbfedfe67a84538a5814aaef80bdea leads to this commit with this warning: image

And there's another commit which appears to be the exact same but with a different hash and no warning: d7f88b765a9e4ef51a1628d53354abfdea8b928d

NotHyper-474 avatar May 09 '24 15:05 NotHyper-474

This issue is fixed in develop branch. For anyone still having this problem switch to that branch and run hmm reinstall --force funkin.vis

NotHyper-474 avatar May 09 '24 16:05 NotHyper-474

This should be fixed in v0.3.3.

EliteMasterEric avatar May 18 '24 18:05 EliteMasterEric