Open Evyde opened 3 years ago
感谢, 我今天集中更新了一版, 现在应该是可以用了. 可以用新版试下
今天太晚了, issue 我这两天看下
又发现了新的Bug,当文件名过长时,创建文件夹会失败。 具体日志:
2021-11-18 14:41: [GenerateCustomer] catch error
2021-11-18 14:41: [GenerateCustomer] ShellJSInternalError: EINVAL: invalid argument, mkdir 'C:\Users\Evyde\AppData\Local\Programs\zhihuhelp\resources\app\缓存文件\epub\大概600个字符的文件名'
at mkdirSync (fs.js:1009:3)
at Object.e.mkdirSync (electron/js2c/asar_bundle.js:5:12191)
at mkdirSyncRecursive (C:\Users\Evyde\AppData\Local\Programs\zhihuhelp\resources\app\node_modules\shelljs\src\mkdir.js:32:6)
at C:\Users\Evyde\AppData\Local\Programs\zhihuhelp\resources\app\node_modules\shelljs\src\mkdir.js:81:9
at Array.forEach (<anonymous>)
at Object._mkdir (C:\Users\Evyde\AppData\Local\Programs\zhihuhelp\resources\app\node_modules\shelljs\src\mkdir.js:59:8)
at Object.mkdir (C:\Users\Evyde\AppData\Local\Programs\zhihuhelp\resources\app\node_modules\shelljs\src\common.js:384:25)
at GenerateCustomer.initStaticRecource (C:\Users\Evyde\AppData\Local\Programs\zhihuhelp\resources\app\dist\command\generate\base.js:234:22)
at C:\Users\Evyde\AppData\Local\Programs\zhihuhelp\resources\app\dist\command\generate\customer.js:677:14
at Generator.next (<anonymous>)
at asyncGeneratorStep (C:\Users\Evyde\AppData\Local\Programs\zhihuhelp\resources\app\dist\command\generate\customer.js:46:103)
at _next (C:\Users\Evyde\AppData\Local\Programs\zhihuhelp\resources\app\dist\command\generate\customer.js:48:194)
at C:\Users\Evyde\AppData\Local\Programs\zhihuhelp\resources\app\dist\command\generate\customer.js:48:364
at new Promise (<anonymous>)
at C:\Users\Evyde\AppData\Local\Programs\zhihuhelp\resources\app\dist\command\generate\customer.js:48:97
at GenerateCustomer.generateEpub (C:\Users\Evyde\AppData\Local\Programs\zhihuhelp\resources\app\dist\command\generate\customer.js:780:7)
at C:\Users\Evyde\AppData\Local\Programs\zhihuhelp\resources\app\dist\command\generate\customer.js:656:21
at Generator.next (<anonymous>)
at asyncGeneratorStep (C:\Users\Evyde\AppData\Local\Programs\zhihuhelp\resources\app\dist\command\generate\customer.js:46:103)
at _next (C:\Users\Evyde\AppData\Local\Programs\zhihuhelp\resources\app\dist\command\generate\customer.js:48:194)
收到😂
收到😂
哈哈其实我感觉是Windows路径长度限制的问题,非要解决的话,要不就是直接禁用,但是需要管理员权限;要不就是自动生成的文件名限制字符数量就行。
谢谢作者了,我已经把我的数据备份下来了,提一些功能性的建议:
暂时就这些了。
开发环境搭建阶段
request-promise
包,必须手动安装npm run startgui
的时候加入--debug
选项即可,即npm run startgui --debug
npm install
和npm run ace
之后提示(当然很有可能是我操作不当)TypeError: Cannot read property 'addCommand' of undefined at Object. (C:\Users****\Desktop\zhihuhelp-master\dist\ace.js:34:16)
at Module._compile (internal/modules/cjs/loader.js:1063:30)
at Object.Module._extensions..js (internal/modules/cjs/loader.js:1092:10)
at Module.load (internal/modules/cjs/loader.js:928:32)
at Function.Module._load (internal/modules/cjs/loader.js:769:14)
at Function.executeUserEntryPoint [as runMain] (internal/modules/run_main.js:72:12)
at internal/main/run_main_module.js:17:47
npm ERR! code ELIFECYCLE
npm ERR! errno 1
npm ERR! zhihuhelp@2.3.1 ace:
node dist/ace.js
npm ERR! Exit status 1 npm ERR! npm ERR! Failed at the zhihuhelp@2.3.1 ace script. npm ERR! This is probably not a problem with npm. There is likely additional logging output above.