GemTalk / JadeiteForPharo

IDE for GemStone Smalltalk application development in Pharo using Rowan code management
MIT License
0 stars 0 forks source link

Preload console with loadspecs to be loaded ... #75

Open dalehenrich opened 4 months ago

dalehenrich commented 4 months ago

Currently I have shell script that installs a number of projects into my stone after a fresh 3.7.1 private build. And note that some are commented out and some are not (for the same project):

## install the GsDevKit_stones in PATH
echo "install GsDevKit_stones: _stones/git/GsDevKit_stones"
installProject.stone file:/bosch1/users/dhenrich/_stones/git/GsDevKit_stones/rowan/specs/GsDevKit_stones.ston --projectsHome=/bosch1/users/dhenrich/_stones/git

#edit and testing needed for RowanV3
#echo "install GsDevKit_stones"
#installProject.stone file:/bosch1/users/dhenrich/_stones/37x/h_37x_externals_st/GsDevKit_stones/rowan/specs/GsDevKit_stones.ston --projectsHome=/bosch1/users/dhenrich/_stones/37x/h_37x_externals_st
echo "install RowanUpgrade"
installProject.stone file:/bosch1/users/dhenrich/_stones/37x/h_37x_externals_st/Rowan/upgrade/projectsHome/RowanUpgrade/rowan/specs/RowanUpgrade.ston --projectsHome=/bosch1/users/dhenrich/_stones/37x/h_37x_externals_st/Rowan/upgrade/projectsHome/

echo "install GsCommands"
installProject.stone file:/bosch1/users/dhenrich/_stones/37x/h_37x/examples/GsCommands/projectsHome/GsCommands/rowan/specs/GsCommands.ston --projectsHome=/bosch1/users/dhenrich/_stones/37x/h_37x/examples/GsCommands/projectsHome
echo "install BatteryTest"
installProject.stone file:/bosch1/users/dhenrich/_stones/37x/h_37x/tests/solo/BatteryTest/rowan/specs/BatteryTest.ston --projectsHome=/bosch1/users/dhenrich/_stones/37x/h_37x/tests/solo
echo "MyBuildScript"
installProject.stone file:/home/dhenrich/rogue_dhenrich_bin/projectsHome/MyBuildScript/rowan/specs/MyBuildScript.ston --projectsHome=/home/dhenrich/rogue_dhenrich_bin/projectsHome

echo "install GenerateGs"
installProject.stone file:/bosch1/users/dhenrich/_stones/37x/h_37x/build/generateGs/projects/generateGs/rowan/specs/GenerateGs.ston --projectsHome=/bosch1/users/dhenrich/_stones/37x/h_37x/build/generateGs/projects

# echo "install GenerateGs from f_37x repo --- cross project editing" 
# installProject.stone file:/bosch1/users/dhenrich/_stones/37x/f_37x/build/generateGs/projects/generateGs/rowan/specs/GenerateGs.ston --projectsHome=/bosch1/users/dhenrich/_stones/37x/f_37x/build/generateGs/projects

When I launched JfD this morning and looked at the current console and noticed that I had GsDevKit_stones:v2.1 loaded and not the "standard" v2 (note that in the above script the two variants come from different directories): image It occurred to me that it would be useful to be able to populate the console with unloaded specs for all of the projects and project variants that I am interested in ... so I wouldn't need to rely on editing the shell script or forgetting to change shell script when I do a fresh build ...

Exactly how we'd make these pre-loaded loadspecs is a good question (perhaps a menu that lists the load specs present in a directory specified in preferences?) ... but I do think that it would be a very useful feature for JfD and JfP.

If I had this feature I would only load the projects that I was currently interested in (on demand) ....

... and this feature could piggy back on a load spec editor that we do have in the works ... in fact the load spec editor could read a spec from some random disk/https location ... allow the developer to edit the load spec and then save spec to a directory ... that feeds to menu item for loading specs!