Theia 1.5.0 build error

Hello,

Having quite a lot of build problems as follows:

  • npm debug log:
0 info it worked if it ends with ok
1 verbose cli [
1 verbose cli   '/Users/kdassharma1/.nvm/versions/node/v12.14.1/bin/node',
1 verbose cli   '/Users/kdassharma1/.nvm/versions/node/v12.14.1/bin/npm',
1 verbose cli   'run',
1 verbose cli   'prepare'
1 verbose cli ]
2 info using npm@6.13.4
3 info using node@v12.14.1
4 verbose run-script [ 'prepare' ]
5 info lifecycle browser-app@0.0.0~prepare: browser-app@0.0.0
6 verbose lifecycle browser-app@0.0.0~prepare: unsafe-perm in lifecycle true
7 verbose lifecycle browser-app@0.0.0~prepare: PATH: /Users/kdassharma1/.nvm/versions/node/v12.14.1/lib/node_modules/npm/node_modules/npm-lifecycle/node-gyp-bin:/Users/kdassharma1/Documents/GitHub/ToolChain/theia/browser-app/node_modules/.bin:/Users/kdassharma1/Documents/GitHub/ToolChain/theia/browser-app/node_modules/.bin:/Users/kdassharma1/Documents/GitHub/ToolChain/theia/node_modules/.bin:/Users/kdassharma1/Documents/GitHub/ToolChain/node_modules/.bin:/Users/kdassharma1/Documents/GitHub/node_modules/.bin:/Users/kdassharma1/Documents/node_modules/.bin:/Users/kdassharma1/node_modules/.bin:/Users/node_modules/.bin:/node_modules/.bin:/Users/kdassharma1/.nvm/versions/node/v12.14.1/bin:/var/folders/_z/hl41vr0s7s11fw1w55fs45bc0000gp/T/yarn--1598988296283-0.10769662624992549:/Users/kdassharma1/Documents/GitHub/ToolChain/theia/node_modules/.bin:/Users/kdassharma1/.config/yarn/link/node_modules/.bin:/Users/kdassharma1/Documents/GitHub/ToolChain/theia/node_modules/.bin:/Users/kdassharma1/.nvm/versions/node/v12.14.1/libexec/lib/node_modules/npm/bin/node-gyp-bin:/Users/kdassharma1/.nvm/versions/node/v12.14.1/lib/node_modules/npm/bin/node-gyp-bin:/Users/kdassharma1/.nvm/versions/node/v12.14.1/bin/node_modules/npm/bin/node-gyp-bin:/Library/Frameworks/Python.framework/Versions/3.8/bin:/Library/Frameworks/Python.framework/Versions/3.8/bin:/anaconda3/bin:/Library/Frameworks/Python.framework/Versions/3.6/bin:/usr/local/bin:/usr/bin:/bin:/usr/sbin:/sbin:/opt/X11/bin:/Library/Frameworks/Python.framework/Versions/3.8/bin:/Users/kdassharma1/.nvm/versions/node/v12.14.1/bin:/anaconda3/bin:/Library/Frameworks/Python.framework/Versions/3.6/bin:/Users/kdassharma1/.rvm/bin
8 verbose lifecycle browser-app@0.0.0~prepare: CWD: /Users/kdassharma1/Documents/GitHub/ToolChain/theia/browser-app
9 silly lifecycle browser-app@0.0.0~prepare: Args: [ '-c', 'theia build --mode development' ]
10 silly lifecycle browser-app@0.0.0~prepare: Returned: code: 1  signal: null
11 info lifecycle browser-app@0.0.0~prepare: Failed to exec prepare script
12 verbose stack Error: browser-app@0.0.0 prepare: `theia build --mode development`
12 verbose stack Exit status 1
12 verbose stack     at EventEmitter.<anonymous> (/Users/kdassharma1/.nvm/versions/node/v12.14.1/lib/node_modules/npm/node_modules/npm-lifecycle/index.js:332:16)
12 verbose stack     at EventEmitter.emit (events.js:223:5)
12 verbose stack     at ChildProcess.<anonymous> (/Users/kdassharma1/.nvm/versions/node/v12.14.1/lib/node_modules/npm/node_modules/npm-lifecycle/lib/spawn.js:55:14)
12 verbose stack     at ChildProcess.emit (events.js:223:5)
12 verbose stack     at maybeClose (internal/child_process.js:1021:16)
12 verbose stack     at Process.ChildProcess._handle.onexit (internal/child_process.js:283:5)
13 verbose pkgid browser-app@0.0.0
14 verbose cwd /Users/kdassharma1/Documents/GitHub/ToolChain/theia/browser-app
15 verbose Darwin 19.6.0
16 verbose argv "/Users/kdassharma1/.nvm/versions/node/v12.14.1/bin/node" "/Users/kdassharma1/.nvm/versions/node/v12.14.1/bin/npm" "run" "prepare"
17 verbose node v12.14.1
18 verbose npm  v6.13.4
19 error code ELIFECYCLE
20 error errno 1
21 error browser-app@0.0.0 prepare: `theia build --mode development`
21 error Exit status 1
22 error Failed at the browser-app@0.0.0 prepare script.
22 error This is probably not a problem with npm. There is likely additional logging output above.
23 verbose exit [ 1, true ]
  • yarn upgrade:
WARNING in ../node_modules/vscode-textmate/release/main.js 23:15-27
Critical dependency: the request of a dependency is an expression
 @ ../node_modules/@theia/monaco/lib/browser/textmate/monaco-textmate-service.js
 @ ../node_modules/@theia/monaco/lib/browser/textmate/monaco-textmate-frontend-bindings.js
 @ ../node_modules/@theia/monaco/lib/browser/monaco-frontend-module.js
 @ ../node_modules/@theia/monaco/lib/browser/monaco-browser-module.js
 @ ./src-gen/frontend/index.js

WARNING in ../node_modules/vscode-textmate/release/main.js
Module Warning (from ../node_modules/source-map-loader/index.js):
(Emitted value instead of a
n instance of Error) Cannot find SourceMap 'main.js.map': Error: Can't resolve './main.js.map' in '/Users/kdassharma1/Documents/GitHub/ToolChain/theia/node_modules/vscode-textmate/release'
 @ ../node_modules/@theia/monaco/lib/browser/textmate/monaco-textmate-service.js 76:24-50
 @ ../node_modules/@theia/monaco/lib/browser/textmate/monaco-textmate-frontend-bindings.js
 @ ../node_modules/@theia/monaco/lib/browser/monaco-frontend-module.js
 @ ../node_modules/@theia/monaco/lib/browser/monaco-browser-module.js
 @ ./src-gen/frontend/index.js

ERROR in ../node_modules/vscode-languageclient/lib/client.js
Module not found: Error: Can't resolve 'vscode' in '/Users/kdassharma1/Documents/GitHub/ToolChain/theia/node_modules/vscode-languageclient/lib'
 @ ../node_modules/vscode-languageclient/lib/client.js 10:17-34
 @ ../node_modules/monaco-languageclient/lib/monaco-language-client.js
 @ ../node_modules/monaco-languageclient/lib/index.js
 @ ../node_modules/@theia/languages/lib/browser/language-client-services.js
 @ ../node_modules/@theia/languages/lib/browser/languages-frontend-module.js
 @ ./src-gen/frontend/index.js

ERROR in ../node_modules/vscode-languageclient/lib/typeDefinition.js
Module not found: Error: Can't resolve 'vscode' in '/Users/kdassharma1/Documents/GitHub/ToolChain/theia/node_modules/vscode-languageclient/lib'
 @ ../node_modules/vscode-languageclient/lib/typeDefinition.js 7:17-34
 @ ../node_modules/monaco-languageclient/lib/monaco-language-client.js
 @ ../node_modules/monaco-languageclient/lib/index.js
 @ ../node_modules/@theia/languages/lib/browser/language-client-services.js
 @ ../node_modules/@theia/languages/lib/browser/languages-frontend-module.js
 @ ./src-gen/frontend/index.js

ERROR in ../node_modules/vscode-languageclient/lib/configuration.js
Module not found: Error: Can't resolve 'vscode' in '/Users/kdassharma1/Documents/GitHub/ToolChain/theia/node_modules/vscode-languageclient/lib'
 @ ../node_modules/vscode-languageclient/lib/configuration.js 7:17-34
 @ ../node_modules/monaco-languageclient/lib/monaco-language-client.js
 @ ../node_modules/monaco-languageclient/lib/index.js
 @ ../node_modules/@theia/languages/lib/browser/language-client-services.js
 @ ../node_modules/@theia/languages/lib/browser/languages-frontend-module.js
 @ ./src-gen/frontend/index.js

ERROR in ../node_modules/vscode-languageclient/lib/implementation.js
Module not found: Error: Can't resolve 'vscode' in '/Users/kdassharma1/Documents/GitHub/ToolChain/theia/node_modules/vscode-languageclient/lib'
 @ ../node_modules/vscode-languageclient/lib/implementation.js 7:17-34
 @ ../node_modules/monaco-languageclient/lib/monaco-language-client.js
 @ ../node_modules/monaco-languageclient/lib/index.js
 @ ../node_modules/@theia/languages/lib/browser/language-client-services.js
 @ ../node_modules/@theia/languages/lib/browser/languages-frontend-module.js
 @ ./src-gen/frontend/index.js

ERROR in ../node_modules/vscode-languageclient/lib/colorProvider.js
Module not found: Error: Can't resolve 'vscode' in '/Users/kdassharma1/Documents/GitHub/ToolChain/theia/node_modules/vscode-languageclient/lib'
 @ ../node_modules/vscode-languageclient/lib/colorProvider.js 7:17-34
 @ ../node_modules/monaco-languageclient/lib/monaco-language-client.js
 @ ../node_modules/monaco-languageclient/lib/index.js
 @ ../node_modules/@theia/languages/lib/browser/language-client-services.js
 @ ../node_modules/@theia/languages/lib/browser/languages-frontend-module.js
 @ ./src-gen/frontend/index.js

ERROR in ../node_modules/vscode-languageclient/lib/workspaceFolders.js
Module not found: Error: Can't resolve 'vscode' in '/Users/kdassharma1/Documents/GitHub/ToolChain/theia/node_modules/vscode-languageclient/lib'
 @ ../node_modules/vscode-languageclient/lib/workspaceFolders.js 8:17-34
 @ ../node_modules/monaco-languageclient/lib/monaco-language-client.js
 @ ../node_modules/monaco-languageclient/lib/index.js
 @ ../node_modules/@theia/languages/lib/browser/language-client-services.js
 @ ../node_modules/@theia/languages/lib/browser/languages-frontend-module.js
 @ ./src-gen/frontend/index.js

ERROR in ../node_modules/vscode-languageclient/lib/foldingRange.js
Module not found: Error: Can't resolve 'vscode' in '/Users/kdassharma1/Documents/GitHub/ToolChain/theia/node_modules/vscode-languageclient/lib'
 @ ../node_modules/vscode-languageclient/lib/foldingRange.js 7:17-34
 @ ../node_modules/monaco-languageclient/lib/monaco-language-client.js
 @ ../node_modules/monaco-languageclient/lib/index.js
 @ ../node_modules/@theia/languages/lib/browser/language-client-services.js
 @ ../node_modules/@theia/languages/lib/browser/languages-frontend-module.js
 @ ./src-gen/frontend/index.js

ERROR in ../node_modules/vscode-languageclient/lib/declaration.js
Module not found: Error: Can't resolve 'vscode' in '/Users/kdassharma1/Documents/GitHub/ToolChain/theia/node_modules/vscode-languageclient/lib'
 @ ../node_modules/vscode-languageclient/lib/declaration.js 7:17-34
 @ ../node_modules/monaco-languageclient/lib/monaco-language-client.js
 @ ../node_modules/monaco-languageclient/lib/index.js
 @ ../node_modules/@theia/languages/lib/browser/language-client-services.js
 @ ../node_modules/@theia/languages/lib/browser/languages-frontend-module.js
 @ ./src-gen/frontend/index.js

ERROR in ../node_modules/vscode-languageclient/lib/codeConverter.js
Module not found: Error: Can't resolve 'vscode' in '/Users/kdassharma1/Documents/GitHub/ToolChain/theia/node_modules/vscode-languageclient/lib'
 @ ../node_modules/vscode-languageclient/lib/codeConverter.js 7:13-30
 @ ../node_modules/vscode-languageclient/lib/client.js
 @ ../node_modules/monaco-languageclient/lib/monaco-language-client.js
 @ ../node_modules/monaco-languageclient/lib/index.js
 @ ../node_modules/@theia/languages/lib/browser/language-client-services.js
 @ ../node_modules/@theia/languages/lib/browser/languages-frontend-module.js
 @ ./src-gen/frontend/index.js

ERROR in ../node_modules/vscode-languageclient/lib/protocolConverter.js
Module not found: Error: Can't resolve 'vscode' in '/Users/kdassharma1/Documents/GitHub/ToolChain/theia/node_modules/vscode-languageclient/lib'
 @ ../node_modules/vscode-languageclient/lib/protocolConverter.js 7:13-30
 @ ../node_modules/vscode-languageclient/lib/client.js
 @ ../node_modules/monaco-languageclient/lib/monaco-language-client.js
 @ ../node_modules/monaco-languageclient/lib/index.js
 @ ../node_modules/@theia/languages/lib/browser/language-client-services.js
 @ ../node_modules/@theia/languages/lib/browser/languages-frontend-module.js
 @ ./src-gen/frontend/index.js

ERROR in ../node_modules/vscode-languageclient/lib/progressPart.js
Module not found: Error: Can't resolve 'vscode' in '/Users/kdassharma1/Documents/GitHub/ToolChain/theia/node_modules/vscode-languageclient/lib'
 @ ../node_modules/vscode-languageclient/lib/progressPart.js 7:17-34
 @ ../node_modules/vscode-languageclient/lib/client.js
 @ ../node_modules/monaco-languageclient/lib/monaco-language-client.js
 @ ../node_modules/monaco-languageclient/lib/index.js
 @ ../node_modules/@theia/languages/lib/browser/language-client-services.js
 @ ../node_modules/@theia/languages/lib/browser/languages-frontend-module.js
 @ ./src-gen/frontend/index.js

ERROR in ../node_modules/vscode-languageclient/lib/protocolCompletionItem.js
Module not found: Error: Can't resolve 'vscode' in '/Users/kdassharma1/Documents/GitHub/ToolChain/theia/node_modules/vscode-languageclient/lib'
 @ ../node_modules/vscode-languageclient/lib/protocolCompletionItem.js 7:13-30
 @ ../node_modules/vscode-languageclient/lib/codeConverter.js
 @ ../node_modules/vscode-languageclient/lib/client.js
 @ ../node_modules/monaco-languageclient/lib/monaco-language-client.js
 @ ../node_modules/monaco-languageclient/lib/index.js
 @ ../node_modules/@theia/languages/lib/browser/language-client-services.js
 @ ../node_modules/@theia/languages/lib/browser/languages-frontend-module.js
 @ ./src-gen/frontend/index.js

ERROR in ../node_modules/vscode-languageclient/lib/protocolDocumentLink.js
Module not found: Error: Can't resolve 'vscode' in '/Users/kdassharma1/Documents/GitHub/ToolChain/theia/node_modules/vscode-languageclient/lib'
 @ ../node_modules/vscode-lan
guageclient/lib/protocolDocumentLink.js 7:13-30
 @ ../node_modules/vscode-languageclient/lib/codeConverter.js
 @ ../node_modules/vscode-languageclient/lib/client.js
 @ ../node_modules/monaco-languageclient/lib/monaco-language-client.js
 @ ../node_modules/monaco-languageclient/lib/index.js
 @ ../node_modules/@theia/languages/lib/browser/language-client-services.js
 @ ../node_modules/@theia/languages/lib/browser/languages-frontend-module.js
 @ ./src-gen/frontend/index.js

ERROR in ../node_modules/vscode-languageclient/lib/protocolCodeLens.js
Module not found: Error: Can't resolve 'vscode' in '/Users/kdassharma1/Documents/GitHub/ToolChain/theia/node_modules/vscode-languageclient/lib'
 @ ../node_modules/vscode-languageclient/lib/protocolCodeLens.js 7:13-30
 @ ../node_modules/vscode-languageclient/lib/codeConverter.js
 @ ../node_modules/vscode-languageclient/lib/client.js
 @ ../node_modules/monaco-languageclient/lib/monaco-language-client.js
 @ ../node_modules/monaco-languageclient/lib/index.js
 @ ../node_modules/@theia/languages/lib/browser/language-client-services.js
 @ ../node_modules/@theia/languages/lib/browser/languages-frontend-module.js
 @ ./src-gen/frontend/index.js


    at /Users/kdassharma1/Documents/GitHub/ToolChain/theia/node_modules/execa/index.js:236:11
    at processTicksAndRejections (internal/process/task_queues.js:94:5)
(node:55227) 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(). (rejection id: 6)
(node:55227) [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.
error Command failed with exit code 1.

These are our package.json files:

theia/package.json

{
  "private": true,
  "scripts": {
    "prepare": "lerna run prepare && yarn download:plugins",
    "rebuild:browser": "theia rebuild:browser",
    "rebuild:electron": "theia rebuild:electron",
    "download:plugins": "theia download:plugins"
  },
  "devDependencies": {
    "lerna": "2.4.0"
  },
  "workspaces": [
    "optimizer", "browser-app", "electron-app", "convertor", "visualiser"
  ],
  "theiaPluginsDir": "plugins",
  "theiaPlugins": {
    "vscode-builtin-debug-auto-launch": "https://open-vsx.org/api/vscode/debug-auto-launch/1.44.2/file/vscode.debug-auto-launch-1.44.2.vsix",
    "vscode-builtin-merge-conflict": "https://open-vsx.org/api/vscode/merge-conflict/1.44.2/file/vscode.merge-conflict-1.44.2.vsix",
    "vscode-builtin-ms-python": "https://open-vsx.org/api/ms-python/python/2020.8.101144/file/ms-python.python-2020.8.101144.vsix",
    "vscode-builtin-theme-abyss": "https://open-vsx.org/api/vscode/theme-abyss/1.44.2/file/vscode.theme-abyss-1.44.2.vsix",
    "vscode-builtin-theme-defaults": "https://open-vsx.org/api/vscode/theme-defaults/1.44.2/file/vscode.theme-defaults-1.44.2.vsix",
    "vscode-builtin-theme-kimbie-dark": "https://open-vsx.org/api/vscode/theme-kimbie-dark/1.44.2/file/vscode.theme-kimbie-dark-1.44.2.vsix",
    "vscode-builtin-theme-monokai": "https://open-vsx.org/api/vscode/theme-monokai/1.44.2/file/vscode.theme-monokai-1.44.2.vsix",
    "vscode-builtin-theme-monokai-dimmed": "https://open-vsx.org/api/vscode/theme-monokai-dimmed/1.44.2/file/vscode.theme-monokai-dimmed-1.44.2.vsix",
    "vscode-builtin-theme-quietlight": "https://open-vsx.org/api/vscode/theme-quietlight/1.44.2/file/vscode.theme-quietlight-1.44.2.vsix",
    "vscode-builtin-theme-red": "https://open-vsx.org/api/vscode/theme-red/1.44.2/file/vscode.theme-red-1.44.2.vsix",
    "vscode-builtin-theme-solarized-dark": "https://open-vsx.org/api/vscode/theme-solarized-dark/1.44.2/file/vscode.theme-solarized-dark-1.44.2.vsix",
    "vscode-builtin-theme-tomorrow-night-blue": "https://open-vsx.org/api/vscode/theme-tomorrow-night-blue/1.44.2/file/vscode.theme-tomorrow-night-blue-1.44.2.vsix",
    "vscode-builtin-icon-theme-seti": "https://open-vsx.org/api/vscode/vscode-theme-seti/1.44.2/file/vscode.vscode-theme-seti-1.44.2.vsix",
    "vscode-references-view": "https://open-vsx.org/api/ms-vscode/references-view/0.0.47/file/ms-vscode.references-view-0.0.47.vsix"
  }
}

theia/electron-app/package.json:

{
  "private": true,
  "name": "electron-app",
  "main": "src-gen/frontend/electron-main.js",
  "version": "0.0.0",
  "dependencies": {
    "@theia/core": "latest",
    "@theia/editor": "latest",
    "@theia/electron": "latest",
    "@theia/filesystem": "latest",
    "@theia/languages": "latest",
    "@theia/markers": "latest",
    "@theia/messages": "latest",
    "@theia/monaco": "latest",
    "@theia/navigator": "latest",
    "@theia/preferences": "latest",
    "@theia/process": "latest",
    "@theia/terminal": "latest",
    "@theia/workspace": "latest",
    "@theia/plugin-ext": "latest",
    "@theia/plugin-ext-vscode": "latest",
    "@theia/callhierarchy": "latest",
    "@theia/console": "latest",
    "@theia/debug": "latest",
    "@theia/editor-preview": "latest",
    "@theia/file-search": "latest",
    "@theia/getting-started": "latest",
    "@theia/git": "latest",
    "@theia/json": "latest",
    "@theia/keymaps": "latest",
    "@theia/metrics": "latest",
    "@theia/mini-browser": "latest",
    "@theia/outline-view": "latest",
    "@theia/output": "latest",
    "@theia/plugin-dev": "latest",
    "@theia/preview": "latest",
    "@theia/scm": "latest",
    "@theia/scm-extra": "latest",
    "@theia/search-in-workspace": "latest",
    "@theia/task": "latest",
    "@theia/typehierarchy": "latest",
    "@theia/userstorage": "latest",
    "@theia/variable-resolver": "latest",
    "@theia/vsx-registry": "latest",
    "optimizer": "0.0.0",
    "convertor": "0.0.0",
    "visualiser": "0.0.0"
  },
  "devDependencies": {
    "@theia/cli": "latest",
    "electron-rebuild": "^1.11.0"
  },
  "scripts": {
    "prepare": "theia build --mode development",
    "start": "theia start --plugins=local-dir:../plugins",
    "watch": "theia build --watch --mode development"
  },
  "theia": {
    "target": "electron"
  }
}

To build, we are using:

cd theia/
yarn upgrade
yarn rebuild:electron
cd electron-app/
yarn start

System Information:

Node version: v12.14.1
npm version: v6.13.4
Yarn: v1.7.0

@kaustav-aarish you are making use of many deprecated extensions which will certainly cause you issues.
These extensions do not have latest versions which are compatible with other extensions causing a version mismatch.

@vince-fugnitto,

Thanks! Is there are a log of all the extensions which are deprecated following the upgrade to 1.5.0?

@kaustav-aarish there is the changelog, but you can also see the example application or theia-apps to see extensions which are not deprecated:

Fixing the deprecated extensions is a good start to resolving your current issues.

1 Like

Personally, I used https://github.com/theia-ide/theia-apps/blob/master/theia-full-docker/latest.package.json to check for all dependencies that have a latest version and compared it with my dependency list.
Changelog, unfortunately, doesn’t list all the deprecated dependencies in one place.

1 Like

@mnaglic it is generally displayed as part of the breaking changes of each release, such as for @theia/languages: https://github.com/eclipse-theia/theia/blob/master/CHANGELOG.md#1_4_0_deprecate_languages

I open to any suggestions on how we can make the changelog better and more user friendly :slight_smile:

@vince-fugnitto,

Build works with the updated dependencies, however, I’m stuck on this screen during startup:

With the following log:

yarn run v1.22.4
$ theia start --plugins=local-dir:../plugins
(electron) 'allowRendererProcessReuse' is deprecated and will be removed.
root INFO Configuration directory URI: 'file:///Users/kdassharma1/.theia'
root WARN Backend MetricsBackendApplicationContribution.configure is slow, took: 142.4 ms
root WARN Backend MetricsBackendApplicationContribution.onStart is slow, took: 142.4 ms
root INFO Configuring to accept webviews on '.+.webview..+' hostname.
root WARN The directory referenced by local-dir:/Users/kdassharma1/.theia/plugins does not exist.
root INFO Theia app listening on http://localhost:52195.
root INFO PluginTheiaDirectoryHandler: accepting plugin with path /Users/kdassharma1/.theia/extensions/ms-python.python-2020.5.1
root INFO Resolved "ms-python.python-2020.5.1" to a VS Code extension "python@2020.5.1" with engines: { vscode: '^1.43.0' }
root INFO PluginTheiaDirectoryHandler: accepting plugin with path /Users/kdassharma1/Documents/GitHub/ToolChain/theia/plugins/vscode-builtin-debug-auto-launch
root INFO Resolved "vscode-builtin-debug-auto-launch" to a VS Code extension "debug-auto-launch@1.44.2" with engines: { vscode: '^1.5.0' }
root INFO PluginTheiaDirectoryHandler: accepting plugin with path /Users/kdassharma1/Documents/GitHub/ToolChain/theia/plugins/vscode-builtin-icon-theme-seti
root INFO Resolved "vscode-builtin-icon-theme-seti" to a VS Code extension "vscode-theme-seti@1.44.2" with engines: { vscode: '*' }
root INFO PluginTheiaDirectoryHandler: accepting plugin with path /Users/kdassharma1/Documents/GitHub/ToolChain/theia/plugins/vscode-builtin-merge-conflict
root INFO Resolved "vscode-builtin-merge-conflict" to a VS Code extension "merge-conflict@1.44.2" with engines: { vscode: '^1.5.0' }
root INFO PluginTheiaDirectoryHandler: accepting plugin with path /Users/kdassharma1/Documents/GitHub/ToolChain/theia/plugins/vscode-builtin-ms-python
root INFO Resolved "vscode-builtin-ms-python" to a VS Code extension "python@2020.5.1" with engines: { vscode: '^1.43.0' }
root INFO PluginTheiaDirectoryHandler: accepting plugin with path /Users/kdassharma1/Documents/GitHub/ToolChain/theia/plugins/vscode-builtin-python
root INFO Resolved "vscode-builtin-python" to a VS Code extension "python@1.44.2" with engines: { vscode: '*' }
root INFO PluginTheiaDirectoryHandler: accepting plugin with path /Users/kdassharma1/Documents/GitHub/ToolChain/theia/plugins/vscode-builtin-theme-abyss
root INFO Resolved "vscode-builtin-theme-abyss" to a VS Code extension "theme-abyss@1.44.2" with engines: { vscode: '*' }
root INFO PluginTheiaDirectoryHandler: accepting plugin with path /Users/kdassharma1/Documents/GitHub/ToolChain/theia/plugins/vscode-builtin-theme-defaults
root INFO Resolved "vscode-builtin-theme-defaults" to a VS Code extension "theme-defaults@1.44.2" with engines: { vscode: '*' }
root INFO PluginTheiaDirectoryHandler: accepting plugin with path /Users/kdassharma1/Documents/GitHub/ToolChain/theia/plugins/vscode-builtin-theme-kimbie-dark
root INFO Resolved "vscode-builtin-theme-kimbie-dark" to a VS Code extension "theme-kimbie-dark@1.44.2" with engines: { vscode: '*' }
root INFO PluginTheiaDirectoryHandler: accepting plugin with path /Users/kdassharma1/Documents/GitHub/ToolChain/theia/plugins/vscode-builtin-theme-monokai
root INFO Resolved "vscode-builtin-theme-monokai" to a VS Code extension "theme-monokai@1.44.2" with engines: { vscode: '*' }
root INFO PluginTheiaDirectoryHandler: accepting plugin with path /Users/kdassharma1/Documents/GitHub/ToolChain/theia/plugins/vscode-builtin-theme-monokai-dimmed
root INFO Resolved "vscode-builtin-theme-monokai-dimmed" to a VS Code extension "theme-monokai-dimmed@1.44.2" with engines: { vscode: '*' }
root INFO PluginTheiaDirectoryHandler: accepting plugin with path /Users/kdassharma1/Documents/GitHub/ToolChain/theia/plugins/vscode-builtin-theme-quietlight
root INFO Resolved "vscode-builtin-theme-quietlight" to a VS Code extension "theme-quietlight@1.44.2" with engines: { vscode: '*' }
root INFO PluginTheiaDirectoryHandler: accepting plugin with path /Users/kdassharma1/Documents/GitHub/ToolChain/theia/plugins/vscode-builtin-theme-red
root INFO Resolved "vscode-builtin-theme-red" to a VS Code extension "theme-red@1.44.2" with engines: { vscode: '*' }
root INFO PluginTheiaDirectoryHandler: accepting plugin with path /Users/kdassharma1/Documents/GitHub/ToolChain/theia/plugins/vscode-builtin-theme-solarized-dark
root INFO Resolved "vscode-builtin-theme-solarized-dark" to a VS Code extension "theme-solarized-dark@1.44.2" with engines: { vscode: '*' }
root INFO PluginTheiaDirectoryHandler: accepting plugin with path /Users/kdassharma1/Documents/GitHub/ToolChain/theia/plugins/vscode-builtin-theme-tomorrow-night-blue
root INFO Resolved "vscode-builtin-theme-tomorrow-night-blue" to a VS Code extension "theme-tomorrow-night-blue@1.44.2" with engines: { vscode: '*' }
root INFO PluginTheiaDirectoryHandler: accepting plugin with path /Users/kdassharma1/Documents/GitHub/ToolChain/theia/plugins/vscode-references-view
root INFO Resolved "vscode-references-view" to a VS Code extension "references-view@0.0.47" with engines: { vscode: '^1.40.0' }
root INFO Deploying backend plugin "python@2020.5.1" from "/Users/kdassharma1/.theia/extensions/ms-python.python-2020.5.1/extension/out/client/extension"
root INFO Deploying backend plugin "debug-auto-launch@1.44.2" from "/Users/kdassharma1/Documents/GitHub/ToolChain/theia/plugins/vscode-builtin-debug-auto-launch/extension/dist/extension"
root INFO Deploying backend plugin "vscode-theme-seti@1.44.2" from "/Users/kdassharma1/Documents/GitHub/ToolChain/theia/plugins/vscode-builtin-icon-theme-seti/extension"
root INFO Deploying backend plugin "merge-conflict@1.44.2" from "/Users/kdassharma1/Documents/GitHub/ToolChain/theia/plugins/vscode-builtin-merge-conflict/extension/dist/extension"
root INFO Deploying backend plugin "python@1.44.2" from "/Users/kdassharma1/Documents/GitHub/ToolChain/theia/plugins/vscode-builtin-python/extension/dist/pythonMain"
root INFO Deploying backend plugin "theme-abyss@1.44.2" from "/Users/kdassharma1/Documents/GitHub/ToolChain/theia/plugins/vscode-builtin-theme-abyss/extension"
root INFO Deploying backend plugin "theme-defaults@1.44.2" from "/Users/kdassharma1/Documents/GitHub/ToolChain/theia/plugins/vscode-builtin-theme-defaults/extension"
root INFO Deploying backend plugin "theme-kimbie-dark@1.44.2" from "/Users/kdassharma1/Documents/GitHub/ToolChain/theia/plugins/vscode-builtin-theme-kimbie-dark/extension"
root INFO Deploying backend plugin "theme-monokai@1.44.2" from "/Users/kdassharma1/Documents/GitHub/ToolChain/theia/plugins/vscode-builtin-theme-monokai/extension"
root INFO Deploying backend plugin "theme-monokai-dimmed@1.44.2" from "/Users/kdassharma1/Documents/GitHub/ToolChain/theia/plugins/vscode-builtin-theme-monokai-dimmed/extension"
root INFO Deploying backend plugin "theme-quietlight@1.44.2" from "/Users/kdassharma1/Documents/GitHub/ToolChain/theia/plugins/vscode-builtin-theme-quietlight/extension"
root INFO Deploying backend plugin "theme-red@1.44.2" from "/Users/kdassharma1/Documents/GitHub/ToolChain/theia/plugins/vscode-builtin-theme-red/extension"
root INFO Deploying backend plugin "theme-solarized-dark@1.44.2" from "/Users/kdassharma1/Documents/GitHub/ToolChain/theia/plugins/vscode-builtin-theme-solarized-dark/extension"
root INFO Deploying backend plugin "theme-tomorrow-night-blue@1.44.2" from "/Users/kdassharma1/Documents/GitHub/ToolChain/theia/plugins/vscode-builtin-theme-tomorrow-night-blue/extension"
root INFO Deploying backend plugin "references-view@0.0.47" from "/Users/kdassharma1/Documents/GitHub/ToolChain/theia/plugins/vscode-references-view/extension/dist/extension"
root INFO Deploy plugins list took: 246.9 ms

I followed “Breaking Changes” on https://github.com/eclipse-theia/theia/blob/master/CHANGELOG.md#1_4_0_deprecate_languages and it appears the only relevant deprecated dependency is @theia/filesystem, but removing that causes the same issue?

@kaustav-aarish just for your own information the @theia/filesystem extension is not deprecated and it is used by other extensions so it will be pulled in the end. Do you happen to have your package.json and steps when building and starting the application?

@vince-fugnitto, I see, I will put @theia/filesystem back. With regards to the package.json and steps, they’re listed in the first post, unless you’re referring to something else?

@kaustav-aarish I’m mostly wondering what the package.json consists of following the updates you made.

@vince-fugnitto,

Oh yes ofcourse, these are the updated package.json files:

  • theia/package.json:
{
  "private": true,
  "scripts": {
    "prepare": "lerna run prepare && yarn download:plugins",
    "rebuild:browser": "theia rebuild:browser",
    "rebuild:electron": "theia rebuild:electron",
    "download:plugins": "theia download:plugins"
  },
  "devDependencies": {
    "lerna": "2.4.0"
  },
  "workspaces": [
    "optimizer",
    "browser-app",
    "electron-app",
    "convertor",
    "visualiser"
  ],
  "theiaPluginsDir": "plugins",
  "theiaPlugins": {
    "vscode-builtin-debug-auto-launch": "https://open-vsx.org/api/vscode/debug-auto-launch/1.44.2/file/vscode.debug-auto-launch-1.44.2.vsix",
    "vscode-builtin-merge-conflict": "https://open-vsx.org/api/vscode/merge-conflict/1.44.2/file/vscode.merge-conflict-1.44.2.vsix",
    "vscode-builtin-ms-python": "https://open-vsx.org/api/ms-python/python/2020.8.101144/file/ms-python.python-2020.8.101144.vsix",
    "vscode-builtin-theme-abyss": "https://open-vsx.org/api/vscode/theme-abyss/1.44.2/file/vscode.theme-abyss-1.44.2.vsix",
    "vscode-builtin-theme-defaults": "https://open-vsx.org/api/vscode/theme-defaults/1.44.2/file/vscode.theme-defaults-1.44.2.vsix",
    "vscode-builtin-theme-kimbie-dark": "https://open-vsx.org/api/vscode/theme-kimbie-dark/1.44.2/file/vscode.theme-kimbie-dark-1.44.2.vsix",
    "vscode-builtin-theme-monokai": "https://open-vsx.org/api/vscode/theme-monokai/1.44.2/file/vscode.theme-monokai-1.44.2.vsix",
    "vscode-builtin-theme-monokai-dimmed": "https://open-vsx.org/api/vscode/theme-monokai-dimmed/1.44.2/file/vscode.theme-monokai-dimmed-1.44.2.vsix",
    "vscode-builtin-theme-quietlight": "https://open-vsx.org/api/vscode/theme-quietlight/1.44.2/file/vscode.theme-quietlight-1.44.2.vsix",
    "vscode-builtin-theme-red": "https://open-vsx.org/api/vscode/theme-red/1.44.2/file/vscode.theme-red-1.44.2.vsix",
    "vscode-builtin-theme-solarized-dark": "https://open-vsx.org/api/vscode/theme-solarized-dark/1.44.2/file/vscode.theme-solarized-dark-1.44.2.vsix",
    "vscode-builtin-theme-tomorrow-night-blue": "https://open-vsx.org/api/vscode/theme-tomorrow-night-blue/1.44.2/file/vscode.theme-tomorrow-night-blue-1.44.2.vsix",
    "vscode-builtin-icon-theme-seti": "https://open-vsx.org/api/vscode/vscode-theme-seti/1.44.2/file/vscode.vscode-theme-seti-1.44.2.vsix",
    "vscode-references-view": "https://open-vsx.org/api/ms-vscode/references-view/0.0.47/file/ms-vscode.references-view-0.0.47.vsix"
  },
  "dependencies": {
    "@theia/node-pty": "0.9.0-theia.6",
    "find-git-repositories": "0.1.3",
    "nsfw": "1.2.9"
  }
}

  • theia/electron-app/package.json:
{
  "private": true,
  "name": "electron-app",
  "main": "src-gen/frontend/electron-main.js",
  "version": "0.0.0",
  "dependencies": {
    "@theia/callhierarchy": "latest",
    "@theia/console": "latest",
    "@theia/core": "latest",
    "@theia/cpp-debug": "latest",
    "@theia/debug": "latest",
    "@theia/editor": "latest",
    "@theia/editor-preview": "latest",
    "@theia/file-search": "latest",
    "@theia/filesystem": "latest",
    "@theia/getting-started": "latest",
    "@theia/git": "latest",
    "@theia/keymaps": "latest",
    "@theia/markers": "latest",
    "@theia/messages": "latest",
    "@theia/metrics": "latest",
    "@theia/mini-browser": "latest",
    "@theia/monaco": "latest",
    "@theia/navigator": "latest",
    "@theia/outline-view": "latest",
    "@theia/output": "latest",
    "@theia/plugin": "latest",
    "@theia/plugin-ext": "latest",
    "@theia/plugin-ext-vscode": "latest",
    "@theia/preferences": "latest",
    "@theia/preview": "latest",
    "@theia/process": "latest",
    "@theia/scm": "latest",
    "@theia/search-in-workspace": "latest",
    "@theia/task": "latest",
    "@theia/terminal": "latest",
    "@theia/typehierarchy": "latest",
    "@theia/userstorage": "latest",
    "@theia/variable-resolver": "latest",
    "@theia/vsx-registry": "latest",
    "@theia/workspace": "latest",
    "optimizer": "0.0.0",
    "convertor": "0.0.0",
    "electron": "^10.1.1",
    "visualiser": "0.0.0"
  },
  "devDependencies": {
    "@theia/cli": "latest",
    "electron": "latest",
    "@theia/electron": "1.5.0",
    "electron-rebuild": "^2.0.1"
  },
  "scripts": {
    "prepare": "theia build --mode development",
    "start": "theia start --plugins=local-dir:../plugins",
    "watch": "theia build --watch --mode development"
  },
  "theia": {
    "target": "electron"
  }
}

Another point that could potentially be useful for debugging was that, upon solely using the dependencies listed on https://github.com/theia-ide/theia-apps/blob/master/theia-full-docker/latest.package.json, and using the build specified in the first post, it still prompted me to get electron, which is why it is added.

Unable to find electron's version number, either install it or specify an explicit version

Error: Unable to find electron's version number, either install it or specify an explicit version
    at /Users/kdassharma1/Documents/GitHub/ToolChain/theia/electron-app/node_modules/electron-rebuild/lib/src/cli.js:89:19
    at Generator.next (<anonymous>)
    at fulfilled (/Users/kdassharma1/Documents/GitHub/ToolChain/theia/electron-app/node_modules/electron-rebuild/lib/src/cli.js:6:58)

Try to add "@theia/electron": "latest", to theia/electron-app/package.json.

@vince-fugnitto Thanks for responding! Yes, as you pointed out, changelog lists the deprecated extensions in the breaking changes section. However, it seems not all of the extensions are always listed? For instance, in this post you mentioned that @theia/cpp is also deprecated and should be removed, but searching through the changelog I couldn’t find a message that it’s deprecated in breaking changes.

But that’s not a big issue - the thing is, even though some extension is deprecated, it will still work in that version (my project built fine with @theia/languages and @theia/json until I upgraded to 1.5.0). My suggestion would be to make a more prominent note of which extensions should definitely be removed if the user upgrades to the new version of Theia. Something like: “These extensions have been deprecated in the previous release and should no longer be in your dependency list if you upgrade to this version” or something like that. The idea here being that users should be warned that their builds might fail unless they remove those dependencies.

What do you think?

P.S. This thread of conversation maybe strays too far away from the original poster’s question so if you feel that it should be removed/moved somewhere else to keep the original thread clean, I’m fine with that :slight_smile:

@mnaglic I’ll keep it in mind for the future thank you! For @theia/cpp it is not explicitly listed in the changelog since this extension is not part of the repository. Furthermore, it states that all language extensions are deprecated in favour of using vscode extensions instead.

Please feel free to open a separate discussion or issue with ways we can improve the changelog :slight_smile: