krfkeith / metacello

Automatically exported from code.google.com/p/metacello
0 stars 0 forks source link

MetacelloProjectSpecLoadError: No version found for #stable of ConfigurationOfProfStef #149

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
Pharo image: Pharo1.4a#14108
Virtual machine used: Squeak4.1 of 17 April 2010 [latest update: #9957] 
Platform Name: unix
Class browser used (if applicable): Browser

Steps to reproduce:
#.
Gofer new
  squeaksource: 'MetacelloRepository';
  package: 'ConfigurationOfMetacello';
  load.
#.
(ConfigurationOfMetacello project version: #stable) load

#.
(ConfigurationOfMetacello project version: #stable) load: #('Tutorial').

Actual Result:
#.
MetacelloProjectSpecLoadError: No version found for #stable of 
ConfigurationOfProfStef

Expected Result:
#. to load metacello tutorial.

it would be nice to show the possible values, something like

MetacelloProjectSpecLoadError: No version found for #stable of 
ConfigurationOfProfStef, possible values are xxx, yyy, zzz

or 

MetacelloProjectSpecLoadError: No version found for #stable of 
ConfigurationOfProfStef, there are no symbolic versions.

because you don't know if it is a typo or what.

Original issue reported on code.google.com by vonbecm...@gmail.com on 22 Aug 2011 at 3:19

Attachments:

GoogleCodeExporter commented 9 years ago

Original comment by henrichs...@gmail.com on 18 Jan 2012 at 7:02

GoogleCodeExporter commented 9 years ago
Fixed in Metacello 1.0-beta.32 (dkh.673).

Improved error messages by including list of possible versions for the 
following exceptions:

  MetacelloProjectSpecLoadError
  MetacelloSymbolicVersionDoesNotExistError
  MetacelloSymbolicVersionNotDefinedError
  MetacelloVersionDefinitionError
  MetacelloVersionDoesNotExistError

Cleaned up the use of exceptions in a couple of places and 
MetacelloProjectSpecLoadError relies upon MetacelloVersionDoesNotExistError for 
part of its description (inheriting improvements).

Ensure test coverage for the exceptions.

fix comment in 
MetacelloToolBox>>modifySection:repository:requiredProjects:packages:dependencie
s:includes:files:repositories:preLoadDoIts:postLoadDoIts:supplyingAnswers:groups
:versionSpecsDo: 

Original comment by henrichs...@gmail.com on 25 Jan 2012 at 9:47