nim-lang/langserver

Can not open /usr/compiler/pathutils

kadircancetin opened this issue · 4 comments

Hello, I am new to nim and want to start installing LSP, but I can't. For example, nimble install jester works fine as expected, but nimlangserver is not.

It might be related: pietroppeter/nimib#62
Also, nimlsp gives the same exception.

> cat /etc/lsb-release

DISTRIB_ID=ManjaroLinux
DISTRIB_RELEASE=22.0.0
DISTRIB_CODENAME=Sikaris
DISTRIB_DESCRIPTION="Manjaro Linux"
> sudo pacman -S nim
> nim --version
Nim Compiler Version 1.6.6 [Linux: amd64]
Compiled at 2022-05-22
Copyright (c) 2006-2021 by Andreas Rumpf

active boot switches: -d:release
nimble --version
nimble v0.13.1 compiled at 2022-05-22 02:17:13
git hash: d13f3b8ce288b4dc8c34c219a4e050aaeaf43fc9
> nimble install nimlangserver

Downloading https://github.com/nim-lang/langserver using git
  Verifying dependencies for nimlangserver@0.1.0
      Info: Dependency on https://github.com/yyoncho/asynctools@#non-blocking already satisfied
  Verifying dependencies for asynctools@#non-blocking
      Info: Dependency on https://github.com/yyoncho/nim-json-rpc@#notif-changes already satisfied
  Verifying dependencies for json_rpc@#notif-changes
      Info: Dependency on stew@any version already satisfied
  Verifying dependencies for stew@0.1.0
      Info: Dependency on unittest2@any version already satisfied
  Verifying dependencies for unittest2@0.0.4
      Info: Dependency on nimcrypto@any version already satisfied
  Verifying dependencies for nimcrypto@0.5.4
      Info: Dependency on stint@any version already satisfied
  Verifying dependencies for stint@0.0.1
      Info: Dependency on stew@any version already satisfied
  Verifying dependencies for stew@0.1.0
      Info: Dependency on unittest2@any version already satisfied
  Verifying dependencies for unittest2@0.0.4
      Info: Dependency on chronos@any version already satisfied
  Verifying dependencies for chronos@3.0.11
      Info: Dependency on stew@any version already satisfied
  Verifying dependencies for stew@0.1.0
      Info: Dependency on unittest2@any version already satisfied
  Verifying dependencies for unittest2@0.0.4
      Info: Dependency on bearssl@any version already satisfied
  Verifying dependencies for bearssl@0.1.5
      Info: Dependency on unittest2@any version already satisfied
  Verifying dependencies for unittest2@0.0.4
      Info: Dependency on httputils@any version already satisfied
  Verifying dependencies for httputils@0.3.0
      Info: Dependency on stew@any version already satisfied
  Verifying dependencies for stew@0.1.0
      Info: Dependency on unittest2@any version already satisfied
  Verifying dependencies for unittest2@0.0.4
      Info: Dependency on unittest2@any version already satisfied
  Verifying dependencies for unittest2@0.0.4
      Info: Dependency on unittest2@any version already satisfied
  Verifying dependencies for unittest2@0.0.4
      Info: Dependency on httputils@any version already satisfied
  Verifying dependencies for httputils@0.3.0
      Info: Dependency on stew@any version already satisfied
  Verifying dependencies for stew@0.1.0
      Info: Dependency on unittest2@any version already satisfied
  Verifying dependencies for unittest2@0.0.4
      Info: Dependency on unittest2@any version already satisfied
  Verifying dependencies for unittest2@0.0.4
      Info: Dependency on chronicles@any version already satisfied
  Verifying dependencies for chronicles@0.10.3
      Info: Dependency on testutils@any version already satisfied
  Verifying dependencies for testutils@0.5.0
      Info: Dependency on unittest2@any version already satisfied
  Verifying dependencies for unittest2@0.0.4
      Info: Dependency on json_serialization@any version already satisfied
  Verifying dependencies for json_serialization@0.1.0
      Info: Dependency on serialization@any version already satisfied
  Verifying dependencies for serialization@0.1.0
      Info: Dependency on faststreams@any version already satisfied
  Verifying dependencies for faststreams@0.3.0
      Info: Dependency on stew@any version already satisfied
  Verifying dependencies for stew@0.1.0
      Info: Dependency on unittest2@any version already satisfied
  Verifying dependencies for unittest2@0.0.4
      Info: Dependency on chronos@any version already satisfied
  Verifying dependencies for chronos@3.0.11
      Info: Dependency on stew@any version already satisfied
  Verifying dependencies for stew@0.1.0
      Info: Dependency on unittest2@any version already satisfied
  Verifying dependencies for unittest2@0.0.4
      Info: Dependency on bearssl@any version already satisfied
  Verifying dependencies for bearssl@0.1.5
      Info: Dependency on unittest2@any version already satisfied
  Verifying dependencies for unittest2@0.0.4
      Info: Dependency on httputils@any version already satisfied
  Verifying dependencies for httputils@0.3.0
      Info: Dependency on stew@any version already satisfied
  Verifying dependencies for stew@0.1.0
      Info: Dependency on unittest2@any version already satisfied
  Verifying dependencies for unittest2@0.0.4
      Info: Dependency on unittest2@any version already satisfied
  Verifying dependencies for unittest2@0.0.4
      Info: Dependency on unittest2@any version already satisfied
  Verifying dependencies for unittest2@0.0.4
      Info: Dependency on unittest2@any version already satisfied
  Verifying dependencies for unittest2@0.0.4
      Info: Dependency on unittest2@any version already satisfied
  Verifying dependencies for unittest2@0.0.4
      Info: Dependency on stew@any version already satisfied
  Verifying dependencies for stew@0.1.0
      Info: Dependency on unittest2@any version already satisfied
  Verifying dependencies for unittest2@0.0.4
      Info: Dependency on stew@any version already satisfied
  Verifying dependencies for stew@0.1.0
      Info: Dependency on unittest2@any version already satisfied
  Verifying dependencies for unittest2@0.0.4
      Info: Dependency on https://github.com/status-im/news@#status already satisfied
  Verifying dependencies for news@#status
      Info: Dependency on websock@any version already satisfied
  Verifying dependencies for websock@0.1.0
      Info: Dependency on chronos@>= 3.0.0 already satisfied
  Verifying dependencies for chronos@3.0.11
      Info: Dependency on stew@any version already satisfied
  Verifying dependencies for stew@0.1.0
      Info: Dependency on unittest2@any version already satisfied
  Verifying dependencies for unittest2@0.0.4
      Info: Dependency on bearssl@any version already satisfied
  Verifying dependencies for bearssl@0.1.5
      Info: Dependency on unittest2@any version already satisfied
  Verifying dependencies for unittest2@0.0.4
      Info: Dependency on httputils@any version already satisfied
  Verifying dependencies for httputils@0.3.0
      Info: Dependency on stew@any version already satisfied
  Verifying dependencies for stew@0.1.0
      Info: Dependency on unittest2@any version already satisfied
  Verifying dependencies for unittest2@0.0.4
      Info: Dependency on unittest2@any version already satisfied
  Verifying dependencies for unittest2@0.0.4
      Info: Dependency on unittest2@any version already satisfied
  Verifying dependencies for unittest2@0.0.4
      Info: Dependency on httputils@>= 0.2.0 already satisfied
  Verifying dependencies for httputils@0.3.0
      Info: Dependency on stew@any version already satisfied
  Verifying dependencies for stew@0.1.0
      Info: Dependency on unittest2@any version already satisfied
  Verifying dependencies for unittest2@0.0.4
      Info: Dependency on unittest2@any version already satisfied
  Verifying dependencies for unittest2@0.0.4
      Info: Dependency on chronicles@>= 0.10.2 already satisfied
  Verifying dependencies for chronicles@0.10.3
      Info: Dependency on testutils@any version already satisfied
  Verifying dependencies for testutils@0.5.0
      Info: Dependency on unittest2@any version already satisfied
  Verifying dependencies for unittest2@0.0.4
      Info: Dependency on json_serialization@any version already satisfied
  Verifying dependencies for json_serialization@0.1.0
      Info: Dependency on serialization@any version already satisfied
  Verifying dependencies for serialization@0.1.0
      Info: Dependency on faststreams@any version already satisfied
  Verifying dependencies for faststreams@0.3.0
      Info: Dependency on stew@any version already satisfied
  Verifying dependencies for stew@0.1.0
      Info: Dependency on unittest2@any version already satisfied
  Verifying dependencies for unittest2@0.0.4
      Info: Dependency on chronos@any version already satisfied
  Verifying dependencies for chronos@3.0.11
      Info: Dependency on stew@any version already satisfied
  Verifying dependencies for stew@0.1.0
      Info: Dependency on unittest2@any version already satisfied
  Verifying dependencies for unittest2@0.0.4
      Info: Dependency on bearssl@any version already satisfied
  Verifying dependencies for bearssl@0.1.5
      Info: Dependency on unittest2@any version already satisfied
  Verifying dependencies for unittest2@0.0.4
      Info: Dependency on httputils@any version already satisfied
  Verifying dependencies for httputils@0.3.0
      Info: Dependency on stew@any version already satisfied
  Verifying dependencies for stew@0.1.0
      Info: Dependency on unittest2@any version already satisfied
  Verifying dependencies for unittest2@0.0.4
      Info: Dependency on unittest2@any version already satisfied
  Verifying dependencies for unittest2@0.0.4
      Info: Dependency on unittest2@any version already satisfied
  Verifying dependencies for unittest2@0.0.4
      Info: Dependency on unittest2@any version already satisfied
  Verifying dependencies for unittest2@0.0.4
      Info: Dependency on unittest2@any version already satisfied
  Verifying dependencies for unittest2@0.0.4
      Info: Dependency on stew@any version already satisfied
  Verifying dependencies for stew@0.1.0
      Info: Dependency on unittest2@any version already satisfied
  Verifying dependencies for unittest2@0.0.4
      Info: Dependency on stew@any version already satisfied
  Verifying dependencies for stew@0.1.0
      Info: Dependency on unittest2@any version already satisfied
  Verifying dependencies for unittest2@0.0.4
      Info: Dependency on stew@>= 0.1.0 already satisfied
  Verifying dependencies for stew@0.1.0
      Info: Dependency on unittest2@any version already satisfied
  Verifying dependencies for unittest2@0.0.4
      Info: Dependency on nimcrypto@any version already satisfied
  Verifying dependencies for nimcrypto@0.5.4
      Info: Dependency on bearssl@any version already satisfied
  Verifying dependencies for bearssl@0.1.5
      Info: Dependency on unittest2@any version already satisfied
  Verifying dependencies for unittest2@0.0.4
      Info: Dependency on zlib@any version already satisfied
  Verifying dependencies for zlib@0.1.0
      Info: Dependency on stew@>= 0.1.0 already satisfied
  Verifying dependencies for stew@0.1.0
      Info: Dependency on unittest2@any version already satisfied
  Verifying dependencies for unittest2@0.0.4
      Info: Dependency on https://github.com/yyoncho/asynctools@#non-blocking already satisfied
  Verifying dependencies for asynctools@#non-blocking
      Info: Dependency on faststreams@any version already satisfied
  Verifying dependencies for faststreams@0.3.0
      Info: Dependency on stew@any version already satisfied
  Verifying dependencies for stew@0.1.0
      Info: Dependency on unittest2@any version already satisfied
  Verifying dependencies for unittest2@0.0.4
      Info: Dependency on chronos@any version already satisfied
  Verifying dependencies for chronos@3.0.11
      Info: Dependency on stew@any version already satisfied
  Verifying dependencies for stew@0.1.0
      Info: Dependency on unittest2@any version already satisfied
  Verifying dependencies for unittest2@0.0.4
      Info: Dependency on bearssl@any version already satisfied
  Verifying dependencies for bearssl@0.1.5
      Info: Dependency on unittest2@any version already satisfied
  Verifying dependencies for unittest2@0.0.4
      Info: Dependency on httputils@any version already satisfied
  Verifying dependencies for httputils@0.3.0
      Info: Dependency on stew@any version already satisfied
  Verifying dependencies for stew@0.1.0
      Info: Dependency on unittest2@any version already satisfied
  Verifying dependencies for unittest2@0.0.4
      Info: Dependency on unittest2@any version already satisfied
  Verifying dependencies for unittest2@0.0.4
      Info: Dependency on unittest2@any version already satisfied
  Verifying dependencies for unittest2@0.0.4
      Info: Dependency on unittest2@any version already satisfied
  Verifying dependencies for unittest2@0.0.4
      Info: Dependency on json_serialization@any version already satisfied
  Verifying dependencies for json_serialization@0.1.0
      Info: Dependency on serialization@any version already satisfied
  Verifying dependencies for serialization@0.1.0
      Info: Dependency on faststreams@any version already satisfied
  Verifying dependencies for faststreams@0.3.0
      Info: Dependency on stew@any version already satisfied
  Verifying dependencies for stew@0.1.0
      Info: Dependency on unittest2@any version already satisfied
  Verifying dependencies for unittest2@0.0.4
      Info: Dependency on chronos@any version already satisfied
  Verifying dependencies for chronos@3.0.11
      Info: Dependency on stew@any version already satisfied
  Verifying dependencies for stew@0.1.0
      Info: Dependency on unittest2@any version already satisfied
  Verifying dependencies for unittest2@0.0.4
      Info: Dependency on bearssl@any version already satisfied
  Verifying dependencies for bearssl@0.1.5
      Info: Dependency on unittest2@any version already satisfied
  Verifying dependencies for unittest2@0.0.4
      Info: Dependency on httputils@any version already satisfied
  Verifying dependencies for httputils@0.3.0
      Info: Dependency on stew@any version already satisfied
  Verifying dependencies for stew@0.1.0
      Info: Dependency on unittest2@any version already satisfied
  Verifying dependencies for unittest2@0.0.4
      Info: Dependency on unittest2@any version already satisfied
  Verifying dependencies for unittest2@0.0.4
      Info: Dependency on unittest2@any version already satisfied
  Verifying dependencies for unittest2@0.0.4
      Info: Dependency on unittest2@any version already satisfied
  Verifying dependencies for unittest2@0.0.4
      Info: Dependency on unittest2@any version already satisfied
  Verifying dependencies for unittest2@0.0.4
      Info: Dependency on stew@any version already satisfied
  Verifying dependencies for stew@0.1.0
      Info: Dependency on unittest2@any version already satisfied
  Verifying dependencies for unittest2@0.0.4
      Info: Dependency on stew@any version already satisfied
  Verifying dependencies for stew@0.1.0
      Info: Dependency on unittest2@any version already satisfied
  Verifying dependencies for unittest2@0.0.4
      Info: Dependency on with@any version already satisfied
  Verifying dependencies for with@0.4.0
      Info: Dependency on itertools@any version already satisfied
  Verifying dependencies for itertools@0.4.0
      Info: Dependency on chronicles@any version already satisfied
  Verifying dependencies for chronicles@0.10.3
      Info: Dependency on testutils@any version already satisfied
  Verifying dependencies for testutils@0.5.0
      Info: Dependency on unittest2@any version already satisfied
  Verifying dependencies for unittest2@0.0.4
      Info: Dependency on json_serialization@any version already satisfied
  Verifying dependencies for json_serialization@0.1.0
      Info: Dependency on serialization@any version already satisfied
  Verifying dependencies for serialization@0.1.0
      Info: Dependency on faststreams@any version already satisfied
  Verifying dependencies for faststreams@0.3.0
      Info: Dependency on stew@any version already satisfied
  Verifying dependencies for stew@0.1.0
      Info: Dependency on unittest2@any version already satisfied
  Verifying dependencies for unittest2@0.0.4
      Info: Dependency on chronos@any version already satisfied
  Verifying dependencies for chronos@3.0.11
      Info: Dependency on stew@any version already satisfied
  Verifying dependencies for stew@0.1.0
      Info: Dependency on unittest2@any version already satisfied
  Verifying dependencies for unittest2@0.0.4
      Info: Dependency on bearssl@any version already satisfied
  Verifying dependencies for bearssl@0.1.5
      Info: Dependency on unittest2@any version already satisfied
  Verifying dependencies for unittest2@0.0.4
      Info: Dependency on httputils@any version already satisfied
  Verifying dependencies for httputils@0.3.0
      Info: Dependency on stew@any version already satisfied
  Verifying dependencies for stew@0.1.0
      Info: Dependency on unittest2@any version already satisfied
  Verifying dependencies for unittest2@0.0.4
      Info: Dependency on unittest2@any version already satisfied
  Verifying dependencies for unittest2@0.0.4
      Info: Dependency on unittest2@any version already satisfied
  Verifying dependencies for unittest2@0.0.4
      Info: Dependency on unittest2@any version already satisfied
  Verifying dependencies for unittest2@0.0.4
      Info: Dependency on unittest2@any version already satisfied
  Verifying dependencies for unittest2@0.0.4
      Info: Dependency on stew@any version already satisfied
  Verifying dependencies for stew@0.1.0
      Info: Dependency on unittest2@any version already satisfied
  Verifying dependencies for unittest2@0.0.4
      Info: Dependency on stew@any version already satisfied
  Verifying dependencies for stew@0.1.0
      Info: Dependency on unittest2@any version already satisfied
  Verifying dependencies for unittest2@0.0.4
 Installing nimlangserver@0.1.0
   Building nimlangserver/nimlangserver using c backend
/tmp/nimble_2521464/githubcom_nimlanglangserver/nimlangserver.nim(5, 46) Error: cannot open file: /usr/compiler/pathutils
       Tip: 315 messages have been suppressed, use --verbose to show them.
     Error: Build failed for package: nimlangserver
        ... Execution failed with exit code 1
        ... Command: /usr/bin/nim c --colors:on --noNimblePath -d:release -d:NimblePkgVersion=0.1.0 --path:'/home/kadir/.nimble/pkgs/asynctools-#non-blocking' --path:'/home/kadir/.nimble/pkgs/json_rpc-#notif-changes' --path:/home/kadir/.nimble/pkgs/stew-0.1.0 --path:/home/kadir/.nimble/pkgs/unittest2-0.0.4 --path:/home/kadir/.nimble/pkgs/nimcrypto-0.5.4 --path:/home/kadir/.nimble/pkgs/stint-0.0.1 --path:/home/kadir/.nimble/pkgs/stew-0.1.0 --path:/home/kadir/.nimble/pkgs/unittest2-0.0.4 --path:/home/kadir/.nimble/pkgs/chronos-3.0.11 --path:/home/kadir/.nimble/pkgs/stew-0.1.0 --path:/home/kadir/.nimble/pkgs/unittest2-0.0.4 --path:/home/kadir/.nimble/pkgs/bearssl-0.1.5 --path:/home/kadir/.nimble/pkgs/unittest2-0.0.4 --path:/home/kadir/.nimble/pkgs/httputils-0.3.0 --path:/home/kadir/.nimble/pkgs/stew-0.1.0 --path:/home/kadir/.nimble/pkgs/unittest2-0.0.4 --path:/home/kadir/.nimble/pkgs/unittest2-0.0.4 --path:/home/kadir/.nimble/pkgs/unittest2-0.0.4 --path:/home/kadir/.nimble/pkgs/httputils-0.3.0 --path:/home/kadir/.nimble/pkgs/stew-0.1.0 --path:/home/kadir/.nimble/pkgs/unittest2-0.0.4 --path:/home/kadir/.nimble/pkgs/unittest2-0.0.4 --path:/home/kadir/.nimble/pkgs/chronicles-0.10.3 --path:/home/kadir/.nimble/pkgs/testutils-0.5.0 --path:/home/kadir/.nimble/pkgs/unittest2-0.0.4 --path:/home/kadir/.nimble/pkgs/json_serialization-0.1.0 --path:/home/kadir/.nimble/pkgs/serialization-0.1.0 --path:/home/kadir/.nimble/pkgs/faststreams-0.3.0 --path:/home/kadir/.nimble/pkgs/stew-0.1.0 --path:/home/kadir/.nimble/pkgs/unittest2-0.0.4 --path:/home/kadir/.nimble/pkgs/chronos-3.0.11 --path:/home/kadir/.nimble/pkgs/stew-0.1.0 --path:/home/kadir/.nimble/pkgs/unittest2-0.0.4 --path:/home/kadir/.nimble/pkgs/bearssl-0.1.5 --path:/home/kadir/.nimble/pkgs/unittest2-0.0.4 --path:/home/kadir/.nimble/pkgs/httputils-0.3.0 --path:/home/kadir/.nimble/pkgs/stew-0.1.0 --path:/home/kadir/.nimble/pkgs/unittest2-0.0.4 --path:/home/kadir/.nimble/pkgs/unittest2-0.0.4 --path:/home/kadir/.nimble/pkgs/unittest2-0.0.4 --path:/home/kadir/.nimble/pkgs/unittest2-0.0.4 --path:/home/kadir/.nimble/pkgs/unittest2-0.0.4 --path:/home/kadir/.nimble/pkgs/stew-0.1.0 --path:/home/kadir/.nimble/pkgs/unittest2-0.0.4 --path:/home/kadir/.nimble/pkgs/stew-0.1.0 --path:/home/kadir/.nimble/pkgs/unittest2-0.0.4 --path:'/home/kadir/.nimble/pkgs/news-#status' --path:/home/kadir/.nimble/pkgs/websock-0.1.0 --path:/home/kadir/.nimble/pkgs/chronos-3.0.11 --path:/home/kadir/.nimble/pkgs/stew-0.1.0 --path:/home/kadir/.nimble/pkgs/unittest2-0.0.4 --path:/home/kadir/.nimble/pkgs/bearssl-0.1.5 --path:/home/kadir/.nimble/pkgs/unittest2-0.0.4 --path:/home/kadir/.nimble/pkgs/httputils-0.3.0 --path:/home/kadir/.nimble/pkgs/stew-0.1.0 --path:/home/kadir/.nimble/pkgs/unittest2-0.0.4 --path:/home/kadir/.nimble/pkgs/unittest2-0.0.4 --path:/home/kadir/.nimble/pkgs/unittest2-0.0.4 --path:/home/kadir/.nimble/pkgs/httputils-0.3.0 --path:/home/kadir/.nimble/pkgs/stew-0.1.0 --path:/home/kadir/.nimble/pkgs/unittest2-0.0.4 --path:/home/kadir/.nimble/pkgs/unittest2-0.0.4 --path:/home/kadir/.nimble/pkgs/chronicles-0.10.3 --path:/home/kadir/.nimble/pkgs/testutils-0.5.0 --path:/home/kadir/.nimble/pkgs/unittest2-0.0.4 --path:/home/kadir/.nimble/pkgs/json_serialization-0.1.0 --path:/home/kadir/.nimble/pkgs/serialization-0.1.0 --path:/home/kadir/.nimble/pkgs/faststreams-0.3.0 --path:/home/kadir/.nimble/pkgs/stew-0.1.0 --path:/home/kadir/.nimble/pkgs/unittest2-0.0.4 --path:/home/kadir/.nimble/pkgs/chronos-3.0.11 --path:/home/kadir/.nimble/pkgs/stew-0.1.0 --path:/home/kadir/.nimble/pkgs/unittest2-0.0.4 --path:/home/kadir/.nimble/pkgs/bearssl-0.1.5 --path:/home/kadir/.nimble/pkgs/unittest2-0.0.4 --path:/home/kadir/.nimble/pkgs/httputils-0.3.0 --path:/home/kadir/.nimble/pkgs/stew-0.1.0 --path:/home/kadir/.nimble/pkgs/unittest2-0.0.4 --path:/home/kadir/.nimble/pkgs/unittest2-0.0.4 --path:/home/kadir/.nimble/pkgs/unittest2-0.0.4 --path:/home/kadir/.nimble/pkgs/unittest2-0.0.4 --path:/home/kadir/.nimble/pkgs/unittest2-0.0.4 --path:/home/kadir/.nimble/pkgs/stew-0.1.0 --path:/home/kadir/.nimble/pkgs/unittest2-0.0.4 --path:/home/kadir/.nimble/pkgs/stew-0.1.0 --path:/home/kadir/.nimble/pkgs/unittest2-0.0.4 --path:/home/kadir/.nimble/pkgs/stew-0.1.0 --path:/home/kadir/.nimble/pkgs/unittest2-0.0.4 --path:/home/kadir/.nimble/pkgs/nimcrypto-0.5.4 --path:/home/kadir/.nimble/pkgs/bearssl-0.1.5 --path:/home/kadir/.nimble/pkgs/unittest2-0.0.4 --path:/home/kadir/.nimble/pkgs/zlib-0.1.0 --path:/home/kadir/.nimble/pkgs/stew-0.1.0 --path:/home/kadir/.nimble/pkgs/unittest2-0.0.4 --path:'/home/kadir/.nimble/pkgs/asynctools-#non-blocking' --path:/home/kadir/.nimble/pkgs/faststreams-0.3.0 --path:/home/kadir/.nimble/pkgs/stew-0.1.0 --path:/home/kadir/.nimble/pkgs/unittest2-0.0.4 --path:/home/kadir/.nimble/pkgs/chronos-3.0.11 --path:/home/kadir/.nimble/pkgs/stew-0.1.0 --path:/home/kadir/.nimble/pkgs/unittest2-0.0.4 --path:/home/kadir/.nimble/pkgs/bearssl-0.1.5 --path:/home/kadir/.nimble/pkgs/unittest2-0.0.4 --path:/home/kadir/.nimble/pkgs/httputils-0.3.0 --path:/home/kadir/.nimble/pkgs/stew-0.1.0 --path:/home/kadir/.nimble/pkgs/unittest2-0.0.4 --path:/home/kadir/.nimble/pkgs/unittest2-0.0.4 --path:/home/kadir/.nimble/pkgs/unittest2-0.0.4 --path:/home/kadir/.nimble/pkgs/unittest2-0.0.4 --path:/home/kadir/.nimble/pkgs/json_serialization-0.1.0 --path:/home/kadir/.nimble/pkgs/serialization-0.1.0 --path:/home/kadir/.nimble/pkgs/faststreams-0.3.0 --path:/home/kadir/.nimble/pkgs/stew-0.1.0 --path:/home/kadir/.nimble/pkgs/unittest2-0.0.4 --path:/home/kadir/.nimble/pkgs/chronos-3.0.11 --path:/home/kadir/.nimble/pkgs/stew-0.1.0 --path:/home/kadir/.nimble/pkgs/unittest2-0.0.4 --path:/home/kadir/.nimble/pkgs/bearssl-0.1.5 --path:/home/kadir/.nimble/pkgs/unittest2-0.0.4 --path:/home/kadir/.nimble/pkgs/httputils-0.3.0 --path:/home/kadir/.nimble/pkgs/stew-0.1.0 --path:/home/kadir/.nimble/pkgs/unittest2-0.0.4 --path:/home/kadir/.nimble/pkgs/unittest2-0.0.4 --path:/home/kadir/.nimble/pkgs/unittest2-0.0.4 --path:/home/kadir/.nimble/pkgs/unittest2-0.0.4 --path:/home/kadir/.nimble/pkgs/unittest2-0.0.4 --path:/home/kadir/.nimble/pkgs/stew-0.1.0 --path:/home/kadir/.nimble/pkgs/unittest2-0.0.4 --path:/home/kadir/.nimble/pkgs/stew-0.1.0 --path:/home/kadir/.nimble/pkgs/unittest2-0.0.4 --path:/home/kadir/.nimble/pkgs/with-0.4.0 --path:/home/kadir/.nimble/pkgs/itertools-0.4.0 --path:/home/kadir/.nimble/pkgs/chronicles-0.10.3 --path:/home/kadir/.nimble/pkgs/testutils-0.5.0 --path:/home/kadir/.nimble/pkgs/unittest2-0.0.4 --path:/home/kadir/.nimble/pkgs/json_serialization-0.1.0 --path:/home/kadir/.nimble/pkgs/serialization-0.1.0 --path:/home/kadir/.nimble/pkgs/faststreams-0.3.0 --path:/home/kadir/.nimble/pkgs/stew-0.1.0 --path:/home/kadir/.nimble/pkgs/unittest2-0.0.4 --path:/home/kadir/.nimble/pkgs/chronos-3.0.11 --path:/home/kadir/.nimble/pkgs/stew-0.1.0 --path:/home/kadir/.nimble/pkgs/unittest2-0.0.4 --path:/home/kadir/.nimble/pkgs/bearssl-0.1.5 --path:/home/kadir/.nimble/pkgs/unittest2-0.0.4 --path:/home/kadir/.nimble/pkgs/httputils-0.3.0 --path:/home/kadir/.nimble/pkgs/stew-0.1.0 --path:/home/kadir/.nimble/pkgs/unittest2-0.0.4 --path:/home/kadir/.nimble/pkgs/unittest2-0.0.4 --path:/home/kadir/.nimble/pkgs/unittest2-0.0.4 --path:/home/kadir/.nimble/pkgs/unittest2-0.0.4 --path:/home/kadir/.nimble/pkgs/unittest2-0.0.4 --path:/home/kadir/.nimble/pkgs/stew-0.1.0 --path:/home/kadir/.nimble/pkgs/unittest2-0.0.4 --path:/home/kadir/.nimble/pkgs/stew-0.1.0 --path:/home/kadir/.nimble/pkgs/unittest2-0.0.4 --hints:off -o:/tmp/nimble_2521464/githubcom_nimlanglangserver/nimlangserver /tmp/nimble_2521464/githubcom_nimlanglangserver/nimlangserver.nim

Not recommended on a real system, but in my Alpine devcontainer I did this to fix it:

git clone --depth 1 https://github.com/nim-lang/Nim.git /tmp/nim && sudo cp -R /tmp/nim/compiler/ /usr

There seems to be a config option to set the prefix dir, but I couldn't figure it out how to set it (Nim noob): https://nim-lang.org/docs/compiler/options.html#getPrefixDir%2CConfigRef

Here's the workaround I used:

  1. Find pathutils on the system. In my case it was the path /usr/lib/nim/compiler/pathutils.nim
  2. Compile that using nim
  3. Symlink using sudo ln -s /usr/lib/nim/compiler/ /usr/compiler

A potentially better workaround I found was modifying the import in nimlangserver.nim.
Replacing $nim/compiler/pathutils with $lib/compiler/pathutils worked for me.

I'm on Arch Linux, using the nim package from the repo.
I'll check if this workaround can also be used with the official installation method and official packages.

I had occasion to revisit this and my workaround mentioned above was no longer necessary.
I think this issue can be closed