ThomasTJdev / nim_websitecreator

Nim fullstack website framework - deploy a website within minutes
https://nimwc.org
MIT License
176 stars 7 forks source link

Troubleshooting installation problem #112

Closed csajedi closed 5 years ago

csajedi commented 5 years ago

Hi, I've been trying to get this working in my dev environment and so far the nimble installation process, vagrant, build from source and docker process have all failed. After some fiddling I've come to the point where following the install video for building it( #100) and from the dockerfile-based installation I get this error:

Hint: webp [Processing] /nim_websitecreator/nimwcpkg/nimwc_main.nim(39, 39) Warning: Firejail is Disabled, Running Unsecure. [User] /Users/travis/build/nim-lang/nightlies/nim/e7471cebae2a404f3e4239f199f5a0c422484aac/lib/system/fatal.nim(39) sysFatal Error: unhandled exception: /Users/travis/build/nim-lang/nightlies/nim/e7471cebae2a404f3e4239f199f5a0c422484aac/compiler/vm.nim(706, 16) nfIsRef in regs[ra].node.flags [AssertionError] Compile Error

What can I do to get around this? I have been trying with nim 0.20.0

juancarlospaco commented 5 years ago

Try with 0.19.6 :grey_question: I mean by that traceback you are trying with Nim devel thats unstable, use a stable channel.

If you are new to Nim, Nim has 2 channels, stable thats a tagged versioned release, and devel thats kinda a rolling release and is unstable.

:slightly_smiling_face:

csajedi commented 5 years ago

when I used choosenim stable it moved me to 0.20.0, but I tried now with 0.19.6 and got the same error from docker devops. However I am now able to progress with method 1b: clone and compile to get to serving nimwc in localhost. I may investigate further with docker after I've played with nimwc to gain familiarity. I am pretty new to nim, just finished the only Nim book and wanted to dive right in.

juancarlospaco commented 5 years ago

Nim is preparing for v1.0 so they changed some APIs, that wanted to change for a long time now, because is the latest opportunities to change the API before 1.0, so we can say is just casual, also I am not a Docker expert, but often find easier to just clone and compile it, compared to doing the Docker dance, but is also Ok if you want to use Docker too, with choosenim you can quickly change versions of Nim, good to read that you got it working, the issues are for that, and we are working on improving the code, welcome aboard. :slightly_smiling_face:

juancarlospaco commented 5 years ago

Assuming it worked Ok, since OP said its compiling. :slightly_smiling_face: