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

gitpod setup fails #3386

Closed
floh96 opened this issue May 5, 2021 · 8 comments
Closed

gitpod setup fails #3386

floh96 opened this issue May 5, 2021 · 8 comments

Comments

@floh96
Copy link

floh96 commented May 5, 2021

The gitpod setup fails with

error[E0658]: use of unstable library feature 'renamed_spin_loop'
  --> /workspace/.cargo/registry/src/github.com-1ecc6299db9ec823/spinning_top-0.2.3/src/spinlock.rs:57:17
   |
57 |                 hint::spin_loop();
   |                 ^^^^^^^^^^^^^^^
   |
   = note: see issue #55002 <https://github.com/rust-lang/rust/issues/55002> for more information

error: aborting due to previous error

For more information about this error, try `rustc --explain E0658`.
error: could not compile `spinning_top`

To learn more, run the command again with --verbose.
warning: build failed, waiting for other jobs to finish...
error: failed to compile `nu v0.30.1 (/workspace/nushell)`, intermediate artifacts can be found at `/workspace/nushell/target`

The error looks similar to #3282 which was solved by updating rust to 1.51
Default rust version for gitpod is 1.51 see https://github.com/gitpod-io/workspace-images/blob/master/full/Dockerfile#L196 so should be good?
(Also the README states you need rust 1.47 or later is this correct?)

@aleybe
Copy link

aleybe commented Jun 13, 2021

I was able to resolve this in gitpod by entering this into the shell:
bash -cl "rustup default stable"

I think the default rust version is behind which is causing this error. I don't know enough about gitpod (or rust for that matter :S) to give any more of a comment on this 😂

@ijt
Copy link

ijt commented Jun 17, 2021

I'm getting this same error when running cargo install nu. Unfortunately, I don't have rustup on the box I want to run this on, and I don't have access to install it there.

@aleybe
Copy link

aleybe commented Jun 17, 2021

Are you using this inside the gitpod for nushell @ijt ?

@ijt
Copy link

ijt commented Jun 17, 2021 via email

@github-actions
Copy link

This issue is being marked stale because it has been open for 30 days without activity. If you feel that this is in error, please comment below and we will keep it marked as active.

@github-actions github-actions bot added the Stale used for marking issues and prs as stale label Jul 18, 2021
@floh96
Copy link
Author

floh96 commented Jul 18, 2021

this is still an issue

@github-actions github-actions bot removed the Stale used for marking issues and prs as stale label Jul 19, 2021
@TommasoBianchi
Copy link

I think the issue here might be related with the fact that gitpod is not rebuilding the custom Docker image on prebuilds unless the Dockerfile is changed, which leads to the usage of an old image with an outdated rust version (looks like 1.48 to me).

A way to solve this might be to make use of a gitpod init task to run rustup default stable (similarly to what @aleybe suggested, but in an automated way).

@floh96
Copy link
Author

floh96 commented Nov 11, 2021

this seems to be fixed:

🤙 This task ran as a workspace prebuild

@floh96 floh96 closed this as completed Nov 11, 2021
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

No branches or pull requests

4 participants