Java: Difference between revisions
→VSCode + Language Support for Java (TM) by Red Hat extension: Add alternate solution for using Language Support for Java |
→VSCode + Language Support for Java (TM) by Red Hat extension: add highlights to the lines being described |
||
| Line 24: | Line 24: | ||
== VSCode + Language Support for Java (TM) by Red Hat extension == | == VSCode + Language Support for Java (TM) by Red Hat extension == | ||
Unfortunately the extension contains and uses a version of the JRE which makes use of dynamically loaded libraries, which nix cannot accomodate out-of-the-box. Fortunately there's a simple solution in the use of [https://github.com/Mic92/nix-ld nix-ld]. Here's a simple flake.nix to get you started (I'll focus on the devShell part for brevity):<syntaxhighlight lang="nix"> | Unfortunately the extension contains and uses a version of the JRE which makes use of dynamically loaded libraries, which nix cannot accomodate out-of-the-box. Fortunately there's a simple solution in the use of [https://github.com/Mic92/nix-ld nix-ld]. Here's a simple flake.nix to get you started (I'll focus on the devShell part for brevity):<syntaxhighlight lang="nix" line highlight="6,10"> | ||
devShell = pkgs.mkShell { | devShell = pkgs.mkShell { | ||
buildInputs = [ | buildInputs = [ | ||