Giter Site home page Giter Site logo

Comments (6)

sagebind avatar sagebind commented on August 22, 2024

Thanks for reporting the issue (and for being interested in Icicle)! What version of Icicle are you using?

from icicle.

goddanao avatar goddanao commented on August 22, 2024

icicleio/icicle v0.8.3
icicleio/react-adapter v0.3.1
react/event-loop v0.4.1

from icicle.

sagebind avatar sagebind commented on August 22, 2024

Okay thanks. Can you give some code that generates this error? When adding a stream to the event loop, it should only throw an exception if $resource is an invalid resource handle.

from icicle.

goddanao avatar goddanao commented on August 22, 2024

I'm using react/zeromq wich support polling for zeromq sockets. Those sockets are handled by react loop using the filedescriptor wich is an int (see here).

Removing the check for $resource is an invalid resource handle allow to use filedescriptors.
I removed those lines and worked as expected.

from icicle.

trowski avatar trowski commented on August 22, 2024

I removed the is_resource() check in v0.9, which I'll be tagging shortly. I'll need to update the related libraries to work with the new version, as there's a number of changes in v0.9. Hopefully this will be the last major change before a v1.0.

I'll update and close this issue once everything is ready for you to try the new version.

from icicle.

trowski avatar trowski commented on August 22, 2024

@goddanao Try using the new version of Icicle and related packages with your code and see if it works now. I removed the resource check from SocketEvent, which has also been renamed to Io.

"icicleio/icicle": "^0.9.1"
"icicleio/react-adaptor": "^0.4"

Many interfaces and classes were renamed to remove Interface suffixes with the new versions, but you should be able to update with find-and-replace fairly quickly. If you have any questions, don't hesitate to ask.

from icicle.

Related Issues (13)

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.