how to setup codelite to develop arduino sketches/libs #3732
Replies: 9 comments 2 replies
-
|
tbh, never worked with Ardunio before. I am not sure what it has and what it does not. I am using for remote development or local development on Linux / Windows & macOS. Are you developing locally and then you "deploy" your code? do you perform some kind of cross-compile? |
Beta Was this translation helpful? Give feedback.
-
|
The red markers you are seeing are coming from the Basically, it should look like this: -I/include/path/1
-I/include/path/2
-DSOMETHING=1
...After you create this file, restart the language server |
Beta Was this translation helpful? Give feedback.
-
|
do you mean that, in orded to not to have to generate the file manually, i need to try building with cmake or some compiler, so cmake build that file by me? ... and from where cmake or compiler takes that include paths? ... manual generation looks very complicated for someone like me maybe i could try, nevermind the compilation fails or just produces intermediate files or a binary in a temp folder or go to null device.. i won't use that binary, just want the editor could find references , once my arduino libraries were done in codelite, i will compile my involved sketches with arduino ide would be nice if language server could read include paths directly from ide configuration, or generate its file itself |
Beta Was this translation helpful? Give feedback.
-
It can. What kind of workspace are you using? (CodeLite supports multiple, C/C++, File System workspace etc). |
Beta Was this translation helpful? Give feedback.
-
|
i have no idea of wat are you talking abour, sorry .... i dont even know what a workspace concept is .... i commonly see a text file and do right click > open with notepad++ , so now it seem i HAVE to create a project/workspace/whatever and add/link files/folders to it to make it work, anc configure project paths, etc i was searching and i even didn't find where to open a folder/project already with lot of files, i found me forced to create a NEW project with a new name in a new folder, because i couldn't make codelite open the folder with the library i am trying to do .. or the "libraries" arduino folder and configure all include paths at once for all of them forgive my lack of experience, i just installed and try to open the files with it as is (anyway codelite looks more "lite" than other lite ides like vscode, geany, netbeans, codeblocks, atom, etc) the problem is i waste most of the time in open folders trying fo find the referenced files to see their code |
Beta Was this translation helpful? Give feedback.
-
Beta Was this translation helpful? Give feedback.
-
|
i follow that document, create a filesystem workspace that maches arduino libraries folder, add include paths in compile_flags.txt, then generate code completion with right clic in a folder... the red arrows gone but i am still unable to find references (symbols) by right click in some keywords |
Beta Was this translation helpful? Give feedback.
-
Beta Was this translation helpful? Give feedback.
-
Beta Was this translation helpful? Give feedback.





Uh oh!
There was an error while loading. Please reload this page.
-
... codelite looks way more featured than arduino ide (and maybe platformio and others)
i would like to use it for arduino/esp8266 libraries development as arduino ide is just for sketches... i would like to read a tutorial on how to configure include paths and environment so i won't see all those red arrows on margins and could right-click on a keyword > find symbol and it opens the header file were is implemented... not for build just for develop, so i then can test the library with a sketch in my arduino ide
Beta Was this translation helpful? Give feedback.
All reactions