opensumi / ide-electron Goto Github PK
View Code? Open in Web Editor NEWOpenSumi Electron Version
Home Page: https://opensumi.com
License: MIT License
OpenSumi Electron Version
Home Page: https://opensumi.com
License: MIT License
测试系统:Windows10
node版本:v14.19.2
node-gyp版本:v5.1.0
虽然我不知道为什么会出错,可能和node版本有关。
但是electron更改为17.4.3可以解决。
错误log
c:\users\kaizhi\appdata\local\node-gyp\cache\18.0.3\include\node\v8-traced-handle.h(240): error C2061: 语法错误: 标识符“TracedGlobal<`template-type-parameter-1'>” (编译源文件 ..\src\win\path_util.cc) [C:
\Users\kaizhi\Desktop\singtown-cam-ide\node_modules\node-pty\build\conpty.vcxproj]
c:\users\kaizhi\appdata\local\node-gyp\cache\18.0.3\include\node\v8-traced-handle.h(335): note: 参见对正在编译的 类 模板 实例化 "v8::TracedGlobal<T>" 的引用 (编译源文件 ..\src\win\path_util.cc)
c:\users\kaizhi\appdata\local\node-gyp\cache\18.0.3\include\node\v8-traced-handle.h(240): error C2334: “:”的前面有意外标记;跳过明显的函数体 (编译源文件 ..\src\win\path_util.cc) [C:\Users\kaizhi\Desktop\singtown-c
am-ide\node_modules\node-pty\build\conpty.vcxproj]
c:\users\kaizhi\appdata\local\node-gyp\cache\18.0.3\include\node\v8-traced-handle.h(22): fatal error C1075: “{”: 未找到匹配令牌 (编译源文件 ..\src\win\path_util.cc) [C:\Users\kaizhi\Desktop\singtown-cam-
ide\node_modules\node-pty\build\conpty.vcxproj]
c:\users\kaizhi\appdata\local\node-gyp\cache\18.0.3\include\node\v8-traced-handle.h(240): error C2061: 语法错误: 标识符“TracedGlobal<`template-type-parameter-1'>” (编译源文件 ..\src\win\conpty.cc) [C:\Us
ers\kaizhi\Desktop\singtown-cam-ide\node_modules\node-pty\build\conpty.vcxproj]
c:\users\kaizhi\appdata\local\node-gyp\cache\18.0.3\include\node\v8-traced-handle.h(335): note: 参见对正在编译的 类 模板 实例化 "v8::TracedGlobal<T>" 的引用 (编译源文件 ..\src\win\conpty.cc)c:\users\kaizhi\appdata\local\node-gyp\cache\18.0.3\include\node\v8-traced-handle.h(240): error C2334: “:”的前面有意外标记;跳过明显的函数体 (编译源文件 ..\src\win\conpty.cc) [C:\Users\kaizhi\Desktop\singtown-cam-
ide\node_modules\node-pty\build\conpty.vcxproj]
c:\users\kaizhi\appdata\local\node-gyp\cache\18.0.3\include\node\v8-traced-handle.h(22): fatal error C1075: “{”: 未找到匹配令牌 (编译源文件 ..\src\win\conpty.cc) [C:\Users\kaizhi\Desktop\singtown-cam-ide
\node_modules\node-pty\build\conpty.vcxproj]
conpty_console_list.cc
win_delay_load_hook.cc
c:\users\kaizhi\appdata\local\node-gyp\cache\18.0.3\include\node\v8-traced-handle.h(240): error C2061: 语法错误: 标识符“TracedGlobal<`template-type-parameter-1'>” (编译源文件 ..\src\win\conpty_console_li
st.cc) [C:\Users\kaizhi\Desktop\singtown-cam-ide\node_modules\node-pty\build\conpty_console_list.vcxproj]
c:\users\kaizhi\appdata\local\node-gyp\cache\18.0.3\include\node\v8-traced-handle.h(335): note: 参见对正在编译的 类 模板 实例化 "v8::TracedGlobal<T>" 的引用 (编译源文件 ..\src\win\conpty_console_list.cc)
c:\users\kaizhi\appdata\local\node-gyp\cache\18.0.3\include\node\v8-traced-handle.h(240): error C2334: “:”的前面有意外标记;跳过明显的函数体 (编译源文件 ..\src\win\conpty_console_list.cc) [C:\Users\kaizhi\Desktop\
singtown-cam-ide\node_modules\node-pty\build\conpty_console_list.vcxproj]
c:\users\kaizhi\appdata\local\node-gyp\cache\18.0.3\include\node\v8-traced-handle.h(22): fatal error C1075: “{”: 未找到匹配令牌 (编译源文件 ..\src\win\conpty_console_list.cc) [C:\Users\kaizhi\Desktop\sin
gtown-cam-ide\node_modules\node-pty\build\conpty_console_list.vcxproj]
AgentLocation.cc
winpty.cc
BackgroundDesktop.cc
Buffer.cc
DebugClient.cc
GenRandom.cc
OwnedHandle.cc
StringUtil.cc
WindowsSecurity.cc
WindowsVersion.cc
WinptyAssert.cc
WinptyException.cc
WinptyVersion.cc
win_delay_load_hook.cc
正在创建库 C:\Users\kaizhi\Desktop\singtown-cam-ide\node_modules\node-pty\build\Release\winpty.lib 和对象 C:\Users\kaizhi\Desktop\singtown-cam-ide\node_modules\node-pty\build\Release\winpty.exp
winpty.vcxproj -> C:\Users\kaizhi\Desktop\singtown-cam-ide\node_modules\node-pty\build\Release\\winpty.dll
Agent.cc
AgentCreateDesktop.cc
ConsoleFont.cc
ConsoleInput.cc
ConsoleInputReencoding.cc
ConsoleLine.cc
DebugShowInput.cc
DefaultInputMap.cc
EventLoop.cc
InputMap.cc
LargeConsoleRead.cc
NamedPipe.cc
Scraper.cc
Terminal.cc
Win32Console.cc
Win32ConsoleBuffer.cc
main.cc
BackgroundDesktop.cc
Buffer.cc
GenRandom.cc
OwnedHandle.cc
StringUtil.cc
WindowsSecurity.cc
WindowsVersion.cc
WinptyAssert.cc
WinptyException.cc
WinptyVersion.cc
win_delay_load_hook.cc
winpty-agent.vcxproj -> C:\Users\kaizhi\Desktop\singtown-cam-ide\node_modules\node-pty\build\Release\\winpty-agent.exe
gyp ERR! build error
gyp ERR! stack Error: `C:\Program Files (x86)\Microsoft Visual Studio\2017\BuildTools\MSBuild\15.0\Bin\MSBuild.exe` failed with exit code: 1
gyp ERR! stack at ChildProcess.onExit (C:\Program Files\nodejs\node_modules\npm\node_modules\node-gyp\lib\build.js:194:23)
gyp ERR! stack at ChildProcess.emit (events.js:400:28)
gyp ERR! stack at Process.ChildProcess._handle.onexit (internal/child_process.js:285:12)
gyp ERR! System Windows_NT 10.0.19043
gyp ERR! command "C:\\Program Files\\nodejs\\node.exe" "C:\\Program Files\\nodejs\\node_modules\\npm\\node_modules\\node-gyp\\bin\\node-gyp.js" "rebuild" "--openssl_fips=X" "--target=18.0.3" "--arch=x64" "--dist-url=https://electronjs.org/headers"
gyp ERR! cwd C:\Users\kaizhi\Desktop\singtown-cam-ide\node_modules\node-pty
gyp ERR! node -v v14.19.2
gyp ERR! node-gyp -v v5.1.0
gyp ERR! not ok
Sorry for asking such a simple question. But I'm not familiar with Chinese and couldn't find how to change the IDE's language to English.
I used this way: Setting icon > 设置 > 全局设置 > 语言 > English
But don't know how to apply this setting!
系统:Windows11
node版本:[email protected]
node-gyp版本:10.1.0
错误log
C:\Users\jiang\Documents\gits\opensumi\ide-electron>pnpm i
WARN deprecated [email protected]: Please use @electron/rebuild moving forward. There is no API change, just a package name change
WARN deprecated [email protected]: Rimraf versions prior to v4 are no longer supported
WARN deprecated [email protected]: request has been deprecated, see request/request#3142
WARN 22 deprecated subdependencies found: @humanwhocodes/[email protected], @humanwhocodes/[email protected], @npmcli/[email protected], @opensumi/[email protected], [email protected], [email protected], [email protected], [email protected], [email protected], [email protected], [email protected], [email protected], [email protected], [email protected], [email protected], [email protected], [email protected], [email protected], [email protected], [email protected], [email protected], [email protected]
Packages: +1057
+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Progress: resolved 1066, reused 1063, downloaded 0, added 1057, done
node_modules/.pnpm/[email protected]/node_modules/node-pty: Running install script, failed in 57.3s
.../[email protected]/node_modules/node-pty install$ node-gyp rebuild
│ C:\Users\jiang\Documents\gits\opensumi\ide-electron\node_modules.pnpm\[email protected]\node_modules\node-pty>if not defined npm_config_node_gyp (node "C:\Users\jiang\AppData\Roaming\npm\node_mo…
│ gyp info it worked if it ends with ok
│ gyp info using [email protected]
│ gyp info using [email protected] | win32 | x64
│ gyp info find Python using Python version 3.12.4 found at "C:\Python312\python.exe"
│ gyp info find VS using VS2019 (16.11.34301.259) found at:
│ gyp info find VS "C:\Program Files (x86)\Microsoft Visual Studio\2019\BuildTools"
│ gyp info find VS run with --verbose for detailed information
│ gyp info spawn C:\Python312\python.exe
│ gyp info spawn args [
│ gyp info spawn args 'C:\Users\jiang\AppData\Roaming\npm\node_modules\pnpm\dist\node_modules\node-gyp\gyp\gyp_main.py',
│ gyp info spawn args 'binding.gyp',
│ gyp info spawn args '-f',
│ gyp info spawn args 'msvs',
│ gyp info spawn args '-I',
│ gyp info spawn args 'C:\Users\jiang\Documents\gits\opensumi\ide-electron\node_modules\.pnpm\[email protected]\node_modules\node-pty\build\config.gypi',
│ gyp info spawn args '-I',
│ gyp info spawn args 'C:\Users\jiang\AppData\Roaming\npm\node_modules\pnpm\dist\node_modules\node-gyp\addon.gypi',
│ gyp info spawn args '-I',
│ gyp info spawn args 'C:\Users\jiang\AppData\Local\node-gyp\Cache\18.20.4\include\node\common.gypi',
│ gyp info spawn args '-Dlibrary=shared_library',
│ gyp info spawn args '-Dvisibility=default',
│ gyp info spawn args '-Dnode_root_dir=C:\Users\jiang\AppData\Local\node-gyp\Cache\18.20.4',
│ gyp info spawn args '-Dnode_gyp_dir=C:\Users\jiang\AppData\Roaming\npm\node_modules\pnpm\dist\node_modules\node-gyp',
│ gyp info spawn args '-Dnode_lib_file=C:\\Users\\jiang\\AppData\\Local\\node-gyp\\Cache\\18.20.4\\<(target_arch)\\node.lib',
│ gyp info spawn args '-Dmodule_root_dir=C:\Users\jiang\Documents\gits\opensumi\ide-electron\node_modules\.pnpm\[email protected]\node_modules\node-pty',
│ gyp info spawn args '-Dnode_engine=v8',
│ gyp info spawn args '--depth=.',
│ gyp info spawn args '--no-parallel',
│ gyp info spawn args '--generator-output',
│ gyp info spawn args 'C:\Users\jiang\Documents\gits\opensumi\ide-electron\node_modules\.pnpm\[email protected]\node_modules\node-pty\build',
│ gyp info spawn args '-Goutput_dir=.'
│ gyp info spawn args ]
│ gyp info spawn C:\Program Files (x86)\Microsoft Visual Studio\2019\BuildTools\MSBuild\Current\Bin\MSBuild.exe
│ gyp info spawn args [
│ gyp info spawn args 'build\binding.sln',
│ gyp info spawn args '/clp:Verbosity=minimal',
│ gyp info spawn args '/nologo',
│ gyp info spawn args '/p:Configuration=Release;Platform=x64'
│ gyp info spawn args ]
│ 在此解决方案中一次生成一个项目。若要启用并行生成,请添加“-m”开关。
│ C:\Program Files (x86)\Microsoft Visual Studio\2019\BuildTools\MSBuild\Microsoft\VC\v160\Microsoft.CppBuild.targets(486,5): error MSB8040: 此项目需要缓解了 Spectre 漏洞的库。从 Visual Studio …
│ C:\Program Files (x86)\Microsoft Visual Studio\2019\BuildTools\MSBuild\Microsoft\VC\v160\Microsoft.CppBuild.targets(486,5): error MSB8040: 此项目需要缓解了 Spectre 漏洞的库。从 Visual Studio …
│ Agent.cc
│ AgentCreateDesktop.cc
│ ConsoleFont.cc
│ ConsoleInput.cc
│ ConsoleInputReencoding.cc
│ ConsoleLine.cc
│ DebugShowInput.cc
│ DefaultInputMap.cc
│ EventLoop.cc
│ InputMap.cc
│ LargeConsoleRead.cc
│ NamedPipe.cc
│ Scraper.cc
│ Terminal.cc
│ Win32Console.cc
│ Win32ConsoleBuffer.cc
│ main.cc
│ BackgroundDesktop.cc
│ Buffer.cc
│ DebugClient.cc
│ GenRandom.cc
│ OwnedHandle.cc
│ StringUtil.cc
│ WindowsSecurity.cc
│ WindowsVersion.cc
│ WinptyAssert.cc
│ WinptyException.cc
│ WinptyVersion.cc
│ win_delay_load_hook.cc
│ 正在生成代码
│ Previous IPDB not found, fall back to full compilation.
│ C:\Users\jiang\Documents\gits\opensumi\ide-electron\node_modules.pnpm\[email protected]\node_modules\node-pty\deps\winpty\src\agent\Agent.cc(231): warning C4722: “Agent::~Agent”: 析构函数永远不…
│ All 1772 functions were compiled because no usable IPDB/IOBJ from previous compilation was found.
│ 已完成代码的生成
│ winpty-agent.vcxproj -> C:\Users\jiang\Documents\gits\opensumi\ide-electron\node_modules.pnpm\[email protected]\node_modules\node-pty\build\Release\winpty-agent.exe
│ AgentLocation.cc
│ winpty.cc
│ BackgroundDesktop.cc
│ Buffer.cc
│ DebugClient.cc
│ GenRandom.cc
│ OwnedHandle.cc
│ StringUtil.cc
│ WindowsSecurity.cc
│ WindowsVersion.cc
│ WinptyAssert.cc
│ WinptyException.cc
│ WinptyVersion.cc
│ win_delay_load_hook.cc
│ 正在创建库 C:\Users\jiang\Documents\gits\opensumi\ide-electron\node_modules.pnpm\[email protected]\node_modules\node-pty\build\Release\winpty.lib 和对象 C:\Users\jiang\Documents\gits\opensum…
│ 正在生成代码
│ Previous IPDB not found, fall back to full compilation.
│ All 1056 functions were compiled because no usable IPDB/IOBJ from previous compilation was found.
│ 已完成代码的生成
│ winpty.vcxproj -> C:\Users\jiang\Documents\gits\opensumi\ide-electron\node_modules.pnpm\[email protected]\node_modules\node-pty\build\Release\winpty.dll
│ gyp ERR! build error
│ gyp ERR! stack Error: C:\Program Files (x86)\Microsoft Visual Studio\2019\BuildTools\MSBuild\Current\Bin\MSBuild.exe
failed with exit code: 1
│ gyp ERR! stack at ChildProcess. (C:\Users\jiang\AppData\Roaming\npm\node_modules\pnpm\dist\node_modules\node-gyp\lib\build.js:209:23)
│ gyp ERR! stack at ChildProcess.emit (node:events:517:28)
│ gyp ERR! stack at ChildProcess._handle.onexit (node:internal/child_process:292:12)
│ gyp ERR! System Windows_NT 10.0.22000
│ gyp ERR! command "C:\nodejs\node.exe" "C:\Users\jiang\AppData\Roaming\npm\node_modules\pnpm\dist\node_modules\node-gyp\bin\node-gyp.js" "rebuild"
│ gyp ERR! cwd C:\Users\jiang\Documents\gits\opensumi\ide-electron\node_modules.pnpm\[email protected]\node_modules\node-pty
│ gyp ERR! node -v v18.20.4
│ gyp ERR! node-gyp -v v10.1.0
│ gyp ERR! not ok
└─ Failed in 57.3s at C:\Users\jiang\Documents\gits\opensumi\ide-electron\node_modules.pnpm\[email protected]\node_modules\node-pty
ELIFECYCLE Command failed with exit code 1.
最后提交的代码都是3个月前了
想实现从自定义视图拖拽到编辑器的拖拽效果,请问有什么好的实现方式。
我自己用antd的tree组件,拖拽到其他视图时没有触发到拖拽的回调函数。
我运行pnpm run pack:all的时候打包的项目中只有mac平台的安装包,怎么才可以打出windows的安装包呢
E:\code\et_upper4>pnpm run pack:x64
[email protected] pack:x64 E:\code\et_upper4
pnpm build && cross-env TARGET_ARCHES=x64 node build/pack.js
[email protected] build E:\code\et_upper4
rimraf -rf ./app && rimraf -rf ./out && run-p build:browser build:node build:extension build:main build:webview
[email protected] build:browser E:\code\et_upper4
webpack --config ./build/webpack.browser.config.js
[email protected] build:node E:\code\et_upper4
webpack --config ./build/webpack.node.config.js
[email protected] build:extension E:\code\et_upper4
webpack --config ./build/webpack.extension-host.config.js
[email protected] build:main E:\code\et_upper4
webpack --config ./build/webpack.main.config.js
[email protected] build:webview E:\code\et_upper4
webpack --config ./build/webpack.webview.config.js
asset host-preload.js 21.9 KiB [emitted] (name: main) 1 related asset
asset plain-preload.js 1.35 KiB [emitted] [from: node_modules/.pnpm/@[email protected]_cerooqu47yvd46iplnavuuclvu/node_modules/@opensumi/ide-webview/lib/electron-webview/plain-preload.js] [copied]
modules by path ./node_modules/.pnpm/@[email protected]_cerooqu47yvd46iplnavuuclvu/node_modules/@opensumi/ide-webview/lib/electron-webview/.js 2.12 KiB
./node_modules/.pnpm/@[email protected]_cerooqu47yvd46iplnavuuclvu/node_modules/@opensumi/ide-webview/lib/electron-webview/host-preload.js 54 bytes [built] [code generated]
./node_modules/.pnpm/@[email protected]_cerooqu47yvd46iplnavuuclvu/node_modules/@opensumi/ide-webview/lib/electron-webview/host-channel.js 2.07 KiB [built] [code generated]
modules by path ./node_modules/.pnpm/@[email protected]_cerooqu47yvd46iplnavuuclvu/node_modules/@opensumi/ide-webview/lib/webview-host/.js 15.3 KiB
./node_modules/.pnpm/@[email protected]_cerooqu47yvd46iplnavuuclvu/node_modules/@opensumi/ide-webview/lib/webview-host/webview-manager.js 12.6 KiB [built] [code generated]
./node_modules/.pnpm/@[email protected]_cerooqu47yvd46iplnavuuclvu/node_modules/@opensumi/ide-webview/lib/webview-host/common.js 2.62 KiB [built] [code generated]
external "electron" 42 bytes [built] [code generated]
webpack 5.74.0 compiled successfully in 231 ms
asset index.js 2.61 MiB [emitted] (name: main) 1 related asset
runtime modules 793 bytes 4 modules
modules by path ./node_modules/.pnpm/ 2.18 MiB
javascript modules 2.1 MiB 400 modules
json modules 86.7 KiB
./node_modules/.pnpm/[email protected]/node_modules/iconv-lite/encodings/tables/shiftjis.json 8.78 KiB [built] [code generated]
+ 7 modules
modules by path ./src/ 19.2 KiB
modules by path ./src/main/ 14.8 KiB
modules by path ./src/main/.ts 8.62 KiB 3 modules
modules by path ./src/main/services/.ts 6.15 KiB 2 modules
modules by path ./src/common/ 4.47 KiB
./src/common/types.ts 2.59 KiB [built] [code generated]
+ 2 modules
WARNING in ./node_modules/.pnpm/[email protected]/node_modules/yargs/build/index.cjs 1:60106-60113
Critical dependency: require function is used in a way in which dependencies cannot be statically extracted
@ ./node_modules/.pnpm/[email protected]/node_modules/yargs/index.cjs 5:29-57
@ ./node_modules/.pnpm/@opensumi[email protected][email protected]/node_modules/@opensumi/ide-core-electron-main/lib/bootstrap/app.js 5:16-32
@ ./node_modules/.pnpm/@opensumi[email protected][email protected]/node_modules/@opensumi/ide-core-electron-main/lib/bootstrap/index.js 4:21-37
@ ./node_modules/.pnpm/@opensumi[email protected][email protected]/node_modules/@opensumi/ide-core-electron-main/lib/index.js 5:21-43
@ ./src/main/launch.ts 9:33-76
@ ./src/main/index.ts 6:17-36
WARNING in ./node_modules/.pnpm/[email protected]/node_modules/yargs/build/index.cjs 1:60498-60505
Critical dependency: require function is used in a way in which dependencies cannot be statically extracted
@ ./node_modules/.pnpm/[email protected]/node_modules/yargs/index.cjs 5:29-57
@ ./node_modules/.pnpm/@opensumi[email protected][email protected]/node_modules/@opensumi/ide-core-electron-main/lib/bootstrap/app.js 5:16-32
@ ./node_modules/.pnpm/@opensumi[email protected][email protected]/node_modules/@opensumi/ide-core-electron-main/lib/bootstrap/index.js 4:21-37
@ ./node_modules/.pnpm/@opensumi[email protected][email protected]/node_modules/@opensumi/ide-core-electron-main/lib/index.js 5:21-43
@ ./src/main/launch.ts 9:33-76
@ ./src/main/index.ts 6:17-36
WARNING in ./node_modules/.pnpm/[email protected]/node_modules/yargs/index.cjs 12:39-46
Critical dependency: require function is used in a way in which dependencies cannot be statically extracted
@ ./node_modules/.pnpm/@opensumi[email protected][email protected]/node_modules/@opensumi/ide-core-electron-main/lib/bootstrap/app.js 5:16-32
@ ./node_modules/.pnpm/@opensumi[email protected][email protected]/node_modules/@opensumi/ide-core-electron-main/lib/bootstrap/index.js 4:21-37
@ ./node_modules/.pnpm/@opensumi[email protected][email protected]/node_modules/@opensumi/ide-core-electron-main/lib/index.js 5:21-43
@ ./src/main/launch.ts 9:33-76
@ ./src/main/index.ts 6:17-36
3 warnings have detailed information that is not shown.
Use 'stats.errorDetails: true' resp. '--stats-error-details' to show it.
webpack 5.74.0 compiled with 3 warnings in 3448 ms
asset index.js 7.11 MiB [emitted] (name: main) 1 related asset
runtime modules 793 bytes 4 modules
javascript modules 5.28 MiB
modules by path ./node_modules/.pnpm/ 5.26 MiB
cacheable modules 5.26 MiB 1104 modules
+ 5 modules
modules by path ./src/ 11.2 KiB 6 modules
WARNING in ./node_modules/.pnpm/@[email protected]_k5fmzrynqzr2hjcg6enjf76gka/node_modules/@opensumi/ide-extension/lib/node/languagePack.js 292:25-32
Critical dependency: require function is used in a way in which dependencies cannot be statically extracted
@ ./node_modules/.pnpm/@[email protected]_k5fmzrynqzr2hjcg6enjf76gka/node_modules/@opensumi/ide-extension/lib/node/extension.service.client.js 13:32-57
@ ./node_modules/.pnpm/@[email protected]_k5fmzrynqzr2hjcg6enjf76gka/node_modules/@opensumi/ide-extension/lib/node/index.js 11:35-72
@ ./src/node/index.ts 12:15-58
WARNING in ./node_modules/.pnpm/[email protected]/node_modules/vscode-languageserver-types/lib/umd/main.js 3:24-31
Critical dependency: require function is used in a way in which dependencies cannot be statically extracted
@ ./node_modules/.pnpm/@[email protected]_22kvxa7zeyivx4jp72v2w3pkvy/node_modules/@opensumi/ide-file-service/lib/node/file-service.js 10:38-76
@ ./node_modules/.pnpm/@[email protected]_22kvxa7zeyivx4jp72v2w3pkvy/node_modules/@opensumi/ide-file-service/lib/node/index.js 9:23-48 10:21-46
@ ./src/node/index.ts 6:15-61
WARNING in ./node_modules/.pnpm/[email protected]/node_modules/yargs/build/index.cjs 1:60106-60113
Critical dependency: require function is used in a way in which dependencies cannot be statically extracted
@ ./node_modules/.pnpm/[email protected]/node_modules/yargs/index.cjs 5:29-57
@ ./src/node/server.ts 6:35-51
@ ./src/node/index.ts 4:17-36
WARNING in ./node_modules/.pnpm/[email protected]/node_modules/yargs/build/index.cjs 1:60498-60505
Critical dependency: require function is used in a way in which dependencies cannot be statically extracted
@ ./node_modules/.pnpm/[email protected]/node_modules/yargs/index.cjs 5:29-57
@ ./src/node/server.ts 6:35-51
@ ./src/node/index.ts 4:17-36
WARNING in ./node_modules/.pnpm/[email protected]/node_modules/yargs/index.cjs 12:39-46
Critical dependency: require function is used in a way in which dependencies cannot be statically extracted
@ ./src/node/server.ts 6:35-51
@ ./src/node/index.ts 4:17-36
5 warnings have detailed information that is not shown.
Use 'stats.errorDetails: true' resp. '--stats-error-details' to show it.
webpack 5.74.0 compiled with 5 warnings in 5460 ms
asset index.js 5.51 MiB [emitted] (name: main) 1 related asset
runtime modules 793 bytes 4 modules
cacheable modules 4.65 MiB
javascript modules 4.53 MiB
modules by path ./node_modules/.pnpm/ 4.53 MiB 849 modules
modules by path ./src/ 2.53 KiB
./src/extension/index.ts 665 bytes [built] [code generated]
./src/common/constants.ts 767 bytes [built] [code generated]
./src/common/node/utils.ts 1.13 KiB [built] [code generated]
json modules 121 KiB
modules by path ./node_modules/.pnpm/[email protected]/node_modules/iconv-lite/ 86.7 KiB 8 modules
./node_modules/.pnpm/@opensumi[email protected]/node_modules/@opensumi/ide-core-common/lib/hash-calculate/md5.wasm.json 4.04 KiB [built] [code generated]
./node_modules/.pnpm/[email protected]/node_modules/statuses/codes.json 1.54 KiB [built] [code generated]
./node_modules/.pnpm/@opensumi[email protected]/node_modules/@opensumi/monaco-editor-core/dev/vs/editor/editor.main.nls.zh-cn.json 28.7 KiB [built] [code generated]
WARNING in ./node_modules/.pnpm/[email protected]/node_modules/vscode-languageserver-types/lib/umd/main.js 3:24-31
Critical dependency: require function is used in a way in which dependencies cannot be statically extracted
@ ./node_modules/.pnpm/@[email protected]_k5fmzrynqzr2hjcg6enjf76gka/node_modules/@opensumi/ide-extension/lib/common/vscode/converter.js 7:38-76
@ ./node_modules/.pnpm/@[email protected]_k5fmzrynqzr2hjcg6enjf76gka/node_modules/@opensumi/ide-extension/lib/hosted/api/vscode/ext.host.command.js 7:50-93
@ ./node_modules/.pnpm/@[email protected]_k5fmzrynqzr2hjcg6enjf76gka/node_modules/@opensumi/ide-extension/lib/hosted/api/vscode/ext.host.api.impl.js 16:27-56
@ ./node_modules/.pnpm/@[email protected]_k5fmzrynqzr2hjcg6enjf76gka/node_modules/@opensumi/ide-extension/lib/hosted/ext.host.js 13:28-69
@ ./node_modules/.pnpm/@[email protected]_k5fmzrynqzr2hjcg6enjf76gka/node_modules/@opensumi/ide-extension/lib/hosted/ext.process-base.js 72:22-43
@ ./src/extension/index.ts 3:30-95
WARNING in ./node_modules/.pnpm/[email protected]/node_modules/yargs/build/index.cjs 1:60106-60113
Critical dependency: require function is used in a way in which dependencies cannot be statically extracted
@ ./node_modules/.pnpm/[email protected]/node_modules/yargs/index.cjs 5:29-57
@ ./node_modules/.pnpm/@[email protected]_k5fmzrynqzr2hjcg6enjf76gka/node_modules/@opensumi/ide-extension/lib/hosted/ext.process-base.js 20:13-34
@ ./src/extension/index.ts 3:30-95
WARNING in ./node_modules/.pnpm/[email protected]/node_modules/yargs/build/index.cjs 1:60498-60505
Critical dependency: require function is used in a way in which dependencies cannot be statically extracted
@ ./node_modules/.pnpm/[email protected]/node_modules/yargs/index.cjs 5:29-57
@ ./node_modules/.pnpm/@[email protected]_k5fmzrynqzr2hjcg6enjf76gka/node_modules/@opensumi/ide-extension/lib/hosted/ext.process-base.js 20:13-34
@ ./src/extension/index.ts 3:30-95
WARNING in ./node_modules/.pnpm/[email protected]/node_modules/yargs/index.cjs 12:39-46
Critical dependency: require function is used in a way in which dependencies cannot be statically extracted
@ ./node_modules/.pnpm/@[email protected]_k5fmzrynqzr2hjcg6enjf76gka/node_modules/@opensumi/ide-extension/lib/hosted/ext.process-base.js 20:13-34
@ ./src/extension/index.ts 3:30-95
4 warnings have detailed information that is not shown.
Use 'stats.errorDetails: true' resp. '--stats-error-details' to show it.
webpack 5.74.0 compiled with 4 warnings in 6252 ms
asset index.worker.js 4.03 MiB [emitted] (name: main) 1 related asset
runtime modules 1010 bytes 5 modules
modules by path ./node_modules/.pnpm/ 3.35 MiB
javascript modules 3.24 MiB 610 modules
json modules 115 KiB
./node_modules/.pnpm/[email protected]/node_modules/iconv-lite/encodings/tables/shiftjis.json 8.78 KiB [built] [code generated]
./node_modules/.pnpm/[email protected]/node_modules/iconv-lite/encodings/tables/eucjp.json 15.1 KiB [built] [code generated]
./node_modules/.pnpm/[email protected]/node_modules/iconv-lite/encodings/tables/cp936.json 20.1 KiB [built] [code generated]
+ 6 modules
WARNING in ./node_modules/.pnpm/[email protected]/node_modules/vscode-languageserver-types/lib/umd/main.js 3:24-31
Critical dependency: require function is used in a way in which dependencies cannot be statically extracted
@ ./node_modules/.pnpm/@[email protected]_k5fmzrynqzr2hjcg6enjf76gka/node_modules/@opensumi/ide-extension/lib/common/vscode/converter.js 7:38-76
@ ./node_modules/.pnpm/@[email protected]_k5fmzrynqzr2hjcg6enjf76gka/node_modules/@opensumi/ide-extension/lib/hosted/api/vscode/ext.host.command.js 7:50-93
@ ./node_modules/.pnpm/@[email protected]_k5fmzrynqzr2hjcg6enjf76gka/node_modules/@opensumi/ide-extension/lib/hosted/api/worker/worker.host.api.impl.js 15:27-64
@ ./node_modules/.pnpm/@[email protected]_k5fmzrynqzr2hjcg6enjf76gka/node_modules/@opensumi/ide-extension/lib/hosted/worker.host.js 12:31-75
@ ./node_modules/.pnpm/@[email protected]_k5fmzrynqzr2hjcg6enjf76gka/node_modules/@opensumi/ide-extension/lib/hosted/worker.host-preload.js 8:22-46
@ ./src/extension/index.worker.ts 3:0-65
1 warning has detailed information that is not shown.
Use 'stats.errorDetails: true' resp. '--stats-error-details' to show it.
webpack 5.74.0 compiled with 1 warning in 5717 ms
assets by path ../ 116 KiB 176 assets
assets by info 797 KiB [immutable] 68 assets
assets by path components/ 5.3 KiB
assets by path components/PropertySettingPanel/.ts 1.41 KiB 4 assets
assets by path components/CaseTreePannel/.ts 1.11 KiB 2 assets
8 assets
assets by path *.ts 2.49 KiB
asset project.d.ts 1.09 KiB [emitted]
asset commands.d.ts 468 bytes [emitted]
4 assets
assets by path .js 26.6 MiB
asset bundle.js 26.6 MiB [emitted] (name: main) 1 related asset
asset preload.js 1.73 KiB [emitted] [from: node_modules/.pnpm/@opensumi[email protected][email protected]/node_modules/@opensumi/ide-core-electron-main/browser-preload/index.js] [copied]
asset index.html 1.18 KiB [emitted]
Entrypoint main 26.8 MiB (28.1 MiB) = main.75ee9e84.css 199 KiB bundle.js 26.6 MiB 69 auxiliary assets
runtime modules 70.2 KiB 311 modules
orphan modules 440 KiB (javascript) 66.3 KiB (asset) [orphan] 90 modules
modules by path ./node_modules/.pnpm/ 21.2 MiB (javascript) 545 KiB (asset) 119 KiB (css/mini-extract)
javascript modules 21.1 MiB 3036 modules
asset modules 2.87 KiB (javascript) 545 KiB (asset) 70 modules
css modules 119 KiB 70 modules
json modules 134 KiB 21 modules
modules by path ./src/ 1.16 MiB (javascript) 23.2 KiB (css/mini-extract)
modules by path ./src/modules/ 1.03 MiB (javascript) 171 bytes (css/mini-extract) 223 modules
modules by path ./src/browser/ 132 KiB (javascript) 23 KiB (css/mini-extract) 44 modules
modules by path ./src/common/ 4.84 KiB
modules by path ./src/common/i18n/.ts 1.5 KiB 3 modules
modules by path ./src/common/*.ts 3.33 KiB 2 modules
./src/extensionManager/browser.ts 345 bytes [built] [code generated]
12 modules
webpack 5.74.0 compiled successfully in 26696 ms
• electron-builder version=23.3.3 os=10.0.19044
• author is missed in the package.json appPackageFile=E:\code\et_upper4\app\package.json
• writing effective config file=out-x64\builder-effective-config.yaml
• installing production dependencies platform=win32 arch=x64 appDir=E:\code\et_upper4\app
(node:12480) UnhandledPromiseRejectionWarning: Error: C:\Program Files\nodejs\node.exe process failed ERR_ELECTRON_BUILDER_CANNOT_EXECUTE
Exit code:
1
Output:
Progress: resolved 1, reused 0, downloaded 0, added 0
WARN deprecated @opensumi/[email protected]: Please use @opensumi/ripgrep instead
Packages: +12
++++++++++++
Packages are hard linked from the content-addressable store to the virtual store.
Content-addressable store is at: E:.pnpm-store\v3
Virtual store is at: node_modules/.pnpm
.../node_modules/node-pty install$ node scripts/install.js
.../.pnpm/[email protected]/node_modules/nsfw install$ node-gyp rebuild
.../[email protected]/node_modules/spdlog install$ node-gyp rebuild
.../.pnpm/[email protected]/node_modules/nsfw install: E:\code\et_upper4\app\node_modules.pnpm\[email protected]\node_modules\nsfw>if not defined npm_config_node_gyp (node "C:\Users\KyDev02\AppData\Roaming\npm\node_modules\pnpm\dist\node-gyp-bin\..\node_modules\node-gyp\bin\node-gyp.js" rebuild ) else (node "C:\Users\KyDev02\AppData\Roaming\npm\node_modules\pnpm\dist\node_modules\node-gyp\bin\node-gyp.js" rebuild )
.../[email protected]/node_modules/spdlog install: E:\code\et_upper4\app\node_modules.pnpm\[email protected]\node_modules\spdlog>if not defined npm_config_node_gyp (node "C:\Users\KyDev02\AppData\Roaming\npm\node_modules\pnpm\dist\node-gyp-bin\..\node_modules\node-gyp\bin\node-gyp.js" rebuild ) else (node "C:\Users\KyDev02\AppData\Roaming\npm\node_modules\pnpm\dist\node_modules\node-gyp\bin\node-gyp.js" rebuild )
.../node_modules/node-pty install: E:\code\et_upper4\app\node_modules.pnpm\[email protected]\node_modules\node-pty>if not defined npm_config_node_gyp (node "C:\Users\KyDev02\AppData\Roaming\npm\node_modules\pnpm\dist\node-gyp-bin\..\node_modules\node-gyp\bin\node-gyp.js" rebuild ) else (node "C:\Users\KyDev02\AppData\Roaming\npm\node_modules\pnpm\dist\node_modules\node-gyp\bin\node-gyp.js" rebuild )
.../.pnpm/[email protected]/node_modules/nsfw install: gyp info it worked if it ends with ok
.../.pnpm/[email protected]/node_modules/nsfw install: gyp info using [email protected]
.../.pnpm/[email protected]/node_modules/nsfw install: gyp info using [email protected] | win32 | x64
.../[email protected]/node_modules/spdlog install: gyp info it worked if it ends with ok
.../[email protected]/node_modules/spdlog install: gyp info using [email protected]
.../[email protected]/node_modules/spdlog install: gyp info using [email protected] | win32 | x64
.../node_modules/node-pty install: gyp info it worked if it ends with ok
.../node_modules/node-pty install: gyp info using [email protected]
.../node_modules/node-pty install: gyp info using [email protected] | win32 | x64
.../[email protected]/node_modules/spdlog install: gyp info find Python using Python version 3.7.9 found at "D:\Program Files (x86)\ETest3\python37\python.exe"
.../.pnpm/[email protected]/node_modules/nsfw install: gyp info find Python using Python version 3.7.9 found at "D:\Program Files (x86)\ETest3\python37\python.exe"
.../node_modules/node-pty install: gyp info find Python using Python version 3.7.9 found at "D:\Program Files (x86)\ETest3\python37\python.exe"
Progress: resolved 12, reused 12, downloaded 0, added 12, done
.../[email protected]/node_modules/spdlog install: gyp http GET https://electronjs.org/headers/v18.3.4/node-v18.3.4-headers.tar.gz
.../.pnpm/[email protected]/node_modules/nsfw install: gyp http GET https://electronjs.org/headers/v18.3.4/node-v18.3.4-headers.tar.gz
.../node_modules/node-pty install: gyp http GET https://electronjs.org/headers/v18.3.4/node-v18.3.4-headers.tar.gz
.../.pnpm/[email protected]/node_modules/nsfw install: gyp WARN install got an error, rolling back install
.../.pnpm/[email protected]/node_modules/nsfw install: gyp ERR! configure error
.../.pnpm/[email protected]/node_modules/nsfw install: gyp ERR! stack FetchError: request to https://www.electronjs.org/headers/v18.3.4/node-v18.3.4-headers.tar.gz failed, reason: read ECONNRESET
.../.pnpm/[email protected]/node_modules/nsfw install: gyp ERR! stack at ClientRequest. (C:\Users\KyDev02\AppData\Roaming\npm\node_modules\pnpm\dist\node_modules\minipass-fetch\lib\index.js:130:14)
.../.pnpm/[email protected]/node_modules/nsfw install: gyp ERR! stack at ClientRequest.emit (events.js:400:28)
.../.pnpm/[email protected]/node_modules/nsfw install: gyp ERR! stack at TLSSocket.socketErrorListener (_http_client.js:475:9)
.../.pnpm/[email protected]/node_modules/nsfw install: gyp ERR! stack at TLSSocket.emit (events.js:412:35)
.../.pnpm/[email protected]/node_modules/nsfw install: gyp ERR! stack at emitErrorNT (internal/streams/destroy.js:106:8)
.../.pnpm/[email protected]/node_modules/nsfw install: gyp ERR! stack at emitErrorCloseNT (internal/streams/destroy.js:74:3)
.../.pnpm/[email protected]/node_modules/nsfw install: gyp ERR! stack at processTicksAndRejections (internal/process/task_queues.js:82:21)
.../.pnpm/[email protected]/node_modules/nsfw install: gyp ERR! System Windows_NT 10.0.19044
.../.pnpm/[email protected]/node_modules/nsfw install: gyp ERR! command "C:\Program Files\nodejs\node.exe" "C:\Users\KyDev02\AppData\Roaming\npm\node_modules\pnpm\dist\node_modules\node-gyp\bin\node-gyp.js" "rebuild"
.../.pnpm/[email protected]/node_modules/nsfw install: gyp ERR! cwd E:\code\et_upper4\app\node_modules.pnpm\[email protected]\node_modules\nsfw
.../.pnpm/[email protected]/node_modules/nsfw install: gyp ERR! node -v v14.17.6
.../.pnpm/[email protected]/node_modules/nsfw install: gyp ERR! node-gyp -v v9.1.0
.../.pnpm/[email protected]/node_modules/nsfw install: gyp ERR! not ok
.../[email protected]/node_modules/spdlog install: gyp WARN install got an error, rolling back install
.../[email protected]/node_modules/spdlog install: gyp ERR! configure error
.../[email protected]/node_modules/spdlog install: gyp ERR! stack FetchError: request to https://www.electronjs.org/headers/v18.3.4/node-v18.3.4-headers.tar.gz failed, reason: read ECONNRESET
.../[email protected]/node_modules/spdlog install: gyp ERR! stack at ClientRequest. (C:\Users\KyDev02\AppData\Roaming\npm\node_modules\pnpm\dist\node_modules\minipass-fetch\lib\index.js:130:14)
.../[email protected]/node_modules/spdlog install: gyp ERR! stack at ClientRequest.emit (events.js:400:28)
.../[email protected]/node_modules/spdlog install: gyp ERR! stack at TLSSocket.socketErrorListener (_http_client.js:475:9)
.../[email protected]/node_modules/spdlog install: gyp ERR! stack at TLSSocket.emit (events.js:412:35)
.../[email protected]/node_modules/spdlog install: gyp ERR! stack at emitErrorNT (internal/streams/destroy.js:106:8)
.../[email protected]/node_modules/spdlog install: gyp ERR! stack at emitErrorCloseNT (internal/streams/destroy.js:74:3)
.../[email protected]/node_modules/spdlog install: gyp ERR! stack at processTicksAndRejections (internal/process/task_queues.js:82:21)
.../[email protected]/node_modules/spdlog install: gyp ERR! System Windows_NT 10.0.19044
.../[email protected]/node_modules/spdlog install: gyp ERR! command "C:\Program Files\nodejs\node.exe" "C:\Users\KyDev02\AppData\Roaming\npm\node_modules\pnpm\dist\node_modules\node-gyp\bin\node-gyp.js" "rebuild"
.../[email protected]/node_modules/spdlog install: gyp ERR! cwd E:\code\et_upper4\app\node_modules.pnpm\[email protected]\node_modules\spdlog
.../[email protected]/node_modules/spdlog install: gyp ERR! node -v v14.17.6
.../[email protected]/node_modules/spdlog install: gyp ERR! node-gyp -v v9.1.0
.../[email protected]/node_modules/spdlog install: gyp ERR! not ok
.../.pnpm/[email protected]/node_modules/nsfw install: Failed
ELIFECYCLE Command failed with exit code 1.
at ChildProcess. (E:\code\et_upper4\node_modules.pnpm\[email protected]\node_modules\builder-util\src\util.ts:250:14)
at Object.onceWrapper (events.js:520:26)
at ChildProcess.emit (events.js:400:28)
at ChildProcess.cp.emit (E:\code\et_upper4\node_modules.pnpm\[email protected]\node_modules\cross-spawn\lib\enoent.js:34:29)
at maybeClose (internal/child_process.js:1055:16)
at Process.ChildProcess._handle.onexit (internal/child_process.js:288:5)
(Use node --trace-warnings ...
to show where the warning was created)
(node:12480) UnhandledPromiseRejectionWarning: Unhandled promise rejection. This error originated either by throwing inside of an async function without a catch block, or by rejecting a promise which was not handled with .catch(). To terminate the node process on unhandled promise rejection, use the CLI flag --unhandled-rejections=strict
(see https://nodejs.org/api/cli.html#cli_unhandled_rejections_mode). (rejection id: 1)
(node:12480) [DEP0018] DeprecationWarning: Unhandled promise rejections are deprecated. In the future, promise rejections that are not handled will terminate the Node.js process with a non-zero exit code.
.node 二进制文件提供了一些接口调用,我想给一个文档里的 iframe 组件提供接口服务,应该怎么操作?
Environment:
Error Msg:
ERROR in ./node_modules/vscode-jsonrpc/lib/common/connection.js 327:45
Module parse failed: Unexpected token (327:45)
You may need an appropriate loader to handle this file type, currently no loaders are configured to process this file. See https://webpack.js.org/concepts#loaders
| const toCancel = messageQueue.get(key);
| if (messages_1.Message.isRequest(toCancel)) {
> const strategy = options?.connectionStrategy;
| const response = (strategy && strategy.cancelUndispatched) ? strategy.cancelUndispatched(toCancel, cancelUndispatched) : cancelUndispatched(toCancel);
| if (response && (response.error !== undefined || response.result !== undefined)) {
@ ./node_modules/vscode-jsonrpc/lib/common/api.js 57:21-44
@ ./node_modules/vscode-jsonrpc/lib/browser/main.js
@ ./node_modules/vscode-jsonrpc/browser.js
@ ./node_modules/vscode-languageserver-protocol/lib/browser/main.js
@ ./node_modules/@opensumi/ide-extension/lib/browser/vscode/api/main.thread.language.js
@ ./node_modules/@opensumi/ide-extension/lib/browser/vscode/api/main.thread.api.impl.js
@ ./node_modules/@opensumi/ide-extension/lib/browser/extension-node.service.js
@ ./node_modules/@opensumi/ide-extension/lib/browser/index.js
@ ./src/browser/index.ts
ERROR in ./node_modules/vscode-jsonrpc/lib/common/linkedMap.js 40:26
Module parse failed: Unexpected token (40:26)
You may need an appropriate loader to handle this file type, currently no loaders are configured to process this file. See https://webpack.js.org/concepts#loaders
| }
| get first() {
> return this._head?.value;
| }
| get last() {
@ ./node_modules/vscode-jsonrpc/lib/common/api.js 37:20-42
@ ./node_modules/vscode-jsonrpc/lib/browser/main.js
@ ./node_modules/vscode-jsonrpc/browser.js
@ ./node_modules/vscode-languageserver-protocol/lib/browser/main.js
@ ./node_modules/@opensumi/ide-extension/lib/browser/vscode/api/main.thread.language.js
@ ./node_modules/@opensumi/ide-extension/lib/browser/vscode/api/main.thread.api.impl.js
@ ./node_modules/@opensumi/ide-extension/lib/browser/extension-node.service.js
@ ./node_modules/@opensumi/ide-extension/lib/browser/index.js
@ ./src/browser/index.ts
ERROR in ./node_modules/vscode-jsonrpc/lib/common/messageWriter.js 58:39
Module parse failed: Unexpected token (58:39)
You may need an appropriate loader to handle this file type, currently no loaders are configured to process this file. See https://webpack.js.org/concepts#loaders
| function fromOptions(options) {
| if (options === undefined || typeof options === 'string') {
> return { charset: options ?? 'utf-8', contentTypeEncoder: (0, ral_1.default)().applicationJson.encoder };
| }
| else {
@ ./node_modules/vscode-jsonrpc/lib/common/api.js 53:24-50
@ ./node_modules/vscode-jsonrpc/lib/browser/main.js
@ ./node_modules/vscode-jsonrpc/browser.js
@ ./node_modules/vscode-languageserver-protocol/lib/browser/main.js
@ ./node_modules/@opensumi/ide-extension/lib/browser/vscode/api/main.thread.language.js
@ ./node_modules/@opensumi/ide-extension/lib/browser/vscode/api/main.thread.api.impl.js
@ ./node_modules/@opensumi/ide-extension/lib/browser/extension-node.service.js
@ ./node_modules/@opensumi/ide-extension/lib/browser/index.js
@ ./src/browser/index.ts
ERROR in ./node_modules/vscode-jsonrpc/lib/common/messageReader.js 68:31
Module parse failed: Unexpected token (68:31)
You may need an appropriate loader to handle this file type, currently no loaders are configured to process this file. See https://webpack.js.org/concepts#loaders
| const contentTypeDecoders = new Map();
| if (options === undefined || typeof options === 'string') {
> charset = options ?? 'utf-8';
| }
| else {
@ ./node_modules/vscode-jsonrpc/lib/common/api.js 49:24-50
@ ./node_modules/vscode-jsonrpc/lib/browser/main.js
@ ./node_modules/vscode-jsonrpc/browser.js
@ ./node_modules/vscode-languageserver-protocol/lib/browser/main.js
@ ./node_modules/@opensumi/ide-extension/lib/browser/vscode/api/main.thread.language.js
@ ./node_modules/@opensumi/ide-extension/lib/browser/vscode/api/main.thread.api.impl.js
@ ./node_modules/@opensumi/ide-extension/lib/browser/extension-node.service.js
@ ./node_modules/@opensumi/ide-extension/lib/browser/index.js
@ ./src/browser/index.ts
npm ERR! code ELIFECYCLE
npm ERR! errno 1
npm ERR! ide-electron@ build:browser: `webpack --config ./build/webpack.browser.config.js `
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the ide-electron@ build:browser script.
我们想集成我们开发的汇编编译器到opensumi,如何调用?我们的编译器已经编译成Windows平台的exe文件,已经可以通过命令行调用执行: C:\compiler.exe C:\projectsFolder
以下是安装依赖报错
$ pnpm i
Lockfile is up-to-date, resolution step is skipped
Progress: resolved 1, reused 0, downloaded 0, added 0
Packages: +1065
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Progress: resolved 1065, reused 0, downloaded 0, added 0
Progress: resolved 1065, reused 55, downloaded 0, added 0
Progress: resolved 1065, reused 97, downloaded 0, added 0
Progress: resolved 1065, reused 331, downloaded 0, added 0
Progress: resolved 1065, reused 763, downloaded 0, added 0
Progress: resolved 1065, reused 1004, downloaded 0, added 0
Progress: resolved 1065, reused 1049, downloaded 0, added 0, done
.../@opensumi/vscode-ripgrep postinstall$ node ./lib/postinstall.js
.../[email protected]/node_modules/core-js postinstall$ node -e "try{require('./postinstall')}catch(e){}"
.../node_modules/drivelist install$ prebuild-install || node-gyp rebuild
.../node_modules/@parcel/watcher install$ node-gyp-build
.../[email protected]/node_modules/core-js postinstall: Done
.../@opensumi/vscode-ripgrep postinstall: Using cached download: C:\Users\zhengtao\Desktop\test_softwave\ide-electron\node_modules.pnpm@[email protected]\node_modules@opensumi\vscode-ripgrep\bin\rg.exe
.../@opensumi/vscode-ripgrep postinstall: Done
.../[email protected]/node_modules/keytar install$ prebuild-install || npm run build
.../.pnpm/[email protected]/node_modules/nsfw install$ node-gyp rebuild
.../node_modules/lzma-native install$ node-gyp-build
.../.pnpm/[email protected]/node_modules/nsfw install: C:\Users\zhengtao\Desktop\test_softwave\ide-electron\node_modules.pnpm\[email protected]\node_modules\nsfw>if not defined npm_config_node_gyp (node "C:\Users\zhengtao\AppData\Roaming\npm\node_modules\pnpm\dist\node-gyp-bin\..\node_modules\node-gyp\bin\node-gyp.js" rebuild ) else (node "C:\Users\zhengtao\AppData\Roaming\npm\node_modules\pnpm\dist\node_modules\node-gyp\bin\node-gyp.js" rebuild )
.../node_modules/@parcel/watcher install: Done
.../.pnpm/[email protected]/node_modules/nsfw install: gyp info it worked if it ends with ok
.../.pnpm/[email protected]/node_modules/nsfw install: gyp info using [email protected]
.../.pnpm/[email protected]/node_modules/nsfw install: gyp info using [email protected] | win32 | x64
.../[email protected]/node_modules/spdlog install$ node-gyp rebuild
.../[email protected]/node_modules/spdlog install: C:\Users\zhengtao\Desktop\test_softwave\ide-electron\node_modules.pnpm\[email protected]\node_modules\spdlog>if not defined npm_config_node_gyp (node "C:\Users\zhengtao\AppData\Roaming\npm\node_modules\pnpm\dist\node-gyp-bin\..\node_modules\node-gyp\bin\node-gyp.js" rebuild ) else (node "C:\Users\zhengtao\AppData\Roaming\npm\node_modules\pnpm\dist\node_modules\node-gyp\bin\node-gyp.js" rebuild )
.../node_modules/lzma-native install: Done
.../[email protected]/node_modules/spdlog install: gyp info it worked if it ends with ok
.../[email protected]/node_modules/spdlog install: gyp info using [email protected]
.../[email protected]/node_modules/spdlog install: gyp info using [email protected] | win32 | x64
.../[email protected]/node_modules/keytar install: Done
.../.pnpm/[email protected]/node_modules/nsfw install: gyp info find Python using Python version 3.7.4 found at "C:\Users\zhengtao\AppData\Local\Programs\Python\Python37\python.exe"
.../[email protected]/node_modules/spdlog install: gyp info find Python using Python version 3.7.4 found at "C:\Users\zhengtao\AppData\Local\Programs\Python\Python37\python.exe"
.../.pnpm/[email protected]/node_modules/nsfw install: gyp info find VS using VS2015 (14.0) found at:
.../.pnpm/[email protected]/node_modules/nsfw install: gyp info find VS "C:\Program Files (x86)\Microsoft Visual Studio 14.0"
.../.pnpm/[email protected]/node_modules/nsfw install: gyp info find VS run with --verbose for detailed information
.../.pnpm/[email protected]/node_modules/nsfw install: gyp info spawn C:\Users\zhengtao\AppData\Local\Programs\Python\Python37\python.exe
.../.pnpm/[email protected]/node_modules/nsfw install: gyp info spawn args [
.../.pnpm/[email protected]/node_modules/nsfw install: gyp info spawn args 'C:\Users\zhengtao\AppData\Roaming\npm\node_modules\pnpm\dist\node_modules\node-gyp\gyp\gyp_main.py',
.../.pnpm/[email protected]/node_modules/nsfw install: gyp info spawn args 'binding.gyp',
.../.pnpm/[email protected]/node_modules/nsfw install: gyp info spawn args '-f',
.../.pnpm/[email protected]/node_modules/nsfw install: gyp info spawn args 'msvs',
.../.pnpm/[email protected]/node_modules/nsfw install: gyp info spawn args '-I',
.../.pnpm/[email protected]/node_modules/nsfw install: gyp info spawn args 'C:\Users\zhengtao\Desktop\test_softwave\ide-electron\node_modules\.pnpm\[email protected]\node_modules\nsfw\build\config.gypi',
.../.pnpm/[email protected]/node_modules/nsfw install: gyp info spawn args '-I',
.../.pnpm/[email protected]/node_modules/nsfw install: gyp info spawn args 'C:\Users\zhengtao\AppData\Roaming\npm\node_modules\pnpm\dist\node_modules\node-gyp\addon.gypi',
.../.pnpm/[email protected]/node_modules/nsfw install: gyp info spawn args '-I',
.../.pnpm/[email protected]/node_modules/nsfw install: gyp info spawn args 'C:\Users\zhengtao\AppData\Local\node-gyp\Cache\12.22.0\include\node\common.gypi',
.../.pnpm/[email protected]/node_modules/nsfw install: gyp info spawn args '-Dlibrary=shared_library',
.../.pnpm/[email protected]/node_modules/nsfw install: gyp info spawn args '-Dvisibility=default',
.../.pnpm/[email protected]/node_modules/nsfw install: gyp info spawn args '-Dnode_root_dir=C:\Users\zhengtao\AppData\Local\node-gyp\Cache\12.22.0',
.../.pnpm/[email protected]/node_modules/nsfw install: gyp info spawn args '-Dnode_gyp_dir=C:\Users\zhengtao\AppData\Roaming\npm\node_modules\pnpm\dist\node_modules\node-gyp',
.../.pnpm/[email protected]/node_modules/nsfw install: gyp info spawn args '-Dnode_lib_file=C:\\Users\\zhengtao\\AppData\\Local\\node-gyp\\Cache\\12.22.0\\<(target_arch)\\node.lib',
.../.pnpm/[email protected]/node_modules/nsfw install: gyp info spawn args '-Dmodule_root_dir=C:\Users\zhengtao\Desktop\test_softwave\ide-electron\node_modules\.pnpm\[email protected]\node_modules\nsfw',
.../.pnpm/[email protected]/node_modules/nsfw install: gyp info spawn args '-Dnode_engine=v8',
.../.pnpm/[email protected]/node_modules/nsfw install: gyp info spawn args '--depth=.',
.../.pnpm/[email protected]/node_modules/nsfw install: gyp info spawn args '--no-parallel',
.../.pnpm/[email protected]/node_modules/nsfw install: gyp info spawn args '--generator-output',
.../.pnpm/[email protected]/node_modules/nsfw install: gyp info spawn args 'C:\Users\zhengtao\Desktop\test_softwave\ide-electron\node_modules\.pnpm\[email protected]\node_modules\nsfw\build',
.../.pnpm/[email protected]/node_modules/nsfw install: gyp info spawn args '-Goutput_dir=.'
.../.pnpm/[email protected]/node_modules/nsfw install: gyp info spawn args ]
.../[email protected]/node_modules/spdlog install: gyp info find VS using VS2015 (14.0) found at:
.../[email protected]/node_modules/spdlog install: gyp info find VS "C:\Program Files (x86)\Microsoft Visual Studio 14.0"
.../[email protected]/node_modules/spdlog install: gyp info find VS run with --verbose for detailed information
.../[email protected]/node_modules/spdlog install: gyp info spawn C:\Users\zhengtao\AppData\Local\Programs\Python\Python37\python.exe
.../[email protected]/node_modules/spdlog install: gyp info spawn args [
.../[email protected]/node_modules/spdlog install: gyp info spawn args 'C:\Users\zhengtao\AppData\Roaming\npm\node_modules\pnpm\dist\node_modules\node-gyp\gyp\gyp_main.py',
.../[email protected]/node_modules/spdlog install: gyp info spawn args 'binding.gyp',
.../[email protected]/node_modules/spdlog install: gyp info spawn args '-f',
.../[email protected]/node_modules/spdlog install: gyp info spawn args 'msvs',
.../[email protected]/node_modules/spdlog install: gyp info spawn args '-I',
.../[email protected]/node_modules/spdlog install: gyp info spawn args 'C:\Users\zhengtao\Desktop\test_softwave\ide-electron\node_modules\.pnpm\[email protected]\node_modules\spdlog\build\config.gypi',
.../[email protected]/node_modules/spdlog install: gyp info spawn args '-I',
.../[email protected]/node_modules/spdlog install: gyp info spawn args 'C:\Users\zhengtao\AppData\Roaming\npm\node_modules\pnpm\dist\node_modules\node-gyp\addon.gypi',
.../[email protected]/node_modules/spdlog install: gyp info spawn args '-I',
.../[email protected]/node_modules/spdlog install: gyp info spawn args 'C:\Users\zhengtao\AppData\Local\node-gyp\Cache\12.22.0\include\node\common.gypi',
.../[email protected]/node_modules/spdlog install: gyp info spawn args '-Dlibrary=shared_library',
.../[email protected]/node_modules/spdlog install: gyp info spawn args '-Dvisibility=default',
.../[email protected]/node_modules/spdlog install: gyp info spawn args '-Dnode_root_dir=C:\Users\zhengtao\AppData\Local\node-gyp\Cache\12.22.0',
.../[email protected]/node_modules/spdlog install: gyp info spawn args '-Dnode_gyp_dir=C:\Users\zhengtao\AppData\Roaming\npm\node_modules\pnpm\dist\node_modules\node-gyp',
.../[email protected]/node_modules/spdlog install: gyp info spawn args '-Dnode_lib_file=C:\\Users\\zhengtao\\AppData\\Local\\node-gyp\\Cache\\12.22.0\\<(target_arch)\\node.lib',
.../[email protected]/node_modules/spdlog install: gyp info spawn args '-Dmodule_root_dir=C:\Users\zhengtao\Desktop\test_softwave\ide-electron\node_modules\.pnpm\[email protected]\node_modules\spdlog',
.../[email protected]/node_modules/spdlog install: gyp info spawn args '-Dnode_engine=v8',
.../[email protected]/node_modules/spdlog install: gyp info spawn args '--depth=.',
.../[email protected]/node_modules/spdlog install: gyp info spawn args '--no-parallel',
.../[email protected]/node_modules/spdlog install: gyp info spawn args '--generator-output',
.../[email protected]/node_modules/spdlog install: gyp info spawn args 'C:\Users\zhengtao\Desktop\test_softwave\ide-electron\node_modules\.pnpm\[email protected]\node_modules\spdlog\build',
.../[email protected]/node_modules/spdlog install: gyp info spawn args '-Goutput_dir=.'
.../[email protected]/node_modules/spdlog install: gyp info spawn args ]
.../.pnpm/[email protected]/node_modules/nsfw install: gyp info spawn C:\Program Files (x86)\MSBuild\14.0\bin\MSBuild.exe
.../.pnpm/[email protected]/node_modules/nsfw install: gyp info spawn args [
.../.pnpm/[email protected]/node_modules/nsfw install: gyp info spawn args 'build/binding.sln',
.../.pnpm/[email protected]/node_modules/nsfw install: gyp info spawn args '/clp:Verbosity=minimal',
.../.pnpm/[email protected]/node_modules/nsfw install: gyp info spawn args '/nologo',
.../.pnpm/[email protected]/node_modules/nsfw install: gyp info spawn args '/p:Configuration=Release;Platform=x64'
.../.pnpm/[email protected]/node_modules/nsfw install: gyp info spawn args ]
.../[email protected]/node_modules/spdlog install: gyp info spawn C:\Program Files (x86)\MSBuild\14.0\bin\MSBuild.exe
.../[email protected]/node_modules/spdlog install: gyp info spawn args [
.../[email protected]/node_modules/spdlog install: gyp info spawn args 'build/binding.sln',
.../[email protected]/node_modules/spdlog install: gyp info spawn args '/clp:Verbosity=minimal',
.../[email protected]/node_modules/spdlog install: gyp info spawn args '/nologo',
.../[email protected]/node_modules/spdlog install: gyp info spawn args '/p:Configuration=Release;Platform=x64'
.../[email protected]/node_modules/spdlog install: gyp info spawn args ]
.../.pnpm/[email protected]/node_modules/nsfw install: 在此解决方案中一次生成一个项目。若要启用并行生成,请添加“/m”开关。
.../[email protected]/node_modules/spdlog install: 在此解决方案中一次生成一个项目。若要启用并行生成,请添加“/m”开关。
.../.pnpm/[email protected]/node_modules/nsfw install: C:\Program Files (x86)\MSBuild\Microsoft.Cpp\v4.0\V140\Microsoft.CppBuild.targets(366,5): warning MSB8003: Could not find WindowsSDKDir variable from the registry. TargetFrameworkVersion or PlatformToolset may be set to an invalid version number. [C:\Users\zhengtao\Desktop\test_softwave\ide-electron\node_modules.pnpm\[email protected]\node_modules\nsfw\build\nsfw.vcxproj]
.../[email protected]/node_modules/spdlog install: C:\Program Files (x86)\MSBuild\Microsoft.Cpp\v4.0\V140\Microsoft.CppBuild.targets(366,5): warning MSB8003: Could not find WindowsSDKDir variable from the registry. TargetFrameworkVersion or PlatformToolset may be set to an invalid version number. [C:\Users\zhengtao\Desktop\test_softwave\ide-electron\node_modules.pnpm\[email protected]\node_modules\spdlog\build\spdlog.vcxproj]
.../.pnpm/[email protected]/node_modules/nsfw install: TRACKER : 错误 TRK0005: 未能找到: “CL.exe”。系统找不到指定的文件。
.../.pnpm/[email protected]/node_modules/nsfw install:
.../.pnpm/[email protected]/node_modules/nsfw install:
.../.pnpm/[email protected]/node_modules/nsfw install: C:\Program Files (x86)\MSBuild\Microsoft.Cpp\v4.0\V140\Microsoft.CppCommon.targets(355,5): error MSB6006: “CL.exe”已退出,代码为 5。 [C:\Users\zhengtao\Desktop\test_softwave\ide-electron\node_modules.pnpm\[email protected]\node_modules\nsfw\build\nsfw.vcxproj]
.../[email protected]/node_modules/spdlog install: TRACKER : 错误 TRK0005: 未能找到: “CL.exe”。系统找不到指定的文件。
.../[email protected]/node_modules/spdlog install:
.../[email protected]/node_modules/spdlog install:
.../[email protected]/node_modules/spdlog install: C:\Program Files (x86)\MSBuild\Microsoft.Cpp\v4.0\V140\Microsoft.CppCommon.targets(355,5): error MSB6006: “CL.exe”已退出,代码为 5。 [C:\Users\zhengtao\Desktop\test_softwave\ide-electron\node_modules.pnpm\[email protected]\node_modules\spdlog\build\spdlog.vcxproj]
.../.pnpm/[email protected]/node_modules/nsfw install: gyp ERR! build error
.../.pnpm/[email protected]/node_modules/nsfw install: gyp ERR! stack Error: C:\Program Files (x86)\MSBuild\14.0\bin\MSBuild.exe
failed with exit code: 1
.../.pnpm/[email protected]/node_modules/nsfw install: gyp ERR! stack at ChildProcess.onExit (C:\Users\zhengtao\AppData\Roaming\npm\node_modules\pnpm\dist\node_modules\node-gyp\lib\build.js:194:23)
.../.pnpm/[email protected]/node_modules/nsfw install: gyp ERR! stack at ChildProcess.emit (events.js:314:20)
.../.pnpm/[email protected]/node_modules/nsfw install: gyp ERR! stack at Process.ChildProcess._handle.onexit (internal/child_process.js:276:12)
.../.pnpm/[email protected]/node_modules/nsfw install: gyp ERR! System Windows_NT 6.1.7601
.../.pnpm/[email protected]/node_modules/nsfw install: gyp ERR! command "C:\Program Files\nodejs\node.exe" "C:\Users\zhengtao\AppData\Roaming\npm\node_modules\pnpm\dist\node_modules\node-gyp\bin\node-gyp.js" "rebuild"
.../.pnpm/[email protected]/node_modules/nsfw install: gyp ERR! cwd C:\Users\zhengtao\Desktop\test_softwave\ide-electron\node_modules.pnpm\[email protected]\node_modules\nsfw
.../.pnpm/[email protected]/node_modules/nsfw install: gyp ERR! node -v v12.22.0
.../.pnpm/[email protected]/node_modules/nsfw install: gyp ERR! node-gyp -v v8.4.1
.../.pnpm/[email protected]/node_modules/nsfw install: gyp ERR! not ok
.../.pnpm/[email protected]/node_modules/nsfw install: Failed
ELIFECYCLE Command failed with exit code 1.
本地环境:
事情起因是pull了最新的代码并且重新npm install了下,发现npm run start出问题了。然后折腾了很久,折腾内容包括:
OS:麒麟 V10 SP1 2203
下载:https://github.com/opensumi/ide-electron/releases/download/v1.3.6/Sumi-OSS-1.3.6.deb
文件-打开文件夹或打开工作区,无法正常显示
1.克隆下ide-electron仓库 git clone [email protected]:opensumi/ide-electron.git
2.pnpm
3.pnpm build
4.pnpm run pack
以下为报错现象:
webpack 5.74.0 compiled with 4 warnings in 123685 ms
• electron-builder version=23.3.3 os=10.0.19045
• author is missed in the package.json appPackageFile=C:\Users\zhengtao\Desktop\new\ide-electron\app\package.json
• installing production dependencies platform=win32 arch=x64 appDir=C:\Users\zhengtao\Desktop\new\ide-electron\app
C:\Users\zhengtao\Desktop\new\ide-electron\node_modules.pnpm\[email protected]\node_modules\builder-util\src\util.ts:250
reject(new ExecError(command, code, out, errorOut))
^
Error: D:\node_js\node.exe process failed ERR_ELECTRON_BUILDER_CANNOT_EXECUTE
Exit code:
1
Output:
Progress: resolved 1, reused 0, downloaded 0, added 0
WARN deprecated @opensumi/[email protected]: Please use @opensumi/ripgrep instead
Packages: +13
+++++++++++++
Packages are hard linked from the content-addressable store to the virtual store.
Content-addressable store is at: C:\Users\zhengtao\AppData\Local\pnpm\store\v3
Virtual store is at: node_modules/.pnpm
.../node_modules/node-pty install$ node scripts/install.js
.../[email protected]/node_modules/spdlog install$ node-gyp rebuild
.../[email protected]/node_modules/spdlog install: C:\Users\zhengtao\Desktop\new\ide-electron\app\node_modules.pnpm\[email protected]\node_modules\spdlog>if not defined npm_config_node_gyp (node "C:\Users\zhengtao\AppData\Roaming\npm\node_modules\pnpm\dist\node-gyp-bin\..\node_modules\node-gyp\bin\node-gyp.js" rebuild ) else (node "C:\Users\zhengtao\AppData\Roaming\npm\node_modules\pnpm\dist\node_modules\node-gyp\bin\node-gyp.js" rebuild )
.../node_modules/node-pty install: C:\Users\zhengtao\Desktop\new\ide-electron\app\node_modules.pnpm\[email protected]\node_modules\node-pty>if not defined npm_config_node_gyp (node "C:\Users\zhengtao\AppData\Roaming\npm\node_modules\pnpm\dist\node-gyp-bin\..\node_modules\node-gyp\bin\node-gyp.js" rebuild ) else (node "C:\Users\zhengtao\AppData\Roaming\npm\node_modules\pnpm\dist\node_modules\node-gyp\bin\node-gyp.js" rebuild )
目前需要在opensumi里增加拖拽功能,使用到了react-beautiful-dnd库。因为拖拽的范围包括整个页面,所以需要使用react-beautiful-dnd 的组件包裹需要拖拽的组件。我要修改哪个文件才能将整个页面在呢。
下面是react-beautiful-dnd的组件关系
react-beautiful-dnd的github地址
https://github.com/atlassian/react-beautiful-dnd
[node][app:error] Error: The module '\?\D:\playtime\sumie\node_modules\spdlog\build\Release\spdlog.node'
was compiled against a different Node.js version using
NODE_MODULE_VERSION 83. This version of Node.js requires
NODE_MODULE_VERSION 103. Please try re-compiling or re-installing
the module (for instance, using npm rebuild
or npm install
).
直接从main分支运行出现这些错误,但貌似也能正常运行,好像是日志模块引用了。
重试了npm rebuildor
npm install也是这样
I used this template to init the project, and toggling the sidebars either using UI or
const layoutService = useInjectable<IMainLayoutService>(IMainLayoutService);
layoutService.toggleSlot(SlotLocation.right, false);
didn't work. Please view the recorded below 👇
Thank you for support 🙏
复现方式:
$ git clone https://github.com/opensumi/ide-electron
$ cd ide-electron
$ yarn
$ # edit product.json, see below
- "serverApp": { "marketplace": {} },
+ "serverApp": {
+ "marketplace": {
+ "endpoint": "https://open-vsx.org"
+ }
+ },
$ yarn build
$ yarn start
搜索安装插件通义灵码:
登录阿里云账号。
打开一个新文件用于测试,这里使用 python:
注意到这里并没有成功产生 AI 提示。你可以通过菜单里的 Trigger Inline Suggestion
手动触发,一些细节:
全新clone下来的代码。
nodejs v14.2.9
在Windows和Mac上都尝试了,均报如下错误
ERROR in /Users/fangjianbing/work/yix/ide-electron/src/browser/index.ts(69,3) TS2322: Type 'typeof MainLayoutModule' is not assignable to type 'ConstructorOf<BrowserModule<any>, any[]>'. Construct signature return types 'MainLayoutModule' and 'BrowserModule<any>' are incompatible. The types of 'providers' are incompatible between these types. Type 'import("/Users/fangjianbing/work/yix/ide-electron/node_modules/@opensumi/di/dist/declare").Provider[]' is not assignable to type 'import("/Users/fangjianbing/work/yix/ide-electron/node_modules/@opensumi/ide-core-common/node_modules/@opensumi/di/dist/declare").Provider[]'....
`$ yarn run start
yarn run v1.22.19
$ electron --inspect=9229 .
Debugger listening on ws://127.0.0.1:9229/e9403642-5418-4069-8093-b6ab85beb808
For help, see: https://nodejs.org/en/docs/inspector
processArgv [
'D:\playtime\sumie\node_modules\electron\dist\electron.exe',
'--inspect=9229',
'.'
]
馃殌 ~ file: index.ts ~ line 17 ~ launchFromCommandLine ~ argv []
working directory D:\playtime\sumie
workspace undefined
[node]listenPath \.\pipe\sumi-ipc-electron-windowZAOKJBu6oQqvZdef1I9M_
[node]server listen on path \.\pipe\sumi-ipc-electron-windowZAOKJBu6oQqvZdef1I9M_
ready
[node][extHost:error] [extHost:error] [Extension-Host] Failed opening file C:\Users\kaipc.sumi-oss\logs\20220619\extHost.log for writing: Permission denied
Error: Failed opening file C:\Users\kaipc.sumi-oss\logs\20220619\extHost.log for writing: Permission denied
at createRotatingLogger (D:\playtime\sumie\node_modules\spdlog\index.js:34:9)
at D:\playtime\sumie\node_modules\spdlog\index.js:27:7
at D:\playtime\sumie\node_modules\mkdirp\index.js:51:26
at FSReqCallbac...[node]listenPath \.\pipe\sumi-ipc-electron-windowfy0gn-gietgHBivPhRyL0
[node]server listen on path \.\pipe\sumi-ipc-electron-windowfy0gn-gietgHBivPhRyL0
ready
[node][extHost:error] [extHost:error] [Extension-Host] Failed opening file C:\Users\kaipc.sumi-oss\logs\20220619\extHost.log for writing: Permission denied
Error: Failed opening file C:\Users\kaipc.sumi-oss\logs\20220619\extHost.log for writing: Permission denied
at createRotatingLogger (D:\playtime\sumie\node_modules\spdlog\index.js:34:9)
at D:\playtime\sumie\node_modules\spdlog\index.js:27:7
at D:\playtime\sumie\node_modules\mkdirp\index.js:51:26
at FSReqCallbac...[node][extHost:error] [extHost:error] [Extension-Host] 娌℃湁鎵惧埌 Symbol(TestService) 鐨?Provider
Error: 娌℃湁鎵惧埌 Symbol(TestService) 鐨?Provider
at Object.noProviderError (file:///D:/playtime/sumie/app/browser/bundle.js:3005:12)
at Injector.webpack_modules../node_modules/@opensumi/di/dist/injector.js.Injector.get (file:///D:/playtime/sumie/app/browser/bundle.js:4469:33)
at MainThreadTestsImpl.get [as testService] (file:///D:/playtime/sumie/app/browser/bundle.js:2810:51)
at...[node][extHost:error] [extHost:error] [Extension-Host] 娌℃湁鎵惧埌 Symbol(TestService) 鐨?Provider
Error: 娌℃湁鎵惧埌 Symbol(TestService) 鐨?Provider
at Object.noProviderError (file:///D:/playtime/sumie/app/browser/bundle.js:3005:12)
at Injector.webpack_modules../node_modules/@opensumi/di/dist/injector.js.Injector.get (file:///D:/playtime/sumie/app/browser/bundle.js:4469:33)
at MainThreadTestsImpl.get [as testService] (file:///D:/playtime/sumie/app/browser/bundle.js:2810:51)
at...[node][extHost:error] [extHost:error] Error: Should provide a name inside candidate fieldError: Should provide a name inside candidate field
at Function.validate (D:\playtime\sumie\app\extension\index.js:13456:19)
at new DocumentSymbol (D:\playtime\sumie\app\extension\index.js:13452:26)
at new DocumentSymbol (D:\playtime\sumie\app\extension\index.js:42117:24)
at asDocumentSymbol (D:\playtime\sumie\extensions\robocorp.robotframework-lsp-0.48.2\node_modules\vscode-languageclient\li...[node][extHost:error] [extHost:error] [Extension-Host] 娌℃湁鎵惧埌 Symbol(TestService) 鐨?Provider `
electron开发的,可以给Linux的发行版打个包吗
目前 Logo 进展较慢,有进度会可以替换当前桌面端的 logo 信息。
插件市场中安装的插件卸载后,重新打开程序,在已安装的扩展中仍然存在
This issue lists Renovate updates and detected dependencies. Read the Dependency Dashboard docs to learn more.
These updates have all been created already. Click a checkbox below to force a retry/rebase of any.
@opensumi/ide-addons
, @opensumi/ide-ai-native
, @opensumi/ide-comments
, @opensumi/ide-core-browser
, @opensumi/ide-core-common
, @opensumi/ide-core-electron-main
, @opensumi/ide-core-node
, @opensumi/ide-debug
, @opensumi/ide-decoration
, @opensumi/ide-design
, @opensumi/ide-editor
, @opensumi/ide-electron-basic
, @opensumi/ide-explorer
, @opensumi/ide-extension
, @opensumi/ide-extension-manager
, @opensumi/ide-extension-storage
, @opensumi/ide-file-scheme
, @opensumi/ide-file-search
, @opensumi/ide-file-service
, @opensumi/ide-file-tree-next
, @opensumi/ide-i18n
, @opensumi/ide-keymaps
, @opensumi/ide-logs
, @opensumi/ide-main-layout
, @opensumi/ide-markdown
, @opensumi/ide-markers
, @opensumi/ide-menu-bar
, @opensumi/ide-monaco
, @opensumi/ide-monaco-enhance
, @opensumi/ide-opened-editor
, @opensumi/ide-outline
, @opensumi/ide-output
, @opensumi/ide-overlay
, @opensumi/ide-preferences
, @opensumi/ide-process
, @opensumi/ide-quick-open
, @opensumi/ide-scm
, @opensumi/ide-search
, @opensumi/ide-status-bar
, @opensumi/ide-storage
, @opensumi/ide-task
, @opensumi/ide-terminal-next
, @opensumi/ide-testing
, @opensumi/ide-theme
, @opensumi/ide-toolbar
, @opensumi/ide-variable
, @opensumi/ide-webview
, @opensumi/ide-workspace
, @opensumi/ide-workspace-edit
)build/package.json
package.json
@opensumi/ide-ai-native 3.2.1
@opensumi/ide-design 3.2.1
@opensumi/ide-addons 3.2.1
@opensumi/ide-comments 3.2.1
@opensumi/ide-core-browser 3.2.1
@opensumi/ide-core-common 3.2.1
@opensumi/ide-core-electron-main 3.2.1
@opensumi/ide-core-node 3.2.1
@opensumi/ide-debug 3.2.1
@opensumi/ide-decoration 3.2.1
@opensumi/ide-editor 3.2.1
@opensumi/ide-electron-basic 3.2.1
@opensumi/ide-explorer 3.2.1
@opensumi/ide-extension 3.2.1
@opensumi/ide-extension-manager 3.2.1
@opensumi/ide-extension-storage 3.2.1
@opensumi/ide-file-scheme 3.2.1
@opensumi/ide-file-search 3.2.1
@opensumi/ide-file-service 3.2.1
@opensumi/ide-file-tree-next 3.2.1
@opensumi/ide-i18n 3.2.1
@opensumi/ide-keymaps 3.2.1
@opensumi/ide-logs 3.2.1
@opensumi/ide-main-layout 3.2.1
@opensumi/ide-markdown 3.2.1
@opensumi/ide-markers 3.2.1
@opensumi/ide-menu-bar 3.2.1
@opensumi/ide-monaco 3.2.1
@opensumi/ide-monaco-enhance 3.2.1
@opensumi/ide-opened-editor 3.2.1
@opensumi/ide-outline 3.2.1
@opensumi/ide-output 3.2.1
@opensumi/ide-overlay 3.2.1
@opensumi/ide-preferences 3.2.1
@opensumi/ide-process 3.2.1
@opensumi/ide-quick-open 3.2.1
@opensumi/ide-scm 3.2.1
@opensumi/ide-search 3.2.1
@opensumi/ide-status-bar 3.2.1
@opensumi/ide-storage 3.2.1
@opensumi/ide-task 3.2.1
@opensumi/ide-terminal-next 3.2.1
@opensumi/ide-testing 3.2.1
@opensumi/ide-theme 3.2.1
@opensumi/ide-toolbar 3.2.1
@opensumi/ide-userstorage 2.27.2
@opensumi/ide-variable 3.2.1
@opensumi/ide-webview 3.2.1
@opensumi/ide-workspace 3.2.1
@opensumi/ide-workspace-edit 3.2.1
Tauri发布1.0版本了,号称多个性能指标强于Electron,为什么不尝试支持Tauri ?
Hi team, thank you for an amazing project!
I'm struggling with this issue for a long time, so I posted it here in case someone know what is wrong with it 👇
On Ubuntu 20.x, the IDE show a blank screen without any log:
(the no static exports
found - as what I researched - is just a warning and have title possibility of causing the blank issue, but if there is any advice for fixing it would be great)
On Ubuntu 22.x, it's working properly:
The annoying about the issue is there is no obvious error log so that I didn't know exactly what went wrong. Please let me know if there is anything I can do to make it work, any help is appreciated! 🙏
启动后窗口会白有几秒,再黑几秒,才能完整进入软件
使用的是mac mini m1
How about technically moving to tauri
E:\front-end\ide-electron>yarn
yarn install v1.22.10
[1/4] Resolving packages...
warning Resolution field "[email protected]" is incompatible with requested version "requestretry@^5.0.0"
warning Resolution field "[email protected]" is incompatible with requested version "y18n@^4.0.0"
[2/4] Fetching packages...
info [email protected]: The platform "win32" is incompatible with this module.
info "[email protected]" is an optional dependency and failed compatibility check. Excluding it from installation.
info [email protected]: The platform "win32" is incompatible with this module.
info "[email protected]" is an optional dependency and failed compatibility check. Excluding it from installation.
info [email protected]: The platform "win32" is incompatible with this module.
info "[email protected]" is an optional dependency and failed compatibility check. Excluding it from installation.
info [email protected]: The platform "win32" is incompatible with this module.
info "[email protected]" is an optional dependency and failed compatibility check. Excluding it from installation.
[3/4] Linking dependencies...
warning "@opensumi/ide-addons > @opensumi/ide-core-node > @opensumi/ide-connection > @opensumi/ide-components > @ant-design/[email protected]" has unmet peer dependency "react@>=16.0.0".
warning "@opensumi/ide-addons > @opensumi/ide-core-node > @opensumi/ide-connection > @opensumi/ide-components > [email protected]" has unmet peer dependency "react@^15.3.0 || ^16.0.0-alpha || ^17.0.0".
warning "@opensumi/ide-addons > @opensumi/ide-core-node > @opensumi/ide-connection > @opensumi/ide-components > @ant-design/icons > [email protected]" has unmet peer dependency "react@>=16.9.0".
warning "@opensumi/ide-comments > [email protected]" has unmet peer dependency "[email protected]".
warning " > [email protected]" has unmet peer dependency "react@^16.8.0".
warning "@opensumi/ide-comments > react-mentions > [email protected]" has unmet peer dependency "react@>=15.3.2".
warning " > @typescript-eslint/[email protected]" has unmet peer dependency "@typescript-eslint/parser@^4.0.0".
warning " > [email protected]" has unmet peer dependency "react@^16.14.0".
[4/4] Building fresh packages...
[6/8] ⠐ electron [7/8] ⠐ node-pty [3/8] ⠐ drivelist [4/8] ⠐ nsfw error E:\front-end\ide-electron\node_modules\spdlog: Command failed.
Exit code: 1
Command: node-gyp rebuild
Arguments:
Directory: E:\front-end\ide-electron\node_modules\spdlog
Output:
E:\front-end\ide-electron\node_modules\spdlog>if not defined npm_config_node_gyp (node "D:\nodejs\node_modules\npm\bin\node-gyp-bin\....\node_modules\node-gyp\bin\node-gyp.js" rebuild ) else (node "" rebuild )
gyp info it worked if it ends with ok
gyp info using [email protected]
gyp info using [email protected] | win32 | x64
gyp info find Python using Python version 3.9.6 found at "D:\Python39\python.exe"
gyp ERR! find VS
gyp ERR! find VS msvs_version not set from command line or npm config
gyp ERR! find VS VCINSTALLDIR not set, not running in VS Command Prompt
gyp ERR! find VS could not use PowerShell to find Visual Studio 2017 or newer
gyp ERR! find VS looking for Visual Studio 2015
gyp ERR! find VS - not found
gyp ERR! find VS not looking for VS2013 as it is only supported up to Node.js 8
gyp ERR! find VS
gyp ERR! find VS **************************************************************
gyp ERR! find VS You need to install the latest version of Visual Studio
gyp ERR! find VS including the "Desktop development with C++" workload.
gyp ERR! find VS For more information consult the documentation at:
gyp ERR! find VS https://github.com/nodejs/node-gyp#on-windows
gyp ERR! find VS **************************************************************
gyp ERR! find VS
gyp ERR! configure error
gyp ERR! stack Error: Could not find any Visual Studio installation to use
gyp ERR! stack at VisualStudioFinder.fail (D:\nodejs\node_modules\npm\node_modules\node-gyp\lib\find-visualstudio.js:121:47)
gyp ERR! stack at D:\nodejs\node_modules\npm\node_modules\node-gyp\lib\find-visualstudio.js:74:16
gyp ERR! stack at VisualStudioFinder.findVisualStudio2013 (D:\nodejs\node_modules\npm\node_modules\node-gyp\lib\find-visualstudio.js:351:14)
gyp ERR! stack at D:\nodejs\node_modules\npm\node_modules\node-gyp\lib\find-visualstudio.js:70:14
gyp ERR! stack at D:\nodejs\node_modules\npm\node_modules\node-gyp\lib\find-visualstudio.js:372:16
gyp ERR! stack at D:\nodejs\node_modules\npm\node_modules\node-gyp\lib\util.js:54:7
gyp ERR! stack at D:\nodejs\node_modules\npm\node_modules\node-gyp\lib\util.js:33:16
gyp ERR! stack at ChildProcess.exithandler (child_process.js:310:5)
gyp ERR! stack at ChildProcess.emit (events.js:315:20)
gyp ERR! stack at maybeClose (internal/child_process.js:1051:16)
gyp ERR! System Windows_NT 10.0.18363
gyp ERR! command "D:\nodejs\node.exe" "D:\nodejs\node_modules\npm\node_modules\node-gyp\bin\node-gyp.js" "rebuild"
gyp ERR! cwd E:\front-end\ide-electron\node_modules\spdlog
Windows环境,yarn正常,yarn build 提示ERROR: Task not found: "'build:*'"
PS D:\ide-electron> yarn build yarn run v1.22.18 $ rimraf -rf ./app && rimraf -rf ./out && run-p 'build:*' ERROR: Task not found: "'build:*'" error Command failed with exit code 1. info Visit https://yarnpkg.com/en/docs/cli/run for documentation about this command.
现象:
终端窗口空白。console 报错:
Uncaught (in promise) TypeError: this._terminal.onWriteParsed is not a function
at e.activate (xterm-addon-search.js:1:832)
at e.loadAddon (xterm.js:1:76801)
at e.loadAddon (xterm.js:1:308730)
at XTerm._prepareAddons (xterm.js:24:1)
at new XTerm (xterm.js:18:1)
at Injector.__webpack_modules__../node_modules/@opensumi/di/dist/injector.js.Injector.createInstanceWithInjector (injector.js:517:1)
at Injector.__webpack_modules__../node_modules/@opensumi/di/dist/injector.js.Injector.createInstanceFromClassCreator (injector.js:485:1)
at Injector.__webpack_modules__../node_modules/@opensumi/di/dist/injector.js.Injector.createInstance (injector.js:467:1)
at Injector.__webpack_modules__../node_modules/@opensumi/di/dist/injector.js.Injector.get (injector.js:192:1)
at new TerminalClient (terminal.client.js:44:1)
at Injector.__webpack_modules__../node_modules/@opensumi/di/dist/injector.js.Injector.createInstanceWithInjector (injector.js:517:1)
at Injector.__webpack_modules__../node_modules/@opensumi/di/dist/injector.js.Injector.createInstanceFromClassCreator (injector.js:485:1)
at Injector.__webpack_modules__../node_modules/@opensumi/di/dist/injector.js.Injector.createInstance (injector.js:467:1)
at Injector.__webpack_modules__../node_modules/@opensumi/di/dist/injector.js.Injector.get (injector.js:192:1)
at Function.createClient2 (terminal.client.js:635:1)
at TerminalController.<anonymous> (terminal.client.js:646:1)
at TerminalController._createClient (terminal.controller.js:63:1)
at TerminalController._createClientOrIgnore (terminal.controller.js:58:1)
at terminal.controller.js:166:1
at Emitter.fire (event.js:440:1)
at TerminalGroupViewService.createWidget (terminal.view.js:299:1)
at TerminalController._reset (terminal.controller.js:106:1)
at TerminalController.firstInitialize (terminal.controller.js:218:1)
at terminal.lifecycle.js:23:1
at runNextTicks (node:internal/process/task_queues:61:5)
at processImmediate (node:internal/timers:437:9)
复现步骤:
git clone [email protected]:opensumi/ide-electron.git
cd ide-electron
yarn
yarn run build
yarn run rebuild-native -- --force-rebuild=true
yarn run download-extension
yarn run start
MAC_RESOURCES_PATH /Users/black-hole/Code/Github/ide-electron/out-x64/mac/OpenSumi-OSS.app/Contents/Resources
processArgv [
'/Users/black-hole/Code/Github/ide-electron/out-x64/mac/OpenSumi-OSS.app/Contents/MacOS/OpenSumi-OSS'
]
🚀 ~ file: index.ts ~ line 17 ~ launchFromCommandLine ~ argv []
working directory /Users/black-hole/Code/Github/ide-electron
workspace undefined
objc[56114]: Class WebSwapCGLLayer is implemented in both /System/Library/Frameworks/WebKit.framework/Versions/A/Frameworks/WebCore.framework/Versions/A/Frameworks/libANGLE-shared.dylib (0x7ffb5063aec8) and /Users/black-hole/Code/Github/ide-electron/out-x64/mac/OpenSumi-OSS.app/Contents/Frameworks/Electron Framework.framework/Versions/A/Libraries/libGLESv2.dylib (0x10e3d99c8). One of the two will be used. Which one is undefined.
[node]innerError Error: Cannot find module '../build/Debug/pty.node'
Require stack:
- /Users/black-hole/Code/Github/ide-electron/out-x64/mac/OpenSumi-OSS.app/Contents/Resources/app.asar/node_modules/node-pty/lib/unixTerminal.js
- /Users/black-hole/Code/Github/ide-electron/out-x64/mac/OpenSumi-OSS.app/Contents/Resources/app.asar/node_modules/node-pty/lib/index.js
- /Users/black-hole/Code/Github/ide-electron/out-x64/mac/OpenSumi-OSS.app/Contents/Resources/app.asar/node/index.js
at Function.Module._r...[node]/Users/black-hole/Code/Github/ide-electron/out-x64/mac/OpenSumi-OSS.app/Contents/Resources/app.asar/node_modules/node-pty/lib/unixTerminal.js:36
throw outerError;
^
Error: The module '/var/folders/zm/g19w916x2x36bt16htrwtsh80000gp/T/.org.chromium.Chromium.SZYKdL'
was compiled against a different Node.js version using
NODE_MODULE_VERSION 93. This version of Node.js requires
NODE_MODULE_VERSION 103. Please try re-compiling or re-installing
the module (for instance, using `npm rebu...
应该使用 ../build/Release/pty.node
,但使用了 ../build/Debug/pty.node
以下是pnpm i 执行报错
C:\Users\zhengtao\Desktop\23.4.11\ide-electron>pnpm i
WARN deprecated [email protected]: request has been deprecated, see request/request#3142
WARN deprecated [email protected]: this library is no longer supported
WARN deprecated [email protected]: Please upgrade to version 7 or higher. Older versions may use Math.random() in certain circumstances, which is known to be problematic. See https://v8.dev/blog/math-random for details.
WARN deprecated @opensumi/[email protected]: Please use @opensumi/ripgrep instead
WARN deprecated [email protected]: Please use @electron/osx-sign moving forward. Be aware the API is slightly different
WARN deprecated [email protected]: core-js@<3.23.3 is no longer maintained and not recommended for usage due to the number of issues. Because of the V8 engine whims, feature detection in old core-js versions could cause a slowdown up to 100x even if nothing is polyfilled. Some versions have web compatibility issues. Please, upgrade your dependencies to the actual version of core-js.
WARN deprecated [email protected]: cross-spawn no longer requires a build toolchain, use it instead
Packages: +1049
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Progress: resolved 1057, reused 1055, downloaded 0, added 0, done
node_modules/.pnpm/[email protected]/node_modules/drivelist: Running install script...
node_modules/.pnpm/[email protected]/node_modules/nsfw: Running install script...
node_modules/.pnpm/[email protected]/node_modules/spdlog: Running install script, failed in 6.7s
.../[email protected]/node_modules/spdlog install$ node-gyp rebuild
│ C:\Users\zhengtao\Desktop\23.4.11\ide-electron\node_modules.pnpm\[email protected]\node_modules\spdlog>if not defined np
│ gyp info it worked if it ends with ok
│ gyp info using [email protected]
│ gyp info using [email protected] | win32 | x64
│ gyp info find Python using Python version 3.10.3 found at "C:\Users\zhengtao\AppData\Local\Programs\Python\Python310
│ gyp info find VS using VS2019 (16.11.33423.256) found at:
│ gyp info find VS "C:\Program Files (x86)\Microsoft Visual Studio\2019\Community"
│ gyp info find VS run with --verbose for detailed information
│ gyp info spawn C:\Users\zhengtao\AppData\Local\Programs\Python\Python310\python.exe
│ gyp info spawn args [
│ gyp info spawn args 'C:\Users\zhengtao\AppData\Roaming\npm\node_modules\pnpm\dist\node_modules\node-gyp
│ gyp info spawn args 'binding.gyp',
│ gyp info spawn args '-f',
│ gyp info spawn args 'msvs',
│ gyp info spawn args '-I',
│ gyp info spawn args 'C:\Users\zhengtao\Desktop\23.4.11\ide-electron\node_modules\.pnpm\[email protected]\node_
│ gyp info spawn args '-I',
│ gyp info spawn args 'C:\Users\zhengtao\AppData\Roaming\npm\node_modules\pnpm\dist\node_modules\node-gyp
│ gyp info spawn args '-I',
│ gyp info spawn args 'C:\Users\zhengtao\AppData\Local\node-gyp\Cache\16.20.0\include\node\common.gypi',
│ gyp info spawn args '-Dlibrary=shared_library',
│ gyp info spawn args '-Dvisibility=default',
│ gyp info spawn args '-Dnode_root_dir=C:\Users\zhengtao\AppData\Local\node-gyp\Cache\16.20.0',
│ gyp info spawn args '-Dnode_gyp_dir=C:\Users\zhengtao\AppData\Roaming\npm\node_modules\pnpm\dist\node_mod
│ gyp info spawn args '-Dnode_lib_file=C:\\Users\\zhengtao\\AppData\\Local\\node-gyp\\Cache\\16.20.0\
│ gyp info spawn args '-Dmodule_root_dir=C:\Users\zhengtao\Desktop\23.4.11\ide-electron\node_modules\.pnpm\s
│ gyp info spawn args '-Dnode_engine=v8',
│ gyp info spawn args '--depth=.',
│ gyp info spawn args '--no-parallel',
│ gyp info spawn args '--generator-output',
│ gyp info spawn args 'C:\Users\zhengtao\Desktop\23.4.11\ide-electron\node_modules\.pnpm\[email protected]\node_
│ gyp info spawn args '-Goutput_dir=.'
│ gyp info spawn args ]
│ gyp info spawn C:\Program Files (x86)\Microsoft Visual Studio\2019\Community\MSBuild\Current\Bin\MSBuild.exe
│ gyp info spawn args [
│ gyp info spawn args 'build/binding.sln',
│ gyp info spawn args '/clp:Verbosity=minimal',
│ gyp info spawn args '/nologo',
│ gyp info spawn args '/p:Configuration=Release;Platform=x64'
│ gyp info spawn args ]
│ 在此解决方案中一次生成一个项目。若要启用并行生成,请添加“-m”开关。
│ main.cc
│ C:\Users\zhengtao\AppData\Local\node-gyp\Cache\16.20.0\include\node\node.h(73,10): fatal error C1083: 无法打开包括文件: “v8.
│ gyp ERR! build error
│ gyp ERR! stack Error: `C:\Program Files (x86)\Microsoft Visual Studio\2019\Community\MSBuild\Current\Bin\MSBuild.exe
│ gyp ERR! stack at ChildProcess.onExit (C:\Users\zhengtao\AppData\Roaming\npm\node_modules\pnpm\dist\node_modules
│ gyp ERR! stack at ChildProcess.emit (node:events:513:28)
│ gyp ERR! stack at Process.ChildProcess.handle.onexit (node:internal/child_process:293:12)
│ gyp ERR! System Windows_NT 10.0.19045
│ gyp ERR! command "D:\nodejs\node.exe" "C:\Users\zhengtao\AppData\Roaming\npm\node_modules\pnpm\dist\node
│ gyp ERR! cwd C:\Users\zhengtao\Desktop\23.4.11\ide-electron\node_modules.pnpm\[email protected]\node_modules\spdlog
│ gyp ERR! node -v v16.20.0
│ gyp ERR! node-gyp -v v9.3.1
│ gyp ERR! not ok
└─ Failed in 6.7s at C:\Users\zhengtao\Desktop\23.4.11\ide-electron\node_modules.pnpm\[email protected]\node_modules\spdlog
ELIFECYCLE Command failed with exit code 1.
RT
C:\ide_code\NEW\ide-electron>pnpm i
WARN deprecated [email protected]: request has been deprecated, see request/request#3142
WARN deprecated [email protected]: this library is no longer supported
WARN deprecated [email protected]: Please upgrade to version 7 or higher. Older versions may use Math.random() in certain circumstances, which is known to be problematic. See https://v8.dev/blog/math-random for details.
WARN deprecated @opensumi/[email protected]: Please use @opensumi/ripgrep instead
WARN deprecated [email protected]: Please use @electron/osx-sign moving forward. Be aware the API is slightly different
WARN deprecated [email protected]: core-js@<3.23.3 is no longer maintained and not recommended for usage due to the number of issues. Because of the V8 engine whims, feature detection in old core-js versions could cause a slowdown up to 100x even if nothing is polyfilled. Some versions have web compatibility issues. Please, upgrade your dependencies to the actual version of core-js.
WARN deprecated [email protected]: cross-spawn no longer requires a build toolchain, use it instead
Packages: +1049
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Progress: resolved 1057, reused 1055, downloaded 0, added 0, done
node_modules/.pnpm/[email protected]/node_modules/drivelist: Running install script...
node_modules/.pnpm/[email protected]/node_modules/nsfw: Running install script, failed in 12.9s
.../.pnpm/[email protected]/node_modules/nsfw install$ node-gyp rebuild
│ C:\ide_code\NEW\ide-electron\node_modules.pnpm\[email protected]\node_modules\nsfw>if not defined npm_config_node_gyp (nod
│ gyp info it worked if it ends with ok
│ gyp info using [email protected]
│ gyp info using [email protected] | win32 | x64
│ gyp info find Python using Python version 3.11.3 found at "C:\Users\zt\AppData\Local\Programs\Python\Python311\pytho
│ gyp info find VS using VS2019 (16.11.33529.622) found at:
│ gyp info find VS "C:\Program Files (x86)\Microsoft Visual Studio\2019\Community"
│ gyp info find VS run with --verbose for detailed information
│ gyp info spawn C:\Users\zt\AppData\Local\Programs\Python\Python311\python.exe
│ gyp info spawn args [
│ gyp info spawn args 'C:\Users\zt\AppData\Roaming\npm\node_modules\pnpm\dist\node_modules\node-gyp\gyp\
│ gyp info spawn args 'binding.gyp',
│ gyp info spawn args '-f',
│ gyp info spawn args 'msvs',
│ gyp info spawn args '-I',
│ gyp info spawn args 'C:\ide_code\NEW\ide-electron\node_modules\.pnpm\[email protected]\node_modules\nsfw\build\
│ gyp info spawn args '-I',
│ gyp info spawn args 'C:\Users\zt\AppData\Roaming\npm\node_modules\pnpm\dist\node_modules\node-gyp\addon
│ gyp info spawn args '-I',
│ gyp info spawn args 'C:\Users\zt\AppData\Local\node-gyp\Cache\16.20.0\include\node\common.gypi',
│ gyp info spawn args '-Dlibrary=shared_library',
│ gyp info spawn args '-Dvisibility=default',
│ gyp info spawn args '-Dnode_root_dir=C:\Users\zt\AppData\Local\node-gyp\Cache\16.20.0',
│ gyp info spawn args '-Dnode_gyp_dir=C:\Users\zt\AppData\Roaming\npm\node_modules\pnpm\dist\node_modules\
│ gyp info spawn args '-Dnode_lib_file=C:\\Users\\zt\\AppData\\Local\\node-gyp\\Cache\\16.20.0\\<(ta
│ gyp info spawn args '-Dmodule_root_dir=C:\ide_code\NEW\ide-electron\node_modules\.pnpm\[email protected]\node_modu
│ gyp info spawn args '-Dnode_engine=v8',
│ gyp info spawn args '--depth=.',
│ gyp info spawn args '--no-parallel',
│ gyp info spawn args '--generator-output',
│ gyp info spawn args 'C:\ide_code\NEW\ide-electron\node_modules\.pnpm\[email protected]\node_modules\nsfw\build',
│ gyp info spawn args '-Goutput_dir=.'
│ gyp info spawn args ]
│ gyp info spawn C:\Program Files (x86)\Microsoft Visual Studio\2019\Community\MSBuild\Current\Bin\MSBuild.exe
│ gyp info spawn args [
│ gyp info spawn args 'build/binding.sln',
│ gyp info spawn args '/clp:Verbosity=minimal',
│ gyp info spawn args '/nologo',
│ gyp info spawn args '/p:Configuration=Release;Platform=x64'
│ gyp info spawn args ]
│ 在此解决方案中一次生成一个项目。若要启用并行生成,请添加“-m”开关。
│ NSFW.cpp
│ C:\ide_code\NEW\ide-electron\node_modules.pnpm\[email protected]\node_modules\node-addon-api\napi.h(4,10): fatal
│ gyp ERR! build error
│ gyp ERR! stack Error: `C:\Program Files (x86)\Microsoft Visual Studio\2019\Community\MSBuild\Current\Bin\MSBuild.exe
│ gyp ERR! stack at ChildProcess.onExit (C:\Users\zt\AppData\Roaming\npm\node_modules\pnpm\dist\node_modules\node-
│ gyp ERR! stack at ChildProcess.emit (node:events:513:28)
│ gyp ERR! stack at Process.ChildProcess._handle.onexit (node:internal/child_process:293:12)
│ gyp ERR! System Windows_NT 10.0.19045
│ gyp ERR! command "C:\node16\node.exe" "C:\Users\zt\AppData\Roaming\npm\node_modules\pnpm\dist\node_module
│ gyp ERR! cwd C:\ide_code\NEW\ide-electron\node_modules.pnpm\[email protected]\node_modules\nsfw
│ gyp ERR! node -v v16.20.0
│ gyp ERR! node-gyp -v v9.3.1
│ gyp ERR! not ok
└─ Failed in 12.9s at C:\ide_code\NEW\ide-electron\node_modules.pnpm\[email protected]\node_modules\nsfw
node_modules/.pnpm/[email protected]/node_modules/spdlog: Running install script...
ELIFECYCLE Command failed with exit code 1.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.