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

Finding swift project root by *.xcodeproj directory location #4877

Open
bogdan opened this issue Dec 9, 2024 · 0 comments
Open

Finding swift project root by *.xcodeproj directory location #4877

bogdan opened this issue Dec 9, 2024 · 0 comments
Labels

Comments

@bogdan
Copy link

bogdan commented Dec 9, 2024

Information

VIM version

NVIM v0.10.2
Build type: Release
LuaJIT 2.1.1727870382

Operating System: MacOS

What went wrong

Swift project root can not be detected when using sourcekitlsp linter for XCode project.
As per source code, the project root is searched by location of Package.swift file which is only present for swift library but not for swift app.
The swift app is defined by location of *.xcodeproj directory or *.xcworkspace directory.

Reproducing the bug

let b:ale_linters=["sourcekitlsp"]

:ALEInfo

 LSP Error Messages:

(Errors for sourcekitlsp)
Failed to find project root, language server won't start.
@bogdan bogdan added the bug label Dec 9, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant