Then icon indicating copy to clipboard operation
Then copied to clipboard

Xcode 14 code prompt error

Open whisterlee opened this issue 2 years ago • 11 comments

Use Then with Xcode14, and the code prompts that there is something wrong. WechatIMG226

whisterlee avatar Oct 26 '22 02:10 whisterlee

I have the same problem~

yisRookie avatar Oct 26 '22 09:10 yisRookie

截屏2022-10-26 17 26 43

yisRookie avatar Oct 26 '22 09:10 yisRookie

Like the issue #71

yisRookie avatar Oct 27 '22 01:10 yisRookie

I have same issue

loinsir avatar Nov 16 '22 01:11 loinsir

저도 같은 이슈가 있습니다. xcode14 이후로 첫 라인을 제외한 두번째 라인부터 $0에 대한 타입 추론을 하지 못하는 것 같습니다.

JJIKKYU avatar Nov 18 '22 13:11 JJIKKYU

@JJIKKYU 저는 해결된것 같습니다. 혹시 확인 가능하신가요?

loinsir avatar Dec 05 '22 06:12 loinsir

Specifying the type of a variable can resolve this issue. For example:

Type Annotation Type Inferred
image image

Specifying the type of the parameter inside the closure is also possible.

Closure type annotation
image

WhiteHyun avatar Dec 30 '22 05:12 WhiteHyun

Then 내부 코드의 @inlinable 애트리뷰트의 컴파일러 내부 동작에 뭔가 변화가 있어서 이런일이 발생한것 같은데요, 실제로 @inlinable 대신 @inline(__always) 등으로 교체해서 적용해보니 동작했던것 같습니다. 혹시 확인 가능하신가요? @WhiteHyun

loinsir avatar Dec 30 '22 17:12 loinsir

음 저는 안되는 것 같네요. 😭 @loinsir

WhiteHyun avatar Feb 07 '23 07:02 WhiteHyun

I have the same issue image

make1a avatar Aug 02 '23 02:08 make1a

Keep editing in the first line when XCode. The completion will load fine.

pengzishangTest avatar Dec 01 '23 08:12 pengzishangTest

The issue has been resolved in Xcode 15.

whisterlee avatar Mar 11 '24 03:03 whisterlee