mattwparas / steel

An embedded scheme interpreter in Rust
Apache License 2.0
1.05k stars 49 forks source link

Installation error #158

Closed EpsilonKu closed 3 months ago

EpsilonKu commented 6 months ago

I want to install to try helix with steel. I successfully installed your helix fork. But as I understand to config I need steel. So I couldn't install steel through flake.nix.

error: builder for '/nix/store/fwshviria0fbbhbmmw27gsdh35df3qil-steel-interpreter-0.6.0.drv' failed with exit code 1;
       last 10 log lines:
       > Attempting to install:  '#hash((#:name . "steel-websockets") (#:subdir . "libs/steel-websockets") (#:workspace-root . "../.."))
       > Running dylib build in:  ../libs/steel-websockets/../../libs/steel-websockets
       > error[E03]: TypeMismatch
       >    ┌─ install.scm:11:1
       >    │
       > 11 │
       >    │   Struct getter expected Ok, found Gc(UserDefinedStruct { fields: [Error: Io: No such file or directory (os error 2)], type_descriptor: StructTypeDescriptor(1) }), (Err Error: Io: No such file or direc
tory (os error 2))
       >
       > Error: SteelErr { repr: Repr { kind: TypeMismatch, message: "Struct getter expected Ok, found Gc(UserDefinedStruct { fields: [Error: Io: No such file or directory (os error 2)], type_descriptor: StructTypeD
escriptor(1) }), (Err Error: Io: No such file or directory (os error 2))", span: Some(2535..2544), stack_trace: Some(DehydratedStackTrace { stack_trace: [DehydratedCallContext { span: Some(0..0) }, DehydratedCallCon
text { span: Some(7212..7218) }, DehydratedCallContext { span: None }, DehydratedCallContext { span: Some(7212..7218) }, DehydratedCallContext { span: Some(2161..2172) }, DehydratedCallContext { span: Some(0..0) }, 
DehydratedCallContext { span: Some(1555..1563) }, DehydratedCallContext { span: Some(7212..7218) }, DehydratedCallContext { span: Some(2161..2172) }, DehydratedCallContext { span: Some(1555..1563) }, DehydratedCallC
ontext { span: Some(2182..2186) }, DehydratedCallContext { span: Some(2426..2452) }] }) } }
       > /nix/store/v5irq7wvkr7kih0hhnch5nnv2dcq8c4f-stdenv-linux/setup: line 131: pop_var_context: head of shell_variables not a function context
       For full logs, run 'nix log /nix/store/fwshviria0fbbhbmmw27gsdh35df3qil-steel-interpreter-0.6.0.drv'.
mattwparas commented 6 months ago

Agh, I really need a nix environment to test in.

Can you try removing the directory "cogs/slack" and try installing again?

EpsilonKu commented 6 months ago

Yeah, it installed after removing cogs/slack. I got error inside helix. Seems like it's more config problem.

mattwparas commented 6 months ago

Yeah - if you'd like I can help debug that? The config is a bit in flux for helix at the moment right now.

EpsilonKu commented 6 months ago

Well, I got only one error. Screenshot from 2024-02-08 12 07 08 And sadly it doesn't write to logs. I can't see full error((. I use your helix-config without change.

EpsilonKu commented 6 months ago

Actually, I changed one thing. I removed

[editor.statusline]
center = ["custom"]

from config.toml. Because I got error

thread 'main' panicked at helix-term/src/commands/engine/scheme.rs:1028:41:
called `Result::unwrap()` on an `Err` value: BadConfig(Error { inner: Error { inner: TomlError { message: "unknown variant `custom`, expected one of `mode`, `spinner`, `file-base-name`, `file-name`, `file-modification-indicator`, `read-only-indicator`, `file-encoding`, `file-line-ending`, `file-type`, `diagnostics`, `workspace-diagnostics`, `selections`, `primary-selection-length`, `position`, `separator`, `position-percentage`, `total-line-numbers`, `spacer`, `version-control`, `register`", original: None, keys: ["statusline", "center"], span: None } } })
note: run with `RUST_BACKTRACE=1` environment variable to display a backtrace

Maybe I should start my own config?)

EpsilonKu commented 6 months ago

I tried to run minimal config. Error: Io: No such file or directory (os error 2) shows anyway. Seems like needs heavy debugging anyway. I will try run with debugging and try to find something. Lol

mattwparas commented 6 months ago

First, is this all in nix? I haven't tested in nix. Similarly its been a few days since I've tested everything end to end.

EpsilonKu commented 6 months ago

Yeah, it's all in nixOS. I will update my system. Maybe it solves it.

mattwparas commented 6 months ago

I'm able to reproduce the error - I'll have a fix later today I hope

mattwparas commented 6 months ago

Sorry for the delay - if you pull the latest changes from my fork and config, then run cargo xtask code-gen from the root of the helix repo, things should be working (at least, they are for me :smile: )

cgahr commented 5 months ago

Should be fixed by #183

EpsilonKu commented 3 months ago

Working good.