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

Config files/directories don't get generated #144

Closed
AceofSpades5757 opened this issue May 14, 2022 · 7 comments
Closed

Config files/directories don't get generated #144

AceofSpades5757 opened this issue May 14, 2022 · 7 comments
Labels
area: backend Internal enhancements type: bug Something isn't working

Comments

@AceofSpades5757
Copy link

Describe the bug:

In step 3, from the README, it says that the default configuration paths get generated, but that wasn't the case when running it on Windows 10. Instead, this is what I get below.

Configuration not found. Create a config file at 'C:\Users\ME\AppData\Roaming\twt\config.toml', and see 'https://github.com/Xithrius/twitch-tui/blob/main/default-config.toml' for an example configuration.

To Reproduce:

  1. Install twt using cargo install.
  2. Run twt in the terminal, from README step 3.
  3. Go to APPDATA to get to configurations, given the twt directory.

The directory and config file(s) isn't there. I checked all the directories in my ~/AppData, just in case and found nothing. Even checked ~/.config, although this is a Windows machine so there shouldn't be anything there.

Expected behavior:

I expected a directory at %APPDATA%\twt (PowerShell: $env:APPDATA\twt).

Screenshots:

System:

  • Twitch-tui version: 1.6.0
  • Operating System: Windows 10 Pro - Version 10.0.19044 Build 19044
  • Terminal: Windows Terminal
  • Shell: PowerShell

Additional context:
Add any other context about the problem here.

I use the same context on Linux machines, which is why I have directories like ~/.config.

@github-actions
Copy link

Thank you for the issue! This issue will be addressed in a reasonable amount of time.

@Xithrius
Copy link
Owner

Xithrius commented May 14, 2022

I should be able to fix this within the hour or so. Time to make a Windows VM. Thanks for the issue!

@Xithrius Xithrius added type: bug Something isn't working area: backend Internal enhancements labels May 14, 2022
@Xithrius
Copy link
Owner

Xithrius commented May 14, 2022

Sorry, took me a while to set up my VM, but I just realized the issue is to do with your version.

The main branch is the latest branch, which is currently in alpha and is unstable. 1.6.0 does not support auto-generation. The 1.6.0 README looks like this.

If you'd like the latest release (as of this date), you can install it through cargo install twitch-tui --version "2.0.0-alpha.3"

I'm not sure why I decided to develop the alpha on the main branch such a long time ago, since on other projects that's not what I do.

@Xithrius
Copy link
Owner

If upgrading the crate fixed the problem, please close this issue. Have a good one!

@AceofSpades5757
Copy link
Author

I should have thought of that. I've run into this problem before. The directions from the stable version worked out just fine, thanks!

The alpha version actually has its own problem, although it did create the twt config directory where I expected it to be. I copied the stderr below in case it'll help you later.

thread 'main' panicked at 'called `Result::unwrap()` on an `Err` value: Os { code: 2, kind: NotFound, message: "The system cannot find the file specified." }', C:\Users\ME\.cargo\registry\src\github.com-1ecc6299db9ec823\twitch-tui-2.0.0-alpha.3\src\handlers\config.rs:120:63

@Xithrius
Copy link
Owner

Oh dear. I'll be sure to fix that up as well.

@Xithrius
Copy link
Owner

Xithrius commented May 26, 2022

I can see why the file wasn't copied. The binary doesn't contain the config template, for reasons that should've been obvious to me at first sight.

Time to modify this line to instead fetch from GitHub.

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

No branches or pull requests

2 participants