[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Help with LSP-Mode for PHP with Intelephense
From: |
tomas |
Subject: |
Re: Help with LSP-Mode for PHP with Intelephense |
Date: |
Wed, 23 Mar 2022 07:11:56 +0100 |
On Tue, Mar 22, 2022 at 05:45:47PM +0000, Cheshire Yang wrote:
> 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)
That means that some "-andfn" is missing. My hunch is that this is
part of "dash.el", a collection of functional-style bells-and-whistles.
Probably you need to install that (watch out: perhaps lsp-mode has
other dependencies you need to install).
Dash.el would be available through (m)elpa.
Cheers
--
t
signature.asc
Description: PGP signature