Flatpak VSCode: no such module 'Adwaita' #50
Labels
No Label
bug
duplicate
enhancement
help wanted
invalid
question
wontfix
No Milestone
No Assignees
1 Participants
Notifications
Due Date
No due date set.
Dependencies
No dependencies set.
Reference: aparoksha/adwaita-swift#50
Loading…
Reference in New Issue
Block a user
No description provided.
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Describe the bug
When developing Adwaita Swift apps in VSCode,
import Adwaita
is flagged as an error withNo such module 'Adwaita'
, and code docs and autocomplete don't work. However, when using flatpak-builder to run the app it compiles and runs successfully.To Reproduce
import Adwaita
statements are flagged as errorsExpected behavior
Adwaita is imported correctly and code docs and autocomplete work correctly
Additional context
dependencies: [ .package(url: "https://github.com/AparokshaUI/Adwaita", from: "0.2.0") ]
is already added to Package.swiftI'm a GNOME Builder user myself (it actually works quite well). I set up VS Code today (it might be useful for debugging as GNOME Builder currently isn't great for debugging Swift, so thanks for opening the issue 😸) and I did not face any issues.
I installed VS Code using my system's package manager (not via Flatpak), added the Flatpak and Swift extensions, and it worked. Maybe you could try the version of VS Code installed via your system's package manager instead of Flatpak?