Rxswift: xcode9.1 code completion

Created on 3 Nov 2017  路  9Comments  路  Source: ReactiveX/RxSwift

my xcode version is 9.1 when i input "let valid = mobileView.textField.rx.text.", i cannot receive any code completion suggestion?

help wanted

Most helpful comment

Hi,
that issue still occurs on Xcode 10. Adding asObservable or asDriver helps as you wrote, but it's not ideal solution... I've noticed that it working correctly when I integrate RxCocoa using Carthage, not CocoaPods. So maybe it's related to CocoaPods then?

All 9 comments

Hi @jacknathan ,

oh damn it. I think compiler team messed up something.

If you do mobileView.textField.rx.text.asDriver() or mobileView.textField.rx.text.asObservable() or mobileView.textField.rx.text.map { $0 } it works fine.

If you have time it would be great to report this to compiler team.

I have some more pressing issues I need to tackle first, so I doubt I'll have time to investigate this one soon.

Especially since this bug isn't ours :(

in case it helps. This is happening only with components with ControlProperty\ and ControlProperty. And in my case it happens with and without the assignment

Hi! Any update on this? It's really unpleasant to code without IDE completion. This also happens with AppCode.

If this is an issue from the Apple's compiler team, could anyone please share the link so we can see how it is progressing?

Thank you.

Hi guys,

I don't know why Xcode autocomplete is flaky, the temporary solution is quite simple just add asObservable or asDriver.

mobileView.textField.rx.text.asObservable()

Hi,
that issue still occurs on Xcode 10. Adding asObservable or asDriver helps as you wrote, but it's not ideal solution... I've noticed that it working correctly when I integrate RxCocoa using Carthage, not CocoaPods. So maybe it's related to CocoaPods then?

I have this issue in Xcode 10.1, any updates?

I don't think it's anything related to the codebase as much as it is related to Xcode and Swift. We can't really spend project time correcting Apple's issues unfortunately :)

They've made a stress tester for Swift and I've filed a few radars related to it but these things take a long time, I wouldn't count it being resolved anytime soon.

Sure takes a long time... since the issuer started this issue in November 2017...

Was this page helpful?
0 / 5 - 0 ratings

Related issues

jeremiegirault picture jeremiegirault  路  3Comments

trant picture trant  路  3Comments

RobinFalko picture RobinFalko  路  3Comments

gekitz picture gekitz  路  3Comments

Z-JaDe picture Z-JaDe  路  3Comments