Skip to content

fix: tools vscode refreshcompd.sh fails on VSCode remote-ssh #15840

Merged
mattklein123 merged 1 commit intoenvoyproxy:mainfrom
vazra:fix/tools-vscode-refreshcompd
Apr 6, 2021
Merged

fix: tools vscode refreshcompd.sh fails on VSCode remote-ssh #15840
mattklein123 merged 1 commit intoenvoyproxy:mainfrom
vazra:fix/tools-vscode-refreshcompd

Conversation

@vazra
Copy link
Copy Markdown
Contributor

@vazra vazra commented Apr 5, 2021

Commit Message: the script (tools/vscode/refresh_compdb.sh ) is failing when vscode remote-ssh is used. It's better to use name to kill the clangd process as it may not be always available at /opt/llvm/bin/clangd . When using VSCode remote-ssh debug the clangd will be at /home/ubuntu/.vscode-server/data/User/globalStorage/llvm-vs-code-extensions.vscode-clangd/install/11.0.0/clangd_11.0.0/bin/clangd

Additional Description: changed killall to pkill [name]

Risk Level: Low
Testing: manual testing
Docs Changes: N/A
Release Notes: N/A
Platform Specific Features: N/A

@repokitteh-read-only
Copy link
Copy Markdown

Hi @vazra, welcome and thank you for your contribution.

We will try to review your Pull Request as quickly as possible.

In the meantime, please take a look at the contribution guidelines if you have not done so already.

🐱

Caused by: #15840 was opened by vazra.

see: more, trace.

@vazra
Copy link
Copy Markdown
Contributor Author

vazra commented Apr 5, 2021

@lizan please have a look

@lizan
Copy link
Copy Markdown
Member

lizan commented Apr 5, 2021

Can you fix DCO? In general I wouldn't recommend using the VS Code plugin downloaded clangd, instead of that use the clangd from devcontainer or use the same clangd as that to setup your SSH remote machine.

@vazra vazra force-pushed the fix/tools-vscode-refreshcompd branch from 385bc85 to ce8a0fa Compare April 5, 2021 21:56
It's better to use name to kill the clangd process as it may not be always available at /opt/llvm/bin/clangd .

When using VSCode remote-ssh debug the clangd will be at /home/ubuntu/.vscode-server/data/User/globalStorage/llvm-vs-code-extensions.vscode-clangd/install/11.0.0/clangd_11.0.0/bin/clangd

Signed-off-by: Ameen Rashad <ameen.vazhayil@datafilabs.com>
@vazra vazra force-pushed the fix/tools-vscode-refreshcompd branch from ce8a0fa to 5eb4ae2 Compare April 5, 2021 21:57
@vazra
Copy link
Copy Markdown
Contributor Author

vazra commented Apr 5, 2021

@lizan, fixed the DCO.

I'm not using dev-container, instead using a self provisioned cloud machine for my development workflow.

@lizan
Copy link
Copy Markdown
Member

lizan commented Apr 5, 2021

@vazra I understand that you're using a self provisioned cloud machine, however the clangd downloaded by the VS code plugin is usually causing some issues, so I recommend you to install LLVM from releases.llvm.org (as the devcontainer does) to /opt/llvm.

@vazra
Copy link
Copy Markdown
Contributor Author

vazra commented Apr 5, 2021

thanks @lizan , will look into that.

@mattklein123 mattklein123 merged commit f4fb2e9 into envoyproxy:main Apr 6, 2021
@vazra vazra deleted the fix/tools-vscode-refreshcompd branch April 6, 2021 18:02
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants