Open idiosyncrasy00 opened 2 years ago
It is not intended to use yarn init
to create a new package.json for building the project, which is also possibly the cause for the Java issue.
Instead, simply open the root folder in VS Code and execute the three commands in the terminal to build the extension (make sure that Java home is properly set in VS Code). Below are the build instructions again, with additional comments:
# start the gradle build for the language server and copy the resulting .jar file and start scripts to the extension
language-server/gradlew -p language-server/ build
# build and bundle the webview package into a single .js file for the extension
yarn --cwd webview
# finally, build the extension
yarn --cwd extension
After executing the commands, the structure in the extension/
folder should look like in the image below and the resulting extension can be launched in VS Code.
Description
Hello, So I've tried to run the first command in the description (language-server/gradlew -p language-server/ build), however the instruction was vague to me, so I tried this way:
Current Behavior
No response
Expected Behavior
No response
Steps to Reproduce
Environment
Additional Information
No response