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
When trying to generate the marshal/unmarshall structs for any file in my project.
This error keeps popping up : "Bootstrap failed: 1:34: expected ']', found 16 (and 4 more errors)"
Any idea what is causing this?
Is there a way to show more debug output ?
The text was updated successfully, but these errors were encountered:
I was able to get the parsing to work when I separated out the code we want to improve. It's showing a 134x speed increase when unmarshaling a big struct we use. ( wow ... )
Unfortunately, when trying to run the parsing against the full source code I still run into the issue above. I'm adding more trace code into the app now, I'll update when I have more information.
So, I'm guessing when the parser loads my project files, it also executes the Init() function in one of my packages.
This init function is printing something to std:out, which in turn seems to mess up the temp files leaving it as invalid go-code. Wich causes failures down the line.
Removing the trace from my Init() function solved the issue.
It looks like easyjson passes around std:out to generate this file. It seems weird to do that, is there a good reason why easyjson doesn't use a file?
I spend almost a day finding this issue, the error message should be improved. If the issue is not solved, at least a big warning should be placed in the readme to warn new users to this issue.
When trying to generate the marshal/unmarshall structs for any file in my project.
This error keeps popping up : "Bootstrap failed: 1:34: expected ']', found 16 (and 4 more errors)"
Any idea what is causing this?
Is there a way to show more debug output ?
The text was updated successfully, but these errors were encountered: