So my main code editor is Zed, but I'm fine with using VSCodium if that's easier.
I'm having trouble figuring out how to get the C language server to realize the CE C libraries exist, I've tried following the instructions from
https://ce-programming.github.io/toolchain/static/ides.html but those weren't of much help.
In VSCode it works perfectly fine, but in Zed and VSCodium it just doesn't work.
I've tried adding a .clangd file but that did nothing even after a language server restart:
```
CompileFlags:
Add:
- "-I/home/sonic/Projects/TI84/clang/CEdev/include"
```
I've found a workaround for codium:
Edit product.json, I found mine at /usr/share/codium/resources/app/product.json to set these lines:
```
"nameShort": "Visual Studio Code",
"nameLong": "Visual Studio Code",
```
Then download C/C++ by ms-vscode as a VSIX and in the extensions panel click the three dots and select "Install from VSIX..."
I got Zed sort of working, with it providing completions for the functions, but it won't take the ez80-clang compiler and so it gives the error:
`In included file: unknown type name 'uint24_t'; did you mean 'uint64_t'`
I'm assuming this is something specific to ez80-clang, but adding this:
```
{
"lsp": {
"clangd": {
"binary": {
"path": "/home/sonic/Projects/TI84/clang/CEdev/bin/ez80-clang"
}
}
}
}
```
To my settings.json gives the error:
```
Language server clangd:
initializing server clangd, id 6: Server reset the connection
-- stderr --
ez80-clang: error: no input files
```
To anyone reading this, I got the completions to work using the .clangd snippet from earlier, for some reason it just works now:
```
CompileFlags:
Add:
- "-I/home/sonic/Projects/TI84/clang/CEdev/include"
```
Register to Join the Conversation
Have your own thoughts to add to this or any other topic? Want to ask a question, offer a suggestion, share your own programs and projects, upload a file to the file archives, get help with calculator and computer programming, or simply chat with like-minded coders and tech and calculator enthusiasts via the site-wide AJAX SAX widget? Registration for a free Cemetech account only takes a minute.
»
Go to Registration page
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum