Bug 260254 - devel/nimble install nimlsp fails
Summary: devel/nimble install nimlsp fails
Status: New
Alias: None
Product: Ports & Packages
Classification: Unclassified
Component: Individual Port(s) (show other bugs)
Version: Latest
Hardware: Any Any
: --- Affects Only Me
Assignee: freebsd-ports-bugs (Nobody)
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2021-12-06 11:49 UTC by Alain De Vos
Modified: 2024-03-29 10:41 UTC (History)
9 users (show)

See Also:
ports: maintainer-feedback-


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Alain De Vos 2021-12-06 11:49:04 UTC
nimble install nimlsp
fails:

HOST:x: /home/x >nimble install nimlsp
Downloading https://github.com/PMunch/nimlsp using git
  Verifying dependencies for nimlsp@0.3.2
      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.3.2
   Building nimlsp/nimlsp using c backend
/tmp/nimble_11203/githubcom_PMunchnimlsp/src/nimlsppkg/utfmapping.nim(16, 9) Warning: use explicit initialization of 'result' for clarity [Uninit]
/wrkdirs/usr/ports/lang/nim/work/nim-1.4.8/compiler/sempass2.nim(285, 16) compiler msg initiated here [MsgOrigin]
/tmp/nimble_11203/githubcom_PMunchnimlsp/src/nimlsppkg/utfmapping.nim(20, 9) Warning: use explicit initialization of 'result' for clarity [Uninit]
/wrkdirs/usr/ports/lang/nim/work/nim-1.4.8/compiler/sempass2.nim(285, 16) compiler msg initiated here [MsgOrigin]
/tmp/nimble_11203/githubcom_PMunchnimlsp/src/nimlsppkg/utfmapping.nim(24, 9) Warning: use explicit initialization of 'result' for clarity [Uninit]
/wrkdirs/usr/ports/lang/nim/work/nim-1.4.8/compiler/sempass2.nim(285, 16) compiler msg initiated here [MsgOrigin]
/tmp/nimble_11203/githubcom_PMunchnimlsp/src/nimlsppkg/suggestlib.nim(11, 8) template/generic instantiation of `mImport` from here
/tmp/nimble_11203/githubcom_PMunchnimlsp/src/nimlsppkg/suggestlib.nim(7, 14) Error: cannot open file: /usr/local/nimsuggest/nimsuggest.nim
/wrkdirs/usr/ports/lang/nim/work/nim-1.4.8/compiler/modulepaths.nim(162, 17) compiler msg initiated here [MsgOrigin]
    Prompt: Build failed for 'nimlsp@0.3.2', 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 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
/tmp/nimble_11203/githubcom_PMunchnimlsp_#head/src/nimlsppkg/utfmapping.nim(16, 9) Warning: use explicit initialization of 'result' for clarity [Uninit]
/wrkdirs/usr/ports/lang/nim/work/nim-1.4.8/compiler/sempass2.nim(285, 16) compiler msg initiated here [MsgOrigin]
/tmp/nimble_11203/githubcom_PMunchnimlsp_#head/src/nimlsppkg/utfmapping.nim(20, 9) Warning: use explicit initialization of 'result' for clarity [Uninit]
/wrkdirs/usr/ports/lang/nim/work/nim-1.4.8/compiler/sempass2.nim(285, 16) compiler msg initiated here [MsgOrigin]
/tmp/nimble_11203/githubcom_PMunchnimlsp_#head/src/nimlsppkg/utfmapping.nim(24, 9) Warning: use explicit initialization of 'result' for clarity [Uninit]
/wrkdirs/usr/ports/lang/nim/work/nim-1.4.8/compiler/sempass2.nim(285, 16) compiler msg initiated here [MsgOrigin]
/tmp/nimble_11203/githubcom_PMunchnimlsp_#head/src/nimlsppkg/suggestlib.nim(11, 8) template/generic instantiation of `mImport` from here
/tmp/nimble_11203/githubcom_PMunchnimlsp_#head/src/nimlsppkg/suggestlib.nim(7, 14) Error: cannot open file: /usr/local/nimsuggest/nimsuggest.nim
/wrkdirs/usr/ports/lang/nim/work/nim-1.4.8/compiler/modulepaths.nim(162, 17) compiler msg initiated here [MsgOrigin]
       Tip: 17 messages have been suppressed, use --verbose to show them.
     Error: Build failed for package: nimlsp
        ... Execution failed with exit code 256
        ... Command: /usr/local/bin/nim c --colors:on --noNimblePath -d:release -d:NimblePkgVersion=0.3.2 --path:/home/x/.nimble/pkgs/jsonschema-0.2.1 --path:/home/x/.nimble/pkgs/ast_pattern_matching-1.0.0 --hints:off -o:'/tmp/nimble_11203/githubcom_PMunchnimlsp_#head/nimlsp' '/tmp/nimble_11203/githubcom_PMunchnimlsp_#head/src/nimlsp.nim'
Comment 1 Neal Nelson 2021-12-06 13:50:06 UTC
Looking at the error log, nimlsp is looking for nimsuggest source code in /usr/local/nimsuggest. This is not true on FreeBSD as we do not install the nimsuggest code, especially there. We do have the binary of course, but this does not help you.

It looks to me like there are some linuxy assumptions made by the nimlsp project and these will have to be patched before you can build it on FreeBSD. As it stands, nimble will not currently be able to do it. It will require either an upstream change to include the nimsuggest code and to become aware of FreeBSD directory locations, or, more likely, you will need to make a port which will fetch the other required files and patch nimlsp to build properly.
Comment 2 gyuiui 2022-11-05 00:31:58 UTC
MARKED AS SPAM
Comment 3 teethshare 2022-12-16 08:27:53 UTC
MARKED AS SPAM
Comment 4 coalition strengthen 2023-09-12 06:34:09 UTC
It seems that the nimlsp project has several Linux-specific assumptions, which will need to be changed in order to compile on FreeBSD. As things stand, nimble will not be able to complete the task. Building nimlsp will need either an upstream modification to include the nimsuggest code and become aware of FreeBSD directory locations, or a port to get the other necessary files and modify nimlsp.
https://dordle.io
Comment 5 lewishamilton 2023-12-04 10:17:55 UTC
As things stand, nimble will not be able to complete the task. Building nimlsp will need either an upstream modification to include the nimsuggest code  https://retrobowl-college.io
Comment 6 alexreynolds 2023-12-28 01:24:25 UTC
I feel strongly about it and love finding out more about it. If you could, as you learn more, would you mind adding more information to your blog https://quordle-wordle.com
Comment 7 potefa 2024-01-18 04:33:49 UTC
Fixed independently in https://geometrydashsubzero.net
Comment 8 Olivia 2024-03-04 08:35:23 UTC
Fixed in a manner dependant on https://contextogame.io
Comment 9 angelaesper43 2024-03-29 10:41:17 UTC
This detailed post opened my eyes to so much and I appreciate it, are there any other questions like this https://www.sexdolltech.com/product-category/shop-by-categories/sex-doll-body-type/torso-sex-dolls/? I'm curious, but I might need to hold off a bit because this is so shocking. Damn curiosity