-
Notifications
You must be signed in to change notification settings - Fork 324
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
[full] Update node version to LTS #178
Conversation
@JesterOrNot Thanks a lot! Please test this on Theia, because Theia is:
To do so, please:
|
@jankeromnes, Yea it breaks theia, where do we go from here, the way I see it if we become more and more out of date if we leave it. |
Thanks a lot for testing it! Please request support for Node.js LTS by filing an issue against https://github.com/eclipse-theia/theia, and copy/paste the full error messages you're seeing with Node.js LTS. I agree that we should get to a point where we always ship the latest stable version of each tool in workspace-full. |
@akosyakov No, however something like RUN bash -cl "echo -e \"\nnvm use 10\" >> ~/.bashrc" Could maybe work in conjunction with the previous instruction |
FYI the
The fix is to increase that job's no-output time out, e.g. like so: workspace-images/.circleci/config.yml Line 86 in 95be4db
|
@JesterOrNot please rebase this Pull Request, and also rebase the test branch in your Theia fork and try this again. There are new |
I tried to test this again, but the
Also, many directories are added twice. While this isn't a big issue, it's not super clean and potentially makes searching for binaries a fraction of a second slower. |
But since the I.e., Gitpod is likely pulling an older |
11733f0
to
24a1ebe
Compare
FYI, we've decided to keep the hard-coded Node.js version in the The reason for keeping the hard-coded version is that the Node.js debugging extension requires This way most projects will have a convenient setup that just works (no extra step required to get Node.js LTS). It will only get a little awkward for projects who need a different Node.js version, because they will need to add this to their .gitpod.Dockerfile: FROM gitpod/workspace-full
# Install & use custom Node.js version
ENV NODE_VERSION=10.19.0
RUN bash -c ". .nvm/nvm.sh && \
nvm install ${NODE_VERSION} && \
nvm alias default ${NODE_VERSION}"`
ENV PATH=/home/gitpod/.nvm/versions/node/v${NODE_VERSION}/bin:$PATH (Note that the new hard-coded Node.js binary path should be "in front of" (i.e. "left of") the pre-existing |
Tested with jankeromnes/theia@02b0463, it works well! Required this Theia fix though: jankeromnes/theia@16d697f (which I'll need to contribute upstream) |
@jankeromnes sounds like something worth to add to Gitpod docs |
Done in eclipse-theia/theia#7404
Hmm, true. While this is awkward and "temporary" until we find a better solution, it seems to be the current "official" way to change Node.js versions. @nisarhassan12 Could you please mention the trick described in #178 (comment) about how to switch to a different Node.js version, in your upcoming "JavaScript in Gitpod" guide? |
@jankeromnes Thanks! sure. |
This seems to work very well! Tomorrow, we are about to release a Gitpod.io update that will make the Theia IDE use its own Node.js v10 binary regardless of what Node.js version is used by default in the workspace. So, assuming the deployment goes well and sticks, we will be able to merge this PR into |
bcc451a
to
e63e225
Compare
Small CircleCI hiccup with the
Should probably bump the timeout just in case. |
Awesome! |
Updates from 10.19.0 -> 12.16.1