7 ms·
It's not always amenable to grepping. But this is a great use case for AST searches, and is part of the reason that LSP tools should really be better integrated
by jxf 5mo ago
It's not always amenable to grepping. But this is a great use case for AST searches, and is part of the reason that LSP tools should really be better integrated with agents.
- philipwhiuk 5mo agoAh yes, don't fix the agents, fix the tools. What a ridiculously backwards approach. We were supposed to get agents who could use human tooling. Instead we are apparently told to write interfaces for this stumbling expensive mess to use. Maybe, just maybe, if the human can know to, and use, the AST tool fine, the problem is not the tool but the agent.
- jxf 5mo agoIt's much harder to search using an AST tool for a human. It's certainly harder than grepping, for example. I use AST tools myself, but it takes a while to represent a complex structure in a big codebase when I need to look for that.
- skydhash 5mo agoProgramming language are formal, so unless you’re doing magic stuff (eval and reflection), you can probably grep into a file, eliminate false positive cases, then do a bit of awk or shell scripting with sed. Or use Vim or Emacs tooling.
- esafak 5mo agoAgents do use LSPs.
- PaulDavisThe1st 5mo agoWorks fine in algol-like languages (C, C++ for a start) by just changing the function prototype and finding all instances from the compiler errors, using your compiler as the AST explorer ...