Hi,
We want to package some plugins with our Theia IDE at build time (we package plugins into .vsix files beforehand).
We use the following as a guide: https://github.com/theia-ide/theia-apps/tree/master/theia-electron
This works with a Mac build on a Mac machine. However, the Linux build process does not copy the packages anywhere within the /dist
folder and the plugins do not exist upon launching the executable. The executable looks at /home/.theia/extensions
instead for its plugins. I assumed the following lines in the .yml file would handle the copying:
extraResources:
- from: plugins
to: app/plugins
Note that this is only an issue when using electron-builder
. When running yarn start
the application successfully loads plugins from the /plugins folder. It seems to me that this is simply an issue of not copying the plugins when building.
Any idea why might be having this problem on Linux but not on Mac?
I’m posting out entire versions below in case they might help:
"dependencies": {
"@theia/electron": "^1.5.0",
"@theia/callhierarchy": "^1.5.0",
"@theia/console": "^1.5.0",
"@theia/core": "^1.5.0",
"@theia/debug": "^1.5.0",
"@theia/editor": "^1.5.0",
"@theia/editor-preview": "^1.5.0",
"@theia/file-search": "^1.5.0",
"@theia/filesystem": "^1.5.0",
"@theia/getting-started": "^1.5.0",
"@theia/git": "^1.5.0",
"@theia/keymaps": "^1.5.0",
"@theia/markers": "^1.5.0",
"@theia/messages": "^1.5.0",
"@theia/metrics": "^1.5.0",
"@theia/mini-browser": "^1.5.0",
"@theia/monaco": "^1.5.0",
"@theia/navigator": "^1.5.0",
"@theia/outline-view": "^1.5.0",
"@theia/output": "^1.5.0",
"@theia/plugin-dev": "^1.5.0",
"@theia/plugin-ext": "^1.5.0",
"@theia/plugin-ext-vscode": "^1.5.0",
"@theia/plugin-metrics": "^1.5.0",
"@theia/preferences": "^1.5.0",
"@theia/preview": "^1.5.0",
"@theia/process": "^1.5.0",
"@theia/scm": "^1.5.0",
"@theia/scm-extra": "^1.5.0",
"@theia/search-in-workspace": "^1.5.0",
"@theia/task": "^1.5.0",
"@theia/terminal": "^1.5.0",
"@theia/typehierarchy": "^1.5.0",
"@theia/userstorage": "^1.5.0",
"@theia/variable-resolver": "^1.5.0",
"@theia/vsx-registry": "^1.5.0",
"@theia/workspace": "^1.5.0",
},
"devDependencies": {
"@theia/cli": "^1.5.0",
"electron-builder": "^22.4.1",
"bufferutil": "4",
"utf-8-validate": "5"
},
We also use yarn
version 1.22.5
and node 12.14.1
. The Linux version is Ubuntu 16.04 LTS