next-theme / hexo-theme-next

🎉 Elegant and powerful theme for Hexo.
https://theme-next.js.org
Other
2.47k stars 437 forks source link

插件 hexo-enhancer 存在问题 #49

Closed suyin-long closed 4 years ago

suyin-long commented 4 years ago

Please follow this Issue template to provide relevant information, such as source code repository, website URL and screenshots, which will help us investigate. 请按照此 Issue 模版提供相关信息,例如源码仓库、网站链接和屏幕截图,这将有助于我们进行调查。

Issue Checklist


Expected behavior

Next 8.x和插件hexo-enchancer兼容,互不影响!

Actual behavior

安装Next 8.x后再安装插件hexo-enchancer,然后执行hexo clean && hexo g && hexo s该语句会报错,错误代码:

FATAL Something's wrong. Maybe you can find the solution here: https://hexo.io/docs/troubleshooting.html
ReferenceError: src is not defined
    at filterPost (E:\Hexo\node_modules\hexo-enhancer\index.js:60:5)
    at Hexo.<anonymous> (E:\Hexo\node_modules\hexo-enhancer\index.js:67:9)   
    at Hexo.tryCatcher (E:\Hexo\node_modules\bluebird\js\release\util.js:16:23)                                                                           
    at Hexo.<anonymous> (E:\Hexo\node_modules\bluebird\js\release\method.js:15:34)                                                                        
    at E:\Hexo\node_modules\hexo\lib\extend\filter.js:62:52                  
    at tryCatcher (E:\Hexo\node_modules\bluebird\js\release\util.js:16:23)   
    at Object.gotValue (E:\Hexo\node_modules\bluebird\js\release\reduce.js:166:18)                                                                        
    at Object.gotAccum (E:\Hexo\node_modules\bluebird\js\release\reduce.js:155:25)                                                                        
    at Object.tryCatcher (E:\Hexo\node_modules\bluebird\js\release\util.js:16:23)                                                                         
    at Promise._settlePromiseFromHandler (E:\Hexo\node_modules\bluebird\js\release\promise.js:547:31)                                                     
    at Promise._settlePromise (E:\Hexo\node_modules\bluebird\js\release\promise.js:604:18)                                                                
    at Promise._settlePromise0 (E:\Hexo\node_modules\bluebird\js\release\promise.js:649:10)                                                               
    at Promise._settlePromises (E:\Hexo\node_modules\bluebird\js\release\promise.js:729:18)                                                               
    at _drainQueueStep (E:\Hexo\node_modules\bluebird\js\release\async.js:93:12)                                                                          
    at _drainQueue (E:\Hexo\node_modules\bluebird\js\release\async.js:86:9)  
    at Async._drainQueues (E:\Hexo\node_modules\bluebird\js\release\async.js:102:5)                                                                       
    at Immediate.Async.drainQueues [as _onImmediate] (E:\Hexo\node_modules\bluebird\js\release\async.js:15:14)                                            
    at processImmediate (internal/timers.js:456:21)                          

Steps to reproduce the behavior

  1. 安装Hexo Next主题

  2. 安装插件hexo-enchancer

  3. 执行hexo clean && hexo g && hexo s语句

Environment Information

Node.js and NPM Information

v12.18.2
6.14.5

Package dependencies Information

hexo-site@0.0.0 E:\Hexo
+-- hexo@4.2.1
+-- hexo-enhancer@1.0.8
+-- hexo-filter-emoji@2.2.1
+-- hexo-generator-archive@1.0.0
+-- hexo-generator-category@1.0.0
+-- hexo-generator-feed@2.2.0
+-- hexo-generator-index@1.0.0
+-- hexo-generator-searchdb@1.3.0
+-- hexo-generator-tag@1.0.0
+-- hexo-helper-live2d@3.1.1
+-- hexo-next-fireworks@1.0.0 (github:next-theme/hexo-next-fireworks#1392a15ad2abebd7f4982f97367524dda3c2fc63)
+-- hexo-next-minivaline@2.0.0
+-- hexo-renderer-ejs@1.0.0
+-- hexo-renderer-marked@2.0.0
+-- hexo-renderer-stylus@1.1.0
+-- hexo-server@1.0.0
+-- hexo-symbols-count-time@0.7.1
`-- live2d-widget-model-hijiki@1.0.5

Hexo Configuration

NexT Configuration

Other Information

插件hexo-enchancer与Next 7.x版本兼容,与Next 8.x版本不兼容

issue-label-bot[bot] commented 4 years ago

Issue Label Bot is not confident enough to auto-label this issue. See dashboard for more details.

stevenjoezhang commented 4 years ago

测试显示即使在使用 landscape 主题时,hexo-enchancer 插件仍然会抛出相同的错误。这意味着问题与 NexT 主题无关。

自 2019 年 7 月 29 日起,您一共在 hexo-theme-next 仓库中提交了 13 个 Issue。其中: 5 个内容重复 theme-next/hexo-theme-next#1245 theme-next/hexo-theme-next#1248 theme-next/hexo-theme-next#1249 theme-next/hexo-theme-next#1294 #49 2 个提问内容在 NexT 文档中有着清晰且明确的描述 theme-next/hexo-theme-next#1021 theme-next/hexo-theme-next#1028 2 个是报告与 NexT 完全无关的 bug(Chrome 浏览器和 hexo-enchancer 插件)theme-next/hexo-theme-next#993 #45 2 个是解决个人问题 theme-next/hexo-theme-next#994 theme-next/hexo-theme-next#1342 1 个是预期行为 theme-next/hexo-theme-next#992 1 个是描述与事实不符 theme-next/hexo-theme-next#1244

我们欢迎您提出积极的意见和建议,帮助NexT主题变得更好。然而,我们遗憾地发现,您始终将GitHub Issue用于解决个人问题,以及提出与主题本身无关的要求。 GitHub Issue是公共讨论空间,而不是您的个人游乐场。如果您继续发表无意义内容,我们可能会采取必要的行动。 如果您不理解何为「开源社区」,如何使用GitHub Issue,或者如何使用Hexo,可以去读读文档,而不是浪费大家的时间。 祝您使用愉快!

Originally posted by @stevenjoezhang in https://github.com/theme-next/hexo-theme-next/issues/1249#issuecomment-547367840

由于我已在一年前告知您可能会「采取必要的行动」,今天我决定使用 GitHub 所赋予的权利,禁止您继续在 NexT 主题有关仓库中提交 Issue。祝您生活愉快。

stevenjoezhang commented 4 years ago

更新:hexo-enchancer 插件已修复此问题 https://github.com/sisyphsu/hexo-enhancer/commit/b9ce47ff9a14674e3fdccad4eff5f8c87840eebc