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
TypeError: Cannot read property 'length' of null #10
Comments
This is the line producing the error
|
|
Or rather, scrap that suspicion. It's happening in |
Okay more research: https://github.com/atom/node/blob/edfbc29d09425f2f387c52d77f6351b6ce101659/lib/fs.js#L1981 is the triggering line, and I can reproduce the error in Atom with So for this bug, it's either that |
Hrm. /bin/sh exists, so that's not it. More info.... A fresh atom install which then had an installer of JUST the linter and linter-php plugins reproduces this error. Uninstalling the current versions and dropping back to linter 1.10.0 and linter-php 1.1.4 works fine. Now let's do the combinations: linter 1.10.0 and linter-php 1.1.4 works Note that I can get the same failure with the SCSS linter, etc. So it seems that it's not the linter base plugin that has the issue but some component shared by the language specific linters. |
@rickgregory Most of the |
Got it. I can, if you all want, test more of the linter- plugins. Right now, that seems to be where the issue lies rather than an update to the main linter base plugin. |
@rickgregory Yeah, the base linter doesn't do any linting by itself, FYI |
@rickgregory I'd still be interested in the value of |
Here ya go: "/usr/local/bin/zsh" |
Does the binary it exist at that location? Any idea where this variable is being set? |
Yep. |
Well, the only explanation I have is that something is wrong with that binary. Do these work? require('child_process').execFileSync('/usr/local/bin/zsh', ['--version'], {encoding: 'utf8'}) require('child_process').execFileSync('/usr/local/bin/zsh', ['-ic', 'env'], {encoding: 'utf8'}) require('child_process').execFileSync('/usr/local/bin/zsh', ['-ic', 'echo $PATH'], {encoding: 'utf8'}) |
None of those work. All throw this error: Cannot read property 'length' of null(…)SyncWriteStream.write @ fs.js:1981 |
I wonder what's up with
|
AHA... /usr/local/bin/zsh: symbolic link in a loop Odd that this would happen now, but... that looks suspicious |
Wow, how did that manage to get put in place lol. |
Yeah... This plus the fact that it's a holiday gives me the reason I've On Mon, Feb 15, 2016 at 1:57 PM, Landon Abney notifications@github.com
|
I wonder what tool installed that symlink, certainly not brew I think. 😈 Does |
Yep, /bin/zsh exists. /bin/zsh: Mach-O 64-bit executable x86_64 Actually, I wonder if I should just symlink to that. And yes, I think the On Mon, Feb 15, 2016 at 2:02 PM, silverwind notifications@github.com
|
Ah, good. I don't think it was brew, rather something else. My zsh symlink is |
OK. Oddly, I just renamed /usr/local/bin/zsh and created a new symbolic On Mon, Feb 15, 2016 at 2:07 PM, silverwind notifications@github.com
|
@rickgregory Can you change your symlink to point to the absolute path |
Oddly, I got the same issue as above. Then I screwed up with the old rm command. I have a clone of the drive before doing this, but I also did a clean install and... the issue doesn't occur. Want more info or shall we write this off as some weird edge case? |
I'm perfectly fine with writing this off as a bizarre edge case myself, @steelbrain? @silverwind? |
This is definitely an edge case, pretty much any program that relies on shell won't be able to function in such a system. Therefore I don't think this is a bug in shell-path |
Yeah, the odd thing is that it hasn't seemed to affect other things on the Anyway, I'm fine not pursuing this if you all are OK with it. On Mon, Feb 15, 2016 at 9:51 PM, Steel Brain notifications@github.com
|
Okay, I'll close this in favor of sindresorhus/default-shell#2 where we might investigate a more reliable method of getting a user's shell. |
Got this stack trace from a report filed by @rickgregory over on
linter-php
:The text was updated successfully, but these errors were encountered: