Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Installation error #158

Closed
EpsilonKu opened this issue Feb 7, 2024 · 12 comments
Closed

Installation error #158

EpsilonKu opened this issue Feb 7, 2024 · 12 comments

Comments

@EpsilonKu
Copy link

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
Copy link
Owner

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

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

@EpsilonKu
Copy link
Author

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

@mattwparas
Copy link
Owner

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
Copy link
Author

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
Copy link
Author

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
Copy link
Author

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
Copy link
Owner

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
Copy link
Author

EpsilonKu commented Feb 9, 2024

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

@mattwparas
Copy link
Owner

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

@mattwparas
Copy link
Owner

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 😄 )

@cgahr
Copy link
Contributor

cgahr commented Mar 21, 2024

Should be fixed by #183

@EpsilonKu
Copy link
Author

Working good.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants