Closed alextes closed 4 years ago
I'm new to nim, not sure how to debug this further or be more helpful.
Installed nim with brew (1.2.0).
Tried the normal install and head based one.
Anything else I can try?
❯ nimble install nimlsp Downloading https://github.com/PMunch/nimlsp using git Verifying dependencies for nimlsp@0.2.3 Info: Dependency on astpatternmatching@any version already satisfied Verifying dependencies for ast_pattern_matching@1.0.0 Info: Dependency on jsonschema@>= 0.2.1 already satisfied Verifying dependencies for jsonschema@0.2.1 Info: Dependency on ast_pattern_matching@any version already satisfied Verifying dependencies for ast_pattern_matching@1.0.0 Installing nimlsp@0.2.3 Building nimlsp/nimlsp using c backend Prompt: Build failed for 'nimlsp@0.2.3', would you like to try installing 'nimlsp@#head' (latest unstable)? [y/N] Answer: y Downloading https://github.com/PMunch/nimlsp using git Verifying dependencies for nimlsp@#head Info: Dependency on astpatternmatching@any version already satisfied Verifying dependencies for ast_pattern_matching@1.0.0 Info: Dependency on jsonschema@>= 0.2.1 already satisfied Verifying dependencies for jsonschema@0.2.1 Info: Dependency on ast_pattern_matching@any version already satisfied Verifying dependencies for ast_pattern_matching@1.0.0 Installing nimlsp@#head Building nimlsp/nimlsp using c backend Tip: 19 messages have been suppressed, use --verbose to show them. Error: Build failed for package: nimlsp ... Details: ... Execution failed with exit code 1 ... Command: "/usr/local/Cellar/nim/1.2.0/nim/bin/nim" c --noNimblePath -d:NimblePkgVersion=0.2.3 -d:release --path:"/Users/alextes/.nimble/pkgs/ast_pattern_matching-1.0.0" --path:"/Users/alextes/.nimble/pkgs/jsonschema-0.2.1" --path:"/Users/alextes/.nimble/pkgs/ast_pattern_matching-1.0.0" -o:"/var/folders/qz/tmx91h711874gw3rf7k7y0qr0000gn/T/nimble_10253/githubcom_PMunchnimlsp_#head/nimlsp" "/var/folders/qz/tmx91h711874gw3rf7k7y0qr0000gn/T/nimble_10253/githubcom_PMunchnimlsp_#head/src/nimlsp.nim" ... Output: Hint: used config file '/usr/local/Cellar/nim/1.2.0/nim/config/nim.cfg' [Conf] ... Hint: used config file '/private/var/folders/qz/tmx91h711874gw3rf7k7y0qr0000gn/T/nimble_10253/githubcom_PMunchnimlsp_#head/src/nimlsp.nim.cfg' [Conf] ... Hint: used config file '/private/var/folders/qz/tmx91h711874gw3rf7k7y0qr0000gn/T/nimble_10253/githubcom_PMunchnimlsp_#head/src/config.nims' [Conf] ... Hint: system [Processing] ... Hint: widestrs [Processing] ... Hint: io [Processing] ... Hint: nimlsp [Processing] ... Hint: baseprotocol [Processing] ... Hint: streams [Processing] ... Hint: strutils [Processing] ... Hint: parseutils [Processing] ... Hint: math [Processing] ... Hint: bitops [Processing] ... Hint: macros [Processing] ... Hint: algorithm [Processing] ... Hint: unicode [Processing] ... Hint: json [Processing] ... Hint: hashes [Processing] ... Hint: tables [Processing] ... Hint: lexbase [Processing] ... Hint: parsejson [Processing] ... Hint: options [Processing] ... Hint: typetraits [Processing] ... /private/var/folders/qz/tmx91h711874gw3rf7k7y0qr0000gn/T/nimble_10253/githubcom_PMunchnimlsp_#head/src/nimlsppkg/baseprotocol.nim(4, 24) Warning: inherit from a more precise exception type like ValueError, IOError or OSError [InheritFromException] ... Hint: utfmapping [Processing] ... /private/var/folders/qz/tmx91h711874gw3rf7k7y0qr0000gn/T/nimble_10253/githubcom_PMunchnimlsp_#head/src/nimlsppkg/utfmapping.nim(1, 8) Warning: imported and not used: 'tables' [UnusedImport] ... Hint: suggestlib [Processing] ... Hint: os [Processing] ... Hint: pathnorm [Processing] ... Hint: osseps [Processing] ... Hint: posix [Processing] ... Hint: times [Processing] ... /private/var/folders/qz/tmx91h711874gw3rf7k7y0qr0000gn/T/nimble_10253/githubcom_PMunchnimlsp_#head/src/nimlsppkg/suggestlib.nim(11, 8) template/generic instantiation of `mImport` from here ... /private/var/folders/qz/tmx91h711874gw3rf7k7y0qr0000gn/T/nimble_10253/githubcom_PMunchnimlsp_#head/src/nimlsppkg/suggestlib.nim(7, 14) Error: cannot open file: /usr/local/Cellar/nim/1.2.0/nim/nimsuggest/nimsuggest.nim
For some reason brew doesn't install the nimsuggest sources that nimlsp needs to compile. This has already been discussed and solved here: https://github.com/PMunch/nimlsp/issues/43
brew
Thanks!
I'm new to nim, not sure how to debug this further or be more helpful.
Installed nim with brew (1.2.0).
Tried the normal install and head based one.
Anything else I can try?