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

[Linux] Format Error #54

Open
Galarius opened this issue Apr 30, 2023 · 0 comments
Open

[Linux] Format Error #54

Galarius opened this issue Apr 30, 2023 · 0 comments
Labels

Comments

@Galarius
Copy link
Owner

          Hi, I have a problem when running on Ubuntu, I've tried setting the absolute path to the formatter:
"OpenCL.formatting.name": "/home/<my username>/.vscode/extensions/ms-vscode.cpptools-1.14.5-linux-x64/LLVM/bin/clang-format"

However whenever I try to format a .cl file, I get this popup:

[OpenCL Formatter] Failed to format document. Check the console in dev tools to find errors when formatting.

And when I go to Output -> Extension Host I see

2023-03-31 12:21:28.793 [error] [galarius.vscode-opencl] provider FAILED
2023-03-31 12:21:28.793 [error] undefined

What works for me is installing clang-format directly with sudo apt install clang-format and then setting the path to its binary

"OpenCL.formatting.name": "/usr/bin/clang-format"

Originally posted by @geeshta in #49 (comment)

@Galarius Galarius added the bug label Apr 30, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant