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

Can't get P3 working after migration from Pharo 8 to 9 #27

Closed
riVDM opened this issue Jun 27, 2020 · 2 comments
Closed

Can't get P3 working after migration from Pharo 8 to 9 #27

riVDM opened this issue Jun 27, 2020 · 2 comments

Comments

@riVDM
Copy link

riVDM commented Jun 27, 2020

Hi,
I had to migrate from Pharo 8 to 9 and re-installed P3 with the following scripts (the same i had used to install P3 in Pharo 8)

Metacello new
baseline: 'P3';
repository: 'github://svenvc/P3';
load.

and

Metacello new
baseline: 'P3';
repository: 'github://svenvc/P3';
load: 'glorp'.

I also re-installed DBXTalk/Glorp/main
and "do-it" : PharoDatabaseAccessor DefaultDriver: P3DatabaseDriver.

Before that i installed Spec2.

Then i tried to run this script
(P3Client new url: 'psql://Richard:lulosa.2MA@localhost:5432/Glazux') in: [ :client |
[ client query: 'SELECT * FROM ingredients' ] ensure: [ client close ] ].

but got this error:
P3-Pbm

I probably forgot to do something but i don't remember what. Do i need to install a MetaRepoForPharo? But which version?
Thanks for help
Richard
(btw: the same script runs ok in Pharo 8)

@svenvc
Copy link
Owner

svenvc commented Jun 27, 2020

Yes I know.

If you implement #digitAt: on Integer as an alias to #byteAt: it will probably work.

A library like P3 (or any of my libraries, like Zinc) cannot be compatible with Pharo 7, 8 and 9 at the same time because of this change.

I requested a backport of a small change to Pharo 7 to get over this, but it did not yet get accepted/released.

@riVDM
Copy link
Author

riVDM commented Jun 28, 2020

I did what you suggest (i hope i did it correctly, at the right place) and it works now! Thank you!
Richard
image

@riVDM riVDM closed this as completed Jun 28, 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

2 participants