Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
DarkWanderer opened this issue Feb 6, 2022 · 5 comments
Labels
bug Error, flaw, failure or fault that causes to produce an incorrect result or crash

Comments

@DarkWanderer
Copy link
Contributor

DarkWanderer commented Feb 6, 2022

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

@DarkWanderer DarkWanderer added the bug Error, flaw, failure or fault that causes to produce an incorrect result or crash label Feb 6, 2022
@AndreasBrostrom
Copy link

AndreasBrostrom commented Aug 1, 2023

..\ 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
Copy link
Collaborator

X39 commented Aug 4, 2023

Should be fixed in c792ea8

Please reopen if still affected with latest development release

@X39 X39 closed this as completed Aug 4, 2023
@AndreasBrostrom
Copy link

AndreasBrostrom commented Aug 10, 2023

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.

@X39 X39 reopened this Aug 10, 2023
@AndreasBrostrom
Copy link

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

@AndreasBrostrom
Copy link

Issue primarly Linux related now. Works on windows

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Error, flaw, failure or fault that causes to produce an incorrect result or crash
Projects
None yet
Development

No branches or pull requests

3 participants