Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

VLS's suggestion for internal dependency break with meson 0.55.0 #139

Closed
Cogitri opened this issue Jul 17, 2020 · 6 comments · Fixed by #150
Closed

VLS's suggestion for internal dependency break with meson 0.55.0 #139

Cogitri opened this issue Jul 17, 2020 · 6 comments · Fixed by #150
Labels

Comments

@Cogitri
Copy link
Contributor

Cogitri commented Jul 17, 2020

Describe the bug
After upgrading from meson 0.54.3 to meson 0.55.0, VLS stopped showing suggestions & finding symbols from an internal dependency of mine. My setup looks like this:
-> final executable (with main)
static library (contains everything but main()) |
-> various test executables

I defined the static lib like this in my meson.build:

lib_src = files(
    'database.vala',
    'jobs.vala',
    'poller.vala',
    'server.vala',
)

static_lib = static_library(
    'alpine-qa-bot-static-lib',
    lib_src,
    dependencies: deps,
    vala_header: 'alpine-qa-bot.h',
    vala_vapi: 'alpine-qa-bot-0.0.vapi',
    vala_gir: 'Alpine-Qa-Bot-0.0.gir',
)

static_lib_dep = declare_dependency(
    link_with: static_lib,
    dependencies: deps,
    include_directories: include_directories('.'),
)

And depend on it via dependencies: static_lib_dep in the executables which link against it. This works fine with meson 0.55.0 too (as in it builds and passes tests, etc.), but breaks VLS.

I've diffed the output of VLS with meson 0.54.3 vs 0.55.0, in case that helps:

--- meson-old-0.54.3	2020-07-17 21:04:04.916568742 +0200
+++ meson-new-0.55.0	2020-07-17 21:04:27.698779599 +0200
@@ -6,7 +6,7 @@
 
 (process:1): vls-WARNING **: 20 Compilation(affe66b@@alpine-qa-bot-static-lib@sta) ignoring argument #19 (--color=always)
 
-(process:1): vls-WARNING **: 20 Compilation(affe66b@@alpine-qa-bot-static-lib@sta) ignoring argument #21 (alpine-qa-bot/affe66b@@alpine-qa-bot-static-lib@sta)
+(process:1): vls-WARNING **: 20 Compilation(affe66b@@alpine-qa-bot-static-lib@sta) ignoring argument #21 (alpine-qa-bot/libalpine-qa-bot-static-lib.a.p)
 
 (process:1): vls-WARNING **: 20 Compilation(affe66b@@alpine-qa-bot-static-lib@sta) ignoring argument #23 (../../home/rasmus/Projects/gitlab-bot/alpine-qa-bot)
 
@@ -22,7 +22,7 @@
 
 (process:1): vls-WARNING **: 20 Compilation(affe66b@@alpine-qa-bot-server@exe) ignoring argument #19 (--color=always)
 
-(process:1): vls-WARNING **: 20 Compilation(affe66b@@alpine-qa-bot-server@exe) ignoring argument #21 (alpine-qa-bot/affe66b@@alpine-qa-bot-server@exe)
+(process:1): vls-WARNING **: 20 Compilation(affe66b@@alpine-qa-bot-server@exe) ignoring argument #21 (alpine-qa-bot/alpine-qa-bot-server.p)
 
 (process:1): vls-WARNING **: 20 Compilation(affe66b@@alpine-qa-bot-server@exe) ignoring argument #23 (../../home/rasmus/Projects/gitlab-bot/alpine-qa-bot)
 
@@ -34,7 +34,7 @@
 
 (process:1): vls-WARNING **: 20 Compilation(59830eb@@alpine-qa-bot-test-lib@sta) ignoring argument #9 (--color=always)
 
-(process:1): vls-WARNING **: 20 Compilation(59830eb@@alpine-qa-bot-test-lib@sta) ignoring argument #11 (tests/59830eb@@alpine-qa-bot-test-lib@sta)
+(process:1): vls-WARNING **: 20 Compilation(59830eb@@alpine-qa-bot-test-lib@sta) ignoring argument #11 (tests/libalpine-qa-bot-test-lib.a.p)
 
 (process:1): vls-WARNING **: 20 Compilation(59830eb@@alpine-qa-bot-test-lib@sta) ignoring argument #13 (../../home/rasmus/Projects/gitlab-bot/tests)
 
@@ -50,7 +50,7 @@
 
 (process:1): vls-WARNING **: 20 Compilation(59830eb@@alpine-qa-bot-jobs-test@exe) ignoring argument #21 (--color=always)
 
-(process:1): vls-WARNING **: 20 Compilation(59830eb@@alpine-qa-bot-jobs-test@exe) ignoring argument #23 (tests/59830eb@@alpine-qa-bot-jobs-test@exe)
+(process:1): vls-WARNING **: 20 Compilation(59830eb@@alpine-qa-bot-jobs-test@exe) ignoring argument #23 (tests/alpine-qa-bot-jobs-test.p)
 
 (process:1): vls-WARNING **: 20 Compilation(59830eb@@alpine-qa-bot-jobs-test@exe) ignoring argument #25 (../../home/rasmus/Projects/gitlab-bot/tests)
 
@@ -62,7 +62,7 @@
 
 (process:1): vls-WARNING **: 20 Compilation(59830eb@@alpine-qa-bot-server-test@exe) ignoring argument #21 (--color=always)
 
-(process:1): vls-WARNING **: 20 Compilation(59830eb@@alpine-qa-bot-server-test@exe) ignoring argument #23 (tests/59830eb@@alpine-qa-bot-server-test@exe)
+(process:1): vls-WARNING **: 20 Compilation(59830eb@@alpine-qa-bot-server-test@exe) ignoring argument #23 (tests/alpine-qa-bot-server-test.p)
 
 (process:1): vls-WARNING **: 20 Compilation(59830eb@@alpine-qa-bot-server-test@exe) ignoring argument #25 (../../home/rasmus/Projects/gitlab-bot/tests)
 
@@ -74,7 +74,7 @@
 
 (process:1): vls-WARNING **: 20 Compilation(59830eb@@alpine-qa-bot-database-test@exe) ignoring argument #21 (--color=always)
 
-(process:1): vls-WARNING **: 20 Compilation(59830eb@@alpine-qa-bot-database-test@exe) ignoring argument #23 (tests/59830eb@@alpine-qa-bot-database-test@exe)
+(process:1): vls-WARNING **: 20 Compilation(59830eb@@alpine-qa-bot-database-test@exe) ignoring argument #23 (tests/alpine-qa-bot-database-test.p)
 
 (process:1): vls-WARNING **: 20 Compilation(59830eb@@alpine-qa-bot-database-test@exe) ignoring argument #25 (../../home/rasmus/Projects/gitlab-bot/tests)
 
@@ -86,7 +86,7 @@
 
 (process:1): vls-WARNING **: 20 Compilation(59830eb@@alpine-qa-bot-poller-test@exe) ignoring argument #21 (--color=always)
 
-(process:1): vls-WARNING **: 20 Compilation(59830eb@@alpine-qa-bot-poller-test@exe) ignoring argument #23 (tests/59830eb@@alpine-qa-bot-poller-test@exe)
+(process:1): vls-WARNING **: 20 Compilation(59830eb@@alpine-qa-bot-poller-test@exe) ignoring argument #23 (tests/alpine-qa-bot-poller-test.p)
 
 (process:1): vls-WARNING **: 20 Compilation(59830eb@@alpine-qa-bot-poller-test@exe) ignoring argument #25 (../../home/rasmus/Projects/gitlab-bot/tests)
`` 


**Software**
OS and version (e.g. Ubuntu 20.04): Alpine Linux Edge
Code editor (e.g. VSCode): VSCode
Vala Language Server (e.g. git commit, or PPA/AUR version): Tested with VLS 0.48.0 and latest git (211648cb2f978824f13d06c6fe2dfae1b658b91d)
Vala version (`valac --version`): Vala 0.48.7

**To Reproduce**
Source code repo: https://gitlab.alpinelinux.org/Cogitri/alpine-qa-bot . See the README for dependencies.

Steps to reproduce the behavior:
1. Install meson 0.55.0
2. Go to one of the test vala files, e.g. `tests/jobs_test.vala`. VLS doesn't know the symbols of the internal static lib, so it marks everything that's prefixed with `AlpineQaBot` red. External symbols (e.g. `GLib.*` or `Uhm.Server`) appear to work just fine.
@Prince781 Prince781 added the bug label Jul 18, 2020
@Prince781
Copy link
Member

Interesting. I haven't taken a look at this at all yet, but just from looking at your diff'ed output it looks like Meson 0.55.0 possibly changed the IDs used for build targets.

Prince781 added a commit that referenced this issue Sep 17, 2020
Meson 0.55 changed the way build dirs are named, which broke our hack to
find extra target compiler flags in compile_commands.json

Fixes #139
Prince781 added a commit that referenced this issue Sep 17, 2020
Meson 0.55 changed the way build dirs are named, which broke our hack to
find extra target compiler flags in compile_commands.json

Fixes #139
@Prince781
Copy link
Member

@Cogitri please try out the fix and verify things work on your end.

Prince781 added a commit that referenced this issue Sep 18, 2020
Meson 0.55 changed the way build dirs are named, which broke our hack to
find extra target compiler flags in compile_commands.json

Fixes #139
Prince781 added a commit that referenced this issue Sep 18, 2020
Meson 0.55 changed the way build dirs are named, which broke our hack to
find extra target compiler flags in compile_commands.json

Fixes #139
@Cogitri
Copy link
Contributor Author

Cogitri commented Sep 18, 2020

Hm, unfortunately it seems like it's not fixed with the latest commit from the 139-vls-internal-deps branch (639bdd9). It still doesn't find the symbols of my own project:

Screenshot from 2020-09-18 16-50-29

The project itself compiles fine though. Tested with meson 0.55.3

Here's the log if that helps:


(process:14185): vls-WARNING **: 16:48:51.474: compilation.vala:159: Compilation(affe66b@@alpine-qa-bot-static-lib@sta) ignoring argument #0 (-C)

(process:14185): vls-WARNING **: 16:48:51.474: compilation.vala:159: Compilation(affe66b@@alpine-qa-bot-static-lib@sta) ignoring argument #1 (--debug)

(process:14185): vls-WARNING **: 16:48:51.474: compilation.vala:159: Compilation(affe66b@@alpine-qa-bot-static-lib@sta) ignoring argument #2 (--debug)

(process:14185): vls-WARNING **: 16:48:51.474: compilation.vala:159: Compilation(affe66b@@alpine-qa-bot-static-lib@sta) ignoring argument #19 (--color=always)

(process:14185): vls-WARNING **: 16:48:51.474: compilation.vala:159: Compilation(affe66b@@alpine-qa-bot-static-lib@sta) ignoring argument #21 (alpine-qa-bot/libalpine-qa-bot-static-lib.a.p)

(process:14185): vls-WARNING **: 16:48:51.474: compilation.vala:159: Compilation(affe66b@@alpine-qa-bot-static-lib@sta) ignoring argument #23 (../../home/rasmus/Projects/gitlab-bot/alpine-qa-bot)

(process:14185): vls-WARNING **: 16:48:51.474: compilation.vala:159: Compilation(affe66b@@alpine-qa-bot-static-lib@sta) ignoring argument #25 (alpine-qa-bot-static-lib)

(process:14185): vls-WARNING **: 16:48:51.474: compilation.vala:159: Compilation(affe66b@@alpine-qa-bot-static-lib@sta) ignoring argument #27 (alpine-qa-bot/alpine-qa-bot.h)

(process:14185): vls-WARNING **: 16:48:51.475: compilation.vala:159: Compilation(affe66b@@alpine-qa-bot-server@exe) ignoring argument #0 (-C)

(process:14185): vls-WARNING **: 16:48:51.475: compilation.vala:159: Compilation(affe66b@@alpine-qa-bot-server@exe) ignoring argument #1 (--debug)

(process:14185): vls-WARNING **: 16:48:51.475: compilation.vala:159: Compilation(affe66b@@alpine-qa-bot-server@exe) ignoring argument #2 (--debug)

(process:14185): vls-WARNING **: 16:48:51.475: compilation.vala:159: Compilation(affe66b@@alpine-qa-bot-server@exe) ignoring argument #19 (--color=always)

(process:14185): vls-WARNING **: 16:48:51.475: compilation.vala:159: Compilation(affe66b@@alpine-qa-bot-server@exe) ignoring argument #21 (alpine-qa-bot/alpine-qa-bot-server.p)

(process:14185): vls-WARNING **: 16:48:51.475: compilation.vala:159: Compilation(affe66b@@alpine-qa-bot-server@exe) ignoring argument #23 (../../home/rasmus/Projects/gitlab-bot/alpine-qa-bot)

(process:14185): vls-WARNING **: 16:48:51.475: compilation.vala:159: Compilation(59830eb@@alpine-qa-bot-test-lib@sta) ignoring argument #0 (-C)

(process:14185): vls-WARNING **: 16:48:51.475: compilation.vala:159: Compilation(59830eb@@alpine-qa-bot-test-lib@sta) ignoring argument #1 (--debug)

(process:14185): vls-WARNING **: 16:48:51.475: compilation.vala:159: Compilation(59830eb@@alpine-qa-bot-test-lib@sta) ignoring argument #2 (--debug)

(process:14185): vls-WARNING **: 16:48:51.475: compilation.vala:159: Compilation(59830eb@@alpine-qa-bot-test-lib@sta) ignoring argument #9 (--color=always)

(process:14185): vls-WARNING **: 16:48:51.475: compilation.vala:159: Compilation(59830eb@@alpine-qa-bot-test-lib@sta) ignoring argument #11 (tests/libalpine-qa-bot-test-lib.a.p)

(process:14185): vls-WARNING **: 16:48:51.475: compilation.vala:159: Compilation(59830eb@@alpine-qa-bot-test-lib@sta) ignoring argument #13 (../../home/rasmus/Projects/gitlab-bot/tests)

(process:14185): vls-WARNING **: 16:48:51.475: compilation.vala:159: Compilation(59830eb@@alpine-qa-bot-test-lib@sta) ignoring argument #15 (alpine-qa-bot-test-lib)

(process:14185): vls-WARNING **: 16:48:51.475: compilation.vala:159: Compilation(59830eb@@alpine-qa-bot-test-lib@sta) ignoring argument #17 (tests/alpine-qa-bot-test-lib.h)

(process:14185): vls-WARNING **: 16:48:51.476: compilation.vala:159: Compilation(59830eb@@alpine-qa-bot-jobs-test@exe) ignoring argument #0 (-C)

(process:14185): vls-WARNING **: 16:48:51.476: compilation.vala:159: Compilation(59830eb@@alpine-qa-bot-jobs-test@exe) ignoring argument #1 (--debug)

(process:14185): vls-WARNING **: 16:48:51.476: compilation.vala:159: Compilation(59830eb@@alpine-qa-bot-jobs-test@exe) ignoring argument #2 (--debug)

(process:14185): vls-WARNING **: 16:48:51.476: compilation.vala:159: Compilation(59830eb@@alpine-qa-bot-jobs-test@exe) ignoring argument #21 (--color=always)

(process:14185): vls-WARNING **: 16:48:51.476: compilation.vala:159: Compilation(59830eb@@alpine-qa-bot-jobs-test@exe) ignoring argument #23 (tests/alpine-qa-bot-jobs-test.p)

(process:14185): vls-WARNING **: 16:48:51.476: compilation.vala:159: Compilation(59830eb@@alpine-qa-bot-jobs-test@exe) ignoring argument #25 (../../home/rasmus/Projects/gitlab-bot/tests)

(process:14185): vls-WARNING **: 16:48:51.477: compilation.vala:159: Compilation(59830eb@@alpine-qa-bot-server-test@exe) ignoring argument #0 (-C)

(process:14185): vls-WARNING **: 16:48:51.477: compilation.vala:159: Compilation(59830eb@@alpine-qa-bot-server-test@exe) ignoring argument #1 (--debug)

(process:14185): vls-WARNING **: 16:48:51.477: compilation.vala:159: Compilation(59830eb@@alpine-qa-bot-server-test@exe) ignoring argument #2 (--debug)

(process:14185): vls-WARNING **: 16:48:51.477: compilation.vala:159: Compilation(59830eb@@alpine-qa-bot-server-test@exe) ignoring argument #21 (--color=always)

(process:14185): vls-WARNING **: 16:48:51.477: compilation.vala:159: Compilation(59830eb@@alpine-qa-bot-server-test@exe) ignoring argument #23 (tests/alpine-qa-bot-server-test.p)

(process:14185): vls-WARNING **: 16:48:51.477: compilation.vala:159: Compilation(59830eb@@alpine-qa-bot-server-test@exe) ignoring argument #25 (../../home/rasmus/Projects/gitlab-bot/tests)

(process:14185): vls-WARNING **: 16:48:51.478: compilation.vala:159: Compilation(59830eb@@alpine-qa-bot-database-test@exe) ignoring argument #0 (-C)

(process:14185): vls-WARNING **: 16:48:51.478: compilation.vala:159: Compilation(59830eb@@alpine-qa-bot-database-test@exe) ignoring argument #1 (--debug)

(process:14185): vls-WARNING **: 16:48:51.478: compilation.vala:159: Compilation(59830eb@@alpine-qa-bot-database-test@exe) ignoring argument #2 (--debug)

(process:14185): vls-WARNING **: 16:48:51.478: compilation.vala:159: Compilation(59830eb@@alpine-qa-bot-database-test@exe) ignoring argument #21 (--color=always)

(process:14185): vls-WARNING **: 16:48:51.478: compilation.vala:159: Compilation(59830eb@@alpine-qa-bot-database-test@exe) ignoring argument #23 (tests/alpine-qa-bot-database-test.p)

(process:14185): vls-WARNING **: 16:48:51.478: compilation.vala:159: Compilation(59830eb@@alpine-qa-bot-database-test@exe) ignoring argument #25 (../../home/rasmus/Projects/gitlab-bot/tests)

(process:14185): vls-WARNING **: 16:48:51.478: compilation.vala:159: Compilation(59830eb@@alpine-qa-bot-poller-test@exe) ignoring argument #0 (-C)

(process:14185): vls-WARNING **: 16:48:51.478: compilation.vala:159: Compilation(59830eb@@alpine-qa-bot-poller-test@exe) ignoring argument #1 (--debug)

(process:14185): vls-WARNING **: 16:48:51.478: compilation.vala:159: Compilation(59830eb@@alpine-qa-bot-poller-test@exe) ignoring argument #2 (--debug)

(process:14185): vls-WARNING **: 16:48:51.478: compilation.vala:159: Compilation(59830eb@@alpine-qa-bot-poller-test@exe) ignoring argument #21 (--color=always)

(process:14185): vls-WARNING **: 16:48:51.478: compilation.vala:159: Compilation(59830eb@@alpine-qa-bot-poller-test@exe) ignoring argument #23 (tests/alpine-qa-bot-poller-test.p)

(process:14185): vls-WARNING **: 16:48:51.478: compilation.vala:159: Compilation(59830eb@@alpine-qa-bot-poller-test@exe) ignoring argument #25 (../../home/rasmus/Projects/gitlab-bot/tests)

(process:14185): vala-CRITICAL **: 16:48:54.550: vala_symbol_get_name: assertion 'self != NULL' failed

(process:14185): vala-CRITICAL **: 16:48:54.552: vala_symbol_get_name: assertion 'self != NULL' failed

(process:14185): vala-CRITICAL **: 16:48:54.552: vala_symbol_get_name: assertion 'self != NULL' failed

(process:14185): vala-CRITICAL **: 16:48:54.552: vala_symbol_get_name: assertion 'self != NULL' failed

(process:14185): vala-CRITICAL **: 16:48:54.562: vala_symbol_get_name: assertion 'self != NULL' failed

(process:14185): vala-CRITICAL **: 16:48:54.565: vala_symbol_get_name: assertion 'self != NULL' failed

(process:14185): vala-CRITICAL **: 16:48:54.567: vala_symbol_get_name: assertion 'self != NULL' failed

(process:14185): vala-CRITICAL **: 16:48:54.568: vala_symbol_get_name: assertion 'self != NULL' failed

(process:14185): vala-CRITICAL **: 16:48:54.585: vala_symbol_get_name: assertion 'self != NULL' failed

(process:14185): vala-CRITICAL **: 16:48:54.585: vala_symbol_get_name: assertion 'self != NULL' failed

(process:14185): vala-CRITICAL **: 16:48:54.611: vala_symbol_get_name: assertion 'self != NULL' failed

(process:14185): vala-CRITICAL **: 16:48:54.611: vala_symbol_get_name: assertion 'self != NULL' failed

(process:14185): vala-CRITICAL **: 16:48:54.628: vala_symbol_get_name: assertion 'self != NULL' failed

(process:14185): vala-CRITICAL **: 16:48:54.628: vala_symbol_get_name: assertion 'self != NULL' failed

(process:14185): vala-CRITICAL **: 16:48:54.633: vala_symbol_get_name: assertion 'self != NULL' failed

(process:14185): vala-CRITICAL **: 16:48:54.633: vala_symbol_get_name: assertion 'self != NULL' failed

(process:14185): vala-CRITICAL **: 16:48:54.633: vala_symbol_get_name: assertion 'self != NULL' failed

(process:14185): vala-CRITICAL **: 16:48:54.635: vala_symbol_get_name: assertion 'self != NULL' failed

(process:14185): vala-CRITICAL **: 16:48:54.635: vala_symbol_get_name: assertion 'self != NULL' failed

(process:14185): vala-CRITICAL **: 16:48:54.705: vala_object_type_construct: assertion 'type_symbol != NULL' failed

(process:14185): vala-CRITICAL **: 16:48:54.705: vala_interface_add_prerequisite: assertion 'type != NULL' failed

(process:14185): vala-CRITICAL **: 16:48:54.705: vala_object_type_construct: assertion 'type_symbol != NULL' failed

(process:14185): vala-CRITICAL **: 16:48:54.705: vala_interface_add_prerequisite: assertion 'type != NULL' failed

(process:14185): vala-CRITICAL **: 16:48:54.705: vala_object_type_construct: assertion 'type_symbol != NULL' failed

(process:14185): vala-CRITICAL **: 16:48:54.705: vala_interface_add_prerequisite: assertion 'type != NULL' failed

(process:14185): vala-CRITICAL **: 16:48:54.705: vala_object_type_construct: assertion 'type_symbol != NULL' failed

(process:14185): vala-CRITICAL **: 16:48:54.705: vala_interface_add_prerequisite: assertion 'type != NULL' failed

(process:14185): vala-CRITICAL **: 16:48:54.705: vala_object_type_construct: assertion 'type_symbol != NULL' failed

(process:14185): vala-CRITICAL **: 16:48:54.705: vala_interface_add_prerequisite: assertion 'type != NULL' failed

(process:14185): vala-CRITICAL **: 16:48:54.705: vala_object_type_construct: assertion 'type_symbol != NULL' failed

(process:14185): vala-CRITICAL **: 16:48:54.705: vala_interface_add_prerequisite: assertion 'type != NULL' failed

(process:14185): vala-CRITICAL **: 16:48:54.705: vala_object_type_construct: assertion 'type_symbol != NULL' failed

(process:14185): vala-CRITICAL **: 16:48:54.705: vala_interface_add_prerequisite: assertion 'type != NULL' failed

(process:14185): vala-CRITICAL **: 16:48:54.705: vala_object_type_construct: assertion 'type_symbol != NULL' failed

(process:14185): vala-CRITICAL **: 16:48:54.705: vala_interface_add_prerequisite: assertion 'type != NULL' failed

(process:14185): vala-CRITICAL **: 16:48:54.705: vala_object_type_construct: assertion 'type_symbol != NULL' failed

(process:14185): vala-CRITICAL **: 16:48:54.705: vala_interface_add_prerequisite: assertion 'type != NULL' failed

(process:14185): vala-CRITICAL **: 16:48:54.705: vala_object_type_construct: assertion 'type_symbol != NULL' failed

(process:14185): vala-CRITICAL **: 16:48:54.705: vala_interface_add_prerequisite: assertion 'type != NULL' failed

(process:14185): vala-CRITICAL **: 16:48:54.705: vala_object_type_construct: assertion 'type_symbol != NULL' failed

(process:14185): vala-CRITICAL **: 16:48:54.705: vala_interface_add_prerequisite: assertion 'type != NULL' failed

(process:14185): vala-CRITICAL **: 16:48:54.705: vala_object_type_construct: assertion 'type_symbol != NULL' failed

(process:14185): vala-CRITICAL **: 16:48:54.705: vala_interface_add_prerequisite: assertion 'type != NULL' failed

(process:14185): vala-CRITICAL **: 16:48:54.705: vala_object_type_construct: assertion 'type_symbol != NULL' failed

(process:14185): vala-CRITICAL **: 16:48:54.705: vala_interface_add_prerequisite: assertion 'type != NULL' failed

(process:14185): vala-CRITICAL **: 16:48:54.705: vala_object_type_construct: assertion 'type_symbol != NULL' failed

(process:14185): vala-CRITICAL **: 16:48:54.705: vala_interface_add_prerequisite: assertion 'type != NULL' failed

(process:14185): vala-CRITICAL **: 16:48:54.705: vala_object_type_construct: assertion 'type_symbol != NULL' failed

(process:14185): vala-CRITICAL **: 16:48:54.705: vala_interface_add_prerequisite: assertion 'type != NULL' failed

(process:14185): vala-CRITICAL **: 16:48:54.705: vala_object_type_construct: assertion 'type_symbol != NULL' failed

(process:14185): vala-CRITICAL **: 16:48:54.705: vala_interface_add_prerequisite: assertion 'type != NULL' failed

(process:14185): vala-CRITICAL **: 16:48:54.705: vala_object_type_construct: assertion 'type_symbol != NULL' failed

(process:14185): vala-CRITICAL **: 16:48:54.705: vala_interface_add_prerequisite: assertion 'type != NULL' failed

(process:14185): vala-CRITICAL **: 16:48:54.705: vala_object_type_construct: assertion 'type_symbol != NULL' failed

(process:14185): vala-CRITICAL **: 16:48:54.705: vala_interface_add_prerequisite: assertion 'type != NULL' failed

(process:14185): vala-CRITICAL **: 16:48:54.705: vala_object_type_construct: assertion 'type_symbol != NULL' failed

(process:14185): vala-CRITICAL **: 16:48:54.705: vala_interface_add_prerequisite: assertion 'type != NULL' failed

(process:14185): vala-CRITICAL **: 16:48:54.705: vala_object_type_construct: assertion 'type_symbol != NULL' failed

(process:14185): vala-CRITICAL **: 16:48:54.705: vala_interface_add_prerequisite: assertion 'type != NULL' failed

(process:14185): vala-CRITICAL **: 16:48:54.705: vala_object_type_construct: assertion 'type_symbol != NULL' failed

(process:14185): vala-CRITICAL **: 16:48:54.705: vala_interface_add_prerequisite: assertion 'type != NULL' failed

(process:14185): vala-CRITICAL **: 16:48:54.705: vala_object_type_construct: assertion 'type_symbol != NULL' failed

(process:14185): vala-CRITICAL **: 16:48:54.705: vala_interface_add_prerequisite: assertion 'type != NULL' failed

(process:14185): vala-CRITICAL **: 16:48:54.705: vala_object_type_construct: assertion 'type_symbol != NULL' failed

(process:14185): vala-CRITICAL **: 16:48:54.705: vala_interface_add_prerequisite: assertion 'type != NULL' failed

(process:14185): vala-CRITICAL **: 16:48:54.705: vala_object_type_construct: assertion 'type_symbol != NULL' failed

(process:14185): vala-CRITICAL **: 16:48:54.705: vala_interface_add_prerequisite: assertion 'type != NULL' failed

(process:14185): vala-CRITICAL **: 16:48:54.705: vala_object_type_construct: assertion 'type_symbol != NULL' failed

(process:14185): vala-CRITICAL **: 16:48:54.705: vala_interface_add_prerequisite: assertion 'type != NULL' failed

(process:14185): vala-CRITICAL **: 16:48:54.705: vala_object_type_construct: assertion 'type_symbol != NULL' failed

(process:14185): vala-CRITICAL **: 16:48:54.705: vala_interface_add_prerequisite: assertion 'type != NULL' failed

(process:14185): vala-CRITICAL **: 16:48:54.705: vala_object_type_construct: assertion 'type_symbol != NULL' failed

(process:14185): vala-CRITICAL **: 16:48:54.705: vala_interface_add_prerequisite: assertion 'type != NULL' failed

(process:14185): vala-CRITICAL **: 16:48:54.705: vala_object_type_construct: assertion 'type_symbol != NULL' failed

(process:14185): vala-CRITICAL **: 16:48:54.705: vala_interface_add_prerequisite: assertion 'type != NULL' failed

(process:14185): vala-CRITICAL **: 16:48:54.705: vala_object_type_construct: assertion 'type_symbol != NULL' failed

(process:14185): vala-CRITICAL **: 16:48:54.705: vala_interface_add_prerequisite: assertion 'type != NULL' failed

(process:14185): vala-CRITICAL **: 16:48:54.705: vala_object_type_construct: assertion 'type_symbol != NULL' failed

(process:14185): vala-CRITICAL **: 16:48:54.705: vala_interface_add_prerequisite: assertion 'type != NULL' failed

(process:14185): vala-CRITICAL **: 16:48:54.705: vala_object_type_construct: assertion 'type_symbol != NULL' failed

(process:14185): vala-CRITICAL **: 16:48:54.705: vala_interface_add_prerequisite: assertion 'type != NULL' failed

(process:14185): vala-CRITICAL **: 16:48:54.705: vala_object_type_construct: assertion 'type_symbol != NULL' failed

(process:14185): vala-CRITICAL **: 16:48:54.705: vala_interface_add_prerequisite: assertion 'type != NULL' failed

(process:14185): vala-CRITICAL **: 16:48:54.705: vala_object_type_construct: assertion 'type_symbol != NULL' failed

(process:14185): vala-CRITICAL **: 16:48:54.705: vala_interface_add_prerequisite: assertion 'type != NULL' failed

(process:14185): vala-CRITICAL **: 16:48:54.705: vala_object_type_construct: assertion 'type_symbol != NULL' failed

(process:14185): vala-CRITICAL **: 16:48:54.705: vala_interface_add_prerequisite: assertion 'type != NULL' failed

(process:14185): vala-CRITICAL **: 16:48:54.705: vala_object_type_construct: assertion 'type_symbol != NULL' failed

(process:14185): vala-CRITICAL **: 16:48:54.705: vala_interface_add_prerequisite: assertion 'type != NULL' failed

(process:14185): vala-CRITICAL **: 16:48:54.705: vala_object_type_construct: assertion 'type_symbol != NULL' failed

(process:14185): vala-CRITICAL **: 16:48:54.705: vala_interface_add_prerequisite: assertion 'type != NULL' failed

(process:14185): vala-CRITICAL **: 16:48:54.705: vala_object_type_construct: assertion 'type_symbol != NULL' failed

(process:14185): vala-CRITICAL **: 16:48:54.705: vala_interface_add_prerequisite: assertion 'type != NULL' failed

(process:14185): vala-CRITICAL **: 16:48:54.705: vala_object_type_construct: assertion 'type_symbol != NULL' failed

(process:14185): vala-CRITICAL **: 16:48:54.705: vala_interface_add_prerequisite: assertion 'type != NULL' failed

(process:14185): vala-CRITICAL **: 16:48:54.705: vala_object_type_construct: assertion 'type_symbol != NULL' failed

(process:14185): vala-CRITICAL **: 16:48:54.705: vala_interface_add_prerequisite: assertion 'type != NULL' failed

(process:14185): vala-CRITICAL **: 16:48:54.705: vala_object_type_construct: assertion 'type_symbol != NULL' failed

(process:14185): vala-CRITICAL **: 16:48:54.705: vala_interface_add_prerequisite: assertion 'type != NULL' failed

(process:14185): vala-CRITICAL **: 16:48:54.705: vala_object_type_construct: assertion 'type_symbol != NULL' failed

(process:14185): vala-CRITICAL **: 16:48:54.705: vala_interface_add_prerequisite: assertion 'type != NULL' failed

(process:14185): vala-CRITICAL **: 16:48:54.705: vala_object_type_construct: assertion 'type_symbol != NULL' failed

(process:14185): vala-CRITICAL **: 16:48:54.705: vala_interface_add_prerequisite: assertion 'type != NULL' failed

(process:14185): vala-CRITICAL **: 16:48:54.705: vala_object_type_construct: assertion 'type_symbol != NULL' failed

(process:14185): vala-CRITICAL **: 16:48:54.705: vala_interface_add_prerequisite: assertion 'type != NULL' failed

(process:14185): vala-CRITICAL **: 16:48:54.705: vala_object_type_construct: assertion 'type_symbol != NULL' failed

(process:14185): vala-CRITICAL **: 16:48:54.705: vala_interface_add_prerequisite: assertion 'type != NULL' failed

(process:14185): vala-CRITICAL **: 16:48:54.705: vala_object_type_construct: assertion 'type_symbol != NULL' failed

(process:14185): vala-CRITICAL **: 16:48:54.705: vala_interface_add_prerequisite: assertion 'type != NULL' failed

(process:14185): vala-CRITICAL **: 16:48:54.705: vala_object_type_construct: assertion 'type_symbol != NULL' failed

(process:14185): vala-CRITICAL **: 16:48:54.705: vala_interface_add_prerequisite: assertion 'type != NULL' failed

(process:14185): vala-CRITICAL **: 16:48:54.705: vala_object_type_construct: assertion 'type_symbol != NULL' failed

(process:14185): vala-CRITICAL **: 16:48:54.705: vala_interface_add_prerequisite: assertion 'type != NULL' failed

(process:14185): vala-CRITICAL **: 16:48:54.705: vala_object_type_construct: assertion 'type_symbol != NULL' failed

(process:14185): vala-CRITICAL **: 16:48:54.705: vala_interface_add_prerequisite: assertion 'type != NULL' failed

(process:14185): vala-CRITICAL **: 16:48:54.705: vala_object_type_construct: assertion 'type_symbol != NULL' failed

(process:14185): vala-CRITICAL **: 16:48:54.705: vala_interface_add_prerequisite: assertion 'type != NULL' failed

(process:14185): vala-CRITICAL **: 16:48:54.705: vala_object_type_construct: assertion 'type_symbol != NULL' failed

(process:14185): vala-CRITICAL **: 16:48:54.705: vala_interface_add_prerequisite: assertion 'type != NULL' failed

(process:14185): vala-CRITICAL **: 16:48:54.705: vala_object_type_construct: assertion 'type_symbol != NULL' failed

(process:14185): vala-CRITICAL **: 16:48:54.705: vala_interface_add_prerequisite: assertion 'type != NULL' failed

(process:14185): vala-CRITICAL **: 16:48:54.705: vala_object_type_construct: assertion 'type_symbol != NULL' failed

(process:14185): vala-CRITICAL **: 16:48:54.705: vala_interface_add_prerequisite: assertion 'type != NULL' failed

(process:14185): vala-CRITICAL **: 16:48:54.705: vala_object_type_construct: assertion 'type_symbol != NULL' failed

(process:14185): vala-CRITICAL **: 16:48:54.705: vala_interface_add_prerequisite: assertion 'type != NULL' failed

(process:14185): vls-WARNING **: 16:48:54.815: server.vala:125: no notification handler for initialized

Thanks for looking into this!

@Prince781
Copy link
Member

Prince781 commented Sep 18, 2020

Strange. I managed to get it working on my end (with meson 0.55.3).
screenshot

@Cogitri can you restart VLS with debug mode enabled (see below) and paste the output here?
debug-mode-enabled

@Cogitri
Copy link
Contributor Author

Cogitri commented Sep 18, 2020

Ah whoops, seems like it does work, I forgot to rebuild vala-lint against the new Vala version (0.50), it still pulled in vala 0.48 for me and I couldn't upgrade to vls built against vala 0.50 locally :)

Works after I actually upgraded to the new version, thanks for working on this! :)

@Prince781
Copy link
Member

@Cogitri awesome. Good to hear.

Prince781 added a commit that referenced this issue Sep 18, 2020
Meson 0.55 changed the way build dirs are named, which broke our hack to
find extra target compiler flags in compile_commands.json

Fixes #139
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants