Subproject check does not understand f-strings
Closed this issue · 1 comments
QuLogic commented
Describe the bug
In Matplotlib, we have a subproject
call that uses an f-string with a version:
https://github.com/matplotlib/matplotlib/blob/main/extern/meson.build#L19-L21
With mesonlsp
, this produces a warning:
Unknown subproject `freetype-@LOCAL_FREETYPE_VERSION@`
To Reproduce
Steps to reproduce the behavior:
- Clone https://github.com/matplotlib/matplotlib
- Open
extern/meson.build
- Go to line 19
- See error noted above.
Expected behavior
No warning, as there is a subproject for the evaluated string, i.e. if I replace the substitution with a hard-coded string, then mesonlsp
stops complaining.
System info
- OS: Fedora, from your COPR
- Editor: neovim 0.10.0
- Version: 4.3.1
JCWasmx86 commented
I implemented it quickly. It works as long as there is only one variable.