Code Monkey home page Code Monkey logo

nodegui / qodejs Goto Github PK

View Code? Open in Web Editor NEW

This project forked from nodejs/node

29.0 29.0 10.0 811.47 MB

Qode is a lightly modified fork of Node.js that allows injecting a third party event loop alongside Node's event loop. It is designed to be used together with `@nodegui/nodegui` and Qt

Home Page: https://nodegui.org/

License: Other

JavaScript 59.44% Makefile 0.26% Shell 0.20% R 0.03% HTML 0.80% C++ 24.48% Python 11.63% C 2.57% DTrace 0.18% Roff 0.05% Batchfile 0.21% Emacs Lisp 0.07% Perl 0.06% Assembly 0.01% Objective-C++ 0.01% TypeScript 0.01%
nodejs qode qt

qodejs's Issues

Command failed

Tried to run nodegui-starter and got this error:

error D:\mlp-mpv\nodegui-starter\node_modules\@nodegui\qode: Command failed.
Exit code: 1
Command: node install.js
Arguments:
Directory: D:\mlp-mpv\nodegui-starter\node_modules\@nodegui\qode
Output:
Error while setting up Qode:  Error: Error while downloading Qode v16.4.0:https://github.com/nodegui/qodejs/releases/download/v16.4.0-qode/v16.4.0-qode-win32-ia32.tar.gz. Not Found
    at download (D:\mlp-mpv\nodegui-starter\node_modules\@nodegui\qode\src\downloader.js:33:11)
    at processTicksAndRejections (node:internal/process/task_queues:96:5)
    at async setupQode (D:\mlp-mpv\nodegui-starter\node_modules\@nodegui\qode\src\setup.js:19:3)

No linux arm64 support

npm install fails on debian 11 (bullseye) with

�[K�[?25hnpm ERR! code 1
npm ERR! path /home/darko/GitHub/nodegui-starter/node_modules/@nodegui/qode
npm ERR! command failed
npm ERR! command sh -c node install.js
npm ERR! Error while setting up Qode:  Error: Error while downloading Qode v16.4.0:https://github.com/nodegui/qodejs/releases/download/v16.4.0-qode/v16.4.0-qode-linux-arm64.tar.gz. Not Found
npm ERR!     at download (/home/darko/GitHub/nodegui-starter/node_modules/@nodegui/qode/src/downloader.js:33:11)
npm ERR!     at processTicksAndRejections (node:internal/process/task_queues:96:5)
npm ERR!     at async setupQode (/home/darko/GitHub/nodegui-starter/node_modules/@nodegui/qode/src/setup.js:19:3)
npm ERR!     at async main (/home/darko/GitHub/nodegui-starter/node_modules/@nodegui/qode/install.js:7:5)

Allow packaging scripts onto qode executables

Right now, projects packaged using nodegui/packer still run the REPL by default when executed with no target script. This is undesirable behaviour, obviously, and the lack of clarity around that behaviour has spawned many issues on the packer project, so there clearly needs to be some way to override that behaviour in the qode executable for packaged applications. Particularly on Windows, the change to the windowing system causes the executable to run the REPL while having no stdio, causing a non-interactive and essentially dead process that must be manually killed.

One method would be to allow for simply catenating a script onto the executable, which could be the entire application script, or simply a loader for some external resources (loose scripts, ASAR archives, whatever the user wants) and having qode automatically execute this script if present, rather than invoking the REPL.

Another approach would be to try creating qode executables integrating the patches from pkg, potentially allowing leveraging pkg to build executables with packaged scripts and resources on top of the Qodejs binary instead of Nodejs. This would have a huge number of other benefits, such as bytecode execution, asset packing, default flags, and so on. Executables built with these patches cannot be easily used for development, however, so separate builds of qode for development and use in packaging would be needed.

HTTP server running with qode cannot accept incoming connections

Version

No response

Platform

macOS

Subsystem

No response

What steps will reproduce the bug?

Run this with Qode environment:
require('http').createServer(function (req, res) { res.end('OK'); }).listen(3000);

The http server can accept local connections but not connections from other computer inside the same LAN. If we run with node instead of qode, this http server can accept all connections.

How often does it reproduce? Is there a required condition?

No response

What is the expected behavior?

No response

What do you see instead?

HTTP connections from external IPs are not accepted

Additional information

No response

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.