Open demarey opened 10 months ago
(fgrep is obsolescent, use grep -F) this is not the error, is just a warning of the script :)
I tried to reproduce bug and executed vm list on Ubuntu, but works on my environment.
Problem probably in obtaining of pharo version, most probably returns nil on particular (some old?) vm:
PhLVmProvider class>>for:
for: aPhLVirtualMachineOrManager
| class |
class := aPhLVirtualMachineOrManager pharoVersion asInteger < 90
ifTrue: [ PhLVmProviderUntilPharo80 ]
ifFalse: [ self ].
^ class new
vmManager: aPhLVirtualMachineOrManager;
yourself.
What about using:
| class vmVersion|
vmVersion := aPhLVirtualMachineOrManager pharoVersion.
class := (vmVersion isNil or: [vmVersion asInteger < 90])
ifTrue: [ PhLVmProviderUntilPharo80 ]
ifFalse: [ self ].
^ class new
vmManager: aPhLVirtualMachineOrManager;
yourself.
@demarey What do you think? Is it systematic or we should trace down, why pharoVersion returns nil.
@estebanlm could you open the file ~/pharo/launcherSettings.ston
(should be that on linux), check the value of vmsDirectory
and give us the result of ls -R
on this folder ?
pharo-launcher vm list
throws an error on Linux (fgrep is obsolescent, use grep -F)