Skip to content

Delphi search paths: add src/pkg/shell to dproj + sample .cfgs - #234

Merged
FMXExpress merged 1 commit into
mainfrom
claude/dcc64-shell-backend-search-path
Jun 12, 2026
Merged

FMXExpress merged 1 commit into
mainfrom
claude/dcc64-shell-backend-search-path

Conversation

@FMXExpress

Copy link
Copy Markdown
Owner

dcc64 F2613 Unit 'PasClaw.Shell.Backend' not found at PasClaw.Config.pas:17.

PR #233 added the src/pkg/shell/ directory and registered the four shell-backend units as DCCReference entries in PasClaw.dproj, but missed adding the directory to DCC_UnitSearchPath. dcc64 needs both: DCCReference is the IDE's source-tree listing, the unit search path is what the compiler walks to resolve uses. FPC was unaffected because the repo-root Makefile already had src/pkg/shell added in PR #233.

Added ..\pkg\shell to:

  • src/pasclaw/PasClaw.dproj (the main binary build)
  • samples/component-console/SampleServer.dproj / SampleConsole.dproj / SampleSimple.dproj (they uses PasClaw.Config transitively via PasClaw.Component)
  • samples/component-console/dcc32.cfg + dcc64.cfg
  • samples/component-console/Makefile

Test plan

  • FPC make smoke clean (repo-root Makefile already had the path).
  • Full make test green (35 targets).
  • dcc64 Windows / Linux: PasClaw.Config.pas(17) F2613 should now resolve.

https://claude.ai/code/session_01TBcLtmpj7dqA5tyFbGnQon


Generated by Claude Code

dcc64 F2613 'Unit PasClaw.Shell.Backend not found' at the
PasClaw.Config interface uses clause. PR #233 added the
src/pkg/shell/ directory and registered the four shell-backend
units as DCCReference entries, but missed adding the directory to
the DCC_UnitSearchPath. dcc64 needs both -- DCCReference is the
IDE's source-tree listing, the unit search path is what the
compiler walks to resolve `uses`.

Added ..\pkg\shell to:
  - src/pasclaw/PasClaw.dproj (the main binary build)
  - samples/component-console/SampleServer.dproj
  - samples/component-console/SampleConsole.dproj
  - samples/component-console/SampleSimple.dproj
  - samples/component-console/dcc32.cfg + dcc64.cfg
  - samples/component-console/Makefile

FPC build untouched (its repo-root Makefile already had src/pkg/shell
from PR #233); make smoke + full make test green.

https://claude.ai/code/session_01TBcLtmpj7dqA5tyFbGnQon
@FMXExpress
FMXExpress merged commit 7493d56 into main Jun 12, 2026

@chatgpt-codex-connector chatgpt-codex-connector Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: e32305ef19

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

Comment thread src/pasclaw/PasClaw.dproj
<DCC_UsePackage>$(DCC_UsePackage)</DCC_UsePackage>
<!-- Every src/pkg/* directory + src/cmd, relative to src/pasclaw/ -->
<DCC_UnitSearchPath>..\cmd;..\pkg\cliui;..\pkg\utils;..\pkg\logger;..\pkg\config;..\pkg\json;..\pkg\providers;..\pkg\stream;..\pkg\tokenizer;..\pkg\tools;..\pkg\mcp;..\pkg\gateway;..\pkg\channels;..\pkg\crypto;..\pkg\net;..\pkg\search;..\pkg\cron;..\pkg\skills;..\pkg\checkpoints;..\pkg\condense;..\pkg\session;..\pkg\identity;..\pkg\agent;..\pkg\memory;..\pkg\memory\localvector;..\pkg\kb;..\pkg\updater;..\pkg\membench;..\pkg\tui;..\pkg\platform;..\pkg\hashline;..\pkg\component;..\pkg\markdown;..\pkg\vendor\dmvcframework;$(DCC_UnitSearchPath)</DCC_UnitSearchPath>
<DCC_UnitSearchPath>..\cmd;..\pkg\cliui;..\pkg\utils;..\pkg\logger;..\pkg\config;..\pkg\json;..\pkg\providers;..\pkg\stream;..\pkg\tokenizer;..\pkg\tools;..\pkg\mcp;..\pkg\gateway;..\pkg\channels;..\pkg\crypto;..\pkg\net;..\pkg\search;..\pkg\cron;..\pkg\skills;..\pkg\checkpoints;..\pkg\condense;..\pkg\session;..\pkg\identity;..\pkg\agent;..\pkg\memory;..\pkg\memory\localvector;..\pkg\kb;..\pkg\updater;..\pkg\membench;..\pkg\tui;..\pkg\platform;..\pkg\hashline;..\pkg\component;..\pkg\markdown;..\pkg\shell;..\pkg\vendor\dmvcframework;$(DCC_UnitSearchPath)</DCC_UnitSearchPath>

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

P2 Badge Keep the direct dcc64 path in sync

When build-delphi.bat falls back to dcc64.exe because msbuild.exe is not on PATH, it compiles src\pasclaw\PasClaw.dpr with its own UNIT_PATH at build-delphi.bat:45, and that list still lacks src\pkg\shell. Since PasClaw.Config uses PasClaw.Shell.Backend, that documented fallback path continues to fail with the same F2613 even though the .dproj path is fixed here; add the shell directory to the batch helper as well.

Useful? React with 👍 / 👎.

FMXExpress pushed a commit that referenced this pull request Jun 13, 2026
Both changelog files were stuck at the 2026-06-10 TUI / background-
subagent / session_search / tool-RPC entries. ~7 weeks of merged
PRs (#214 through #244) had landed without a corresponding entry in
either file -- the git log was the only record of features like the
knowledgebase, inbound MCP server mode, checkpoints + /undo,
heartbeat daemon, shell backends (local | docker), send_message,
promptware defense, Windows shell-output encoding fixes, fs_grep
ripgrep optimisations, OpenTelemetry traces, and `pasclaw agent
--quiet`.

Added (newest first):

  2026-06-13
    #244  agent --quiet log-level clamp

  2026-06-12
    #243  dcc64 search path + agent --quiet / -q
    #242  OpenTelemetry traces (OTLP/HTTP+JSON)
    #241  fs_grep tier 5+6 (byte walker + Boyer-Moore-Horspool)
    #240  fs_grep tier 1-4 (deferred hash + skip-dirs + binary
          sniff + size cap)

  2026-06-11
    #239  Windows shell output: auto-detect UTF-8 vs OEM
    #238  Hashline fs_read header mojibake fix (¶ vs ¶)
    #237  Windows shell output: OEM codepage decode

  2026-06-10
    #233  Shell backends (local | docker via IShellBackend)
    #232  Heartbeat daemon + reversible condensation (CCR)
    #230  send_message tool + condenser families + promptware
          defense + task-aware MEMORY.md slicing

  2026-06-09
    #223  /goal Ralph loop + judge model + JSON-aware condenser
    #222  /undo wired into agent + sample dprojs
    #221  Checkpoints (auto-snapshot + TUI /undo)
    #220  mcp catalog: lenient hub projector
    #219  mcp: SSE / Streamable HTTP / stdio hub transports
    #218  Inbound MCP server mode
    #217  onboard: offer to index docs into the knowledgebase
    #214  Knowledgebase (RAG over operator-curated docs)

Skipped from this changelog (build-system / Delphi-fix / FPC-fix
PRs visible in the git log but not user-facing features):
#215, #216, #224, #225, #226, #227, #228, #229, #231, #234, #236.

Both files (README.md and docs/changelog.md) updated with the same
entries -- intentional mirror so a reader on either surface sees
the same history. Same prose in both; same footnote refs at the
bottom.

Validated: every [#N] reference in both files has a matching [#N]:
URL footnote (no broken links).
khongten001 pushed a commit to khongten001/PasClaw that referenced this pull request Jul 13, 2026
Codex P2 on PR FMXExpress#234, legit. PR FMXExpress#234 fixed the IDE/msbuild path via
PasClaw.dproj's DCC_UnitSearchPath but missed the dcc64.exe fallback
in build-delphi.bat -- its hard-coded UNIT_PATH still lacked
src\pkg\shell, so the documented "msbuild.exe not on PATH" fallback
continued to F2613 on PasClaw.Shell.Backend through PasClaw.Config's
new uses-line.

Added src\pkg\shell to both:
  - build-delphi.bat (the actual review target)
  - build-fpc.bat (same class of bug, same root cause -- PR FMXExpress#233
    added the directory and only some build paths got updated)

Position matches the other batch's ordering (after pkg\markdown,
before pkg\vendor\dmvcframework).

FPC make smoke clean.

https://claude.ai/code/session_01TBcLtmpj7dqA5tyFbGnQon
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants