Closed kaoru closed 4 years ago
Hi there!
Did you also see how #266 was solved?
Hi there!
Did you also see how #266 was solved?
I saw that #266 was broken in 8.0.1 and solved in 8.1.0 but I didn't see how, there wasn't a link to a PR or anything.
There was indeed no fix necessary, I think it was reinstalling dependencies that fixed it!
There was indeed no fix necessary, I think it was reinstalling dependencies that fixed it!
Huh, ok... I don't know how to do that. Searching for "npm update dependencies" is finding me a lot of pages that are assuming I'm using a package.json but I'm installing alex globally so that doesn't seem relevant.
Shouldn't npm install alex --global
always install the right versions of the dependencies?
The error message stack trace implies the problem is with something called "ignore" or "unified-engine"? I tried uninstalling and reinstalling those packages:
$ npm uninstall -g ignore unified-engine
$ npm install -g ignore unified-engine
+ unified-engine@8.0.0
+ ignore@5.1.8
added 77 packages from 50 contributors in 2.644s
But I'm still getting the same error.
Thanks. I was able to reproduce your issue on unified-engine@7.0.0
, which is still used in alex. It is solved (by these lines probably) in unified-engine@8.0.0
.
The update to unified-engine will come somewhere these months, when alex receives a new major version.
Can't resolve paths in /tmp directory on macOS
I think this is related to https://github.com/get-alex/alex/issues/266
Your environment
Steps to reproduce
alex
on the file from your home directoryWorks fine if the file is in my home directory:
But breaks if the file is in
/tmp
:It might be caused by /tmp being a symlink?
Although actually it's still broken if I use the non-symlink path:
It works if my current working directory is inside
/tmp
:Expected behaviour
It should be able to process the file when given an absolute path into
/tmp
Actual behaviour
It crashes with a RangeError trying to convert the absolute path into a relative path.