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

Cannot open shell prompt after install #12478

Open
kanwarplaha opened this issue Jun 4, 2024 · 2 comments
Open

Cannot open shell prompt after install #12478

kanwarplaha opened this issue Jun 4, 2024 · 2 comments
Assignees
Labels
Area: init Issue or PR related to the initializer Status: needs repro Bug that doesn't have a reproduction Support Request for support

Comments

@kanwarplaha
Copy link

kanwarplaha commented Jun 4, 2024

I cloned the repo from Github and ran the "manual install" steps. However, when .zshrc is executed, it stops/hangs at the following:

+/home/user/.zshrc:12> ZSH_THEME=robbyrussell 
+/home/user/.zshrc:74> plugins=( git ) 
+/home/user/.zshrc:76> source /home/user/.oh-my-zsh/oh-my-zsh.sh
+/home/user/.oh-my-zsh/oh-my-zsh.sh:8> [ -t 1 ']'
+/home/user/.oh-my-zsh/oh-my-zsh.sh:11> [ -n 5.9 ']'
+/home/user/.oh-my-zsh/oh-my-zsh.sh:43> [[+/home/user/.oh-my-zsh/oh-my-zsh.sh:43> emulate

I am running this on KaOS Linux if that matters.

@carlosala
Copy link
Member

Hi! Could you send the full zshrc and the complete init log? If you don't want to disclose them you can send them to [email protected]
It'd be great to know as well the version of zsh that you're running (zsh --version)

@carlosala carlosala self-assigned this Jun 5, 2024
@mcornella mcornella added Area: init Issue or PR related to the initializer Support Request for support Status: needs repro Bug that doesn't have a reproduction labels Jun 12, 2024
@mcornella
Copy link
Member

Zsh version is 5.9. Looks like it hangs at the emulate call in

ohmyzsh/oh-my-zsh.sh

Lines 43 to 46 in 35a6725

[[ "$(emulate)" = zsh ]] || {
printf "$(omz_f 1 31)Error:$(omz_f 22) Oh My Zsh can't be loaded in \`$(emulate)\` emulation mode.$(omz_f 0)\n" >&2
return 1
}

It would be good to confirm whether $(emulate) is the issue, and having a trace of what zsh is doing when calling it.

First, run the command below to see if zsh hangs without OMZ at that point as well

zsh -dfxvic 'echo $(emulate)'

Healthy output would be something like this and it should finish without hanging:

echo $(emulate)
+zsh:1> emulate
+zsh:1> echo zsh
zsh

If it hangs, also install strace and run it against the command to see in which syscall it hangs:

strace zsh -dfxvic 'echo $(emulate)'

Thanks!

@carlosala carlosala assigned mcornella and unassigned carlosala Jun 12, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Area: init Issue or PR related to the initializer Status: needs repro Bug that doesn't have a reproduction Support Request for support
Projects
Status: Waiting reply
Development

No branches or pull requests

3 participants