Nim: nimpretty status?

Created on 27 Mar 2018  路  6Comments  路  Source: nim-lang/Nim

I'm looking for a tool like D's dfmt --inplace or gofmt to format code.
I found nimpretty but couldn't find much information on it;
it's not installed via brew install nim (which installs nim and nimble and nimgrep) which makes me think it's not ready yet.

just found these links:

so is that feature planned, what works/doesn't?

also, shouldn't dedicated github issue project be used for project specific things such as nimpretty? (eg there's no existing label nimpretty)

Tools

Most helpful comment

so is that feature planned, what works/doesn't?

Planned and the biggest blocking issue is still comment handling. Once that is solved, I will run it on every .nim file I can get my hands on and try to get it into production quality.

All 6 comments

also, shouldn't dedicated github issue project be used for project specific things such as nimpretty? (eg there's no existing label nimpretty)

Yep, and a dedicated repo for the project should be made too. @Araq prefers to keep things in the Nim repo though :/

so is that feature planned, what works/doesn't?

Planned and the biggest blocking issue is still comment handling. Once that is solved, I will run it on every .nim file I can get my hands on and try to get it into production quality.

Will you also move it into a Nimble repo to make contribution easier?

@dom96 nimpretty is baked into the compiler, so I doubt that's possible. All the work is done by compiler/parser and compiler/renderer.

@GULPF
c2nim also depends from the compiler's modules, but can be installed using Nimble.
So I don't think that this is a problem.

Question has been answered.

Was this page helpful?
0 / 5 - 0 ratings

Related issues

yglukhov picture yglukhov  路  46Comments

kaushalmodi picture kaushalmodi  路  25Comments

ErikSchierboom picture ErikSchierboom  路  29Comments

zielmicha picture zielmicha  路  37Comments

timotheecour picture timotheecour  路  33Comments