CppSharp icon indicating copy to clipboard operation
CppSharp copied to clipboard

request a tiny tweak to improve debugging clang include dir locating

Open qingfengxia opened this issue 4 years ago • 4 comments

Brief Description

Can we print the full path for the clang header, instead of relative. which is not so helpful.

the throw line, SetupIncludes() in src/Parser/ParserOptions.cs

   private void SetupIncludes()
    {
        // Check that the builtin includes folder exists.
        if (!Directory.Exists(BuiltinsDir))
            throw new Exception($"Clang resource folder '{BuiltinsDir}' was not found.");

// tested it later on Linux, a property can be put into {}.

OS: Linux (include version and/or distro)

Used headers
Used settings

Target: MSVC/GCC/Clang

Other settings

Stack trace or incompilable generated code

qingfengxia avatar Feb 22 '21 21:02 qingfengxia

I had problem to run build.sh on windows git-bash.exe.
unix2does build.sh does not help. Later I found, I must delete the old cppsharp repo, and clean git clone, otherwise some old lua downlaod, cause error.

$ ./generate.sh
Error: invalid option 'configuration'

qingfengxia avatar Feb 23 '21 09:02 qingfengxia

I'm happy you've resolved the problem. Do you have further related trouble or may we close this?

ddobrev avatar Mar 01 '21 19:03 ddobrev

We should change the code to print an absolute path of the dir before closing this, as suggested.

tritao avatar Mar 01 '21 22:03 tritao

Thank you, please close it after add more print.

qingfengxia avatar Mar 03 '21 15:03 qingfengxia