Comments (7)
Thanks @kolipakakondal. I'm not sure what went wrong the first time I tried it, but the F3 is working for me now.
from idf-eclipse-plugin.
[tap] [tap] [tap]... is this thing on? :D
Did I report this to the wrong project?
from idf-eclipse-plugin.
Hi @mbratch This is a clangd thing!.
I have configured query driver to /Users/kondal/.espressif/tools/xtensa-esp32-elf/esp-12.2.0_20230208/**/xtensa-esp32-elf-*
to resolve this. Probably, we can automate these things going forward.
Please check more details here.
https://releases.llvm.org/10.0.0/tools/clang/tools/extra/docs/clangd/Configuration.html#query-driver
Clangd makes use of clang behind the scenes, so it might fail to detect your standard library or built-in headers if your project is making use of a custom toolchain. That is quite common in hardware-related projects, especially for the ones making use of gcc (e.g. ARM’s arm-none-eabi-gcc).
You can specify your driver as a list of globs or full paths, then clangd will execute drivers and fetch necessary include paths to compile your code.
For example if you have your compilers at:
/path/to/my-custom/toolchain1/arm-none-eabi-gcc,
/path/to/my-custom/toolchain2/arm-none-eabi-g++,
/path/to/my-custom2/toolchain/arm-none-eabi-g++,
you can provide clangd with –query-driver=/path/to/my-custom/**/arm-none-eabi* to enable execution of any binary that has a name starting with arm-none-eabi and under /path/to/my-custom/. This won’t allow execution of the last compiler.
![Screenshot 2023-12-11 at 9 54 14 AM](https://private-user-images.githubusercontent.com/8463287/289425078-b8e42f8e-9b6f-4193-a9f1-115f5d38536d.png?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3MTY0NTczNzcsIm5iZiI6MTcxNjQ1NzA3NywicGF0aCI6Ii84NDYzMjg3LzI4OTQyNTA3OC1iOGU0MmY4ZS05YjZmLTQxOTMtYTlmMS0xMTVmNWQzODUzNmQucG5nP1gtQW16LUFsZ29yaXRobT1BV1M0LUhNQUMtU0hBMjU2JlgtQW16LUNyZWRlbnRpYWw9QUtJQVZDT0RZTFNBNTNQUUs0WkElMkYyMDI0MDUyMyUyRnVzLWVhc3QtMSUyRnMzJTJGYXdzNF9yZXF1ZXN0JlgtQW16LURhdGU9MjAyNDA1MjNUMDkzNzU3WiZYLUFtei1FeHBpcmVzPTMwMCZYLUFtei1TaWduYXR1cmU9YjBlZDQwNGMxNTRkNWYzOTExZDAzMDAxYzk4ZjgyNWM3ZTgyMDAwZTQ1Mjg4ZjZlZTVmZjRmN2YyMmEwNTIyMyZYLUFtei1TaWduZWRIZWFkZXJzPWhvc3QmYWN0b3JfaWQ9MCZrZXlfaWQ9MCZyZXBvX2lkPTAifQ.94uSVxpk8FhXx87AxxwP5dYh2QpO3AeCqytZqetUYWw)
from idf-eclipse-plugin.
FInally, I also don't see any context menu commands for "Open declaration". The other indexer supported it. Is that feature unavailable with the clangd indexer?
Open declaration menu is not available in the editor yet, but you can access this by pressing F3 or Ctrl+Click (I'm on macOS)
f3.mp4
from idf-eclipse-plugin.
Thanks much @kolipakakondal. Unfortunately, under Windows F3 and Ctrl-Click did not do anything.
I raised my issue in the clangd/clangd project on github.
from idf-eclipse-plugin.
Hi @mbratch I have verified now on Windows, it seems to be F3 and Ctrl+Click are working fine for me. However, I see editor syntax colors are not shown, will look into this.
20231214115227.mp4
from idf-eclipse-plugin.
As this can be resolved by setting the query driver path in the CDT LSP preferences, closing this issue. If you see any other issues, please report us back. thank you.
from idf-eclipse-plugin.
Related Issues (20)
- Syntax coloring does not work in Editor (LSP) (IEP-1165) HOT 2
- When installing ESP IDF IDE, IDE is not selected by default (IEP-1166) HOT 1
- Rendering problem of project description when starting new ESP IDF project (IEP-1167) HOT 1
- [Debian 12, Eclipse IDF 2023-12, ESP-IDF Plugin 2.12] ESP-IDF Tools manager > Install Tools errors. (IEP-1168) HOT 5
- install error (IEP-1169) HOT 5
- Eclipse Plugin: Add ability to select ESP-Tools location (IEP-1173) HOT 2
- Add the Reset & Restart functionality (IEP-1177) HOT 7
- Abort build process in presence of errors (IEP-1180) HOT 1
- Latest version brings more unresolved warnings (IEP-1181) HOT 24
- Espressif-IDE-2.12.1-linux.gtk.x86_64 seems Scanner is broken (IEP-1182) HOT 1
- macOS 14.4 Sonoma (IEP-1185) HOT 1
- IDE installation error (IEP-1188) HOT 3
- Not able to see data in teraterm (IEP-1191)
- Unresolved inclusion. unless it was included in "app_main.c". (IEP-1206)
- Drop python in favor of out-of-the-box available java (IEP-1235) HOT 1
- Move 'ESP-IDF: ****' context menu items into 'ESP-IDF' SUBMENU instead of putting them on top level (IEP-1236) HOT 4
- Remove internet shortcut icon out of the status bar (IEP-1237) HOT 1
- com.espressif.idf.core.idfNature resource key must have matching localized string value (IEP-1238)
- Invalid (tools and dist) installation path: '${USER_HOME}/.espressif/...' instead of user-provided directory (IEP-1239) HOT 2
- Invalid 'Espressif IDF Project' project configuration (IEP-1240) HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from idf-eclipse-plugin.