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

Headless option does not work with Pharo 11 or Pharo 12 #834

Open
recursive68 opened this issue Jul 13, 2024 · 1 comment
Open

Headless option does not work with Pharo 11 or Pharo 12 #834

recursive68 opened this issue Jul 13, 2024 · 1 comment

Comments

@recursive68
Copy link

recursive68 commented Jul 13, 2024

Trying to use headless option with both Pharo 11 and Pharo 12, 64bit on RedHat 9. If I run the pharo vm executable it displays --headless as an option but when I try to use it with an image it does not recognise the option e.g.

./pharo
Usage: Pharo [...] [ [...]]
Pharo [...] -- [...]

Common s:
--help Print this help message, then exit
--headless Run in headless (no window) mode (default: false)
--worker Run in worker thread (default: false)
--logLevel= Sets the log level number (ERROR(1), WARN(2), INFO(3), DEBUG(4), TRACE(5))
--version Print version information, then exit
--maxFramesToLog= Sets the max numbers of Smalltalk frames to log
--maxOldSpaceSize= Sets the max size of the old space. As the other
spaces are fixed (or calculated from this) with
this parameter is possible to set the total size.
It is possible to use k(kB), M(MB) and G(GB).
--codeSize=[mk] Sets the max size of code zone.
It is possible to use k(kB), M(MB) and G(GB).
--edenSize=[mk] Sets the size of eden
It is possible to use k(kB), M(MB) and G(GB).
--minPermSpaceSize=[mk] Sets the size of eden
It is possible to use k(kB), M(MB) and G(GB).

Notes:

defaults to Pharo.image'. <argument>s are ignored, but are processed by the Pharo image. Precede <arguments> by --' to use default image.

./pharo --headless ../../image/Pharo11-SNAPSHOT-64bit-aece1b5.image
Usage: [] [--help] [--copyright] [--version] [--list] [ --no-quit ]
--help print this help message
--copyright print the copyrights
--version print the version for the image and the vm
--list list a description of all active command line handlers
--no-quit keep the image running without activating any other command line handler
--deploymentPassword if a password needs to be used by the user to launch the command
--readWriteAccessMode, --readOnlyAccessMode, --writeOnlyAccessMode, --disabledAccessMode
specify disk access mode, read-write mode as default
a valid subcommand in --list

Preference File Modification:
--preferences-file   load the preferences from the given <FILE>
--no-default-preferences    do not load any preferences from the default locations

Documentation:
A PharoCommandLineHandler handles default command line arguments and options.
The PharoCommandLineHandler is activated before all other handlers.
It first checks if another handler is available. If so it will activate the found handler.

Is headless no longer supported by the VM or is it an issue with the Pharo 11 and Pharo 12 image ?

Thanks

@PalumboN
Copy link
Collaborator

Hello @recursive68 ,

--headless should be still a valid parameter. I had no problems using Pharo 11 / 12 images.

Have you tried?

  1. Evaluate something:
./pharo --headless ../../image/Pharo11-SNAPSHOT-64bit-aece1b5.image eval "1+1"
  1. Trying with another image?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants