Re: [squeak-smalltalk/squeak-object-memory] DoItFirst `--filein` cannot compile new methods because SourceFiles are not yet opened (Issue #165)

Christoph Thiede via Squeak-dev <[email protected]> Sun, 02 Aug 2026 13:17:53 -0700
Newsgroups gmane.comp.lang.smalltalk.squeak.general
Message-ID <squeak-smalltalk/squeak-object-memory/issues/165/[email protected]>
--===============5037650445266188320==
Content-Type: multipart/alternative;
 boundary="--==_mimepart_6a6fa5f1241cb_d31160869935b";
 charset=UTF-8
Content-Transfer-Encoding: 7bit


----==_mimepart_6a6fa5f1241cb_d31160869935b
Content-Type: text/plain;
 charset=UTF-8
Content-Transfer-Encoding: 7bit

LinqLover left a comment (squeak-smalltalk/squeak-object-memory#165)

Another consequence of not starting up `FileDirectory` before `DoItFirst` is that e.g. the following fails:

```bash
christoph@tuxedo-christoph:~/Downloads/Squeak6.1rc2-23939-64bit$ squeak  Squeak6.1rc2-23939-64bit.image --doit "FileDirectory startUp. (FileStream readOnlyFileNamed: '~/squeak/SpaceTallyTest.st') fileIn"
MultiByteFileStream: '/home/christoph/squeak/SpaceTallyTest.st'
```

Workaround:
```bash
christoph@tuxedo-christoph:~/Downloads/Squeak6.1rc2-23939-64bit$ squeak  Squeak6.1rc2-23939-64bit.image --doit "FileDirectory startUp" --doit "(FileStream readOnlyFileNamed: '~/squeak/SpaceTallyTest.st') fileIn"
FileDirectory
MultiByteFileStream: '/home/christoph/squeak/SpaceTallyTest.st'
```

If we agree this is a bug, maybe we should at least document the known workaround in the release notes? @marceltaeumel? 

-- 
Reply to this email directly or view it on GitHub:
https://github.com/squeak-smalltalk/squeak-object-memory/issues/165#issuecomment-5160156666
You are receiving this because you are subscribed to this thread.

Message ID: <squeak-smalltalk/squeak-object-memory/issues/165/[email protected]>
----==_mimepart_6a6fa5f1241cb_d31160869935b
Content-Type: text/html;
 charset=UTF-8
Content-Transfer-Encoding: quoted-printable

<div style=3D"display: flex; flex-wrap: wrap; white-space: pre-wrap; alig=
n-items: center; "><img height=3D"20" width=3D"20" style=3D"border-radius=
:50%; margin-right: 4px;" decoding=3D"async" src=3D"https://avatars.githu=
busercontent.com/u/38782922?s=3D20&amp;v=3D4" /><strong>LinqLover</strong=
> left a comment <a href=3D"https://github.com/squeak-smalltalk/squeak-ob=
ject-memory/issues/165#issuecomment-5160156666">(squeak-smalltalk/squeak-=
object-memory#165)</a></div>
<p dir=3D"auto">Another consequence of not starting up <code class=3D"not=
ranslate">FileDirectory</code> before <code class=3D"notranslate">DoItFir=
st</code> is that e.g. the following fails:</p>
<div class=3D"highlight highlight-source-shell" dir=3D"auto"><pre class=3D=
"notranslate">christoph@tuxedo-christoph:<span class=3D"pl-k">~</span>/Do=
wnloads/Squeak6.1rc2-23939-64bit$ squeak  Squeak6.1rc2-23939-64bit.image =
--doit <span class=3D"pl-s"><span class=3D"pl-pds">"</span>FileDirectory =
startUp. (FileStream readOnlyFileNamed: '~/squeak/SpaceTallyTest.st') fil=
eIn<span class=3D"pl-pds">"</span></span>
MultiByteFileStream: <span class=3D"pl-s"><span class=3D"pl-pds">'</span>=
/home/christoph/squeak/SpaceTallyTest.st<span class=3D"pl-pds">'</span></=
span></pre></div>
<p dir=3D"auto">Workaround:</p>
<div class=3D"highlight highlight-source-shell" dir=3D"auto"><pre class=3D=
"notranslate">christoph@tuxedo-christoph:<span class=3D"pl-k">~</span>/Do=
wnloads/Squeak6.1rc2-23939-64bit$ squeak  Squeak6.1rc2-23939-64bit.image =
--doit <span class=3D"pl-s"><span class=3D"pl-pds">"</span>FileDirectory =
startUp<span class=3D"pl-pds">"</span></span> --doit <span class=3D"pl-s"=
><span class=3D"pl-pds">"</span>(FileStream readOnlyFileNamed: '~/squeak/=
SpaceTallyTest.st') fileIn<span class=3D"pl-pds">"</span></span>
FileDirectory
MultiByteFileStream: <span class=3D"pl-s"><span class=3D"pl-pds">'</span>=
/home/christoph/squeak/SpaceTallyTest.st<span class=3D"pl-pds">'</span></=
span></pre></div>
<p dir=3D"auto">If we agree this is a bug, maybe we should at least docum=
ent the known workaround in the release notes? <a class=3D"user-mention n=
otranslate" data-hovercard-type=3D"user" data-hovercard-url=3D"/users/mar=
celtaeumel/hovercard" data-octo-click=3D"hovercard-link-click" data-octo-=
dimensions=3D"link_type:self" href=3D"https://github.com/marceltaeumel">@=
marceltaeumel</a>?</p>

<p style=3D"font-size:small;-webkit-text-size-adjust:none;color:#666;">&m=
dash;<br />Reply to this email directly, <a href=3D"https://github.com/sq=
ueak-smalltalk/squeak-object-memory/issues/165?email_source=3Dnotificatio=
ns&amp;email_token=3DBFYAK6PTECENJMZFJ3A34BT5H6OXDA5CNFSNUABFM5UWIORPF5TW=
S5BNNB2WEL2JONZXKZKDN5WW2ZLOOQXTKMJWGAYTKNRWGY3KM4TFMFZW63VKON2WE43DOJUWE=
ZLEUVSXMZLOOSWGM33PORSXEX3DNRUWG2Y#issuecomment-5160156666">view it on Gi=
tHub</a>, or <a href=3D"https://github.com/notifications/unsubscribe-auth=
/BFYAK6MYBKU4SWMCVITMYP35H6OXDAVCNFSNUABFKJSXA33TNF2G64TZHM2DKNBYHA3TANRU=
HNEXG43VMU5TKMBUGQZDKNBQHAYKC5QC">unsubscribe</a>.<br />Triage notificati=
ons, keep track of coding agent tasks and review pull requests on the go =
with GitHub Mobile for <a href=3D"https://github.com/notifications/mobile=
/ios/BFYAK6K62YIPCB53F2AYE235H6OXDA5CNFSNUABFM5UWIORPF5TWS5BNNB2WEL2JONZX=
KZKDN5WW2ZLOOQXTKMJWGAYTKNRWGY3KM4TFMFZW63VKON2WE43DOJUWEZLEUVSXMZLOOSVGM=
33PORSXEX3JN5ZQ">iOS</a> and <a href=3D"https://github.com/notifications/=
mobile/android/BFYAK6OZJVG3DBFBX4PN4AT5H6OXDA5CNFSNUABFM5UWIORPF5TWS5BNNB=
2WEL2JONZXKZKDN5WW2ZLOOQXTKMJWGAYTKNRWGY3KM4TFMFZW63VKON2WE43DOJUWEZLEUVS=
XMZLOOSXGM33PORSXEX3BNZSHE33JMQ">Android</a>. Download it today!
<br />You are receiving this because you are subscribed to this thread.<i=
mg src=3D"https://github.com/notifications/beacon/BFYAK6JLJM4V7YQC5LILRK3=
5H6OXDBFCNFSM6AAAAAC4XEXPZGWGG33NNVSW45C7OR4XAZNMJFZXG5LFINXW23LFNZ2KUY3P=
NVWWK3TUL5UWJTYAAAAACM4RXX5KM4TFMFZW63VKON2WE43DOJUWEZLE.gif" height=3D"1=
" width=3D"1" alt=3D"" /><span style=3D"color: transparent; font-size: 0;=
 display: none; visibility: hidden; overflow: hidden; opacity: 0; width: =
0; height: 0; max-width: 0; max-height: 0; mso-hide: all">Message ID: <sp=
an>&lt;squeak-smalltalk/squeak-object-memory/issues/165/5160156666</span>=
<span>@</span><span>github</span><span>.</span><span>com&gt;</span></span=
></p>

<script type=3D"application/ld+json">[
{
"@context": "http://schema.org",
"@type": "EmailMessage",
"potentialAction": {
"@type": "ViewAction",
"target": "https://github.com/squeak-smalltalk/squeak-object-memory/issue=
s/165?email_source=3Dnotifications\u0026email_token=3DBFYAK6NPL3WNXBS7C6O=
SBHT5H6OXDA5CNFSNUABFM5UWIORPF5TWS5BNNB2WEL2JONZXKZKDN5WW2ZLOOQXTKMJWGAYT=
KNRWGY3KM4TFMFZW63VKON2WE43DOJUWEZLEUVSXMZLOOSVWO3LBNFWF6Y3MNFRWW#issueco=
mment-5160156666",
"url": "https://github.com/squeak-smalltalk/squeak-object-memory/issues/1=
65?email_source=3Dnotifications\u0026email_token=3DBFYAK6NPL3WNXBS7C6OSBH=
T5H6OXDA5CNFSNUABFM5UWIORPF5TWS5BNNB2WEL2JONZXKZKDN5WW2ZLOOQXTKMJWGAYTKNR=
WGY3KM4TFMFZW63VKON2WE43DOJUWEZLEUVSXMZLOOSVWO3LBNFWF6Y3MNFRWW#issuecomme=
nt-5160156666",
"name": "View Issue"
},
"description": "View this Issue on GitHub",
"publisher": {
"@type": "Organization",
"name": "GitHub",
"url": "https://github.com"
}
}
]</script>

----==_mimepart_6a6fa5f1241cb_d31160869935b--

--===============5037650445266188320==
Content-Type: text/plain; charset="us-ascii"
MIME-Version: 1.0
Content-Transfer-Encoding: 7bit
Content-Disposition: inline

Squeak-dev mailing list -- [email protected]
To unsubscribe send an email to [email protected]
--===============5037650445266188320==--