Skip to content
This repository has been archived by the owner on Mar 3, 2018. It is now read-only.

[macos] Error: ENOENT: no such file or directory, stat '/Users/kevin/Codes/geojson/.DS_Store' #14

Open
kevinresol opened this issue Oct 27, 2017 · 7 comments

Comments

@kevinresol
Copy link
Member

Fails at the statSync call here:

if (!v.isHash() && versionDir(v).isDirectory()) v

There is no .DS_Store in the folder, it is strange that readDirectory() returns it.

@back2dos
Copy link
Contributor

Yeah, that .DS_Store is a Mac thing that I see on Windows whenever I unzip an archive zipped on MacOS ^^

@kevinresol
Copy link
Member Author

Probably should ignore filenames beginning with .

@back2dos
Copy link
Contributor

Yeah, sure. What I don't get is why the /Users/kevin/Codes/geojson/.DS_Store (which is a lib, right?) is checked in officialInstalled (which is supposed to find official Haxe versions).

@kevinresol
Copy link
Member Author

I am using https://github.com/lix-pm/travlix to run the tests, not sure if that is the reason

@back2dos
Copy link
Contributor

back2dos commented Nov 1, 2017

Uhm, I'll gladly put a check at the line you've indicated, but I really do wonder how the path could ever be something that looks even remotely like /Users/kevin/Codes/geojson/... ^^

@kevinresol
Copy link
Member Author

Fixed by lix-pm/haxeshim@39fe9a3

@kevinresol
Copy link
Member Author

kevinresol commented Nov 17, 2017

Actually I think the bug should be fixed somewhat more upstream, that .DS_Store should not be recognized as a "version" when iterating the haxe version folder.

Probably adding v.charCodeAt(0) != '.'.code && here:

if (!v.isHash() && versionDir(v).isDirectory()) v

@back2dos back2dos reopened this Nov 17, 2017
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants