nimfmt icon indicating copy to clipboard operation
nimfmt copied to clipboard

Unable to install nimfmt

Open wizzardx opened this issue 4 years ago • 3 comments

I'm running nim version 1.4.0, as installed by choosenim on linux.

Running this command:

nimble install compiler@#head

Doesn't seem to install nimfmt

Trying to install nimfmt from github with this command:

nimble install https://github.com/FedericoCeratto/nimfmt

Has this error:

   Building nimfmt/nimfmt using c backend
/tmp/nimble_33447/githubcom_FedericoCerattonimfmt/nimfmt.nim(30, 31) Error: undeclared identifier: 'setupParsers'
       Tip: 351 messages have been suppressed, use --verbose to show them.
     Error: Build failed for package: nimfmt
        ... Execution failed with exit code 1
        ... Command: /home/david/.nimble/bin/nim c --colors:on --noNimblePath -d:release -d:NimblePkgVersion=0.1.0 --path:'/home/david/.nimble/pkgs/compiler-#head' --hints:off -o:/tmp/nimble_33447/githubcom_FedericoCerattonimfmt/nimfmt /tmp/nimble_33447/githubcom_FedericoCerattonimfmt/nimfmt.nim

I get a similar error with this command, but with fewer suppressed messages:

nimble install https://github.com/FedericoCeratto/nimfmt@#head
   Building nimfmt/nimfmt using c backend
/tmp/nimble_33775/githubcom_FedericoCerattonimfmt_#head/nimfmt.nim(30, 31) Error: undeclared identifier: 'setupParsers'
       Tip: 5 messages have been suppressed, use --verbose to show them.
     Error: Build failed for package: nimfmt
        ... Execution failed with exit code 1
        ... Command: /home/david/.nimble/bin/nim c --colors:on --noNimblePath -d:release -d:NimblePkgVersion=0.1.0 --path:'/home/david/.nimble/pkgs/compiler-#head' --hints:off -o:'/tmp/nimble_33775/githubcom_FedericoCerattonimfmt_#head/nimfmt' '/tmp/nimble_33775/githubcom_FedericoCerattonimfmt_#head/nimfmt.nim'

wizzardx avatar Oct 17 '20 08:10 wizzardx

Same problem :/

theoparis avatar Mar 10 '21 03:03 theoparis

Can you reproduce it with Nim 1.6.0? It works for me.

FedericoCeratto avatar Dec 29 '21 12:12 FedericoCeratto

/tmp/nimble_105600/githubcom_nimlangNimgit_#head/dist/nimble/src/nimblepkg/publish.nim(7, 8) Warning: io is about to move out of system; use `-d:nimPreviewSlimSystem` and import `std/syncio`; system is deprecated [Deprecated]
  Verifying dependencies for nim@#head
 Installing nim@#head
   Building nim/compiler/nim using c backend
/tmp/nimble_105600/githubcom_nimlangNimgit_#head/compiler/nim.nim(13, 13) Error: cannot open file: std/assertions
       Tip: 16 messages have been suppressed, use --verbose to show them.
     Error: Build failed for package: nim
        ... Execution failed with exit code 1
        ... Command: /home/hridyansh/langs/nim/bin/nim c --colors:on --noNimblePath -d:release -d:NimblePkgVersion=1.6.8 --hints:off -o:'/tmp/nimble_105600/githubcom_nimlangNimgit_#head/compiler/nim' '/tmp/nimble_105600/githubcom_nimlangNimgit_#head/compiler/nim.nim'

acnologia000 avatar Oct 22 '22 12:10 acnologia000