[sword-devel] Cross references with Sword 1.9.0RC3
I switched to sword 1.9 rc3 in BibleTime. I am on Fedora 33. Now I have lost cross references, footnotes, Jesus words, etc. Did any api for references change? Any other thoughts? Gary Holmlund ___ sword-devel mailing list: sword-devel@crosswire.org http://crosswire.org/mailman/listinfo/sword-devel Instructions to unsubscribe/change your settings at above page
Re: [sword-devel] Cross references with Sword 1.9.0RC3
Hi Gary. No, nothing should have changed in that respect. Can anyone else confirm they are having trouble with these in our last RC or svn HEAD? On October 16, 2020 2:44:32 AM GMT+02:00, Gary Holmlund wrote: >I switched to sword 1.9 rc3 in BibleTime. I am on Fedora 33. Now I have > >lost cross references, footnotes, Jesus words, etc. > >Did any api for references change? Any other thoughts? > >Gary Holmlund > > >___ >sword-devel mailing list: sword-devel@crosswire.org >http://crosswire.org/mailman/listinfo/sword-devel >Instructions to unsubscribe/change your settings at above page -- Sent from my Android device with K-9 Mail. Please excuse my brevity. -- Sent from my Android device with K-9 Mail. Please excuse my brevity.___ sword-devel mailing list: sword-devel@crosswire.org http://crosswire.org/mailman/listinfo/sword-devel Instructions to unsubscribe/change your settings at above page
Re: [sword-devel] Cross references with Sword 1.9.0RC3
On 10/16/20 6:49 AM, Troy A. Griffitts wrote: > Can anyone else confirm they are having trouble with these in our last > RC or svn HEAD? svn up to -r3812, rebuilt sword and xiphos. Seems fine. Notes, xrefs, red words all functional. ___ sword-devel mailing list: sword-devel@crosswire.org http://crosswire.org/mailman/listinfo/sword-devel Instructions to unsubscribe/change your settings at above page
Re: [sword-devel] Cross references with Sword 1.9.0RC3
I have found that sword is not calling the BibleTime OsisToHtml filter. It is called with 1.8.1 and not with 1.9RC3. I am still working on why this does not happen. Gary On 10/16/20 3:49 AM, Troy A. Griffitts wrote: Hi Gary. No, nothing should have changed in that respect. Can anyone else confirm they are having trouble with these in our last RC or svn HEAD? On October 16, 2020 2:44:32 AM GMT+02:00, Gary Holmlund wrote: >I switched to sword 1.9 rc3 in BibleTime. I am on Fedora 33. Now I have > >lost cross references, footnotes, Jesus words, etc. > >Did any api for references change? Any other thoughts? > >Gary Holmlund > > >___ >sword-devel mailing list: sword-devel@crosswire.org >http://crosswire.org/mailman/listinfo/sword-devel >Instructions to unsubscribe/change your settings at above page -- Sent from my Android device with K-9 Mail. Please excuse my brevity. -- Sent from my Android device with K-9 Mail. Please excuse my brevity. ___ sword-devel mailing list: sword-devel@crosswire.org http://crosswire.org/mailman/listinfo/sword-devel Instructions to unsubscribe/change your settings at above page
Re: [sword-devel] Cross references with Sword 1.9.0RC3
I found the issue. BibleTime is using a sword function, AddRenderFilters, which is deprecated. It was renamed to addRenderFilters (A -> a). Gary On 10/17/20 1:36 PM, Gary Holmlund wrote: I have found that sword is not calling the BibleTime OsisToHtml filter. It is called with 1.8.1 and not with 1.9RC3. I am still working on why this does not happen. Gary On 10/16/20 3:49 AM, Troy A. Griffitts wrote: Hi Gary. No, nothing should have changed in that respect. Can anyone else confirm they are having trouble with these in our last RC or svn HEAD? On October 16, 2020 2:44:32 AM GMT+02:00, Gary Holmlund wrote: >I switched to sword 1.9 rc3 in BibleTime. I am on Fedora 33. Now I have > >lost cross references, footnotes, Jesus words, etc. > >Did any api for references change? Any other thoughts? > >Gary Holmlund > > >___ >sword-devel mailing list: sword-devel@crosswire.org >http://crosswire.org/mailman/listinfo/sword-devel >Instructions to unsubscribe/change your settings at above page -- Sent from my Android device with K-9 Mail. Please excuse my brevity. -- Sent from my Android device with K-9 Mail. Please excuse my brevity. ___ sword-devel mailing list: sword-devel@crosswire.org http://crosswire.org/mailman/listinfo/sword-devel Instructions to unsubscribe/change your settings at above page
Re: [sword-devel] Cross references with Sword 1.9.0RC3
Dear Gary, So glad you figured out the problem. I am sorry I wasn't much help. Please let me know if you find any other issues. Happy Sunday! Troy On October 18, 2020 12:50:20 AM GMT+02:00, Gary Holmlund wrote: >I found the issue. BibleTime is using a sword function, >AddRenderFilters, which is deprecated. It was renamed to >addRenderFilters (A -> a). > >Gary > >On 10/17/20 1:36 PM, Gary Holmlund wrote: >> I have found that sword is not calling the BibleTime OsisToHtml >> filter. It is called with 1.8.1 and not with 1.9RC3. I am still >> working on why this does not happen. >> >> Gary >> >> >> On 10/16/20 3:49 AM, Troy A. Griffitts wrote: >>> Hi Gary. No, nothing should have changed in that respect. Can anyone > >>> else confirm they are having trouble with these in our last RC or >svn >>> HEAD? >>> >>> On October 16, 2020 2:44:32 AM GMT+02:00, Gary Holmlund >>> wrote: >>> >I switched to sword 1.9 rc3 in BibleTime. I am on Fedora 33. Now I >have >>> > >>> >lost cross references, footnotes, Jesus words, etc. >>> > >>> >Did any api for references change? Any other thoughts? >>> > >>> >Gary Holmlund >>> > >>> > >>> >___ >>> >sword-devel mailing list: sword-devel@crosswire.org >>> >http://crosswire.org/mailman/listinfo/sword-devel >>> >Instructions to unsubscribe/change your settings at above page >>> >>> -- >>> Sent from my Android device with K-9 Mail. Please excuse my brevity. >>> -- >>> Sent from my Android device with K-9 Mail. Please excuse my brevity. > >___ >sword-devel mailing list: sword-devel@crosswire.org >http://crosswire.org/mailman/listinfo/sword-devel >Instructions to unsubscribe/change your settings at above page -- Sent from my Android device with K-9 Mail. Please excuse my brevity.___ sword-devel mailing list: sword-devel@crosswire.org http://crosswire.org/mailman/listinfo/sword-devel Instructions to unsubscribe/change your settings at above page
Re: [sword-devel] Cross references with Sword 1.9.0RC3
Hi! The respective change in Sword is SVN 3753: https://github.com/bibletime/crosswire-sword-mirror/commit/b684b6f099 It seems that this time we were not lucky to have a SWDEPRECATED alias for the old function name, silently breaking API, and hence BibleTime. In theory this silent error could also have been detected in BibleTime if we would have used the override keyword. In practice, finding all the functions which need the override keyword is for most projects only easy to do if the -Wsuggest-override flag (and perhaps even -Werror=suggest-override for debug builds) is used. Unfortunately for BibleTime (and other projects using Sword), just turning this flag on yields very many warnings from Sword headers themselves. The task of figuring out how (and when in the build process) to filter BibleTime-specific warnings from all warnings is likely not a trivial one. Best regards, J On 18.10.20 01:50, Gary Holmlund wrote: I found the issue. BibleTime is using a sword function, AddRenderFilters, which is deprecated. It was renamed to addRenderFilters (A -> a). Gary On 10/17/20 1:36 PM, Gary Holmlund wrote: I have found that sword is not calling the BibleTime OsisToHtml filter. It is called with 1.8.1 and not with 1.9RC3. I am still working on why this does not happen. Gary On 10/16/20 3:49 AM, Troy A. Griffitts wrote: Hi Gary. No, nothing should have changed in that respect. Can anyone else confirm they are having trouble with these in our last RC or svn HEAD? On October 16, 2020 2:44:32 AM GMT+02:00, Gary Holmlund wrote: >I switched to sword 1.9 rc3 in BibleTime. I am on Fedora 33. Now I have > >lost cross references, footnotes, Jesus words, etc. > >Did any api for references change? Any other thoughts? > >Gary Holmlund > > >___ >sword-devel mailing list: sword-devel@crosswire.org >http://crosswire.org/mailman/listinfo/sword-devel >Instructions to unsubscribe/change your settings at above page -- Sent from my Android device with K-9 Mail. Please excuse my brevity. -- Sent from my Android device with K-9 Mail. Please excuse my brevity. ___ sword-devel mailing list: sword-devel@crosswire.org http://crosswire.org/mailman/listinfo/sword-devel Instructions to unsubscribe/change your settings at above page ___ sword-devel mailing list: sword-devel@crosswire.org http://crosswire.org/mailman/listinfo/sword-devel Instructions to unsubscribe/change your settings at above page
Re: [sword-devel] Cross references with Sword 1.9.0RC3
Hi Jaak, Glad we found the issue during the RC stage. Yes, finishing the camelCase refactoring work for the 2.0 release was a large part of this release. We should have probably added a SWDEPRECATED flag to the method and left it, but for virtuals, this gets a bit tricky. For us to continue to support the old name, we need to be sure we still call any overridden version using the old name and of course call the new name, as well. I think we tried this in a few other earlier releases and it was a bit hairy-- including hushing our own deprecation violation when we called the old deprecated method name. With 2.0 as the likely next major release and thus all current SWDEPRECATED methods finally going away, it seemed best to just get clients off the deprecated methods now. I am glad we found the issue for BibleTime before release and I wish I had a better way for us to detect renaming of virtual methods. Using the new C++ keyword override is a great way for you to do this in your client; maybe you could grep out the sword methods somehow when using the compiler option to suggest places for the override keyword. Maybe we could add a SWOVERRIDE define to allow us to use it in the engine and still support compilers without support. Thank you for the suggestion. I believe we are done renaming virtuals for a very long time; I have no more refactorings like this on my to-do list and it's great to finally have all of these complete with this release. With Bibletime, Xiphos, Ezra, and Bishop all reporting in with positive results now, I believe we can feel good about pushing 1.9.0 out the door. I will likely wait until next weekend just to be sure we have peace on problem reports for a few days. Thank you and everyone for your help and support with this and for working together as the Body of Christ. It's a privilege and great fun to serve together with you guys. Troy On October 18, 2020 3:40:10 PM GMT+02:00, Jaak Ristioja wrote: >Hi! > >The respective change in Sword is SVN 3753: > > https://github.com/bibletime/crosswire-sword-mirror/commit/b684b6f099 > >It seems that this time we were not lucky to have a SWDEPRECATED alias >for the old function name, silently breaking API, and hence BibleTime. > >In theory this silent error could also have been detected in BibleTime >if we would have used the override keyword. In practice, finding all >the >functions which need the override keyword is for most projects only >easy >to do if the -Wsuggest-override flag (and perhaps even >-Werror=suggest-override for debug builds) is used. Unfortunately for >BibleTime (and other projects using Sword), just turning this flag on >yields very many warnings from Sword headers themselves. The task of >figuring out how (and when in the build process) to filter >BibleTime-specific warnings from all warnings is likely not a trivial >one. > >Best regards, >J > >On 18.10.20 01:50, Gary Holmlund wrote: >> I found the issue. BibleTime is using a sword function, >> AddRenderFilters, which is deprecated. It was renamed to >> addRenderFilters (A -> a). >> >> Gary >> >> On 10/17/20 1:36 PM, Gary Holmlund wrote: >>> I have found that sword is not calling the BibleTime OsisToHtml >>> filter. It is called with 1.8.1 and not with 1.9RC3. I am still >>> working on why this does not happen. >>> >>> Gary >>> >>> >>> On 10/16/20 3:49 AM, Troy A. Griffitts wrote: Hi Gary. No, nothing should have changed in that respect. Can >anyone else confirm they are having trouble with these in our last RC or >svn HEAD? On October 16, 2020 2:44:32 AM GMT+02:00, Gary Holmlund wrote: >I switched to sword 1.9 rc3 in BibleTime. I am on Fedora 33. Now I >have > >lost cross references, footnotes, Jesus words, etc. > >Did any api for references change? Any other thoughts? > >Gary Holmlund > > >___ >sword-devel mailing list: sword-devel@crosswire.org >http://crosswire.org/mailman/listinfo/sword-devel >Instructions to unsubscribe/change your settings at above page -- Sent from my Android device with K-9 Mail. Please excuse my >brevity. -- Sent from my Android device with K-9 Mail. Please excuse my >brevity. >> ___ >> sword-devel mailing list: sword-devel@crosswire.org >> http://crosswire.org/mailman/listinfo/sword-devel >> Instructions to unsubscribe/change your settings at above page > >___ >sword-devel mailing list: sword-devel@crosswire.org >http://crosswire.org/mailman/listinfo/sword-devel >Instructions to unsubscribe/change your settings at above page -- Sent from my Android device with K-9 Mail. Please excuse my brevity.___ sword-devel mailing list: sword-devel@crosswire.org http://crosswire.org/mailman/listinfo/sword-devel Instruc
Re: [sword-devel] Cross references with Sword 1.9.0RC3
Gary, are you sure that the compiler did not error or at least warn you about this? Because strangely enough, in BibleTime, the overridden CSwordBackend::AddRenderFilter method already seems to have the override keyword present. I suspect what you saw might instead have been caused by something like compiling BibleTime against an older version of Sword, but running it against the newer version of the Sword dynamic library. This is a form of API breakage which might perhaps lead to results like this. If this is the case we might in the future get bug reports about this from downstream as well. J On 18.10.20 16:40, Jaak Ristioja wrote: Hi! The respective change in Sword is SVN 3753: https://github.com/bibletime/crosswire-sword-mirror/commit/b684b6f099 It seems that this time we were not lucky to have a SWDEPRECATED alias for the old function name, silently breaking API, and hence BibleTime. In theory this silent error could also have been detected in BibleTime if we would have used the override keyword. In practice, finding all the functions which need the override keyword is for most projects only easy to do if the -Wsuggest-override flag (and perhaps even -Werror=suggest-override for debug builds) is used. Unfortunately for BibleTime (and other projects using Sword), just turning this flag on yields very many warnings from Sword headers themselves. The task of figuring out how (and when in the build process) to filter BibleTime-specific warnings from all warnings is likely not a trivial one. Best regards, J On 18.10.20 01:50, Gary Holmlund wrote: I found the issue. BibleTime is using a sword function, AddRenderFilters, which is deprecated. It was renamed to addRenderFilters (A -> a). Gary On 10/17/20 1:36 PM, Gary Holmlund wrote: I have found that sword is not calling the BibleTime OsisToHtml filter. It is called with 1.8.1 and not with 1.9RC3. I am still working on why this does not happen. Gary On 10/16/20 3:49 AM, Troy A. Griffitts wrote: Hi Gary. No, nothing should have changed in that respect. Can anyone else confirm they are having trouble with these in our last RC or svn HEAD? On October 16, 2020 2:44:32 AM GMT+02:00, Gary Holmlund wrote: >I switched to sword 1.9 rc3 in BibleTime. I am on Fedora 33. Now I have > >lost cross references, footnotes, Jesus words, etc. > >Did any api for references change? Any other thoughts? > >Gary Holmlund > > >___ >sword-devel mailing list: sword-devel@crosswire.org >http://crosswire.org/mailman/listinfo/sword-devel >Instructions to unsubscribe/change your settings at above page -- Sent from my Android device with K-9 Mail. Please excuse my brevity. -- Sent from my Android device with K-9 Mail. Please excuse my brevity. ___ sword-devel mailing list: sword-devel@crosswire.org http://crosswire.org/mailman/listinfo/sword-devel Instructions to unsubscribe/change your settings at above page ___ sword-devel mailing list: sword-devel@crosswire.org http://crosswire.org/mailman/listinfo/sword-devel Instructions to unsubscribe/change your settings at above page ___ sword-devel mailing list: sword-devel@crosswire.org http://crosswire.org/mailman/listinfo/sword-devel Instructions to unsubscribe/change your settings at above page
Re: [sword-devel] Cross references with Sword 1.9.0RC3
Jaak, I did not get an error about this. The capitalized version of this function does exist in sword, so override would not help. It looks like it is implemented reasonably, but it did not work for me. I am quite confident that I was not mixing versions of sword. Gary On 10/18/20 1:07 PM, Jaak Ristioja wrote: Gary, are you sure that the compiler did not error or at least warn you about this? Because strangely enough, in BibleTime, the overridden CSwordBackend::AddRenderFilter method already seems to have the override keyword present. I suspect what you saw might instead have been caused by something like compiling BibleTime against an older version of Sword, but running it against the newer version of the Sword dynamic library. This is a form of API breakage which might perhaps lead to results like this. If this is the case we might in the future get bug reports about this from downstream as well. J On 18.10.20 16:40, Jaak Ristioja wrote: Hi! The respective change in Sword is SVN 3753: https://github.com/bibletime/crosswire-sword-mirror/commit/b684b6f099 It seems that this time we were not lucky to have a SWDEPRECATED alias for the old function name, silently breaking API, and hence BibleTime. In theory this silent error could also have been detected in BibleTime if we would have used the override keyword. In practice, finding all the functions which need the override keyword is for most projects only easy to do if the -Wsuggest-override flag (and perhaps even -Werror=suggest-override for debug builds) is used. Unfortunately for BibleTime (and other projects using Sword), just turning this flag on yields very many warnings from Sword headers themselves. The task of figuring out how (and when in the build process) to filter BibleTime-specific warnings from all warnings is likely not a trivial one. Best regards, J On 18.10.20 01:50, Gary Holmlund wrote: I found the issue. BibleTime is using a sword function, AddRenderFilters, which is deprecated. It was renamed to addRenderFilters (A -> a). Gary On 10/17/20 1:36 PM, Gary Holmlund wrote: I have found that sword is not calling the BibleTime OsisToHtml filter. It is called with 1.8.1 and not with 1.9RC3. I am still working on why this does not happen. Gary On 10/16/20 3:49 AM, Troy A. Griffitts wrote: Hi Gary. No, nothing should have changed in that respect. Can anyone else confirm they are having trouble with these in our last RC or svn HEAD? On October 16, 2020 2:44:32 AM GMT+02:00, Gary Holmlund wrote: >I switched to sword 1.9 rc3 in BibleTime. I am on Fedora 33. Now I have > >lost cross references, footnotes, Jesus words, etc. > >Did any api for references change? Any other thoughts? > >Gary Holmlund > > >___ >sword-devel mailing list: sword-devel@crosswire.org >http://crosswire.org/mailman/listinfo/sword-devel >Instructions to unsubscribe/change your settings at above page -- Sent from my Android device with K-9 Mail. Please excuse my brevity. -- Sent from my Android device with K-9 Mail. Please excuse my brevity. ___ sword-devel mailing list: sword-devel@crosswire.org http://crosswire.org/mailman/listinfo/sword-devel Instructions to unsubscribe/change your settings at above page ___ sword-devel mailing list: sword-devel@crosswire.org http://crosswire.org/mailman/listinfo/sword-devel Instructions to unsubscribe/change your settings at above page ___ sword-devel mailing list: sword-devel@crosswire.org http://crosswire.org/mailman/listinfo/sword-devel Instructions to unsubscribe/change your settings at above page ___ sword-devel mailing list: sword-devel@crosswire.org http://crosswire.org/mailman/listinfo/sword-devel Instructions to unsubscribe/change your settings at above page