Open bokwoon95 opened 5 years ago
Hi, @bokwoon95. You're correct in that currently PHP projects are not correctly detected without a .git
folder. PR #2062 is currently open to address this, but is missing documentation and tests. I'd suggest taking a look at the PR, if you'd like to offer input on (or even help with) the improved approach.
Information
VIM version
NVIM v0.3.1 Build type: Release
Operating System: macOS
What went wrong
Opening php files in a non-git directory with php-langserver already installed doesn't trigger php-langserver (as seen shown
:ALEInfo
).This is easily remedied by making the current directory a git directory by running
git init
.Reproducing the bug
Create a new directory with a blank index.php:
minimal vimrc:
Installing php-langserver:
Open index.php and check
:ALEInfo
:Then initialize git, open index.php and check
:ALEInfo
again:Notice the extra line indicating that
php-language-server.php
has been run:This seems to only be an issue with
php-language-server
, aseslint
started normally with or without being in a git directory.I don't think this is particularly significant since not being in a git directory is a rare use case, and I'm also not sure if it's an issue with ALE or with php-language-server so I'll just close this issue.