Kotlin coroutine support missing
Nobody has claimed this yet.
Assessment
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Newbie friendliness
- 35/100
- Issue type
- Bug
- Clarity
- Mostly clear
- Activity status
- Stale
- Tech stack
- kotlin
- Domain
- api, mobile-dev
Research direction
Start by reproducing the crash from NextcloudRetrofitServiceMethod.invoke() at line 124 with the suspend methods in the shown BookmarkService interface. Compare the parameter annotations and coroutine-generated method shape with the Retrofit 2.6.4 dependencies. Done means both suspend calls work without the exception while preserving their query parameters.
Written by the indexing model from the issue text.
Description
I always get an exception on line 124 of NextcloudRetrofitServiceMethod.invoke():
// Build/parse dynamic parameters
for(int i = 0; i < parameterAnnotationsArray.length; i++) {
Annotation annotation = parameterAnnotationsArray[i][0]; // <----- Blows up
I tried debugging this method, but every time it hits a breakpoint in here the app crashes.
Here's my Retrofit:
interface BookmarkService {
@GET("bookmark")
suspend fun getBookmarks(
@Query("folder") folderId: Int,
@Query("page") page: Int,
@Query("tags") tags: List<String>
): DtoBookmarks
@GET("folder?layers=1")
suspend fun getFolders(
@Query("root") parentFolderId: Int
): DtoFolders
}
These are my dependencies:
implementation 'com.github.nextcloud:Android-SingleSignOn:0.5.0-rc4'
implementation 'com.squareup.retrofit2:retrofit:2.6.4'
implementation 'com.squareup.retrofit2:converter-gson:2.6.4'
Let me know if you need any more info.
- Dominant language
- Java
- Stars
- 74
- Forks
- 36
- Avg merge
- 1d 6h
- Merged PRs (30d)
- 15
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
More from nextcloud/Android-SingleSignOn
-
0. Needs triage bug
Difficulty 2/5 1-3 hours Newbie friendliness 78/100
nextcloud/Android-SingleSignOn#1081 ·
-
Difficulty 2/5 1-3 hours Newbie friendliness 72/100
nextcloud/Android-SingleSignOn#563 · 2 comments · 1 reaction ·
-
0. Needs triage bug
Difficulty 2/5 1-3 hours Newbie friendliness 45/100
nextcloud/Android-SingleSignOn#894 · 1 reaction ·
-
0. Needs triage bug
Difficulty 4/5 3-5 days Newbie friendliness 35/100
nextcloud/Android-SingleSignOn#859 · 3 comments ·
-
0. Needs triage enhancement
Difficulty 4/5 3-5 days Newbie friendliness 35/100
All issues in nextcloud/Android-SingleSignOn
Similar issues
-
bug
Difficulty 1/5 Under an hour Newbie friendliness 90/100
apache/cloudstack#14222 ·
-
[BUG]茶杯方块在取茶时会引发崩溃 Open
Difficulty 2/5 1-3 hours Newbie friendliness 88/100
-
1.0.0-alpha2 Type/Improvement
Difficulty 2/5 1-3 hours Newbie friendliness 68/100
wso2/dpdp-accelerator#272 ·
-
bug
Difficulty 2/5 1-3 hours Newbie friendliness 88/100
apache/rocketmq-dashboard#4860 · 1 comment ·
-
Difficulty 2/5 1-3 hours Newbie friendliness 82/100
infinispan/infinispan#18150 ·