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

To open vs code project folders, When i write code & space it is not showing me folders. #12

Closed
gnande opened this issue Feb 5, 2022 · 13 comments · Fixed by #13
Closed

Comments

@gnande
Copy link

gnande commented Feb 5, 2022

To open vs code project folders, When i write code & space it is not showing me folders.
It is suddenly crashed.

vsccode error

vsccode error1

@gnande
Copy link
Author

gnande commented Feb 5, 2022

@mattalexx Could you please help on above issue ?

@mattalxndr
Copy link
Collaborator

I would need to see the logs. Stop the ulauncher service and run ulauncher -v in a terminal. Then try to get the error to show up. Then paste that here.

@gnande
Copy link
Author

gnande commented Feb 5, 2022

ulog.txt

@mattalexx Please check attached log file. Thanks.

@mattalxndr
Copy link
Collaborator

Hm, that's still not enough for me to go on. Could you run the command again, but this time add --dev?

ulauncher -v --dev

cc @plibither8 <-Creator/maintainer

@gnande
Copy link
Author

gnande commented Feb 5, 2022

ulauncherlog.txt

@mattalexx Please check the new log file ulauncherlog.txt

@mattalxndr
Copy link
Collaborator

Sorry, I'm not sure what "WS Client error" means. Haven't seen that before.

@gnande
Copy link
Author

gnande commented Feb 5, 2022

I am getting this error only on vs code. If I do "fd " Or "ff " then it is working fine.
But for vs code, if I do "code " it is not populating project folder list. Initially it was working but then for vs code it is crashing now.
@mattalexx @plibither8

@plibither8
Copy link
Owner

Hmm interesting. Can't make out much from the logs. Could you share your recent projects file? You'll probably find it in ~/.config/Code/storage.json.

@gnande
Copy link
Author

gnande commented Feb 5, 2022

vscode.txt

Please find attached file. @plibither8

@mattalxndr
Copy link
Collaborator

@gnande One thing you might try is to revert PR #6. You will lose support for workspaces and also for VSCodium, but you might see the problem disappear.

That would look something like this if you're on Linux:

cd ~/.local/share/ulauncher/extensions
mv com.github.plibither8.ulauncher-vscode-recent com.github.plibither8.ulauncher-vscode-recent_bak
git clone git@github.com:plibither8/ulauncher-vscode-recent.git com.github.plibither8.ulauncher-vscode-recent
cd com.github.plibither8.ulauncher-vscode-recent
git reset --hard 4abe46f8975434c9a4d0aac5e3cfc2ceb4e035fb

I haven't tested this, I'm just trying to remember how the steps went. But these are the docs I followed:

https://docs.ulauncher.io/en/latest/extensions/intro.html

@xddxdd
Copy link

xddxdd commented Feb 6, 2022

Hi, I also encountered this error, after updating VS Code (official binary version) from 1.63.2 to 1.64.0.

The relevant error in ulauncher -v --dev is:

om.github.plibither8.ulauncher-vscode-recent | 2022-02-06 00:34:04,651 | DEBUG | ulauncher.api.client.Client: on_message() | Incoming event KeywordQueryEvent
Traceback (most recent call last):
  File "/usr/lib/python3.10/site-packages/ulauncher/api/client/Client.py", line 54, in on_message
    self.extension.trigger_event(event)
  File "/usr/lib/python3.10/site-packages/ulauncher/api/client/Extension.py", line 52, in trigger_event
    action = listener.on_event(event, self)
  File "/home/lantian/.local/share/ulauncher/extensions/com.github.plibither8.ulauncher-vscode-recent/main.py", line 125, in on_event
    items.extend(extension.get_ext_result_items(argument))
  File "/home/lantian/.local/share/ulauncher/extensions/com.github.plibither8.ulauncher-vscode-recent/main.py", line 82, in get_ext_result_items
    recents = self.code.get_recents()
  File "/home/lantian/.local/share/ulauncher/extensions/com.github.plibither8.ulauncher-vscode-recent/main.py", line 46, in get_recents
    openedPaths = storage["openedPathsList"]["entries"]
KeyError: 'openedPathsList'

Reverting #6 does not fix the problem.

@mattalxndr
Copy link
Collaborator

I just updated VSCodium and I'm also seeing the problem. Give me a bit and I'll see what I can do to fix it.

@mattalxndr
Copy link
Collaborator

@plibither8 Would you give my PR a test? Or anyone could, I suppose.

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

Successfully merging a pull request may close this issue.

4 participants