Menu

help (cygwin bash)

Help
xinhua
2006-12-28
2013-04-25
  • xinhua

    xinhua - 2006-12-28

    Hi,
    my cygwin installed in d:\cygwin, i changed the setting "shell root dir" and "default shell" in preference for cygwin bash but i got error when i open shell view:

    Exception occured: java.io.IOException --- CreateProcess: bash.exe -l -i error=2
    Please refer to error log for further details. The setup of Wicked Shell failed. $

    Which error log do you mean? Error log view? There is nothing.
    Please help! Thank you!

    xinhua

     
    • xinhua

      xinhua - 2006-12-28

      Here is error detail:
      java.io.IOException: CreateProcess: bash.exe -l -i error=2
              at java.lang.Win32Process.create(Native Method)
              at java.lang.Win32Process.<init>(Unknown Source)
              at java.lang.Runtime.execInternal(Native Method)
              at java.lang.Runtime.exec(Unknown Source)
              at java.lang.Runtime.exec(Unknown Source)
              at net.sf.wickedshell.facade.IShellFacade$ShellFacade.activate(IShellFacade.java:269)
              at net.sf.wickedshell.ui.shell.ShellView.initShellFacade(ShellView.java:94)
              at net.sf.wickedshell.ui.shell.ShellView.createPartControl(ShellView.java:61)
              at org.eclipse.ui.internal.ViewReference.createPartHelper(ViewReference.java:332)
              at org.eclipse.ui.internal.ViewReference.createPart(ViewReference.java:197)
              at org.eclipse.ui.internal.WorkbenchPartReference.getPart(WorkbenchPartReference.java:566)
              at org.eclipse.ui.internal.WorkbenchPage$ActivationList.setActive(WorkbenchPage.java:3915)
              at org.eclipse.ui.internal.WorkbenchPage.restoreState(WorkbenchPage.java:2929)
              at org.eclipse.ui.internal.WorkbenchWindow.restoreState(WorkbenchWindow.java:1936)
              at org.eclipse.ui.internal.Workbench.doRestoreState(Workbench.java:2857)
              at org.eclipse.ui.internal.Workbench.access$14(Workbench.java:2805)
              at org.eclipse.ui.internal.Workbench$19.run(Workbench.java:1681)
              at org.eclipse.ui.internal.Workbench.runStartupWithProgress(Workbench.java:1421)
              at org.eclipse.ui.internal.Workbench.restoreState(Workbench.java:1679)
              at org.eclipse.ui.internal.Workbench.access$12(Workbench.java:1650)
              at org.eclipse.ui.internal.Workbench$17.run(Workbench.java:1529)
              at org.eclipse.core.runtime.SafeRunner.run(SafeRunner.java:37)
              at org.eclipse.ui.internal.Workbench.restoreState(Workbench.java:1473)
              at org.eclipse.ui.internal.WorkbenchConfigurer.restoreState(WorkbenchConfigurer.java:183)
              at org.eclipse.ui.application.WorkbenchAdvisor.openWindows(WorkbenchAdvisor.java:702)
              at org.eclipse.ui.internal.Workbench.init(Workbench.java:1085)
              at org.eclipse.ui.internal.Workbench.runUI(Workbench.java:1847)
              at org.eclipse.ui.internal.Workbench.createAndRunWorkbench(Workbench.java:419)
              at org.eclipse.ui.PlatformUI.createAndRunWorkbench(PlatformUI.java:149)
              at org.eclipse.ui.internal.ide.IDEApplication.run(IDEApplication.java:95)
              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)

       
    • S. Reichert

      S. Reichert - 2006-12-29

      Hi Xinhua,

      sounds as if your d:/cygwin/bin is not included in your PATH variable. So far, Wicked Shell expects the executable to be PATH (I'm working o that ;).

      I wish you a happy new year, best regards,
      Stefan

       
    • xinhua

      xinhua - 2007-01-02

      Hi, Stefan
      Happy new Year!!!and thank you for the help. :) Now cygwin bash runs in Shellview, but i still have problem by typing command in Shellview. When i hit "enter" key, a error occurs:

      !ENTRY org.eclipse.ui 4 4 2007-01-02 12:56:18.391
      !MESSAGE Unhandled event loop exception

      !ENTRY org.eclipse.ui 4 0 2007-01-02 12:56:18.391
      !MESSAGE String index out of range: -1
      !STACK 0
      java.lang.StringIndexOutOfBoundsException: String index out of range: -1
          at java.lang.String.substring(Unknown Source)
          at net.sf.wickedshell.facade.IShellFacade$ShellFacade.getCurrentPath(IShellFacade.java:377)
          at net.sf.wickedshell.facade.IShellFacade$ShellFacade.setCurrentCommand(IShellFacade.java:446)
          at net.sf.wickedshell.facade.IShellFacade$ShellFacade.executeCommand(IShellFacade.java:331)
          at net.sf.wickedshell.ui.shell.viewer.ShellViewerKeyAdapter.keyPressed(ShellViewerKeyAdapter.java:68)
          at org.eclipse.swt.widgets.TypedListener.handleEvent(TypedListener.java:122)
          at org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java:66)
          at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:928)
          at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:952)
          at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:937)
          at org.eclipse.swt.widgets.Widget.sendKeyEvent(Widget.java:965)
          at org.eclipse.swt.widgets.Text.sendKeyEvent(Text.java:1213)
          at org.eclipse.swt.widgets.Widget.sendKeyEvent(Widget.java:961)
          at org.eclipse.swt.widgets.Widget.wmChar(Widget.java:1275)
          at org.eclipse.swt.widgets.Control.WM_CHAR(Control.java:3346)
          at org.eclipse.swt.widgets.Text.WM_CHAR(Text.java:1846)
          at org.eclipse.swt.widgets.Control.windowProc(Control.java:3246)
          at org.eclipse.swt.widgets.Text.windowProc(Text.java:1841)
          at org.eclipse.swt.widgets.Display.windowProc(Display.java:4025)
          at org.eclipse.swt.internal.win32.OS.DispatchMessageW(Native Method)
          at org.eclipse.swt.internal.win32.OS.DispatchMessage(OS.java:1925)
          at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:2966)
          at org.eclipse.ui.internal.Workbench.runEventLoop(Workbench.java:1914)
          at org.eclipse.ui.internal.Workbench.runUI(Workbench.java:1878)
          at org.eclipse.ui.internal.Workbench.createAndRunWorkbench(Workbench.java:419)
          at org.eclipse.ui.PlatformUI.createAndRunWorkbench(PlatformUI.java:149)
          at org.eclipse.ui.internal.ide.IDEApplication.run(IDEApplication.java:95)
          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)

      What could be the problem?

      best regards,
      Xinhua

       
    • S. Reichert

      S. Reichert - 2007-01-02

      Hi Xinhua,

      Wicked Shell runs text-based and expects the prompt of the underlaying shell to be in a specific format. This is necessary for computing the command completion and key controlling. Please have a look at the quick guide at section 'Cygwin and MSys', a suggestion for the PROMPT variable is provided there.

      Hope you find Wicked Shell useful once it is working properly :)

      Best wishes for 2007,
      Stefan

       

Log in to post a comment.

MongoDB Logo MongoDB