Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[{Bug}]: no indents #872

Open
2 tasks done
AlloMoondragon opened this issue Mar 17, 2023 · 1 comment
Open
2 tasks done

[{Bug}]: no indents #872

AlloMoondragon opened this issue Mar 17, 2023 · 1 comment
Labels
bug Something isn't working

Comments

@AlloMoondragon
Copy link

What happened?

I think all these are related.
My AndroidIde crashes often upon opening files with the attached error ~which mentions indents.
And no matter which settings I turn on or off, there is no indent detection at all for me ~on any project. Every line starts at the far left wall.
I have to manually push space a bunch or copypaste a bunch of spaces. But a single backspace deletrs them all and returns to the above line.

screen-recorder-unlimited-2023-03-16-19-27-43.2.mp4

What's the expected behavior?

im using 2.4 even tho the spinner below this trxt box only goes up to 2.3. also first time github idk exactly what this textbox is asking :)

What version of AndroidIDE you're using?

v2.3.0 (debug builds)

Relevant log output

AndroidIDE crash report
Manufacturer: samsung
Device: SM-A136U
ABI: armeabi-v7a
SDK version: 31
App version: v2.4.0-beta (240)

 Stacktrace: 
java.lang.IllegalArgumentException: query(name:indents) parsing failed: Capture at text offset 1151787008
 at com.itsaky.androidide.editor.language.treesitter.TreeSitterLanguageSpec.<init>(TreeSitterLanguageSpec.kt:60)
 at com.itsaky.androidide.editor.language.treesitter.TreeSitterLanguage.<init>(TreeSitterLanguage.kt:179)
 at com.itsaky.androidide.editor.language.kotlin.KotlinLanguage.<init>(KotlinLanguage.kt:12)
 at com.itsaky.androidide.editor.language.kotlin.KotlinLanguage$$ExternalSyntheticLambda0.create(R8$$SyntheticClass:3)
 at com.itsaky.androidide.editor.ui.IDEEditor.setupLanguage(IDEEditor.java:53)
 at com.itsaky.androidide.ui.editor.CodeEditorView$$ExternalSyntheticLambda1.run(R8$$SyntheticClass:169)
 at android.os.Handler.handleCallback(Handler.java:938)
 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:8751)
 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:1135)

Duplicate issues

  • This issue has not been reported yet.

Code of Conduct

  • I agree to follow this project's Code of Conduct
@AlloMoondragon AlloMoondragon added the bug Something isn't working label Mar 17, 2023
@AlloMoondragon
Copy link
Author

AndroidIDE crash report
Manufacturer: samsung
Device: SM-A136U
ABI: armeabi-v7a
SDK version: 31
App version: v2.4.0-beta (240)

Stacktrace:
java.lang.IllegalArgumentException: query(name:indents) parsing failed: Capture at text offset 1151787008
at com.itsaky.androidide.editor.language.treesitter.TreeSitterLanguageSpec.(TreeSitterLanguageSpec.kt:60)
at com.itsaky.androidide.editor.language.treesitter.TreeSitterLanguage.(TreeSitterLanguage.kt:179)
at com.itsaky.androidide.editor.language.kotlin.KotlinLanguage.(KotlinLanguage.kt:12)
at com.itsaky.androidide.editor.language.kotlin.KotlinLanguage$$ExternalSyntheticLambda0.create(R8$$SyntheticClass:3)
at com.itsaky.androidide.editor.ui.IDEEditor.setupLanguage(IDEEditor.java:53)
at com.itsaky.androidide.ui.editor.CodeEditorView$$ExternalSyntheticLambda1.run(R8$$SyntheticClass:169)
at android.os.Handler.handleCallback(Handler.java:938)
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:8751)
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:1135)

still very often upon opening file

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant