929 questions
1 vote
3 answers
507 views
How to run an Hello world in smalltalk on Windows using command line?
Simple question, I know command line isn’t very smalltalkish but let’s say I’ve the following code : FileStream stdout nextPutAll: 'Hello world' ; lf. Smalltalk quitPrimitive. If I don’t use an ...
1 vote
1 answer
55 views
What are the substitutes or alternatives for GTInspector in Pharo 10 onwards?
An older Pharo package I've installed utilizes GTInspector which seems to have been part of the default installations prior to Pharo 10. In Pharo 10 attempting to install GTInspector installs most of ...
1 vote
1 answer
62 views
In Pharo how can I stop a debugger window from a previous session from coming up again and again after startup?
An earlier process in Pharo which resulted in the appearance of a debugger window seems to be still running in the background and comes up again every time the image is started. It seems to be have ...
1 vote
1 answer
64 views
Understanding PetitParser2 behavior
I'm struggling with a small parser using PetitParser2. Here is a fragment of some of the rules I'm defining but their behaviour is not as I could expect: andKeyword := 'and' asPParser trim, #letter ...
1 vote
2 answers
82 views
How to replace a for example #test symbol in one method?
I would like to use Pharo GUI to replace a symbol #test within one method. How do you do that? I could not find a tool to use that for. For example: overview send: #test sendSecond: #test I would ...
1 vote
1 answer
149 views
How to correctly handle parsing errors with PetitParser or PetitParser2 in Pharo
I know there has been an old question How can a PetitParser parse rule signal an error?. Lukas Renggli has written it is: in general this is not good style (mixes syntactic and semantic analysis) ...
1 vote
1 answer
81 views
How can I remove an item on the main Pharo menu left over by a Roassal installation?
After an attempt to install Roassal a persistent menu item has been to the top level of the image's menu. The menu label is Load full version and after searching the image it is coming from a ...
2 votes
2 answers
119 views
How can I set custom StartupPreferences for a particular Pharo image?
I want a particular image to be run with specific settings at start tiime as noted here StartupPreferencesLoader default executeAtomicItems: { (StartupAction name: 'Start Literate Server' ...
2 votes
1 answer
86 views
Does Pharo have a messages or warnings log during a session?
When I started a Pharo image I got a warning about a .sources file being missing because I had renamed the .image, .sources and .changes file to one of my preferences. It showed up for a while then ...
2 votes
4 answers
105 views
Why does this code result in a "Cannot store into ->" error message?
Executing this code in Pharo results in a Cannot store into -> error message? [ :x | x := x + 33. x + 2] value: 5 Is this a logical consequence of Smalltalk's syntax, or is it a consequence of ...
1 vote
1 answer
120 views
How to use cascade option in ProfStef lesson 17?
In lesson 17 of ProfStef I am stuck on the command which says. "Try to go to the next lesson with a cascade of two 'next' messages:" What is the correct answer for these?
0 votes
1 answer
167 views
Problem Working with Arrays in Pharo 11.0
I am working on a class named Boggle which contains two class-side methods below: search: board for: words | result visited trie | result := Dictionary new. trie := CTTrie new. words do: [:...
1 vote
0 answers
57 views
On Pharo 11, is it possible to programatically change the traits of a defined class?
On an already created class MyClass that subclasses Object, it is possible to execute MyClass subclass: SomeNewClass to change it's superclass. It is possible to make something similar to traits so ...
0 votes
1 answer
149 views
how to open a file in windows, from Pharo environment?
I'm building something in Smalltalk pharo and I need to open files in the underlying OS (Windows 10). Specifically, I need to open certain types of files with the registered Windows app (.pdf, .wav, ...
1 vote
3 answers
351 views
Pharo or Squeak: How to get a list of directories and files in a recursive way
First of all: I'm not a programmer, just an amateur with some lights about Squeak/Pharo. So Please be gentle with the technical explanations... I have a personal library with thousands of books, ...