OneScript icon indicating copy to clipboard operation
OneScript copied to clipboard

Unable to install ovm under OS X

Open bergstar opened this issue 7 months ago • 7 comments

Опишите ошибку Unable to install ovm under mac os x

Воспроизведение ошибки

➜  bin mono /Users/user/Downloads/OneScript-2.0.0-rc6-osx-arm64/bin/ovm.exe install stable 

Unhandled Exception:
System.TypeLoadException: Could not find method 'Skip' due to a type load error: Could not set up parent class, due to:  assembly:/Users/user/Downloads/OneScript-2.0.0-rc6-osx-arm64/bin/System.Private.CoreLib.dll type:Object member:(null) assembly:/Users/user/Downloads/OneScript-2.0.0-rc6-osx-arm64/bin/System.Linq.dll type:Enumerable member:(null)
  at StandaloneRunner.Program.Main (System.String[] args) [0x00016] in <b22493cb5e714b1fb8002ba4a8387dee>:0 
[ERROR] FATAL UNHANDLED EXCEPTION: System.TypeLoadException: Could not find method 'Skip' due to a type load error: Could not set up parent class, due to:  assembly:/Users/user/Downloads/OneScript-2.0.0-rc6-osx-arm64/bin/System.Private.CoreLib.dll type:Object member:(null) assembly:/Users/user/Downloads/OneScript-2.0.0-rc6-osx-arm64/bin/System.Linq.dll type:Enumerable member:(null)
  at StandaloneRunner.Program.Main (System.String[] args) [0x00016] in <b22493cb5e714b1fb8002ba4a8387dee>:0 
➜  bin mono /Users/user/Downloads/OneScript-2.0.0-rc.7+594-osx-arm64/bin/ovm.exe install stable

Unhandled Exception:
System.TypeLoadException: Could not find method 'Skip' due to a type load error: Could not set up parent class, due to:  assembly:/Users/user/Downloads/OneScript-2.0.0-rc.7+594-osx-arm64/bin/System.Private.CoreLib.dll type:Object member:(null) assembly:/Users/user/Downloads/OneScript-2.0.0-rc.7+594-osx-arm64/bin/System.Linq.dll type:Enumerable member:(null)
  at StandaloneRunner.Program.Main (System.String[] args) [0x00016] in <b22493cb5e714b1fb8002ba4a8387dee>:0 
[ERROR] FATAL UNHANDLED EXCEPTION: System.TypeLoadException: Could not find method 'Skip' due to a type load error: Could not set up parent class, due to:  assembly:/Users/user/Downloads/OneScript-2.0.0-rc.7+594-osx-arm64/bin/System.Private.CoreLib.dll type:Object member:(null) assembly:/Users/user/Downloads/OneScript-2.0.0-rc.7+594-osx-arm64/bin/System.Linq.dll type:Enumerable member:(null)
  at StandaloneRunner.Program.Main (System.String[] args) [0x00016] in <b22493cb5e714b1fb8002ba4a8387dee>:0

Окружение

OneScript-2.0.0-rc.7+594-osx-arm64:
OneScript-2.0.0-rc6-osx-arm64:
➜  bin sw_vers
ProductName:		macOS
ProductVersion:		15.4.1
BuildVersion:		24E263
➜  bin mono --version
Mono JIT compiler version 6.14.1 (tarball Tue Apr 29 17:43:02 UTC 2025)
Copyright (C) Novell, Inc, Xamarin Inc and Contributors. www.mono-project.com
	TLS:           
	SIGSEGV:       normal
	Notification:  kqueue
	Architecture:  arm64
	Disabled:      none
	Misc:          softdebug 
	Interpreter:   yes
	LLVM:          supported, not enabled.
	Suspend:       preemptive
	GC:            sgen

ovm [v1.6.0] [v1.5.0]

bergstar avatar May 28 '25 06:05 bergstar

@otymko @Nivanchenko можете проверить работу mono+ovm под мак? Выглядит, как будто неправильный Mono, хотя версия 6.14 должна вполне быть рабочей.

@bergstar есть возможность проверить под Mono 6.12?

EvilBeaver avatar May 28 '25 08:05 EvilBeaver

@bergstar есть возможность проверить под Mono 6.12?

Да проверю. 6.14.1 — это тот Mono, который устанавливается через brew. Других версий в brew, если я не ошибаюсь, нет.

bergstar avatar May 28 '25 08:05 bergstar

➜  bin mono --version
Mono JIT compiler version 6.12.0.206 (2020-02/0cbf0e290c3 Tue Feb 13 17:04:08 EST 2024)
Copyright (C) 2002-2014 Novell, Inc, Xamarin Inc and Contributors. www.mono-project.com
	TLS:           
	SIGSEGV:       altstack
	Notification:  kqueue
	Architecture:  amd64
	Disabled:      none
	Misc:          softdebug 
	Interpreter:   yes
	LLVM:          yes(610)
	Suspend:       hybrid
	GC:            sgen (concurrent by default)
➜  bin cd ..
➜  OneScript-2.0.0-rc.7+594-osx-arm64 cd bin 
➜  bin mono ovm.exe install stable

Unhandled Exception:
System.TypeLoadException: Could not find method 'Skip' due to a type load error: Could not set up parent class, due to:  assembly:/Users/user/Downloads/OneScript-2.0.0-rc.7+594-osx-arm64/bin/System.Private.CoreLib.dll type:Object member:(null) assembly:/Users/user/Downloads/OneScript-2.0.0-rc.7+594-osx-arm64/bin/System.Linq.dll type:Enumerable member:(null)
  at StandaloneRunner.Program.Main (System.String[] args) [0x00016] in <b22493cb5e714b1fb8002ba4a8387dee>:0 
[ERROR] FATAL UNHANDLED EXCEPTION: System.TypeLoadException: Could not find method 'Skip' due to a type load error: Could not set up parent class, due to:  assembly:/Users/user/Downloads/OneScript-2.0.0-rc.7+594-osx-arm64/bin/System.Private.CoreLib.dll type:Object member:(null) assembly:/Users/user/Downloads/OneScript-2.0.0-rc.7+594-osx-arm64/bin/System.Linq.dll type:Enumerable member:(null)
  at StandaloneRunner.Program.Main (System.String[] args) [0x00016] in <b22493cb5e714b1fb8002ba4a8387dee>:0 
➜  bin cd ../../OneScript-2.0.0-rc6-osx-arm64/bin 
➜  bin mono ovm.exe install stable               

Unhandled Exception:
System.TypeLoadException: Could not find method 'Skip' due to a type load error: Could not set up parent class, due to:  assembly:/Users/user/Downloads/OneScript-2.0.0-rc6-osx-arm64/bin/System.Private.CoreLib.dll type:Object member:(null) assembly:/Users/user/Downloads/OneScript-2.0.0-rc6-osx-arm64/bin/System.Linq.dll type:Enumerable member:(null)
  at StandaloneRunner.Program.Main (System.String[] args) [0x00016] in <b22493cb5e714b1fb8002ba4a8387dee>:0 
[ERROR] FATAL UNHANDLED EXCEPTION: System.TypeLoadException: Could not find method 'Skip' due to a type load error: Could not set up parent class, due to:  assembly:/Users/user/Downloads/OneScript-2.0.0-rc6-osx-arm64/bin/System.Private.CoreLib.dll type:Object member:(null) assembly:/Users/user/Downloads/OneScript-2.0.0-rc6-osx-arm64/bin/System.Linq.dll type:Enumerable member:(null)
  at StandaloneRunner.Program.Main (System.String[] args) [0x00016] in <b22493cb5e714b1fb8002ba4a8387dee>:0

Maybe be related? https://github.com/mono/mono/issues/21825

bergstar avatar May 28 '25 08:05 bergstar

@otymko @Nivanchenko можете проверить работу mono+ovm под мак? Выглядит, как будто неправильный Mono, хотя версия 6.14 должна вполне быть рабочей.

@bergstar есть возможность проверить под Mono 6.12?

Image

Попробовал на пре-релизе 1.6.0. Ошибок связанных с работой моно вроде нет.

Но у меня посвежее МакОС ProductName: macOS ProductVersion: 15.5

Nivanchenko avatar May 28 '25 09:05 Nivanchenko

Maybe be related? mono/mono#21825

No, it's unrelated. But it's definitely a Mono problem. Method "Skip" of core .net system library is not found.

EvilBeaver avatar May 28 '25 15:05 EvilBeaver

@bergstar I have an idea. Place ovm.exe somewhere else outside oscript/bin folder. Should work.

EvilBeaver avatar May 28 '25 15:05 EvilBeaver

@bergstar получилось исправить переносом exe-файла?

EvilBeaver avatar Jul 08 '25 12:07 EvilBeaver