Giter VIP home page Giter VIP logo

Comments (12)

pat-trunk-io avatar pat-trunk-io commented on August 25, 2024

Hi!

Thank you for trying Trunk!

I will need a bit more information to help you out. Can you tell me how you are generating the compile_commands.json?

from plugins.

sr-tream avatar sr-tream commented on August 25, 2024

just pass -D CMAKE_EXPORT_COMPILE_COMMANDS=ON in CMake.

CMake cersion is 3.27.4

File format like:

[
{
"directory": "/path/to/build/dir",
"command": "/path/to/compiler arguments contains -DGIT_TAG\\\"tag-name-commit-hash\\\"",
"file": "/path/to/file",
"output": "/path/to/object/file"
},
{
...
}
]

I think problem may be in -DGIT_TAG\\\"tag-name-commit-hash\\\", but Trunk do not print me any detailed information about exception

from plugins.

pat-trunk-io avatar pat-trunk-io commented on August 25, 2024

Hey, thanks for the quick response.

In your directory, there should be a .trunk/logs folder, would you be able to send me those?

Either added as a zip here, or maybe as a direct message through our community slack?
(Patrice Boisclair-Laberge in trunkcommunity.slack.com)

from plugins.

sr-tream avatar sr-tream commented on August 25, 2024

logs.zip

It floods about duplicates, but compile_commands.json do not have duplicates, maybe it read compile commands from subfolders? I have different folders in workspace/build for different platforms and copy compile commands for selected platform to workspace/build directory

from plugins.

det avatar det commented on August 25, 2024

Hi @sr-tream,
Can you please check if any of your compile_commands.json has a json number set for any of the directory, file, or command fields (ie, 7, but not "7")?

from plugins.

sr-tream avatar sr-tream commented on August 25, 2024

Don't have, and clang-tidy runned manually works fine

from plugins.

det avatar det commented on August 25, 2024

We've created a test build that may help with this issue. Can you please edit your .trunk/trunk.yaml and change the cli version to 1.15.1-beta.10 and see if that resolves the issues. After trying, could you also check your .trunk/logs/*.log and see if the string Skipping compile command shows up anywhere?

from plugins.

sr-tream avatar sr-tream commented on August 25, 2024

logs.zip

1.15.1-beta.10

With this version all works, and instead of exception print warning to logs

from plugins.

det avatar det commented on August 25, 2024

I see what the problem it, we'll get a fix out this week. Thanks for reporting this!

from plugins.

sr-tream avatar sr-tream commented on August 25, 2024

image

Also bugged underline. It starts from issue and ends at line end

from plugins.

det avatar det commented on August 25, 2024

This should be fixed in the latest version of trunk. Please let us know if that works for you.

from plugins.

sr-tream avatar sr-tream commented on August 25, 2024

Yes, its work now

from plugins.

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.