inim-repl / INim

Interactive Nim shell / REPL / Playground
MIT License
642 stars 23 forks source link

--withTools still broken #126

Open lewisl opened 2 years ago

lewisl commented 2 years ago

on MacOS

Nim-lang-code inim --withTools
👑 INim 0.6.1
Nim Compiler Version 1.6.2 [MacOSX: arm64] at /opt/homebrew/bin/nim
nim> pwd()
Error: cannot open file: src/inimpkg/commands
nim> ls()
Error: cannot open file: src/inimpkg/commands
nim> import strutils
/private/var/folders/9m/q4m1bq1972z9gqw3d7s9rqfh0000gn/T/inim_1641504083.nim(6, 22) Error: cannot open file: src/inimpkg/commands
lewisl commented 2 years ago

I tried changing my ini for inim as follows, but with no love. Still fails.

Weird that the code tries to include the source directory. That can only work at compile time.

Is there something to do during install time with nimble?

[History]
persistent=True
[Style]
prompt="nim> "
showTypes=True
showColor=True
[Features]
withTools=True
lewisl commented 2 years ago

Seems like the include in inim.nim doesn't work...

Must be something simple since it was reported a long time ago and "fixed" with a PR.

0atman commented 2 years ago

confirmed