I am running Nixos unstable with doom emacs 28.1 nativeComp. In Nixos i have the following packages installed for emacs:
((emacsPackagesFor emacs28NativeComp).emacsWithPackages
(epkgs: [ epkgs.vterm ]))
fira-code
fira-code-symbols
git
gnumake
gnupg
graphviz
html-tidy
jq
# kotlin
# kotlin-language-server
# ktlint
nixfmt
nodejs
nodePackages.bash-language-server
# nodePackages.intelephense
nodePackages.js-beautify
nodePackages.npm
nodePackages.prettier
nodePackages.stylelint
nodePackages.typescript-language-server
nodePackages.vscode-langservers-extracted
pandoc
scrot
shellcheck
shfmt
wordnet
I have php configured as follows:
php
php.packages.php-cs-fixer
# php.packages.psalm
# php.packages.phpstan
php.packages.composer
(pkgs.php.buildEnv {
extensions = ({ enabled, all }: enabled ++ (with all; [ xdebug ]));
extraConfig = ''
zend_extension=xdebug
xdebug.mode = debug
xdebug.start_with_request = yes
xdebug.discover_client_host = 1
display_errors = on
display_startup_errors = true
html_errors = true
'';
})
In init.el i have (debugger +lsp)
.
Running M-x dap-php-setup
in emacs yields wrong type argument: stringp, nil
.
Running +debugger/start
yields Debug session process exited with status: exited abnormally with code 1
.
What do i have to do to make it work?
System information
Loading data dump...