Sitelet https://web.archive.org/web/20260430065519/https://github.com/github/stack-graphs/pull/85
Skip to content
This repository was archived by the owner on Sep 9, 2025. It is now read-only.

Support includes#85

Closed
hendrikvanantwerpen wants to merge 5 commits intomainfrom
actual-includes
Closed

Support includes#85
hendrikvanantwerpen wants to merge 5 commits intomainfrom
actual-includes

Conversation

@hendrikvanantwerpen
Copy link
Copy Markdown
Contributor

This PR adds support adding includes on the command line.

Solution

Includes are specified as paths to files. This may be too limited to generate faithful stack graphs for those files, since package name and source root information cannot be specified. See discussion in https://github.com/github/semantic-code/issues/301.

Includes are expected to be source files in the target language, which will be parsed and processed using the language's TSG file to get the corresponding stack graph.

Implementation

To prevent reading, parsing, and generating the stack graph for includes for every test, a mechanism is added to cache file results in the StackGraphLanguage.

@hendrikvanantwerpen hendrikvanantwerpen changed the base branch from main to filter-output May 3, 2022 17:05
@hendrikvanantwerpen hendrikvanantwerpen self-assigned this May 3, 2022
@hendrikvanantwerpen hendrikvanantwerpen force-pushed the filter-output branch 2 times, most recently from 8a5388d to e00b0b9 Compare May 3, 2022 18:04
Base automatically changed from filter-output to main May 3, 2022 18:27
@hendrikvanantwerpen
Copy link
Copy Markdown
Contributor Author

Closing as stale.

@github github deleted a comment from Krzyszto300 Sep 17, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant