All syntax guides
Short, practical guides on programming syntax, language fundamentals, and the tools developers reach for every day.
3,965 guides across 14 topics
Topics
Popular guides
Most readLatest guides
Page 7 of 397Git: fatal: refusing to merge unrelated histories
Two root commits and no merge base. Decide whether to keep both, adopt the remote, or replay your work, then use --allow-unrelated-histories only when the merge is really what you mean.
Linux: Too many open files (EMFILE) and ulimit
EMFILE is a per-process descriptor limit, ENFILE is the kernel's. Read the limit from /proc, raise it in the right layer, and find the leak that made it matter.
kubectl: You must be logged in to the server (Unauthorized)
A 401 is authentication, not RBAC. Read the kubeconfig block, check token expiry, refresh provider credentials, and tell it apart from a stale CA or a stripped header.
Java: java.lang.OutOfMemoryError: Metaspace
Class metadata lives outside the heap. Which limit was hit, how to find the classloader that grows, and why a container restart with exit code 137 is the same disease.
CS8618: Non-nullable property must contain a non-null value
Nullable reference types caught a promise the constructor does not keep. Choose required, a constructor parameter, an honest string? or a documented null-forgiving default.
Rust E0502: cannot borrow as immutable because it is also borrowed as mutable
An element borrow is a borrow of the whole container. End the borrow before reading, take disjoint borrows with split_at_mut, and keep RefCell for cases that truly need it.
Go: invalid memory address or nil pointer dereference
Most nil panics are a typed nil in an interface or a value used after an error. How each shape fails, how to return nil properly, and which stack trace detail names the cause.
Postgres: could not serialize access due to concurrent update
At REPEATABLE READ and SERIALIZABLE a conflicting write aborts with SQLSTATE 40001. Retry the whole transaction with backoff, then remove the conflict instead of retrying it.
Postgres: cached plan must not change result type
A prepared statement or PL/pgSQL plan outlived a schema change. Disable statement caching, force custom plans, discard plans, and order the deploy so no connection straddles DDL.
Docker: exec user process caused: exec format error
An arm64 image on an amd64 host is a runtime failure, not a pull failure. Diagnose the platform, build for the target, publish multi-arch, and spot the script variant.