valentinegb / bonelab-mod-manager

Keeps your installed Bonelab mods synced with your subscribed mod.io mods.
MIT License
0 stars 0 forks source link

Invalid discriminant whilst choosing authentication method #12

Closed tatatax closed 1 year ago

tatatax commented 1 year ago

when trying to log in via both mail and token, it gives an error: Found an Option discriminant that wasn't 0 or 1

valentinegb commented 1 year ago

What version are you using, and what platform?

valentinegb commented 1 year ago

I'm not able to reproduce the error you've described using v0.2.0 on Mac. Are you on Windows using the same version?

tatatax commented 1 year ago

I use windows I apologize for the long answer

tatatax commented 1 year ago

and yes I am using 0.2.0 and on version 0.1.1 there was no such thing

valentinegb commented 1 year ago

I apologize for the long answer

No worries, thank you for the info! I'm getting a virtual machine setup right now so I can debug it on Windows.

valentinegb commented 1 year ago

It took a while, but I got a Windows virtual machine setup. I downloaded the Windows asset from the v0.2.0 release and ran it, but I didn't encounter any issues. Could you please make a screen recording showing the bug?

tatatax commented 1 year ago

2023-09-06

tatatax commented 1 year ago

image

valentinegb commented 1 year ago

Try setting the RUST_BACKTRACE environment variable to 1 and then run the program and send the result. If the syntax on Windows is like the syntax on unix based machines, then you can do that by running RUST_BACKTRACE=1 ./bonelab_mod_manager.exe in a terminal while in the directory containing the program. (You can use the dir command to navigate directories in a terminal on Windows, in case you aren't familiar, like dir ./Downloads.)

tatatax commented 1 year ago

I don't quite understand if you could record a video or something like that

valentinegb commented 1 year ago

https://github.com/valentinegb/bonelab_mod_manager/assets/35977727/d1d3f1f1-96a6-420a-9e48-04e56b30f8c4

I'm not sure how helpful this'll be since I'm on macOS, but the process should be similar. You should replace cd in the video with dir.

tatatax commented 1 year ago

dir Developer/bonelab_modmanager/target/release/ writing this in windows powershell throws a dir error: Cannot find the path "C :\Users\KUVYLDA\Developer\bonelab mod _ manager\target\release\" because it does not exist. line: 1 character: 1

valentinegb commented 1 year ago

The path I went to in the video is the path to my installation, but it isn't the same as yours. You need to go to the directory that contains your bonelab_mod_manager.exe file.

tatatax commented 1 year ago

I have this file in downloads

valentinegb commented 1 year ago

Then you would probably type something like dir Downloads

tatatax commented 1 year ago

and then? I did it yesterday but I can't change anything there

valentinegb commented 1 year ago

Then try running RUST_BACKTRACE=1 ./bonelab_mod_manager.exe and use the program as you would to produce the error you reported

tatatax commented 1 year ago

PS C:\Users\КУВЫЛДА> RUST_BACKTRACE=1 ./bonelab_mod_manager.exe RUST_BACKTRACE=1: The name "RUST_BACKTRACE=1" is not recognized as the name of the cmdlet, function, script file, or program being executed. Verify that the name is spelled correctly and that the path exists and is correct, and then try again. line: 1 character: 1

valentinegb commented 1 year ago

Okay, try setx RUST_BACKTRACE "1" and then ./bonelab_mod_manager.exe

tatatax commented 1 year ago

gives it away

PS C:\Users\КУВЫЛДА> RUST_BACKTRACE=1 ./bonelab_mod_manager.exe RUST_BACKTRACE=1: имя "RUST_BACKTRACE=1" не распознается как имя выполняемого командлета, функции, файла сценария или программы. Убедитесь, что имя написано правильно и что путь существует и является правильным, а затем повторите попытку. строка: 1 символ: 1

  • RUST_BACKTRACE=1 ./bonelab_mod_manager.exe
  • Информация о категории: ObjectNotFound: (RUST_BACKTRACE=1:String) [], исключение CommandNotFoundException
  • Ошибка с полным правом : исключение CommandNotFoundException
tatatax commented 1 year ago

ok

tatatax commented 1 year ago

PS C :\Users\SOMERSAULT > setx RUST_BACKTRACE "1"

Success. The specified value is saved.

tatatax commented 1 year ago

and about the second the same

PS C:\Users\КУВЫЛДА> RUST_BACKTRACE=1 ./bonelab_mod_manager.exe RUST_BACKTRACE=1: имя "RUST_BACKTRACE=1" не распознается как имя выполняемого командлета, функции, файла сценария или программы. Убедитесь, что имя написано правильно и что путь существует и является правильным, а затем повторите попытку. строка: 1 символ: 1

  • RUST_BACKTRACE=1 ./bonelab_mod_manager.exe
  • Информация о категории: ObjectNotFound: (RUST_BACKTRACE=1:String) [], исключение CommandNotFoundException
  • Ошибка с полным правом : исключение CommandNotFoundException
tatatax commented 1 year ago

but the application has the same error

valentinegb commented 1 year ago

Don't run RUST_BACKTRACE=1 ./bonelab_mod_manager.exe, just ./bonelab_mod_manager.exe

tatatax commented 1 year ago

just ./bonelab_mod_manager.exe after dir downloads just I can't do it

valentinegb commented 1 year ago

What's the output of echo %RUST_BACKTRACE%?

tatatax commented 1 year ago

PS C:\Users\КУВЫЛДА> echo %RUST_BACKTRACE% %RUST_BACKTRACE% PS C:\Users\КУВЫЛДА>

valentinegb commented 1 year ago

What about echo $Env:RUST_BACKTRACE?

tatatax commented 1 year ago

PS C:\Users\КУВЫЛДА> echo $Env:RUST_BACKTRACE PS C:\Users\КУВЫЛДА>

valentinegb commented 1 year ago

Try setx RUST_BACKTRACE "1" & echo $Env:RUST_BACKTRACE

tatatax commented 1 year ago

PS C :\Users\SOMERSAULT > setx RUST_BACKTRACE "1"

Success. The specified value is saved. PS C :\Users\SOMERSAULT > echo $ Env: RUST _ BACKTRACE

valentinegb commented 1 year ago

setx RUST_BACKTRACE "1" & echo $Env:RUST_BACKTRACE is meant to be executed exactly as it is on one line

tatatax commented 1 year ago

PS C:\Users\КУВЫЛДА> setx RUST_BACKTRACE "1" & echo $Env:RUST_BACKTRACE строка:1 знак:25

valentinegb commented 1 year ago

Alright, at this point I'm giving up on trying to debug this lol, clearly I don't know enough about Windows to be able to What you should try to do to fix this issue for yourself is navigate to %AppData% and delete the folder called bonelab_mod_manager, then the next time you run the program it will recreate the folder

tatatax commented 1 year ago

I will try

tatatax commented 1 year ago

should I close the problem?

tatatax commented 1 year ago

lol

tatatax commented 1 year ago

this was all that had to be done

tatatax commented 1 year ago

thank you

valentinegb commented 1 year ago

Don't worry about closing the issue, just let me know if you get it working or not and I'll handle it accordingly Yeah- I'm sorry it took so long to get to this point, my goal was to find out what exactly was wrong so I could fix the code and prevent it from happening again, but oh well

valentinegb commented 1 year ago

Oh you already closed it lol, that's fine