Apex Replay Debugger: Error: spawn ENOTDIR on Ubuntu 18.10
See original GitHub issueSummary
Apex Replay Debugger on Ubuntu doesn’t seems to be working any time..
Here’s the configuration
{ // Use IntelliSense to learn about possible attributes. // Hover to view descriptions of existing attributes. // For more information, visit: https://go.microsoft.com/fwlink/?linkid=830387 "version": "0.2.0", "configurations": [ { "name": "Launch Apex Replay Debugger", "type": "apex-replay", "request": "launch", "logFile": "${command:AskForLogFileName}", "stopOnEntry": true, "trace": true } ] }
Steps To Reproduce:
- Click on Debugger icon, from the left panel.
- Click on the Play Icon to Launch the Apex Replay Debugger.
- You will get an error message saying, Error: spawn ENOTDIR
Expected result
On windows version of VS Code and Salesforce CLI always works fine with Apex Replay Debugger, but from last 1 year whenever I tried with the older version or the latest version I did’t found any working scenario of this feature, specially on Ubuntu.
Actual result
Always throw an error of spawn ENOTDIR, also tried to download the logs and launch it by clicking right button on those logs.
Additional information
Feel free to attach a screenshot.
VS Code Version: Version: 1.34.0 Commit: a622c65b2c713c890fcf4fbf07cf34049d5fe758 Date: 2019-05-15T21:55:35.507Z Electron: 3.1.8 Chrome: 66.0.3359.181 Node.js: 10.2.0 V8: 6.6.346.32 OS: Linux x64 4.18.0-21-generic
SFDX CLI Version: sfdx-cli/7.1.4-79f97a7df8 linux-x64 node-v10.15.3
OS and version: UBUNTU OS: Linux x64 4.18.0-21-generic
Issue Analytics
- State:
- Created 4 years ago
- Comments:7 (3 by maintainers)
Top GitHub Comments
Thanks @lcampos It worked for me now.
Ok, that error means that the Apex Language Server ran into an issue while starting up. Have you tried setting up your JDK configuration for the extensions using the
salesforcedx-vscode-apex.java.home
setting like it’s documented on Set Your Java Version ? We currently support using JDK 8 or JDK 11.