Comments (2)
// pure nodejs context
console.log(`## Hi!`);
let aaa = 3;
/** tw */
// now in worker_thread with $tw wiki access
let filterExample = $tw.wiki.filterOperators.sum((callback) => {callback({}, String(aaa));callback({}, String(aaa))})
console.log(filterExample)
Hi!
ReferenceError: variableMap is not defined at file:///C:/Users/LINONE~1/AppData/Local/Temp/J7iqez/test.mjs:8:55 at ModuleJob.run (node:internal/modules/esm/module_job:194:25)
ReferenceError: aaa is not defined evalmachine.:6 let filterExample = $tw.wiki.filterOperators.sum((callback) => {callback({}, String(aaa));callback({}, String(aaa))}) ^ ReferenceError: aaa is not defined at evalmachine.:6:85 at Object.sum ([$:/core/modules/filters/math.js](http://192.168.3.6:5215/#%24%3A%2Fcore%2Fmodules%2Ffilters%2Fmath.js):234:3) at evalmachine.:6:46 at Script.runInContext (node:vm:141:12) at Object.runInContext (node:vm:291:6) at ue (C:\Users\linonetwo\AppData\Local\tidgi\app-0.8.0-prerelease10\resources\app.asar.unpacked\.webpack\main\543.index.worker.js:2:549934) at C:\Users\linonetwo\AppData\Local\tidgi\app-0.8.0-prerelease10\resources\app.asar.unpacked\.webpack\main\543.index.worker.js:2:553550 at processTicksAndRejections (node:internal/process/task_queues:95:5) SourceCode: now in worker_thread with $tw wiki access let filterExample = $tw.wiki.filterOperators.sum((callback) => {callback({}, String(aaa));callback({}, String(aaa))}) console.log(filterExample) pushVariablesToTWContext(variableMap);
[$:/state/linonetwo/zx-script/output/test](http://192.168.3.6:5215/#%24%3A%2Fstate%2Flinonetwo%2Fzx-script%2Foutput%2Ftest)
from tidgi-desktop.
from tidgi-desktop.
Related Issues (20)
- bug: Cannot read properties of undefined (reading 'inference')
- feature: 把侧边栏改成可分组的形式
- bug: E-13 维基运行时有错误 HOT 5
- feature: Can the TidGi External Attachments Plugin support the use of relative yet absolute paths? HOT 5
- bug: Error executing boot module $:/plugins/linonetwo/tw-react/example.js: HOT 2
- bug: compatibility with plugin:left open tab:"Global assignment is not allowed within modules on node." HOT 2
- bug: E-13 维基运行时有错误,原因请查看 log 文件,并上传提交 issue 以便修复。 D:\Portfolio\Lib_TidGi\MyTid [1;31mError executing boo HOT 2
- bug: $:/plugins/ihm/tidgraph 跳转白屏
- feature: 设置打开软件时启动的wiki HOT 9
- bug: 在tidgi中登录github后仍然展示未登录 HOT 4
- feature: 接入chatgml2 HOT 1
- feature: 群晖Synology安装/或者docker版本 HOT 4
- bug: zx script
- bug: read only should not commit HOT 1
- feature: 语义图片搜索
- bug: ERR_FAILED (-2) loading 'tidgi://jUKsP0NwiSE7F67QaxNET#:GettingStarted' HOT 3
- bug: localhost:5214 can not be visited HOT 2
- bug: 拖入插件后,重启服务,报错 HOT 2
- bug: E-13 维基运行时有错误,原因请查看 log 文件,并上传提交 issue 以便修复。 /Users/symmetry/TidGi/Astro [1;31mError executing boot HOT 2
- bug: wiki-set-tiddler-text for F5Y9biiCEyuphSILUwOkX in sendToMainWindowAndAwait Timeout after 15000ms HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from tidgi-desktop.