Coder Social home page Coder Social logo

scalaqa's People

Contributors

inca avatar ryuugan avatar spaceweaver avatar

Stargazers

 avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar

scalaqa's Issues

Not working on windows

I just tried the source you have modified, and now there is still an error when I submitting a question:

HTTP ERROR 500
Problem accessing /ask. Reason: 

E:\scalaqa-sbt\target\scala_2.8.1\webapp\public\uploads\sdf (?????)

Caused by:
java.io.FileNotFoundException: E:\scalaqa-sbt\target\scala_2.8.1\webapp\public\uploads\sdf (?????)
at java.io.FileOutputStream.open(Native Method)
at java.io.FileOutputStream.<init>(FileOutputStream.java:179)
at java.io.FileOutputStream.<init>(FileOutputStream.java:70)
at ru.circumflex.tutorials.Main$$anonfun$4.apply(main.scala:51)
at ru.circumflex.tutorials.Main$$anonfun$4.apply(main.scala:32)
at ru.circumflex.web.Route.dispatch(router.scala:88)
at ru.circumflex.web.Route.update(router.scala:96)
at ru.circumflex.tutorials.Main.<init>(main.scala:32)
at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:39)
at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
at java.lang.Class.newInstance0(Class.java:355)
at java.lang.Class.newInstance(Class.java:308)

When I did is type sdf to the text fields of username, title, body, then click submit button.

There are errors in action post("/ask/?")

I have tried this project, and found when I submit a question, it throws errors.

It's in the main.scala, post("/ask/?"), it has such errors:

  1. line 43
    val size = itemStream.asInstanceOf[FileItem].getSize

The itemStream is an instance of FileItemStream, not FileItem

  1. line 40 - 53
    I don't understand these lines well, but it throws several different errors.

Expect you can fix it, and I have build a sbt-version from this project, named scalaqa-sbt, please see: https://github.com/freewind/scalaqa-sbt

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.