feenkcom / gtoolkit

Glamorous Toolkit is the Moldable Development environment. It empowers you to make systems explainable through experiences tailored for each problem.
https://gtoolkit.com
MIT License
1.1k stars 47 forks source link

Problems running Glamorous Toolkit in Ubuntu 20.04 #1997

Closed JJ closed 3 years ago

JJ commented 3 years ago

I have downloaded the latest version of GT to a /opt/GlamorousToolkitLinux64-v0.8.737/ directory, only user privileges, then added /opt/GlamorousToolkitLinux64-v0.8.737/bin/ to the PATH. First attempt to run,

/opt/GlamorousToolkitLinux64-v0.8.737/bin/glamoroustoolkit&
[1] 6625
[ERROR] 2021-07-02 07:33:46.295 vm_main_with_parameters (src/client.c:71):No image has been specified, and no default image has been found.
Usage: GlamorousToolkit [<option>...] [<imageName> [<argument>...]]
       GlamorousToolkit [<option>...] -- [<argument>...]

Common <option>s:
  --help                    Print this help message, then exit
  --headless                Run in headless (no window) mode (default: true)
  --logLevel=<level>        Sets the log level (ERROR, WARN, INFO or DEBUG)
  --version                 Print version information, then exit
  --maxFramesToLog=<cant>   Sets the max numbers of Smalltalk frames to log
Notes:

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

OK, fair enough, although the [getting started]https://gtoolkit.com/docs/start/) page mentions

Now, run the image with the virtual machine and you are good to go.

We need to find the image, and here we go again:

/opt/GlamorousToolkitLinux64-v0.8.737/bin/glamoroustoolkit /opt/GlamorousToolkitLinux64-v0.8.737/GlamorousToolkit.image 
[Glutin] Profile #0 worked
[Glutin] Profile #0 worked
Usage: [<subcommand>] [--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
    <subcommand> 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.

I can't quite figure this one out. The subcommand seems to be optional. There seems to be no error, and besides, it mentions that the profile actually works. It shows documentationabout the Command Line Handler... But really, no idea. Any help?

khinsen commented 3 years ago

The download page provides the correct command line for Linux:

./glamoroustoolkit GlamorousToolkit.image --no-quit --interactive

You were missing the last two arguments.

JJ commented 3 years ago

I definitely was... But I missed those notes in the download page. Maybe replicating it in the "Getting started" page?

StephanEggermont commented 3 years ago

Hmm, the getting started actually looks fine. On the install page, perhaps make the typewriter font a bit more bold or add some spacing between the supported OS versions and the run instructions image

StephanEggermont commented 3 years ago

This is with font-weight set to 800 image