vscode-liquid
vscode-liquid copied to clipboard
Error when doing the quickstart
When I follow the quickstart, and try to run Liquid: Generate .liquidrc File
I get the following error:
command 'liquid.liquidrc' not found
Any idea why this happens, or what I can do to find out?
Hey @TheOddler, what's your directory structure look like?
- Try restarting VS Code
- Make sure you're running the command from within a root directory
See the below example from a Jekyll project:
Also make sure you've added the file root directory as a workspace.
Would you like the functionality to work from a non-workspace? This could be accomplished by using window.activeTextEditor @panoply thoughts?
@colonelrascals worth integrating to prevent this from occurring for non-workspace users.
Yea, I don't think I'm using a workspace for this, just opened the folder in vscode. So that's probably the problem indeed. Would be nice if it worked in non-workspaces too.
Edit: Can confirm that it does work in a workspace. I simply saved the folder as a workspace and now the command does work.
@colonelrascals I'll implement this over the weekend unless you want to?
@panoply I won't be able to make any meaningful progress until later this week.
What is the current progress on this?
@TheOddler It's coming. Next version will have it implemented.
Awesome, thank you so much for your work!
I'm having the same issue, even when working from within a Workspace. I tried reinstalling the extension and restart VSC.. What can I do to debug?
Same here, with or without workspace. Any ideas?
Sorry this doesn't seem to be solved. Just ran through it yesterday after a fresh install from VS Marketplace…
Yes happens for me too. Seems to be back for some reason. Could you go over it again?
Same problem, workspace is saved for root folder.
Steps:
- Installed fresh VS Code.
- Saved root folder as workspace in VS Code.
- Installed a few other extensions.
- Installed Liquid.
- Command
Liquid: Generate .liquidrc File
ran properly. - Disabled Liquid while trying other extensions.
- Enabled Liquid. (Can't remember whether commands worked at this point)
- Uninstalled Liquid. Restarted VS Code. Removed .liquidrc file.
- Reinstalled Liquid.
- Command
Liquid: Generate .liquidrc File
does not run at all. All Liquid commands result in an error with format:Command 'Liquid: {{ liquid cmd name }}' resulted in an error
Liquid Extension icon/bar does not appear at the bottom of any tab.
Not sure if this is normal or not, but after uninstalling Liquid extension from VS Code, the folder@ C:\Users(username).vscode\extensions\sissel.shopify-liquid-2.3.0\ was still present.
Windows 10.
Attempted removing this folder + contents, uninstalling Liquid extension, reinstalling, and problem persisted.
Hey @TheOddler, what's your directory structure look like?
- Try restarting VS Code
- Make sure you're running the command from within a root directory
See the below example from a Jekyll project:
Restarting worked for me
Hey guys, just to keep you all in the loop.
There is an issue here that is affecting window users. Until I have time to conclude on the next major release, the workarounds are as @Cabemo referenced, by trying to restart and if that fails you can simply create a new .liquidrc
file at root and copy the JSON found here.
I am getting the error below when trying to generate a .liquidrc file following the instructions from the quickstart. I have followed the advice in this thread and created a workspace for my project as well as restarting vscode and none of that resolved the issue.
I haven't seen any updates since 2019 for this project, is it not being updated anymore? I am just wondering whether it is worth sticking with this extension or if I should use one of the few other alternatives.
Command 'Liquid: Generate a .liquidrc rule file' resulted in an error (command 'liquid.liquidrc' not found)