Cosmic-Ide / Cosmic-IDE

A next-gen Ide for JVM development on Android
GNU General Public License v3.0
476 stars 54 forks source link

git fails #567

Open Ammar-Husain opened 20 hours ago

Ammar-Husain commented 20 hours ago

every time I try to use git from the app, this exception is thrown:

java.lang.NoSuchMethodError: No virtual method readNBytes(I)[B in class Lorg/eclipse/jgit/util/io/SilentFileInputStream; or its super classes (declaration of 'org.eclipse.jgit.util.io.SilentFileInputStream' appears in /data/app/org.cosmicide-qUsVRIM8KZm6YGGB0Za7pw==/base.apk!classes38.dex)
    at org.eclipse.jgit.util.IO.readFully(IO.java:90)
    at org.eclipse.jgit.util.IO.readFully(IO.java:48)
    at org.eclipse.jgit.storage.file.FileBasedConfig.load(FileBasedConfig.java:148)
    at org.eclipse.jgit.storage.file.FileBasedConfig.$r8$lambda$C0Gqawno6Xx4SyUkPy5AwFIAXLk(Unknown Source:0)
    at org.eclipse.jgit.storage.file.FileBasedConfig$$ExternalSyntheticLambda0.apply(D8$$SyntheticClass:0)
    at org.eclipse.jgit.util.FileUtils.readWithRetries(FileUtils.java:733)
    at org.eclipse.jgit.storage.file.FileBasedConfig.load(FileBasedConfig.java:128)
    at org.eclipse.jgit.internal.storage.file.FileRepository.loadRepoConfig(FileRepository.java:212)
    at org.eclipse.jgit.internal.storage.file.FileRepository.getConfig(FileRepository.java:348)
    at org.eclipse.jgit.internal.storage.file.FileRepository.getConfig(FileRepository.java:1)
    at org.eclipse.jgit.treewalk.TreeWalk.<init>(TreeWalk.java:352)
    at org.eclipse.jgit.treewalk.TreeWalk.<init>(TreeWalk.java:319)
    at org.eclipse.jgit.treewalk.NameConflictTreeWalk.<init>(NameConflictTreeWalk.java:77)
    at org.eclipse.jgit.api.AddCommand.call(AddCommand.java:127)
    at org.eclipse.jgit.api.AddCommand.call(AddCommand.java:1)
    at com.github.syari.kgit.KGitCommand.call(KGitCommand.kt:10)
    at com.github.syari.kgit.KGit.add(KGit.kt:101)
    at dev.pranav.jgit.tasks.RepositoryKt.createRepository(Repository.kt:139)
    at org.cosmicide.fragment.GitFragment$setupUI$3$1.invokeSuspend(GitFragment.kt:74)
    at kotlin.coroutines.jvm.internal.BaseContinuationImpl.resumeWith(ContinuationImpl.kt:33)
    at kotlinx.coroutines.DispatchedTask.run(DispatchedTask.kt:104)
    at kotlinx.coroutines.internal.LimitedDispatcher$Worker.run(LimitedDispatcher.kt:111)
    at kotlinx.coroutines.scheduling.TaskImpl.run(Tasks.kt:99)
    at kotlinx.coroutines.scheduling.CoroutineScheduler.runSafely(CoroutineScheduler.kt:584)
    at kotlinx.coroutines.scheduling.CoroutineScheduler$Worker.executeTask(CoroutineScheduler.kt:811)
    at kotlinx.coroutines.scheduling.CoroutineScheduler$Worker.runWorker(CoroutineScheduler.kt:715)
    at kotlinx.coroutines.scheduling.CoroutineScheduler$Worker.run(CoroutineScheduler.kt:702)
    Suppressed: kotlinx.coroutines.internal.DiagnosticCoroutineContextException: [StandaloneCoroutine{Cancelling}@6fdd93b, Dispatchers.IO]
PranavPurwar commented 18 hours ago

What is your android version?

Ammar-Husain commented 16 hours ago

I am on HarmonyOS 2.0.0 but it is t equivilant to Android 10 (it is the same actually Huawei just change the name).