redhat-developer / vscode-yaml

YAML support for VS Code with built-in kubernetes syntax support
MIT License
652 stars 221 forks source link

Launch Web Server is failing in local dev due to server crash #1007

Open aayshasura opened 7 months ago

aayshasura commented 7 months ago

Describe the bug

I have been trying to get the vscode-yaml web extension in the debug mode. But the is server crashing

Expected Behavior

Following the Contributing.MD I opened a vscode window with vscode-yaml and added yaml-language-server folder to the workspace attached yaml-language-server and ran the task. Launch VSCode Web extension. A vscode debug mode window with an active yaml extension was expected.

Current Behavior

A debug window is opening with output channel YAML Support but the extension is not working. features autocomplete, format and syntactic validation.

Steps to Reproduce

  1. clone vscode-yaml and yaml-language-server to a folder
  2. edit vscode-yaml/package.json dependecy "yaml-language-server": "file:../yaml-language-server"
  3. run cd vscode-yaml and code . from the folder (This opens a vscode workspace with current working directory)
  4. add yaml-language-server folder to the vscode-yaml workspace by going to File -> Add Folder to Workspace
  5. select Run and Debug from the left SideBar of the workspace and Run task Attach to Server(yaml-language-server)
  6. Run taskLaunch Web Extension
  7. Click Debug Anyway when prompted

    Environment

    • [ ] Windows
    • [x] Mac
    • [ ] Linux
    • [ ] other (please specify)