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

Startup crashing error: failed to initialize logging #1617

Closed
jackbow opened this issue Feb 2, 2022 · 2 comments
Closed

Startup crashing error: failed to initialize logging #1617

jackbow opened this issue Feb 2, 2022 · 2 comments
Labels
A-helix-term Area: Helix term improvements C-bug Category: This is a bug

Comments

@jackbow
Copy link

jackbow commented Feb 2, 2022

Reproduction steps

asciicast
https://asciinema.org/a/466174

Environment

  • Platform: macOS 12.1, M1 chip
  • Terminal emulator: iterm2
  • Helix version: 0.6.0

Description

Using the hx command without sudo after a fresh install results in the following error:

Error: failed to initialize logging

Caused by:
    Permission denied (os error 13)

(also as a side note, hx -V just outputs "helix" with no version info)

~/.cache/helix/helix.log
2022-01-14T13:36:49.104 helix_view::editor [ERROR] Failed to initialize the LSP for `source.md` { LSP not defined }
2022-01-14T14:18:32.268 helix_view::editor [ERROR] Failed to initialize the LSP for `source.js` { LSP not defined }
2022-02-02T13:08:08.050 helix_view::editor [ERROR] Failed to initialize the LSP for `source.md` { LSP not defined }
@jackbow jackbow added the C-bug Category: This is a bug label Feb 2, 2022
@jackbow
Copy link
Author

jackbow commented Feb 2, 2022

chowning the .cache folder fixes it.
sudo chown -R $(whoami) /Users/$(whoami)/.cache/

related issues:
rust-lang/cargo#6757
lsd-rs/lsd#79

@kirawi kirawi added the A-helix-term Area: Helix term improvements label Feb 2, 2022
@sudormrfbin
Copy link
Member

Seems like this can be closed then ?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
A-helix-term Area: Helix term improvements C-bug Category: This is a bug
Projects
None yet
Development

No branches or pull requests

3 participants