question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Cannot runmap from VSCode, war3map.j not generated

See original GitHub issue

Describe the bug I can’t runmap the map from VSCode. It’s just saying this, even though the Jass parser from World Editor is ok. image

More Details I have existing w3x map project with some GUI triggers. It used to be working when I grill generate new project on my first laptop (and then replace the template map with my own map)

The problem arises when I pushed changes to github repo, and then I changed into new PC and checked out the repo. The grill install is working, but then I kinda expect the runmap from VSCode will automatically generate the war3map.j and then starts the game. What I got instead is errors above and no war3map.j extracted.

Compiler Log: https://pastebin.com/gKZG1SQd

Language Server Log: https://pastebin.com/GPDjTMJ8

Repo: https://github.com/Axection/MiniWars

Additional Info: I tried build my map and it’s also error:

MiniWars on  master is 📦 v1.0.0 via  v14.17.2 took 4s 
❯ grill build .\MiniWars.w3x
Forwarded run arguments: ["build", ".\\MiniWars.w3x"]
? Grill warming up..
? Ready. Version: <1.3.4.1-jenkins-WurstSetup-155>
? Building project..
compilation finished (errors: 29, warnings: 0)
Error in File Banish.wurst line 3:
 The import 'ClosureEvents' could not be resolved.
Available packages:
Error in File Banish.wurst line 4:
 The import 'ClosureForGroups' could not be resolved.
Available packages:
Error in File Banish.wurst line 5:
 The import 'InstantDummyCaster' could not be resolved.
Available packages:
Error in File Banish.wurst line 1:
 The standard library could not be imported.
Error in File Distrust.wurst line 3:
 The import 'ClosureEvents' could not be resolved.
Available packages:
Error in File Distrust.wurst line 4:
 The import 'ClosureForGroups' could not be resolved.
Available packages:
Error in File Distrust.wurst line 5:
 The import 'ClosureTimers' could not be resolved.
Available packages:
Error in File Distrust.wurst line 1:
 The standard library could not be imported.
Error in File Earthcrack.wurst line 3:
 The import 'ClosureEvents' could not be resolved.
Available packages:
Error in File RaceSpawner.wurst line 1:
 The standard library could not be imported.
? There was an issue with the wurst build process.

Issue Analytics

  • State:closed
  • Created 2 years ago
  • Comments:5 (2 by maintainers)

github_iconTop GitHub Comments

1reaction
peqcommented, Aug 31, 2021

Do I need to extract war3map.j manually if I need to reference udg_ vars in fresh projects or what?

If I remember correctly, it should try to extract the war3map.j for you. You can check the log files and should see the message extracting mapscript. Maybe there is some more information there on what goes wrong.

0reactions
akasectioncommented, Aug 23, 2021

Ok I already fixed the stdlib, but the error is still there. I already tried re-generate the project and grill build, but now the error is all global variables udg_vars are not found.

❯ grill build .\MiniWars.w3x
Forwarded run arguments: ["build", ".\\MiniWars.w3x"]
? Grill warming up..
? Ready. Version: <1.3.4.1-jenkins-WurstSetup-155>
? Building project..
compilation finished (errors: 11, warnings: 0)
Error in File CameraPanStart.wurst line 3:      
 Could not find variable udg_humanLoc.
Error in File CameraPanStart.wurst line 4:      
 Could not find variable udg_orcLoc.
Error in File GenericHumanSpawner.wurst line 10:
 Could not find variable udg_humanLoc.
Error in File GenericHumanSpawner.wurst line 10:
 Could not find variable udg_humanLoc.
Error in File GenericHumanSpawner.wurst line 11:
 Could not find variable udg_orcLoc.
Error in File GenericHumanSpawner.wurst line 11:
 Could not find variable udg_orcLoc.
Error in File GenericOrcSpawner.wurst line 10:
 Could not find variable udg_orcLoc.
Error in File GenericOrcSpawner.wurst line 10:
 Could not find variable udg_orcLoc.
Error in File GenericOrcSpawner.wurst line 11:
 Could not find variable udg_humanLoc.
Error in File GenericOrcSpawner.wurst line 11:
 Could not find variable udg_humanLoc.
Error in File RaceSpawner.wurst line 5:
 Could not find variable udg_foodMax.
? There was an issue with the wurst build process.

Do I need to extract war3map.j manually if I need to reference udg_ vars in fresh projects or what?

Read more comments on GitHub >

github_iconTop Results From Across the Web

[HELP] Cannot find war3map.j when i open with MPQmaster
I always require a MPQrecover to make the war3map.j appear, ... How would you use MPQRecovery to cheat maps lul i dont get...
Read more >
Compiling vJass and Wurst using VSCode - The Hive Workshop
Extract and compile our vJass map code into a single war3map.j file ... Launching everything manually once or twice is not a problem....
Read more >
Wurst Run Map 1.26 · Issue #865 - GitHub
Wurst Run Map and Wurst run JHCR doesnt run map after latest updates. Instead just drop you into wc3 main menu. Tested on...
Read more >
VS Code: "Breakpoint ignored because generated code not ...
I solved my problem by changing .vscode/launch.json so that "sourceMaps": true attribute under the Launch configuration was set (it starts ...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found