EmbeddedNim / picostdlib

Nim wrapper for the raspberry pi stdlib
MIT License
73 stars 11 forks source link

problem with Nim 1.6.0 #15

Closed Martinix75 closed 3 years ago

Martinix75 commented 3 years ago

good morning, i just found a problem with nim 1.6.0 that didn't exist with nim 1.4.8!

import random (just import it to generate the error !! )

now create an error: /home/andrea/ProgPicoNim/test160/src/os.nim(63, 10) Error: OS module not ported to your operating system! oserr.nim(94) raiseOSError Error: unhandled exception: No such file or directory Additional info: "(\"csource/@mtest160.nim.c\", \"csource/test160.c\", \"No such file or directory\")" [OSError]

i know you probably can't do anything about it, but i tell you (maybe it's a bug of nim 1.6.0 ?????) bye!

Martinix75 commented 3 years ago

not work in 1.4.8

beef331 commented 3 years ago

Yea the pico doesnt have an OS unless using RTOS, so much of the Nim stdlib that depends on os will not work. Ideally we make more bindings for pico, but I've been quite distracted as of late. Might be worthwhile to just use c2nim or similar to make bindings even though they're not idiomatic.