Giter Club home page Giter Club logo

Comments (8)

nafg avatar nafg commented on September 28, 2024

First of all, I assume you know that jetty-run will run the demo app that's
online.
Anyway, the problem is that reactive-{core,web}-api are symlinks to the API
docs. So the link target doesn't exist until you run the doc task.
Also, if you're on Windows you might not be able to make it work --- I
haven't tried. If you can get sbt to copy the files to the right place
without using symlinks, let me know.
Also, IIRC the error doesn't prevent it from running, it just means that the
API docs links won't work, no?

On Wed, May 25, 2011 at 3:49 PM, andreasW <
[email protected]>wrote:

"reactive" looks great! I tried cloning the repository and running with
"sbt jetty-run", and I get the following:

java.lang.IllegalArgumentException: requirement failed: Source file
'/home/andreas/Documents/Source/trunk/reactive/reactive-web-demo/src/main/webapp/reactive-web-api'
does not exist.

Presumably a file that got missed checking in?

Cheers,

Andreas

Reply to this email directly or view it on GitHub:
#6

from reactive.

andreasW avatar andreasW commented on September 28, 2024

It did in fact prevent the app from running, for me, anyway. The error I
mentioned was followed by a stack trace and Jetty was not run. Since I did
not find a tutorial listing the exact commands needed, I assumed sbt update
and jetty-run would do the trick. Sadly, they did not. I am using Ubuntu,
and a recently installed sbt (0.7.4).

I find that if you want to encourage users, it helps to have the simplest
thing "just work", or else provide very specific instructions somewhere.
Probably I just missed those :-)

Anyway, building the "doc" target first, as you suggested, did the trick and
I have the demo up and running. I love your on-line documentation, buy the
way, but I was missing a live example to disect. I have that now :-) Making
the demo the documentation and the documentation the demo is a stroke of
genius.

Thanks!

Andreas

On Wed, May 25, 2011 at 5:17 PM, nafg <
[email protected]>wrote:

First of all, I assume you know that jetty-run will run the demo app that's
online.
Anyway, the problem is that reactive-{core,web}-api are symlinks to the API
docs. So the link target doesn't exist until you run the doc task.
Also, if you're on Windows you might not be able to make it work --- I
haven't tried. If you can get sbt to copy the files to the right place
without using symlinks, let me know.
Also, IIRC the error doesn't prevent it from running, it just means that
the
API docs links won't work, no?

On Wed, May 25, 2011 at 3:49 PM, andreasW <
[email protected]>wrote:

"reactive" looks great! I tried cloning the repository and running with
"sbt jetty-run", and I get the following:

java.lang.IllegalArgumentException: requirement failed: Source file

'/home/andreas/Documents/Source/trunk/reactive/reactive-web-demo/src/main/webapp/reactive-web-api'
does not exist.

Presumably a file that got missed checking in?

Cheers,

Andreas

Reply to this email directly or view it on GitHub:
#6

Reply to this email directly or view it on GitHub:
#6 (comment)

from reactive.

nafg avatar nafg commented on September 28, 2024

You're right. I should add a section to the Getting Started page about
running the demo.
If you want you can send a pull request or just file a ticket for that
change.
Enjoy, and looking forward to feedback!

On Wed, May 25, 2011 at 8:15 PM, andreasW <
[email protected]>wrote:

It did in fact prevent the app from running, for me, anyway. The error I
mentioned was followed by a stack trace and Jetty was not run. Since I did
not find a tutorial listing the exact commands needed, I assumed sbt update
and jetty-run would do the trick. Sadly, they did not. I am using Ubuntu,
and a recently installed sbt (0.7.4).

I find that if you want to encourage users, it helps to have the simplest
thing "just work", or else provide very specific instructions somewhere.
Probably I just missed those :-)

Anyway, building the "doc" target first, as you suggested, did the trick
and
I have the demo up and running. I love your on-line documentation, buy the
way, but I was missing a live example to disect. I have that now :-) Making
the demo the documentation and the documentation the demo is a stroke of
genius.

Thanks!

Andreas

On Wed, May 25, 2011 at 5:17 PM, nafg <
[email protected]>wrote:

First of all, I assume you know that jetty-run will run the demo app
that's
online.
Anyway, the problem is that reactive-{core,web}-api are symlinks to the
API
docs. So the link target doesn't exist until you run the doc task.
Also, if you're on Windows you might not be able to make it work --- I
haven't tried. If you can get sbt to copy the files to the right place
without using symlinks, let me know.
Also, IIRC the error doesn't prevent it from running, it just means that
the
API docs links won't work, no?

On Wed, May 25, 2011 at 3:49 PM, andreasW <
[email protected]>wrote:

"reactive" looks great! I tried cloning the repository and running with
"sbt jetty-run", and I get the following:

java.lang.IllegalArgumentException: requirement failed: Source file

'/home/andreas/Documents/Source/trunk/reactive/reactive-web-demo/src/main/webapp/reactive-web-api'

does not exist.

Presumably a file that got missed checking in?

Cheers,

Andreas

Reply to this email directly or view it on GitHub:
#6

Reply to this email directly or view it on GitHub:
#6 (comment)

Reply to this email directly or view it on GitHub:
#6 (comment)

from reactive.

nafg avatar nafg commented on September 28, 2024

Well, I guess this is a ticket...
Anyway, perhaps a better idea is to just make the jetty-run (or package/prepare-webapp) task dependent on the doc task. If anyone knows offhand how to do that, please comment, otherwise I'll have to look into it when I have the chance G-d willing.

from reactive.

nafg avatar nafg commented on September 28, 2024

Seems to work:
git clone git://github.com/nafg/reactive.git
sbt 'project reactive-web-demo' container:start ~compile

from reactive.

dylemma avatar dylemma commented on September 28, 2024

Looks like this is pretty old, but now I'm running into similar issues. I'm on Windows, so the symlinks for the various different scala versions appear to my system as plain text files. So nothing will compile, since it's missing references to the Compat object. I'll take a stab at trying to make them work without resorting to symlinks... expect a pull request soon! :)

from reactive.

nafg avatar nafg commented on September 28, 2024

Thanks! Looking forward!

I assume you'll do it via sbt config, right?

On Mon, Apr 15, 2013 at 8:58 PM, Dylan Halperin [email protected]:

Looks like this is pretty old, but now I'm running into similar issues.
I'm on Windows, so the symlinks for the various different scala versions
appear to my system as plain text files. I'll take a stab at trying to make
them work without resorting to symlinks... expect a pull request soon! :)


Reply to this email directly or view it on GitHubhttps://github.com//issues/6#issuecomment-16421018
.

from reactive.

dylemma avatar dylemma commented on September 28, 2024

Yeah, I've currently got something working by defining a resolveDirs function in the main Build.scala file. I'll commit/push to my fork soon.

from reactive.

Related Issues (20)

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.