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

Fix issue #58 and issue #42: crashes on Windows 11 24H2 and wrong results on processes with spaces in name #62

Open
wants to merge 2 commits into
base: master
Choose a base branch
from

Conversation

BePo65
Copy link

@BePo65 BePo65 commented Nov 26, 2024

Solves issue #58 : On windows systems ps-tree uses WMIC to get the list of child processes. WMIC is deprecated since 2016. This PR replaces WMIC with powershell (as recommended by Microsoft),
I encountered this problem, when using the start-server-and-run package (see bahmutov/start-server-and-test#384).

Solves issue #42 - ps-treee returns wrong results when process name contains spaces (primarily on windows systems). Issue is caused by splitting a row into columns on spaces. Fixed by getting the column widths, when extracting the headers (all columns have fixed width).

index.js Outdated Show resolved Hide resolved
Co-authored-by: Mike McCready <[email protected]>
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