nimfmt
nimfmt copied to clipboard
Unable to install nimfmt
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'
Same problem :/
Can you reproduce it with Nim 1.6.0? It works for me.
/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'