-
-
Notifications
You must be signed in to change notification settings - Fork 1.7k
mintro: dump ast of subdir meson.build files #11446
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: master
Are you sure you want to change the base?
Conversation
f9a50de
to
f90a4e2
Compare
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## master #11446 +/- ##
==========================================
- Coverage 70.30% 68.83% -1.48%
==========================================
Files 219 209 -10
Lines 48478 45560 -2918
Branches 11461 9433 -2028
==========================================
- Hits 34082 31360 -2722
+ Misses 11963 11777 -186
+ Partials 2433 2423 -10 ☔ View full report in Codecov by Sentry. |
169f054
to
5e087d4
Compare
5e087d4
to
c667327
Compare
c318287
to
2c0f32e
Compare
Oups! I forgot to include ast from the root meson.build... Should be better now. |
Interesting, I would have expected the root meson.build to be in self.processed_buildfiles, but it's not. The real interpreter does that too, which has the effect that |
Now the question is does backward compat matter? I have no idea who uses --ast... Maybe would need to be guarded with --recursive flags? dunno. |
2c0f32e
to
a30cbb5
Compare
I doubt it could be used for anything else that debugging... Not dumping subdirs means the result was unusable except for projects with only one meson.build file. Imho, that should not break anything important. If something breaks with this, it would break with any change in the structure of the AST... |
Hum... I changed it. This is the right thing to do. It simplifies the |
a30cbb5
to
920bff9
Compare
@xclaesse Was everything ok with you? |
Not really, because this changes the output to a dict, so any tool that was parsing this json are now broken, if any. Wondering if the CLI syntax that requires passing |
Technically, the output is still json... It just is one level deeper.
That could be great. However, this would require #11485, changes to the introspection interpreter to be able to parse a meson file without |
920bff9
to
1bce17e
Compare
I just updated this PR. Instead of breaking the output of the existing |
fc3bbdc
to
19a6595
Compare
19a6595
to
e778ee8
Compare
It semms IntrospectionInterpreter needs vsenv to find compiler.
e778ee8
to
384e8b0
Compare
No description provided.