I decided to learn ruby, so I installed it with the one click installer on Windows XP. I opened Freeride, chacked "Run process in terminal" and tried the usual hello world: puts "Hello World" Freeride puts shows a red warning on the console output saying I need to check the option I already checked, then it freezes. I tried the same thing with SciTE, and everything worked fine. Is there some configuration I''m missing? I just downloaded the installer a couple of days ago, Ruby is version 1.8.4 and Freeride is version 0.9.6. Thanks
Hi, First of all I''d like to apologize because it''s very likely that I''m responsible for messing up your experience with FreeRIDE so sorry for that. The first thing I''d like you to check is if you haven''t accidentally chosen rubyw.exe as your default interpreter (see Edit --> Preferences --> Installed interpreters) Most likely that isn''t the case though. I fixed the terminal-bug about two weeks ago so the fix is in cvs. Download the latest script_runner.rb from [1] and copy it to <FR-base>/plugins/rubyide_tools_fox_script_runner/ Download project.rb [2] and project_manager.rb [3] and copy those to <FR-base>/plugins/rubyide_project/ Please let me know if things didn''t work out. I''m more than happy to help. With kind regards, Jonathan [1] : http://rubyforge.org/cgi-bin/viewvc.cgi/freeride/plugins/rubyide_tools_fox_script_runner/script_runner.rb?revision=1.33&root=freeride <http://rubyforge.org/cgi-bin/viewvc.cgi/freeride/plugins/rubyide_tools_fox_script_runner/script_runner.rb?revision=1.33&root=freeride> [2]: http://rubyforge.org/cgi-bin/viewvc.cgi/freeride/plugins/rubyide_project/project.rb?revision=1.8&root=freeride <http://rubyforge.org/cgi-bin/viewvc.cgi/freeride/plugins/rubyide_project/project.rb?revision=1.8&root=freeride> [3]: http://rubyforge.org/cgi-bin/viewvc.cgi/freeride/plugins/rubyide_project/project_manager.rb?revision=1.6&root=freeride <http://rubyforge.org/cgi-bin/viewvc.cgi/freeride/plugins/rubyide_project/project_manager.rb?revision=1.6&root=freeride> Alejandro Vargas Hernandez wrote:>I decided to learn ruby, so I installed it with the one click >installer on Windows XP. I opened Freeride, chacked "Run process in >terminal" and tried the usual hello world: >puts "Hello World" >Freeride puts shows a red warning on the console output saying I need >to check the option I already checked, then it freezes. I tried the >same thing with SciTE, and everything worked fine. Is there some >configuration I''m missing? >I just downloaded the installer a couple of days ago, Ruby is version >1.8.4 and Freeride is version 0.9.6. > >Thanks >_______________________________________________ >Freeride-users mailing list >Freeride-users at rubyforge.org >http://rubyforge.org/mailman/listinfo/freeride-users > > > >
Thanks for the prompt reply. I did the changes you suggested and the warning went away. What happens now is as follows: When running the simple hello world script a dos window opens and closes immediatelly, so I can''t really tell if it put the correct output. And on the freeride dos window "onPipeExcept" appears, and Freeride freezes. Regards Alejandro Vargas On 8/23/06, Jonathan Maasland <nochoice at xs4all.nl> wrote:> Hi, > > First of all I''d like to apologize because it''s very likely that I''m > responsible for messing up your experience with FreeRIDE so sorry for that. > > The first thing I''d like you to check is if you haven''t accidentally > chosen rubyw.exe as your default interpreter (see Edit --> Preferences > --> Installed interpreters) > Most likely that isn''t the case though. > > I fixed the terminal-bug about two weeks ago so the fix is in cvs. > Download the latest script_runner.rb from [1] and copy it to > <FR-base>/plugins/rubyide_tools_fox_script_runner/ > Download project.rb [2] and project_manager.rb [3] and copy those to > <FR-base>/plugins/rubyide_project/ > > Please let me know if things didn''t work out. I''m more than happy to help. > > With kind regards, > Jonathan > > [1] : > http://rubyforge.org/cgi-bin/viewvc.cgi/freeride/plugins/rubyide_tools_fox_script_runner/script_runner.rb?revision=1.33&root=freeride > <http://rubyforge.org/cgi-bin/viewvc.cgi/freeride/plugins/rubyide_tools_fox_script_runner/script_runner.rb?revision=1.33&root=freeride> > [2]: > http://rubyforge.org/cgi-bin/viewvc.cgi/freeride/plugins/rubyide_project/project.rb?revision=1.8&root=freeride > <http://rubyforge.org/cgi-bin/viewvc.cgi/freeride/plugins/rubyide_project/project.rb?revision=1.8&root=freeride> > [3]: > http://rubyforge.org/cgi-bin/viewvc.cgi/freeride/plugins/rubyide_project/project_manager.rb?revision=1.6&root=freeride > <http://rubyforge.org/cgi-bin/viewvc.cgi/freeride/plugins/rubyide_project/project_manager.rb?revision=1.6&root=freeride> > > Alejandro Vargas Hernandez wrote: > > >I decided to learn ruby, so I installed it with the one click > >installer on Windows XP. I opened Freeride, chacked "Run process in > >terminal" and tried the usual hello world: > >puts "Hello World" > >Freeride puts shows a red warning on the console output saying I need > >to check the option I already checked, then it freezes. I tried the > >same thing with SciTE, and everything worked fine. Is there some > >configuration I''m missing? > >I just downloaded the installer a couple of days ago, Ruby is version > >1.8.4 and Freeride is version 0.9.6. > > > >Thanks > >_______________________________________________ > >Freeride-users mailing list > >Freeride-users at rubyforge.org > >http://rubyforge.org/mailman/listinfo/freeride-users > > > > > > > > > > _______________________________________________ > Freeride-users mailing list > Freeride-users at rubyforge.org > http://rubyforge.org/mailman/listinfo/freeride-users >
To see if the hello world prints as epexted you can always add STDIN.gets as a second line in your script. That will wait for some kind of output and the RETURN key before it goes on and finishes the script. So you have time to see what''s actually showing up on the screen. As to the "onPipeExcept" excpetion Jonathan may have an idea on what''s going on here. Laurent Alejandro Vargas Hernandez wrote:> Thanks for the prompt reply. I did the changes you suggested and the > warning went away. What happens now is as follows: When running the > simple hello world script a dos window opens and closes immediatelly, > so I can''t really tell if it put the correct output. And on the > freeride dos window "onPipeExcept" appears, and Freeride freezes. > > Regards > > Alejandro Vargas >
I tried adding STDIN.gets, but that didn''t help. The window opened and closed just as fast. The freezing''s still there too. Regarding the cvs version, I''m willing to give that a shot. Do I install "fxruby 1.4.0 (ruby)", one of the versions with "mswin32" or the newest available? The log: 2006-08-24 07:34:57 :: [INFO] --- FreeRIDE Started on Thu Aug 24 07:34:52 Mexico Standard Time 2006 2006-08-24 07:34:57 :: [INFO] Plugin(rubyide_gui-outputpane): OutputPane plugin started 2006-08-24 07:34:57 :: [INFO] Plugin(rubyide_fox_gui-appframe): AppFrame started 2006-08-24 07:34:57 :: [INFO] Plugin(rubyide_fox_gui-appframe): Dockbar UI components positioned OK! 2006-08-24 07:34:58 :: [INFO] Plugin(rubyide_fox_gui-statusbar): Status Bar 1 started 2006-08-24 07:34:58 :: [INFO] Plugin(rubyide_fox_gui-toolbar): ToolBar 1 started 2006-08-24 07:34:58 :: [INFO] Plugin(rubyide_fox_gui-menubar): MenuBar 1 started 2006-08-24 07:34:58 :: [INFO] Plugin(rubyide_fox_gui-editpane): iconpath : C:/Program Files/Development/ruby/freeride/plugins/rubyide_fox_gui/icons/editor.png 2006-08-24 07:34:58 :: [INFO] Plugin(rubyide_fox_gui-editpane): iconpath : C:/Program Files/Development/ruby/freeride/plugins/rubyide_fox_gui/icons/fonts.png 2006-08-24 07:34:58 :: [INFO] Plugin(rubyide_fox_gui-dockbar): DockBar south started 2006-08-24 07:34:58 :: [INFO] Plugin(rubyide_fox_gui-dockbar): DockBar south created 2006-08-24 07:34:58 :: [INFO] Plugin(rubyide_fox_gui-dockbar): DockBar west started 2006-08-24 07:34:58 :: [INFO] Plugin(rubyide_fox_gui-dockbar): DockBar west created 2006-08-24 07:34:58 :: [INFO] Plugin(rubyide_fox_gui-dockpane): DockPane Renderer for /system/ui/components/DockPane/Output View/ created 2006-08-24 07:34:58 :: [INFO] Plugin(rubyide_fox_gui-outputpane): OutputPane Renderer plugin started 2006-08-24 07:34:58 :: [INFO] Plugin(rubyide_fox_gui-dockpane): Reparenting /system/ui/components/DockPane/Output View/ to /system/ui/components/DockBar/south 2006-08-24 07:34:58 :: [INFO] Plugin(rubyide_fox_gui-dockpane): DockPane Renderer for /system/ui/components/DockPane/File View/ created 2006-08-24 07:34:58 :: [INFO] Plugin(rubyide_fox_gui-dockpane): Reparenting /system/ui/components/DockPane/File View/ to /system/ui/components/DockBar/west 2006-08-24 07:34:58 :: [INFO] Plugin(rubyide_tools_fox_file_browser): FileBrowser plugin is running 2006-08-24 07:34:58 :: [INFO] Plugin(rubyide_fox_gui-dockpane): DockPane Renderer for /system/ui/components/DockPane/Source View/ created 2006-08-24 07:34:58 :: [INFO] Plugin(rubyide_fox_gui-dockpane): Reparenting /system/ui/components/DockPane/Source View/ to /system/ui/components/DockBar/west 2006-08-24 07:34:58 :: [INFO] Plugin(rubyide_tools_fox_source_browser): SourceBrowser plugin started 2006-08-24 07:34:58 :: [INFO] Plugin(rubyide_fox_gui-dockpane): DockPane Renderer for /system/ui/components/DockPane/Project Explorer/ created 2006-08-24 07:34:58 :: [INFO] Plugin(rubyide_fox_gui-dockpane): Reparenting /system/ui/components/DockPane/Project Explorer/ to /system/ui/components/DockBar/west 2006-08-24 07:34:59 :: [INFO] Plugin(rubyide_tools_fox_project_explorer): ProjectExplorer is running 2006-08-24 07:34:59 :: [INFO] Plugin(rubyide_tools_fox_project_explorer): ProjectExplorer started succesfully 2006-08-24 07:34:59 :: [INFO] Plugin(rubyide_project): Opening project files 2006-08-24 07:34:59 :: [INFO] Plugin(rubyide_fox_gui-editpane): Setting All Editpane properties 2006-08-24 07:34:59 :: [INFO] Plugin(rubyide_fox_gui-editpane): EditPane created 2006-08-24 07:34:59 :: [INFO] Plugin(rubyide_fox_gui-editpane): iconpath : C:/Program Files/Development/ruby/freeride/plugins/rubyide_fox_gui/icons/modified.png 2006-08-24 07:34:59 :: [INFO] Plugin(rubyide_tools_fox_project_explorer): Adding project RubyHatt to project-explorer 2006-08-24 07:34:59 :: [INFO] Plugin(rubyide_fox_gui-dockpane): DockPane Renderer for /system/ui/components/DockPane/Debugger/ created 2006-08-24 07:34:59 :: [INFO] Plugin(rubyide_tools_fox_debugger): Debugger renderer created /system/ui/components/Debugger/1/ 2006-08-24 07:34:59 :: [INFO] Plugin(rubyide_fox_gui-dockpane): Reparenting /system/ui/components/DockPane/Debugger/ to /system/ui/components/DockBar/south 2006-08-24 07:34:59 :: [INFO] Plugin(rubyide_tools_debugger): Debugger session created /system/ui/components/Debugger/1/ 2006-08-24 07:35:04 :: [INFO] Plugin(rubyide_tools_debugger): Debug command: CLOSE 2006-08-24 07:35:06 :: [INFO] Plugin(rubyide_tools_debugger): Running debugger command: C:\Program Files\Development\ruby\bin/ruby.exe -C "C:\Documents and Settings\vargashe\My Documents\RubyHatt" -r "drb" -r "C:/Program Files/Development/ruby/freeride/plugins/rubyide_tools_debugger/debuggee.rb" "C:\Documents and Settings\vargashe\My Documents\RubyHatt/untitled2.rb" C:/DOCUME~1/vargashe/LOCALS~1/Temp/fr_dbg_1292.0 2006-08-24 07:35:07 :: [INFO] Plugin(rubyide_tools_debugger): Remote Debugger Started at URI : druby://hp-laptop:3836, process id 1608 2006-08-24 07:35:07 :: [INFO] Plugin(rubyide_tools_debugger): Debugger session started /system/ui/components/Debugger/1/ On 8/24/06, Jonathan Maasland <nochoice at xs4all.nl> wrote:> Could you look at <$HOME>\freeride\config\freeride.log > and post the last couple a lines here (40 or so)? > > The onPipeExcept message is as expected, however FR shouldn''t freeze. > I''ve tested the code on my Windows computer here and everything just > worked. This is looking like a really creepy bug. > If you''re feeling adventurous you could try to check out the current > cvs-version of FreeRIDE. However I should point out that you need > FXRuby-1.4 (gem install fxruby) to run it. > > Jonathan > > Alejandro Vargas Hernandez wrote: > > >Thanks for the prompt reply. I did the changes you suggested and the > >warning went away. What happens now is as follows: When running the > >simple hello world script a dos window opens and closes immediatelly, > >so I can''t really tell if it put the correct output. And on the > >freeride dos window "onPipeExcept" appears, and Freeride freezes. > > > >Regards > > > >Alejandro Vargas > > > > > > > > _______________________________________________ > Freeride-users mailing list > Freeride-users at rubyforge.org > http://rubyforge.org/mailman/listinfo/freeride-users >
This is a log of a complete run with program start, running the hello world script (window opening and closing even with STDIN.gets), and closing program normally. 2006-08-24 07:56:57 :: [INFO] --- FreeRIDE Started on Thu Aug 24 07:56:55 Mexico Standard Time 2006 2006-08-24 07:56:57 :: [INFO] Plugin(rubyide_gui-outputpane): OutputPane plugin started 2006-08-24 07:56:57 :: [INFO] Plugin(rubyide_fox_gui-appframe): AppFrame started 2006-08-24 07:56:57 :: [INFO] Plugin(rubyide_fox_gui-appframe): Dockbar UI components positioned OK! 2006-08-24 07:56:57 :: [INFO] Plugin(rubyide_fox_gui-statusbar): Status Bar 1 started 2006-08-24 07:56:57 :: [INFO] Plugin(rubyide_fox_gui-toolbar): ToolBar 1 started 2006-08-24 07:56:57 :: [INFO] Plugin(rubyide_fox_gui-menubar): MenuBar 1 started 2006-08-24 07:56:57 :: [INFO] Plugin(rubyide_fox_gui-editpane): iconpath : C:/Program Files/Development/ruby/freeride/plugins/rubyide_fox_gui/icons/editor.png 2006-08-24 07:56:57 :: [INFO] Plugin(rubyide_fox_gui-editpane): iconpath : C:/Program Files/Development/ruby/freeride/plugins/rubyide_fox_gui/icons/fonts.png 2006-08-24 07:56:57 :: [INFO] Plugin(rubyide_fox_gui-dockbar): DockBar south started 2006-08-24 07:56:57 :: [INFO] Plugin(rubyide_fox_gui-dockbar): DockBar south created 2006-08-24 07:56:57 :: [INFO] Plugin(rubyide_fox_gui-dockbar): DockBar west started 2006-08-24 07:56:57 :: [INFO] Plugin(rubyide_fox_gui-dockbar): DockBar west created 2006-08-24 07:56:58 :: [INFO] Plugin(rubyide_fox_gui-dockpane): DockPane Renderer for /system/ui/components/DockPane/Output View/ created 2006-08-24 07:56:58 :: [INFO] Plugin(rubyide_fox_gui-outputpane): OutputPane Renderer plugin started 2006-08-24 07:56:58 :: [INFO] Plugin(rubyide_fox_gui-dockpane): Reparenting /system/ui/components/DockPane/Output View/ to /system/ui/components/DockBar/south 2006-08-24 07:56:58 :: [INFO] Plugin(rubyide_fox_gui-dockpane): DockPane Renderer for /system/ui/components/DockPane/File View/ created 2006-08-24 07:56:58 :: [INFO] Plugin(rubyide_fox_gui-dockpane): Reparenting /system/ui/components/DockPane/File View/ to /system/ui/components/DockBar/west 2006-08-24 07:56:58 :: [INFO] Plugin(rubyide_tools_fox_file_browser): FileBrowser plugin is running 2006-08-24 07:56:58 :: [INFO] Plugin(rubyide_fox_gui-dockpane): DockPane Renderer for /system/ui/components/DockPane/Source View/ created 2006-08-24 07:56:58 :: [INFO] Plugin(rubyide_fox_gui-dockpane): Reparenting /system/ui/components/DockPane/Source View/ to /system/ui/components/DockBar/west 2006-08-24 07:56:58 :: [INFO] Plugin(rubyide_tools_fox_source_browser): SourceBrowser plugin started 2006-08-24 07:56:58 :: [INFO] Plugin(rubyide_fox_gui-dockpane): DockPane Renderer for /system/ui/components/DockPane/Project Explorer/ created 2006-08-24 07:56:58 :: [INFO] Plugin(rubyide_fox_gui-dockpane): Reparenting /system/ui/components/DockPane/Project Explorer/ to /system/ui/components/DockBar/west 2006-08-24 07:56:58 :: [INFO] Plugin(rubyide_tools_fox_project_explorer): ProjectExplorer is running 2006-08-24 07:56:58 :: [INFO] Plugin(rubyide_tools_fox_project_explorer): ProjectExplorer started succesfully 2006-08-24 07:56:58 :: [INFO] Plugin(rubyide_project): Opening project files 2006-08-24 07:56:58 :: [INFO] Plugin(rubyide_fox_gui-editpane): Setting All Editpane properties 2006-08-24 07:56:58 :: [INFO] Plugin(rubyide_fox_gui-editpane): EditPane created 2006-08-24 07:56:58 :: [INFO] Plugin(rubyide_fox_gui-editpane): iconpath : C:/Program Files/Development/ruby/freeride/plugins/rubyide_fox_gui/icons/modified.png 2006-08-24 07:56:58 :: [INFO] Plugin(rubyide_tools_fox_project_explorer): Adding project RubyHatt to project-explorer 2006-08-24 07:57:35 :: [INFO] --- Shutting down FreeRIDE on Thu Aug 24 07:57:35 Mexico Standard Time 2006
I just noticed, when I hit F5 to run the program I get the window opening and closing. When I hit the debug button the program freezes. Hope this helps. Regards Alejandro Vargas
Could you look at <$HOME>\freeride\config\freeride.log and post the last couple a lines here (40 or so)? The onPipeExcept message is as expected, however FR shouldn''t freeze. I''ve tested the code on my Windows computer here and everything just worked. This is looking like a really creepy bug. If you''re feeling adventurous you could try to check out the current cvs-version of FreeRIDE. However I should point out that you need FXRuby-1.4 (gem install fxruby) to run it. Jonathan Alejandro Vargas Hernandez wrote:>Thanks for the prompt reply. I did the changes you suggested and the >warning went away. What happens now is as follows: When running the >simple hello world script a dos window opens and closes immediatelly, >so I can''t really tell if it put the correct output. And on the >freeride dos window "onPipeExcept" appears, and Freeride freezes. > >Regards > >Alejandro Vargas > > >
Alejandro Vargas Hernandez wrote:>Regarding the cvs >version, I''m willing to give that a shot. Do I install "fxruby 1.4.0 >(ruby)", one of the versions with "mswin32" or the newest available? > >Choose 6. fxruby 1.4.6 (mswin32) I don''t quite have the time today to look into the problem, maybe tomorrow. The point you made about running vs. debugging the script is interesting and I think it might prove a useful starting point for nailing this one down. With kind regards, Jonathan