adobe / adobe/hyde

Not finding path for standard library

Open
#38 0 comments 0 reactions 0 assignees View on GitHub
Dominant language
C++
Stars
340
Forks
45
PR merge metrics
No merged PRs in 30d

Description

**Describe the bug**
Executing a command like the following:
```
hyde ./include/psutil/safe_cast.hpp -hyde-src-root=../../include -hyde-yaml-dir=../../docs/include \
-resource-dir=`clang++ --print-resource-dir` -access-filter-protected \
-namespace-blacklist="safe_cast_detail" -hyde-update -- \
-x c++ -std=c++14 -stdlib=libc++
```

Will error out trying to include any file in libc++. The workaround is to explicitly add the path:
```
-I`xcode-select --print-path`/usr/include/c++/v1
```

Contributor guide

Open the contributing guide

Research direction

Start by reproducing the shown hyde command on macOS with -stdlib=libc++ and inspect how the command's resource and include paths are handled. Trace why libc++ headers are not found unless the xcode-select path is supplied manually. Done means the standard library is found without the extra -I workaround, with a regression check if the repository provides a suitable test location.

Written by the indexing model from the issue text.

Assessment

Tech stack
cpp
Domain
tooling
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.