You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Bug Summary:
It appears that the directory field in compile_commands.json is ignored and looks like it should be used to switch to that path when running the command.
$ make LLVM=1 O=<pathTo>/build_<arch>/ compile_commands.json
Load linux repo folder in vscode
Set necessary c_cpp_properties.json fields (listed below)
See error in log output below
Expected behavior: './scripts/basic/randstruct.seed' should be found because it DOES exist. -frandomize-layout-seed-file=./scripts/basic/randstruct.seed
### Other Extensions
_No response_
### Additional context
And the reason for me trying to have c_cpp extension do this is because the clangd extension causes an OOM when I use the `allyesconfig`.
While I encountered this using `allyesconfig`, I am using `tinyconfig` w/`RANDSTRUCT_FULL` enabled to speed up the process for this repo.
The text was updated successfully, but these errors were encountered:
Hi @vindicatorr . I've recently verified, in the context of multiple other reported issues, that the directory field is being used as the current working directory when querying compilers from compile_commands.json. i.e. : #12024 (comment)
C/C++ Extension Version: v1.15.3-main
That is a rather old version of the extension (and custom built from main?). There was a known issue with this behavior prior to 1.19.3. It you're indeed still using v1.15.3, I'd recommend updating to a more recent version.
Yeah, this definitely sounds like your #12024 (comment) so I'll close this and upgrade all of it and re-open if needed, but I doubt I will need to since your comment there addresses that perfectly.
Definitely don't think I would've considered even looking at that issue submission given the title didn't look anywhere near what my issue was, but your comment inside nailed it.
Environment
Bug Summary and Steps to Reproduce
Bug Summary:
It appears that the
directory
field incompile_commands.json
is ignored and looks like it should be used to switch to that path when running the command.Steps to reproduce:
$ make LLVM=1 O=<pathTo>/build_<arch>/ tinyconfig
$ ./scripts/config --file <pathTo>/build_<arch>/.config --enable RANDSTRUCT_FULL
$ make LLVM=1 O=<pathTo>/build_<arch>/ compile_commands.json
c_cpp_properties.json
fields (listed below)Expected behavior:
'./scripts/basic/randstruct.seed'
should be found because it DOES exist.-frandomize-layout-seed-file=./scripts/basic/randstruct.seed
Configuration and Logs
settings.json:
c_cpp_properties.json:
Output - C/C++:
The text was updated successfully, but these errors were encountered: