Commit 59d6669
authored
fix: workaround for invalid lake version in v4.21.0-rc1 (#618)
This PR fixes the fallout of a small ticking time bomb that exploded in
v4.21.0-rc1.
Lake reports its version strings as follows, where `77cfc4d` is the
commit ID of the corresponding release:
```
[mhuisi@fedora ~]$ lake --version
Lake version 5.0.0-77cfc4d (Lean version 4.20.0)
```
In v4.21.0-rc1, the commit ID is `0168680`, so Lake reports the
following version string:
```
[mhuisi@fedora ~]$ lake --version
Lake version 5.0.0-0168680 (Lean version 4.21.0-rc1)
```
Unfortunately, `5.0.0-0168680` is *not* a [valid semantic
version](https://semver.org/), since it both contains a 0 at the start
and only numbers. This is fairly rare, but it now happened on
v4.21.0-rc1 for the first time.
The VS Code extension parses this version as part of its precondition
checks, which now fails because the version is not a valid semantic
version.
The workaround for this issue is to remove the step that parses the
version. The extension only parsed it for consistency with other
precondition checks and doesn't actually do anything interesting with
the version, so removing it doesn't lose us anything.1 parent 5a938ad commit 59d6669
File tree
2 files changed
+25
-19
lines changed- vscode-lean4/src/diagnostics
2 files changed
+25
-19
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
27 | 27 | | |
28 | 28 | | |
29 | 29 | | |
| 30 | + | |
| 31 | + | |
| 32 | + | |
| 33 | + | |
| 34 | + | |
30 | 35 | | |
31 | 36 | | |
32 | 37 | | |
| |||
176 | 181 | | |
177 | 182 | | |
178 | 183 | | |
179 | | - | |
| 184 | + | |
180 | 185 | | |
181 | | - | |
182 | | - | |
183 | | - | |
184 | | - | |
185 | | - | |
186 | | - | |
| 186 | + | |
| 187 | + | |
| 188 | + | |
| 189 | + | |
| 190 | + | |
| 191 | + | |
| 192 | + | |
| 193 | + | |
| 194 | + | |
| 195 | + | |
187 | 196 | | |
188 | 197 | | |
189 | 198 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
284 | 284 | | |
285 | 285 | | |
286 | 286 | | |
287 | | - | |
| 287 | + | |
288 | 288 | | |
289 | 289 | | |
290 | 290 | | |
291 | 291 | | |
292 | 292 | | |
293 | | - | |
294 | | - | |
295 | | - | |
| 293 | + | |
| 294 | + | |
| 295 | + | |
296 | 296 | | |
297 | | - | |
| 297 | + | |
298 | 298 | | |
299 | 299 | | |
300 | | - | |
| 300 | + | |
301 | 301 | | |
302 | | - | |
| 302 | + | |
303 | 303 | | |
304 | 304 | | |
305 | 305 | | |
306 | | - | |
307 | | - | |
308 | | - | |
309 | 306 | | |
310 | | - | |
| 307 | + | |
311 | 308 | | |
312 | 309 | | |
313 | | - | |
| 310 | + | |
314 | 311 | | |
315 | 312 | | |
316 | 313 | | |
| |||
0 commit comments