Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Filing in packages results in misleading error messages #191

Closed
ghost opened this issue Jul 31, 2021 · 3 comments
Closed

Filing in packages results in misleading error messages #191

ghost opened this issue Jul 31, 2021 · 3 comments

Comments

@ghost
Copy link

ghost commented Jul 31, 2021

The title describes the problem.
This is a duplicate of https://todo.sr.ht/~cy-de-fect/HaverOnCuis/10
and resulted from this E-Mail report:
https://todo.sr.ht/~cy-de-fect/HaverOnCuis/10

Hi Nicola,

I am doing something similar to transform a Cuis-image into a Haver-image, but I am using Feature:

https://hg.sr.ht/~cy-de-fect/HaverOnCuis/browse/haver/Haverize.pck.st?rev=tip#L27

I don't get any unwanted confirmation dialogs.

Are you referring to the message displayed in the attached screen-shot. The message is rather silly. Please use Feature>>#require: with a FileSystemEntry instance as an argument.

(Nevertheless we should fix that silly message)

Best Regards and HTH,

Gerald

On 7/30/21 12:18 PM, Nicola Mingotti via Cuis-dev wrote:

Hi guys,

A few questions for you ;)

1] If I install OSProcesses from the File browser no problem, but if I install it from the '.st' script, like below, I get an annoying message asking me to press ok. Why that? The message I send via GUI or script it the same AFAICanSay.

" -] OSProcesses " vmDir _ DirectoryEntry smalltalkImageDirectory . pathStr1 _ vmDir parent pathName, 'OSProcesses/OSProcesses.pck.st'. file1 _  FileSystemEntry withPathName: pathStr1. CodePackageFile installPackage: file1.

2] Why dos package OSProcesses does not have the standard name Cuis-Smalltalk-OSProcesses ?

3] Since I am automatizing the system via script I would prefer that when I select World -> Quit the system stop asking me if I want to save the image, by default I don't want. Is there a variable the say that ? Or do I need to make a change, file it out and file it in in the '.st' file ?

bye Nicola
@nmingotti
Copy link
Contributor

This messages are annoying because they require confirmation. In a scenario where one
wants to load packages at image boot via script, the script gets stuck awaiting user click.
Attach picture of the message.

image

@nmingotti
Copy link
Contributor

nmingotti commented Jul 31, 2021

nono, all bad, we slipped on a banana. I mistook OSProcess with OSProcesses. Running
either

Feature require: 'OSProcess'.

or

vmDir _ DirectoryEntry smalltalkImageDirectory .
pathStr1 _ vmDir parent pathName, '/OSProcess/OSProcess.pck.st'. 
file1 _  FileSystemEntry withPathName: pathStr1. 
CodePackageFile installPackage: file1. 

works flawlessly.

On the other side this rises another point. If the message was more informative we would not have fallen so badly ;)

IMO, this can be closed.

@ghost
Copy link
Author

ghost commented Aug 2, 2021

Yep, I agree. Thanks Juan!

@ghost ghost closed this as completed Aug 2, 2021
This issue was closed.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant