Re: [Pharo-users] Glorp + P3 + SQLite
Hi Todd, we want to do some more testing before merging it into the upstream repository. -- Pavel čt 21. 11. 2019 v 14:34 odesílatel Todd Blanchard via Pharo-users < pharo-users@lists.pharo.org> napsal: > Hi Pavel, > > I've just gotten around to figuring out BaslineOf and packages. I see > this work is in a branch on your own repository. > > Do you plan to do a pull request back to the original repository? I feel > like we have database code all over the place and no clear "official" > versions. > > Stll trying to figure out what is current and what is obsolete (Garage?) > > On Oct 19, 2019, at 5:18 AM, Pavel Krivanek > wrote: > > Btw. there exists an updated version of Glorp: > github://pavel-krivanek/glorp:8.3.1-23-baseline > But the compatibility of it with SQLite was never tested > > -- Pavel > > so 19. 10. 2019 v 10:27 odesílatel Todd Blanchard via Pharo-users < > pharo-users@lists.pharo.org> napsal: > >> I loaded GLORP+P3 without issue. >> >> Trying to load SQLite3 - it also wants to load GLORP which complains of >> conflict. >> >> For P3 I used: >> >> Metacello new >>baseline: 'P3'; >>repository: 'github://svenvc/P3'; >>load: 'glorp'. >> >> >> >> For SQLite: >> >> Metacello new >> repository: 'github://PierceNg/glorp-sqlite3:pharo7'; >> baseline: 'GlorpSQLite'; >> load. >> >> >> but this fails with a conflict. I suspect the conflict is it wants to >> load in glorp again. >> >> I would also like to have mysql driver at some point. >> >> Any tips for getting these to play nice together would be great. >> > >
Re: [Pharo-users] Glorp + P3 + SQLite
--- Begin Message --- Hi Pavel, I've just gotten around to figuring out BaslineOf and packages. I see this work is in a branch on your own repository. Do you plan to do a pull request back to the original repository? I feel like we have database code all over the place and no clear "official" versions. Stll trying to figure out what is current and what is obsolete (Garage?) > On Oct 19, 2019, at 5:18 AM, Pavel Krivanek wrote: > > Btw. there exists an updated version of Glorp: > github://pavel-krivanek/glorp:8.3.1-23-baseline > But the compatibility of it with SQLite was never tested > > -- Pavel > > so 19. 10. 2019 v 10:27 odesílatel Todd Blanchard via Pharo-users > mailto:pharo-users@lists.pharo.org>> napsal: > I loaded GLORP+P3 without issue. > > Trying to load SQLite3 - it also wants to load GLORP which complains of > conflict. > > For P3 I used: > > Metacello new >baseline: 'P3'; >repository: 'github://svenvc/P3 <>'; >load: 'glorp'. > > > For SQLite: > > Metacello new > repository: 'github://PierceNg/glorp-sqlite3:pharo7 <>'; > baseline: 'GlorpSQLite'; > load. > > but this fails with a conflict. I suspect the conflict is it wants to load > in glorp again. > > I would also like to have mysql driver at some point. > > Any tips for getting these to play nice together would be great. --- End Message ---
Re: [Pharo-users] Glorp + P3 + SQLite
The error you hit was because the package loader was smart enough to notice that there was a version conflict between the version of a subproject already in the image and what the new load instructions were telling it to load. The title of the debugger you pasted in alludes to that fact. So what you need to do is decide what to do when there is a conflict as its tricky for a package manager to figure out what it should do in every case. Metacello includes an instruction #onConflict: which accepts a block. You can write code in the block to decide wether to use the incoming version or the extant version in the image or whatever. e.g. Metacello new repository: 'github://PierceNg/glorp-sqlite3:pharo7'; baseline: 'GlorpSQLite'; onConflict:[:ex | ex allow]; load. would likely get everything to load without issue. Then you'd have to run the tests to see if the version conflict caused problems. Pharo Smalltalk Users mailing list wrote > Nice! Thanks. > > So here is maybe a stupid question (and I'm gonna read the wiki stuff on > packages next) but it seems to me that the package loader should notice > that glorp is already loaded and not load it if glorp is specified as a > prerequisite but instead it fails. > > Is the package loader not smart enough to understand what is already > loaded and skip load attempts? > > Puzzling. > >> On Oct 19, 2019, at 11:23 PM, Pierce Ng > pierce@ > wrote: >> >> On Sat, Oct 19, 2019 at 01:26:10AM -0700, Todd Blanchard via Pharo-users >> wrote: >>> I loaded GLORP+P3 without issue. >>> Trying to load SQLite3 - it also wants to load GLORP which complains of >>> conflict. >> >> Todd, to load SQLite3 only: >> >> Metacello new >>repository: 'github://astares/Pharo-UDBC/src'; >>baseline: 'UDBC'; >>load: 'SQLite' >> >> Pierce -- Sent from: http://forum.world.st/Pharo-Smalltalk-Users-f1310670.html
Re: [Pharo-users] Glorp + P3 + SQLite
--- Begin Message --- Nice! Thanks. So here is maybe a stupid question (and I'm gonna read the wiki stuff on packages next) but it seems to me that the package loader should notice that glorp is already loaded and not load it if glorp is specified as a prerequisite but instead it fails. Is the package loader not smart enough to understand what is already loaded and skip load attempts? Puzzling. > On Oct 19, 2019, at 11:23 PM, Pierce Ng wrote: > > On Sat, Oct 19, 2019 at 01:26:10AM -0700, Todd Blanchard via Pharo-users > wrote: >> I loaded GLORP+P3 without issue. >> Trying to load SQLite3 - it also wants to load GLORP which complains of >> conflict. > > Todd, to load SQLite3 only: > > Metacello new >repository: 'github://astares/Pharo-UDBC/src'; >baseline: 'UDBC'; >load: 'SQLite' > > Pierce --- End Message ---
Re: [Pharo-users] Glorp + P3 + SQLite
Hi Todd, El sáb., 19 oct. 2019 a las 13:11, Todd Blanchard via Pharo-users (< pharo-users@lists.pharo.org>) escribió: > I should probably mention that I do not really have a great handle on how > package configurations work these days. > > Coming back to Smalltalk after a long time away. > > Welcome back! > Pointer to an explanation of how package configurations work would be > great. > > Have a look at: https://github.com/pharo-open-documentation/pharo-wiki/blob/master/General/Baselines.md Cheers, Hernán
Re: [Pharo-users] Glorp + P3 + SQLite
On Sat, Oct 19, 2019 at 01:26:10AM -0700, Todd Blanchard via Pharo-users wrote: > I loaded GLORP+P3 without issue. > Trying to load SQLite3 - it also wants to load GLORP which complains of > conflict. Todd, to load SQLite3 only: Metacello new repository: 'github://astares/Pharo-UDBC/src'; baseline: 'UDBC'; load: 'SQLite' Pierce
Re: [Pharo-users] Glorp + P3 + SQLite
--- Begin Message --- I should probably mention that I do not really have a great handle on how package configurations work these days. Coming back to Smalltalk after a long time away. Pointer to an explanation of how package configurations work would be great. --- End Message ---
Re: [Pharo-users] Glorp + P3 + SQLite
Btw. there exists an updated version of Glorp: github://pavel-krivanek/glorp:8.3.1-23-baseline But the compatibility of it with SQLite was never tested -- Pavel so 19. 10. 2019 v 10:27 odesílatel Todd Blanchard via Pharo-users < pharo-users@lists.pharo.org> napsal: > I loaded GLORP+P3 without issue. > > Trying to load SQLite3 - it also wants to load GLORP which complains of > conflict. > > For P3 I used: > > Metacello new >baseline: 'P3'; >repository: 'github://svenvc/P3'; >load: 'glorp'. > > > > For SQLite: > > Metacello new > repository: 'github://PierceNg/glorp-sqlite3:pharo7'; > baseline: 'GlorpSQLite'; > load. > > > but this fails with a conflict. I suspect the conflict is it wants to > load in glorp again. > > I would also like to have mysql driver at some point. > > Any tips for getting these to play nice together would be great. >
Re: [Pharo-users] Glorp + P3 + SQLite
Hi Todd, Both specify their dependency on Glorp almost the same way: P3: spec baseline: 'Glorp' with: [ spec repository: 'github://pharo-rdbms/glorp:master/']. Sqlite3: spec baseline: 'Glorp' with: [ spec repository: 'github://pharo-rdbms/glorp' ]. What exactly is the conflict ? Sven > On 19 Oct 2019, at 10:26, Todd Blanchard via Pharo-users > wrote: > > > From: Todd Blanchard > Subject: Glorp + P3 + SQLite > Date: 19 October 2019 at 10:26:10 GMT+2 > To: Any question about pharo is welcome > > > I loaded GLORP+P3 without issue. > > Trying to load SQLite3 - it also wants to load GLORP which complains of > conflict. > > For P3 I used: > > Metacello new > > > baseline: 'P3' > ; > > repository: 'github://svenvc/P3' > ; > > load: 'glorp'. > > > For SQLite: > > Metacello new > > > repository: 'github://PierceNg/glorp-sqlite3:pharo7' > ; > > baseline: 'GlorpSQLite' > ; > load. > > > but this fails with a conflict. I suspect the conflict is it wants to load > in glorp again. > > I would also like to have mysql driver at some point. > > Any tips for getting these to play nice together would be great. > >