Closed quan-na closed 5 years ago
That should have been expand-file-name. I fixed that just now in the latest master branch.
See https://github.com/TysonAndre/lsp-phan#emacs instead for a known working way to set this up directly - I haven't had the time to finish up the helper configuration methods
(defvar lsp-phan-language-server-command
(list
"php"
"/path/to/phan_stable/phan"
"--language-server-allow-missing-pcntl"
"--allow-polyfill-parser"
"--use-fallback-parser"
"--memory-limit" "1G"
"--language-server-enable-go-to-definition"
"--project-root-directory" "/path/to/analyzed_project"
"--language-server-on-stdin"))
Thank you :smile: I had it work using these config:
(custom-set-variables '(lsp-phan-memory-limit "2G") '(lsp-response-timeout 30)) (add-hook 'php-mode-hook (lambda () (setq phan-default-directory (projectile-project-root)) (lsp-phan-enable)))
other defaults worked fine when putting phan directory in .emacs.d
I got this error, look like file-name is not a function anymore, can I use another function instead?