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

Add language server support for C files #14

Closed
Tracked by #26
valstu opened this issue Nov 16, 2021 · 2 comments
Closed
Tracked by #26

Add language server support for C files #14

valstu opened this issue Nov 16, 2021 · 2 comments
Labels
flow: develop Hook development & compile flow specific features & epics type: feature Feature issue

Comments

@valstu
Copy link
Collaborator

valstu commented Nov 16, 2021

We need to build language server which supports C language so that we can show proper errors and warnings before compiling code.

@valstu valstu mentioned this issue Nov 16, 2021
2 tasks
@jonijuup jonijuup added flow: develop Hook development & compile flow specific features & epics type: feature Feature issue labels Nov 16, 2021
@vbar
Copy link
Collaborator

vbar commented Nov 16, 2021

We decided to go with clangd, which is the LLVM C++ and C language server, i.e. using the same compiler backend as the wasm compilation. It's true we don't need the C++ support, but that's disabled automatically for source files with .c extension. Another missing piece is that clangd doesn't have a network interface (apparently most language servers don't), but a WebSocket proxy can be added for that - probably https://github.com/wylieconlon/jsonrpc-ws-proxy .

@vbar
Copy link
Collaborator

vbar commented Jan 12, 2022

A WS proxy calling clangd had been integrated into into the compilation service.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
flow: develop Hook development & compile flow specific features & epics type: feature Feature issue
Projects
None yet
Development

No branches or pull requests

3 participants