-
Notifications
You must be signed in to change notification settings - Fork 2.5k
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
[git][Windows] Repository locator test failure on Windows #933
Comments
Moved from #936: @kittaakos wrote: My test fails currently, and I have the following path:
The marked lines are pointing to the same location but the FS path (strings) are different.
|
const temp = require('temp');
const fs = require('fs-extra');
const track = temp.track();
const path = track.mkdirSync('foo');
console.log(path); // C:\Users\KITTAA~1\AppData\Local\Temp\foo117115-2972-11j4sb5.bro
console.log(fs.realpathSync(path)); // C:\Users\KITTAA~1\AppData\Local\Temp\foo117115-2972-11j4sb5.bro |
and another way around? What does it do with |
Does nothing: const temp = require('temp');
const fs = require('fs-extra');
const track = temp.track();
const path = track.mkdirSync('foo');
console.log(path); // C:\Users\KITTAA~1\AppData\Local\Temp\foo117115-2972-11j4sb5.bro
console.log(fs.realpathSync(path)); // C:\Users\KITTAA~1\AppData\Local\Temp\foo117115-2972-11j4sb5.bro
const replaced = path.replace('KITTAA~1', 'kittaakos');
console.log(replaced, fs.existsSync(replaced)); // C:\Users\kittaakos\AppData\Local\Temp\foo117115-2972-11j4sb5.bro true
console.log(fs.realpathSync(replaced)); // C:\Users\kittaakos\AppData\Local\Temp\foo117115-2972-11j4sb5.bro |
This problem is deeper than I have initially expected:
I will also try to modify the |
Fixes eclipse-theia#7064 Skips the failing `@theia/git` unit test on Windows (eclipse-theia#933). Signed-off-by: Vincent Fugnitto <vincent.fugnitto@ericsson.com>
Fixes eclipse-theia#7064 Skips the failing `@theia/git` unit test on Windows (eclipse-theia#933). Signed-off-by: Vincent Fugnitto <vincent.fugnitto@ericsson.com>
@kittaakos Is this still relevant? Please close if not... |
The test does not fail on Appveyor but on the local Windows image:
The text was updated successfully, but these errors were encountered: