apptools-lab / AppWorks

🐻 基于 VS Code 插件的前端研发工具集,站点国内镜像:https://apptools.gitee.io
https://appworks.site/
MIT License
993 stars 180 forks source link

代码质量监测 扫描失败 #980

Closed isLiuyinghao closed 2 years ago

isLiuyinghao commented 2 years ago

插件名/Extension: app doctor

您的本地环境信息/Your local environment information

您遇到的问题及复现步骤/What are your problems and how to reproduce them

使用 质量检测仪进行代码质量监测时, 出现扫描失败的情况

报错截图

image

代码结构

image

image

您期待的正确结果/The right result you're looking forward to

luhc228 commented 2 years ago
image

可以打开控制台有什么报错出现吗

isLiuyinghao commented 2 years ago

你好,很高兴可以回复我的bug

  1. 当我点击 打开质量检测仪时

控制台出现了如下的报错

Message ID: @.***>

  1. 当我要进行项目代码质量检查时:

以上,就是全部的报错了,期待您的修复

yinxing-ws commented 2 years ago

Same Error

ScreenShot: image

full short message: "Command failed with exit code 1: /Applications/Visual Studio Code.app/Contents/MacOS/Electron /Users/yinxing/.vscode/extensions/iceworks-team.iceworks-doctor-1.1.7/node_modules/@appworks/doctor/lib/workers/eslint/index.js /Users/yinxing/Project/lp/tmp/12/lp-benefits-brand /Users/yinxing/.vscode/extensions/iceworks-team.iceworks-doctor-1.1.7/node_modules/@appworks/doctor/lib/tmp/ rax-ts undefined"

libin-code commented 2 years ago

Same as here:

image

fyangstudio commented 2 years ago

可以 发下 eslintrc 文件 和 package.json 的内容吗

fyangstudio commented 2 years ago

1003

wangzhengbo commented 2 years ago

文件太多导致失败:originalMessage: 'spawn ENAMETOOLONG',
由于文件太多,导致命令参数过长

wangzhengbo commented 2 years ago

具体失败的是jscodeshift.js命令,jscodeshift.js会将所有扫描的文件拼接起来作为参数传递

wangzhengbo commented 2 years ago

@fyangstudio 请问下,文件太多导致的问题,会不会考虑提供修复呢?

wangzhengbo commented 2 years ago

Windows 10下的问题