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

Warning complaining about compiler arguments not found keep popping up #719

Closed
1 task done
chawyehsu opened this issue Mar 9, 2024 · 2 comments
Closed
1 task done
Labels
bug Something isn't working

Comments

@chawyehsu
Copy link

chawyehsu commented Mar 9, 2024

Describe the bug

  • I did searching and didn't find any issue reported about this

image
Text: Failed to get compiler arguments for Package.swift. Ensure the source file is part of a Swift package or has compiler arguments in compile_commands.json. Functionality will be limited.

To Reproduce
Steps to reproduce the behavior:

  1. Open a project and the warning will pop up

I tested with boilerplate project by swift package init --type executable, the warning is still there so I believe it's not something wrong with my working codebase.

Expected behavior

No warning

Environment

  • OS: Windows 10 10.0.19045
  • Swift version
    compnerd.org Swift version 6.0-dev (LLVM ce41a43bba95b2b, Swift 4336204fe47da60)
    Target: x86_64-unknown-windows-msvc
    
  • Visual Studio Code version: 1.87.0
  • vscode-swift version: 1.8.1

Additional context

I found everytime I break the sourcekit-lsp, it restarts and the warning will pop up again a time for every .swift file I open, which is so annoying. :-[

@chawyehsu chawyehsu added the bug Something isn't working label Mar 9, 2024
@chawyehsu
Copy link
Author

@adam-fowler
Copy link
Member

This is a sourcekit-lsp issue. Please add a bug there

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants