GithubHelp home page GithubHelp logo

Comments (7)

mbratch avatar mbratch commented on June 30, 2024 1

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.

mbratch avatar mbratch commented on June 30, 2024

[tap] [tap] [tap]... is this thing on? :D
Did I report this to the wrong project?

from idf-eclipse-plugin.

kolipakakondal avatar kolipakakondal commented on June 30, 2024

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

from idf-eclipse-plugin.

kolipakakondal avatar kolipakakondal commented on June 30, 2024

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.

mbratch avatar mbratch commented on June 30, 2024

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.

kolipakakondal avatar kolipakakondal commented on June 30, 2024

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.

kolipakakondal avatar kolipakakondal commented on June 30, 2024

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)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.