Skip to content
This repository has been archived by the owner on Oct 18, 2024. It is now read-only.

[Bug]: Crash on implement abstract method inside an Interface #939

Closed
2 tasks done
ThatMG393 opened this issue Apr 12, 2023 · 1 comment
Closed
2 tasks done

[Bug]: Crash on implement abstract method inside an Interface #939

ThatMG393 opened this issue Apr 12, 2023 · 1 comment
Labels
bug Something isn't working

Comments

@ThatMG393
Copy link

What happened?

Crash when I tried to click "Implement Abstract Method(s)" inside an Interface.

addListener(new SomeListener() {
    // Try to run "Implement Abstract Method(s)"
    // Dont type anything
});

What's the expected behavior?

Extracts the abstract methods and put it inside

What version of AndroidIDE you're using?

v2.4.0 (debug builds)

Relevant log output

AndroidIDE crash report
Manufacturer: samsung
Device: SM-A136B
ABI: armeabi-v7a
SDK version: 33
App version: v1.0.0-internal.1+branch.dev.commit.6f49ac2.timestamp.20230405041341 (100)

 Stacktrace: 
java.lang.StringIndexOutOfBoundsException: Column 16 out of bounds. line: 60 , column count (line separator included):6
	at io.github.rosemoe.sora.text.Content.checkLineAndColumn(Content.java:1059)
	at io.github.rosemoe.sora.text.Content.insertInternal(Content.java:357)
	at io.github.rosemoe.sora.text.Content.insert(Content.java:350)
	at com.itsaky.androidide.lsp.IDELanguageClientImpl.lambda$editInEditor$2(IDELanguageClientImpl.java:268)
	at com.itsaky.androidide.lsp.IDELanguageClientImpl$$ExternalSyntheticLambda2.run(Unknown Source:4)
	at android.os.Handler.handleCallback(Handler.java:942)
	at android.os.Handler.dispatchMessage(Handler.java:99)
	at android.os.Looper.loopOnce(Looper.java:226)
	at android.os.Looper.loop(Looper.java:313)
	at android.app.ActivityThread.main(ActivityThread.java:8757)
	at java.lang.reflect.Method.invoke(Native Method)
	at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:571)
	at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:1067)

Duplicate issues

  • This issue has not been reported yet.

Code of Conduct

  • I agree to follow this project's Code of Conduct
@ThatMG393 ThatMG393 added the bug Something isn't working label Apr 12, 2023
@itsaky
Copy link
Member

itsaky commented Apr 14, 2023

Duplicate of #916.

@itsaky itsaky closed this as not planned Won't fix, can't repro, duplicate, stale Apr 14, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants