BrettMayson / HEMTT

Build System for Arma 3
http://hemtt.dev/
GNU General Public License v2.0
114 stars 40 forks source link

Incomprehensible error message when include path in SQF does not exist #839

Closed Timi007 closed 2 days ago

Timi007 commented 2 days ago

Tools (complete and add to the following information):

Description: When I have an #include in an SQF to a file that does not exist because the file name has a spelling mistake, I get following incomprehensible error message:

ERROR Failed to execute command:
Preprocessor error: Coded error

Steps to reproduce:

  1. Write #include "test.sqf" into any SQF file (e.g. XEH_preInit.sqf). Make sure test.sqf does not exist.
  2. Run hemtt build

Test project: https://github.com/Timi007/hemtt-actions-test

Expected behavior: A clear error message similar to an include error for config:

error[PE12]: include not found
   ┌─ addons/main/config.cpp:31:11
   │
31 │ #include "test.sqf"
   │           ^^^^^^^^ not found
BrettMayson commented 2 days ago

This has already been fixed and a hot fix will be released soon