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

Incorrect warning about using a static readonly array in Burst-compiled code #2181

Closed
spaarmann opened this issue Oct 7, 2021 · 1 comment · Fixed by #2197
Closed

Incorrect warning about using a static readonly array in Burst-compiled code #2181

spaarmann opened this issue Oct 7, 2021 · 1 comment · Fixed by #2197
Assignees
Labels
Milestone

Comments

@spaarmann
Copy link

Hi,

in a Burst-compiled job, the plugin / Rider shows a warning when reading from a managed array even in cases where this is valid in Burst.
Specifically, the warning says Burst: Loading managed type '' is not supported (so the type appears to get lost somewhere?) reading from a static readonly array initialized and accessed according to the rules in https://docs.unity3d.com/Packages/com.unity.burst@1.6/manual/docs/CSharpLanguageSupport_Types.html#array-types.
Pasting the example from that side into Rider is enough to trigger the warning.

@Domonion Domonion self-assigned this Oct 14, 2021
@Domonion Domonion added the bug label Oct 14, 2021
@Domonion Domonion added this to the Rider 2021.3 milestone Oct 14, 2021
@Domonion Domonion mentioned this issue Oct 26, 2021
@spaarmann
Copy link
Author

Thanks!

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

Successfully merging a pull request may close this issue.

2 participants