pharo-project / pharo-vm

This is the VM used by Pharo
http://pharo.org
Other
115 stars 71 forks source link

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

Open recursive68 opened 4 months ago

recursive68 commented 4 months ago

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 [

Common

Notes:

defaults to `Pharo.image'. s are ignored, but are processed by the Pharo image. Precede 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 --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 commented 4 months ago

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"
  2. Trying with another image?