Closed jankeromnes closed 5 years ago
Could this be related to the use of Node 10?
The build errors have some similarities with https://github.com/microsoft/node-pty/issues/279.
Strangely, when you retry a fresh Theia dependencies install (with THEIA_ELECTRON_SKIP_REPLACE_FFMPEG=1 yarn
because of https://github.com/theia-ide/theia/pull/5055#issuecomment-491186650), it seems to work fine:
$ rm -rf node_modules
$ THEIA_ELECTRON_SKIP_REPLACE_FFMPEG=1 yarn
[...]
@theia/example-electron: WARNING in Circular dependency detected:
@theia/example-electron: ../../packages/plugin-ext/lib/common/index.js -> ../../packages/plugin-ext/lib/plugin/plugin-context.js -> ../../packages/plugin-ext/lib/plugin/tree/tree-views.js -> ../../packages/plugin-ext/lib/common/index.js
@theia/example-electron:
@theia/example-electron: WARNING in Circular dependency detected:
@theia/example-electron: ../../packages/plugin-ext/lib/plugin/plugin-context.js -> ../../packages/plugin-ext/lib/plugin/tree/tree-views.js ->../../packages/plugin-ext/lib/common/index.js -> ../../packages/plugin-ext/lib/plugin/plugin-context.js
@theia/example-electron:
@theia/example-electron: WARNING in Circular dependency detected:
@theia/example-electron: ../../packages/plugin-ext/lib/plugin/tree/tree-views.js -> ../../packages/plugin-ext/lib/common/index.js -> ../../packages/plugin-ext/lib/plugin/plugin-context.js -> ../../packages/plugin-ext/lib/plugin/tree/tree-views.js
lerna success run Ran npm script 'prepare' in packages:
lerna success - @theia/application-manager
lerna success - @theia/application-package
lerna success - @theia/cli
lerna success - @theia/ext-scripts
lerna success - @theia/bunyan
lerna success - @theia/callhierarchy
lerna success - @theia/console
lerna success - @theia/core
lerna success - @theia/cpp
lerna success - @theia/debug-nodejs
lerna success - @theia/debug
lerna success - @theia/editor-preview
lerna success - @theia/editor
lerna success - @theia/editorconfig
lerna success - @theia/extension-manager
lerna success - @theia/file-search
lerna success - @theia/filesystem
lerna success - @theia/getting-started
lerna success - @theia/git
lerna success - @theia/java-debug
lerna success - @theia/java
lerna success - @theia/json
lerna success - @theia/keymaps
lerna success - @theia/languages
lerna success - @theia/markers
lerna success - @theia/merge-conflicts
lerna success - @theia/messages
lerna success - @theia/metrics
lerna success - @theia/mini-browser
lerna success - @theia/monaco
lerna success - @theia/navigator
lerna success - @theia/outline-view
lerna success - @theia/output
lerna success - @theia/plugin-ext-vscode
lerna success - @theia/plugin-ext
lerna success - @theia/plugin
lerna success - @theia/preferences
lerna success - @theia/preview
lerna success - @theia/process
lerna success - @theia/python
lerna success - @theia/search-in-workspace
lerna success - @theia/task
lerna success - @theia/terminal
lerna success - @theia/textmate-grammars
lerna success - @theia/tslint
lerna success - @theia/typehierarchy
lerna success - @theia/typescript
lerna success - @theia/userstorage
lerna success - @theia/variable-resolver
lerna success - @theia/workspace
lerna success - @theia/example-browser
lerna success - @theia/example-electron
Done in 210.08s.
yarn run v1.16.0
$ theia check:hoisted -s
🔍 Analyzing hoisted dependencies in the Theia extensions...
📖 Summary:
The following dependency issues were detected in '@theia/core':
- error: Dependency 'ajv' [6.5.4] was not hoisted to the root 'node_modules' folder. The same dependency already exists with version 6.5.3 at '/workspace/theia/node_modules/ajv'.
The following dependency issues were detected in '@theia/keymaps':
- error: Dependency 'ajv' [6.5.4] was not hoisted to the root 'node_modules' folder. The same dependency already exists with version 6.5.3 at '/workspace/theia/node_modules/ajv'.
The following dependency issues were detected in '@theia/workspace':
- error: Dependency 'ajv' [6.5.4] was not hoisted to the root 'node_modules' folder. The same dependency already exists with version 6.5.3 at '/workspace/theia/node_modules/ajv'.
⚠️ This is a reminder to fix the dependency issues.
Done in 0.44s.
Done in 273.76s.
I'm not sure what's different between the two runs.
@jankeromnes, please try again. Sometimes there is are hiccups with node-gyp builds.
e.g. from logs you can read such info:
/home/gitpod/.node-gyp/10.15.3/include/node/uv.h:24: error: unterminated #ifndef
so, node-gyp tried to download some headers, but they're likely broken.
rm -rf ./node_modules && rm -rm ~/.node-gyp && yarn
should do a clean build in such cases.
This issue seems to have fixed itself. Closing for now.
Description
Installing Theia dependencies is broken in Gitpod, and in particular building
@theia/node-pty
.Reproduction Steps
OS and Theia version:
Linux 4.15.0-1028-gcp / trunk
Diagnostics:
This is the full log when
yarn
is run: