Giter VIP home page Giter VIP logo

Comments (6)

vadistic avatar vadistic commented on April 28, 2024 4

@guledali I'm really sorry for late reply.

What do mean add to your PATH?

I just meant that you need make sure watchman localisation is on PATH environmental variable for your system/ user

Straight from watchman docs:

Extract the zip file and make sure that watchman.exe is located in a directory that is in your PATH.

Quick instructions for imo the quickest way to do it:

  1. So you put watchman directory in C:\Users\USERNAME\AppData\Local\ (so watchman.exe is in C:\Users\USERNAME\AppData\Local\watchman\watchman.exe)
  2. Open PowerShell as Administrator
  3. Add directory to PATH env variable by using setx path "%path%;C:\Users\USERNAME\AppData\Local\watchman"
  4. You can check that it was added: $ENV:PATH
  5. And that watchman is found: watchman -v

Voilà!

//EDIT
And btw. my first reply was misleading - unfortunately graphql-languege-service is using watchman, and so all the extensions 😢

from vscode-graphql.

MIKI0N avatar MIKI0N commented on April 28, 2024 2

Quick instructions for imo the quickest way to do it:

1. So you put watchman directory in `C:\Users\USERNAME\AppData\Local\` (so `watchman.exe` is in `C:\Users\USERNAME\AppData\Local\watchman\watchman.exe`)

2. Open PowerShell as Administrator

3. Add directory to PATH env variable by using `setx path "%path%;C:\Users\USERNAME\AppData\Local\watchman"`

4. You can check that it was added: `$ENV:PATH`

5. And that watchman is found: `watchman -v`

Voilà!

@vadistic Your instructions worked, but also replaced all the custom directories that were in the User Path variable with the system Path directories. As a result, I started to have issues while installing or reinstalling node modules with npm (like when installing a module, it would finish successfully, but node couldn't find it later).

I needed to restore my computer to a point before I did everything you said in order to fix the issue.

I'm pretty sure it wasn't your intention, but be more careful with what you suggest to people. There's always going to be people that follow instructions or tutorials without first verifying what it truly does (as me, in this case).

from vscode-graphql.

vadistic avatar vadistic commented on April 28, 2024

I think you mixed up GraphQL extensions. I think you are trying to use this one. AFAIK vscode-graphql by Prisma does not require watchman 😃

(Btw. To install watchman - just download the zip, extract it somewhere - i.e to C:\Users\USERNAME\AppData\Local\ & add to your PATH)

from vscode-graphql.

guledali avatar guledali commented on April 28, 2024

I don't need the watchman and I don't have that other plugin installed, just prisma one

So when I hover over (title: String!)

screenshot 97

Is this all the package plugin does also go to definition support not working.

I do notice that it highlights the code if I hold CTRL and click on some definition.

from vscode-graphql.

guledali avatar guledali commented on April 28, 2024

@vadistic Installing watchman C:\Users\USERNAME\AppData\Local\ & add to your PATH)

What do mean add to your PATH? I actually navigated to that PATH put the watchman.exe file their and it still didn't work.

from vscode-graphql.

acao avatar acao commented on April 28, 2024

watchman is no longer required for the language server, and thus for this extension!

enjoy windows users! if you have any other issues with paths/etc, please open a new ticket!

from vscode-graphql.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.