SanderMertens / bake

Bake, A build system for building, testing and running C & C++ projects

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Editor/IDE definition finding problems

opened this issue · comments

I tried Atom, Sublime and VS Code.

I suppose the way bake manages dependencies and header files confuses them, is there a simple solution?

Example: EcsPosition2D is an undefined declaration.

Bake stores include files in the bake environment (under $HOME/bake). Adding the bake environment to your include path should fix the issue.

Try adding these paths to the editor configuration (replace Darwin with Linux if you're not on MacOS):

"$HOME/bake/include",
"$HOME/bake/x64-Darwin-debug/include"

Let me know if that works for you, and I'll add it to the documentation.

Version 2.3 of bake will only require the first include path.

Looks like it depends on the application in question, in Sublime for instance I was able to just "open folder" right into ~/bake/src and that solved this particular problem. I suppose you just can't rely on the editor parsing includes.

I will keep this issue open for a bit longer, as I want to make sure bake integrates well with editors. I tried a few things with vscode, and ran into some problems (likely similar to yours), for which I opened this issue:

microsoft/vscode-cpptools#3138

commented

Hi, is there any update on this? It would be great to have an extension for vscode to manage the builds.