long1eu / long1eu/flutter_i18n

Getting error in Plugin, studio doesn't recognize arb file.

Open
#43 8 comments 0 reactions 1 assignee View on GitHub

@noordawod is already working on this.

Since Apr 3, 2019.

needs input question wontfix
Dominant language
Dart
Stars
248
Forks
51
PR merge metrics
No merged PRs in 30d

Description

Hi to all,
I 'm getting following error when my android studio is started, And studio doesn't recognize arb file.

java.lang.ClassCastException: com.intellij.psi.impl.file.PsiBinaryFileImpl cannot be cast to com.intellij.json.psi.JsonFile
at eu.long1.flutter.i18n.workers.I18nFileGenerator.generate(I18nFileGenerator.kt:34)
at eu.long1.flutter.i18n.workers.Initializer$runActivity$$inlined$scheduleAtFixedRate$1$lambda$1.compute(actions.kt:64)
at com.intellij.openapi.application.impl.ApplicationImpl.runReadAction(ApplicationImpl.java:945)
at eu.long1.flutter.i18n.workers.Initializer$runActivity$$inlined$scheduleAtFixedRate$1.run(Timer.kt:150)
at java.util.TimerThread.mainLoop(Timer.java:555)
at java.util.TimerThread.run(Timer.java:505)

Flutter Doctor

  • [✓] Flutter (Channel stable, v1.0.0, on Mac OS X 10.13.6 17G65, locale - zh-Hans-CN)
  • [✓] Android toolchain - develop for Android devices (Android SDK 28.0.3)
  • [✓] iOS toolchain - develop for iOS devices (Xcode 10.1)
  • [✓] Android Studio (version 3.3)
  • [✓] VS Code (version 1.31.1)
  • [✓] Connected device (2 available)

• No issues found!

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.