vscode-liquid icon indicating copy to clipboard operation
vscode-liquid copied to clipboard

Error when doing the quickstart

Open TheOddler opened this issue 4 years ago • 18 comments

When I follow the quickstart, and try to run Liquid: Generate .liquidrc File I get the following error:

command 'liquid.liquidrc' not found

image

Any idea why this happens, or what I can do to find out?

TheOddler avatar Jul 17 '19 15:07 TheOddler

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:

example

panoply avatar Jul 17 '19 15:07 panoply

Also make sure you've added the file root directory as a workspace.

colonelrascals avatar Jul 17 '19 15:07 colonelrascals

Would you like the functionality to work from a non-workspace? This could be accomplished by using window.activeTextEditor @panoply thoughts?

colonelrascals avatar Jul 18 '19 14:07 colonelrascals

@colonelrascals worth integrating to prevent this from occurring for non-workspace users.

panoply avatar Jul 18 '19 14:07 panoply

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.

TheOddler avatar Jul 18 '19 19:07 TheOddler

@colonelrascals I'll implement this over the weekend unless you want to?

panoply avatar Jul 19 '19 15:07 panoply

@panoply I won't be able to make any meaningful progress until later this week.

colonelrascals avatar Jul 22 '19 14:07 colonelrascals

What is the current progress on this?

TheOddler avatar Aug 14 '19 17:08 TheOddler

@TheOddler It's coming. Next version will have it implemented.

panoply avatar Aug 15 '19 15:08 panoply

Awesome, thank you so much for your work!

TheOddler avatar Aug 15 '19 18:08 TheOddler

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?

laurens94 avatar Dec 23 '19 14:12 laurens94

Same here, with or without workspace. Any ideas?

darkguy2008 avatar Feb 06 '20 15:02 darkguy2008

Sorry this doesn't seem to be solved. Just ran through it yesterday after a fresh install from VS Marketplace…

nelsonvassalo avatar Apr 20 '20 10:04 nelsonvassalo

Yes happens for me too. Seems to be back for some reason. Could you go over it again?

MenschLennart avatar Apr 25 '20 08:04 MenschLennart

Same problem, workspace is saved for root folder.

Steps:

  1. Installed fresh VS Code.
  2. Saved root folder as workspace in VS Code.
  3. Installed a few other extensions.
  4. Installed Liquid.
  5. Command Liquid: Generate .liquidrc File ran properly.
  6. Disabled Liquid while trying other extensions.
  7. Enabled Liquid. (Can't remember whether commands worked at this point)
  8. Uninstalled Liquid. Restarted VS Code. Removed .liquidrc file.
  9. Reinstalled Liquid.
  10. 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.

gamepad-coder avatar May 25 '20 18:05 gamepad-coder

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:

example

Restarting worked for me

cabemo avatar May 28 '20 23:05 cabemo

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.

panoply avatar May 29 '20 00:05 panoply

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)

elevatemystore avatar Apr 03 '21 20:04 elevatemystore

🚢 Shipped v3.0.0

This error should no longer be a thing. Take a look at readme and release notes

panoply avatar Sep 28 '22 08:09 panoply