-
Notifications
You must be signed in to change notification settings - Fork 470
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
Resolve Windows FS Issues #810
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This looks good, I'll try it out on windows and let you know!
@@ -188,8 +189,8 @@ export abstract class ProjectCommand extends Command { | |||
// In this case, we don't want to look to the .dir since that's the parent | |||
const rootURI = | |||
filepath === process.cwd() | |||
? `file://${filepath}` | |||
: `file://${parse(filepath).dir}`; | |||
? Uri.file(filepath) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@@ -37,69 +37,6 @@ exports[`client:codegen generates operation IDs for swift files when flag is set | |||
}" | |||
`; | |||
|
|||
exports[`client:codegen writes TypeScript global types to a custom path when globalTypesFile is set 1`] = ` |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Why was this removed?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
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