我正在将当前的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) try{
throwsException();
} catch {
case e: IOException => println("IO Exception");
} finally {
println("this code is always executed");
}
Run Code Online (Sandbox Code Playgroud)
在此
catch
部分中,它始终弹出“类型单元的表达式未确认键入字符串”错误。