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.12k stars 49 forks source link

Recommend `onConflictUseLoaded` on `MetacelloConflictingProjectError` #1788

Open goretkin opened 3 years ago

goretkin commented 3 years ago

As a complete new-comer to this ecosystem, I experienced a moment of stuckness when I tried to load a package by following instructions in its README, e.g

https://github.com/PolyMathOrg/PolyMath

Metacello new
        repository: 'github://PolyMathOrg/PolyMath:v1.0.2';
        baseline: 'PolyMath';
        load

and received an error and debug interface:

image

I don't know how to copy the message "MetacelloConflictingProjectError ...". The clipboard icon copies other stuff, but I don't know what that stuff is.

One solution ends up being to do

Metacello new
        repository: 'github://PolyMathOrg/PolyMath:v1.0.2';
        baseline: 'PolyMath';
    onConflictUseLoaded;
    load

Perhaps it should be Metacello to suggest this in this error message, but is there a way for GToolkit to display a hint on this specific error?

girba commented 3 years ago

This is a very nice idea.

The debugger is moldable, too, and can change depending on what is on the stack. So, we could indeed offer a dedicated debugger that offers suggestions for this specific error.