# `-ExitAfterVerseCompile` and `-ExitFailureOnVerseCompileFailure` do not quit the editor on a normal project startup

- **Status:** Current workaround: use a timeout.
- **Engine:** ue6-main `61e2877e` (23 Nov 2026), Linux (Arch-based Omarchy, kernel 7.2), toolchain from Setup.sh `native-linux-v27_clang-23.1.5-rockylinux8`
- **Context:** standalone UE6 project (not UEFN); Verse dialect/runtime: Verse in project Content (package `Game`), compiled by the editor at startup
- **Prerequisites:** Project plugins Solaris, Verse, VersePrint and EntityFramework, and `[ConsoleVariables] verse.UObjectBinding=1`. The test project had `Content/spike_counter.verse`, a class with a mutable field and a `<transacts>` method.

## Symptom

A CI-style "compile Verse and quit" from a project needs a timeout today. `-ExitAfterVerseCompile` only acts inside the DLC/content-worker branch of SolarisLoadCompilerModule.cpp (~line 725), and `-ExitFailureOnVerseCompileFailure` did not exit on the startup compile either.

## Smallest example / reproduction

Start the editor headless on the project: `UnrealEditor-Cmd <proj> -nullrhi -unattended`. The startup compile logs "Generating UE types for Verse package Game ... 1 types" and "Global Verse compile ... finished: SUCCESS", about 26 s after boot. The exit switches do not end the process.

Negative test: a type error gives `Script error 3509` at the right line/column and "finished: FAILED".

## Solution

Use a timeout around the headless editor command instead of relying on the exit switches.

## Why it works

The timeout ends the process from outside the editor. Inside the editor, `-ExitAfterVerseCompile` only acts inside the DLC/content-worker branch of SolarisLoadCompilerModule.cpp (~line 725), as read in the source. INFERRED: a normal project startup does not go through that branch. No reason is recorded for `-ExitFailureOnVerseCompileFailure`.

## Verified

- **Evidence level:** runs in editor (headless `UnrealEditor-Cmd`).
- **How:** `UnrealEditor-Cmd <proj> -nullrhi -unattended` -> "Generating UE types for Verse package Game ... 1 types", "Global Verse compile ... finished: SUCCESS", about 26 s after boot. The editor did not exit on the startup compile. A type error -> `Script error 3509` at the right line/column and "finished: FAILED".
- **Date / by:** 2026-11-24, not recorded.

## Limits and assumptions

The file and line (SolarisLoadCompilerModule.cpp, ~line 725) are as read in the `61e2877e` checkout. The DLC/content-worker branch is not recorded as tested here. INFERRED: the failure switch was tried with the negative (type-error) case; the findings only say it "did not exit on the startup compile either".
