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

Build fails due to incorrect namespace resolution #6820

Closed
1 task done
aidy-jenkins opened this issue Jan 15, 2024 · 0 comments · Fixed by #6822
Closed
1 task done

Build fails due to incorrect namespace resolution #6820

aidy-jenkins opened this issue Jan 15, 2024 · 0 comments · Fixed by #6822

Comments

@aidy-jenkins
Copy link
Contributor

Is there an existing issue for this?

  • I have searched the existing issues

Product

Strawberry Shake

Describe the bug

This seems to have been introduced in Strawberry Shake v13.8, there are some comparisons to System.Text.Json.JsonValueKind.Null which are not prefixed with global::, the result being that if your project namespace that is using Strawberry Shake contains a component called System (or System.Text etc.) then it will fail to build.

In previous versions of Strawberry Shake, the same project would build correctly.

Steps to reproduce

  1. Create a project which contains 'System', e.g. MyProject.Tests.System
  2. Add Strawberry Shake and some query to be generated
  3. The project fails to build with an error

Relevant log output

CS0234 The type or namespace name 'Text' does not exist in the namespace 'MyProject.Tests.System' (are you missing an assembly reference?)

Additional Context?

After investigating the issue somewhat, I believe this was introduced with this pull #6481

Version

13.8.1

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

Successfully merging a pull request may close this issue.

3 participants