Closed memark closed 6 months ago
You can enable the backtrace by setting the RUST_BACKTRACE=1
environment variable.
Can I ask:
You can enable the backtrace by setting the RUST_BACKTRACE=1 environment variable.
Yes, but how/where? I'm not launching the LS myself.
What version of Uiua are you on?
Location: .../.cargo/registry/src/index.crates.io-6f17d22bba15001f/uiua-0.9.5/...
What were you doing when the crash happened?
Editing/iterating over a uiua code file (running with "uiua watch" in a separate terminal). It crashes constantly. After 5 crashes VS Code tells me it won't keep restarting it.
The code is this (I have not yet tried to reduce it to an MRE) (and yes, it's AoC :)):
SplitBy ← |2 ⊜□≠,
PredictionForRowEnd ← (
# make start row look like the rest
¤□
# calc the rows going down
⍢(
⊂: □≡(-⊃(⊢|⊢⇌))◫2°□⊡¯1 .
| # not ALL zeroes?
≠0◇/+≠0⊡¯1
)
# extrapolate new last value going up
# TODO: borde kunna använda omvända windows här också!
⍢(
⊃(⊡¯1°□⊡¯1|⊡¯1°□⊡¯2|⊡¯2|↘¯2)°□
⊂:+
⊂:□
| >1⧻
)
# take last value
°□◇⊡¯1◇⊢
)
SolvePartOne ← /+ ≡PredictionForRowEnd ≡(⋕◇SplitBy@ ) SplitBy@\n
---
⍤:≍, 114 SolvePartOne &fras "example_1"
⍤:≍, 1581679977 SolvePartOne &fras "input"
---
&p $"Part 1: _" SolvePartOne &fras "input"
The environment variable can be set wherever in your environment, however your OS handles that.
I have fixed a number of crashes since the latest release. You might try updating with
uiua update --main
You can find the running changelog for the newer version here
Updating to main
solved the issue. Thanks!
Btw, having the version number as 0.10.0-dev.1
is really great, now I can tell it apart from just having the latest released version.
The language server crashes for me in VS Code.
Not sure how to configure the plugin to emit the backtrace.