urbit / hoon-language-server

Language Server for Hoon. Middleware to translate between the Language Server Protocol and your Urbit.
MIT License
36 stars 10 forks source link

No longer builds under Nix #30

Open istathar opened 2 years ago

istathar commented 2 years ago

The instructions to build this specify running

$ nix-build -E 'with import <nixpkgs> {}; callPackage ./default.nix {}'

in this repo, however, this crashes with:

...
building

> @urbit/hoon-language-server@0.1.2 build
> tsc

src/server.ts:8:24 - error TS1141: String literal expected.

8 import { tmpdir } from os;
                         ~~

The change adding this line was in fd0a3bbb56f266a492b436ba1263e24eb43d900c via #28, the most recent contribution. Reverting to the commit before this was merged allows the build to complete successfully.

hardkorebob commented 1 year ago
> @urbit/hoon-language-server@0.1.2 build
> tsc

src/server.ts:8:24 - error TS1141: String literal expected.

8 import { tmpdir } from os;
                         ~~

Found 1 error.

error: builder for '/nix/store/wvfyycngsmzmzp8m4wbf1g3f51jzmzp9-hoon-language-server-0.1.2.drv' failed with exit code 2

       .hddddddddddddddddddddddh.          bob@alpinedell.local
      :dddddddddddddddddddddddddd:         --------------------
     /dddddddddddddddddddddddddddd/        OS: Alpine Linux v3.18 x86_64
    +dddddddddddddddddddddddddddddd+       Host: OptiPlex 9010 01
  `sdddddddddddddddddddddddddddddddds`     Kernel: 6.1.62-0-lts
 `ydddddddddddd++hdddddddddddddddddddy`    Uptime: 1 day, 13 hours, 20 mins
.hddddddddddd+`  `+ddddh:-sdddddddddddh.   Packages: 341 (apk)
hdddddddddd+`      `+y:    .sddddddddddh   Shell: ash
ddddddddh+`   `//`   `.`     -sddddddddd   Resolution: 1920x1080
ddddddh+`   `/hddh/`   `:s-    -sddddddd   WM: dwm
ddddh+`   `/+/dddddh/`   `+s-    -sddddd   Terminal: st
ddd+`   `/o` :dddddddh/`   `oy-    .yddd   CPU: Intel i7-3770S (8) @ 3.900GHz
hdddyo+ohddyosdddddddddho+oydddy++ohdddh   Memory: 2184MiB / 19895MiB
.hddddddddddddddddddddddddddddddddddddh.
 `yddddddddddddddddddddddddddddddddddy`
  `sdddddddddddddddddddddddddddddddds`
    +dddddddddddddddddddddddddddddd+
     /dddddddddddddddddddddddddddd/
      :dddddddddddddddddddddddddd:
       .hddddddddddddddddddddddh.