openframeworks / openframeworks/openFrameworks

Proper support for natvis files in addons

Open
#8,434 2 comments 0 reactions 0 assignees View on GitHub

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!

Image

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. 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

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.