Title: Java Codeanalyzer fails when paths have spaces in them · Issue #144 · codellm-devkit/python-sdk · GitHub
Open Graph Title: Java Codeanalyzer fails when paths have spaces in them · Issue #144 · codellm-devkit/python-sdk
X Title: Java Codeanalyzer fails when paths have spaces in them · Issue #144 · codellm-devkit/python-sdk
Description: Describe the bug Java codeanalyzer fails when project or CLDK installation path has a space in it. To Reproduce Steps to reproduce the behavior: Run Java codeanalyzer.py against Java project with space in path e.g. /Users/user/My Project...
Open Graph Description: Describe the bug Java codeanalyzer fails when project or CLDK installation path has a space in it. To Reproduce Steps to reproduce the behavior: Run Java codeanalyzer.py against Java project with s...
X Description: Describe the bug Java codeanalyzer fails when project or CLDK installation path has a space in it. To Reproduce Steps to reproduce the behavior: Run Java codeanalyzer.py against Java project with s...
Opengraph URL: https://github.com/codellm-devkit/python-sdk/issues/144
X: @github
Domain: patch-diff.githubusercontent.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"Java Codeanalyzer fails when paths have spaces in them","articleBody":"**Describe the bug**\n\nJava `codeanalyzer` fails when project or CLDK installation path has a space in it.\n\n\n**To Reproduce**\nSteps to reproduce the behavior:\n1. Run Java codeanalyzer.py against Java project with space in path e.g. `/Users/user/My Projects/java-project`\nOR\n2. Install CLDK in a location with a space in the path e.g. `/Users/user/Library/Application Support/python3.12/site-packages/cldk`\n\n**Expected behavior**\nThe code analysis should be performed without failing\n\n**Logs**\n\nSee in the log that the path to the `codeanalyzer-2.3.5.jar` is split into two args in the command list.\n\n```\ncldk.utils.exceptions.exceptions.CodeanalyzerExecutionException: Command '['java', '-jar', '/Users/timrbula/Library/Application', 'Support/uv/tools/aster/lib/python3.12/site-packages/cldk/analysis/java/codeanalyzer/jar/codeanalyzer-2.3.5.jar', '-i', '/Users/timrbula/Workspaces/tmp/commons-cli', '--analysis-level=1', '-o', '/Users/timrbula/Workspaces/tmp/commons-cli/output/commons-cli', '-v']' returned non-zero exit status 1.\n```\n\n**Additional context**\n\nFile: [cldk/analysis/java/codeanalyzer/codeanalyzer.py](https://github.com/codellm-devkit/python-sdk/blob/main/cldk/analysis/java/codeanalyzer/codeanalyzer.py#L107)\n\nPotential fixes: \n\nQuote the path values in the f-string e.g. `codeanalyzer_args = codeanalyzer_exec + shlex.split(f\"-i '{Path(self.project_dir)}' --analysis-level={analysis_level} -o '{Path(self.analysis_json_path)}' -v\")`\n\nWrap the path in a `shlex.quote` call e.g. `shlex.split(f\"java -jar {shlex.quote(str(codeanalyzer_jar_file))}\")`\n\n\nOS: macOS 15.6.1\n","author":{"url":"https://github.com/timrbula","@type":"Person","name":"timrbula"},"datePublished":"2025-09-10T18:23:10.000Z","interactionStatistic":{"@type":"InteractionCounter","interactionType":"https://schema.org/CommentAction","userInteractionCount":0},"url":"https://github.com/144/python-sdk/issues/144"}
| 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:531fc42f-0862-db4a-9ca8-eb8984a24d3c |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | B13C:3140D:2F4E68C:3F93F9B:698DAF16 |
| html-safe-nonce | c490d7b204db4338dd47c310bab119df7bf8cb6ccfe474cf392c483a11d71052 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJCMTNDOjMxNDBEOjJGNEU2OEM6M0Y5M0Y5Qjo2OThEQUYxNiIsInZpc2l0b3JfaWQiOiIzNzM2NTk4MDI1NzU1MDEyODg2IiwicmVnaW9uX2VkZ2UiOiJpYWQiLCJyZWdpb25fcmVuZGVyIjoiaWFkIn0= |
| visitor-hmac | ceb138eb026599358ea2a08e218a44abbaa8fdeb70e2aef7ea01992729ea2e60 |
| hovercard-subject-tag | issue:3403466184 |
| 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/codellm-devkit/python-sdk/144/issue_layout |
| twitter:image | https://opengraph.githubassets.com/1155aa73c6a902f09c0ae19b5ab5006116eba2e1a29285d7048d8cf8e0051632/codellm-devkit/python-sdk/issues/144 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/1155aa73c6a902f09c0ae19b5ab5006116eba2e1a29285d7048d8cf8e0051632/codellm-devkit/python-sdk/issues/144 |
| og:image:alt | Describe the bug Java codeanalyzer fails when project or CLDK installation path has a space in it. To Reproduce Steps to reproduce the behavior: Run Java codeanalyzer.py against Java project with s... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | timrbula |
| hostname | github.com |
| expected-hostname | github.com |
| None | 8c7947c0c592efeab6162b9909ad11fa43bff8b0cb5ff43273dc25e41979d43e |
| turbo-cache-control | no-preview |
| go-import | github.com/codellm-devkit/python-sdk git https://github.com/codellm-devkit/python-sdk.git |
| octolytics-dimension-user_id | 197800760 |
| octolytics-dimension-user_login | codellm-devkit |
| octolytics-dimension-repository_id | 826048982 |
| octolytics-dimension-repository_nwo | codellm-devkit/python-sdk |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | false |
| octolytics-dimension-repository_network_root_id | 826048982 |
| octolytics-dimension-repository_network_root_nwo | codellm-devkit/python-sdk |
| 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 | b22a9fbf4dea601ec149a9e5362e0558df79b505 |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
Links:
Viewport: width=device-width