openframeworks / openframeworks/openFrameworks
Proper support for natvis files in addons
Nobody has claimed this yet.
- Dominant language
- C++
- Stars
- 10.4k
- Forks
- 2.6k
- Avg merge
- 1d 21h
- Merged PRs (30d)
- 9
Description
Hi!
I am using an addon that comes with a Visual Studio C++ debugger visualization file (natvis) in their src/ folder, and it's a bit of a pain because everytime I regenerate the project solution, it seems the OF generator treats it as a "C/C++ compiler" item, which means the C++ compiler is trying to compile the natvis and fails.
The fix should be simple, the OF generator should recognize natvis files and flag them as "C++ debugger visualization file" during the vcxproj generation step.
However, I have no idea how the generator works or where that fix would make sense. If someone can point me to it, or implement it, it would be a great time saver.
Thanks!
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start by locating the openFrameworks generator code responsible for vcxproj generation and inspect how files in an addon src/ folder are classified. Reproduce the project regeneration with a .natvis file, then verify that it is emitted as a C++ debugger visualization file rather than a C/C++ compiler item and no longer sent to the compiler.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- cpp
- Domain
- build-system, tooling
- Issue type
- Bug
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 42/100