Open akashbdj opened 5 years ago
Can you post a link to the golang-graphql project? I'll have a look
Hi @kumarharsh,
Thanks for quick response. I can't share the project; it's an internal tool. Here's what we are using: https://github.com/graph-gophers/graphql-go
Project structure looks like:
cmd/
main.go
resolvers/
x.go
y.go
schema/
query.gql
mutation.gql
types/
a.gql
b.gql
.gqlconfig
What's surprising here is: extension worked for a minute. I was able to click on types
and it took me to the definition. I was also able to see the linting errors. But it stopped working; i didn't change anything.
Let me know if you need any other information. Thanks!
@akashbdj I suspect it's something to do with watchman - try shutting down the watchman server and then open vscode again - do watchman shutdown-server
, and then just reload your vscode window via Reload Window which will cause the plugin to get reinitialized and kick-start watchman automatically.
I already tried it after looking at other issues. I also tried updating watchman, it doesn't work in either case.
This is the message i'm seeing in vscode output console:
[Info - 4:35:13 PM] NODE_PATH value is: /usr/local/lib/node_modules
[Info - 4:35:14 PM] Module '@playlyfe/gql' loaded from: /usr/local/lib/node_modules/@playlyfe/gql/lib/index.js
Also, it's red indicating some sort of an error.
Hi,
I'm trying to use this extension in golang-graphql project. It doesn't work as expected. Also, I'm seeing this issue on vscode
output
tab:What's working: Syntax Highlighting What's not working: Go to definition, linting, etc.
Since this is a golang project, I don't have
package.json
. So I installed@playlyfe/gql
as a global package and then pointed to it."graphqlForVSCode.nodePath": "/usr/local/lib/node_modules"
Here's what the
.gqlconfig
looks like:What should I do to make it work?
Thanks for your time, Akash