rust-analyzer: Manually Reloading Workspace
rust-analyzer wasn’t picking up my Cargo.toml changes. Had to reload manually. The Problem Modified Cargo.toml to add a new dependency. rust-analyzer didn’t notice. LSP features (autocomplete, ...
rust-analyzer wasn’t picking up my Cargo.toml changes. Had to reload manually. The Problem Modified Cargo.toml to add a new dependency. rust-analyzer didn’t notice. LSP features (autocomplete, ...
Spent hours debugging why rustic-format-buffer wasn’t working in Emacs. The error? “Program not found: No such file or directory, cargo” The Problem rustic-format-buffer Error: Program not foun...
Elfeed (RSS reader for Emacs) was showing way too many old entries. Here’s how to clear it. The Problem Thousands of old RSS entries cluttering my elfeed buffer. Search was slow, scrolling was ...
Emacs was taking forever to start. Found the built-in profiler to track down the culprit. The Commands M-x profiler-start # Do the slow thing (restart Emacs, open files, etc.) M-x profiler-repo...
Spent an hour debugging why my S3 bucket policy changes weren’t working. Turns out: browser cache. The Problem Changed S3 bucket policy to make a file public. Tested in Chrome. Still getting 40...
Been looking into rate limiting for calling third-party APIs. Two main algorithms keep coming up: Leaky Bucket and Token Bucket. Here’s what I learned. The Problem Calling external APIs without...
Been thinking about my default Go project setup. Here’s what I’m settling on. The Stack Database: sqlc Generates type-safe Go code from SQL No ORM magic, just SQL Compile-time safety T...
Confused moment: Doom Emacs org +present module doesn’t use the org-present package. It uses org-tree-slide-mode instead. The Confusion Saw the +present flag in Doom’s org module config. Assume...
Mar 16 Go 1.18 released Generic types support tutorial func Foo[K comparable, C int32 | float32] (m map[K]C, args... any) C { //code } new declarations: any, comparable type constraint fo...
vim 下想实现code中 function/class 等 definition跳转. 比较简单的方法就是使用ctags 分析代码, 然后根据生成的tags table文件, 来做code index 的定位. 目前比较流行的 code definition/references 查询是LSP, 需要架设一个 language service backend, 与之通信. 这里先记录下使...