Meson build files starting with comments apparently inhibit rust analyzer from running
Hi everyone,
I apologize in advance if this turns out to be me overlooking something, but I just spent an afternoon going crazy over a project where code indexing (using rust analyzer from rust-stable sdk extension) just stopped working, claiming there was no client to send a request to the language server when hovering stuff on the editor.
It continued working perfectly on other projects on the same machine. After purging the whole builder installation and starting fresh and seeing the same behaviour I began rolling back some of last commits I made. Specifically, it started working again when I rolled back the commits containing SPDX comments at the start of meson.build files.
Removing these lines at the start of each meson.build file solved the problem:
# SPDX-FileCopyrightText: 2022 Andrea Coronese
# SPDX-License-Identifier: GPL-3.0-or-later
I am on elementary OS 6.1 using Gnome Builder 42.0 from flatpak, but I was able to reproduce the same exact problem on a fedora 35 VM with regular dnf installation.
I suspect there must be a simpler explanation, and this is probably a false alarm, but I though it was worth mentioning anyway.