不平衡的括号:Local Play 2.0.3

时间:2012-08-27 09:18:10

标签: scala playframework

我环顾了一段时间并且没有找到这样的东西,我认为这是版本不匹配。我还试图要求:-play 2.0.3并获得:

-----> Installing Play! 2.0.3.....
-----> Error installing Play! framework or unsupported Play! framework version     specified. Please review Dev Center for a list of supported versions.
 !     Heroku push rejected, failed to compile Play! app

听起来很奇怪?我看了开发中心,它应该得到支持。

这是我的游戏部署错误! 1.2.4默认

--------------------------------------------------------------
`012-08-27T08:42:06+00:00 heroku[web.1]: Starting process with command `play run --        http.port=24193 --%prod -Dprecompiled=true`
2012-08-27T08:42:07+00:00 app[web.1]: CompilerOracle: exclude     jregex/Pretokenizer.next
2012-08-27T08:42:07+00:00 app[web.1]: 08:42:07,856 INFO  ~ Starting /app
2012-08-27T08:42:07+00:00 app[web.1]: 08:42:07,943 INFO  ~ Application is precompiled
2012-08-27T08:42:07+00:00 app[web.1]: Exception in thread "main" play.exceptions.UnexpectedException: Unexpected Error
2012-08-27T08:42:07+00:00 app[web.1]:   at play.Play.start(Play.java:556)
2012-08-27T08:42:07+00:00 app[web.1]:   at play.Play.init(Play.java:300)
2012-08-27T08:42:07+00:00 app[web.1]:   at play.server.Server.main(Server.java:159)
2012-08-27T08:42:07+00:00 app[web.1]:   at jregex.Term.makeTree(jregex/Term.java:374)
2012-08-27T08:42:07+00:00 app[web.1]:   at jregex.Term.makeTree(jregex/Term.java:308)
2012-08-27T08:42:07+00:00 app[web.1]: Caused by: jregex.PatternSyntaxException: unbalanced parenthesis
2012-08-27T08:42:07+00:00 app[web.1]:   at jregex.Term.makeTree(jregex/Term.java:206)
2012-08-27T08:42:07+00:00 app[web.1]:   at jregex.Term.makeTree(jregex/Term.java:219)
2012-08-27T08:42:07+00:00 app[web.1]:   at jregex.Pattern.<init>(jregex/Pattern.java:150)
2012-08-27T08:42:07+00:00 app[web.1]:   at jregex.Pattern.compile(jregex/Pattern.java:164)
2012-08-27T08:42:07+00:00 app[web.1]:   at jregex.Pattern.<init>(jregex/Pattern.java:108)
2012-08-27T08:42:07+00:00 app[web.1]:   at play.mvc.Router$Route.compute(Router.java:715)
2012-08-27T08:42:07+00:00 app[web.1]:   at play.mvc.Router.getRoute(Router.java:134)
2012-08-27T08:42:07+00:00 app[web.1]:   at play.mvc.Router.appendRoute(Router.java:118)
2012-08-27T08:42:07+00:00 app[web.1]:   at play.mvc.Router.parse(Router.java:199)
2012-08-27T08:42:07+00:00 app[web.1]:   at play.mvc.Router.parse(Router.java:164)
2012-08-27T08:42:07+00:00 app[web.1]:   at play.mvc.Router.load(Router.java:48)
2012-08-27T08:42:07+00:00 app[web.1]:   at play.Play.start(Play.java:519)
2012-08-27T08:42:07+00:00 app[web.1]:   ... 2 more
2012-08-27T08:42:07+00:00 app[web.1]:   at play.mvc.Router.detectChanges(Router.java:219)
2012-08-27T08:42:08+00:00 app[web.1]: ~  _ __ | | __ _ _  _| |
2012-08-27T08:42:08+00:00 app[web.1]: ~ |_|            |__/   
2012-08-27T08:42:08+00:00 app[web.1]: ~ framework ID is prod
2012-08-27T08:42:08+00:00 app[web.1]: ~
2012-08-27T08:42:08+00:00 app[web.1]: ~ | '_ \| |/ _' | || |_|
2012-08-27T08:42:08+00:00 app[web.1]: ~ |  __/|_|\____|\__ (_)
2012-08-27T08:42:08+00:00 app[web.1]: ~ play! 1.2.5, http://www.playframework.org
2012-08-27T08:42:08+00:00 app[web.1]: ~        _            _ 
2012-08-27T08:42:08+00:00 app[web.1]: ~ Ctrl+C to stop
2012-08-27T08:42:08+00:00 app[web.1]: ~
2012-08-27T08:42:08+00:00 app[web.1]: ~ 
2012-08-27T08:42:09+00:00 heroku[web.1]: Process exited with status 1
2012-08-27T08:42:09+00:00 heroku[web.1]: State changed from starting to crashed

-------------------------------------------
shell# heroku ps
=== web: `play run --http.port=$PORT $PLAY_OPTS`
web.1: crashed for 9m

编辑:----路由文件

# Routes
# This file defines all application routes (Higher priority routes first)
# ~~~~

# The home page
GET     /                                   controllers.Projects.index

# Authentication
GET     /login                              controllers.Application.login
POST    /login                              controllers.Application.authenticate
GET     /logout                             controllers.Application.logout

# Map static resources from the /public folder to the /public path
GET     /assets/*file                       controllers.Assets.at(path="/public", file)

1 个答案:

答案 0 :(得分:1)

问题解决了:由于某种原因,项目/在.gitignore中导致了这个错误。这个问题不是很冗长。