Git Product home page Git Product logo

Comments (2)

Anon5710 avatar Anon5710 commented on June 18, 2024 1

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.

  1. 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?

  2. 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.

Anon5710 avatar Anon5710 commented on June 18, 2024

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)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.