Comments (4)
In my opinion, consuming raw compile_commands.json
generated by gn isn't feasible for tools like clangd, since gn dumps raw commands with all the flags used to build the target. I don't work at Google and therefore don't use Goma or RBE, but I encountered the same issue a long time ago and developed a solution to parse compile_commands.json
and filter out flags unnecessary for consuming tools.
You can find my script here: https://gist.github.com/bc-lee/8707d1e62d14f8bb6bd30ef6e67f1625
The script modifies the compile_commands.json
file by removing flags that clangd doesn't need. It's not perfect, but it works for me. At least it's much easier than maintaining a separate output folder to avoid using unnecessary flags with clangd.
Example usage:
$ gn gen --export-compile-commands out/out_dir && parse-compile-commands out/out_dir
from flutter.
Thanks @bc-lee, that certainly is an option, maybe even the best one.
I'll let the rest of the engine team weigh in, but I appreciate the contribution!
from flutter.
Duplicate of #147767, and closed by flutter/engine#53135.
from flutter.
This thread has been automatically locked since there has not been any recent activity after it was closed. If you are still experiencing a similar issue, please open a new bug, including the output of flutter doctor -v
and a minimal reproduction of the issue.
from flutter.
Related Issues (20)
- [shared_preferences] Execution failed for task ':shared_preferences_android:compileDebugKotlin'. HOT 2
- Flutter web usePathUrlStrategy bug, loading infinite HOT 2
- query params not working in 3.24.0 HOT 2
- Flutter is only using one CPU Core on certain Android phones (Pixel 8...) for UI, Raster and Isolates HOT 1
- `'!ancestor._needsSemanticsUpdate': is not true.` assertion failure on Flutter 3.24.0 HOT 4
- `CarouselView` animation stops working after rebuild HOT 4
- Connected device (the doctor check crashed) HOT 1
- iOS crash because of SIGSEGV(SEGV_ACCERR) GPUSurfaceMetalImpeller::AcquireFrameFromCAMetalLayer HOT 4
- Form does not work in scroll views HOT 2
- 3.25 Branch Info
- mac-25 lost external connection phone device. HOT 2
- linux-51 is dead. HOT 2
- mac-23 lost external connection phone device. HOT 2
- [tool_crash] FileSystemException: Directory listing failed, OS Error: Operation timed out, errno = 60 HOT 1
- Painting text with TextPainter on scaled canvas doesn't work on iOS with version 3.24.0 HOT 2
- [tool_crash] SocketException: Connection refused, OS Error: Connection refused, errno = 111 HOT 3
- Time picker invalid layout issue HOT 1
- Transform.rotate changes location of Icon on IOS but works as expected on android HOT 4
- Dart -> Engine roll failing HOT 8
- [Release] Exception Encountered During Flutter 3.25 Beta Startup
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 flutter.