Skip to content

asm-lsp not working correct for linux kernel source code #14295

@marcosps

Description

@marcosps

Summary

When opening an assembly file I expected it to correctly highlight the code, and having the symbol searching to work, but it's not the case when opening an asm file in the Linux kernel.

Reproduction Steps

Having this set on languages.toml

[[language]]                                                                                                          
name = "gas"                                                                                                          
file-types = ["s", "S"]                                                                                               
scope = "source.llvm"                                                                                                 
language-servers = ["asm-lsp"]

And then opening a file with C and asm on the linux kernel:

hx arch/x86/kernel/ftrace_64.S

I expected the whole file to be able to search for symbols, but the lsp is not working, and the highlight is partially working.

Image

Maybe this issue is on asm-lsp, but either way I would like to report it here since I've being playing with languages.toml and I'm perhaps using it wrong...

Helix log

~/.cache/helix/helix.log

The original file has 160Mb... which is given the amount of paths of compile_commands.json generated by the kernel I suppose...

helix.log.gz

Platform

Linux

Terminal Emulator

ptyxis

Installation Method

openSUSE Tumbleweed repository

Helix Version

helix 25.07 (5cda70e)

Metadata

Metadata

Assignees

No one assigned

    Labels

    C-bugCategory: This is a bug

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions