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

Undeclared classes when Squot loads Tonel in Squeak 5.2 #276

Closed
tcj opened this issue Jul 23, 2020 · 5 comments
Closed

Undeclared classes when Squot loads Tonel in Squeak 5.2 #276

tcj opened this issue Jul 23, 2020 · 5 comments

Comments

@tcj
Copy link

tcj commented Jul 23, 2020

Loading in Squeak 5.2 results in some classes being referenced which do not (and, I think, will not) exist:

TonelFileSystemUtils class>>default (DiskStore is Undeclared)
TonelFileSystemUtils class>>directoryFromPath: (AbsolutePath is Undeclared)
TonelFileSystemUtils class>>pathNameDelimiter (DiskStore is Undeclared)

TonelFileSystemUtils class seems to be used by SquotTonel-Core and belongs to the package MonticelloTonel-FileSystem.

This TonelFileSystemUtils class does seem to be used by various methods in TonelReader, TonelWriter, and TonelRepository.

I assume this bug is only going to happen when loading Tonel in Squeak (or other non-Pharo platforms). But I am not sure there is another Tonel-specific repo to file the bug against...

Sorry if this is not the proper style or place to report this.

@j4yk
Copy link
Collaborator

j4yk commented Jul 23, 2020

Thank you for the report. These undeclared references are remnants from moving https://github.com/squeak-smalltalk/squeak-tonel/tree/squeak from Pharo to Squeak. The FileSystem classes have different names in Pharo than in Squeak. It seems though that the methods you named are never actually used since I did not run into any actual "UndefinedObject does not understand" errors. Did you?

The only senders I found are in the MCFileTree bunch of classes. So my guess is that they were copied from the FileSystemUtils for filetree, but then not all methods actually used for Tonel reading and writing.

I would transfer the issue to https://github.com/squeak-smalltalk/squeak-tonel, but somehow do not get that option. @fniephaus Are you able to transfer the issue?

@fniephaus
Copy link
Member

I'm afraid I can't transfer the issue because squeak-tonel belongs to a different GitHub organization (hpi-swa vs. squeak-smalltalk).

@j4yk
Copy link
Collaborator

j4yk commented Jul 23, 2020

@tcj Can you please copy your text and open a new issue here: https://github.com/squeak-smalltalk/squeak-tonel/issues

@tom95
Copy link
Collaborator

tom95 commented Jul 23, 2020

I went ahead and created a PR on tonel and referenced this issue there: squeak-smalltalk/squeak-tonel#3

@j4yk
Copy link
Collaborator

j4yk commented Jul 23, 2020

Merged the PR. I suppose chasing down the unused methods in those platform adapter classes is not worth the effort for now, so I will not open a followup issue for that.

@j4yk j4yk closed this as completed Jul 23, 2020
@j4yk j4yk mentioned this issue Aug 10, 2020
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

4 participants