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
{{ message }}
Repository navigation
Bug: Tilde (~) in project_path not expanded, causes silent empty results #154
When passing a path containing ~ (e.g., "~/workspace/project") to CLDK.analysis(), the tilde is not expanded. This causes the analyzer to interpret ~ as a literal directory name relative to the current working directory, leading to:
Silent empty results (empty PyApplication with no classes/methods)
Creation of spurious directories like ./~/workspace/.../.codeanalyzer/
Path("~/...") does not expand ~ — it must be explicitly expanded via .expanduser(). The SDK was passing the path directly to Path() without expansion in:
Closing as fixed. project_path is now expanded before use: cldk/core.py:80 does Path(project_path).expanduser().resolve(), and the Python analyzer path does the same for the project dir, cache dir and analysis-json path (cldk/analysis/python/codeanalyzer/codeanalyzer.py:176,187,188). A ~-prefixed path no longer resolves to a non-existent directory, so the silent-empty-results failure is gone.
Activity
rahlk commentedon Aug 3, 2026
Closing as fixed.
project_pathis now expanded before use:cldk/core.py:80doesPath(project_path).expanduser().resolve(), and the Python analyzer path does the same for the project dir, cache dir and analysis-json path (cldk/analysis/python/codeanalyzer/codeanalyzer.py:176,187,188). A~-prefixed path no longer resolves to a non-existent directory, so the silent-empty-results failure is gone.