在本地运行开源代码 - vscode

Runnign open source code locally - vscode

我决定作为一个几乎是初学者的人开始使用开源代码。向我建议的项目之一是 vscode。因此,我按照以下 link:

中的说明进行操作

https://github.com/microsoft/vscode/wiki/How-to-Contribute

我在 Fedora 作为平台,所以我 运行 基于 Red hat 的命令 linux。它成功了。然后,我在我的 github 上进行了分叉,我在本地克隆了我的分叉,正如指南的其余部分所建议的那样。所以,我输入了这个 vscode 目录和 运行 纱线。这里开始出现问题,出现以下错误:

1/13] ⠂ @parcel/watcher
[2/13] ⠂ @vscode/ripgrep
[3/13] ⠂ @vscode/sqlite3
[4/13] ⠂ keytar
error /home/matteopossamai/open_source/vscode/node_modules/native-is-elevated: Command failed.
Exit code: 1
Command: node-gyp rebuild
Arguments: 
Directory: /home/matteopossamai/open_source/vscode/node_modules/native-is-elevated
Output:
gyp info it worked if it ends with ok
gyp info using node-gyp@9.0.0
gyp info using node@16.15.0 | linux | x64
gyp info find Python using Python version 3.9.7 found at "/usr/bin/python3"
gyp http GET https://electronjs.org/headers/v17.4.3/node-v17.4.3-headers.tar.gz
gyp http 200 https://artifacts.electronjs.org/headers/dist/v17.4.3/node-v17.4.3-headers.tar.gz
gyp http GET https://electronjs.org/headers/v17.4.3/SHASUMS256.txt
gyp http 200 https://artifacts.electronjs.org/headers/dist/v17.4.3/SHASUMS256.txt
gyp info spawn /usr/bin/python3
gyp info spawn args [
gyp info spawn args   '/usr/lib/node_modules/npm/node_modules/node-gyp/gyp/gyp_main.py',
gyp info spawn args   'binding.gyp',
gyp info spawn args   '-f',
gyp info spawn args   'make',
gyp info spawn args   '-I',
gyp info spawn args   '/home/matteopossamai/open_source/vscode/node_modules/native-is-elevated/build/config.gypi',
gyp info spawn args   '-I',
gyp info spawn args   '/usr/lib/node_modules/npm/node_modules/node-gyp/addon.gypi',
gyp info spawn args   '-I',
gyp info spawn args   '/home/matteopossamai/.cache/node-gyp/17.4.3/include/node/common.gypi',
gyp info spawn args   '-Dlibrary=shared_library',
gyp info spawn args   '-Dvisibility=default',
gyp info spawn args   '-Dnode_root_dir=/home/matteopossamai/.cache/node-gyp/17.4.3',
gyp info spawn args   '-Dnode_gyp_dir=/usr/lib/node_modules/npm/node_modules/node-gyp',
gyp info spawn args   '-Dnode_lib_file=/home/matteopossamai/.cache/node-gyp/17.4.3/<(target_arch)/node.lib',
gyp info spawn args   '-Dmodule_root_dir=/home/matteopossamai/open_source/vscode/node_modules/native-is-elevated',
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   'build',
gyp info spawn args   '-Goutput_dir=.'
gyp info spawn args ]
gyp info spawn make
gyp info spawn args [ 'BUILDTYPE=Release', '-C', 'build' ]
make: ingresso nella directory «/home/matteopossamai/open_source/vscode/node_modules/native-is-elevated/build»
  CXX(target) Release/obj.target/iselevated/src/iselevated.o
make: g++: File o directory non esistente
make: *** [iselevated.target.mk:121: Release/obj.target/iselevated/src/iselevated.o] Errore 127
make: uscita dalla directory «/home/matteopossamai/open_source/vscode/node_modules/native-is-elevated/build»
gyp ERR! build error 
gyp ERR! stack Error: `make` failed with exit code: 2
gyp ERR! stack     at ChildProcess.onExit (/usr/lib/node_modules/npm/node_modules/node-gyp/lib/build.js:194:23)
gyp ERR! stack     at ChildProcess.emit (node:events:527:28)
gyp ERR! stack     at Process.ChildProcess._handle.onexit (node:internal/child_process:291:12)
gyp ERR! System Linux 5.13.16-200.fc34.x86_64
gyp ERR! command "/usr/bin/node" "/usr/lib/node_modules/npm/node_modules/node-gyp/bin/node-gyp.js" "rebuild"
gyp ERR! cwd /home/matteopossamai/open_source/vscode/node_modules/native-is-elevated
gyp ERR! node -v v16.15.0

我不确定问题是什么以及如何解决。我真的很想开始贡献并了解一切,但我才刚刚开始,所以我缺乏一些知识。

下一步应该是使用yarn watch,但是有一个错误,我认为这取决于之前的错误。

如果可以,请帮帮我,我很需要

我不明白为什么堆栈溢出上的某些人无缘无故地不喜欢。 据我所知,本地存储库存在问题。 终端指南中的错误,请阅读!

make: ingresso nella directory «/home/matteopossamai/open_source/vscode/node_modules/native-is-elevated/build»
  CXX(target) Release/obj.target/iselevated/src/iselevated.o
make: g++: File o directory non esistente

我的建议是创建一个新文件夹,从 GitHub 项目本地分叉,然后重试。 P.S: 你检查过你是否正确安装了所有依赖项?至少从终端做一个很好的 update/upgrade 并从项目页面检查你需要在本地开发什么。