Skip to content

[BUG] Compilation Error: Missing SharedTools directory and Source Files #1

@ewsajjang

Description

@ewsajjang

Describe the Bug

The project cannot be compiled because several essential source files and the entire SharedTools directory appear to be missing from the repository. Additionally, there is a minor configuration issue with a hardcoded local path in the project file.

Environment

Windows Version: Windows11 ARM

DelphiMCP Version: main branch (latest)

  • Delphi Version: Delphi 13 Version 37.0.57242.3601
  • Windows Version: Windows 11 Pro ARM 24H2
  • DelphiMCP Version: main branch (ca0dbcd)
  • Delphi-MCP-Server Version: main branch (3107e74cc56b17d520b096eb03cb57dfdd0938a9)

Steps to Reproduce

  1. Clone the repository.
  2. Open Source\MCPserver\DelphiMCPserver.dproj.
  3. Attempt to build the project.
  4. The compiler throws a fatal error regarding a missing unit.

Expected Behavior

The repository should contain all necessary source files (including the SharedTools folder) to allow a clean build after cloning.

Actual Behavior

The compilation fails immediately because the file MCP.Tool.Generic.pas is missing. Upon inspection, the entire Source\SharedTools directory is not present in the repository, although it is referenced in the project file.

Current structure in Source\MCPbridge:

├─Source
│  └─Core  <-- Only this exists
│  └─(SharedTools is missing)

Error Messages

[dcc32 Fatal Error] DelphiMCPserver.dpr(45): F1026 File not found: '..\..\..\DelphiMCPbridge\Source\SharedTools\MCP.Tool.Generic.pas'

Secondary Project Loading Error:

When opening the project, the following error also appears due to a local environment

Option set "W:\Delphi Current Version.optset" cannot be loaded. It has been removed from project...

Debug Output

Screenshots

Image Image

Named Pipe Information

Configuration Files

Project Search Paths (if compilation issue):

I haven't configured specific Search Paths within the project options (.dproj). Instead, I have added the relevant source directories to the global IDE Library Path (Tools > Options > Language > Delphi > Library).

Image

Additional Context

  • Consistency: The issue happens consistently every time I clone and attempt to build the project.
  • Is it a regression?: This is my first time cloning the latest main branch. I checked an older commit (7168c5b) and confirmed it works fine. The missing files and path errors seem to be present only in the latest version of the main branch.
  • Environment: I have verified that the SharedTools directory is physically missing from the local folder immediately after running git clone.
  • Observation: Since the SharedTools folder is missing from the repository structure on GitHub as well, this appears to be a repository-level issue (missing files in the commit) rather than a local configuration error.

Possible Solution

  1. Please commit and push the missing files in the Source\SharedTools directory.
  2. Resolve Environment Reference: Remove or fix the hardcoded reference to Delphi Current Version.optset in the project.

If you have ideas on how to fix the issue, please share them here.

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions