products forums blog support careers about
  History | Log In     View a printable version of the current page.  
Issue Details (XML | Word | Printable)

Key: ROR-97
Type: Bug Bug
Status: Resolved Resolved
Resolution: Fixed
Priority: Critical Critical
Assignee: Chris Williams
Reporter: Kendall Coolidge
Votes: 0
Watchers: 1
Operations

If you were logged in you would be able to see more operations.
Aptana RadRails

Rake tasks not working

Created: 15/Nov/07 01:26 PM   Updated: 26/Dec/07 09:16 AM
Component/s: Rake
Affects Version/s: 0.9.1
Fix Version/s: 1.0.0, 0.9.2, 1.0.0 RC 1

Environment: Win XP SP2, Studio 1.0, ThinkPad dual core 2ghz, 2mb memory. RadRails: 0.9.1.200711131528NGT Rake tasks do work from the command line, but not in the IDE.
Issue Links:
Duplicate
 

Importance: Major
Studio Install Type: Standalone
Operating System: Windows XP
Last Known Good Version: Original install of Studio 1.0 before any RadRails beta 0.9.1 updates
Participants: Chris Williams, Kendall Coolidge and Lee Hericks


 Description  « Hide
I select a rake task from the drop-down, then click "Go" and nothing appears to happen. Below is the .log file:

!SESSION 2007-11-15 12:39:07.437 -----------------------------------------------
eclipse.buildId=unknown
java.version=1.6.0_01
java.vendor=Sun Microsystems Inc.
BootLoader constants: OS=win32, ARCH=x86, WS=win32, NL=en_US
Framework arguments: C:\Program Files\Aptana\Aptana Studio\Aptana.exe
Command-line arguments: -os win32 -ws win32 -arch x86 C:\Program Files\Aptana\Aptana Studio\Aptana.exe

!ENTRY org.eclipse.ui 2 0 2007-11-15 12:39:58.406
!MESSAGE Warnings while parsing the viewer contributions from the 'org.eclipse.ui.popupMenus' extension point
!SUBENTRY 1 org.eclipse.ui 2 0 2007-11-15 12:39:58.406
!MESSAGE Actions require a non-empty label or definitionId: plug-in='org.rubypeople.rdt.ui', id='org.rubypeople.rdt.ui.text.ruby.correction.assist.proposals'

!ENTRY org.eclipse.osgi 2 1 2007-11-15 12:39:59.937
!MESSAGE NLS missing message: SelectionTransferDropAdapter_error_title in: org.rubypeople.rdt.internal.ui.packageview.PackagesMessages

!ENTRY org.eclipse.osgi 2 1 2007-11-15 12:39:59.937
!MESSAGE NLS missing message: SelectionTransferDropAdapter_error_message in: org.rubypeople.rdt.internal.ui.packageview.PackagesMessages

!ENTRY org.rubypeople.rdt.launching 1 -1 2007-11-15 12:40:00.484
!MESSAGE Starting: c:\ruby\bin\ruby.exe -r rubygems -e p(Gem.path) -I "C:\Program Files\Aptana\Aptana Studio\plugins\org.rubypeople.rdt.launching_0.9.1.200711131528NGT\ruby\flush" -rrdt_stream_sync.rb –

!ENTRY org.eclipse.ui 4 4 2007-11-15 12:40:02.000
!MESSAGE Invalid Menu Extension (Path is invalid): org.rubypeople.rdt.debug.ui.actions.ModifyCatchpoint

!ENTRY org.rubypeople.rdt.launching 1 -1 2007-11-15 12:40:02.765
!MESSAGE Starting: c:\ruby\bin\rubyw.exe -I "C:\Program Files\Aptana\Aptana Studio\plugins\org.rubypeople.rdt.launching_0.9.1.200711131528NGT\ruby\flush" -rrdt_stream_sync.rb – c:\ruby\bin\rake --tasks

!ENTRY org.eclipse.update.core 4 0 2007-11-15 12:40:33.937
!MESSAGE Digest could not be parsed:Unable to retrieve remote reference "http://update.aptana.com/update/nightly/3.2/site_rcp.xml./digest.zip". [Server returned HTTP response code: "404 Not Found" for URL: http://update.aptana.com/update/nightly/3.2/site_rcp.xml./digest.zip.]

!ENTRY org.radrails.rails.core 4 0 2007-11-15 12:43:38.968
!MESSAGE Error running rake task
!STACK 1
org.eclipse.debug.core.DebugException: java.io.IOException: The parameter is incorrect occurred generating launch configuration XML.
at org.eclipse.debug.internal.core.LaunchConfigurationWorkingCopy.writeNewFile(LaunchConfigurationWorkingCopy.java:246)
at org.eclipse.debug.internal.core.LaunchConfigurationWorkingCopy.doSave0(LaunchConfigurationWorkingCopy.java:196)
at org.eclipse.debug.internal.core.LaunchConfigurationWorkingCopy.doSave(LaunchConfigurationWorkingCopy.java:172)
at org.radrails.rails.internal.ui.raketasks.RakeTasksHelper.runRakeTask(RakeTasksHelper.java:54)
at org.radrails.rails.internal.ui.raketasks.RakeTasksView.runRakeTask(RakeTasksView.java:185)
at org.radrails.rails.internal.ui.raketasks.RakeTasksView.access$2(RakeTasksView.java:182)
at org.radrails.rails.internal.ui.raketasks.RakeTasksView$3.widgetSelected(RakeTasksView.java:158)
at org.eclipse.swt.widgets.TypedListener.handleEvent(TypedListener.java:227)
at org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java:66)
at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:938)
at org.eclipse.swt.widgets.Display.runDeferredEvents(Display.java:3682)
at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:3293)
at org.eclipse.ui.internal.Workbench.runEventLoop(Workbench.java:1930)
at org.eclipse.ui.internal.Workbench.runUI(Workbench.java:1894)
at org.eclipse.ui.internal.Workbench.createAndRunWorkbench(Workbench.java:422)
at org.eclipse.ui.PlatformUI.createAndRunWorkbench(PlatformUI.java:149)
at com.aptana.ide.rcp.AbstractIDEApplication.run(AbstractIDEApplication.java:116)
at com.aptana.ide.rcp.Application.run(Application.java:43)
at org.eclipse.core.internal.runtime.PlatformActivator$1.run(PlatformActivator.java:78)
at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.runApplication(EclipseAppLauncher.java:92)
at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.start(EclipseAppLauncher.java:68)
at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:400)
at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:177)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
at java.lang.reflect.Method.invoke(Unknown Source)
at org.eclipse.core.launcher.Main.invokeFramework(Main.java:336)
at org.eclipse.core.launcher.Main.basicRun(Main.java:280)
at org.eclipse.core.launcher.Main.run(Main.java:977)
at org.eclipse.core.launcher.Main.main(Main.java:952)
!SUBENTRY 1 org.eclipse.debug.core 4 5012 2007-11-15 12:43:38.968
!MESSAGE java.io.IOException: The parameter is incorrect occurred generating launch configuration XML.



 All   Comments   Change History      Sort Order:
Chris Williams - 19/Nov/07 11:20 AM
Which rake task are you attempting to run? Does it happen no matter the task?

Kendall Coolidge - 19/Nov/07 12:26 PM
Ah, good question. Rake tasks do not work for the db:xxx:xxx tasks like db:schema:dump, db:structure:dump, db:sessions:clear. Other tasks, such as log:clear, doc:app, test:units, and stats work fine. So it seems to be confined the the "db" tasks. Thanks, Chris.

Chris Williams - 19/Nov/07 03:06 PM
OK, I think I fixed this when I fixed ROR-96. When I was creating an internal launch I was using the filename and the arguments as part of the name of the launch configuration. The args could contain characters which were invalid in filenames (the launch configuration saves itself in a file corresponding to its name).

So I think the ":" was invalid and broke this for you. But here's two things that don't jive:

  • The error I was seeing on my machine gave a different message at the same line as your stack trace ("The filename, directory name, or volume label syntax is incorrect occurred generating launch configuration XML.")
  • You say that other rake tasks that have colons are working OK for you.

Can you confirm whether the other tasks with colons are actually executing and not just silently dying with this same stack trace in the logs?


Kendall Coolidge - 19/Nov/07 03:30 PM
Yes, some other tasks are working, such as log:clear. In the .log below, I first did a db:schema:dump (which generated an error) then a log:clear (which worked) then I did a tmp:sessions:clear (which also generated and error). Could it be that when there are two colons the error happens, but when there is only one it works?

!SESSION 2007-11-19 15:22:05.328 -----------------------------------------------
eclipse.buildId=unknown
java.version=1.6.0_01
java.vendor=Sun Microsystems Inc.
BootLoader constants: OS=win32, ARCH=x86, WS=win32, NL=en_US
Framework arguments: C:\Program Files\Aptana\Aptana Studio\Aptana.exe
Command-line arguments: -os win32 -ws win32 -arch x86 C:\Program Files\Aptana\Aptana Studio\Aptana.exe

!ENTRY org.eclipse.ui 2 0 2007-11-19 15:22:09.828
!MESSAGE Warnings while parsing the viewer contributions from the 'org.eclipse.ui.popupMenus' extension point
!SUBENTRY 1 org.eclipse.ui 2 0 2007-11-19 15:22:09.828
!MESSAGE Actions require a non-empty label or definitionId: plug-in='org.rubypeople.rdt.ui', id='org.rubypeople.rdt.ui.text.ruby.correction.assist.proposals'

!ENTRY org.rubypeople.rdt.launching 1 -1 2007-11-19 15:22:11.531
!MESSAGE Starting: c:\ruby\bin\ruby.exe -r rubygems -e p(Gem.path) -I "C:\Program Files\Aptana\Aptana Studio\plugins\org.rubypeople.rdt.launching_0.9.1.200711131528NGT\ruby\flush" -rrdt_stream_sync.rb –

!ENTRY org.eclipse.osgi 2 1 2007-11-19 15:22:13.390
!MESSAGE NLS missing message: SelectionTransferDropAdapter_error_title in: org.rubypeople.rdt.internal.ui.packageview.PackagesMessages

!ENTRY org.eclipse.osgi 2 1 2007-11-19 15:22:13.390
!MESSAGE NLS missing message: SelectionTransferDropAdapter_error_message in: org.rubypeople.rdt.internal.ui.packageview.PackagesMessages

!ENTRY org.eclipse.ui 4 4 2007-11-19 15:22:13.453
!MESSAGE Invalid Menu Extension (Path is invalid): org.rubypeople.rdt.debug.ui.actions.ModifyCatchpoint

!ENTRY org.rubypeople.rdt.launching 1 -1 2007-11-19 15:22:14.156
!MESSAGE Starting: c:\ruby\bin\rubyw.exe -I "C:\Program Files\Aptana\Aptana Studio\plugins\org.rubypeople.rdt.launching_0.9.1.200711131528NGT\ruby\flush" -rrdt_stream_sync.rb – c:\ruby\bin\rake --tasks

!ENTRY org.eclipse.update.core 4 0 2007-11-19 15:22:49.687
!MESSAGE Digest could not be parsed:Unable to retrieve remote reference "http://update.aptana.com/update/nightly/3.2/site_rcp.xml./digest.zip". [Server returned HTTP response code: "404 Not Found" for URL: http://update.aptana.com/update/nightly/3.2/site_rcp.xml./digest.zip.]

!ENTRY org.radrails.rails.core 4 0 2007-11-19 15:22:57.718
!MESSAGE Error running rake task
!STACK 1
org.eclipse.debug.core.DebugException: java.io.IOException: The parameter is incorrect occurred generating launch configuration XML.
at org.eclipse.debug.internal.core.LaunchConfigurationWorkingCopy.writeNewFile(LaunchConfigurationWorkingCopy.java:246)
at org.eclipse.debug.internal.core.LaunchConfigurationWorkingCopy.doSave0(LaunchConfigurationWorkingCopy.java:196)
at org.eclipse.debug.internal.core.LaunchConfigurationWorkingCopy.doSave(LaunchConfigurationWorkingCopy.java:172)
at org.radrails.rails.internal.ui.raketasks.RakeTasksHelper.runRakeTask(RakeTasksHelper.java:54)
at org.radrails.rails.internal.ui.raketasks.RakeTasksView.runRakeTask(RakeTasksView.java:185)
at org.radrails.rails.internal.ui.raketasks.RakeTasksView.access$2(RakeTasksView.java:182)
at org.radrails.rails.internal.ui.raketasks.RakeTasksView$3.widgetSelected(RakeTasksView.java:158)
at org.eclipse.swt.widgets.TypedListener.handleEvent(TypedListener.java:227)
at org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java:66)
at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:938)
at org.eclipse.swt.widgets.Display.runDeferredEvents(Display.java:3682)
at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:3293)
at org.eclipse.ui.internal.Workbench.runEventLoop(Workbench.java:1930)
at org.eclipse.ui.internal.Workbench.runUI(Workbench.java:1894)
at org.eclipse.ui.internal.Workbench.createAndRunWorkbench(Workbench.java:422)
at org.eclipse.ui.PlatformUI.createAndRunWorkbench(PlatformUI.java:149)
at com.aptana.ide.rcp.AbstractIDEApplication.run(AbstractIDEApplication.java:116)
at com.aptana.ide.rcp.Application.run(Application.java:43)
at org.eclipse.core.internal.runtime.PlatformActivator$1.run(PlatformActivator.java:78)
at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.runApplication(EclipseAppLauncher.java:92)
at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.start(EclipseAppLauncher.java:68)
at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:400)
at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:177)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
at java.lang.reflect.Method.invoke(Unknown Source)
at org.eclipse.core.launcher.Main.invokeFramework(Main.java:336)
at org.eclipse.core.launcher.Main.basicRun(Main.java:280)
at org.eclipse.core.launcher.Main.run(Main.java:977)
at org.eclipse.core.launcher.Main.main(Main.java:952)
!SUBENTRY 1 org.eclipse.debug.core 4 5012 2007-11-19 15:22:57.734
!MESSAGE java.io.IOException: The parameter is incorrect occurred generating launch configuration XML.

!ENTRY org.rubypeople.rdt.launching 1 -1 2007-11-19 15:23:11.640
!MESSAGE Starting: c:\ruby\bin\rubyw.exe -I "C:\Program Files\Aptana\Aptana Studio\plugins\org.rubypeople.rdt.launching_0.9.1.200711131528NGT\ruby\flush" -rrdt_stream_sync.rb – c:\ruby\bin\rake log:clear

!ENTRY org.radrails.rails.core 4 0 2007-11-19 15:24:12.125
!MESSAGE Error running rake task
!STACK 1
org.eclipse.debug.core.DebugException: java.io.IOException: The parameter is incorrect occurred generating launch configuration XML.
at org.eclipse.debug.internal.core.LaunchConfigurationWorkingCopy.writeNewFile(LaunchConfigurationWorkingCopy.java:246)
at org.eclipse.debug.internal.core.LaunchConfigurationWorkingCopy.doSave0(LaunchConfigurationWorkingCopy.java:196)
at org.eclipse.debug.internal.core.LaunchConfigurationWorkingCopy.doSave(LaunchConfigurationWorkingCopy.java:172)
at org.radrails.rails.internal.ui.raketasks.RakeTasksHelper.runRakeTask(RakeTasksHelper.java:54)
at org.radrails.rails.internal.ui.raketasks.RakeTasksView.runRakeTask(RakeTasksView.java:185)
at org.radrails.rails.internal.ui.raketasks.RakeTasksView.access$2(RakeTasksView.java:182)
at org.radrails.rails.internal.ui.raketasks.RakeTasksView$3.widgetSelected(RakeTasksView.java:158)
at org.eclipse.swt.widgets.TypedListener.handleEvent(TypedListener.java:227)
at org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java:66)
at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:938)
at org.eclipse.swt.widgets.Display.runDeferredEvents(Display.java:3682)
at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:3293)
at org.eclipse.ui.internal.Workbench.runEventLoop(Workbench.java:1930)
at org.eclipse.ui.internal.Workbench.runUI(Workbench.java:1894)
at org.eclipse.ui.internal.Workbench.createAndRunWorkbench(Workbench.java:422)
at org.eclipse.ui.PlatformUI.createAndRunWorkbench(PlatformUI.java:149)
at com.aptana.ide.rcp.AbstractIDEApplication.run(AbstractIDEApplication.java:116)
at com.aptana.ide.rcp.Application.run(Application.java:43)
at org.eclipse.core.internal.runtime.PlatformActivator$1.run(PlatformActivator.java:78)
at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.runApplication(EclipseAppLauncher.java:92)
at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.start(EclipseAppLauncher.java:68)
at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:400)
at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:177)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
at java.lang.reflect.Method.invoke(Unknown Source)
at org.eclipse.core.launcher.Main.invokeFramework(Main.java:336)
at org.eclipse.core.launcher.Main.basicRun(Main.java:280)
at org.eclipse.core.launcher.Main.run(Main.java:977)
at org.eclipse.core.launcher.Main.main(Main.java:952)
!SUBENTRY 1 org.eclipse.debug.core 4 5012 2007-11-19 15:24:12.125
!MESSAGE java.io.IOException: The parameter is incorrect occurred generating launch configuration XML.


Lee Hericks - 21/Nov/07 03:14 AM
Aptana Studio 1.0
Aptana RadRails 0.9.1
Java 1.6.0_03-b05
Ruby 1.8.6
Ruby Gems 0.9.2
Rake 0.7.3
Ruby on Rails 2.0 RC1 (build 1.99.0)

After cleaning up some code in the RoR 2.0 RC1 boot.rb, I was able to get the Rake task list to show. However, I get the error you were talking about Chris:

org.eclipse.debug.core.DebugException: java.io.IOException: The filename, directory name, or volume label syntax is incorrect occurred generating launch configuration XML.
at org.eclipse.debug.internal.core.LaunchConfigurationWorkingCopy.writeNewFile(LaunchConfigurationWorkingCopy.java:246)

Chris, you got this fixed? Will this fix be out soon?


Chris Williams - 21/Nov/07 08:44 AM
Lee, yes your issue is fixed. It will be out in our next stable release of RadRails. Currently that's schedule to be 1.0.0 and to be out before Christmas (I'm aiming for code complete by December 15th).