小编이국화*_*이국화的帖子

无法推送到heroku

我正在将当前的git存储库推入heroku.该在线应用程序是使用Scala和IntelliJ开发的.我不知道如何解决这个错误.

$ git push heroku master
Counting objects: 3, done.
Delta compression using up to 4 threads.
Compressing objects: 100% (3/3), done.
Writing objects: 100% (3/3), 531 bytes | 0 bytes/s, done.
Total 3 (delta 0), reused 0 (delta 0)
remote: Compressing source files... done.
remote: Building source:
remote: 
remote:  !     No default language could be detected for this app.
remote:             HINT: This occurs when Heroku cannot detect the         buildpack to use for this application automatically.
remote:             See https://devcenter.heroku.com/articles/buildpacks
remote: …
Run Code Online (Sandbox Code Playgroud)

git scala heroku intellij-idea

60
推荐指数
4
解决办法
7万
查看次数

类型单位的Scala表达式无法确认是否键入String

try{
    throwsException();
} catch {
    case e: IOException => println("IO Exception");
} finally {
    println("this code is always executed");
}
Run Code Online (Sandbox Code Playgroud)

在此 catch 部分中,它始终弹出“类型单元的表达式未确认键入字符串”错误。

error-handling scala try-catch

2
推荐指数
1
解决办法
4911
查看次数

标签 统计

scala ×2

error-handling ×1

git ×1

heroku ×1

intellij-idea ×1

try-catch ×1