Skip to content

[Unity] execute_script cannot run recovery or diagnostic probes when unrelated project code does not compile #10

Description

@zelerj

Environment

  • Unity 6000.4.0f1
  • Coplay 8.20.3 at commit 620446a

Reproduction

  1. Introduce a compilation error in an assembly unrelated to an already compiled diagnostic probe.
  2. Invoke a read-only probe through execute_script.

Actual behavior

The global compilation gate rejects the call. This also prevents diagnostic and recovery automation that could explain or repair the unrelated failure.

Expected behavior

Read-only calls and already loadable methods should remain available when their own dependency closure is valid.

Suggested fix

Scope the gate to the assemblies actually required by the requested probe. An explicit allowWhenProjectHasErrors diagnostic mode could also be offered, disabled by default and unavailable to mutating operations.

This was reproduced while automating ForgeUI validation in a live Unity 6 project.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions