Code Monkey home page Code Monkey logo

Comments (8)

InspectorMustache avatar InspectorMustache commented on September 25, 2024 1

Okay, so the builder shouldn't hang anymore when there's an issue with a single thread (96383d0).

from base16-builder-python.

reneatzi avatar reneatzi commented on September 25, 2024

Same error here on arch with Python 3.7.4.

I get the error on a different colorscheme. I tried to remove the faulty one and build it again, but still got the same error. Just on a different colorscheme.

from base16-builder-python.

gma avatar gma commented on September 25, 2024

@reneatzi I suspect that the thread that's throwing the error isn't processing the theme whose name was printed on the previous line; there could well be quite a few threads running at once, and that error could have come from any of them. I've not checked the code though - this is just how I imagine it's working. Perhaps we should grep for #2 to narrow down the potential culprits (I'm not on the right computer right now to try it).

from base16-builder-python.

InspectorMustache avatar InspectorMustache commented on September 25, 2024

First of all, thanks for reporting!
There's two things here that need to be considered. First, why does building fail for some schemes and then, why does a build error cause the script to hang.

So for the first part, my initial guess would be that these are schemes that adhere to the new base16 standard (0.9.1) which the builder doesn't support yet. Regarding the hanging issue, I had a quick look at the code and I am pretty sure, the program blocks because the thread doesn't signal task_done() to the queue when it encounters an exception. That should be easy to fix. Updating the builder to 0.9.1 actually shouldn't be that difficult either, but might take a little time. I'll try to fix that in the coming week or so.

from base16-builder-python.

gma avatar gma commented on September 25, 2024

Nicely, thanks @InspectorMustache. I just updated, ran it again, and got your nice helpful error message instead...

Error building /home/graham/tmp/base16/base16-builder-python/schemes/gigavolt/gigavolt.yaml:
	invalid literal for int() with base 16: '#2'Building colorschemes for scheme "Brogrammer"…

I think can do without the Brogrammer... ;-)

from base16-builder-python.

reneatzi avatar reneatzi commented on September 25, 2024

Okay, so the builder shouldn't hang anymore when there's an issue with a single thread (96383d0).

Thank you, can confirm that it is working now.

from base16-builder-python.

InspectorMustache avatar InspectorMustache commented on September 25, 2024

Good to hear, I changed the title of the issue to better reflect what's still left to do.

from base16-builder-python.

InspectorMustache avatar InspectorMustache commented on September 25, 2024

Actually this had nothing to do with the update to the base16 specification, that scheme is just badly formatted. Aaaaanyway....

from base16-builder-python.

Related Issues (16)

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.