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

Not saving settings #5

Closed
ghost opened this issue May 8, 2020 · 15 comments
Closed

Not saving settings #5

ghost opened this issue May 8, 2020 · 15 comments

Comments

@ghost
Copy link

ghost commented May 8, 2020

Hi, sorry to bother you

My save settings wont work. I've put in the Key File Path and clicked save, it then autmatically puts the saved token path as the tokens.json but when I click the save button nothing happens. It wont work work, please please help as it was working on my other PC.

@Melvin-Abraham
Copy link
Owner

Melvin-Abraham commented May 8, 2020

Hey, @minkyman1 👋. Try this to get more information on what's happening:

Make sure you have cloned the latest commit of this project, after which you must execute the line npm start in your terminal to start the application.

In the settings, under "DEVELOPER TOOLS" section, click the "Open DevTools" option. Then, click "Save". You might get an error on the devTools console which will let you know the actual problem. Share the devTools log here, if you still need help... 😊

@ghost
Copy link
Author

ghost commented May 8, 2020

Hey thanks for the quick reply! Sorry, Let me go through what I have done:

Note : I used the installer, I didn’t build it myself

Made gmail account and setup all the API stuff, downloaded the key file. Opened the assistant and went to settings, put the key file in the path (I didn’t get given a token file from the API setup). Then I clicked saved, it asked for me if I would like to automatically put the same path for token, I clicked yes. Then I clicked save but nothing happened.

Firewall and anti virus are both on, not sure but that might be the problem? Nvm, Turned that of still not working

@ghost
Copy link
Author

ghost commented May 8, 2020

yUT7MI84Dp

@ghost
Copy link
Author

ghost commented May 8, 2020

Tried re install and install it, same thing

@Melvin-Abraham
Copy link
Owner

@minkyman1 Check if you have "Google Assistant" directory in %APPDATA%.

@ghost
Copy link
Author

ghost commented May 8, 2020

image

Yes in roaming not in local @Melvin-Abraham

@ghost
Copy link
Author

ghost commented May 8, 2020

Its rlly annoying as it was working fine on my other PC and its so usefull

@Melvin-Abraham
Copy link
Owner

@minkyman1, I think if you clone the repo and run it with the devTools open, it would be easy to pinpoint any exceptions that may occur while you are saving the settings.

Just clone, run and share the logs :)
Let me know if you have any problem in any of the steps

@ghost
Copy link
Author

ghost commented May 8, 2020

How do you run with DevTools? Ive installed with npm and run it. still same

@Melvin-Abraham
Copy link
Owner

Melvin-Abraham commented May 8, 2020

How do you run with DevTools? Ive installed with npm and run it. still same

Open devTools with Ctrl + Shift + I and then click "Save" in settings. You will see the error logs.

@ghost
Copy link
Author

ghost commented May 8, 2020

vbu4i6nn1N

Aha! Sorry for asking so many questions :(

@ghost
Copy link
Author

ghost commented May 8, 2020

image

@ghost
Copy link
Author

ghost commented May 8, 2020

How would I fix this?

@Melvin-Abraham
Copy link
Owner

@minkyman1, Thank you for the contribution. The issue is being caused since "config" is not initialised in your case as it is your first time running the program and so initialisation is halted but in the settings, the "isNew" option inside "config" is being updated while saving.

This issue will soon be fixed.

So, for the time being, you can create config.json inside %APPDATA%/Google Assistant and paste the following inside it:

{ "keyFilePath": "", "savedTokensPath": "", "forceNewConversation": false, "enableAudioOutput": true, "enableMicOnContinousConversation": true, "startAsMaximized": false, "launchAtStartup": true, "alwaysCloseToTray": true, "enablePingSound": true, "enableAutoScaling": true, "enableMicOnStartup": false, "hotkeyBehavior": "launch+mic", "theme": "dark" }

Finally, relaunch the assistant.

@Melvin-Abraham Melvin-Abraham added the 🐛 bug Something isn't working label May 8, 2020
@ghost
Copy link
Author

ghost commented May 8, 2020

Cheers so much! Finally working!

@ghost ghost closed this as completed May 8, 2020
@Melvin-Abraham Melvin-Abraham removed the 🐛 bug Something isn't working label May 9, 2020
Melvin-Abraham added a commit that referenced this issue May 9, 2020
- Added `suggestion-parent` inside `suggestion-area` by default
Melvin-Abraham pushed a commit that referenced this issue Feb 28, 2021
This issue was closed.
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

1 participant