Skip to content
This repository was archived by the owner on Oct 5, 2022. It is now read-only.

theia-electron: include default plugins #299

Merged
merged 1 commit into from
Feb 13, 2020

Conversation

paul-marechal
Copy link
Collaborator

Use a set of VS Code builtin extensions and some non-builtins to provide
more functionality to the Electron example IDE.

Signed-off-by: Paul Maréchal paul.marechal@ericsson.com

@lmcbout
Copy link
Contributor

lmcbout commented Feb 7, 2020

In package.json, do we want to put in
script :"start": "theia start --plugins=local-dir:./plugins",

Also in plugins section the dependencies of the builtins, add:
vscode-eslint

Also, why not using the electron-builder latest version, "electron-builder": "^22.0.1" (version 22.3.2), it will create the AppImage like

    Theia-0.3.17.AppImage

instead of (quote and space in the name)

  'Theia 0.3.17.AppImage'

@paul-marechal
Copy link
Collaborator Author

paul-marechal commented Feb 7, 2020

@spoenemann @akosyakov I only tested that plugins worked when bundled as an AppImage on Ubuntu. I would need help from people on other platforms to check if it works there too.

edit: looks like it works when I install the .deb as well.

@lmcbout I added the start script, even though the real value is in the bundles. I also fixed the name of the AppImage without updating electron-builder, I didn't want to fight with a CQ.

@lmcbout
Copy link
Contributor

lmcbout commented Feb 7, 2020

electron-buider has some fixes with latest version, we should aim to update it even it requires a CQ.
What do you think?

@vince-fugnitto
Copy link
Member

electron-buider has some fixes with latest version, we should aim to update it even it requires a CQ.
What do you think?

There is no CQ required for this repo since it is not under the Eclipse Foundation.

Something like updating electron-builder can be done in a subsequent pull-request since it is an enhancement. I'd like to unblock this pull-request so we can continue with updating the necessary images and removing deprecated extensions.

@paul-marechal
Copy link
Collaborator Author

paul-marechal commented Feb 7, 2020

There is no CQ required for this repo

Ok, updated electron-builder. Will remove the commit, I am having issues with it and I don't think it is useful right-now.

@marcdumais-work
Copy link
Member

Tested the AppImage on Ubuntu. @vince-fugnitto could you quickly validate that the plugins are loaded correctly on Windows and Mac?

@marcdumais-work
Copy link
Member

@marechal-p While you're there, I think the 0.3.17 app version in package.json does not mean much - it was probably the Theia version at the time this app was created, but we do not want to step it every month. I suggest we change it to e.g. 0.0.1 or such. We should probably do this for all images.

(note: the Theia platform version is already reflected in the tag when we publish on dockerhub)

@vince-fugnitto
Copy link
Member

vince-fugnitto commented Feb 10, 2020

Tested the AppImage on Ubuntu. @vince-fugnitto could you quickly validate that the plugins are loaded correctly on Windows and Mac?

I verified and it did not work correctly on mac or win.
After performing the updates 33c0027, the electron build worked correctly and the plugins were successfully included/loaded.

Update: Note that on master, the mac build also does not work correctly.

Copy link
Member

@vince-fugnitto vince-fugnitto left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I did a pass on what should be removed/added in the example.
In our list of dependencies we should remove the following:

  • @theia/merge-conflicts

Please also see my other comments regarding the java plugins not necessary in this example.

@vince-fugnitto vince-fugnitto force-pushed the mp/electron-plugins branch 2 times, most recently from b724024 to e868f50 Compare February 11, 2020 16:37
@akosyakov
Copy link
Member

code-wise it looks good to me

Use a set of VS Code builtin extensions and some non-builtins to provide
more functionality to the Electron example IDE.

Signed-off-by: Paul Maréchal <paul.marechal@ericsson.com>
Copy link
Member

@vince-fugnitto vince-fugnitto left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I'm happy with the latest changes 👍
I verified on macOS that the build is successfully and I am able to consume the listed plugins.

@paul-marechal paul-marechal merged commit 3b0dda9 into theia-ide:master Feb 13, 2020
@paul-marechal paul-marechal deleted the mp/electron-plugins branch February 13, 2020 16:09
Comment on lines +8 to +10
process.env.THEIA_PLUGINS = [
process.env.THEIA_PLUGINS, `local-dir:${path.resolve(os.homedir(), '.theia', 'plugins')}`,
].filter(Boolean).join(',')
Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@akosyakov IIRC when I tested this I was installing unpacked extensions there without any issues.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants