Open PythooonUser opened 3 years ago
Thank you for putting this together. It definitely gave me a place to start. For Linux, this is kind of a hack but I did something similar:
openjdk-8-jdk
via apt
or whatever package manager you use
openjdk-11-jdk
installed already, which won't work due to an LWJGL2 issue. You can either uninstall OpenJDK 11 and install OpenJDK 8, replace with another OpenJDK implementation, or leverage the Java 8 runtime packaged with Delver. I opted for the latter to avoid messing with other apps that may need Java 11. I didn't think it would work since it is just the JRE, not JDK, but it seems to. To do that I added the following in VSC's setting.json
:
"java.configuration.runtimes": [
{ "name": "JavaSE-1.8", "path": "/home/<insert your id here>/.steam/steam/steamapps/common/Delver/jre-linux/linux64/" },
{ "name": "JavaSE-11", "path": "/usr/lib/jvm/java-11-openjdk-amd64/" }
],
~\.steam...
didn't work for the path. Had to spell out what ~
was. Delver may be installed elsewhere depending upon how you set up Steam, OS, computer, etc. For the OpenJDK 11 version, I did whereis java
and then followed the symlinks to get the path above. Your path may be different if not using apt or your OS, computer, etc..project, .settings/, */.classpath, */.project, */.settings/
(comma separators won't work, needs to be separate lines) to .git/info/exclude
so Git would ignore them, however the org.eclipse.jdt.core.prefs
files in the subprojects needed to have their Java versions updated from 1.6
to 1.8
as VSC seems to use them. Those will show up as modified regardless of the exclude since they are already in the repo..vscode/launch.json
file to include the cwd
item as you had above for all 3 entries it created for me: Current File, DelvEdit and DungeoneerDesktop. I noticed that if I just added to the DelvEdit one then running it by right-clicking on DelvEdit in the Java Project section of Explorer worked, but the app would crash when hitting F5 inside a file (it was using the current file entry for that).
Summary
This is a quick summary of my current working setup of the Delver engine using VS Code on Windows.
Main caveats:
Steps
.gitignore
?)launch
config for the debugger to use the correct working directoryF5
and enjoy DelvEditAndroid
For developing on Android, install an appropriate SDK via Android Studio. Enable USB Debugging on your device and add the following launch config to VS Code.