Comments (12)
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.
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.
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.
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.
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.
Don't have, and clang-tidy runned manually works fine
from plugins.
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.
1.15.1-beta.10
With this version all works, and instead of exception print warning to logs
from plugins.
I see what the problem it, we'll get a fix out this week. Thanks for reporting this!
from plugins.
Also bugged underline. It starts from issue and ends at line end
from plugins.
This should be fixed in the latest version of trunk. Please let us know if that works for you.
from plugins.
Yes, its work now
from plugins.
Related Issues (20)
- Update Rome to Biome HOT 3
- clippy fails without Cargo.lock present HOT 2
- What's the best apporach for dealing with 3rd party failurers? HOT 1
- How to disable crash reporter? HOT 2
- Is there a way to use a bandit.yaml with the bandit linter? HOT 2
- Support linters for Open Policy Agent and Rego HOT 3
- Support terraform-docs HOT 3
- Support standard paths to config files of linters HOT 2
- VS Code warning about soon-to-be-dropped code action HOT 3
- Request: add 'postcss' file support to prettier plugin HOT 5
- Trunk+VSCode on raspberry Pi 4 aarch64 fails HOT 4
- Support signed commit in `trunk-io/trunk-action/upgrade` HOT 3
- Where to report issues about very slow plugin downloads? (broken IPv6) HOT 5
- trunk fmt does not surface `biome format` errors HOT 1
- markdownlint config doesn't seem to be respected HOT 3
- [Trunk Check VSCode extension] plugin load failed; expected plugin.yaml to be present in plugin root HOT 5
- perltidy isn't installed when enabled HOT 9
- How to run txtpbfmt on text proto files? HOT 7
- Shared local config doesn't work with parent dir or unexpanded paths HOT 1
- psscriptanalyzer hanging 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 plugins.