getflywheel / local-cli

CLI for Local, the #1 local WordPress development tool
https://localwp.com
33 stars 9 forks source link

GraphQL connection info not found #2

Open DarkChris86 opened 3 years ago

DarkChris86 commented 3 years ago

Hey,

I found the following problem. Am I miss something? The Local (v5.9.8) is running at my side , but I've got this error message:

local-cli --help Local CLI =========

VERSION @getflywheel/local-cli/0.0.5 win32-x64 node-v14.15.0

USAGE $ local-cli [COMMAND] COMMANDS help display help for local-cli list-sites list all Local sites start-site start a Local site and all of its services stop-site stop a Local site and all of its services

PS E:\Local...>local-cli list-sites Error: GraphQL connection info not found. Please ensure that Local is running.

runebakjacobsen commented 3 years ago

It currently looks like there is only support for macOS. I am not sure where Local saves the connection info on Windows. But what I can tell from get-connection-info.ts it uses the macOS path.

Using something like process.platform here to check the OS and use the corresponding path would probably solve the issue.

ethanclevenger91 commented 3 years ago

Looks like it also doesn't support WSL.

mwmdev commented 3 years ago

Same problem here with Linux (Ubuntu)

philipjohn commented 2 years ago

Just tried this myself on Pop! OS (also Linux) and get the same result.

dsnid3r commented 2 years ago

It currently looks like there is only support for macOS. I am not sure where Local saves the connection info on Windows. But what I can tell from get-connection-info.ts it uses the macOS path.

This does appear to be the issue, upon a quick search of my Ubuntu/WSL drive I did find this same file in \wsl.localhost\Ubuntu\home\USERNAME.config\Local I'm not familiar with untildify so I need to read up on it to see if I can just change this file location and things will work or not.

pieter-groenendijk commented 10 months ago

Im running Nobara (Fedora based linux). Here the file was located in "home/%USERNAME%/.config/Local/". I just changed this myself to get it working!