qcerasmus / notepadqq-extensions Goto Github PK
View Code? Open in Web Editor NEWExtensions for the Notepadqq project found at: http://notepadqq.altervista.org/s/
License: MIT License
Extensions for the Notepadqq project found at: http://notepadqq.altervista.org/s/
License: MIT License
Hi, I wanted to try out your extensions. So I downloaded the two .nqqext files, then in Notepadqq I selected Extensions -> Install Extension... from the main menu.
The extensions were installed correctly according to Notepadqq, but in the Extensions menu I do not see anything, even after restarting Notepadqq.
Did I do something wrong?
Notepadqq: 1.4.8
(QtWebKit)
Node: 0.12.18
Qt: 5.11
Exception handling would be appreciated.
undefined:1
2.0.7"
^
SyntaxError: Unexpected token .
at Object.parse (native)
at Function.<anonymous> (/home/scx/.var/app/com.notepadqq.Notepadqq/config/Notepadqq/extensions/com.lintwurm.beautifier/main.js:62:19)
at MessageInterpreter._processEventMessage (/home/scx/.var/app/com.notepadqq.Notepadqq/config/Notepadqq/extensions/com.lintwurm.beautifier/node_modules/notepadqq-api/lib/message_interpreter.js:55:29)
at MessageInterpreter.processMessage (/home/scx/.var/app/com.notepadqq.Notepadqq/config/Notepadqq/extensions/com.lintwurm.beautifier/node_modules/notepadqq-api/lib/message_interpreter.js:40:18)
at NotepadqqApi._onNewMessage (/home/scx/.var/app/com.notepadqq.Notepadqq/config/Notepadqq/extensions/com.lintwurm.beautifier/node_modules/notepadqq-api/lib/notepadqq_api.js:101:34)
at DataChannel.<anonymous> (/home/scx/.var/app/com.notepadqq.Notepadqq/config/Notepadqq/extensions/com.lintwurm.beautifier/node_modules/notepadqq-api/lib/data_channel.js:20:17)
at Socket.emit (events.js:107:17)
at readableAddChunk (_stream_readable.js:163:16)
at Socket.Readable.push (_stream_readable.js:126:10)
at Pipe.onread (net.js:540:20)
Notepadqq: 1.4.8
(QtWebKit)
Node: 0.12.18
Qt: 5.11
module.js:338
throw err;
^
Error: Cannot find module 'deasync'
at Function.Module._resolveFilename (module.js:336:15)
at Function.Module._load (module.js:278:25)
at Module.require (module.js:365:17)
at require (module.js:384:17)
at MessageInterpreter.invokeApi (/home/scx/.var/app/com.notepadqq.Notepadqq/config/Notepadqq/extensions/com.lintwurm.hex2ascii/node_modules/notepadqq-api/lib/message_interpreter.js:25:13)
at Notepadqq.Stub._methodMissing (/home/scx/.var/app/com.notepadqq.Notepadqq/config/Notepadqq/extensions/com.lintwurm.hex2ascii/node_modules/notepadqq-api/lib/stubs.js:25:45)
at <error: illegal access>
at NotepadqqApi.onWindowInitialization (/home/scx/.var/app/com.notepadqq.Notepadqq/config/Notepadqq/extensions/com.lintwurm.hex2ascii/node_modules/notepadqq-api/lib/notepadqq_api.js:69:41)
at /home/scx/.var/app/com.notepadqq.Notepadqq/config/Notepadqq/extensions/com.lintwurm.hex2ascii/main.js:21:6
at /home/scx/.var/app/com.notepadqq.Notepadqq/config/Notepadqq/extensions/com.lintwurm.hex2ascii/node_modules/notepadqq-api/lib/notepadqq_api.js:28:51
Temporary patch:
diff --git a/hex-ascii/package.json b/hex-ascii/package.json
index 31e62b2..e1c5550 100644
--- a/hex-ascii/package.json
+++ b/hex-ascii/package.json
@@ -2,7 +2,10 @@
"name": "Hex2Ascii",
"version": "0.0.1",
"dependencies": {
- "notepadqq-api": "^0.9.5"
+ "notepadqq-api": "^0.9.5",
+ "bindings": "~1.2.1",
+ "deasync": "^0.1.0",
+ "nan": "^2.0.7"
},
"private": true
}
PR is on the way.
Notepadqq: 1.4.8
(QtWebKit)
Node: 0.12.18
Qt: 5.11
Exception handling would be appreciated.
SyntaxError: Unexpected end of input
at Object.parse (native)
at Function.<anonymous> (/home/scx/.var/app/com.notepadqq.Notepadqq/config/Notepadqq/extensions/com.lintwurm.beautifier/main.js:62:19)
at MessageInterpreter._processEventMessage (/home/scx/.var/app/com.notepadqq.Notepadqq/config/Notepadqq/extensions/com.lintwurm.beautifier/node_modules/notepadqq-api/lib/message_interpreter.js:55:29)
at MessageInterpreter.processMessage (/home/scx/.var/app/com.notepadqq.Notepadqq/config/Notepadqq/extensions/com.lintwurm.beautifier/node_modules/notepadqq-api/lib/message_interpreter.js:40:18)
at NotepadqqApi._onNewMessage (/home/scx/.var/app/com.notepadqq.Notepadqq/config/Notepadqq/extensions/com.lintwurm.beautifier/node_modules/notepadqq-api/lib/notepadqq_api.js:101:34)
at DataChannel.<anonymous> (/home/scx/.var/app/com.notepadqq.Notepadqq/config/Notepadqq/extensions/com.lintwurm.beautifier/node_modules/notepadqq-api/lib/data_channel.js:20:17)
at Socket.emit (events.js:107:17)
at readableAddChunk (_stream_readable.js:163:16)
at Socket.Readable.push (_stream_readable.js:126:10)
at Pipe.onread (net.js:540:20)
Notepadqq: 1.4.8
(QtWebKit)
Node: 0.12.18
Qt: 5.11
It seems that calling the window.currentEditor().setLanguage
function causes program instability.
58efcb0#diff-9abf9a9b8c3977f837ca7aa50552e15bR65-R74
For what version of node and noteoadqq did you test it?
I have notepadqq and npm installed on debian 12 amd64.
I have cloned you repo
~/git$ git clone https://github.com/qcerasmus/notepadqq-extensions.git)
~/git/notepadqq-extensions/beautifier$ npm install notepadqq-api --save
added 5 packages, and audited 6 packages in 4s
found 0 vulnerabilities
~/git/notepadqq-extensions/beautifier$ node /usr/share/notepadqq/extension_tools/pack.js . npm
_node:internal/modules/cjs/loader:1137
throw err;
^
Error: Cannot find module '/usr/share/notepadqq/extension_tools/pack.js'
at Module._resolveFilename (node:internal/modules/cjs/loader:1134:15)
at Module._load (node:internal/modules/cjs/loader:975:27)
at Function.executeUserEntryPoint [as runMain] (node:internal/modules/run_main:128:12)
at node:internal/main/run_main_module:28:49 {
code: 'MODULE_NOT_FOUND',
requireStack: []
}
Node.js v18.19.0_
I have empty folder /usr/share/notepadqq/extension_tools without pack.js in it.
i have installed your extensions, show success .how to use extensions...
Notepadqq: beta
(QtWebEngine)
Node: 0.12.18
Qt: 5.12
Installation is not a problem, but this extension just doesn't work. Instead of formatted text, it always inserts null
(as a string).
Sometimes it just crashes the program.
Notepadqq: beta
(QtWebEngine)
Node: 0.12.18
Qt: 5.12
Installation is not a problem, but using the extension immediately crashes the program. There is no any output on stdout or stderr.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.