pharo-nosql / mongotalk

A Pharo driver for MongoDB
MIT License
19 stars 13 forks source link

Can't open Repo because Gratuitous Incompatibilities references non Existent `UTF8TextConverter` #106

Closed johnhwoods closed 1 year ago

johnhwoods commented 2 years ago

Gratuitous Incompatibilities encodeString: refers to the class UTF8TextConverter which is deprecated in Pharo9 and missing in 10.

To replicate: Start a fresh P10. Load Voyage / Mongo using this:

Transcript open; show:'Loading Voyage & Mongo'; cr.
Metacello new
    repository: 'github://pharo-nosql/voyage:pharo10-ready/mc';
    baseline: #Voyage;
    onConflictUseLoaded;
    load.
Transcript show:'...all done'; cr.

(You'll have to proceed through an idiotic Crypto dependency) Then try to open a DB with:

    | repo |
    repo := VOMongoRepository
        host: VOMongoRepository defaultHost
        database: 'test'.
    VORepository setRepository: repo.

Result:


UndefinedObject>>doesNotUnderstand: #default
GratuitousIncompatibilities class>>utf8Converter
GratuitousIncompatibilities class>>encodeString:
LittleEndianStream>>encode:
CommandOperation(MongoOperation)>>setCollection:id:stream:```