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

Get zsh: closing brace expected in IntelliJ IDEA Terminal when jonathan theme chosen #11039

Open
kamilmodest opened this issue Jul 7, 2022 · 5 comments
Labels
Bug Something isn't working

Comments

@kamilmodest
Copy link

Describe the bug

All works fine in iTerm2 and Terminal.
But when I start Terminal in IntelliJ IDEA, I get zsh: closing brace expected immediately after start and after each command execution.

And I see only part of prompt theme.
But if I comment row with ZSH_THEME="jonathan" in .zshrc or chose another theme, all works fine. So I make a conclusion that it related to this theme.

It's very strange because I have this issue on work laptop (MacBook Pro 13 M1 2020), but don't have on my private (the same) laptop.

Steps to reproduce

  1. Chose theme jonathan
  2. Open project in IntelliJ IDEA
  3. Open internal Terminal

Expected behavior

iTerm2:

┌─(~)───────────────────────────────────────────────(kamil.babaev@kamil:s002)─┐
└─(20:20:27)──>                                                 ──(Thu,Jul07)─┘

IDEA Terminal:

zsh: closing brace expected                                                                           
                                                                                      ──(Thu,Jul07)─┘

Screenshots and recordings

No response

OS / Linux distribution

macOS Monterey 12.4

Zsh version

5.8.1

Oh My Zsh version

master (4c82a2e)

Terminal emulator

IDEA internal Terminal

If using WSL on Windows, which version of WSL

No response

Additional context

IDEA version: 2022.1.3 Ultimate (Build #IU-221.5921.22, built on June 21, 2022)

Private laptop: macOS Monterey 12.3.1

@kamilmodest kamilmodest added the Bug Something isn't working label Jul 7, 2022
@kamilmodest kamilmodest changed the title Get zsh: closing brace expected in IntelliJ IDEA Terminal when jonathan theme chosen Get zsh: closing brace expected in IntelliJ IDEA Terminal when jonathan theme chosen Jul 7, 2022
@estebon312
Copy link

I have the same issue on a 2016 Macmini. The "brace" comment keeps returning.

@353055619
Copy link

353055619 commented Oct 8, 2022

I have the same issue on a MacBook Pro m1. It works fine in the Mac's built-in terminal, but always occurs when opening a local terminal in Termius. So I have to type zsh to start it.

Theme is Jonathan

@kamilmodest
Copy link
Author

I don't understand how and why, but problem fixes if call omz update or source ~/.zshrc in the IDEA console.
But the problem comes back when you close Terminal tab and open a new one. So you need call this command each time you open the IDE console.

zsh: closing brace expected                                                                                            
                                                                                                       ──(Mon,Oct10)─┘
zsh: closing brace expected                                                                                            
                                                                                                       ──(Mon,Oct10)─┘
zsh: closing brace expected                                                                                            
source ~/.zshrc                                                                                        ──(Mon,Oct10)─┘
┌─(~/Sources/savings-plan)─────────────────────────────────────────────────────────────────(kamil.babaev@kamil:s002)─┐
└─(13:45:39 on PE-16378_analytics-sp-updated)──>                                                       ──(Mon,Oct10)─┘
┌─(~/Sources/savings-plan)─────────────────────────────────────────────────────────────────(kamil.babaev@kamil:s002)─┐
└─(13:45:40 on PE-16378_analytics-sp-updated)──>                                                       ──(Mon,Oct10)─┘
┌─(~/Sources/savings-plan)─────────────────────────────────────────────────────────────────(kamil.babaev@kamil:s002)─┐
└─(13:45:44 on PE-16378_analytics-sp-updated)──>                                                       ──(Mon,Oct10)─┘

And noticed one more thing: when you resize the IDE window, the new zsh: closing brace expected errors happen

@kamilmodest
Copy link
Author

It's definitely the theme issue because once I changed the theme to af-magic, the problem has gone.

@snowloong
Copy link

It's definitely the theme issue because once I changed the theme to af-magic, the problem has gone.

I have the same issue. I think the profile .zshrc effected.
My profile cause the isse . like
before
append the file
export LC_ALL=en_US.UTF-8
export LANG=en_US.UTF-8
changed:
line1:export LC_ALL=en_US.UTF-8
line2:export LANG=en_US.UTF-8
then the issue was be resolved

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Bug Something isn't working
Projects
Status: Backlog
Development

No branches or pull requests

4 participants