You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
If I amend the code to not import a symbol named bar, the error goes away. But it took a lot more debugging than I'd have liked to figure out that that's what was happening.
The text was updated successfully, but these errors were encountered:
hm. i was aware that local names got stamped on, but i thought they got stamped everywhere including in the struct access. we probably need to widen the search/replace to catch example.bar and map it to example.dep__NAGA_OIL_MOD__bar as well.
i realise this is not a nice approach, but more sophisticated handling requires AST context, which we can't currently obtain without a complete/working shader as input.
That makes sense actually. It sounds like the current behavior is from #31? If there's already an exception carved out for identifiers following ., maybe an alternative here could be widening that exception to include identifiers preceding : (presumably, these are always struct members or function arguments)
This code produces this error:
If I amend the code to not import a symbol named
bar
, the error goes away. But it took a lot more debugging than I'd have liked to figure out that that's what was happening.The text was updated successfully, but these errors were encountered: