all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
* Help with LSP-Mode for PHP with Intelephense
@ 2022-03-22 17:45 Cheshire Yang
  2022-03-22 19:21 ` Emanuel Berg via Users list for the GNU Emacs text editor
  2022-03-23  6:11 ` tomas
  0 siblings, 2 replies; 6+ messages in thread
From: Cheshire Yang @ 2022-03-22 17:45 UTC (permalink / raw)
  To: help-gnu-emacs@gnu.org

Hi all,

I need help setting up emacs as a PHP IDE. I'm using Emacs 27 on NixOS.

First, it should be noted that MELPA works for me _very_ inconsistently, though the configuration and everything looks fine. I was not able to connect to MELPA today, so I cloned lsp-mode repository from github into .emacs.d/ and loaded it in the init file. So now, I can open a PHP file and M-x lsp-mode with success. I also installed Intelephense on the operating system, through the OS package manager (nix), and confirmed that I can type `intelephense` into a terminal and the command is available.

When I run `M-x lsp` to start the server however, I get a strange error. This is the output with toggle debug on error:

Debugger entered--Lisp error: (void-function -andfn)
  (-andfn #'lsp--supports-buffer\? #'lsp--server-binary-present\?)
  (lsp--filter-clients (-andfn #'lsp--supports-buffer\? #'lsp--server-binary-present\?))
  (let (clients (matching-clients (lsp--filter-clients (-andfn #'lsp--supports-buffer\? #'lsp--server-binary-present\?)))) (cond (matching-clients (if (setq lsp--buffer-workspaces (or (and (not ...) (lsp--tr$
  (progn (let (clients (matching-clients (lsp--filter-clients (-andfn #'lsp--supports-buffer\? #'lsp--server-binary-present\?)))) (cond (matching-clients (if (setq lsp--buffer-workspaces (or (and ... ...) (l$
  (if (buffer-file-name) (progn (let (clients (matching-clients (lsp--filter-clients (-andfn #'lsp--supports-buffer\? #'lsp--server-binary-present\?)))) (cond (matching-clients (if (setq lsp--buffer-workspac$
  lsp(nil)
  funcall-interactively(lsp nil)
  call-interactively(lsp record nil)
  command-execute(lsp record)
  execute-extended-command(nil "lsp" "lsp")
  funcall-interactively(execute-extended-command nil "lsp" "lsp")
  call-interactively(execute-extended-command nil nil)
  command-execute(execute-extended-command)

I have no clue what any of that means. Any and all help would be greatly appreciated. Unfortunately, the official docs on lsp-mode and intelephense are not useful.

Thank you,

C. Yang


^ permalink raw reply	[flat|nested] 6+ messages in thread

end of thread, other threads:[~2022-03-28 14:28 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2022-03-22 17:45 Help with LSP-Mode for PHP with Intelephense Cheshire Yang
2022-03-22 19:21 ` Emanuel Berg via Users list for the GNU Emacs text editor
2022-03-24  0:00   ` Yuchen Pei
2022-03-24  0:48     ` Emanuel Berg via Users list for the GNU Emacs text editor
2022-03-28 14:28       ` Stefan Monnier via Users list for the GNU Emacs text editor
2022-03-23  6:11 ` tomas

Code repositories for project(s) associated with this external index

	https://git.savannah.gnu.org/cgit/emacs.git
	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.