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

error[E0599]: no method named add_from_folder found for struct ThemeSet in the current scope #122

Closed
piavgh opened this issue Dec 26, 2021 · 3 comments

Comments

@piavgh
Copy link

piavgh commented Dec 26, 2021

Hi @dtolnay ,

I tried to install cargo-expand on my computer but I got this issue

Screen Shot 2021-12-26 at 10 21 51 PM

error[E0599]: no method named `add_from_folder` found for struct `ThemeSet` in the current scope

Do you know how to fix this? Thanks

This is my environment:

  • Mac OS Monterey 12.1
  • rustup 1.24.3 (ce5817a94 2021-05-31)
  • rustc 1.59.0-nightly (51e8031e1 2021-12-25)
@taiki-e
Copy link

taiki-e commented Dec 26, 2021

I think this is the same issue as sharkdp/bat#1991, and can be worked around by installing using the --locked flag.

@dtolnay
Copy link
Owner

dtolnay commented Dec 26, 2021

Closing in favor of trishume/syntect#402.

@dtolnay dtolnay closed this as completed Dec 26, 2021
@piavgh
Copy link
Author

piavgh commented Dec 27, 2021

Thank you guys. I use cargo install --locked cargo-expand and it works

Repository owner locked and limited conversation to collaborators Jan 31, 2022
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants