Conversation
jbaxleyiii
left a comment
There was a problem hiding this comment.
This looks good, I'll try it out on windows and let you know!
| filepath === process.cwd() | ||
| ? `file://${filepath}` | ||
| : `file://${parse(filepath).dir}`; | ||
| ? Uri.file(filepath) |
| }" | ||
| `; | ||
|
|
||
| exports[`client:codegen writes TypeScript global types to a custom path when globalTypesFile is set 1`] = ` |
There was a problem hiding this comment.
This was a result of muddying up, then deleting, and finally regenerating this test snap. The test is skipped, so the snap is obsolete. Side note: doesn't jest normally find these and remove them with -u?
Can totally revert this change!
|
Is there a way to apply this fix easily while waiting for the next apollo version? I'm not familiar with specifying a github url for packages belonging to a monorepo, maybe someone here knows a way to do that? |
|
What I've been doing is go into node_modules/apollo/lib/Command.js and find the 2 "file://" references and change them to "file:///" Yeah, i have to redo this every time i add or update packages as it gets overwritten. |
|
@steabert You can also use the linux subsystem for windows for now and prefix your script generation command with wsl to execute it via the shell. Works like a charm for me without having to edit any files. If you have not enabled it see here: https://docs.microsoft.com/en-us/windows/wsl/install-win10
|
|
Could this please be prioritized soon? We're holding off on upgrading to 2.0+ pending this change, which again halts further work using some new Apollo Platform features. |
* Convert "string" URIs to actual Uri objects * Don't manually build URIs, hand off to Uri constructor instead * Switch usages of path.relative to path.posix.relative
a476603 to
8fd101a
Compare
|
Wohoo @JakeDawkins ! 🙌 When can we expect this on NPM, and which version number should we look for? |
* Resolve Windows FS Issues * Convert "string" URIs to actual Uri objects * Don't manually build URIs, hand off to Uri constructor instead * QoL debug script and snapshot update * Updates snapshots * Add windows node 10 job to pipeline config
* Resolve Windows FS Issues * Convert "string" URIs to actual Uri objects * Don't manually build URIs, hand off to Uri constructor instead * QoL debug script and snapshot update * Updates snapshots * Add windows node 10 job to pipeline config
|
@JakeDawkins - Any news? |
|
Not work with |
|
@jhalborg Sorry for not responding. My notification settings are messed up 🙃 I released these changes with 2.3.0, but you may run into @NateScarlet's issue. I'll look into that and maybe cut a patch release for it if needed |
Patch for comment on #810
|
@JakeDawkins That would be great! |
|
@jhalborg 2.3.1 should have the fixes for the issue mentioned above! |

This PR should resolve the codegen issues on Windows that have been reported in the long-running codegen issue thread #719
Thanks to @patrys for really digging in and suggesting some changes!
Pending set up of Appveyor, I'd appreciate if any of our Windows users could test out this change.
cc: @chenglabs @ZenSoftware @jbaxleyiii @patrys