Unable to build SCWB on Windows 10
还没有人认领这个 Issue。
评估
- 难度
- 4/5
- 预计耗时
- 3-5 天
- 新手友好度
- 35/100
- Issue 类型
- 缺陷
- 描述清晰度
- 基本清楚
- 活跃度
- 停滞
- 技术栈
- electron, node.js, python, typescript
- 领域
- build-system, desktop
调研方向
使用文档中说明的 npm install、electron-rebuild、npm start 和 build.py 步骤重现 Windows 构建,然后将当前树与标签 v3.1.1 进行比较。检查生成的 dist 文件夹以及 Cannot find module '../dist/src/main' 失败,并运行 npm test。完成的标准是打包后的 .exe 能够成功启动且测试命令通过。
由索引模型根据 Issue 内容生成。
描述
I discovered in recent days that I am unable to build the current version of SCWB on my Windows 10 laptop using Git Bash.
This process still works when I check out the latest tag -- v3.1.1 from the latest release, in September 2019 -- and build with Python 2.7.15.
- run
npm install - run
./node_modules/.bin/electron-rebuild - run
npm start-- SCWB launched, looked good, displayed some data just fine - close the SCWB 3.1.1 instance
- run
/c/Python27/python.exe build.py - navigate to the
/dist/folder, double clickScanCode-Workbench.exeand no errors -- SCWB 3.1.1 opens, runs fine, looks great.
With the current code, the 1st 3 steps work with both Python 2.7.15 and Python3 (3.8.3). No error during the build process, but when I try to run the built .exe I get a JavaScript error: Cannot find module '../dist/src/main'.
Not sure what is meant by Cannot find module '../dist/src/main' but can confirm there is no such folder. Same result when extracting the .zip and running the .exe found there. I also get an error running npm test.
Perhaps I'm using the wrong version of npm, or node.js (but they look like they meet the RTD Windows requirements -- https://scancode-workbench.readthedocs.io/en/develop/contribute/building.html#windows)? (I have npm 5.2.0 and node 12.16.3.) Seems like some conflict was introduced after the 3.1.1 tag was created.
- 主要语言
- TypeScript
- 星标
- 174
- 派生
- 81
- PR 合并指标
- 30 天内没有已合并 PR
环境准备
- 没有 Dockerfile 或 Docker Compose 文件
- 有 Pull Request 模板
- 阅读贡献指南
从这里开始
- 先读完整个 Issue,再读项目的贡献指南。
- 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
- Fork 仓库,在一个分支上完成修改。
- 提交 Pull Request,并在描述里引用这个 Issue 编号。
aboutcode-org/scancode-workbench 的其他 Issue
-
reference scancode.io in README prominently可能重新可做 关联的 PR 已关闭且未合并。 未关闭
难度 2/5 1 小时以内 新手友好度 35/100
aboutcode-org/scancode-workbench#639 · 4 条评论 ·
-
难度 2/5 1-3 小时 新手友好度 42/100
aboutcode-org/scancode-workbench#635 · 4 条评论 ·
-
good first issue
难度 3/5 1-2 天 新手友好度 35/100
aboutcode-org/scancode-workbench#634 · 2 条评论 ·
-
难度 4/5 3-5 天 新手友好度 25/100
aboutcode-org/scancode-workbench#632 · 5 条评论 · 1 个 reaction ·
-
难度 5/5 一周以上 新手友好度 25/100
查看 aboutcode-org/scancode-workbench 的全部 Issue
相似的 Issue
-
难度 1/5 1-3 小时 新手友好度 66/100
维护者通常 1 天内回复
-
area:plugins area:security area:skills bug has repro
难度 2/5 1-3 小时 新手友好度 76/100
anthropics/claude-code#105911 ·
维护者通常 1 天内回复
-
documentation good first issue help wanted
难度 2/5 1-3 小时 新手友好度 74/100
dev-five-git/devup-ui#879 ·
维护者通常 11 天内回复
-
openspec-apply-change skill: when blocked, may select a ready artifact unrelated to missingArtifacts未关闭
难度 2/5 1-3 小时 新手友好度 72/100
Fission-AI/OpenSpec#2165 ·
维护者通常 1 天内回复
-
🐞 bug 🧐 unconfirmed
难度 2/5 1-3 小时 新手友好度 66/100
Tencent/tdesign-vue-next#7032 · 1 条评论 ·
维护者通常 1 天内回复