Play framework: not found: params values

Yesterday, I had problems with the routes in the Play 2.1.1 application and deleted the contents of the target folder to make Play recompile everything (maybe a vague idea).

Now I get a bunch of errors in Eclipse:

too many arguments for method apply: (name: String, constraint: String)play.core.DynamicPart in object DynamicPart routes_routing.scala /myapp/target/scala-2.10/src_managed/main line 44 Scala Problem too many arguments for method apply: (name: String, constraint: String)play.core.DynamicPart in object DynamicPart routes_routing.scala /myapp/target/scala-2.10/src_managed/main line 40 Scala Problem too many arguments for method apply: (name: String, constraint: String)play.core.DynamicPart in object DynamicPart routes_routing.scala /myapp/target/scala-2.10/src_managed/main line 52 Scala Problem too many arguments for method apply: (name: String, constraint: String)play.core.DynamicPart in object DynamicPart routes_routing.scala /myapp/target/scala-2.10/src_managed/main line 48 Scala Problem not found: value params routes_routing.scala /myapp/target/scala-2.10/src_managed/main line 96 Scala Problem not found: value params routes_routing.scala /myapp/target/scala-2.10/src_managed/main line 88 Scala Problem not found: value params routes_routing.scala /myapp/target/scala-2.10/src_managed/main line 112 Scala Problem not found: value params routes_routing.scala /myapp/target/scala-2.10/src_managed/main line 104 Scala Problem 

After some google and stackoverflow research, I tried to execute play clean compile in a project. It works. I can also run the application and it works fine.

After cleaning, I tried Refresh in Eclipse. It does not change anything. Errors will not disappear.

Any suggestions?

Thanks!

+4
source share
2 answers

You need to restore the eclipse project

  • Start playback

     play 
  • Create an eclipse project (complete this step inside the game console)

     eclipse with-source=true 
  • Update eclipse project

     F5 (fn + F5 in Mac) 

You do not need to delete the eclipse project every time you make important changes :-)

+5
source

I think I found it:

First I ran play clean-all .

But I think this is what really helped me:

I deleted the Eclipse project (In Eclipse, right-click> delete without checking "delete contents on disk"). Then I ran play eclipse and imported the project into Eclipse.

0
source

Source: https://habr.com/ru/post/1483036/


All Articles