Skip to content
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

3.0's SilkTouch affected by a ClangSharp upstream bug whereby test code is in XML #470

Closed
Perksey opened this issue Aug 10, 2021 · 11 comments · Fixed by #498
Closed

3.0's SilkTouch affected by a ClangSharp upstream bug whereby test code is in XML #470

Perksey opened this issue Aug 10, 2021 · 11 comments · Fixed by #498

Comments

@Perksey
Copy link
Member

Perksey commented Aug 10, 2021

Example file: out.xml.txt

This needs to be fixed upstream in the ClangSharp repo and the version updated in our projects once a new update is released encompassing these changes.

The likely culprit is the OutputFactoryBuilder, but don't quote me on that.

Related dotnet/Silk.NET#557

@Perksey
Copy link
Member Author

Perksey commented Aug 10, 2021

cc @tannergooding

@tannergooding
Copy link
Member

So basically you want XML product code and C# tests?

@Perksey
Copy link
Member Author

Perksey commented Aug 10, 2021

This particular issue is because we're getting C# test code added to the XML output file (only in single-file mode mind) even though the OutputMode is Xml and, to my knowledge, we're not enabling test output (which is presumably why the test implementations are empty)

dotnet/Silk.NET#557 is for discussing designing a way to get tests exposed in XML. But right now there should be no tests exposed in XML whatsoever, the bug is there are.

@Perksey
Copy link
Member Author

Perksey commented Jan 29, 2022

@HurricanKai for visibility

@HurricanKai
Copy link
Member

For future reference, this is what the issue looks like in the file:
image

@tannergooding
Copy link
Member

This should be pretty straightforward to resolve in ClangSharp. We should really just have "single file mode" output separate files for "source" vs "tests".

If this is a priority, let me know and I can take a look at it sooner

@Perksey
Copy link
Member Author

Perksey commented Sep 14, 2023

@tannergooding Should we transfer this issue into the ClangSharp repo? The 3.0 generator implementation is very changeable right now, such that it may not make sense to track here (because we may not hit this issue depending on what implementation is used in 3.0 proper)

@tannergooding
Copy link
Member

Please feel free. Contributions also welcome to clean this up.

@Perksey
Copy link
Member Author

Perksey commented Sep 14, 2023

@tannergooding I've given you triage access to this repo so hopefully you can use GitHub's built-in mechanism to transfer it & keep comments.

@tannergooding tannergooding transferred this issue from dotnet/Silk.NET Sep 14, 2023
@tannergooding
Copy link
Member

@Perksey, looks to have worked 🎉

@Perksey
Copy link
Member Author

Perksey commented Sep 14, 2023

Awesome, thanks! 🎉

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
Status: Done
Development

Successfully merging a pull request may close this issue.

3 participants