continuoustests / OpenIDE

A set of tools for providing basic developer IDE features around your favorite editor.
95 stars 16 forks source link

Installing package fails under OSX #7

Closed divan-9 closed 10 years ago

divan-9 commented 10 years ago

It works under Windows but when was trying to install package on my Mac I had got an error:

oi package install C-Sharp
Installing package C-Sharp
Downloading https://raw.githubusercontent.com/continuoustests/OpenIDE.packages/master/C-Sharp.oipkg ...
System.IndexOutOfRangeException: Array index is out of range.
  at OpenIDE.Core.Packaging.Installer.getInstallPackage (System.String source, System.String tempPath) [0x00000] in <filename unknown>:0 
  at OpenIDE.Core.Packaging.Installer.prepareForAction (System.String source, System.Func`2 actionHandler) [0x00000] in <filename unknown>:0 

Looks like something went wrong inside oipckmngr.exe call

acken commented 10 years ago

Since it's oipckmngr.exe that's failing could it be that gunzip and tar is not in osx by default? If so I'd better get that up as a requirement for osx

On Wed, Mar 26, 2014 at 8:35 PM, Dmitry notifications@github.com wrote:

It works under Windows but when was trying to install package on my Mac I had got an error:

oi package install C-Sharp Installing package C-Sharp Downloading https://raw.githubusercontent.com/continuoustests/OpenIDE.packages/master/C-Sharp.oipkg ... System.IndexOutOfRangeException: Array index is out of range. at OpenIDE.Core.Packaging.Installer.getInstallPackage (System.String source, System.String tempPath) [0x00000] in :0 at OpenIDE.Core.Packaging.Installer.prepareForAction (System.String source, System.Func`2 actionHandler) [0x00000] in :0

Looks like something went wrong inside oipckmngr.exe call

Reply to this email directly or view it on GitHubhttps://github.com/continuoustests/OpenIDE/issues/7 .

Best regards Svein Arne Ackenhausen

Blog - http://ackenpacken.blogspot.com/ Twitter - http://twitter.com/ackenpacken

divan-9 commented 10 years ago

I was wrong about oipckmngr.exe, it does its job if I run it from shell. Now I suspect that ProcessExtensions.Query method seems to work incorrectly on mac.

acken commented 10 years ago

Hmm.. might be that .exe files are not directly runable in osx. What if you try to run this command "oi conf interpreter.exe=/path/to/mono -g" ?

On Wed, Mar 26, 2014 at 11:26 PM, Dmitry notifications@github.com wrote:

I was wrong about oipckmngr.exe, it does its job if I run it from shell. Now I suspect that ProcessExtensions.Query method seems to work incorrectly on mac.

Reply to this email directly or view it on GitHubhttps://github.com/continuoustests/OpenIDE/issues/7#issuecomment-38748304 .

Best regards Svein Arne Ackenhausen

Blog - http://ackenpacken.blogspot.com/ Twitter - http://twitter.com/ackenpacken

divan-9 commented 10 years ago

Doesn't work ether

acken commented 10 years ago

Hmm.. could you try running oi package install C-Sharp --logging and paste what it outputs?

On Thu, Mar 27, 2014 at 6:19 AM, Dmitry notifications@github.com wrote:

Doesn't work ether

Reply to this email directly or view it on GitHubhttps://github.com/continuoustests/OpenIDE/issues/7#issuecomment-38769975 .

Best regards Svein Arne Ackenhausen

Blog - http://ackenpacken.blogspot.com/ Twitter - http://twitter.com/ackenpacken

divan-9 commented 10 years ago
bash-3.2$ oi package install C-Sharp --logging
10,10 - Assigned logger
49,39 - Parsing profiles
49,0 - Initializing application
61,12 - Getting definition builder
61,1 - Building definitions
92,31 - Merging path /Users/dmitryivanov/bin/OpenIDE/.OpenIDE
96,4 - Parsing arguments
96,0 - Getting command from arguments
103,7 - Running command install of type BuiltIn
103,1 - Removing the command name from parameters: package
103,0 - Running command as built in command
109,6 - Dispatching Installing package C-Sharp
Installing package C-Sharp
117,8 - Dispatching Downloading https://raw.githubusercontent.com/continuoustests/OpenIDE.packages/master/C-Sharp.oipkg ...
Downloading https://raw.githubusercontent.com/continuoustests/OpenIDE.packages/master/C-Sharp.oipkg ...
2343,2226 - Running: /Users/dmitryivanov/bin/OpenIDE/ReleaseBinaries/Packaging/oipckmngr.exe extract "/var/folders/ly/t0s4vvsx74d579nmg44cdqwh0000gn/T/635315187676437620.oipkg" "/var/folders/ly/t0s4vvsx74d579nmg44cdqwh0000gn/T/635315187698663830"
System.IndexOutOfRangeException: Array index is out of range.
  at OpenIDE.Core.Packaging.Installer.getInstallPackage (System.String source, System.String tempPath) [0x00000] in <filename unknown>:0 
  at OpenIDE.Core.Packaging.Installer.prepareForAction (System.String source, System.Func`2 actionHandler) [0x00000] in <filename unknown>:0 
2407,65 - Dispatching event|builtin package installed "C-Sharp"
2408,0 - Dispatching event|builtin command ran "package" "install" "C-Sharp"
2408,0 - Waiting for background commands
2419,11 - Application exiting
bash-3.2$ oi conf
Configuration for: /Users/dmitryivanov/bin/OpenIDE

    interpreter.exe=mono
acken commented 10 years ago

You just found a bug. The interpreter setting has some issues. I'll fix that and push a new version. I'll notify you when the new version is up.

On Thu, Mar 27, 2014 at 9:08 AM, Dmitry notifications@github.com wrote:

bash-3.2$ oi package install C-Sharp --logging 10,10 - Assigned logger 49,39 - Parsing profiles 49,0 - Initializing application 61,12 - Getting definition builder 61,1 - Building definitions 92,31 - Merging path /Users/dmitryivanov/bin/OpenIDE/.OpenIDE 96,4 - Parsing arguments 96,0 - Getting command from arguments 103,7 - Running command install of type BuiltIn 103,1 - Removing the command name from parameters: package 103,0 - Running command as built in command 109,6 - Dispatching Installing package C-Sharp Installing package C-Sharp 117,8 - Dispatching Downloading https://raw.githubusercontent.com/continuoustests/OpenIDE.packages/master/C-Sharp.oipkg ... Downloading https://raw.githubusercontent.com/continuoustests/OpenIDE.packages/master/C-Sharp.oipkg ... 2343,2226 - Running: /Users/dmitryivanov/bin/OpenIDE/ReleaseBinaries/Packaging/oipckmngr.exe extract "/var/folders/ly/t0s4vvsx74d579nmg44cdqwh0000gn/T/635315187676437620.oipkg" "/var/folders/ly/t0s4vvsx74d579nmg44cdqwh0000gn/T/635315187698663830" System.IndexOutOfRangeException: Array index is out of range. at OpenIDE.Core.Packaging.Installer.getInstallPackage (System.String source, System.String tempPath) [0x00000] in :0 at OpenIDE.Core.Packaging.Installer.prepareForAction (System.String source, System.Func`2 actionHandler) [0x00000] in :0 2407,65 - Dispatching event|builtin package installed "C-Sharp" 2408,0 - Dispatching event|builtin command ran "package" "install" "C-Sharp" 2408,0 - Waiting for background commands 2419,11 - Application exiting

bash-3.2$ oi conf Configuration for: /Users/dmitryivanov/bin/OpenIDE

interpreter.exe=mono

Reply to this email directly or view it on GitHubhttps://github.com/continuoustests/OpenIDE/issues/7#issuecomment-38777383 .

Best regards Svein Arne Ackenhausen

Blog - http://ackenpacken.blogspot.com/ Twitter - http://twitter.com/ackenpacken

divan-9 commented 10 years ago

Thanks a lot!

acken commented 10 years ago

Just pushed a new version. If it still gives errors run with logging again and send me the feedback.

On Thu, Mar 27, 2014 at 9:28 AM, Dmitry notifications@github.com wrote:

Thanks a lot!

Reply to this email directly or view it on GitHubhttps://github.com/continuoustests/OpenIDE/issues/7#issuecomment-38778475 .

Best regards Svein Arne Ackenhausen

Blog - http://ackenpacken.blogspot.com/ Twitter - http://twitter.com/ackenpacken

divan-9 commented 10 years ago

Still fails

Configuration for: /Users/dmitryivanov/dev/OpenIDE

    default.language=C#
    interpreter.exe=mono
$ oi package install C-Sharp --logging
9,9 - Assigned logger
47,38 - Parsing profiles
47,0 - Initializing application
57,10 - Initializing interpreters
61,4 - Adding interpreter: mono for .exe
62,1 - Getting definition builder
62,1 - Building definitions
93,31 - Merging path /Users/dmitryivanov/bin/OpenIDE/.OpenIDE
101,7 - Merging path /Users/dmitryivanov/dev/OpenIDE/.OpenIDE
101,0 - Parsing arguments
101,0 - Getting command from arguments
108,7 - Running command install of type BuiltIn
109,1 - Removing the command name from parameters: package
109,0 - Running command as built in command
114,5 - Dispatching Installing package C-Sharp
Installing package C-Sharp
122,8 - Dispatching Downloading https://raw.githubusercontent.com/continuoustests/OpenIDE.packages/master/C-Sharp.oipkg ...
Downloading https://raw.githubusercontent.com/continuoustests/OpenIDE.packages/master/C-Sharp.oipkg ...
4170,4048 - Running: mono "/Users/dmitryivanov/bin/OpenIDE/Packaging/oipckmngr.exe" extract "/var/folders/ly/t0s4vvsx74d579nmg44cdqwh0000gn/T/635316208533887730.oipkg" "/var/folders/ly/t0s4vvsx74d579nmg44cdqwh0000gn/T/635316208574341610"
System.IndexOutOfRangeException: Array index is out of range.
  at OpenIDE.Core.Packaging.Installer.getInstallPackage (System.String source, System.String tempPath) [0x00000] in <filename unknown>:0 
  at OpenIDE.Core.Packaging.Installer.prepareForAction (System.String source, System.Func`2 actionHandler) [0x00000] in <filename unknown>:0 
4247,77 - Dispatching event|builtin package installed "C-Sharp"
4248,0 - Dispatching event|builtin command ran "package" "install" "C-Sharp"
4248,0 - Waiting for background commands
4259,11 - Application exiting
divan-9 commented 10 years ago

I found the actual problem in the package manager:

bash-3.2$ tar --warning=none  ...
tar: Option --warning=none is not supported
acken commented 10 years ago

Just pushed a version that removed that option, fixed the interpreter bug and more. Try doing a git pull followed by the oi package install C-Sharp. Hope this helps

On Sat, Mar 29, 2014 at 10:27 AM, Dmitry notifications@github.com wrote:

I found the actual issue in the package manager:

bash-3.2$ tar --warning=none ... tar: Option --warning=none is not supported

Reply to this email directly or view it on GitHubhttps://github.com/continuoustests/OpenIDE/issues/7#issuecomment-38990919 .

Best regards Svein Arne Ackenhausen

Blog - http://ackenpacken.blogspot.com/ Twitter - http://twitter.com/ackenpacken

divan-9 commented 10 years ago

Alpha 4 works