`--os:standalone` gives `Error: system module needs: getCurrentException`

2023-01-20 Thread thisago
Oh thank you very much! this fixed! I tried clean command but not deleting the nimcache, tnx!

`--os:standalone` gives `Error: system module needs: getCurrentException`

2023-01-20 Thread thisago
I tried with this parameters in devel, but the error is same as above type mismatch, but when I tried the version 1.6.10, the nim was compiled to cpp, but in linking, gave this: Linking .pio/build/nanoatmega328/firmware.elf .pio/build/nanoatmega328/src/nimcache/stdlib_digitsutil

`--os:standalone` gives `Error: system module needs: getCurrentException`

2023-01-20 Thread thisago
I tried `--os:ansic` instead of `--os:standalone`, but it gives: `command line(1, 2) Error: unknown OS: 'ansic'. Available options are: DOS, Windows, OS2, Linux, MorphOS, SkyOS, Solaris, Irix, NetBSD, FreeBSD, OpenBSD, DragonFly, CROSSOS, AIX, PalmOS, QNX, Amiga, Atari, Netware, MacOS, MacOSX, i

`--os:standalone` gives `Error: system module needs: getCurrentException`

2023-01-19 Thread thisago
I tried stable Nim and same, but with the devel version, the error is different: /home/user/.choosenim/toolchains/nim-#devel/lib/pure/unicode.nim(849, 36) Error: type mismatch: got 'int32' for 'RuneImpl(toLower(ar)) - RuneImpl(toLower(br))' but expected 'int' Run

`--os:standalone` gives `Error: system module needs: getCurrentException`

2023-01-19 Thread thisago
With `--panics:on -d:useMalloc --os:any --gc:arc` gives the same error: src/nimcache/stdlib_system.nim.cpp:6:10: fatal error: exception: No such file or directory #include ^~~ compilation terminated. *** [.pio/build/nanoatmega328/src/nimcache/stdli

`--os:standalone` gives `Error: system module needs: getCurrentException`

2023-01-19 Thread thisago
Maybe related: But when using `--gc:arc --os:any -d:StandaloneHeapSize=1048576`, the error is: src/nimcache/stdlib_system.nim.cpp:6:10: fatal error: exception: No such file or directory #include ^~~ compi

`--os:standalone` gives `Error: system module needs: getCurrentException`

2023-01-19 Thread thisago
Any lib that uses `getCurrentExceptionMsg` gives this error, there's a way to declare a own `getCurrentExceptionMsg` that works in embedded?

`--os:standalone` gives `Error: system module needs: getCurrentException`

2023-01-19 Thread thisago
Shalom, I was using the [nim-platformio](https://github.com/markspanbroek/nim-platformio) and when I import strformat gives the error: `Error: system module needs: getCurrentException` works import pkg/arduino setup: pinMode(LED_BUILTIN, OUTPUT) loop:

How to make my library code aware of user provided overloads.

2022-08-12 Thread thisago
Hi, here is an example: proc foo[T](x: T) = when compiles $x: echo 1 else: echo 0 type A = distinct int foo A 1 Run