You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
casperhart opened this issue
Nov 24, 2024
· 3 comments
Labels
bug[core label]panelFeedback for panels. Panels are the content that fills the docks.tasksterminalFeedback for terminal integration, shell commands, etc
As an example, take Zed's clippy task, which has use_new_terminal=false:
running task::Spawn --> clippy, the task opens in a terminal at the bottom of the window. Rerunning the task will reuse the same terminal as expected.
Move the terminal created by the clippy task from the bottom of the window to the right of the window
Rerun the clippy task. This creates a new terminal at the bottom of the window. Expected behaviour is to reuse the terminal which is now on the right hand side, rather than creating a new terminal on the bottom.
Screenshot:
Note that there are two clippy task terminals, when this task should have reused the same terminal.
The issue was that the function terminals_for_task in terminal_panel.rs will only check the 'terminals' pane for existing terminals for the given task, so once a terminal is moved out of that pane it's no longer seen.
I was able to get it working by looking at all panes in the workspace, however, while the task spawns in the correct terminal, a new terminal still gets created in the terminals pane. I haven't yet figured out why this is.
Ran into this as well, it's especially annoying for tasks like clippy or (in my case) rebuilding the project where you mainly care about the "OK" at the end and want a quick button for rerunning the task from the GUI. Having a full terminal pane open takes way more space than is needed there.
Also ran into this:
I am following a bevy tutorial (rust game engine), and put bacon in my regular terminal, but hit the play button to do the cargo run in a second "terminal". When I hit rerun, it constantly spins up a new terminal pane at the bottom:
bug[core label]panelFeedback for panels. Panels are the content that fills the docks.tasksterminalFeedback for terminal integration, shell commands, etc
Check for existing issues
Describe the bug / provide steps to reproduce it
As an example, take Zed's
clippy
task, which hasuse_new_terminal=false
:Screenshot:
![image](https://private-user-images.githubusercontent.com/39182232/389292197-8a548cf5-17e6-4321-bc44-7519a61c0c3b.png?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3Mzk4ODQ3NTcsIm5iZiI6MTczOTg4NDQ1NywicGF0aCI6Ii8zOTE4MjIzMi8zODkyOTIxOTctOGE1NDhjZjUtMTdlNi00MzIxLWJjNDQtNzUxOWE2MWMwYzNiLnBuZz9YLUFtei1BbGdvcml0aG09QVdTNC1ITUFDLVNIQTI1NiZYLUFtei1DcmVkZW50aWFsPUFLSUFWQ09EWUxTQTUzUFFLNFpBJTJGMjAyNTAyMTglMkZ1cy1lYXN0LTElMkZzMyUyRmF3czRfcmVxdWVzdCZYLUFtei1EYXRlPTIwMjUwMjE4VDEzMTQxN1omWC1BbXotRXhwaXJlcz0zMDAmWC1BbXotU2lnbmF0dXJlPWE1OWZiM2RmYzgyZTFhNDQ2MzdhZTMwZDc1ODhiNjBlNGZmYzYyMWYyMjFhMjM4MDAyMjY0MjM0MjhkYzc4OTUmWC1BbXotU2lnbmVkSGVhZGVycz1ob3N0In0.drNSqwigVwax4o-28Ow4h9qQxz9LchzJ-NEhnFuR0Wc)
Note that there are two clippy task terminals, when this task should have reused the same terminal.
Environment
Zed: v0.162.5 (Zed)
OS: macOS 14.1.0
Memory: 36 GiB
Architecture: aarch64
If applicable, add mockups / screenshots to help explain present your vision of the feature
No response
If applicable, attach your Zed.log file to this issue.
Zed.log
The text was updated successfully, but these errors were encountered: