gQuery icon indicating copy to clipboard operation
gQuery copied to clipboard

Not working in Windows

Open itswadesh opened this issue 4 years ago • 3 comments

Hi,

Unfortunatedly its not working for me in Windows. Here is my configuration

gQueryCodegen({
	schema: `http://localhost:7000/graphql`, 
	out: 'src/lib/gql', 
	gPath: '$lib/config/g', 
	debug: false
}),

itswadesh avatar Jan 24 '22 14:01 itswadesh

Issue confirmed with Windows usage. It appears that the error is coming from the Execa package used in the codegen process during file cleaning, in the cleanGq command of the plugin.ts file. The command is working for me on an Ubuntu distro (though I'm having other issues further down the pipeline) and I imagine it was written and tested on a Mac, so it's probably safe to assume that the command is acceptable for Unix based systems.

nikfp avatar Jan 25 '22 17:01 nikfp

Same to me. cleanGQ command fails on Windows. It shouldn't be difficult to implement cross-platform solution..

rzasinets avatar Jan 31 '22 23:01 rzasinets

Oh, good call. I don't have a windows computer to test on but am happy to see a pr.

stolinski avatar Mar 25 '22 16:03 stolinski