-
Notifications
You must be signed in to change notification settings - Fork 95
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
To compile XML syntax, the scala.xml package must be on the classpath. #79
Comments
Which scala version are you using ? Did you updated your scala version recently ? |
@Chikooo starting with Scala 2.11.x you can only use XML literals if you add an explicit dependency to scala-xml to your build. How to do this depends on the build system you use. The most recent artifact is currently this one: http://search.maven.org/#artifactdetails|org.scala-lang.modules|scala-xml_2.11|1.0.5|bundle If you use sbt you need to add this line to your build definition: libraryDependencies += "org.scala-lang.modules" % "scala-xml_2.11" % "1.0.5" @biswanaths I think the problem is that there's a Scala compiler error message that points to https://github.com/scala/scala-xml without giving enough information about what is wrong if you are a Scala/Java beginner. Maybe the README could contain a section that helps these users to solve the immediate problem. |
jrudolph: Exactly without even giving what is wrong it is redirecting to GitHub. I am a scala beginner. I have added that line too in build.sbt biswanaths: I am using latest version of scala. |
@jrudolph , Lets augment the non-existent wiki with most commonly faced problems. I think that will be helpful and quick turnaround for common problems faced by the user. |
@biswanaths |
@Chikooo you need to provide much more details. What did you try exactly? How did you come so far? How did you create your original IntelliJ project? What does it mean that you are "facing this issue since yesterday"? Time is probably not the reason that it now fails if it worked before so something else must have changed as well. |
@jrudolph |
@Chikooo , can you post your sbt file ? |
Will be closing this issue as without more information, I strongly believe this is a either a sbt configuration issue or intellij issue. @Chikooo , Please do reopen the issue, if the issue is still persisting with more information. |
@biswanaths : i could successfully run the code. I have added some line of code to the sbt file. thanks for your help. If you have basic sample spray codes can you send them to me? |
Great that you resolved your issue. I work with spary, but will try to find any basic spray template and send it to you. You are more than welcome to reach out, if you face any problems. Have a good day. |
@biswanaths
Is there anything else I need to create? Do you have sample example for this? |
@Chikooo you can try asking questions like this on either stackoverflow.com or on the spray-user mailing list at https://groups.google.com/forum/#!forum/akka-user. This is not the place where you will get answer for a questions about a totally different topic :) |
@jrudolph oops. I am really sorry. :) I'll ask there. |
Scala newbie here with a solution including steps for updating the libs and refreshing in Eclipse.
Go to Eclipse and refresh the project |
Hey @derek-pappas , thanks for the steps. This will help lot of people down the line. I will try to put this in wiki. Thanks again. |
Hi You are welcome. Thank you taking care of the code! I was stuck until I guessed I had to use set update. I was glad I stuck What would be really cool is if in Eclipse and Intellij the error message Some message like: Splitting out the library makes sense but there needs to be a clear set of Looking in the ~/.ivy cache after I discovered it gave me a clue about what Derek Pappas On Fri, Sep 11, 2015 at 10:28 PM, biswanaths notifications@github.com
|
Hi Guys |
@ratibbrahim try https://users.scala-lang.org perhaps, and show exactly what you tried and what error you got |
Please help me on this.
The text was updated successfully, but these errors were encountered: