Task #189

No documentation available how to build only the Roller.exe via Rake?

Added by kju about 6 years ago. Updated about 6 years ago.

Status:Feedback Start date:02/14/2009
Priority:Normal Due date:
Assignee:Spooner % Done:

0%

Category:General
Target version:-

Description

I am a bit confused.

I was trying to update the Roller.exe as the current version
was not working for a wrp file (see other ticket).

Before I used that make_bin.bat.

I looked at package.rb and rakefile. The readme says:

Rakefile -> Used by Netbeans project.

I tried this in NB:

  • RMB on Roller project
  • Run Rake task
  • Selected 'compile Roller'

Result

(in I:/Ruby/cwrp)
Couldn't create file rubyscript2exe/CHANGELOG: No such file or directory - No such file or directory - rubyscript2exe/CHANGELOG
Couldn't create file rubyscript2exe/eee.ico: No such file or directory - No such file or directory - rubyscript2exe/eee.ico
Couldn't create file rubyscript2exe/eee.rc: No such file or directory - No such file or directory - rubyscript2exe/eee.rc
Couldn't create file rubyscript2exe/init.rb: No such file or directory - No such file or directory - rubyscript2exe/init.rb
Couldn't create file rubyscript2exe/LICENSE: No such file or directory - No such file or directory - rubyscript2exe/LICENSE
Couldn't create file rubyscript2exe/README: No such file or directory - No such file or directory - rubyscript2exe/README
Couldn't create file rubyscript2exe/SUMMARY: No such file or directory - No such file or directory - rubyscript2exe/SUMMARY
Couldn't create file rubyscript2exe/VERSION: No such file or directory - No such file or directory - rubyscript2exe/VERSION
Couldn't create file rubyscript2exe/ev/ftools.rb: No such file or directory - No such file or directory - rubyscript2exe/ev/ftools.rb
Couldn't create file rubyscript2exe/ev/oldandnewlocation.rb: No such file or directory - No such file or directory - rubyscript2exe/ev/oldandnewlocation.rb
Couldn't create file rubyscript2exe/ev/dependencies.rb: No such file or directory - No such file or directory - rubyscript2exe/ev/dependencies.rb
Couldn't create file rubyscript2exe/rubyscript2exe.rb: No such file or directory - No such file or directory - rubyscript2exe/rubyscript2exe.rb
Couldn't create file rubyscript2exe/eee.pas: No such file or directory - No such file or directory - rubyscript2exe/eee.pas
Couldn't create file rubyscript2exe/require2lib.rb: No such file or directory - No such file or directory - rubyscript2exe/require2lib.rb
Couldn't create file rubyscript2exe/eee.exe: No such file or directory - No such file or directory - rubyscript2exe/eee.exe
Couldn't create file rubyscript2exe/eeew.exe: No such file or directory - No such file or directory - rubyscript2exe/eeew.exe
Couldn't create file rubyscript2exe/eee_linux: No such file or directory - No such file or directory - rubyscript2exe/eee_linux
build/rubyscript2exe.rb:395:in `each_object': ObjectSpace is disabled; each_object will only work with Class, pass +O to enable (RuntimeError)
        from build/rubyscript2exe.rb:395:in `extract'
        from build/rubyscript2exe.rb:598
mv roller.exe bin/roller.exe
rake aborted!
No such file or directory - No such file or directory - roller.exe or bin/roller.exe

(See full trace by running task with --trace)
Click here to rerun the task with tracing enabled

Related issues

related to Roller - Bug #198: BinaryReader.rb:17: allocator undefined for Symbol (TypeE... Feedback 02/17/2009

History

Updated by Spooner about 6 years ago

Hmm, that works fine for me (though I use the short-cut alt-shift-R to open that list). Hmmm!

Updated by kju about 6 years ago

SVN rev 189

--

Product Version: NetBeans IDE 6.5 (Build 200811100001)
Java: 1.6.0_10; Java HotSpot(TM) Client VM 11.0-b15
System: Windows XP version 5.1 running on x86; Cp1252; de_DE (nb)

--

tried again with key shortcut. no go here :(

Updated by Spooner about 6 years ago

I have English language Vista64, but I can't see that really making any difference. At a bit of a loss on this one...

Updated by kju about 6 years ago

With trace

(in I:/Ruby/cwrp)
  • Invoke compile:roller (first_time)
  • Invoke bin/roller.exe (first_time)
  • Invoke lib/roller.rb (first_time, not_needed)
  • Invoke lib/roller/BinaryIO (first_time, not_needed)
  • Invoke lib/roller/CWRP.rb (first_time, not_needed)
  • Invoke lib/roller/gui.rb (first_time, not_needed)
  • Invoke lib/roller/update.rb (first_time, not_needed)
  • Invoke lib/roller/BinaryIO/BinaryIO.rb (first_time, not_needed)
  • Invoke lib/roller/BinaryIO/BinaryIO.yaml (first_time, not_needed)
  • Invoke lib/roller/BinaryIO/BinaryReader.rb (first_time, not_needed)
  • Invoke lib/roller/BinaryIO/BinaryWriter.rb (first_time, not_needed)
  • Execute bin/roller.exe
    Couldn't create file rubyscript2exe/CHANGELOG: No such file or directory - No such file or directory - rubyscript2exe/CHANGELOG
    Couldn't create file rubyscript2exe/eee.ico: No such file or directory - No such file or directory - rubyscript2exe/eee.ico
    Couldn't create file rubyscript2exe/eee.rc: No such file or directory - No such file or directory - rubyscript2exe/eee.rc
    Couldn't create file rubyscript2exe/init.rb: No such file or directory - No such file or directory - rubyscript2exe/init.rb
    Couldn't create file rubyscript2exe/LICENSE: No such file or directory - No such file or directory - rubyscript2exe/LICENSE
    Couldn't create file rubyscript2exe/README: No such file or directory - No such file or directory - rubyscript2exe/README
    Couldn't create file rubyscript2exe/SUMMARY: No such file or directory - No such file or directory - rubyscript2exe/SUMMARY
    Couldn't create file rubyscript2exe/VERSION: No such file or directory - No such file or directory - rubyscript2exe/VERSION
    Couldn't create file rubyscript2exe/ev/ftools.rb: No such file or directory - No such file or directory - rubyscript2exe/ev/ftools.rb
    Couldn't create file rubyscript2exe/ev/oldandnewlocation.rb: No such file or directory - No such file or directory - rubyscript2exe/ev/oldandnewlocation.rb
    Couldn't create file rubyscript2exe/ev/dependencies.rb: No such file or directory - No such file or directory - rubyscript2exe/ev/dependencies.rb
    Couldn't create file rubyscript2exe/rubyscript2exe.rb: No such file or directory - No such file or directory - rubyscript2exe/rubyscript2exe.rb
    Couldn't create file rubyscript2exe/eee.pas: No such file or directory - No such file or directory - rubyscript2exe/eee.pas
    Couldn't create file rubyscript2exe/require2lib.rb: No such file or directory - No such file or directory - rubyscript2exe/require2lib.rb
    Couldn't create file rubyscript2exe/eee.exe: No such file or directory - No such file or directory - rubyscript2exe/eee.exe
    Couldn't create file rubyscript2exe/eeew.exe: No such file or directory - No such file or directory - rubyscript2exe/eeew.exe
    Couldn't create file rubyscript2exe/eee_linux: No such file or directory - No such file or directory - rubyscript2exe/eee_linux
    build/rubyscript2exe.rb:395:in `each_object': ObjectSpace is disabled; each_object will only work with Class, pass +O to enable (RuntimeError)
    from build/rubyscript2exe.rb:395:in `extract'
    from build/rubyscript2exe.rb:598
    mv roller.exe bin/roller.exe
    rake aborted!
    No such file or directory - No such file or directory - roller.exe or bin/roller.exe
    D:/Programme/NetBeans 6.5/ruby2/jruby-1.1.4/lib/ruby/1.8/fileutils.rb:515:in `mv'
    D:/Programme/NetBeans 6.5/ruby2/jruby-1.1.4/lib/ruby/1.8/fileutils.rb:1395:in `fu_each_src_dest'
    D:/Programme/NetBeans 6.5/ruby2/jruby-1.1.4/lib/ruby/1.8/fileutils.rb:1411:in `fu_each_src_dest0'
    D:/Programme/NetBeans 6.5/ruby2/jruby-1.1.4/lib/ruby/1.8/fileutils.rb:1393:in `fu_each_src_dest'
    D:/Programme/NetBeans 6.5/ruby2/jruby-1.1.4/lib/ruby/1.8/fileutils.rb:494:in `mv'
    D:/Programme/NetBeans 6.5/ruby2/jruby-1.1.4/lib/ruby/gems/1.8/gems/rake-0.8.3/lib/rake.rb:1076:in `move'
    I:/Ruby/cwrp/Rakefile:31
    D:/Programme/NetBeans 6.5/ruby2/jruby-1.1.4/lib/ruby/gems/1.8/gems/rake-0.8.3/lib/rake.rb:615:in `call'
    D:/Programme/NetBeans 6.5/ruby2/jruby-1.1.4/lib/ruby/gems/1.8/gems/rake-0.8.3/lib/rake.rb:615:in `execute'
    D:/Programme/NetBeans 6.5/ruby2/jruby-1.1.4/lib/ruby/gems/1.8/gems/rake-0.8.3/lib/rake.rb:612:in `each'
    D:/Programme/NetBeans 6.5/ruby2/jruby-1.1.4/lib/ruby/gems/1.8/gems/rake-0.8.3/lib/rake.rb:612:in `execute'
    D:/Programme/NetBeans 6.5/ruby2/jruby-1.1.4/lib/ruby/gems/1.8/gems/rake-0.8.3/lib/rake.rb:578:in `invoke_with_call_chain'
    D:/Programme/NetBeans 6.5/ruby2/jruby-1.1.4/lib/ruby/1.8/monitor.rb:191:in `mon_synchronize'
    D:/Programme/NetBeans 6.5/ruby2/jruby-1.1.4/lib/ruby/gems/1.8/gems/rake-0.8.3/lib/rake.rb:571:in `invoke_with_call_chain'
    D:/Programme/NetBeans 6.5/ruby2/jruby-1.1.4/lib/ruby/gems/1.8/gems/rake-0.8.3/lib/rake.rb:588:in `invoke_prerequisites'
    D:/Programme/NetBeans 6.5/ruby2/jruby-1.1.4/lib/ruby/gems/1.8/gems/rake-0.8.3/lib/rake.rb:585:in `each'
    D:/Programme/NetBeans 6.5/ruby2/jruby-1.1.4/lib/ruby/gems/1.8/gems/rake-0.8.3/lib/rake.rb:585:in `invoke_prerequisites'
    D:/Programme/NetBeans 6.5/ruby2/jruby-1.1.4/lib/ruby/gems/1.8/gems/rake-0.8.3/lib/rake.rb:577:in `invoke_with_call_chain'
    D:/Programme/NetBeans 6.5/ruby2/jruby-1.1.4/lib/ruby/1.8/monitor.rb:191:in `mon_synchronize'
    D:/Programme/NetBeans 6.5/ruby2/jruby-1.1.4/lib/ruby/gems/1.8/gems/rake-0.8.3/lib/rake.rb:571:in `invoke_with_call_chain'
    D:/Programme/NetBeans 6.5/ruby2/jruby-1.1.4/lib/ruby/gems/1.8/gems/rake-0.8.3/lib/rake.rb:564:in `invoke'
    D:/Programme/NetBeans 6.5/ruby2/jruby-1.1.4/lib/ruby/gems/1.8/gems/rake-0.8.3/lib/rake.rb:2019:in `invoke_task'
    D:/Programme/NetBeans 6.5/ruby2/jruby-1.1.4/lib/ruby/gems/1.8/gems/rake-0.8.3/lib/rake.rb:1997:in `top_level'
    D:/Programme/NetBeans 6.5/ruby2/jruby-1.1.4/lib/ruby/gems/1.8/gems/rake-0.8.3/lib/rake.rb:1997:in `each'
    D:/Programme/NetBeans 6.5/ruby2/jruby-1.1.4/lib/ruby/gems/1.8/gems/rake-0.8.3/lib/rake.rb:1997:in `top_level'
    D:/Programme/NetBeans 6.5/ruby2/jruby-1.1.4/lib/ruby/gems/1.8/gems/rake-0.8.3/lib/rake.rb:2036:in `standard_exception_handling'
    D:/Programme/NetBeans 6.5/ruby2/jruby-1.1.4/lib/ruby/gems/1.8/gems/rake-0.8.3/lib/rake.rb:1991:in `top_level'
    D:/Programme/NetBeans 6.5/ruby2/jruby-1.1.4/lib/ruby/gems/1.8/gems/rake-0.8.3/lib/rake.rb:1970:in `run'
    D:/Programme/NetBeans 6.5/ruby2/jruby-1.1.4/lib/ruby/gems/1.8/gems/rake-0.8.3/lib/rake.rb:2036:in `standard_exception_handling'
    D:/Programme/NetBeans 6.5/ruby2/jruby-1.1.4/lib/ruby/gems/1.8/gems/rake-0.8.3/lib/rake.rb:1967:in `run'
    D:/Programme/NetBeans 6.5/ruby2/jruby-1.1.4/lib/ruby/gems/1.8/gems/rake-0.8.3/bin/rake:31
    D:/Programme/NetBeans 6.5/ruby2/jruby-1.1.4/lib/ruby/gems/1.8/gems/rake-0.8.3/bin/rake:19:in `load'
    D:\Programme\NetBeans 6.5\ruby2\jruby-1.1.4\bin\rake:19

Updated by kju about 6 years ago

Will test with the-f pc tomorrow. Maybe Sickboy can test too? :)

Updated by kju about 6 years ago

my call path:
cat I:\Ruby\cwrp\Rakefile -r BASE --config-dir C:\Dokumente und Einstellungen\Besitzer\.netbeans\6.5\config\svn\config --non-interactive

Updated by kju about 6 years ago

        begin
          File.open(@header.name, "wb") do |fp|
            fp.write(@data)
            fp.chmod(@header.mode)
          end
        rescue => e
          $stderr.puts "Couldn't create file #{@header.name}: " + e.message
        end

of rubyscript2exe.rb

Updated by kju about 6 years ago

where does it try to create these temp files?

Updated by kju about 6 years ago

  • Status changed from Assigned to Resolved
(in I:/Ruby/cwrp)

Tracing roller ...

Gathering files...

Including config files:

lib/roller/BinaryIO/BinaryIO.yaml

Copying files...

Creating roller.exe ...

mv roller.exe bin/roller.exe

Done.
(in I:/Ruby/cwrp)

Tracing split ...

Gathering files...

Usage: split.rb FILE [MAX_LINES]

Copying files...

Creating split.exe ...

mv split.exe bin/split.exe

Done.

Related to #198

Ok the NB update changed the Ruby platform. Back to Ruby 1.8.7 (2008-05-31 patchlevel 0) [i386-mswin32]

Updated by kju about 6 years ago

  • Status changed from Resolved to Feedback

Updated by Spooner about 6 years ago

Crap, no wonder I had no clue if you'd moved to Ruby 1.9.1 when neither of us was looking :P Roll on the 1.9.1 installer...

Updated by kju about 6 years ago

No you got the wrong.

While I patched to 1.9.1 due to Sickboy's advice, I downgraded again
due to problems and your advice.

Either due to this or to update Netbeans to Ruby platform was set
to jRuby (Netbeans default).

Updated by Spooner about 6 years ago

Ah, fair enough. I ended up removing all the versions of Ruby except 1.8.6 (though 1.8.7 is pretty much equivalent), just to stop NB deciding which one I wanted to use...

Also available in: Atom PDF