void icon indicating copy to clipboard operation
void copied to clipboard

[Bug] Can't be able to complete onboarding

Open bariscodefxy opened this issue 6 months ago • 9 comments

  1. Start the Void Editor.

  2. Write the Gemini/OpenRouter free api keys.

  3. Try click to 'Next' button, it will alert message "Please set up at least one Chat model before moving on."

Image

I use NixOS Linux with 6.12.32 kernel and I'm trying to use current latest Void version 1.99.30039.

After a little research, found the code that cause the error: https://github.com/voideditor/void/blob/da425ab0fe34edfc3c082367edff7e05e0719b2d/src/vs/workbench/contrib/void/browser/react/src/void-onboarding/VoidOnboarding.tsx#L258-L266

There is no doubt that this problem is not caused by the feature called ‘Chat’. Since I don't know the code structure of the project, I don't have much time. I would like my problem to be solved by a maintainer/contributer.

bariscodefxy avatar Jun 13 '25 01:06 bariscodefxy

Thanks for reporting...noticed in your screenshot that the green checkmarks (next to "Chat") didn’t appear after entering your api key. That means Void didn’t assign any model to the Chat feature, which is what blocks the “Next” button from working.

You're totally right to point to const isDisabled = isFeatureNameDisabled('Chat', settingsState) and that’s the gatekeeper, but the real issue seems to be upstream here.. likely a state or model assignment issue. so even if your API key is valid, if no model ends up mapped to Chat, Void assumes setup is incomplete (or some delayed state update on nixos perhaps)

if you’re launching Void from the terminal, would it be possible to share the terminal output right after you enter the api key(s)? that’ll help confirm whether the model list is loading and whether Chat is being skipped during feature assignment. (even a short log snippet would help a lot if possible)

vrtnis avatar Jun 13 '25 22:06 vrtnis

if you’re launching Void from the terminal, would it be possible to share the terminal output right after you enter the api key(s)? that’ll help confirm whether the model list is loading and whether Chat is being skipped during feature assignment. (even a short log snippet would help a lot if possible)

Even if I start Void from the terminal, it runs itself as a background process. I can't see the log.

bariscodefxy avatar Jun 14 '25 03:06 bariscodefxy

Ok, I figured out with opening Void with --verbose --log debug flags...

That's the output when I put the Gemini API Key:

[13463:0614/065220.836844:INFO:CONSOLE(35)] "%c  ERR color: #f33 Error while encrypting the text provided to safeStorage.encryptString. Encryption is not available.: Error: Error while encrypting the text provided to safeStorage.encryptString. Encryption is not available.
    at Ku.encrypt (file:///nix/store/kx77qhznpjkvcwy7yfdfd7z9f356d0b7-void-editor-1.99.30039/resources/app/out/main.js:43:20449)
    at Object.call (file:///nix/store/kx77qhznpjkvcwy7yfdfd7z9f356d0b7-void-editor-1.99.30039/resources/app/out/main.js:33:5401)
    at pp.onPromise (file:///nix/store/kx77qhznpjkvcwy7yfdfd7z9f356d0b7-void-editor-1.99.30039/resources/app/out/main.js:31:20990)
    at pp.onRawMessage (file:///nix/store/kx77qhznpjkvcwy7yfdfd7z9f356d0b7-void-editor-1.99.30039/resources/app/out/main.js:31:20405)
    at wa.value (file:///nix/store/kx77qhznpjkvcwy7yfdfd7z9f356d0b7-void-editor-1.99.30039/resources/app/out/main.js:31:19688)
    at P._deliver (file:///nix/store/kx77qhznpjkvcwy7yfdfd7z9f356d0b7-void-editor-1.99.30039/resources/app/out/main.js:30:2937)
    at P._deliverQueue (file:///nix/store/kx77qhznpjkvcwy7yfdfd7z9f356d0b7-void-editor-1.99.30039/resources/app/out/main.js:30:3028)
    at P.fire (file:///nix/store/kx77qhznpjkvcwy7yfdfd7z9f356d0b7-void-editor-1.99.30039/resources/app/out/main.js:30:3364)
    at wa.value (file:///nix/store/kx77qhznpjkvcwy7yfdfd7z9f356d0b7-void-editor-1.99.30039/resources/app/out/main.js:28:5517)
    at P._deliver (file:///nix/store/kx77qhznpjkvcwy7yfdfd7z9f356d0b7-void-editor-1.99.30039/resources/app/out/main.js:30:2937)
    at P.fire (file:///nix/store/kx77qhznpjkvcwy7yfdfd7z9f356d0b7-void-editor-1.99.30039/resources/app/out/main.js:30:3257)
    at wa.value (file:///nix/store/kx77qhznpjkvcwy7yfdfd7z9f356d0b7-void-editor-1.99.30039/resources/app/out/main.js:28:5701)
    at P._deliver (file:///nix/store/kx77qhznpjkvcwy7yfdfd7z9f356d0b7-void-editor-1.99.30039/resources/app/out/main.js:30:2937)
    at P.fire (file:///nix/store/kx77qhznpjkvcwy7yfdfd7z9f356d0b7-void-editor-1.99.30039/resources/app/out/main.js:30:3257)
    at j (file:///nix/store/kx77qhznpjkvcwy7yfdfd7z9f356d0b7-void-editor-1.99.30039/resources/app/out/main.js:28:7980)
    at IpcMainImpl.i (file:///nix/store/kx77qhznpjkvcwy7yfdfd7z9f356d0b7-void-editor-1.99.30039/resources/app/out/main.js:33:26061)
    at IpcMainImpl.emit (node:events:518:28)
    at WebContents.<anonymous> (node:electron/js2c/browser_init:2:87043)
    at WebContents.emit (node:events:518:28)", source: vscode-file://vscode-app/nix/store/kx77qhznpjkvcwy7yfdfd7z9f356d0b7-void-editor-1.99.30039/resources/app/out/vs/workbench/workbench.desktop.main.js (35)

Same for OpenRouter API Key:

jkvcwy7yfdfd7z9f356d0b7-void-editor-1.99.30039/resources/app/out/vs/workbench/workbench.desktop.main.js (35)
[13463:0614/065223.897614:INFO:CONSOLE(35)] "%cDEBUG background: #eee; color: #888 Comments: URIs of continue on comments to add to storage .", source: vscode-file://vscode-app/nix/store/kx77qhznpjkvcwy7yfdfd7z9f356d0b7-void-editor-1.99.30039/resources/app/out/vs/workbench/workbench.desktop.main.js (35)
[13463:0614/065246.041777:INFO:CONSOLE(35)] "%cDEBUG background: #eee; color: #888 Comments: URIs of continue on comments to add to storage .", source: vscode-file://vscode-app/nix/store/kx77qhznpjkvcwy7yfdfd7z9f356d0b7-void-editor-1.99.30039/resources/app/out/vs/workbench/workbench.desktop.main.js (35)
[13463:0614/065248.505822:INFO:CONSOLE(35)] "%cDEBUG background: #eee; color: #888 Comments: URIs of continue on comments to add to storage .", source: vscode-file://vscode-app/nix/store/kx77qhznpjkvcwy7yfdfd7z9f356d0b7-void-editor-1.99.30039/resources/app/out/vs/workbench/workbench.desktop.main.js (35)
[13463:0614/065305.910962:INFO:CONSOLE(35)] "%cDEBUG background: #eee; color: #888 Comments: URIs of continue on comments to add to storage .", source: vscode-file://vscode-app/nix/store/kx77qhznpjkvcwy7yfdfd7z9f356d0b7-void-editor-1.99.30039/resources/app/out/vs/workbench/workbench.desktop.main.js (35)
[13463:0614/065323.954649:INFO:CONSOLE(35)] "%cTRACE color: #888 KeybindingService#dispatch Ctrl+V [ Will dispatch command editor.action.clipboardPasteAction ]", source: vscode-file://vscode-app/nix/store/kx77qhznpjkvcwy7yfdfd7z9f356d0b7-void-editor-1.99.30039/resources/app/out/vs/workbench/workbench.desktop.main.js (35)
[13463:0614/065323.954740:INFO:CONSOLE(35)] "%cTRACE color: #888 CommandService#executeCommand editor.action.clipboardPasteAction", source: vscode-file://vscode-app/nix/store/kx77qhznpjkvcwy7yfdfd7z9f356d0b7-void-editor-1.99.30039/resources/app/out/vs/workbench/workbench.desktop.main.js (35)
[13463:0614/065323.954794:INFO:CONSOLE(35)] "%cTRACE color: #888 Executing Command 'editor.action.clipboardPasteAction' which has 6 bound.", source: vscode-file://vscode-app/nix/store/kx77qhznpjkvcwy7yfdfd7z9f356d0b7-void-editor-1.99.30039/resources/app/out/vs/workbench/workbench.desktop.main.js (35)
[main 2025-06-14T03:53:23.962Z] [EncryptionMainService] Encrypting value...
[main 2025-06-14T03:53:23.963Z] Error: Error while encrypting the text provided to safeStorage.encryptString. Encryption is not available.
    at Ku.encrypt (file:///nix/store/kx77qhznpjkvcwy7yfdfd7z9f356d0b7-void-editor-1.99.30039/resources/app/out/main.js:43:20449)
    at Object.call (file:///nix/store/kx77qhznpjkvcwy7yfdfd7z9f356d0b7-void-editor-1.99.30039/resources/app/out/main.js:33:5401)
    at pp.onPromise (file:///nix/store/kx77qhznpjkvcwy7yfdfd7z9f356d0b7-void-editor-1.99.30039/resources/app/out/main.js:31:20990)
    at pp.onRawMessage (file:///nix/store/kx77qhznpjkvcwy7yfdfd7z9f356d0b7-void-editor-1.99.30039/resources/app/out/main.js:31:20405)
    at wa.value (file:///nix/store/kx77qhznpjkvcwy7yfdfd7z9f356d0b7-void-editor-1.99.30039/resources/app/out/main.js:31:19688)
    at P._deliver (file:///nix/store/kx77qhznpjkvcwy7yfdfd7z9f356d0b7-void-editor-1.99.30039/resources/app/out/main.js:30:2937)
    at P._deliverQueue (file:///nix/store/kx77qhznpjkvcwy7yfdfd7z9f356d0b7-void-editor-1.99.30039/resources/app/out/main.js:30:3028)
    at P.fire (file:///nix/store/kx77qhznpjkvcwy7yfdfd7z9f356d0b7-void-editor-1.99.30039/resources/app/out/main.js:30:3364)
    at wa.value (file:///nix/store/kx77qhznpjkvcwy7yfdfd7z9f356d0b7-void-editor-1.99.30039/resources/app/out/main.js:28:5517)
    at P._deliver (file:///nix/store/kx77qhznpjkvcwy7yfdfd7z9f356d0b7-void-editor-1.99.30039/resources/app/out/main.js:30:2937)
    at P.fire (file:///nix/store/kx77qhznpjkvcwy7yfdfd7z9f356d0b7-void-editor-1.99.30039/resources/app/out/main.js:30:3257)
    at wa.value (file:///nix/store/kx77qhznpjkvcwy7yfdfd7z9f356d0b7-void-editor-1.99.30039/resources/app/out/main.js:28:5701)
    at P._deliver (file:///nix/store/kx77qhznpjkvcwy7yfdfd7z9f356d0b7-void-editor-1.99.30039/resources/app/out/main.js:30:2937)
    at P.fire (file:///nix/store/kx77qhznpjkvcwy7yfdfd7z9f356d0b7-void-editor-1.99.30039/resources/app/out/main.js:30:3257)
    at j (file:///nix/store/kx77qhznpjkvcwy7yfdfd7z9f356d0b7-void-editor-1.99.30039/resources/app/out/main.js:28:7980)
    at IpcMainImpl.i (file:///nix/store/kx77qhznpjkvcwy7yfdfd7z9f356d0b7-void-editor-1.99.30039/resources/app/out/main.js:33:26061)
    at IpcMainImpl.emit (node:events:518:28)
    at WebContents.<anonymous> (node:electron/js2c/browser_init:2:87043)
    at WebContents.emit (node:events:518:28)
[13463:0614/065323.963514:INFO:CONSOLE(35)] "%cTRACE color: #888 Command 'editor.action.clipboardPasteAction' was handled by 'generic-dom'.", source: vscode-file://vscode-app/nix/store/kx77qhznpjkvcwy7yfdfd7z9f356d0b7-void-editor-1.99.30039/resources/app/out/vs/workbench/workbench.desktop.main.js (35)
[13463:0614/065323.964828:INFO:CONSOLE(35)] "%c  ERR color: #f33 Error while encrypting the text provided to safeStorage.encryptString. Encryption is not available.: Error: Error while encrypting the text provided to safeStorage.encryptString. Encryption is not available.
    at Ku.encrypt (file:///nix/store/kx77qhznpjkvcwy7yfdfd7z9f356d0b7-void-editor-1.99.30039/resources/app/out/main.js:43:20449)
    at Object.call (file:///nix/store/kx77qhznpjkvcwy7yfdfd7z9f356d0b7-void-editor-1.99.30039/resources/app/out/main.js:33:5401)
    at pp.onPromise (file:///nix/store/kx77qhznpjkvcwy7yfdfd7z9f356d0b7-void-editor-1.99.30039/resources/app/out/main.js:31:20990)
    at pp.onRawMessage (file:///nix/store/kx77qhznpjkvcwy7yfdfd7z9f356d0b7-void-editor-1.99.30039/resources/app/out/main.js:31:20405)
    at wa.value (file:///nix/store/kx77qhznpjkvcwy7yfdfd7z9f356d0b7-void-editor-1.99.30039/resources/app/out/main.js:31:19688)
    at P._deliver (file:///nix/store/kx77qhznpjkvcwy7yfdfd7z9f356d0b7-void-editor-1.99.30039/resources/app/out/main.js:30:2937)
    at P._deliverQueue (file:///nix/store/kx77qhznpjkvcwy7yfdfd7z9f356d0b7-void-editor-1.99.30039/resources/app/out/main.js:30:3028)
    at P.fire (file:///nix/store/kx77qhznpjkvcwy7yfdfd7z9f356d0b7-void-editor-1.99.30039/resources/app/out/main.js:30:3364)
    at wa.value (file:///nix/store/kx77qhznpjkvcwy7yfdfd7z9f356d0b7-void-editor-1.99.30039/resources/app/out/main.js:28:5517)
    at P._deliver (file:///nix/store/kx77qhznpjkvcwy7yfdfd7z9f356d0b7-void-editor-1.99.30039/resources/app/out/main.js:30:2937)
    at P.fire (file:///nix/store/kx77qhznpjkvcwy7yfdfd7z9f356d0b7-void-editor-1.99.30039/resources/app/out/main.js:30:3257)
    at wa.value (file:///nix/store/kx77qhznpjkvcwy7yfdfd7z9f356d0b7-void-editor-1.99.30039/resources/app/out/main.js:28:5701)
    at P._deliver (file:///nix/store/kx77qhznpjkvcwy7yfdfd7z9f356d0b7-void-editor-1.99.30039/resources/app/out/main.js:30:2937)
    at P.fire (file:///nix/store/kx77qhznpjkvcwy7yfdfd7z9f356d0b7-void-editor-1.99.30039/resources/app/out/main.js:30:3257)
    at j (file:///nix/store/kx77qhznpjkvcwy7yfdfd7z9f356d0b7-void-editor-1.99.30039/resources/app/out/main.js:28:7980)
    at IpcMainImpl.i (file:///nix/store/kx77qhznpjkvcwy7yfdfd7z9f356d0b7-void-editor-1.99.30039/resources/app/out/main.js:33:26061)
    at IpcMainImpl.emit (node:events:518:28)
    at WebContents.<anonymous> (node:electron/js2c/browser_init:2:87043)
    at WebContents.emit (node:events:518:28)", source: vscode-file://vscode-app/nix/store/kx77qhznpjkvcwy7yfdfd7z9f356d0b7-void-editor-1.99.30039/resources/app/out/vs/workbench/workbench.desktop.main.js (35)

We're sure error is:

Error while encrypting the text provided to safeStorage.encryptString.

bariscodefxy avatar Jun 14 '25 03:06 bariscodefxy

@bariscodefxy - I am using your flake until this is added to nixpkgs

I was able to resolve this by starting void with --password-store=basic following the below thread

https://github.com/voideditor/void/issues/503#issuecomment-2869211445

jcstryker avatar Jun 16 '25 22:06 jcstryker

appreciate you sharing that, super helpful!.. . seems like newer builds of electron will hang or fail silently if kwallet is disabled, especially on kde or nixos setups.

the workaround with --password-store totally makes sense here..same root cause as the encryption failures during onboarding. prob worth surfacing a warning in void if safeStorage fails so it doesn’t silently block setup.

vrtnis avatar Jun 17 '25 05:06 vrtnis

@bariscodefxy - I am using your flake until this is added to nixpkgs

I was able to resolve this by starting void with --password-store=basic following the below thread

#503 (comment)

Usually applications are not added to nixpkgs until a stable version is released. And thank you for sharing the solution. I have tried it now and it works. Should I integrate this parameter in my void flake until this problem is solved?

bariscodefxy avatar Jun 17 '25 12:06 bariscodefxy

Oh so it is due to a missing keychain provider - maybe there is a way to detect if one is present otherwise pass that value?

jcstryker avatar Jun 17 '25 13:06 jcstryker

We'd happily accept a PR for this! Thanks for the fix!

andrewpareles avatar Jun 29 '25 05:06 andrewpareles

Same issue with Void 1.4.9, Ubuntu 24.04 x86_64 - required running with void --password-store=basic

edwardcwang avatar Aug 06 '25 03:08 edwardcwang