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

Merged
merged 1 commit into from
Apr 23, 2025

Conversation

laeubi
Copy link
Contributor

@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
Contributor 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
Contributor 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
Contributor 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
Contributor 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
Contributor Author

laeubi commented Apr 15, 2025

Build is finally green!

@stbischof
Copy link

+1

@laeubi
Copy link
Contributor Author

laeubi commented Apr 17, 2025

@jonahgraham is there anything left or can this be merged?

@jonahgraham jonahgraham merged commit af359a7 into eclipse-cdt:main Apr 23, 2025
5 checks passed
@jonahgraham
Copy link
Member

Thanks @laeubi for this fix - a build that includes this should be published to SimRel on Monday if all goes to plan. The continuous build is here https://download.eclipse.org/tools/cdt/builds/cdt/main/ and (assuming enough services stay up - https://www.eclipsestatus.io/) should be populated in a few hours.

Note that the @since will be updated to the correct value when I resolve #1107

@laeubi
Copy link
Contributor Author

laeubi commented Apr 24, 2025

a build that includes this should be published to SimRel on Monday if all goes to plan.

This sounds great! will it be the 12.1.0 release then? Or are there special Milestone releases?

@jonahgraham
Copy link
Member

This sounds great! will it be the 12.1.0 release then? Or are there special Milestone releases?

It will be 12.1.0 M2 - the 12.1.0 release is planned to line up with 2025-06 release.

However, I am very open to the idea of doing the 12.1.0 release early (with 2025-06 M3 or RC1) if that helps dependency management. Please let me know and I can bring to the CDT call on 14 May - agenda: #1157.

@laeubi
Copy link
Contributor Author

laeubi commented May 7, 2025

@akurtakov @merks If I reference some CDT site in the platform target, would it be enough if we have the stable site at RC1? If yes this sounds like a good idea and I can test with the 12.1.0 M2 first.

@akurtakov
Copy link
Contributor

What would the CDT in platform target be needed for ? Haven't you moved what's needed to platform?

@laeubi
Copy link
Contributor Author

laeubi commented May 7, 2025

@akurtakov I only moved the UI for displaying a VT100 terminal, but we still need to launch the process in a PTY what is org.eclipse.cdt.core.native + native fragments.

@akurtakov
Copy link
Contributor

Eclipse Platform p2 repo is supposed to be standalone - aka to not depend on any other p2 repo. If your changes keep things that way - fine by me.

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.

4 participants