I got in trouble with compilation of serenity
Discord bot library. It compiles fine on Linux, but it fails on Windows with the following error:
error: environment variable `PATH_SEPARATOR` not defined
--> C:\Users\my_user\.cargo\registry\src\github.com-1ecc6299db9ec823\proc-macro-nested-0.1.7\src\lib.rs:43:35
|
43 | include!(concat!(env!("OUT_DIR"), env!("PATH_SEPARATOR"), "count.rs"));
| ^^^^^^^^^^^^^^^^^^^^^^
|
= note: this error originates in the macro `env` (in Nightly builds, run with -Z macro-backtrace for more info)
It used to work on Windows too, this error occurs since days only. When I define the environment variable as PATH_SEPARATOR=\
in the IDE (IntelliJ IDEA), the error is that the file on that path cannot be read (os error 2).
I tried to compile with msvc
and gnu
toolchains, but the error always appears.
No enviroment variables were needed to be set before, why do I need to set it now?