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

Error stack trace lines do not match up in files where codegen has occurred #6180

Open
trundlr opened this issue Aug 10, 2024 · 3 comments
Open

Comments

@trundlr
Copy link

trundlr commented Aug 10, 2024

Describe the bug

In Grubs, there are lots of errors that are occurring in files where we have Broadcasts, which generate some code.

Object reference not set to an instance of an object.
Grubs.Common.Resolution+<>c__DisplayClass5_0.<ClearForceResolved>b__0(Common/Resolution.cs:24)
Sandbox.Rpc.Resume(Rpc.cs:85)

These error are really hard to follow since Resolution.cs:24 in my IDE is a continue; which clearly is not the line which is having an NRE.

To Reproduce

  1. Upload a game with a broadcast and an error in the same file
  2. See the error does not match up

This occurs un-uploaded too, of course, in local stack traces in the console.

Expected behavior

Stack traces should be accurate to the original source.

Media/Files

No response

Additional context

No response

@trundlr
Copy link
Author

trundlr commented Nov 28, 2024

I think this is fixed for components but still an issue for razor files

@trundlr
Copy link
Author

trundlr commented Jan 30, 2025

This seems to have come back lately for normal components!

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

No branches or pull requests

2 participants