-
Notifications
You must be signed in to change notification settings - Fork 2.5k
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 remote support in packaged apps #13584
Conversation
cc @jfaltermeier This should fix eclipse-theia/theia-ide#350. Can you test it? |
@msujew Yes I can test it tomorrow. |
Hi, so I've built a local next version based on your branch and consumed it in Blueprint. With this I ran into the same issue as before (eclipse-theia/theia-ide#350 (comment)) But I don't know how the remote package works exactly, so maybe with above "fix"/hack it is not expected to work. |
@jfaltermeier Thanks for testing. Looking closer at the error, I believe that I misunderstood the source of the issue. Sorry for that :/ I'll try to debug this myself later to see what goes wrong. |
@jfaltermeier Alright, found the issue. When the application is packaged, the Note that it still required the other change for me, since otherwise the |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
What it does
Closes #13140
Currently. the
ApplicationPackage
service is bound this way:However, the
projectPath
remains undefined, until the CLI app lifecycle has completed. This means that theApplicationPackage
may already be injected into other services with itsprojectPath
undefined. This seems to be the case in eclipse-theia/theia-ide#350 and in #13140.This change changes the way the
projectPath
is set. Instead of waiting until the CLI lifecycle completes, we set theBackendApplicationPath
as soon as possible (at js load time). It didn't really make a lot of sense for theprojectPath
to be a CLI setting anyway, given that we use it to find our own code.How to test
Review checklist
Reminder for reviewers