Open amogus07 opened 1 year ago
Hi @amogus07 :wave:
I need to be able reproduce the issue, here are some tips to narrow it down:
Load only zpmod
module and check if the issue persists. If yes, then I need your machine and environment information so can re-reproduce the an issue. If no, then the issue is caused by something else, and you can find what it is by adding code snippets back to .zshrc
, but in parts until you find what exactly caused it.
@ss-o It seems starship is the culprit
So, is there anything I can do about it?
So, is there anything I can do about it?
I am guessing that Starhip or its related files are located where zpmod
module is missing permissions. For example, if Starship is located at /usr/bin/starship
, then migrating it to
~/.local/bin/starship
(and all other files if any) should solve the issue :thinking:
I am guessing that Starhip or its related files are located where
zpmod
module is missing permissions. For example, if Starship is located at/usr/bin/starship
, then migrating it to~/.local/bin/starship
(and all other files if any) should solve the issue 🤔
tried that, didn't work
@amogus07 have you tried to profile/debug the .zshrc
loading? E.g.:
Place the following at the top of .zshrc
:
[[ $ZSHRC_PROFILE -gt 0 ]] && zmodload zsh/zprof
Then execute ZSHRC_PROFILE=1 zsh
and run zprof > profile.txt
to write the details.
If you have no luck identifying the issue, you can try benchmark#method-1 or similar methods to pinpoint the issue.
Finally, you can run the docker container re-produce the issue, and share the instructions.
Could you explain how to set up the docker container for testing or provide some resources? I'm no familiar with docker.
You can use https://github.com/z-shell/playground as an example, if you need additional support let me know :dart:
I don't use starship and am also running into this.
Load only zpmod module and check if the issue persists. If yes, then I need your machine and environment information so can re-reproduce the an issue.
How can I verify that only the zpmod module is loaded? Use an empty zshrc/zprofile? That said AFAIK that's all that is loaded and it occurs.
zsh 5.9 via linuxbrew on ubuntu 22.04; if that helps / is needed.
Environment
Fedora Workstation 39
Reproduction steps
Expected behavior
zpmod operates normally according to README.md
Current behavior
Upon opening a new terminal session, the following message appears: "(eval):ZIModule_:1: can't write zwc file: /proc/self/fd/15.zwc"
Code snippet
Additional information
I don't use Zi
Self-service
Have you read the Contributing Guidelines?
Are you familiar with the Contributor Covenant Code of Conduct?
Contact Details
konstantinkreutz@gmail.com