{"id":23162058,"url":"https://github.com/devnix/vala-bug-vapi-namespaces","last_synced_at":"2026-02-02T06:31:46.170Z","repository":{"id":148349504,"uuid":"386275405","full_name":"devnix/vala-bug-vapi-namespaces","owner":"devnix","description":"Vala bug on throw signature when generating vapi files and a class has the same namespace name","archived":false,"fork":false,"pushed_at":"2021-07-15T12:36:00.000Z","size":35,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"main","last_synced_at":"2025-06-27T22:03:21.800Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Vala","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/devnix.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2021-07-15T12:06:00.000Z","updated_at":"2021-07-15T12:29:41.000Z","dependencies_parsed_at":"2023-05-12T11:15:38.638Z","dependency_job_id":null,"html_url":"https://github.com/devnix/vala-bug-vapi-namespaces","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/devnix/vala-bug-vapi-namespaces","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/devnix%2Fvala-bug-vapi-namespaces","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/devnix%2Fvala-bug-vapi-namespaces/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/devnix%2Fvala-bug-vapi-namespaces/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/devnix%2Fvala-bug-vapi-namespaces/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/devnix","download_url":"https://codeload.github.com/devnix/vala-bug-vapi-namespaces/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/devnix%2Fvala-bug-vapi-namespaces/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":29007123,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-02-02T04:25:24.522Z","status":"ssl_error","status_checked_at":"2026-02-02T04:24:51.069Z","response_time":58,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.6:443 state=error: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2024-12-17T23:24:00.158Z","updated_at":"2026-02-02T06:31:46.156Z","avatar_url":"https://github.com/devnix.png","language":"Vala","readme":"# Vala bug on throw signature when generating vapi files and a class has the same namespace name\n\n## Tested versions\n\n- Vala 0.48.18\n- Vala 0.52.4\n\n## Reproducing\n\n```console\nmeson build\nmeson compile -C build\n```\n\nOn last step, meson will compile successfully the library and generate the vapi\nfile.\n\nWhen compiling the executable, will output this error:\n\n```\nninja: Entering directory `build'\n[1/3] Compiling Vala source ../src/Main.vala foo.vapi\nFAILED: foo.p/src/Main.c\nvalac -C --debug --debug --pkg gio-2.0 --color=always --directory foo.p --basedir ../ ../src/Main.vala foo.vapi\nfoo.vapi:14.31-14.43: error: The symbol `Exception' could not be found\n                public void sayHi () throws Foo.Exception.PrintError;\n                                            ^^^^^^^^^^^^^\nCompilation failed: 1 error(s), 0 warning(s)\nninja: build stopped: subcommand failed.\n```\n\nThis is because when generating the vapi output, the following signature:\n\n```vala\npublic void sayHi () throws Foo.Exception.PrintError;\n```\n\nWhen it should be:\n\n```vala\npublic void sayHi () throws global::Foo.Exception.PrintError;\n```\n\nOr:\n\n```vala\npublic void sayHi () throws Exception.PrintError;\n```\n\nTo better illustrate the example, a `Bar` class was created to demonstrate how\nthe signatures are generated in the vapi file. To my understanding, it should\nwork the same way for the `throws` signature:\n\n```vala\npublic Foo (global::Foo.Bar bar);\n```\n\n## Additional bug catch?\n\nAlso, I've noticed that when using Vala Language Server, it does not recognize\nthe dependency to `libfoo` and shows an error in `Main.vala`:\n\n!['Foo' is not a class, struct, or error code](var/vls-exception.png)\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdevnix%2Fvala-bug-vapi-namespaces","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fdevnix%2Fvala-bug-vapi-namespaces","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdevnix%2Fvala-bug-vapi-namespaces/lists"}