-
-
Notifications
You must be signed in to change notification settings - Fork 535
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
Fix #595 #596
Fix #595 #596
Conversation
Any idea how to call Apparently reading the TODO comment, it's supposed to be replaced with EDIT: based on my testing |
2 similar comments
Would this also be a problem with using resolve? Should that also be wrapped? The only way I know to use it is to just duplicate the function (I thought it already was somewhere, but that must have been the old code). It appears I’m wrong about searching for the project, I didn’t think I supported t but maybe someone did a PR, or maybe I just misunderstood that function. |
@blakeembrey I'm not following 100% what do you mean with resolve. If you mean all current calls to I'm not familiar with typescript's API at all and thus I was hoping you (or anyone) could help me. And yes, TypeScript's |
There's a function that should do what you want already: Lines 133 to 135 in df41bdb
What I meant is that on the same line, I use |
Great, thanks!
That's true, nice catch. Let me fix the PR. |
The commit 86176de seems to also fix the EDIT: Fixed the commit message |
The cwd and configFileName should be normalized, see: https://github.com/Microsoft/TypeScript/blob/16d7f4c1033cf1852a2904845b0568f932ed4f21/src/compiler/tsc.ts#L104 This affects only Windows where backslash is the path separator.
@blakeembrey Your commit (c4ca001) does not fix the |
@ljani That's why I typically avoid code that mutates a variables, it wasn't clear it was to fix multiple spots. It would be clearer added around the |
Fixed with 33aca82. |
Thanks. Yours is much better! Yeah, I was avoiding to adding it around |
@ljani Haha, thanks. Using TypeScript definitely has it's perks there 😄 |
The
cwd
should be normalized, see:https://github.com/Microsoft/TypeScript/blob/16d7f4c1033cf1852a2904845b0568f932ed4f21/src/compiler/tsc.ts#L104
normalizePath
changes eg.C:\my\awesome\project
toC:/my/awesome/project
on Windows.The
test-fail-2
in #595 seems to be related to #409 though.