scala: error: not found: object play #26501
-
I am using default https://github.com/actions/starter-workflows/blob/master/ci/scala.yml for project based on playframework. But CI is failing with error. It is not able to find play while previous step of sbt installation went well. Error:
scala.yml:
|
Beta Was this translation helpful? Give feedback.
Replies: 4 comments
-
Hi @jharitesh108 , I tried to use the same scala.yml to build a playframework sample project, the workflow run succeeded . There is my workflow run : https://github.com/zhuorg/play-scala-starter-example/runs/591222539?check_suite_focus=true Could you please compare your project with this sample project? Such as the project/plugins.sbt file ,build.sbt file? Or would you mind sharing your project here? |
Beta Was this translation helpful? Give feedback.
-
Thanks for ur help. I also created just one starter project and enable github action. It worked. https://github.com/smarterhealth/play-starter/runs/591504958?check_suite_focus=true I will compare this with my problematic repo may be some config is not set as per github action expectation. Local build is running without any issue. I will post here later when I get reason. Thanks again. |
Beta Was this translation helpful? Give feedback.
-
I found the reason. In .gitignore file, I added "
instead of
that’s why in local it was ok but on github action’s shell build was failing. A clear error about missing plugins.sbt file would have helped. |
Beta Was this translation helpful? Give feedback.
-
Wow, I am so glad that you have found the root cause. For the error message improvement, in my opinion , it would be better if you could share your idea with sbt command team . Thank you for your understanding. |
Beta Was this translation helpful? Give feedback.
I found the reason. In .gitignore file, I added "
instead of
that’s why in local it was ok but on github action’s shell build was failing. A clear error about missing plugins.sbt file would have helped.