danielbarter / mini_compile_commands Goto Github PK
View Code? Open in Web Editor NEWLicense: GNU General Public License v3.0
License: GNU General Public License v3.0
Since clangd is itself savvy to this variable, putting these in the output results in them being present twice in the eventual compilation inside clangd. (Any other LSP tools should also be aware of these on nix).
Hi,
if i understood the readme correctly mini_compile_commands is used somewhat interactively. a mini_compile_commands server needs to be manually started bevor it works.
This works fine in a shell when manually building the software, but instead of creating the compile_commands "manually" I'd prefer to create it automatically while building a derivation (through a nix build).
i couldn't get mini_compile_commands_server running properly during building a derivation. (I assume running processes just get killed by nix when the building phase switches to the next one).
Is there currently a way to get this working?
Currently, GCC and the GNU C++ standard library are bundled together in nixpkgs. Because of this, the GNU C++ standard library location isn't explicitly passed to GCC, so it doesn't appear in the compile_commands.json
.
This should be fixed as a result of NixOS/nixpkgs#132340. In the meantime, everything works as expected using clang based standard environments.
sorry I'm a bit new to this and I apologize if I'm being dumb... but I had this working once or twice and got a generated .json but now when trying to run it I get this error and it blanks out my previous .json file
self.server_bind()
File "/nix/store/svjmllfy2w2byp5q53wb8w0j2fr605w3-python3-minimal-3.10.11/lib/python3.10/socketserver.py", line 466, in server_bind
self.socket.bind(self.server_address)
OSError: [Errno 98] Address already in use```
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.