简体   繁体   English

无法在IntelliJ Idea中运行或调试Kotlin

[英]Cant Run or Debug Kotlin In IntelliJ Idea

since Jetbrains released a new version of IJ, i removed my old version and installed (2017.3.4) the final version !! 自从Jetbrains发布IJ的新版本以来,我删除了旧版本并安装(2017.3.4)最终版本! but when i start a new kotlin project i don't have Run/Debug on my right click !! 但是当我开始一个新的kotlin项目时,我没有右键单击运行/调试! and when i click on Run from Run menu it gives me a small window that says [Run:Edit Configuration] !! 当我从“运行”菜单中单击“运行”时,它会给我一个小窗口,上面显示[Run:Edit Configuration]! i haven't seen something like this before!! 我以前从未见过这样的东西! and by the way when i enable the REPL from kotlin sub menu it shows an error : 顺便说一下,当我从kotlin子菜单启用REPL时,它显示错误:

You're running the REPL with outdated classes !! 您正在使用过时的课程运行REPL!

i reinstalled it but its still the same.....even removed the java...nothing changed. 我重新安装了它,但是它仍然是一样的.....甚至删除了Java ...什么都没改变。 help me please, attached a screenshot.... 请帮助我,附上截图...。

screen shot from IJ IJ的屏幕截图

在此处输入图片说明

You are unable to run or debug because you have written nothing in your class. 您无法运行或调试,因为您没有在课堂上写任何东西。 .This screenshot shows how to add run configuration for your js file. 此屏幕截图显示了如何为js文件添加运行配置。

This second link is screenshot of simple Hello World program and you get run/ debug option when you right click on class, go through it please. 第二个链接是简单的Hello World程序的屏幕截图,当您右键单击类时,您将获得运行/调试选项,请仔细阅读它。

I hope this helps, if you find it useful then upvote please. 希望这对您有所帮助,如果您觉得有用,请再投票。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM