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

Issues with Gnome app template #278

Open
QazCetelic opened this issue Jan 8, 2023 · 3 comments
Open

Issues with Gnome app template #278

QazCetelic opened this issue Jan 8, 2023 · 3 comments
Labels
packaging Distribution packages of VLS

Comments

@QazCetelic
Copy link
Contributor

Describe the bug
The language server seems to be unable to detect the dependencies from the build.meson file from the Gnome app template as generated by GNOME Builder.
screenshot

src/build.meson

testapp_sources = [
  'main.vala',
  'application.vala',
  'window.vala',
]

testapp_deps = [
  dependency('gtk4'),
  dependency('libadwaita-1'),
]

testapp_sources += gnome.compile_resources('testapp-resources',
  'testapp.gresource.xml',
  c_name: 'testapp'
)

executable('testapp', testapp_sources,
  dependencies: testapp_deps,
       install: true,
)

build.meson

project('testapp', ['c', 'vala'],
          version: '0.1.0',
    meson_version: '>= 0.59.0',
  default_options: [ 'warning_level=2', 'werror=false', ],
)

i18n = import('i18n')
gnome = import('gnome')

subdir('data')
subdir('src')
subdir('po')

gnome.post_install(
     glib_compile_schemas: true,
    gtk_update_icon_cache: true,
  update_desktop_database: true,
)

Software
OS and version (e.g. Ubuntu 20.04): Fedora 37
Code editor (e.g. VSCode): VSCode
Vala Language Server (e.g. git commit, or PPA/AUR version): 0.48.5-7.1
Vala version (valac --version): Vala 0.56.3

@benwaffle
Copy link
Member

Works fine for me. Can you still reproduce the issue on 0.48.7?

@QazCetelic
Copy link
Contributor Author

0.48.7 isn't available in the Fedora repositories yet. I've tried to build it, but it failed due to some issues with a dependency mismatch (libvala). Is there a prebuild binary? I couldn't find one at the releases page.

@benwaffle
Copy link
Member

What compilation/dependency error are you getting? @Prince781 can you trigger a new OBS build for 0.48.7?

@Prince781 Prince781 added the packaging Distribution packages of VLS label Mar 1, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
packaging Distribution packages of VLS
Projects
None yet
Development

No branches or pull requests

3 participants