Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

pharo-launcher vm list throws an error on Linux #657

Open
demarey opened this issue Jan 23, 2024 · 4 comments
Open

pharo-launcher vm list throws an error on Linux #657

demarey opened this issue Jan 23, 2024 · 4 comments
Labels
Bug cmd-line Command-line Launcher issue to-fix-before-release

Comments

@demarey
Copy link
Contributor

demarey commented Jan 23, 2024

pharo-launcher vm list throws an error on Linux (fgrep is obsolescent, use grep -F)

bug-pl

@demarey demarey added Bug cmd-line Command-line Launcher issue labels Jan 23, 2024
@estebanlm
Copy link
Member

(fgrep is obsolescent, use grep -F)
this is not the error, is just a warning of the script :)

@Bajger
Copy link
Member

Bajger commented Feb 5, 2024

I tried to reproduce bug and executed vm list on Ubuntu, but works on my environment.

  1. 'fgrep' is not part of Pharo launcher source code. (looked for 'method source with it')
  2. 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.

@Bajger
Copy link
Member

Bajger commented Feb 5, 2024

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.

@demarey
Copy link
Contributor Author

demarey commented Feb 5, 2024

@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 ?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Bug cmd-line Command-line Launcher issue to-fix-before-release
Projects
None yet
Development

No branches or pull requests

3 participants