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

App crashes after calling setEditorLanguage method #587

Open
FloydP opened this issue May 11, 2024 · 3 comments
Open

App crashes after calling setEditorLanguage method #587

FloydP opened this issue May 11, 2024 · 3 comments

Comments

@FloydP
Copy link

FloydP commented May 11, 2024

I'm running the official demo on Android 8 and Android 10 versions, and when I call the editor.setEditorLanguage method to switch languages (based on textmate), the app crashes

log:
FATAL EXCEPTION: AsyncAnalyzer-1 Process: com.lzy.iauto, PID: 32429 java.lang.NoSuchMethodError: No virtual method toArray(Ljava/util/function/IntFunction;)[Ljava/lang/Object; in class Ljava/util/ArrayList; or its super classes (declaration of 'java.util.ArrayList' appears in /apex/com.android.runtime/javalib/core-oj.jar) at org.eclipse.tm4e.core.internal.rule.RuleFactory._compilePatterns(RuleFactory.java:250) at org.eclipse.tm4e.core.internal.rule.RuleFactory.lambda$getCompiledRuleId$1(RuleFactory.java:101) at org.eclipse.tm4e.core.internal.rule.RuleFactory$$ExternalSyntheticLambda1.apply(D8$$SyntheticClass:0) at org.eclipse.tm4e.core.internal.grammar.Grammar.registerRule(Grammar.java:208) at org.eclipse.tm4e.core.internal.rule.RuleFactory.getCompiledRuleId(RuleFactory.java:53) at org.eclipse.tm4e.core.internal.rule.RuleFactory._compilePatterns(RuleFactory.java:209) at org.eclipse.tm4e.core.internal.rule.RuleFactory.lambda$getCompiledRuleId$1(RuleFactory.java:78) at org.eclipse.tm4e.core.internal.rule.RuleFactory$$ExternalSyntheticLambda1.apply(D8$$SyntheticClass:0) at org.eclipse.tm4e.core.internal.grammar.Grammar.registerRule(Grammar.java:208) at org.eclipse.tm4e.core.internal.rule.RuleFactory.getCompiledRuleId(RuleFactory.java:53) at org.eclipse.tm4e.core.internal.rule.RuleFactory._compilePatterns(RuleFactory.java:173) at org.eclipse.tm4e.core.internal.rule.RuleFactory.lambda$getCompiledRuleId$1(RuleFactory.java:78) at org.eclipse.tm4e.core.internal.rule.RuleFactory$$ExternalSyntheticLambda1.apply(D8$$SyntheticClass:0) at org.eclipse.tm4e.core.internal.grammar.Grammar.registerRule(Grammar.java:208) at org.eclipse.tm4e.core.internal.rule.RuleFactory.getCompiledRuleId(RuleFactory.java:53) at org.eclipse.tm4e.core.internal.rule.RuleFactory._compilePatterns(RuleFactory.java:173) at org.eclipse.tm4e.core.internal.rule.RuleFactory.lambda$getCompiledRuleId$1(RuleFactory.java:101) at org.eclipse.tm4e.core.internal.rule.RuleFactory$$ExternalSyntheticLambda1.apply(D8$$SyntheticClass:0) at org.eclipse.tm4e.core.internal.grammar.Grammar.registerRule(Grammar.java:208) at org.eclipse.tm4e.core.internal.rule.RuleFactory.getCompiledRuleId(RuleFactory.java:53) at org.eclipse.tm4e.core.internal.rule.RuleFactory._compilePatterns(RuleFactory.java:209) at org.eclipse.tm4e.core.internal.rule.RuleFactory.lambda$getCompiledRuleId$1(RuleFactory.java:78) at org.eclipse.tm4e.core.internal.rule.RuleFactory$$ExternalSyntheticLambda1.apply(D8$$SyntheticClass:0) at org.eclipse.tm4e.core.internal.grammar.Grammar.registerRule(Grammar.java:208) at org.eclipse.tm4e.core.internal.rule.RuleFactory.getCompiledRuleId(RuleFactory.java:53) at org.eclipse.tm4e.core.internal.grammar.Grammar._tokenize(Grammar.java:282) at org.eclipse.tm4e.core.internal.grammar.Grammar.tokenizeLine2(Grammar.java:271) at io.github.rosemoe.sora.langs.textmate.TextMateAnalyzer.tokenizeLine(TextMateAnalyzer.java:212) at io.github.rosemoe.sora.langs.textmate.TextMateAnalyzer.tokenizeLine(TextMateAnalyzer.java:67) at io.github.rosemoe.sora.lang.analysis.AsyncIncrementalAnalyzeManager$LooperThread.initialize(AsyncIncrementalAnalyzeManager.java:451) at io.github.rosemoe.sora.lang.analysis.AsyncIncrementalAnalyzeManager$LooperThread.handleMessage(AsyncIncrementalAnalyzeManager.java:473) at io.github.rosemoe.sora.lang.analysis.AsyncIncrementalAnalyzeManager$LooperThread.run(AsyncIncrementalAnalyzeManager.java:581)

@FloydP
Copy link
Author

FloydP commented May 11, 2024

Sorry, I should have enabled desugar and I can close this issue

@FloydP FloydP closed this as completed May 11, 2024
@FloydP
Copy link
Author

FloydP commented May 11, 2024

Still not working
I configured desugar and used Build | Build Bundle(s) / APK(s) | Build APK(s) to build the apk,
the error still occurs.

@FloydP FloydP reopened this May 11, 2024
@hakobast
Copy link

I get the same error with the latest version

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants