Title: Fails to format files with a space in the path · Issue #421 · google/google-java-format · GitHub
Open Graph Title: Fails to format files with a space in the path · Issue #421 · google/google-java-format
X Title: Fails to format files with a space in the path · Issue #421 · google/google-java-format
Description: I am running google-java-format on a Windows machine. When I provide it a file (with the "@" syntax) containing a list of files to format, it will fail to format files that contain a space in the path. Example: >type files.lst C:\path\wi...
Open Graph Description: I am running google-java-format on a Windows machine. When I provide it a file (with the "@" syntax) containing a list of files to format, it will fail to format files that contain a space in the p...
X Description: I am running google-java-format on a Windows machine. When I provide it a file (with the "@" syntax) containing a list of files to format, it will fail to format files that contain a spac...
Opengraph URL: https://github.com/google/google-java-format/issues/421
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"Fails to format files with a space in the path","articleBody":"I am running google-java-format on a Windows machine. When I provide it a file (with the \"@\u003cfile>\" syntax) containing a list of files to format, it will fail to format files that contain a space in the path. Example:\r\n\r\n```\r\n>type files.lst\r\nC:\\path\\with\\a space\\Some.java\r\n\r\n>java -jar google-java-format.jar @files.lst\r\nSkipping non-Java file: C:\\path\\with\\a\r\nspace\\Some.java: could not read file: space\\Some.java\r\n```\r\n\r\nPlacing double-quotes around the path does not work, either.\r\n\r\nIt _does_, however, handle passing in the filenames in the command string, provided they are surrounded by double-quotes, e.g.:\r\n\r\n```\r\n>java -jar google-java-format.jar \"C:\\path\\with\\a space\\Some.java\"\r\n```","author":{"url":"https://github.com/austin-bowen-iss","@type":"Person","name":"austin-bowen-iss"},"datePublished":"2019-12-04T13:37:48Z","url":"https://github.com/google/google-java-format/issues/421"}
| 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 | /_view_fragments/issues/show/:user_id/:repository/:id/issue_layout(.:format) |
| route-controller | voltron_issues_fragments |
| route-action | issue_layout |
| fetch-nonce | v2:2c3d4698-0584-a167-fde2-fa8cd5933e3b |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | D186:31222B:2B4ED8:3B12E0:6AFBB254 |
| html-safe-nonce | a0612764deae7915e253c759d4200934619cb4b5ee95d7a8eeee631b788a18f2 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJEMTg2OjMxMjIyQjoyQjRFRDg6M0IxMkUwOjZBRkJCMjU0IiwidmlzaXRvcl9pZCI6IjU4NjQ0NzYxNTMwOTUxMDcxNTciLCJyZWdpb25fZWRnZSI6ImlhZCIsInJlZ2lvbl9yZW5kZXIiOiJpYWQifQ== |
| visitor-hmac | 45caee6928673af5f6638d3acb57c152c290ca40a609050d8826d3b6454cd0f9 |
| hovercard-subject-tag | issue:532690325 |
| 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/_view_fragments/issues/show/google/google-java-format/421/issue_layout |
| twitter:image | https://opengraph.githubassets.com/486e368720b54e7e8a07fed381d036a1d24e66f0b42e6e9ad7570245857ab8a6/google/google-java-format/issues/421 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/486e368720b54e7e8a07fed381d036a1d24e66f0b42e6e9ad7570245857ab8a6/google/google-java-format/issues/421 |
| og:image:alt | I am running google-java-format on a Windows machine. When I provide it a file (with the "@" syntax) containing a list of files to format, it will fail to format files that contain a space in the p... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | austin-bowen-iss |
| hostname | github.com |
| expected-hostname | github.com |
| None | 2b2ef9c1578c18d8ed27027940544c958743213cf4461659f14d3ccdf51e162c |
| turbo-cache-control | no-preview |
| go-import | github.com/google/google-java-format git https://github.com/google/google-java-format.git |
| octolytics-dimension-user_id | 1342004 |
| octolytics-dimension-user_login | |
| octolytics-dimension-repository_id | 35448780 |
| octolytics-dimension-repository_nwo | google/google-java-format |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | false |
| octolytics-dimension-repository_network_root_id | 35448780 |
| octolytics-dimension-repository_network_root_nwo | google/google-java-format |
| 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 | e4cce0e99cf61481a318ff12c2e8580153a6c7c6 |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
| react-app-name | issues |
Links:
Viewport: width=device-width