Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

neovim: support visualizing debug logs inside vscode #2331

Open
saidelike opened this issue May 14, 2024 · 0 comments
Open

neovim: support visualizing debug logs inside vscode #2331

saidelike opened this issue May 14, 2024 · 0 comments
Labels
app-neovim Issues related to neovim support

Comments

@saidelike
Copy link
Collaborator

At the moment, to visualize the neovim log when debugging, we need to show the content of a file outside of vscode, for instance in the terminal.

There is a way to actually open a terminal automatically and visualize the logs directly in the terminal using the following:

.vscode\tasks.json:

    {
      "label": "neovim logs",
      "type": "shell",
      "windows": {
        "command": "powershell",
        "args": [
          "(New-Object -ComObject WScript.Shell).Run(\"\"\"powershell Get-Content '${workspaceFolder}/packages/cursorless-neovim/out/nvim_node.log' -wait -tail 30\"\"\", 1, $false)"
        ]
      },
      "group": "build"
    },

I'm not using it atm because I don't find it very nice, but this is a possibility in case we want to improve the workflow.

Note that the above is Windows only so this will need to be ported for macos or Linux.

also note that before neovim 5.1.0, the logs were actually inside vscode due to a bug that were not redirecting them into the custom logging system. see neovim/node-client#329 (comment) so it may actually be possible to use vscode debug console alternatively writing them to a file.

@phillco phillco added the app-neovim Issues related to neovim support label Jun 2, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
app-neovim Issues related to neovim support
Projects
None yet
Development

No branches or pull requests

2 participants