-
Notifications
You must be signed in to change notification settings - Fork 21
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
Enhance code completion in swift file with errors #68
Comments
also |
what the detail difference if not have this flag? |
Just add them to find out if they produce any difference. |
you may change it here to see difference? xcode-build-server/compile_database.py Line 298 in c222384
|
According to the swift documentation, the corresponding flag function is: https://github.com/swiftlang/swift/blob/087676da1125f88a467a401899d7a84d962632a4/include/swift/Option/FrontendOptions.td#L1194 -detailed-preprocessing-record: No document found. It seems to be related to preprocessing. More details may be output? |
It looks like we need also to pass this parameter into xcodebuild to actually build a project with such flags to make it working. |
Currently it provides pure support if a file has a compile errors in a module
I ran xcode like
export SOURCEKIT_LOGGING=3 && /Applications/Xcode.app/Contents/MacOS/Xcode
to investigate the compile flags sending to sourcekitd and found interesting flag that is sending to sourcekitd which are not set when you are building the app
-experimental-allow-module-with-compiler-errors
-detailed-preprocessing-record
It would be good if xcode-build-server append this flag by default so completion experience would be like in Xcode.
Here is a full log from Xcode sourcekitd of flags:
and here is from with xcode-build-server
The text was updated successfully, but these errors were encountered: