Skip to content

VersionExtractionException #1191

@DavidPalmgren

Description

@DavidPalmgren

Describe the bug
Freshly installed the vscode extension following the guide.
All good untill i try to build ExampleMap.w3x, where i get a bug as detailed below. Wondering if it's pointing to the right executable or not i have no clue.

Freshly installed so im assuming newest version
wc3 up to date 1.36+

Any help would be greatly appreciated thank you

PS S:\WurstMaps\abc> grill build ExampleMap.w3x
Picked up _JAVA_OPTIONS: -Xmx512M
🔥 Grill 1.4.0.0-24ae82e
verifyInstallation: detectedCompilerJar=C:\Users\David\.wurst\wurst-compiler\wurstscript.jar exists=true
Found installation at Q:\Users\David\.wurst\wurst-compiler\wurstscript.jar
Picked up _JAVA_OPTIONS: -Xmx512M

🔨 Building project...
Using cached _build/common.j for v1.36.
Using cached _build/blizzard.j for v1.36.
Picked up _JAVA_OPTIONS: -Xmx512M
Warning: Ignoring unknown wc3Patch in wurst.build: v1.36
net.moonlightflower.wc3libs.misc.exeversion.VersionExtractionException: Failed to extract executable version data via 'PEHEADER' for file: D:\Warcraft III\Warcraft III.exe
        at net.moonlightflower.wc3libs.misc.exeversion.ExeVersionPe.getVersion(ExeVersionPe.java:31)
        at net.moonlightflower.wc3libs.bin.GameExe.getVersionString(GameExe.java:22)
        at net.moonlightflower.wc3libs.bin.GameExe.getVersion(GameExe.java:52)
        at net.moonlightflower.wc3libs.port.win.WinGameVersionFinder.find(WinGameVersionFinder.java:27)
        at net.moonlightflower.wc3libs.port.win.WinGameVersionFinder.find(WinGameVersionFinder.java:9)
        at net.moonlightflower.wc3libs.port.Finder.get(Finder.java:25)
        at net.moonlightflower.wc3libs.port.StdGameVersionFinder.find(StdGameVersionFinder.java:38)
        at net.moonlightflower.wc3libs.port.StdGameVersionFinder.find(StdGameVersionFinder.java:12)
        at net.moonlightflower.wc3libs.port.Finder.get(Finder.java:25)
        at de.peeeq.wurstio.utils.W3InstallationData.discoverVersion(W3InstallationData.java:147)
        at de.peeeq.wurstio.utils.W3InstallationData.<init>(W3InstallationData.java:52)
        at de.peeeq.wurstio.languageserver.requests.MapRequest.getBestW3InstallationData(MapRequest.java:946)
        at de.peeeq.wurstio.languageserver.requests.MapRequest.<init>(MapRequest.java:110)
        at de.peeeq.wurstio.languageserver.requests.CliBuildMap.<init>(CliBuildMap.java:28)
        at de.peeeq.wurstio.Main.main(Main.java:133)
Caused by: java.lang.NullPointerException
        at dorkbox.peParser.PE$Companion.getVersion(PE.kt:56)
        at net.moonlightflower.wc3libs.misc.exeversion.ExeVersionPe.getVersion(ExeVersionPe.java:24)
        ... 14 more
Warning: Wurst compiler failed to determine game version e:net.moonlightflower.wc3libs.port.NotFoundException
Map not cached yet, extracting script
Warning: Ignoring unknown wc3Patch in wurst.build: v1.36
compilation finished (errors: 0, warnings: 0)
Build succeeded. Output file: <S:\WurstMaps\abc\_build\abc.w3x>
compilation finished (errors: 0, warnings: 0)
✅ Map built.
PS S:\WurstMaps\abc> 

https://gist.github.com/DavidPalmgren/6f073608c9879749c15c6b54b2d9a840

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions