Acidham Posted March 11, 2020 Posted March 11, 2020 (edited) Alfred workfow to search, expore and open VSCode workspaces. Requirements Python 3 VSCode Setup Define path (workspaces_home) where VSCode workspaces are stored. The workflow also supports subdirectories in VSCode Workspace folder Set workspaces_home e.g. to /Users/user/vscode-workspaces Download on Git Edited March 12, 2020 by Acidham
cands Posted March 13, 2020 Posted March 13, 2020 This seems useful, but I get the error ERROR: VSCode Workspace Explorer[Script Filter] Code 127: env: python3: No such file or directory I realize that it is likely due to that Python 3 is not the deafult version in macOS (using version 10.14.6). I have Python 3 installed in some different environments using Anaconda, but I don't know how to get Python 3 as the default version used by macOS. Any tips how this can be fixed?
Acidham Posted March 13, 2020 Author Posted March 13, 2020 I am not experienced with Anaconda but the shebang in list.py points to python 3: #!/usr/bin/env python3 you may change that. I found following article: https://docs.anaconda.com/anaconda/user-guide/tasks/integration/python-path/ Let me know if this helps...
Giesskanne Posted April 8, 2022 Posted April 8, 2022 Hello, after yesterday's update to Mac OS 12.3.1, the VSCode Workspace Explorer workflow is failing. Error message: Quote Unable to run task! Reason: Couldn't posix_spawn: error 2 The external script may not exist, or doesn't have execute (+x) permissions. Related Workflow Info... Name: 'VSCode Workspace Explorer' Folder: ... Alfred is up to date (4.6.4). I checked the rights in the control panel and reassigned them. I have uninstalled and reinstalled the workflow. No improvement. All my attempts to get the workflow working again have failed so far and I don't know what to do. All best Martin
vitor Posted April 11, 2022 Posted April 11, 2022 @Giesskanne When making a request or a bug report pertaining to a specific workflow, please do not open a new thread. While it may seem like a new thread gives your problem visibility, in truth it fragments the discussion and makes it less likely the author and users of the workflow (the people who can help) will see it. I’ve moved your post to the Workflow’s thread.
Acidham Posted April 11, 2022 Author Posted April 11, 2022 I agree to @vitor better is to use the Forum or GIT issues to file a problem: https://github.com/Acidham/alfred-vscode-workspace-explorer The error comes due to the OS changes from Apple around python. I updated the workflow on git. Let me know if it works.
xilopaint Posted April 11, 2022 Posted April 11, 2022 Is there any difference between this workflow and this other one?
Giesskanne Posted April 13, 2022 Posted April 13, 2022 (edited) On 4/11/2022 at 3:11 PM, vitor said: @Giesskanne When making a request or a bug report pertaining to a specific workflow, please do not open a new thread. While it may seem like a new thread gives your problem visibility, in truth it fragments the discussion and makes it less likely the author and users of the workflow (the people who can help) will see it. I’ve moved your post to the Workflow’s thread. Hi Vitor, as a newbie I did not know this rule. Rather, I had thought that I had to open a new thread for a new problem so that another thread would not become offtopic or lead to confusion. Please excuse my mistake. Edited April 13, 2022 by Giesskanne vitor 1
Giesskanne Posted April 13, 2022 Posted April 13, 2022 On 4/11/2022 at 4:49 PM, Acidham said: The error comes due to the OS changes from Apple around python. I updated the workflow on git. Let me know if it works. I have reinstalled Python as told in Python 2 and macOS Monterey. Unfortunately without success. But your update on git did it. Now the workflow is running fine again. Thank you very much! All best Martin
vitor Posted April 13, 2022 Posted April 13, 2022 10 minutes ago, Giesskanne said: Hi Vitor, as a newbie I did not know this rule. Rather, I had thought that I had to open a new thread for a new problem so that another thread would not become offtopic or lead to confusion. Please excuse my mistake. No harm done. Just please take it into consideration for future posts. I certainly understand you logic, but doing it this way (all posts relating to a Workflows in their own thread) ends up being more effective to everyone. Thank you for understanding. 10 minutes ago, Giesskanne said: But your update on git did it. Now the workflow is running fine again. That’s the correct approach. When there’s an official update, reinstalling Python 2 no longer applies to that specific Workflow.
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now