wurstscript / WurstScript

Programming language and toolkit to create Warcraft III Maps
https://wurstlang.org
Apache License 2.0
226 stars 28 forks source link

Wurst extension command >runmap not work with project generated with git CLI, works with Wurst GUI #1002

Closed bertman12 closed 3 years ago

bertman12 commented 3 years ago

Describe the bug ProjectName(s): wurst-practice-project-1; wurst-test-projecy Generated a new wurst project with Git CLI using (grill generate myProjectName) I used "code ." command in the Git CLI to open a new vscode workspace in the project root directory. All project files created, but wurst.build file generated an empty object. vscode was unable to perform any of the runmap functions provided by the wurst extension.

Project Name: wurstPracticeProject2 I made a second wurst project but this time using the wurst GUI. Project was generated successfully. The wurst.build file was populated with properties about the project this time. The runmap command worked, compiling the hello.wurst file and creating a new window for the test map printing "Hello World".

Both instances the wurst extension was confirmed to be running by checking the dev console in vscode. I'm unsure the cause of this issue. I attempted manually populating the wurst.build object myself but it did not fix the error.

Windows 10 Wurst compiler build: 1273 Wurst Language Support vscode extension v0.5.10 Node.JS v14.15.4 npm v6.14.10 openjdk version "12.0.2" 2019-07-16 OpenJDK Runtime Environment (build 12.0.2+10) OpenJDK 64-Bit Server VM (build 12.0.2+10, mixed mode, sharing) wurst-extension-error

Language Server Logs Compiler Logs No vscode output generated.

Frotty commented 3 years ago

I used "code ." command in the Git CLI to open a new vscode workspace in the project root directory.

This sounds wrong. You should open the project root as a folder.

bertman12 commented 3 years ago

I tried doing that as well after using the grill generate command. It still won't allow the runmap command. I am just using the GUI now to create projects. Not sure why I'm having an issue using runmap after making a project with the grill generate command but if I find more information I will update this thread.

Frotty commented 3 years ago

I justed tested it and it works. Your issue is probably that you set the game path in the setup which grill generate does not. If it can not be detected you need to specify it in settings.json like "wurst.wc3path": "C:\\Games\\Warcraft III\\_retail_\\x86_64". Should probably add a filechooser for this.

bertman12 commented 3 years ago

Thank you, this does work. I have a question that is off this topic but do you happen to know what language JASS is based from?