Repository navigation
Broken symlink in file task dir breaks mise #5975
Replies: 2 comments
|
I am also having similar problem. I am using a repository that install several tasks globally in my system using a symlink. If this symlink is broken by some reason (move linked directory, etc.), Install in After invalidating the symlink (rename repository path): |
|
This has now been fixed on File-task discovery now skips entries that fail with Valid file and directory symlinks continue to be followed. Permission errors, symlink loops, and other filesystem failures are still reported rather than being silently ignored. The global-task symlink scenario described in the follow-up comment was included in the regression coverage. This change was merged after v2026.8.0, so it should be available in the next release. AI-assisted — Tool: Codex; model: OpenAI/GPT-5; version: unavailable. |
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
mise version: 2025.8.7 linux-x64 (2025-08-06)
Emacs creates lock files to prevent simultaneous editing. These lock files are deliberately broken symlinks with a name starting with
.#, and point to a target of the formuser@host.pid:boot(which does not exist as a file, it's purely informational).Example, I'm editing my mise tasks (as file tasks) and have unsaved changes to the file
.mise/tasks/foo. Emacs creates a symlink.#foo.This broken symlink breaks various mise commands including
mise tasksandmise run, as well as tab completions (at all levels, not justtaskorrun, because tasks are surfaced as top-level shortcuts).Result of typing
mise TAB(the firstmiseafter the prompt is what I typed, the rest is what appears uponTAB):Changing my editor behaviour is out of the question because it defeats the purpose of lock files if different copies of the editor have different lock files.
Can I make mise ignore either broken symlinks, or files of a specific pattern like (glob)
.#*for everything internally?This situation isn't specific to Emacs; broken links can happen for various reasons. Ideally mise could handle these errors and emit warnings.
All reactions