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

Compile error from str_strip when compiling on Ubuntu 20.04 #28

Closed
kwoot opened this issue Oct 27, 2020 · 3 comments
Closed

Compile error from str_strip when compiling on Ubuntu 20.04 #28

kwoot opened this issue Oct 27, 2020 · 3 comments
Labels
bug Something isn't working

Comments

@kwoot
Copy link

kwoot commented Oct 27, 2020

Describe the bug
Compile error trying to compile on Ubuntu 20.04

error[E0658]: use of unstable library feature 'str_strip': newly added
--> src/app.rs:394:47
|
394 | self.context_name = self.context_name.strip_suffix('\n').unwrap_or("").to_string();
| ^^^^^^^^^^^^
|
= note: see issue #67302 rust-lang/rust#67302 for more information

error[E0658]: use of unstable library feature 'str_strip': newly added
--> src/app.rs:401:51
|
401 | self.context_filter = self.context_filter.strip_suffix('\n').unwrap_or("").to_string();
| ^^^^^^^^^^^^
|
= note: see issue #67302 rust-lang/rust#67302 for more information

To Reproduce

Steps to reproduce the behavior:

git clone https://github.com/kdheepak/taskwarrior-tui.git
cd taskwarrior-tui/
cargo build --release
rustc --explain E0658
cargo -V
rustc -V
Both at version 1.43.0

Environment (please complete the following information):

  • Operating System:
  • Installation:
  • taskwarrior-tui version:
taskwarrior-tui --version
  • task version:
task --version

Additional context and information

@kwoot kwoot added the bug Something isn't working label Oct 27, 2020
@kdheepak
Copy link
Owner

Closing since it is a duplicate of #27.

@MiChatz
Copy link

MiChatz commented Nov 12, 2020

It wasn't so obvious the solutions for me.
I will just add some steps in case of anybody else looking for the solution to this issue.

  1. uninstall rustc sudo apt remove rustc
  2. reinstall rust curl https://sh.rustup.rs -sSf | bash -s -- -y --no-modify-path
  3. add path to your .bashrc export PATH="$PATH:$HOME/.cargo/bin"
  4. rebuild

@kdheepak
Copy link
Owner

Thanks for adding the detailed instructions. rustup also should have worked I believe.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

3 participants