I'm trying to use phptools inside a devcontainer with Debian 11.6, but the language server apparently doesn't start with the following errors:
Unhandled exception. System.NullReferenceException: Arg_NullReferenceException
at System.Text.Json.Serialization.JsonConverter`1.TryRead(Utf8JsonReader&, Type, JsonSerializerOptions, ReadStack& , T& )
[Info - 12:25:51 PM] Connection to server got closed. Server will restart.
Unhandled exception. System.NullReferenceException: Arg_NullReferenceException
at System.Text.Json.Serialization.JsonConverter`1.TryRead(Utf8JsonReader&, Type, JsonSerializerOptions, ReadStack& , T& )
[Info - 12:25:53 PM] Connection to server got closed. Server will restart.
assertion failed [block != nullptr]: BasicBlock requested for unrecognized address
(BuilderBase.h:550 block_for_offset)
[Info - 12:25:53 PM] Connection to server got closed. Server will restart.
Unhandled exception. System.NullReferenceException: Arg_NullReferenceException
at System.Text.Json.Serialization.JsonConverter`1.TryRead(Utf8JsonReader&, Type, JsonSerializerOptions, ReadStack& , T& )
[Info - 12:25:55 PM] Connection to server got closed. Server will restart.
Unhandled exception. System.NullReferenceException: Arg_NullReferenceException
at System.Text.Json.Serialization.JsonConverter`1.TryRead(Utf8JsonReader&, Type, JsonSerializerOptions, ReadStack& , T& )
[Error - 12:25:57 PM] Connection to server got closed. Server will not be restarted.
Here's the devcontainer.json
{
"name": "xxx",
"dockerComposeFile": "docker-compose.yml",
"service": "xxx",
"workspaceFolder": "/var/${localWorkspaceFolderBasename}",
"features": {
"xxx/devcontainers-features/secret-envs:1": {},
"xxx/devcontainers-features/redis:1": {},
"xxx/devcontainers-features/xdebug:1": {},
"x/devcontainers-features/composer:1": {
"version": "2.4.2"
}
},
"remoteUser": "root",
"containerEnv": {
"VAULT_TOKEN": "${localEnv:VAULT_UPIM_TOKEN}",
"ENV_KEY": "${localEnv:JTC_KEY}",
"GITLAB_TOKEN": "${localEnv:GITLAB_TOKEN}",
"GITLAB_HOST": "${localEnv:GITLAB_HOST}"
},
"forwardPorts": [],
"initializeCommand": "",
"postCreateCommand": "/bin/bash /root/create-current-env.sh && composer install --no-plugins",
"postStartCommand": "/bin/bash /root/create-current-env.sh",
"customizations": {
"vscode": {
"extensions": [
"esbenp.prettier-vscode",
"junstyle.php-cs-fixer",
"irongeek.vscode-env",
"mrmlnc.vscode-apache",
"DEVSENSE.phptools-vscode"
],
"settings": {
"remote.restoreForwardedPorts": false,
"[php]": {
"editor.defaultFormatter": "junstyle.php-cs-fixer"
},
"[json]": {
"editor.defaultFormatter": "esbenp.prettier-vscode",
"editor.formatOnSave": true
},
"[jsonc]": {
"editor.defaultFormatter": "esbenp.prettier-vscode",
"editor.formatOnSave": true
},
"php-cs-fixer.onsave": true,
"php-cs-fixer.executablePath": "${workspaceFolder}/vendor/bin/php-cs-fixer",
"json.maxItemsComputed": 10000,
"files.associations": {
".htaccess*": "apacheconf",
".env": "env",
".env.*": "env"
},
"php.executablePath": "/usr/local/bin/php",
"launch": {
"version": "0.2.0",
"configurations": [
{
"name": "Listen for Xdebug",
"type": "php",
"request": "launch",
"port": 9003
}
]
}
}
}
}
}