Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix tree editor dependency for Theia 1.18+ #118

Merged
merged 1 commit into from
Oct 13, 2021

Conversation

lucas-koehler
Copy link
Contributor

Use next instead of latest version as latest is currently not published regularly.
The current latest version is not compatible with Theia 1.18 while the next version is.

Signed-off-by: Lucas Koehler [email protected]

Use next instead of latest version as latest is currently not published regularly.
The current latest version is not compatible with Theia 1.18 while the next version is.

Signed-off-by: Lucas Koehler <[email protected]>
@@ -200,7 +200,7 @@ module.exports = class TheiaExtension extends Base {
this.params.dependencies = '';
this.params.browserDevDependencies = '';
if (this.params.extensionType === ExtensionType.TreeEditor) {
this.params.dependencies = `,\n "@theia/editor": "${this.params.theiaVersion}",\n "@theia/filesystem": "${this.params.theiaVersion}",\n "@theia/workspace": "${this.params.theiaVersion}",\n "@eclipse-emfcloud/theia-tree-editor": "latest",\n "uuid": "^3.3.2"`;
this.params.dependencies = `,\n "@theia/editor": "${this.params.theiaVersion}",\n "@theia/filesystem": "${this.params.theiaVersion}",\n "@theia/workspace": "${this.params.theiaVersion}",\n "@eclipse-emfcloud/theia-tree-editor": "next",\n "uuid": "^3.3.2"`;
Copy link
Member

Choose a reason for hiding this comment

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

I believe using a mismatch of latest and next will cause issues (especially for inversify) as it can potentially pull different versions of the same extension (ex: @theia/core).

In addition, if a user passes --theia-version on the command line while generating the extension it will not work well either:

$ yo theia-extension --theia-version=1.17.0

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Thanks for the quick feedback @vince-fugnitto :)

I agree that this is not an optimal solution but more of a temporary solution until there are regular numbered releases (or RCs) of the tree editor. As of now there aren't any and the latest tag is currently not updated because there was no release CQ done, yet.

In the current state, the tree extension does not work at all with Theia 1.18.0 (or any Theia version since the switch to ECMA2017).
For the moment, I see two possible solutions: Set it to next or set it to a specific version (0.7.0-next.0324b32).

In addition, if a user passes --theia-version on the command line while generating the extension it will not work well either:

I think this will be a general problem even if using latest because the user can always put in a Theia version that is too old. To fix this, we'd need to pass in or derive a separate version for the tree. I think this is a separate issue to the current one.

What do you think?

Copy link
Contributor

Choose a reason for hiding this comment

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

I also think this reveals a general issue: #119

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 fine with the changes as a temporary solution 👍
We may run into problems with the mismatch of latest and next but it fixes an issue today.

@JonasHelming JonasHelming merged commit aa8e56b into eclipse-theia:master Oct 13, 2021
@vince-fugnitto
Copy link
Member

@JonasHelming did you need me to publish a new version of the generator with the fix? Is there anything else you'd like fixed before we are to do another release?

@lucas-koehler lucas-koehler deleted the fix-tree-extension branch October 13, 2021 13:36
@JonasHelming
Copy link
Contributor

Yes, please, the only open PR will need more time to fix upstream issues

@vince-fugnitto
Copy link
Member

Yes, please, the only open PR will need more time to fix upstream issues

@JonasHelming a new version v0.1.27 was published, feel free to try it out! 👍
Note that v0.1.26 did not work as the publishing tool reported a false positive that it already exists, so I just bumped to the next minor version but this is transparent to end-users.

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

Successfully merging this pull request may close these issues.

3 participants