SQFvm / runtime

Custom implementation of the Arma script language SQF
GNU Lesser General Public License v3.0
98 stars 29 forks source link

[BUG] Include files are included from current directory rather than file directory #186

Open DarkWanderer opened 2 years ago

DarkWanderer commented 2 years ago

Describe the bug Include path resolving does not work as expected. In SQF, #include "file" means that it will be looked for in same directory as the preprocessed file. SQFVM looks in the current working directory (cwd) instead

To Reproduce

mkdir dir
echo > dir\file.hpp
echo #include "file.hpp" > dir\file.sqf
sqfvm.exe --input-sqf "dir\\file.sqf"

Result

[ERR] [L1|C19|dir\file.sqf]     Failed to include 'file.hpp' into file 'dir\file.sqf']  ':FileIO returned no file.
Failed to preprocess file '"dir\\file.sqf"'

Expected behavior Include should succeed

Screenshots image

AndreasBrostrom commented 1 year ago

..\ seams to look in the same directory as well.

#include "..\file.hpp"

Tested on some of my files in my repo. (linux)

script_component.hpp is refrenced in one directory up but is looked for inside of the folder it self.

(Link to (cScripts/functions/logistics/fn_addCargo.sqf) refrenced below)

sqfvm -a --trace --verbose \
          --input-sqf "$PWD/cScripts/functions/logistics/fn_addCargo.sqf"
Preprocessing file '"/home/andre/Repositories/cScripts/cScripts/functions/logistics/fn_addCargo.sqf"'
[WRN] [L2|C0|/home/andre/Repositories/cScripts/cScripts/functions/logistics/fn_addCargo.sqf]    Unexpected data after include path.
[TRC] Virtual Lookup of `../script_component.hpp` got requested (Physical Reference Path: `/home/andre/Repositories/cScripts/cScripts/functions/logistics/fn_addCargo.sqf`).
[TRC] Virtual Lookup encountered `..`. Navigating up (Virtual Reference path: `../script_component.hpp`, Physical Reference Path: `/home/andre/Repositories/cScripts/cScripts/functions/logistics/fn_addCargo.sqf`).
[TRC] Virtual Lookup got no more nodes left for exploring (Virtual Reference path: `../script_component.hpp`, Physical Reference Path: `/home/andre/Repositories/cScripts/cScripts/functions/logistics/fn_addCargo.sqf`).
[TRC] Virtual Lookup could not locate a file for `../script_component.hpp` (Physical Reference Path: `/home/andre/Repositories/cScripts/cScripts/functions/logistics/fn_addCargo.sqf`).
[TRC] Physical Lookup requested for `..\script_component.hpp` (Virtual Reference path: ``, Physical Reference Path : `/home/andre/Repositories/cScripts/cScripts/functions/logistics/fn_addCargo.sqf`).
[TRC] Physical Lookup adjusted lookup path to `..\script_component.hpp` (Virtual Reference path: ``, Physical Reference Path : `/home/andre/Repositories/cScripts/cScripts/functions/logistics/fn_addCargo.sqf`).
[TRC] Physical Lookup testing against `/home/andre/Repositories/cScripts` (Virtual Reference path: ``, Physical Reference Path : `/home/andre/Repositories/cScripts/cScripts/functions/logistics/fn_addCargo.sqf`).
[TRC] Physical Lookup matched file `/home/andre/Repositories/cScripts` (Virtual Reference path: ``, Physical Reference Path : `/home/andre/Repositories/cScripts/cScripts/functions/logistics/fn_addCargo.sqf`).
[TRC] Virtual Lookup of `/cScripts/functions/logistics/../script_component.hpp` got requested (Physical Reference Path: `/home/andre/Repositories/cScripts/cScripts/functions/logistics/fn_addCargo.sqf`).
[TRC] Virtual Lookup failed to locate down-navigation path `cScripts` (Virtual Reference path: `/cScripts/functions/logistics/../script_component.hpp`, Physical Reference Path : `/home/andre/Repositories/cScripts/cScripts/functions/logistics/fn_addCargo.sqf`).
[TRC] Virtual Lookup reduced path to `/cScripts/functions/logistics/script_component.hpp` (Physical Reference Path : `/home/andre/Repositories/cScripts/cScripts/functions/logistics/fn_addCargo.sqf`).
[TRC] Virtual Lookup testing if file `/home/andre/Repositories/cScripts/cScripts/functions/logistics/script_component.hpp` exists (Virtual Reference path: `/cScripts/functions/logistics/script_component.hpp`, Physical Reference Path : `/home/andre/Repositories/cScripts/cScripts/functions/logistics/fn_addCargo.sqf`).
[TRC] Virtual Lookup could not locate a file for `/cScripts/functions/logistics/script_component.hpp` (Physical Reference Path: `/home/andre/Repositories/cScripts/cScripts/functions/logistics/fn_addCargo.sqf`).
[TRC] Physical Lookup failed to match file `..\script_component.hpp` (Virtual Reference path: ``, Physical Reference Path : `/home/andre/Repositories/cScripts/cScripts/functions/logistics/fn_addCargo.sqf`).
[ERR] [L2|C0|/home/andre/Repositories/cScripts/cScripts/functions/logistics/fn_addCargo.sqf]    Failed to include '..\script_component.hpp' into file '/home/andre/Repositories/cScripts/cScripts/functions/logistics/fn_addCargo.sqf']   ':FileIO returned no file.
Failed to preprocess file '"/home/andre/Repositories/cScripts/cScripts/functions/logistics/fn_addCargo.sqf"'
Exiting due to error.

EDIT:

Attepts to override the pathing for the pathing does not work:

$ sqfvm --suppress-welcome --automated \
          --virtual "$PWD/script_component.hpp|..\script_component.hpp" \
          --virtual "$PWD/script_component.hpp|script_component.hpp" \
          --virtual "$PWD/script_macros.hpp|script_macros.hpp" \
          --trace --verbose \
          --input "$PWD/cScripts/functions/logistics/fn_addCargo.sqf"
Mapped '"..\\script_component.hpp"' onto '"/home/andre/Repositories/cScripts/script_component.hpp"'.
Mapped '"script_component.hpp"' onto '"/home/andre/Repositories/cScripts/script_component.hpp"'.
Mapped '"script_macros.hpp"' onto '"/home/andre/Repositories/cScripts/script_macros.hpp"'.
Preprocessing file '"/home/andre/Repositories/cScripts/cScripts/functions/logistics/fn_addCargo.sqf"'
[WRN] [L2|C0|/home/andre/Repositories/cScripts/cScripts/functions/logistics/fn_addCargo.sqf]    Unexpected data after include path.
[TRC] Virtual Lookup of `../script_component.hpp` got requested (Physical Reference Path: `/home/andre/Repositories/cScripts/cScripts/functions/logistics/fn_addCargo.sqf`).
[TRC] Virtual Lookup encountered `..`. Navigating up (Virtual Reference path: `../script_component.hpp`, Physical Reference Path: `/home/andre/Repositories/cScripts/cScripts/functions/logistics/fn_addCargo.sqf`).
[TRC] Virtual Lookup got no more nodes left for exploring (Virtual Reference path: `../script_component.hpp`, Physical Reference Path: `/home/andre/Repositories/cScripts/cScripts/functions/logistics/fn_addCargo.sqf`).
[TRC] Virtual Lookup could not locate a file for `../script_component.hpp` (Physical Reference Path: `/home/andre/Repositories/cScripts/cScripts/functions/logistics/fn_addCargo.sqf`).
[TRC] Physical Lookup requested for `..\script_component.hpp` (Virtual Reference path: ``, Physical Reference Path : `/home/andre/Repositories/cScripts/cScripts/functions/logistics/fn_addCargo.sqf`).
[TRC] Physical Lookup adjusted lookup path to `..\script_component.hpp` (Virtual Reference path: ``, Physical Reference Path : `/home/andre/Repositories/cScripts/cScripts/functions/logistics/fn_addCargo.sqf`).
[TRC] Physical Lookup testing against `/home/andre/Repositories/cScripts` (Virtual Reference path: ``, Physical Reference Path : `/home/andre/Repositories/cScripts/cScripts/functions/logistics/fn_addCargo.sqf`).
[TRC] Physical Lookup matched file `/home/andre/Repositories/cScripts` (Virtual Reference path: ``, Physical Reference Path : `/home/andre/Repositories/cScripts/cScripts/functions/logistics/fn_addCargo.sqf`).
[TRC] Virtual Lookup of `/cScripts/functions/logistics/../script_component.hpp` got requested (Physical Reference Path: `/home/andre/Repositories/cScripts/cScripts/functions/logistics/fn_addCargo.sqf`).
[TRC] Virtual Lookup failed to locate down-navigation path `cScripts` (Virtual Reference path: `/cScripts/functions/logistics/../script_component.hpp`, Physical Reference Path : `/home/andre/Repositories/cScripts/cScripts/functions/logistics/fn_addCargo.sqf`).
[TRC] Virtual Lookup reduced path to `/cScripts/functions/logistics/script_component.hpp` (Physical Reference Path : `/home/andre/Repositories/cScripts/cScripts/functions/logistics/fn_addCargo.sqf`).
[TRC] Virtual Lookup testing if file `/home/andre/Repositories/cScripts/cScripts/functions/logistics/script_component.hpp` exists (Virtual Reference path: `/cScripts/functions/logistics/script_component.hpp`, Physical Reference Path : `/home/andre/Repositories/cScripts/cScripts/functions/logistics/fn_addCargo.sqf`).
[TRC] Virtual Lookup could not locate a file for `/cScripts/functions/logistics/script_component.hpp` (Physical Reference Path: `/home/andre/Repositories/cScripts/cScripts/functions/logistics/fn_addCargo.sqf`).
[TRC] Physical Lookup testing against `/home/andre/Repositories/cScripts/script_component.hpp` (Virtual Reference path: ``, Physical Reference Path : `/home/andre/Repositories/cScripts/cScripts/functions/logistics/fn_addCargo.sqf`).
[TRC] Physical Lookup testing against `/home/andre/Repositories/cScripts/script_component.hpp` (Virtual Reference path: ``, Physical Reference Path : `/home/andre/Repositories/cScripts/cScripts/functions/logistics/fn_addCargo.sqf`).
[TRC] Physical Lookup testing against `/home/andre/Repositories/cScripts/script_macros.hpp` (Virtual Reference path: ``, Physical Reference Path : `/home/andre/Repositories/cScripts/cScripts/functions/logistics/fn_addCargo.sqf`).
[TRC] Physical Lookup failed to match file `..\script_component.hpp` (Virtual Reference path: ``, Physical Reference Path : `/home/andre/Repositories/cScripts/cScripts/functions/logistics/fn_addCargo.sqf`).
[ERR] [L2|C0|/home/andre/Repositories/cScripts/cScripts/functions/logistics/fn_addCargo.sqf]    Failed to include '..\script_component.hpp' into file '/home/andre/Repositories/cScripts/cScripts/functions/logistics/fn_addCargo.sqf']   ':FileIO returned no file.
Failed to preprocess file '"/home/andre/Repositories/cScripts/cScripts/functions/logistics/fn_addCargo.sqf"'
Exiting due to error.
X39 commented 1 year ago

Should be fixed in https://github.com/SQFvm/runtime/commit/c792ea8a5e96f2391e8d6c1493d9c5cbc203aa87

Please reopen if still affected with latest development release

AndreasBrostrom commented 1 year ago

Used folowing artifacts https://github.com/SQFvm/runtime/actions/runs/5810890073

Seams like it did not fix the issue log form testing:

$ pwd
/home/andre/Repositories/cScripts
$ sqfvm --suppress-welcome --automated \
                --trace --verbose \
                --input "$PWD/cScripts/functions/logistics/fn_addCargo.sqf"
Preprocessing file '"/home/andre/Repositories/cScripts/cScripts/functions/logistics/fn_addCargo.sqf"'
[WRN] [L2|C0|/home/andre/Repositories/cScripts/cScripts/functions/logistics/fn_addCargo.sqf]    Unexpected data after include path.
[TRC] Virtual Lookup of `../script_component.hpp` got requested (Physical Reference Path: `/home/andre/Repositories/cScripts/cScripts/functions/logistics/fn_addCargo.sqf`).
[TRC] Virtual Lookup encountered `..`. Navigating up (Virtual Reference path: `../script_component.hpp`, Physical Reference Path: `/home/andre/Repositories/cScripts/cScripts/functions/logistics/fn_addCargo.sqf`).
[TRC] Virtual Lookup got no more nodes left for exploring (Virtual Reference path: `../script_component.hpp`, Physical Reference Path: `/home/andre/Repositories/cScripts/cScripts/functions/logistics/fn_addCargo.sqf`).
[TRC] Virtual Lookup could not locate a file for `../script_component.hpp` (Physical Reference Path: `/home/andre/Repositories/cScripts/cScripts/functions/logistics/fn_addCargo.sqf`).
[TRC] Physical Lookup requested for `..\script_component.hpp` (Virtual Reference path: ``, Physical Reference Path : `/home/andre/Repositories/cScripts/cScripts/functions/logistics/fn_addCargo.sqf`).
[TRC] Physical Lookup adjusted lookup path to `..\script_component.hpp` (Virtual Reference path: ``, Physical Reference Path : `/home/andre/Repositories/cScripts/cScripts/functions/logistics/fn_addCargo.sqf`).
[TRC] Physical Lookup testing against `/home/andre/Repositories/cScripts` (Virtual Reference path: ``, Physical Reference Path : `/home/andre/Repositories/cScripts/cScripts/functions/logistics/fn_addCargo.sqf`).
[TRC] Physical Lookup matched file `/home/andre/Repositories/cScripts` (Virtual Reference path: ``, Physical Reference Path : `/home/andre/Repositories/cScripts/cScripts/functions/logistics/fn_addCargo.sqf`).
[TRC] Virtual Lookup of `/cScripts/functions/logistics/../script_component.hpp` got requested (Physical Reference Path: `/home/andre/Repositories/cScripts/cScripts/functions/logistics/fn_addCargo.sqf`).
[TRC] Virtual Lookup failed to locate down-navigation path `cScripts` (Virtual Reference path: `/cScripts/functions/logistics/../script_component.hpp`, Physical Reference Path : `/home/andre/Repositories/cScripts/cScripts/functions/logistics/fn_addCargo.sqf`).
[TRC] Virtual Lookup reduced path to `/cScripts/functions/logistics/script_component.hpp` (Physical Reference Path : `/home/andre/Repositories/cScripts/cScripts/functions/logistics/fn_addCargo.sqf`).
[TRC] Virtual Lookup testing if file `/home/andre/Repositories/cScripts/cScripts/functions/logistics/script_component.hpp` exists (Virtual Reference path: `/cScripts/functions/logistics/script_component.hpp`, Physical Reference Path : `/home/andre/Repositories/cScripts/cScripts/functions/logistics/fn_addCargo.sqf`).
[TRC] Virtual Lookup could not locate a file for `/cScripts/functions/logistics/script_component.hpp` (Physical Reference Path: `/home/andre/Repositories/cScripts/cScripts/functions/logistics/fn_addCargo.sqf`).
[ERR] Physical Lookup failed to match file `..\script_component.hpp` (Virtual Reference path: ``, Physical Reference Path : `/home/andre/Repositories/cScripts/cScripts/functions/logistics/fn_addCargo.sqf`).
[ERR] [L2|C0|/home/andre/Repositories/cScripts/cScripts/functions/logistics/fn_addCargo.sqf]    Failed to include '..\script_component.hpp' into file '/home/andre/Repositories/cScripts/cScripts/functions/logistics/fn_addCargo.sqf']      ':FileIO returned no file.
Failed to preprocess file '"/home/andre/Repositories/cScripts/cScripts/functions/logistics/fn_addCargo.sqf"'
Exiting due to error.
$ pwd
/home/andre/Repositories/cScripts/cScripts/functions/logistics
$ sqfvm --suppress-welcome --automated \
                --trace --verbose \
                --input "fn_addCargo.sqf"
Preprocessing file '"/home/andre/Repositories/cScripts/cScripts/functions/logistics/fn_addCargo.sqf"'
[WRN] [L2|C0|/home/andre/Repositories/cScripts/cScripts/functions/logistics/fn_addCargo.sqf]    Unexpected data after include path.
[TRC] Virtual Lookup of `../script_component.hpp` got requested (Physical Reference Path: `/home/andre/Repositories/cScripts/cScripts/functions/logistics/fn_addCargo.sqf`).
[TRC] Virtual Lookup encountered `..`. Navigating up (Virtual Reference path: `../script_component.hpp`, Physical Reference Path: `/home/andre/Repositories/cScripts/cScripts/functions/logistics/fn_addCargo.sqf`).
[TRC] Virtual Lookup got no more nodes left for exploring (Virtual Reference path: `../script_component.hpp`, Physical Reference Path: `/home/andre/Repositories/cScripts/cScripts/functions/logistics/fn_addCargo.sqf`).
[TRC] Virtual Lookup could not locate a file for `../script_component.hpp` (Physical Reference Path: `/home/andre/Repositories/cScripts/cScripts/functions/logistics/fn_addCargo.sqf`).
[TRC] Physical Lookup requested for `..\script_component.hpp` (Virtual Reference path: ``, Physical Reference Path : `/home/andre/Repositories/cScripts/cScripts/functions/logistics/fn_addCargo.sqf`).
[TRC] Physical Lookup adjusted lookup path to `..\script_component.hpp` (Virtual Reference path: ``, Physical Reference Path : `/home/andre/Repositories/cScripts/cScripts/functions/logistics/fn_addCargo.sqf`).
[TRC] Physical Lookup testing against `/home/andre/Repositories/cScripts/cScripts/functions/logistics` (Virtual Reference path: ``, Physical Reference Path : `/home/andre/Repositories/cScripts/cScripts/functions/logistics/fn_addCargo.sqf`).
[TRC] Physical Lookup matched file `/home/andre/Repositories/cScripts/cScripts/functions/logistics` (Virtual Reference path: ``, Physical Reference Path : `/home/andre/Repositories/cScripts/cScripts/functions/logistics/fn_addCargo.sqf`).
[TRC] Virtual Lookup of `/../script_component.hpp` got requested (Physical Reference Path: `/home/andre/Repositories/cScripts/cScripts/functions/logistics/fn_addCargo.sqf`).
[TRC] Virtual Lookup encountered `..`. Navigating up (Virtual Reference path: `/../script_component.hpp`, Physical Reference Path: `/home/andre/Repositories/cScripts/cScripts/functions/logistics/fn_addCargo.sqf`).
[TRC] Virtual Lookup got no more nodes left for exploring (Virtual Reference path: `/../script_component.hpp`, Physical Reference Path: `/home/andre/Repositories/cScripts/cScripts/functions/logistics/fn_addCargo.sqf`).
[TRC] Virtual Lookup could not locate a file for `/../script_component.hpp` (Physical Reference Path: `/home/andre/Repositories/cScripts/cScripts/functions/logistics/fn_addCargo.sqf`).
[ERR] Physical Lookup failed to match file `..\script_component.hpp` (Virtual Reference path: ``, Physical Reference Path : `/home/andre/Repositories/cScripts/cScripts/functions/logistics/fn_addCargo.sqf`).
[ERR] [L2|C0|/home/andre/Repositories/cScripts/cScripts/functions/logistics/fn_addCargo.sqf]    Failed to include '..\script_component.hpp' into file '/home/andre/Repositories/cScripts/cScripts/functions/logistics/fn_addCargo.sqf']      ':FileIO returned no file.
Failed to preprocess file '"/home/andre/Repositories/cScripts/cScripts/functions/logistics/fn_addCargo.sqf"'
Exiting due to error.
$ pwd
/home/andre/Repositories/cScripts
$ sqfvm --suppress-welcome --automated \
                --virtual "$PWD/cScripts/script_component.hpp|..\script_component.hpp" \
                --virtual "$PWD/cScripts/script_component.hpp|script_component.hpp" \
                --virtual "$PWD/cScripts/script_macros.hpp|script_macros.hpp" \
                --trace --verbose \
                --input "$PWD/cScripts/functions/logistics/fn_addCargo.sqf"

Mapped '"..\\script_component.hpp"' onto '"/home/andre/Repositories/cScripts/cScripts/script_component.hpp"'.
Mapped '"script_component.hpp"' onto '"/home/andre/Repositories/cScripts/cScripts/script_component.hpp"'.
Mapped '"script_macros.hpp"' onto '"/home/andre/Repositories/cScripts/cScripts/script_macros.hpp"'.
Preprocessing file '"/home/andre/Repositories/cScripts/cScripts/functions/logistics/fn_addCargo.sqf"'
[WRN] [L2|C0|/home/andre/Repositories/cScripts/cScripts/functions/logistics/fn_addCargo.sqf]    Unexpected data after include path.
[TRC] Virtual Lookup of `../script_component.hpp` got requested (Physical Reference Path: `/home/andre/Repositories/cScripts/cScripts/functions/logistics/fn_addCargo.sqf`).
[TRC] Virtual Lookup encountered `..`. Navigating up (Virtual Reference path: `../script_component.hpp`, Physical Reference Path: `/home/andre/Repositories/cScripts/cScripts/functions/logistics/fn_addCargo.sqf`).
[TRC] Virtual Lookup got no more nodes left for exploring (Virtual Reference path: `../script_component.hpp`, Physical Reference Path: `/home/andre/Repositories/cScripts/cScripts/functions/logistics/fn_addCargo.sqf`).
[TRC] Virtual Lookup could not locate a file for `../script_component.hpp` (Physical Reference Path: `/home/andre/Repositories/cScripts/cScripts/functions/logistics/fn_addCargo.sqf`).
[TRC] Physical Lookup requested for `..\script_component.hpp` (Virtual Reference path: ``, Physical Reference Path : `/home/andre/Repositories/cScripts/cScripts/functions/logistics/fn_addCargo.sqf`).
[TRC] Physical Lookup adjusted lookup path to `..\script_component.hpp` (Virtual Reference path: ``, Physical Reference Path : `/home/andre/Repositories/cScripts/cScripts/functions/logistics/fn_addCargo.sqf`).
[TRC] Physical Lookup testing against `/home/andre/Repositories/cScripts` (Virtual Reference path: ``, Physical Reference Path : `/home/andre/Repositories/cScripts/cScripts/functions/logistics/fn_addCargo.sqf`).
[TRC] Physical Lookup matched file `/home/andre/Repositories/cScripts` (Virtual Reference path: ``, Physical Reference Path : `/home/andre/Repositories/cScripts/cScripts/functions/logistics/fn_addCargo.sqf`).
[TRC] Virtual Lookup of `/cScripts/functions/logistics/../script_component.hpp` got requested (Physical Reference Path: `/home/andre/Repositories/cScripts/cScripts/functions/logistics/fn_addCargo.sqf`).
[TRC] Virtual Lookup failed to locate down-navigation path `cScripts` (Virtual Reference path: `/cScripts/functions/logistics/../script_component.hpp`, Physical Reference Path : `/home/andre/Repositories/cScripts/cScripts/functions/logistics/fn_addCargo.sqf`).
[TRC] Virtual Lookup reduced path to `/cScripts/functions/logistics/script_component.hpp` (Physical Reference Path : `/home/andre/Repositories/cScripts/cScripts/functions/logistics/fn_addCargo.sqf`).
[TRC] Virtual Lookup testing if file `/home/andre/Repositories/cScripts/cScripts/functions/logistics/script_component.hpp` exists (Virtual Reference path: `/cScripts/functions/logistics/script_component.hpp`, Physical Reference Path : `/home/andre/Repositories/cScripts/cScripts/functions/logistics/fn_addCargo.sqf`).
[TRC] Virtual Lookup could not locate a file for `/cScripts/functions/logistics/script_component.hpp` (Physical Reference Path: `/home/andre/Repositories/cScripts/cScripts/functions/logistics/fn_addCargo.sqf`).
[TRC] Physical Lookup testing against `/home/andre/Repositories/cScripts/cScripts/script_component.hpp` (Virtual Reference path: ``, Physical Reference Path : `/home/andre/Repositories/cScripts/cScripts/functions/logistics/fn_addCargo.sqf`).
[TRC] Physical Lookup testing against `/home/andre/Repositories/cScripts/cScripts/script_component.hpp` (Virtual Reference path: ``, Physical Reference Path : `/home/andre/Repositories/cScripts/cScripts/functions/logistics/fn_addCargo.sqf`).
[TRC] Physical Lookup testing against `/home/andre/Repositories/cScripts/cScripts/script_macros.hpp` (Virtual Reference path: ``, Physical Reference Path : `/home/andre/Repositories/cScripts/cScripts/functions/logistics/fn_addCargo.sqf`).
[ERR] Physical Lookup failed to match file `..\script_component.hpp` (Virtual Reference path: ``, Physical Reference Path : `/home/andre/Repositories/cScripts/cScripts/functions/logistics/fn_addCargo.sqf`).
[ERR] [L2|C0|/home/andre/Repositories/cScripts/cScripts/functions/logistics/fn_addCargo.sqf]    Failed to include '..\script_component.hpp' into file '/home/andre/Repositories/cScripts/cScripts/functions/logistics/fn_addCargo.sqf']      ':FileIO returned no file.
Failed to preprocess file '"/home/andre/Repositories/cScripts/cScripts/functions/logistics/fn_addCargo.sqf"'
Exiting due to error.
AndreasBrostrom commented 1 year ago

Repo for reproduction: https://github.com/AndreasBrostrom/sqfVM_TestScriptComp

AndreasBrostrom commented 1 year ago

Issue primarly Linux related now. Works on windows