File tree 1 file changed +3
-2
lines changed
core/src/main/kotlin/com/phodal/shirecore/provider/shire
1 file changed +3
-2
lines changed Original file line number Diff line number Diff line change @@ -150,7 +150,7 @@ interface FileRunService {
150
150
151
151
fun runInCli (project : Project , psiFile : PsiFile , args : List <String >? = null): String? {
152
152
val commandLine = when (psiFile.language.displayName.lowercase()) {
153
- " python" -> GeneralCommandLine (" python " , psiFile.virtualFile.path)
153
+ " python" -> GeneralCommandLine (" python3 " , psiFile.virtualFile.path)
154
154
" javascript" -> GeneralCommandLine (" node" , psiFile.virtualFile.path)
155
155
" ecmascript 6" -> GeneralCommandLine (" node" , psiFile.virtualFile.path)
156
156
" ruby" -> GeneralCommandLine (" ruby" , psiFile.virtualFile.path)
@@ -173,14 +173,15 @@ interface FileRunService {
173
173
output.stdout
174
174
} catch (e: Exception ) {
175
175
e.printStackTrace()
176
- null
176
+ e.message
177
177
}
178
178
}
179
179
180
180
fun runInCli (project : Project , virtualFile : VirtualFile , args : List <String >? = null): String? {
181
181
val psiFile = runReadAction {
182
182
PsiManager .getInstance(project).findFile(virtualFile)
183
183
} ? : return null
184
+
184
185
return runInCli(project, psiFile, args)
185
186
}
186
187
You can’t perform that action at this time.
0 commit comments