Title: launcher.bat could not pass on redirected input into the java program being debugged · Issue #756 · microsoft/vscode-java-pack · GitHub
Open Graph Title: launcher.bat could not pass on redirected input into the java program being debugged · Issue #756 · microsoft/vscode-java-pack
X Title: launcher.bat could not pass on redirected input into the java program being debugged · Issue #756 · microsoft/vscode-java-pack
Description: VS Code extensions for Java developers. Contribute to microsoft/vscode-java-pack development by creating an account on GitHub.
Open Graph Description: VS Code extensions for Java developers. Contribute to microsoft/vscode-java-pack development by creating an account on GitHub.
X Description: VS Code extensions for Java developers. Contribute to microsoft/vscode-java-pack development by creating an account on GitHub.
Opengraph URL: https://github.com/microsoft/vscode-java-pack
X: @github
Domain: github.com
IPv4 address: 140.82.114.4
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"launcher.bat could not pass on redirected input into the java program being debugged","articleBody":"If a developer would like to redirect a file as stdin to a java program to be debugged, one would set up a launch config in launch.json like this:\r\n```\r\n...\r\n{\r\n ...\r\n \"console\": \"integratedTerminal\",\r\n \"args\": [\"\u003c\", \"input.txt\"]\r\n}\r\n```\r\n\r\nWhile integratedTerminal indeed preserved the `\u003c input.txt` and passed it on unmodified, `input.txt` in the above example is redirected to *launcher.bat* as its stdin, instead of stdin for the java program to be launched.\r\n\r\nA quick fix would be to replace the `%*` line in *launcher.bat* by `more | %*` so that data streamed into stdin of *launcher.bat* would be piped into the java program being launched using the `more` program. Unfortunately, more would treat input as text and modify line breaks. It would be better if the developers of this extension could fix this issue properly, by perhaps NOT using an intermediate *launcher.bat* script (which only perform one additional function which is the changing of code-page) but directly launch the java program with input redirection specified in the \"args\" array performed on the java program directly.\r\n","author":{"url":"https://github.com/Nibikibaba","@type":"Person","name":"Nibikibaba"},"datePublished":"2021-09-26T00:34:42Z","url":"https://github.com/microsoft/vscode-java-pack/issues/756"}
| react-profiling | 0 |
| react-import-map | react,react-dom,react-dom/client,react-dom/profiling,react-is,react/compiler-runtime,react/jsx-dev-runtime,react/jsx-runtime,scheduler@b8488ee2c322 |
| route-pattern | /:user_id/:repository/issues/:id(.:format) |
| route-controller | issues |
| route-action | show |
| fetch-nonce | v2:e3636dbb-ff08-8750-aa88-63899bf80ed5 |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | C7B4:16CE16:12F7F:18E92:6B07458D |
| html-safe-nonce | fa8c1e14c38a94bc9966e673cd5afdcd179286eb0260381dee0e4c5ff166399a |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJDN0I0OjE2Q0UxNjoxMkY3RjoxOEU5Mjo2QjA3NDU4RCIsInZpc2l0b3JfaWQiOiI0ODMxNDQ4NTI3NDEyODcyNTg5IiwicmVnaW9uX2VkZ2UiOiJpYWQiLCJyZWdpb25fcmVuZGVyIjoiaWFkIn0= |
| visitor-hmac | bcabb11ef1ef711112c1dcd70a48473ad6cf73aff64016c63bdb23728ece6aff |
| hovercard-subject-tag | repository:104967329 |
| github-keyboard-shortcuts | repository,issues,copilot |
| google-site-verification | Apib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I |
| octolytics-url | https://collector.github.com/github/collect |
| analytics-location | / |
| fb:app_id | 1401488693436528 |
| apple-itunes-app | app-id=1477376905, app-argument=https://github.com/microsoft/vscode-java-pack/issues/756 |
| twitter:image | https://opengraph.githubassets.com/75e93af182a0a2f48f80d8d7242435f277f00e8e3f62647202a3908100b00e4b/microsoft/vscode-java-pack |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/75e93af182a0a2f48f80d8d7242435f277f00e8e3f62647202a3908100b00e4b/microsoft/vscode-java-pack |
| og:image:alt | VS Code extensions for Java developers. Contribute to microsoft/vscode-java-pack development by creating an account on GitHub. |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| hostname | github.com |
| expected-hostname | github.com |
| None | e906c59266d83416af9bcc8b61b9a96e70a3a84a066bd24f6671c193dd134a04 |
| turbo-cache-control | no-cache |
| go-import | github.com/microsoft/vscode-java-pack git https://github.com/microsoft/vscode-java-pack.git |
| octolytics-dimension-user_id | 6154722 |
| octolytics-dimension-user_login | microsoft |
| octolytics-dimension-repository_id | 104967329 |
| octolytics-dimension-repository_nwo | microsoft/vscode-java-pack |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | false |
| octolytics-dimension-repository_network_root_id | 104967329 |
| octolytics-dimension-repository_network_root_nwo | microsoft/vscode-java-pack |
| turbo-body-classes | logged-out env-production page-responsive |
| disable-turbo | false |
| browser-stats-url | https://api.github.com/_private/browser/stats |
| browser-errors-url | https://api.github.com/_private/browser/errors |
| release | a8418b8cd1f6ecc99bee02e3f7dde540702dd08c |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
| react-app-name | issues |
Links:
| Server | github.com |
| Content-Type | text/html; charset=utf-8 |
| Cache-Control | max-age=0, private, must-revalidate |
Viewport: width=device-width