2009/4/3 T.J. Crowder <t...@crowdersoftware.com>: > > Hi, > >> I think the issue is the /'s in the filename. >> >> I know nada about Ruby, but does it auto translate / to \ for window? >> I don't think. > > If it didn't, it probably wouldn't get that far. Most cross-OS > systems (Java, for instance) handle translating slashes to backslashes > in file ops on Windows. I also know nothing about Ruby, but I suspect > that it does as well. > > -- T.J. > > On Apr 3, 1:37 pm, Richard Quadling <rquadl...@googlemail.com> wrote: >> 2009/4/3 T.J. Crowder <t...@crowdersoftware.com>: >> >> >> >> > Hi Andrew, >> >> >> T.J., are you sure you're running the latest code? >> >> > Yup, for the Ubuntu system yesterday I grabbed everything fresh, >> > including updating the submodules. The Windows stuff last week was >> > also brand-spanking-new, but just to be sure nothing was fixed in the >> > last week, I re-grabbed the entire thing this morning and I get the >> > same permissions error. >> >> > Maybe it's an issue with how I'm setting up my repos? Here's what I'm >> > doing when building from scratch: >> >> > (Starting in my "projects" directory) >> > git clone git://github.com/sstephenson/prototype.git >> > cd prototype >> > git submodule init >> > git submodule update >> > rake dist >> > (Check that prototype.js is in the dist subdirectory) >> > rake doc >> >> > Until the rake doc part, I'm not getting any errors. >> >> > Thanks, >> >> > -- T.J. >> >> > On Apr 3, 8:35 am, Andrew Dupont <goo...@andrewdupont.net> wrote: >> >> T.J., are you sure you're running the latest code? Do a "git submodule >> >> update" from the root Prototype directory. Those sound like issues I >> >> had run into, and fixed, several weeks ago. >> >> >> Meanwhile, I'll fire up my Windows VM and see what happens when I try >> >> to generate docs from there. >> >> >> Cheers, >> >> Andrew >> >> >> On Apr 2, 6:17 am, "T.J. Crowder" <t...@crowdersoftware.com> wrote: >> >> >> > Hi again, >> >> >> > Thought I'd give this a try on the Ubuntu lab machine I'd just built, >> >> > in hopes that the permissions problem is Windows-specific. I got >> >> > further, it can read the temp file, but then it runs into a problem in >> >> > the PDoc Runner where it can't find the file "ajax/ajax": >> >> >> > * * * * >> >> > t...@lab06:~/projects/prototype$ rake doc >> >> > (in /home/tjc/projects/prototype) >> >> >> > Parsing source files: /tmp/pdoc20090402-6276-fmbqy1-0. >> >> > Parsing completed in 81.040395 seconds. >> >> >> > Generating documentation to: /home/tjc/projects/prototype/doc. >> >> > Rendering: ajax_section.html >> >> > rake aborted! >> >> > No such file or directory - ajax/ajax >> >> > /home/tjc/projects/prototype/Rakefile:74 >> >> > (See full trace by running task with --trace) >> >> > * * * * >> >> >> > (Rakefile:74 is the PDoc Runner call.) I'm guessing it's meant to be >> >> > in the doc subdirectory, but looking there, there is no subdirectory >> >> > called "ajax". There is, however, one called "Ajax" (with a capital >> >> > A): >> >> >> > * * * * >> >> > t...@lab06:~/projects/prototype$ ls -lA doc >> >> > total 44 >> >> > drwxr-xr-x 2 tjc tjc 4096 2009-04-02 12:01 Ajax >> >> > -rw-r--r-- 1 tjc tjc 21681 2009-04-02 12:01 ajax_section.html >> >> > -rw-r--r-- 1 tjc tjc 12309 2009-04-02 12:01 index.html >> >> > * * * * >> >> >> > Some kind of case sensitivity problem? I wonder if this has only been >> >> > used successfully on Windows (if even there?), Mac OS X, and the like >> >> > that don't (by default) have case-sensitive file systems... >> >> >> > -- T.J. >> >> >> > On Apr 2, 10:08 am, "T.J. Crowder" <t...@crowdersoftware.com> wrote: >> >> >> > > Folks, >> >> >> > > Can anyone build the docs other than Tobie and Andrew? If so, do you >> >> > > have any idea what's going on? I really want to close the large >> >> > > number of doc tickets on my plate, but there's no point in doing the >> >> > > work if the patches are just going to sit there unused (like this one >> >> > > [1]), that's just a waste of time, and none of us have time to waste. >> >> > > I'm about to hit a phase of a project where I won't have time to do >> >> > > this, so I was trying to clean them up before that. >> >> >> > > [1]https://prototype.lighthouseapp.com/projects/8886-prototype/tickets/610 >> >> >> > > Thanks in advance, >> >> >> > > -- T.J. >> >> >> > > On Mar 31, 4:00 pm, "T.J. Crowder" <t...@crowdersoftware.com> wrote: >> >> >> > > > Hi Andrew, >> >> >> > > > Thanks for the help. Yeah, it is weird, isn't it? :-) And yet we >> >> > > > have permission to delete it (apparently, as it does get deleted). >> >> >> > > > > Are you logged in as an administrator? >> >> >> > > > I am indeed, and that file is being created in the temp directory >> >> > > > associated with my account, which in theory I'd be able to >> >> > > > read/write >> >> > > > to regardless. Early on, as a test, I created a different directory >> >> > > > with a short path with no spaces and that I have "full control" >> >> > > > permissions to and pointed TEMP/TMP at it instead. The directory >> >> > > > got >> >> > > > used, but I got the same result. >> >> >> > > > -- T.J. :-) >> >> >> > > > On Mar 31, 6:23 am, Andrew Dupont <goo...@andrewdupont.net> wrote: >> >> >> > > > > Christ, that's weird. It's saying you don't have permission to >> >> > > > > read >> >> > > > > the temporary file we create to build a concatenated version of >> >> > > > > Prototype with documentation comments included. The whole point >> >> > > > > of the >> >> > > > > temporary-file approach is to avoid permissions issues. >> >> >> > > > > Are you logged in as an administrator? >> >> >> > > > > Cheers, >> >> > > > > Andrew >> >> >> > > > > On Mar 30, 5:51 am, "T.J. Crowder" <t...@crowdersoftware.com> >> >> > > > > wrote: >> >> >> > > > > > Hi all, >> >> >> > > > > > I have a bunch of doc tickets I'd like to resolve (not to >> >> > > > > > mention this >> >> > > > > > ticket[1] discussed here[2] that I've posted a patch for, but >> >> > > > > > seems to >> >> > > > > > be waiting for someone to check that the doc stuff doesn't get >> >> > > > > > broken >> >> > > > > > by blank lines), but 'rake doc' doesn't work on my system. >> >> > > > > > 'rake >> >> > > > > > dist' and 'rake test' both do. >> >> >> > > > > > [1]http://prototype.lighthouseapp.com/projects/8886-prototype/tickets/610 >> >> > > > > > [2]http://groups.google.com/group/prototype-core/browse_thread/thread/c5... >> >> >> > > > > > I've installed Ruby, git, rake, etc., cloned the repo, built the >> >> > > > > > submodules, etc., and again dist and test work. But I haven't >> >> > > > > > manually installed anything specific for PDoc -- it'd be a great >> >> > > > > > answer if it were just that I was missing out something. >> >> >> > > > > > I'd like to get the doc stuff working so I can test my doc >> >> > > > > > changes >> >> > > > > > locally before posting patches. I know nothing about Ruby or >> >> > > > > > rake. >> >> > > > > > Anyone have any idea what's going on here and how to resolve >> >> > > > > > this? >> >> > > > > > * * * * >> >> > > > > > C:\Projects\prototype>rake doc --trace >> >> > > > > > (in C:/Projects/prototype) >> >> > > > > > ** Invoke doc (first_time) >> >> > > > > > ** Invoke doc:build (first_time) >> >> > > > > > ** Invoke doc:require (first_time) >> >> > > > > > ** Execute doc:require >> >> > > > > > ** Execute doc:build >> >> > > > > > rake aborted! >> >> > > > > > Permission denied - C:/DOCUME~1/tjc/LOCALS~1/Temp/pdoc.3196.0 >> >> > > > > > C:/Projects/prototype/vendor/sprockets/lib/sprockets/concatenation.rb: >> >> > > > > > 27:in `utime' >> >> > > > > > C:/Projects/prototype/vendor/sprockets/lib/sprockets/concatenation.rb: >> >> > > > > > 27:in `save_to' >> >> > > > > > C:/Projects/prototype/rakefile:72 >> >> > > > > > c:/ruby/lib/ruby/1.8/tempfile.rb:172:in `open' >> >> > > > > > C:/Projects/prototype/rakefile:64 >> >> > > > > > c:/ruby/lib/ruby/gems/1.8/gems/rake-0.8.4/lib/rake.rb:617:in >> >> > > > > > `call' >> >> > > > > > c:/ruby/lib/ruby/gems/1.8/gems/rake-0.8.4/lib/rake.rb:617:in >> >> > > > > > `execute' >> >> > > > > > c:/ruby/lib/ruby/gems/1.8/gems/rake-0.8.4/lib/rake.rb:612:in >> >> > > > > > `each' >> >> > > > > > c:/ruby/lib/ruby/gems/1.8/gems/rake-0.8.4/lib/rake.rb:612:in >> >> > > > > > `execute' >> >> > > > > > c:/ruby/lib/ruby/gems/1.8/gems/rake-0.8.4/lib/rake.rb:578:in >> >> > > > > > `invoke_with_call_chain' >> >> > > > > > c:/ruby/lib/ruby/1.8/monitor.rb:242:in `synchronize' >> >> > > > > > c:/ruby/lib/ruby/gems/1.8/gems/rake-0.8.4/lib/rake.rb:571:in >> >> > > > > > `invoke_with_call_chain' >> >> > > > > > c:/ruby/lib/ruby/gems/1.8/gems/rake-0.8.4/lib/rake.rb:588:in >> >> > > > > > `invoke_prerequisites' >> >> > > > > > c:/ruby/lib/ruby/gems/1.8/gems/rake-0.8.4/lib/rake.rb:585:in >> >> > > > > > `each' >> >> > > > > > c:/ruby/lib/ruby/gems/1.8/gems/rake-0.8.4/lib/rake.rb:585:in >> >> > > > > > `invoke_prerequisites' >> >> > > > > > c:/ruby/lib/ruby/gems/1.8/gems/rake-0.8.4/lib/rake.rb:577:in >> >> > > > > > `invoke_with_call_chain' >> >> > > > > > c:/ruby/lib/ruby/1.8/monitor.rb:242:in `synchronize' >> >> > > > > > c:/ruby/lib/ruby/gems/1.8/gems/rake-0.8.4/lib/rake.rb:571:in >> >> > > > > > `invoke_with_call_chain' >> >> > > > > > c:/ruby/lib/ruby/gems/1.8/gems/rake-0.8.4/lib/rake.rb:564:in >> >> > > > > > `invoke' >> >> > > > > > c:/ruby/lib/ruby/gems/1.8/gems/rake-0.8.4/lib/rake.rb:2027:in >> >> > > > > > `invoke_task' >> >> > > > > > c:/ruby/lib/ruby/gems/1.8/gems/rake-0.8.4/lib/rake.rb:2005:in >> >> > > > > > `top_level' >> >> > > > > > c:/ruby/lib/ruby/gems/1.8/gems/rake-0.8.4/lib/rake.rb:2005:in >> >> > > > > > `each' >> >> > > > > > c:/ruby/lib/ruby/gems/1.8/gems/rake-0.8.4/lib/rake.rb:2005:in >> >> > > > > > `top_level' >> >> > > > > > c:/ruby/lib/ruby/gems/1.8/gems/rake-0.8.4/lib/rake.rb:2044:in >> >> > > > > > `standard_exception_handling' >> >> > > > > > c:/ruby/lib/ruby/gems/1.8/gems/rake-0.8.4/lib/rake.rb:1999:in >> >> > > > > > `top_level' >> >> > > > > > c:/ruby/lib/ruby/gems/1.8/gems/rake-0.8.4/lib/rake.rb:1977:in >> >> > > > > > `run' >> >> > > > > > c:/ruby/lib/ruby/gems/1.8/gems/rake-0.8.4/lib/rake.rb:2044:in >> >> > > > > > `standard_exception_handling' >> >> > > > > > c:/ruby/lib/ruby/gems/1.8/gems/rake-0.8.4/lib/rake.rb:1974:in >> >> > > > > > `run' >> >> > > > > > c:/ruby/lib/ruby/gems/1.8/gems/rake-0.8.4/bin/rake:31 >> >> > > > > > c:/ruby/bin/rake:16:in `load' >> >> > > > > > c:/ruby/bin/rake:16 >> >> > > > > > * * * * >> >> > > > > > The temp file (C:/DOCUME~1/tjc/LOCALS~1/Temp/pdoc.3196.0, in the >> >> > > > > > above) _does_ get created briefly, and then deleted by the end >> >> > > > > > of the >> >> > > > > > process. Naturally I've checked permissions. As you can tell, >> >> > > > > > this >> >> > > > > > is a Windows system -- XP Home SP3, specifically. >> >> >> > > > > > Thanks in advance, >> >> > > > > > -- >> >> > > > > > T.J. Crowder >> >> > > > > > tj / crowder software / com >> >> I think the issue is the /'s in the filename. >> >> I know nada about Ruby, but does it auto translate / to \ for window? >> I don't think. >> >> -- >> ----- >> Richard Quadling >> Zend Certified Engineer :http://zend.com/zce.php?c=ZEND002498&r=213474731 >> "Standing on the shoulders of some very clever giants!" > > >
I think I've found the problem. File.utime(timestamp, timestamp, filename) is trying to amend the time on the open file. I commented this line and it worked. Well. I'm getting ... [03/04/2009 13:54:34] [D:\Personal Files\Downloads\Software\Programming\Javascript\Prototype\master] [] >rake doc --trace (in D:/Personal Files/Downloads/Software/Programming/Javascript/Prototype/master) ** Invoke doc (first_time) ** Invoke doc:build (first_time) ** Invoke doc:require (first_time) ** Execute doc:require ** Execute doc:build rm -rf D:/Personal Files/Downloads/Software/Programming/Javascript/Prototype/master/doc Parsing source files: C:/DOCUME~1/RichardQ/LOCALS~1/Temp/pdoc.3448.0. Processing... 0% ←[F Processing 0% ←[F Processing. 0% ←[F Processing.. 0% ←[F Processing... 0% ←[F Processing 1% ←[F Processing. 1% ←[F Processing.. 1% ←[F Processing... 2% ←[F Processing 2% ←[F Processing. 3% ←[F Processing.. 3% ←[F Processing... 3% ←[F Processing 4% ←[F Processing. 4% ←[F Processing.. 5% ←[F Processing... 5% ←[F Processing 5% ←[F Processing. 5% ←[F Processing.. 6% ←[F Processing... 6% ←[F Processing 7% ←[F Processing. 7% ←[F Processing.. 7% ←[F Processing... 8% ←[F Processing 8% ←[F Processing. 9% ←[F Processing.. 9% ←[F Processing... 9% ←[F Processing 10% ←[F Processing. 10% ←[F Processing.. 11% ←[F Processing... 11% ←[F Processing 11% ←[F Processing. 11% ←[F Processing.. 12% ←[F Processing... 12% ←[F Processing 13% ←[F Processing. 13% ←[F Processing.. 14% ←[F Processing... 14% ←[F Processing 14% ←[F Processing. 15% ←[F Processing.. 15% ←[F Processing... 15% ←[F Processing 16% ←[F Processing. 16% ←[F Processing.. 16% ←[F Processing... 17% ←[F Processing 17% ←[F Processing. 18% ←[F Processing.. 18% ←[F Processing... 18% ←[F Processing 19% ←[F Processing. 19% ←[F Processing.. 19% ←[F Processing... 20% ←[F Processing 20% ←[F Processing. 20% ←[F Processing.. 21% ←[F Processing... 21% ←[F Processing 22% ←[F Processing. 22% ←[F Processing.. 22% ←[F Processing... 23% ←[F Processing 23% ←[F Processing. 23% ←[F Processing.. 24% ←[F Processing... 24% ←[F Processing 25% ←[F Processing. 25% ←[F Processing.. 25% ←[F Processing... 25% ←[F Processing 26% ←[F Processing. 26% ←[F Processing.. 26% ←[F Processing... 27% ←[F Processing 27% ←[F Processing. 27% ←[F Processing.. 28% ←[F Processing... 28% ←[F Processing 28% ←[F Processing. 29% ←[F Processing.. 29% ←[F Processing... 29% ←[F Processing 30% ←[F Processing. 30% ←[F Processing.. 31% ←[F Processing... 31% ←[F Processing 31% ←[F Processing. 32% ←[F Processing.. 32% ←[F Processing... 33% ←[F Processing 33% ←[F Processing. 34% ←[F Processing.. 34% ←[F Processing... 34% ←[F Processing 34% ←[F Processing. 35% ←[F Processing.. 35% ←[F Processing... 36% ←[F Processing 36% ←[F Processing. 36% ←[F Processing.. 37% ←[F Processing... 37% ←[F Processing 37% ←[F Processing. 38% ←[F Processing.. 38% ←[F Processing... 38% ←[F Processing 39% ←[F Processing. 39% ←[F Processing.. 39% ←[F Processing... 40% ←[F Processing 40% ←[F Processing. 40% ←[F Processing.. 41% ←[F Processing... 41% ←[F Processing 42% ←[F Processing. 42% ←[F Processing.. 42% ←[F Processing... 43% ←[F Processing 43% ←[F Processing. 43% ←[F Processing.. 44% ←[F Processing... 44% ←[F Processing 44% ←[F Processing. 45% ←[F Processing.. 45% ←[F Processing... 46% ←[F Processing 46% ←[F Processing. 46% ←[F Processing.. 47% ←[F Processing... 47% ←[F Processing 47% ←[F Processing. 47% ←[F Processing.. 48% ←[F Processing... 48% ←[F Processing 48% ←[F Processing. 49% ←[F Processing.. 49% ←[F Processing... 49% ←[F Processing 50% ←[F Processing. 50% ←[F Processing.. 51% ←[F Processing... 51% ←[F Processing 51% ←[F Processing. 52% ←[F Processing.. 52% ←[F Processing... 53% ←[F Processing 53% ←[F Processing. 53% ←[F Processing.. 53% ←[F Processing... 54% ←[F Processing 54% ←[F Processing. 55% ←[F Processing.. 55% ←[F Processing... 55% ←[F Processing 56% ←[F Processing. 56% ←[F Processing.. 56% ←[F Processing... 57% ←[F Processing 57% ←[F Processing. 57% ←[F Processing.. 58% ←[F Processing... 58% ←[F Processing 59% ←[F Processing. 59% ←[F Processing.. 59% ←[F Processing... 60% ←[F Processing 60% ←[F Processing. 60% ←[F Processing.. 61% ←[F Processing... 61% ←[F Processing 62% ←[F Processing. 62% ←[F Processing.. 62% ←[F Processing... 62% ←[F Processing 63% ←[F Processing. 63% ←[F Processing.. 64% ←[F Processing... 64% ←[F Processing 64% ←[F Processing. 64% ←[F Processing.. 65% ←[F Processing... 65% ←[F Processing 66% ←[F Processing. 66% ←[F Processing.. 66% ←[F Processing... 66% ←[F Processing 67% ←[F Processing. 67% ←[F Processing.. 68% ←[F Processing... 68% ←[F Processing 68% ←[F Processing. 68% ←[F Processing.. 69% ←[F Processing... 69% ←[F Processing 70% ←[F Processing. 70% ←[F Processing.. 70% ←[F Processing... 71% ←[F Processing 71% ←[F Processing. 71% ←[F Processing.. 72% ←[F Processing... 72% ←[F Processing 72% ←[F Processing. 73% ←[F Processing.. 73% ←[F Processing... 73% ←[F Processing 74% ←[F Processing. 74% ←[F Processing.. 74% ←[F Processing... 74% ←[F Processing 75% ←[F Processing. 75% ←[F Processing.. 76% ←[F Processing... 76% ←[F Processing 76% ←[F Processing. 77% ←[F Processing.. 77% ←[F Processing... 77% ←[F Processing 78% ←[F Processing. 78% ←[F Processing.. 78% ←[F Processing... 79% ←[F Processing 79% ←[F Processing. 79% ←[F Processing.. 80% ←[F Processing... 80% ←[F Processing 80% ←[F Processing. 81% ←[F Processing.. 81% ←[F Processing... 81% ←[F Processing 82% ←[F Processing. 82% ←[F Processing.. 82% ←[F Processing... 83% ←[F Processing 83% ←[F Processing. 84% ←[F Processing.. 84% ←[F Processing... 84% ←[F Processing 84% ←[F Processing. 85% ←[F Processing.. 85% ←[F Processing... 86% ←[F Processing 86% ←[F Processing. 86% ←[F Processing.. 87% ←[F Processing... 87% ←[F Processing 88% ←[F Processing. 88% ←[F Processing.. 88% ←[F Processing... 88% ←[F Processing 89% ←[F Processing. 89% ←[F Processing.. 90% ←[F Processing... 90% ←[F Processing 90% ←[F Processing. 91% ←[F Processing.. 91% ←[F Processing... 91% ←[F Processing 92% ←[F Processing. 92% ←[F Processing.. 93% ←[F Processing... 93% ←[F Processing 93% ←[F Processing. 93% ←[F Processing.. 94% ←[F Processing... 94% ←[F Processing 95% ←[F Processing. 95% ←[F Processing.. 95% ←[F Processing... 96% ←[F Processing 96% ←[F Processing. 96% ←[F Processing.. 97% ←[F Processing... 97% ←[F Processing 97% ←[F Processing. 98% ←[F Processing.. 98% ←[F Processing... 98% ←[F Processing 99% ←[F Processing. 99% ←[F Processing.. 99% ←[F Processing... 99% ←[F Processing 99% ←[F Processing. 99% ←[F Processing.. 99% ←[F Processing... 99% ←[F Processing 99% ←[F Processing. 100% ←[F Parsing completed in 52.168 seconds. Generating documentation to: D:/Personal Files/Downloads/Software/Programming/Javascript/Prototype/master/doc. ←[F←[K Rendering: ajax_section.html ←[F←[K Rendering: ajax/ajax/periodicalupdater.html ←[F←[K Rendering: ajax/ajax/request.html ←[F←[K Rendering: ajax/ajax/responders.html -- ----- Richard Quadling Zend Certified Engineer : http://zend.com/zce.php?c=ZEND002498&r=213474731 "Standing on the shoulders of some very clever giants!" --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Prototype: Core" group. To post to this group, send email to prototype-core@googlegroups.com To unsubscribe from this group, send email to prototype-core-unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/prototype-core?hl=en -~----------~----~----~----~------~----~------~--~---