Skip to content

Add accessor for included pty instance #1109

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

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

laeubi
Copy link

@laeubi laeubi commented Mar 8, 2025

Currently if I get passed a Process from by a method call I can check it for the Spawner and can already call special methods like hangup(). But there is no way to get access the the PTY used to create the Spawner so for example one can't call PTY#setTerminalSize or query any other properties.

This now adds a new method pty() that returns this instance for further investigation and actions.

See

@laeubi laeubi force-pushed the add_accessor_for_pty branch from 7482fa4 to 8fa4a3e Compare March 8, 2025 08:23
@laeubi
Copy link
Author

laeubi commented Mar 8, 2025

The cleancheck fails with

[ERROR] Changes not staged for commit:
[ERROR] 	modified:    core/org.eclipse.cdt.core.native/about.properties

but I can't see how this relates to my commit...

Copy link

github-actions bot commented Mar 8, 2025

Test Results

   602 files   -    34     602 suites   - 34   13m 18s ⏱️ - 23m 12s
10 222 tests  - 1 217  10 198 ✅  - 1 097  24 💤  - 120  0 ❌ ±0 
10 260 runs   - 1 194  10 236 ✅  - 1 076  24 💤  - 118  0 ❌ ±0 

Results for commit 15be3b0. ± Comparison against base commit 04105c2.

This pull request removes 1217 tests.
org.eclipse.cdt.debug.gdbjtag.core.tests.jtagdevice.GDBJtagDeviceContributionTest ‑ testGdbJtagDeviceContribution
org.eclipse.cdt.debug.gdbjtag.core.tests.launch.GDBJtagLaunchTest ‑ testGdbJtagLaunch[gdb]
org.eclipse.cdt.debug.gdbjtag.core.tests.launch.GDBJtagLaunchTest ‑ testGdbJtagLaunch[gdbserver]
org.eclipse.cdt.tests.dsf.gdb.tests.CommandLineArgsTest ‑ testSettingArgumentsWithQuotes[gdb]
org.eclipse.cdt.tests.dsf.gdb.tests.CommandLineArgsTest ‑ testSettingArgumentsWithQuotes[gdbserver]
org.eclipse.cdt.tests.dsf.gdb.tests.CommandLineArgsTest ‑ testSettingArgumentsWithSpecialSymbols[gdb]
org.eclipse.cdt.tests.dsf.gdb.tests.CommandLineArgsTest ‑ testSettingArgumentsWithSpecialSymbols[gdbserver]
org.eclipse.cdt.tests.dsf.gdb.tests.CommandLineArgsTest ‑ testSettingArgumentsWithSymbols[gdb]
org.eclipse.cdt.tests.dsf.gdb.tests.CommandLineArgsTest ‑ testSettingArgumentsWithSymbols[gdbserver]
org.eclipse.cdt.tests.dsf.gdb.tests.CommandLineArgsTest ‑ testSettingArgumentsWithTabs[gdb]
…

♻️ This comment has been updated with latest results.

@laeubi
Copy link
Author

laeubi commented Apr 15, 2025

@jonahgraham @akurtakov any chance to push this forward?

@laeubi laeubi force-pushed the add_accessor_for_pty branch 2 times, most recently from 41e3ea7 to 53360da Compare April 15, 2025 05:50
@laeubi
Copy link
Author

laeubi commented Apr 15, 2025

It seems the cleanup is modify the about.properties file but I can't really reproduce this locally... any hint would be appreciated!

@laeubi laeubi force-pushed the add_accessor_for_pty branch 2 times, most recently from 1c747f8 to 36f56c8 Compare April 15, 2025 09:15
@laeubi
Copy link
Author

laeubi commented Apr 15, 2025

Looks like it was actually the Year that needs to be changed here...

Currently if I get passed a Process from by a method call I can check it
for the Spawner and can already call special methods like hangup(). But
there is no way to get access the the PTY used to create the Spawner so
for example one can't call PTY#setTerminalSize or query any other
properties.

This now adds a new method pty() that returns this instance for further
investigation and actions.
@laeubi laeubi force-pushed the add_accessor_for_pty branch from 36f56c8 to 15be3b0 Compare April 15, 2025 11:11
@laeubi
Copy link
Author

laeubi commented Apr 15, 2025

Build is finally green!

@stbischof
Copy link

+1

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

Successfully merging this pull request may close these issues.

2 participants