Closed soiamsoNG closed 4 years ago
Can you try this with VLS master and see if you have the same problem?
Have the same problem, below is the debug info
(process:8860): vls-DEBUG: 09:13:19.187: project.vala:44: Project: analyzing build targets - producers and consumers ...
(process:8860): vls-DEBUG: 09:13:19.187: project.vala:52: - gupnp-1.0.vapi@cus consumes /usr/share/gir-1.0/GUPnP-1.0.gir
(process:8860): vls-DEBUG: 09:13:19.187: project.vala:61: - gupnp-1.0.vapi@cus produces /tmp/vls-meson-2170131331-FIG8L0/gupnp-1.0.vapi
(process:8860): vls-DEBUG: 09:13:19.187: project.vala:52: - gupnp_exp@exe consumes /tmp/vls-meson-2170131331-FIG8L0/gupnp-1.0.vapi
(process:8860): vls-DEBUG: 09:13:19.187: project.vala:52: - gupnp_exp@exe consumes /home/someone/project/valaproject/src/main.vala
(process:8860): vls-DEBUG: 09:13:19.187: project.vala:52: - gupnp_exp@exe consumes /tmp/vls-meson-2170131331-FIG8L0/gupnp-1.0.vapi
(process:8860): vls-DEBUG: 09:13:19.187: project.vala:142: Project: target #0 (gupnp-1.0.vapi@cus) will be removed
(process:8860): vls-DEBUG: 09:13:19.188: compilation.vala:234: Compilation(gupnp_exp@exe): will load input sources for the first time
(process:8860): vls-WARNING **: 09:13:19.188: compilation.vala:244: Compilation(gupnp_exp@exe): Failed to open file ?/tmp/vls-meson-2170131331-FIG8L0/gupnp-1.0.vapi?: No such file or directory
(process:8860): vls-WARNING **: 09:13:19.188: compilation.vala:244: Compilation(gupnp_exp@exe): Failed to open file ?/tmp/vls-meson-2170131331-FIG8L0/gupnp-1.0.vapi?: No such file or directory
Describe the bug Necessary vapi should gen by gnome.generate_vapi(), which depended by other target, compilation fail and syntax completion not work.
fail after below point
project.vala:142: Project: target #0 (gupnp-1.0.vapi@cus) will be removed
Software OS and version : Fedora 32 Code editor: VSCode Vala Language Server : 0.48-1 copr Vala version : 0.48.6
To Reproduce
I want to apply a .metadata file to make some fix to the library existing on the system but don't want to install in to the system. Keep it under my project. below is the meson file It work with the usual command meson build;cd build;ninja. But fail under the vala-language-server.
meson.build
Below is the detail Debug info under the VSCode