Comments (2)
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.
from easyjson.
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.
from easyjson.
Related Issues (20)
- Mail.ru хорошие люди
- MarshalToWriter does not pool buffers since Go 1.17
- Detailed unmarshalling error information
- go1.18
- Struct with embedding struct pointer set to nill causes panic HOT 1
- go 1.18 generics support HOT 3
- easyjson didn't generate all data. MFTI/perfomance/json example HOT 1
- Tag a new version
- Undocumented 'required' struct tag
- String JSON field to int struct field
- Interface types generate associated functions. Maybe they shouldn't.
- (v *RawMessage) UnmarshalJSON(data []byte) does not make copy of data
- Cannot handle uint64 just like std json
- cant gen code in main package HOT 1
- Impact of sanctions on this library
- json.Valid breaks in SkipRecursive
- errors!
- Cli tool type missmatch
- []byte field is incorrectly generated as a string field, making it unmarshalable
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from easyjson.