slackhq / vscode-hack

Hack language & HHVM debugger support for Visual Studio Code
https://marketplace.visualstudio.com/items?itemName=pranayagarwal.vscode-hack
MIT License
75 stars 36 forks source link

Doesn't show source code with Docker setup on Mac #153

Open pasewka opened 11 months ago

pasewka commented 11 months ago

I followed the Readme steps to configure the extension to use a local Docker container.

VSCode: v1.84.2 Extension: v2.16.0

Trying to follow the method/class definition (CMD + click) leads to The editor could not be opened because the file was not found. error instead of the source file/code of the specific definition.

Actual Error:

Screenshot 2023-11-17 at 22 11 30

Simple hovering (CMD + hover) on the methods/classes works as expected and provides the necessary details:

Screenshot 2023-11-17 at 22 11 24
marriagav commented 3 months ago

Im having the same issue on a M1 Mac. Autocomplete and hovering both work as expected but cannot jump to definition.

Running on Docker

settings.json

{
  "hack.remote.enabled": true,
  "hack.remote.type": "docker",
  "hack.remote.docker.containerName": "my_project-hack-dev-1",
  "hack.remote.workspacePath": "/app",
  "hack.trace.server": "verbose",
  "hack.useLanguageServer": true
}