I could not reproduce this with CVS HEAD this afternoon. Potential newline issues showed up later, however, when I was trying to generate a controller.On 6/26/06,
Ola Bini <[EMAIL PROTECTED]> wrote:Hi.
Thomas asked where the newline problem on Windows show up. If you'veinstalled rubygems and rails
Hi.
Thomas asked where the newline problem on Windows show up. If you've
installed rubygems and rails and then try to generate a new rails
application, then take a look in the generated public/index.html, and
you will see that this file has been truncated to just contain
"", which is obviously not
Ok.
I've run this with CVS HEAD, completely clean installation of Rubygems
and it works perfectly. No OOM boom.
Strange.
/O
- Original Message -
From: Ola Bini <[EMAIL PROTECTED]>
Date: Monday, June 26, 2006 8:13 am
Subject: Re: [Jruby-devel] Rails not installing with CVS HEAD on Window
Hmm.
This is really strange. I will try this and see if it works for me.
Otherwise, 256 is to small on windows. =/
/O
- Original Message -
From: Charles O Nutter <[EMAIL PROTECTED]>
Date: Sunday, June 25, 2006 11:28 pm
Subject: [Jruby-devel] Rails not installing with CVS HEAD on Windows
Hi
Can you check what java running under cygwin reports as line-separator?
My patch uses the system property line.separator to find out if it needs
to change line endings or not.
/O
- Original Message -
From: Thomas E Enebo <[EMAIL PROTECTED]>
Date: Sunday, June 25, 2006 11:31 pm
Subject
Hi
This is due to the newline issue. (Or at least it's a good guess, since
strscan fails...)
/O
- Original Message -
From: Charles O Nutter <[EMAIL PROTECTED]>
Date: Sunday, June 25, 2006 11:57 pm
Subject: [Jruby-devel] Rails Tutorial issues
To: [email protected]
> I'm r
http://wiki.rubyonrails.com/rails/pages/TutorialStepThreeOn 6/25/06, Thomas E Enebo
<[EMAIL PROTECTED]> wrote: Can you give a better url to the tutorial?
I typed that command into a fresh rails app and it works fine. I am guessingthe controller already exists perhaps?-Tom-- Charles Oliver Nutter
Can you give a better url to the tutorial?
I typed that command into a fresh rails app and it works fine. I am guessing
the controller already exists perhaps?
-Tom
On Sun, 25 Jun 2006, Charles O Nutter defenestrated me:
>
>It appears to work correctly on Linux; perhaps the newline issue
>
It appears to work correctly on Linux; perhaps the newline issue again?On 6/25/06, Charles O Nutter <[EMAIL PROTECTED]
> wrote:I'm running through the tutorial on
rubyonrails.org and ran into a failure at step 3, while trying to generate a controller. This is under Windows; I haven't tried Linux y
I'm running through the tutorial on rubyonrails.org and ran into a failure at step 3, while trying to generate a controller. This is under Windows; I haven't tried Linux yet.C:\testrails\testapp2>jruby script\generate controller Friends list view new edit
C:/Jrubywork/jruby/lib/ruby/gems/1.8/gems/a
FYI, this was on straight Windows. Another attempt earlier today on Linux was also successful.On 6/25/06, Charles O Nutter <
[EMAIL PROTECTED]> wrote:I just tried the full install of JRuby and Rails and everything seemed to work fine.
- fresh pull of JRuby HEAD- clean/build- gem install rails --inc
I just tried the full install of JRuby and Rails and everything seemed to work fine.- fresh pull of JRuby HEAD- clean/build- gem install rails --include-dependencies --no-rdoc (using gem.bat included in JRuby CVS)
-- other than OOM the first time through, I was able to use this to install rails suc
So jruby matches the straight cygwin port, but not the installer
version (which has hacks added to make things friendlier in windows):
On: i386-cygwin
-
Wrote: "abc\ndef\r\nghi\n\rmpq\rrst"
Read: "abc\ndef\r\nghi\n\rmpq\rrst"
Exp: "abc\ndef\nghi\n\rmpq\rrst"
[Fuebo ~]
This works fine under Linux, but on my Windows box it OOMs using vanilla CVS HEAD.C:\JRubyWork\jruby>gem install rails --include-dependencies --no-rdocAttempting local installation of 'rails'Local gem file not found: rails*.gem
Attempting remote installation of 'rails'Updating Gem source index for:
>
> It's that "some reason" I want to understand.
>
Yep, but what's bugging me is Thomas results. The patch _should_ work
fine, so I'm just wondering what causes his trouble.
/O
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrat
On 6/25/06, Ola Bini <[EMAIL PROTECTED]> wrote:
Well, actually, it isn't as easy as that. The fundamental problem isn'tthat Ruby is 'changing' something on win32 but not on *nix. The problemis that Ruby's internal newline format happens to be the same as *nix
(for some _VERY_ strange reason... =)I
Well, actually, it isn't as easy as that. The fundamental problem isn't
that Ruby is 'changing' something on win32 but not on *nix. The problem
is that Ruby's internal newline format happens to be the same as *nix
(for some _VERY_ strange reason... =)
What this means is that Ruby will change FROM
Your patch seems to be the right way to go once we work the kinks out. I poked around and found a number of threads discussing how win32 ruby reads \r\n as \n and write \n as \r\n. Personally, I think this is a bad idea, but it does limit the areas we would need to patch. There's a trick, however.
Hi
Yes, that's what I gathered too. And my patch also does it that way,
comparing the current line.separator to \n and only changing lines
dynamically then.
So, the fun thing now is to see Thomas output on his C and JRuby.
/O
- Original Message -
From: Charles O Nutter <[EMAIL PROTECTED]
Here's what I get in x86-64 Linux:[EMAIL PROTECTED]:~/testrails/test4# ruby ~/Desktop/testLineEndings.rbOn: x86_64-linux-Wrote: "abc\ndef\r\nghi\n\rmpq\rrst"Read: "abc\ndef\r\nghi\n\rmpq\rrst"
Exp: "abc\ndef\nghi\n\rmpq\rrst"This matches the Java results for you on win32
There's a number of command-line params we don't support correctly. Feel free to clean any up you'd like. :)On 6/25/06, Ola Bini <
[EMAIL PROTECTED]> wrote:HiI just noted that C Ruby uses the flag -v to first print the version and
then run the script provided with verbose logging turned on. Thisbeh
Hi
I just noted that C Ruby uses the flag -v to first print the version and
then run the script provided with verbose logging turned on. This
behaviour isn't shared by JRuby.
/O
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated t
Hi, I've attached a test case for everyone to try out. When I run it,
first with C Ruby, then JRuby HEAD, I get this:
D:\Project\jruby-fn>ruby testLineEndings.rb
On: i386-mswin32
-
Wrote: "abc\ndef\r\nghi\n\rmpq\rrst"
Read: "abc\ndef\nghi\n\rmpq\rrst"
Exp: "abc\ndef\ngh
That would probably be a big help. Tom wasn't able to reproduce the issues you saw, so if you can put together a test case that demonstrates the problem, we'll certainly be able to fix it in the next release.
On 6/24/06, Ola Bini <[EMAIL PROTECTED]> wrote:
Hi,Thomas told me my patch for newlines on
24 matches
Mail list logo