Skip to content
This repository has been archived by the owner on Dec 13, 2018. It is now read-only.

[nuclide-swift] Display diagnostics for Swift source code #645

Open
modocache opened this issue Aug 1, 2016 · 1 comment
Open

[nuclide-swift] Display diagnostics for Swift source code #645

modocache opened this issue Aug 1, 2016 · 1 comment

Comments

@modocache
Copy link
Contributor

Flow can tell me when I write a bad line of JavaScript. nuclide-swift should be able to tell me when I write Swift code that won't compile.

This kind of works already. Check out the following screenshot:

screen shot 2016-07-14 at 3 25 51 am

SourceKitten tells me the type of raichu is "error type". This is because the Pokemon struct takes init parameters, but I do not pass those parameters when initializing raichu.

I believe SourceKit is capable of displaying error diagnostics for Swift files. I don't think SourceKitten wraps this functionality yet, but it should. Once it does, we should use that functionality and hook it up to the Nuclide diagnostics service.

@thislooksfun
Copy link

According to jpsim/SourceKitten#295, it's a problem with SourceKit itself, not SourceKitten.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

2 participants