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
Any invalid path with an exe extension will cause PS to show an error Uncaught class std::runtime_error while executing UXP TaskQueue item: Failed to create process and then PS itself will immediately crash.
@jardicc For sure, I was looking at going that route, but then I'd need to include a bunch of Node.js dependencies to get stuff working. Feel free to open a PR anytime though.
As a general update, got some progress on validating paths, but launching Windows processes this way still isn't working yet:
Any invalid path with an exe extension will cause PS to show an error
Uncaught class std::runtime_error while executing UXP TaskQueue item: Failed to create process
and then PS itself will immediately crash.Code to repro:
If the string doesn't end in ".exe", it will reject the command with a normal error message and PS will not crash.
Also, if I correctly point to a valid command line exe like ExifTool, I am getting crashes with strings that work in Terminal.
But I can run simple non-executable commands like:
As a bonus, it would be great to have Bolt return the console output for the last command / all commands and the exit code.
On MacOS, you can wrap your command in a final echo to return JSON with the exit code and the terminal output of the last command.
On Windows, it's trickier as the return string includes all commands in the same string, not just the last one.
The text was updated successfully, but these errors were encountered: