-
Notifications
You must be signed in to change notification settings - Fork 26
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Having trouble getting this to work #8
Comments
I have the same problem. VS Code 1.12.2 Is there a repository i can clone that should work? |
Same same, completely non-functional as far as I can tell and no debug output of any kind. |
Hi guys.
You can check the operation with a sample project : $ git clone https://github.com/Quramy/ts-graphql-plugin.git
$ cd ts-graphql-plugin
$ npm install # or yarn install
$ cd e2e/project-fixture
$ code . And open // it's a dummy tag func
function gql(...args: any[]): any {}
const query = gql`
`; The above code is TypeScript valid, but invalid GraphQL query. If the plugin works, an error should be displayed at VSC's problem window:
Turn TSServer's log option on via: export TSS_LOG="-file tsserver.log -level verbose" This environment variable allows to output debug log. And you can view it with If the plugin works, the following messages are printed out at tsserver.log :
|
I had to run Code completion doesn't work, any idea what could prevent that? There doesn't seem to be a corresponding error in It would be nice if each log entry had a |
Thanks for your feedback! Sorry, I've missed writing about compile.. As you said, adding plugin prefix to log is a nice idea!
If you never mind, please give me your tsserver.log? If it's too large to put onto this comment, send it to my email address:) |
I captured
The line // it's a dummy tag func
function gql(...args: any[]): any {}
const query = gql`
|
`; When this plugin searches completion candidates, it logs |
Thanks! I did a fresh |
I can't get it to work either. |
Same here, cant get this to work, fresh clone, npm install, npm run compile , checked project fixtures maints but no highlighting, and no error in tsc console. I disabled all other grapql related extensions that i had as well as any other prettyfiers. Im happy to invest the time to fix and document this but needs some guidance. Anyone? |
Hey @Quramy. I've followed all the steps in this comment but nothing seems to be logged to Thanks for all your work you've put into this! Typescript v2.4.2 |
I've managed to make this work from the test project by ensuring I was using the local {
"typescript.tsdk": "../../node_modules/typescript/lib"
} I then opened Code from From the command palette, I selected "Typescript: Select Typescript version" and selected "Use Workspace Version". I then restarted the TS Server and it worked! 🎉 @felixfbecker @ntziolis this may solve your issues... |
@frederickfogerty Nope, sadly still same issue. I also tried the other sample project: https://github.com/Quramy/ionic-apollo-simple-app. Same result. Are you guys on Linux/Mac/Windows ? |
@ntziolis I'm on a Mac |
@frederickfogerty THX! I can now confirm that this plugin works when adding the typscript sdk path. Still trying to figure out how to migrate this to the latest version of typescript. If anyone has pointers |
This does not work for me on typescript 2.6.1 and vs code 1.18.1 I get the following output on the e2e sample project from here #8 (comment)
And no lint errors or anything showing up in vscode |
Tried with Typescript 2.8 and 2.91 on VSCode 1.23.1 I'm getting linting errors for generic syntax, but getting no completion suggestions or schema-specific linting. I'm not sure what I'm doing wrong. |
I can't tell if the plugin isn't loading or VSCode isn't picking up the completion or if my schema json is invalid. Could you possibly point me in the right direction for debugging this?
The text was updated successfully, but these errors were encountered: