nimsuggest icon indicating copy to clipboard operation
nimsuggest copied to clipboard

miscellaneous nimsuggest issues

Open timotheecour opened this issue 7 years ago • 2 comments

  • [minor] nimsuggest somehow transforms \n into \x0A, not \x0A

see also nimsuggest somehow transforms into \x0A, not \x0A by timotheecour · Pull Request #9599 · nim-lang/Nim

I tried figuring out where doc field is being modified by using nimsuggest use on doc field of Suggest however:

> use compiler/options.nim:153:6
returns empty

(which I reported in https://github.com/nim-lang/nimsuggest/issues/90)

timotheecour avatar Nov 02 '18 19:11 timotheecour

  • nimsuggest does't work if it's compiled somewhere else than default location eg: this won't work
$nimc_D/bin/nim c -o:/tmp/nimsuggest_dbg --noNimblePath -p:compiler --debugger:native nimsuggest/nimsuggest.nim

after running nimsuggest you'll get:

Error: cannot open '/private/lib/system.nim'

somehow nimsuggest hardcodes location of nim sources based on not ideal assumptions; it could be made more robust eg using findNimStdLibCompileTime introduced here https://github.com/nim-lang/Nim/pull/9181

timotheecour avatar Nov 03 '18 01:11 timotheecour

  • issue closed but not clear it was addressed: https://github.com/nim-lang/nimsuggest/issues/64#issuecomment-435481945
  • likewise with https://github.com/nim-lang/nimsuggest/issues/38#issuecomment-435482237

timotheecour avatar Nov 03 '18 02:11 timotheecour