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

CherryTree Codebox execution with Internal terminal not working. #2199

Closed
Fran-P-github opened this issue Jan 14, 2023 · 10 comments
Closed

CherryTree Codebox execution with Internal terminal not working. #2199

Fran-P-github opened this issue Jan 14, 2023 · 10 comments

Comments

@Fran-P-github
Copy link

General information

  • OS: Ubuntu 20.04.5 LTS x86_64

  • Kernel: 5.15.0-53-generic

  • Shell: zsh 5.8

  • Terminal: gnome-terminal

  • XTerm: XTerm(353)

  • CherryTree: 0.99.53

Issue

Hello, I'm new using CherryTree, I just downloaded it yesterday and I wanted to test it's features, I tried to test the code box and see if it would work. When I tried to run a simple Hello world! program in Python3 with the internal terminal it seems that somehow the code hangs on and I can't see any output (note that I tested it without the internal terminal option and it worked perfectly), I just see the command that is put into the Xterm terminal, which is the default one: python3 <tmp_src_path>. Just in case, in the preferences section I also have the default command which is: xterm -hold -geometry 180x45 -e "<command>" &

I also noticed that when I run the program with the internal terminal and I don't see any output, if I press the reset button the program tries to kill a process that apparently doesn't exist, my computer starts doing noise and some programs don't work properly, for example "Screen" which is a terminal emulator / multiplexer just like XTerm.

Screenshots

External terminal (Works)

External terminal output

External terminal debug

Internal terminal (Doesn't work)

Internal terminal no output

Internal terminal debug messages

At this point I'm honestly clueless of what could cause the error and how could I fix this, if I'm being dumb and missing something silly I'm really sorry for the waste of time, any suggestions / ideas / instructions to fix this error would be appreciated.

Thanks in advance and happy new year.

@giuspen
Copy link
Owner

giuspen commented Jan 15, 2023

Hello @Fran-P-github and happy new year to you.
Can you specify how you installed cherrytree?
e.g. ppa/snap/appimage/flatpak/...

@Fran-P-github
Copy link
Author

Hello @giuspen I installed cherrytree following the Ubuntu instructions in the readme file, I copied all the commands to install the dependencies and documentation, and compile and run cherrytree. I'm not really sure which type of installation that would be called.

@giuspen
Copy link
Owner

giuspen commented Jan 15, 2023

Ok. Could you try to download and run the AppImage from https://www.giuspen.net/cherrytree/#downl and report if it behaves the same?

@Fran-P-github
Copy link
Author

Sure, I downloaded the AppImage, executed it and it behaved exactly the same.

@giuspen
Copy link
Owner

giuspen commented Jan 15, 2023

Could you temporarily restore the default shell in your system (I suppose dash or bash) and try again? I will also try zsh to see if that is causing the issue but I'm having some connectivity issues at the moment

@Fran-P-github
Copy link
Author

Fran-P-github commented Jan 15, 2023

I just changed the default shell to bash and now the internal terminal works perfectly! The reset button also works.

@giuspen
Copy link
Owner

giuspen commented Jan 15, 2023

Ok great I will push something later or tomorrow that I would like you to try after restoring your favourite shell zsh. I'll let you know when I push the change

@Fran-P-github
Copy link
Author

Sure @giuspen, thank you so much for your time and help.

@giuspen
Copy link
Owner

giuspen commented Jan 15, 2023

Thanks to you for reporting @Fran-P-github . I pushed a commit that fixed the issue for me after I also tried to use zsh and the integrated terminal wasn't working anymore (it didn't hang for me though).
It would be useful if you could git pull, rebuild and let me know if it works for you as well with zsh set as your default shell.

@Fran-P-github
Copy link
Author

Fran-P-github commented Jan 15, 2023

I rebuilt cherrytree and the integrated terminal with zsh now works!! But, (I want to mention it so you know, but I don't pretend you to fix it because the main issue now works fine) I think due to the package "powerlevel10k" that I've installed, which uses its own characters and colors doesn't work and ends showing the code that it should use to work, so it looks like this:

How it should look:
powerlevel10k original look

How it looks in the integrated terminal:
powerlevel10k internal terminal

But of course, again, I don't pretend you to fix this because it works perfectly, I just want to report it so you know about it.

Edit: Never mind, I opened cherrytree again and now the terminal doesn't output all those characters.
Thanks again for your help by the way.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants