nmatt commented on issue #8990: URL: https://github.com/apache/netbeans/issues/8990#issuecomment-3634553300
@mbien: What really happens is that when the TerminalContainerTopComponent was open when exiting NetBeans, it will always spawn a new non-pinned terminal when NetBeans is restarted, in addition to any pinned terminals, and even when the TC didn't contain any open terminal when NetBeans was exited. Since I always had a single non-pinned terminal open from the Projects view and didn't close it before exiting, it seemed that NetBeans was reopening that previous terminal. When the terminal TC is not open, and the user selects Window > IDE Tools > Terminal, then it makes sense that not only the TC is opened, but also a new terminal is spawned. NetBeans probably runs the same code when it automatically reopens the remembered TC upon restart (when there is `<state opened="true"/>` in _TerminalContainerTopComponent.wstcref_). However, this is confusing when in the previous NetBeans instance the only opened terminal was via Projects > Open in Terminal. There seems to be another bug regarding pinned terminals: When pinned terminals are automatically reopened upon restart, they are not displayed as pinned anymore (the context menu shows "Pin Tab..." instead of "Unpin Tab", and the pin icon is missing). Nevertheless, they are still pinned, in the sense that when closing them and then restarting NetBeans, they do again reappear (again not showing as pinned), in addition to the one non-pinned terminal that is opened. In my use case, while I could manually _cd_ to the correct directory within that reopened terminal, it's faster to close the terminal and use Open in Terminal on the project again. The subjective experience, however, is that a "useless" terminal is opened in the wrong directory, that I always have to close upon restart. -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: [email protected] For queries about this service, please contact Infrastructure at: [email protected] --------------------------------------------------------------------- To unsubscribe, e-mail: [email protected] For additional commands, e-mail: [email protected] For further information about the NetBeans mailing lists, visit: https://cwiki.apache.org/confluence/display/NETBEANS/Mailing+lists
