Closed k4rtik closed 2 years ago
Just checked that downgrading to v0.6.1 works:
❯ cargo install whiley@0.6.1
[...]
Compiling whiley v0.6.1
Finished release [optimized] target(s) in 23.86s
Replacing /Users/kartik/.cargo/bin/wy
Replaced package `whiley v0.6.3` with `whiley v0.6.1` (executable `wy`)
❯ wy --version
wy 0.6.0
Oddly version shows up wrong though.
Hey @k4rtik ,
Thanks for the reporting this. Looking at, I think there is only one explanation which makes sense. My assumption is that, prior to running v0.6.3
above you had previously compiled Whiley code using an earlier release (e.g. v0.6.1
). If that is the case, then I think its a quick fix on your end:
> rm ~/.whiley/repository/*.zip
(if you're not comfortable with the command-line you could do this from file explorer or similar. Just delete the whole .whiley
directory)
The short explanation is that of binary compatibility. Moving from v0.6.3
has changed the internal format for the intermediate language stored in the packages. Since you had downloaded them already in a previous compilation, yours were out-of-date and need to be updated.
I suppose the longer issue is that I need to start an upgrade process for packages which is more robust. Thus far, mostly, I've been able to make changes without too much trouble because not may people are actively using the tool.
Anyway, keep me posted if that works!
The quick fix is working!
Thanks for a quick turn around on this issue.
No worries :)
Hi @DavePearce
The current release doesn't seem to compile even a trivial program anymore.