Eglot + clangd not working for NetHack code base

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

SaaSHub - Software Alternatives and Reviews
SaaSHub helps you find the best software and product alternatives
www.saashub.com
featured
  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. SaaSHub

    SaaSHub - Software Alternatives and Reviews. SaaSHub helps you find the best software and product alternatives

    SaaSHub 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

    Bear is a tool that generates a compilation database for clang tooling.

    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

Did you know that C++ is
the 7th most popular programming language
based on number of references?