Eglot + clangd not working for NetHack code base

This page summarizes the projects mentioned and recommended in the original post on /r/emacs

Kargo - Stop Scripting Promotions. Start Shipping with Kargo
Kargo automates promotion across dev, staging, and prod with approval gates and verification. Open source, built by the team behind Argo CD. Download now.
akuity.io
sponsored
AppSignal knows why the f*#k it crashed.
Stop vibe-debugging. Every exception, every backtrace, grouped so you see patterns, not noise.
www.appsignal.com
sponsored
  1. NetHack

    Official NetHack Git Repository

    My configuration of Eglot is simple: (use-package eglot :hook (c-mode . eglot-ensure)). And it works for a single c file. But when I use this setup to read the code of NetHack, it doesn't work for linting and definition finding (M-.), even though eglot connection has no problem. I observed the same problems when reading the code of SQLite. Some specific problems I observed:

  2. Kargo

    Stop Scripting Promotions. Start Shipping with Kargo. Kargo automates promotion across dev, staging, and prod with approval gates and verification. Open source, built by the team behind Argo CD. Download now.

    Kargo logo
  3. compiledb

    Tool for generating Clang's JSON Compilation Database files for make-based build systems.

    An update: I am now able to make everything work by generating `compile_commands.json` using compiledb. I'm aware that there is another tool Bear but for some reason it generates an empty `compile_commands.json` file for me.

  4. Bear

    Generate compile_commands.json for any C or C++ build

    An update: I am now able to make everything work by generating `compile_commands.json` using compiledb. I'm aware that there is another tool Bear but for some reason it generates an empty `compile_commands.json` file for me.

NOTE: The number of mentions on this list indicates mentions on common posts plus user suggested alternatives. Hence, a higher number means a more popular project.

Suggest a related project

Related posts

  • NetHack 5.0.0

    4 projects | news.ycombinator.com | 2 May 2026
  • My other email client is a daemon

    2 projects | news.ycombinator.com | 22 Aug 2025
  • Installing NH 3.7 on Win11 without using Linux?

    1 project | /r/nethack | 7 Dec 2023
  • First version of nethack with a bestiary?

    2 projects | /r/nethack | 3 Jun 2023
  • NetHack splash screen source? (question in comments)

    1 project | /r/nethack | 18 May 2023