Skip to content

Fix Failed to load environment variables error message after self-update on Linux#46367

Merged
Veykril merged 1 commit intozed-industries:mainfrom
sourcefrog:46365-deleted-exe
Jan 13, 2026
Merged

Fix Failed to load environment variables error message after self-update on Linux#46367
Veykril merged 1 commit intozed-industries:mainfrom
sourcefrog:46365-deleted-exe

Conversation

@sourcefrog
Copy link
Copy Markdown
Contributor

@sourcefrog sourcefrog commented Jan 8, 2026

Closes #46365

The behavior I'm trying to handle here is documented in https://man7.org/linux/man-pages/man5/proc_pid_exe.5.html.

@merlinz01
points to some other alternatives but they don't seem necessary or justified here.

Testing

I've manually replaced the binary of a process running this build, to simulate an update, and then opened a new tree and I don't see the error message.

I don't know if there's a reasonable way to unit-test this? Let me know. It seems like it would require using something like rusty-fork to spawn a specific binary for the test, which I don't think I see already in the Zed tree and perhaps it would be overkill to add just for this?

Release Notes:

  • Fixed "Failed to load environment variables" after applying an update

@cla-bot cla-bot Bot added the cla-signed The user has signed the Contributor License Agreement label Jan 8, 2026
@github-actions github-actions Bot added the community champion Issues filed by our amazing community champions! 🫶 label Jan 8, 2026
@sourcefrog sourcefrog changed the title Remove ' (deleted)' suffix from current_exe name Fix get_shell_safe_zed_path on Linux when the current binary has been replaced Jan 8, 2026
@zed-industries-bot
Copy link
Copy Markdown
Contributor

Messages
📖

This PR includes links to the following GitHub Issues: #46365
If this PR aims to close an issue, please include a Closes #ISSUE line at the top of the PR body.

Generated by 🚫 dangerJS against 03a29a2

@sourcefrog sourcefrog changed the title Fix get_shell_safe_zed_path on Linux when the current binary has been replaced Fix Failed to load environment variables error message after self-update on Linux Jan 11, 2026
@sourcefrog
Copy link
Copy Markdown
Contributor Author

@SomeoneToIgnore if it's no trouble, could you take a look or assign someone? Thanks!

@Veykril Veykril merged commit 271bcf6 into zed-industries:main Jan 13, 2026
24 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

cla-signed The user has signed the Contributor License Agreement community champion Issues filed by our amazing community champions! 🫶

Projects

None yet

Development

Successfully merging this pull request may close these issues.

"Failed to load environment variables" with ".local/zed.app/libexec/zed-editor (deleted): command not found"

3 participants