-
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
[@theia/application-package: 0.3.7] Building 0.3.7 based Theia application is failing #1615
Comments
Here's the package.json I'm using
|
Changing devDependencies
So I then explicitly specified all required Theia packages in our package.json, but now I'm running into an out of memory condition on the build
How do I increase the memory limit of the build? |
@jopit Not sure why this is not working. I can reproduce the issue using your package.json above. In principle I think using version 0.3.7 of these Theia extensions should have continued to work after we release 0.3.8. But I am a bit over my head in this area. It's not usually a good idea to mix extensions that are based on a different Theia release. Even if it compiles it will probably not run correctly. You might have better chance by updating all your dependencies to 0.3.8 (or ATM equivalent "latest"). When I do so, using your package.json, then executing the following commands, I get a Theia application stat start and appears to run correctly:
If you have home-made extensions in the mix, you will have to update them so they are compatible with Theia 0.3.8. |
@jopit, what are you trying to build and on which platform? I hit a similar problem when I have tried to build an electron-based Theia application. Note, in my case the problem occurred at runtime. I am not sure whether our issues are related or not.
Yes. |
Probably not. I was able to build Theia based on your
|
@kittaakos On Linux I get the same result as you (with slightly different versions of tools and minus the nifty icons):
At that point it looks like the dependencies have been revolved, but no actual application has been built?
Taking inspiration from how we build in our docker images, I then tried
Is that the correct way to build? Do you see the same? |
We are building in a docker image, using |
I noticed that I get the same error calling directly the
Trying the same with
|
Confirmed. |
I have checked-out the commit made for release When we invoke However there is a difference in the A couple of other diff: |
hummm... I was wrong about assuming the "missing" files were not part of the published npm package:
On a hunch I added an explicit dev dependency for ??? |
TL;DR: see at the bottom of this post for a work-around to make the I think I understand a bit more now. Using I think this is because our extensions define their dependencies to other Theia extensions using the "current version or higher" (i.e. After running
That's not good and it explains Even if we made the compilation work (e.g. using Given that, I wonder if it will ever reliably work to use anything other than the current version or symbolic versions Even the following minimalist example fails at runtime, I think because it pulls different, incompatible, versions of dependent Theia packages:
There might be a way I am not seeing now - I am only beginning to understand that stuff... Work around: Looking at the documentation for
|
Thanks for the workaround, it's now working. |
I'm trying to build our Theia application based on 0.3.7, but it's failing with the following error:
I'm guessing this has something to do with the release of 0.3.8 yesterday. Any help would be greatly appreciated.
The text was updated successfully, but these errors were encountered: