Step to reproduce

  1. on *.kt press command+shift+a for view bytecode

btw,

显示Kotlin字节码

工作正常,但有故障

显示字节码

(which I guess it will show java or java bytecode)

enter image description here

  1. select 显示字节码 then got this error

enter image description here

  1. But then when press command+shift+a got this error again and again

enter image description here

一开始我重启ide,同样的错误也发生了

Then I realised if I press windows then the error gone... enter image description here

推荐答案

MacOs 10.14.4更新启用系统快捷键Shift-Cmd-A

  • Open "System Preferences | Keyboard | Shortcuts | Services"
  • Disable "Search man Page Index in Terminal" (or change the keybinding)

Kotlin相关问答推荐

在intellij中使用kotlin符号和floordiv

为什么";";.equals(1)在柯特林语中是有效的,但";";=1是无效的?

S使用MAP和ElseThrow的习惯用法是什么?

为什么不';Kotlin是否在数据类构造函数中隐式分配null值可为null的字段?

如何定义一个函数来接受任何具有特定字段的数据类

在 map 中查找键与在 kotlin 中查找 firstOrNull

mutableStateOf 和 mutableStateListOf 有什么区别?

使用 StateFlow 时如何移除监听器?

内容更改后的 var 重新计算

为空数组添加值

Android 在将 androidx 生物识别更新为 1.0.0-alpha04 后崩溃

如何在 Kotlin 中使用 volatile

DatabaseManager_Impl 不是抽象的,不会覆盖 RoomDatabase 中的抽象方法 clearAllTables()

在 Scaffold Jetpack Compose 内的特定屏幕上隐藏顶部和底部导航器

@uncheckedVariance 在 Kotlin 中?

为什么 Kotlin Pair 中的条目不可变?

main函数和常规函数有什么区别?

Kotlin 中更好的回调方法是什么?侦听器与高阶函数

接口中的属性不能有支持字段

Kotlin - 如果不为空,则使用修改后的 Obj props 覆盖 Obj props