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

Can not start helix: Failed to initialize logging #7790

Closed
glennDittmann opened this issue Jul 31, 2023 · 4 comments
Closed

Can not start helix: Failed to initialize logging #7790

glennDittmann opened this issue Jul 31, 2023 · 4 comments
Labels
C-bug Category: This is a bug

Comments

@glennDittmann
Copy link

Summary

When trying to run helix I get:

Error: failed to initialize logging

Caused by:
    No such file or directory (os error 2)

Installed with brew on macOS. I also tried reinstalling, but the problem persists.

So it appears to me that some (log) files are missing. But wouldn't helix create them if there are none?
Thanks for any help in advance.

Reproduction Steps

I tried this:

  1. hx

I expected this to happen:

Helix starts running.

Instead, this happened:

Error: failed to initialize logging

Caused by:
    No such file or directory (os error 2)

Helix log

~/.cache/helix/helix.log
please provide a copy of `~/.cache/helix/helix.log` here if possible, you may need to redact some of the lines

Platform

macOs

Terminal Emulator

Alacritty (with Zellij)

Helix Version

helix 23.05 (7f5940b)

@glennDittmann glennDittmann added the C-bug Category: This is a bug label Jul 31, 2023
@glennDittmann
Copy link
Author

Okay manually creating a directory ~/.cache/helix with an empty helix.log resolved this. But still it seems that helix should have done that, right?

@the-mikedavis
Copy link
Member

We do attempt to create the ~/.cache/helix directories if they don't exist:

pub fn initialize_log_file(specified_file: Option<PathBuf>) {
let log_file = specified_file.unwrap_or_else(default_log_file);
ensure_parent_dir(&log_file);
LOG_FILE.set(log_file).ok();
}

Any errors are discarded though, so that probably failed with a permissions problem on the dir.

@glennDittmann
Copy link
Author

Hmm yeah I thought so, that's weird; hard to reproduce. But thanks anyways :D

KhazAkar added a commit to KhazAkar/helix that referenced this issue Mar 12, 2024
pascalkuthe pushed a commit that referenced this issue Mar 19, 2024
* Adding initial support for ada language, based off #7790 PR from tomekw

* More translation to helix-specific tree-sitter scm labels, add ada gpr switch to ada LSP

* Generate ada in lang-support.md using cargo xtask docgen

* Update tree-sitter definitions according to comments

* Remove .gpr glob from languages.toml

* Fix unit in languages.toml for ada, update locals.scm to helix needs
Desdaemon pushed a commit to Desdaemon/helix that referenced this issue Mar 26, 2024
* Adding initial support for ada language, based off helix-editor#7790 PR from tomekw

* More translation to helix-specific tree-sitter scm labels, add ada gpr switch to ada LSP

* Generate ada in lang-support.md using cargo xtask docgen

* Update tree-sitter definitions according to comments

* Remove .gpr glob from languages.toml

* Fix unit in languages.toml for ada, update locals.scm to helix needs
postsolar pushed a commit to postsolar/helix that referenced this issue Apr 4, 2024
* Adding initial support for ada language, based off helix-editor#7790 PR from tomekw

* More translation to helix-specific tree-sitter scm labels, add ada gpr switch to ada LSP

* Generate ada in lang-support.md using cargo xtask docgen

* Update tree-sitter definitions according to comments

* Remove .gpr glob from languages.toml

* Fix unit in languages.toml for ada, update locals.scm to helix needs
postsolar pushed a commit to postsolar/helix that referenced this issue Apr 4, 2024
* Adding initial support for ada language, based off helix-editor#7790 PR from tomekw

* More translation to helix-specific tree-sitter scm labels, add ada gpr switch to ada LSP

* Generate ada in lang-support.md using cargo xtask docgen

* Update tree-sitter definitions according to comments

* Remove .gpr glob from languages.toml

* Fix unit in languages.toml for ada, update locals.scm to helix needs
postsolar pushed a commit to postsolar/helix that referenced this issue Apr 4, 2024
* Adding initial support for ada language, based off helix-editor#7790 PR from tomekw

* More translation to helix-specific tree-sitter scm labels, add ada gpr switch to ada LSP

* Generate ada in lang-support.md using cargo xtask docgen

* Update tree-sitter definitions according to comments

* Remove .gpr glob from languages.toml

* Fix unit in languages.toml for ada, update locals.scm to helix needs
postsolar pushed a commit to postsolar/helix that referenced this issue Apr 20, 2024
* Adding initial support for ada language, based off helix-editor#7790 PR from tomekw

* More translation to helix-specific tree-sitter scm labels, add ada gpr switch to ada LSP

* Generate ada in lang-support.md using cargo xtask docgen

* Update tree-sitter definitions according to comments

* Remove .gpr glob from languages.toml

* Fix unit in languages.toml for ada, update locals.scm to helix needs
mtoohey31 pushed a commit to mtoohey31/helix that referenced this issue Jun 2, 2024
* Adding initial support for ada language, based off helix-editor#7790 PR from tomekw

* More translation to helix-specific tree-sitter scm labels, add ada gpr switch to ada LSP

* Generate ada in lang-support.md using cargo xtask docgen

* Update tree-sitter definitions according to comments

* Remove .gpr glob from languages.toml

* Fix unit in languages.toml for ada, update locals.scm to helix needs
Vulpesx pushed a commit to Vulpesx/helix that referenced this issue Jun 7, 2024
* Adding initial support for ada language, based off helix-editor#7790 PR from tomekw

* More translation to helix-specific tree-sitter scm labels, add ada gpr switch to ada LSP

* Generate ada in lang-support.md using cargo xtask docgen

* Update tree-sitter definitions according to comments

* Remove .gpr glob from languages.toml

* Fix unit in languages.toml for ada, update locals.scm to helix needs
@nikaro
Copy link
Contributor

nikaro commented Jul 8, 2024

I had the same issue, for whatever reason the ~/.cache and ~/.cache/helix folders had been created with root as owner.

Edit: maybe because the first thing i did was running helix as root to edit a system config 😅

smortime pushed a commit to smortime/helix that referenced this issue Jul 10, 2024
* Adding initial support for ada language, based off helix-editor#7790 PR from tomekw

* More translation to helix-specific tree-sitter scm labels, add ada gpr switch to ada LSP

* Generate ada in lang-support.md using cargo xtask docgen

* Update tree-sitter definitions according to comments

* Remove .gpr glob from languages.toml

* Fix unit in languages.toml for ada, update locals.scm to helix needs
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
C-bug Category: This is a bug
Projects
None yet
Development

No branches or pull requests

3 participants