News for hackers. Stuff that matters.
Re:Cursor Acquires Graphite by nusl on Friday December 19, 2025 @12:42PM (#46328623)
OP isn't saying to do all of your work in the terminal; they're saying they prefer CLI-based LLM interfaces. You can have your IDE running alongside it just fine, and the CLIs can often present the changes as diffs in the IDEs too.
Re:Cursor Acquires Graphite by CharlieDigital on Friday December 19, 2025 @01:52PM (#46329441)
This is how some folks on my team work. Ran into this when I saved a file manually and the editor ran formatting on it. Turns out that the dev that wrote it only codes via CLI though reviews the files in an IDE so he never manually saved it and ran the formatter.
Re:Cursor Acquires Graphite by atomicUpdate on Friday December 19, 2025 @02:02PM (#46329571)
I expect the formatter/linter to be run as part of presubmit and/or committing the code so it doesn't matter how it's edited and saved by the developer. It's strange to hear of a specific IDE being mandated to work around that, and making quick edits with tools like vi unsupported.
Re:Cursor Acquires Graphite by CharlieDigital on Friday December 19, 2025 @07:01PM (#46332415)
This was with Rider which had its own rules for which we hadn't set up an override in .editorconfig.
Re:Cursor Acquires Graphite by tyre on Friday December 19, 2025 @02:09PM (#46329659)
allow me to introduce you to the lord and savior, https://pre-commit.com/
Re:Cursor Acquires Graphite by adamcharnock on Friday December 19, 2025 @05:04PM (#46331507)
Re:Cursor Acquires Graphite by robertfw on Friday December 19, 2025 @07:04PM (#46332431)
and if your pre-commit runs fast (thank you, ruff), you can set this up as a post-edit hook in claude code
Re:Cursor Acquires Graphite by jswny on Friday December 19, 2025 @11:26PM (#46333613)
I would not recommend this. A hook that modifies files causes Claude to have to re-read the file before modifying it again, which can build up your context window fast
Re:Cursor Acquires Graphite by whalesalad on Friday December 19, 2025 @03:20PM (#46330419)
Part of a healthy codebase is ensuring that anyone can hack on it, regardless of their editor setup. Relying on something in .vscode and just assuming people are using that editor is what leads to this kind of situation.

Bake that into the workflow some other way.

Re:Cursor Acquires Graphite by satvikpendem on Saturday December 20, 2025 @02:29AM (#46334266)
Or just enforce that the team all uses the same tools, and you save quite a lot in productivity between making things work on different tools, more so than whatever productivity gains individual devs on the team get from using their own preferred tools. Many teams I know issue everyone MacBooks and enforce VSCode usage, for example, and that has saved so much time compared to other teams I've seen where devs can choose between macOS or Windows for example.
Re:Cursor Acquires Graphite by wredcoll on Saturday December 20, 2025 @12:40PM (#46337938)
Saves so much time??? Really? You set up a dev env once, how much time is it even possible to save?
Re:Cursor Acquires Graphite by satvikpendem on Saturday December 20, 2025 @12:43PM (#46337961)
No, it's saving time because some things might work on one OS but not another, and then dealing with updates to each OS that might break something, or we need a new piece of software but it doesn't work on Windows for local development, et cetera, et cetera, et cetera. There are so many ways it goes wrong, I speak from personal experience.