Giter VIP home page Giter VIP logo

Comments (7)

real-or-random avatar real-or-random commented on September 27, 2024

Thanks for the bug report.

I am unsure how to resolve this. Would it be possible to only conditionally (i.e. only when not already loaded) load sabre?

We could do this but it's not guaranteed to work because icalevents and davcal may depend on different versions of sabre...

I searched the web a little bit and found this here, which describes basically the same issue in the context of WordPress plugins:
https://deliciousbrains.com/php-scoper-namespace-composer-depencies/

This may be the way to go.

@andyboeh, any thoughts on this?

from dokuwiki-plugin-icalevents.

andyboeh avatar andyboeh commented on September 27, 2024

AFAIK, the two plugins are simply incompatible.
Regarding the scoper: I don't think that helps, since it does not prevent two libraries from trying to live in the same namespace.
Yes, basically either davcal or icalevents could check the presence of either and make use of the other bundled library, but that does not prevent any version conflicts.

One (important) thing to add: Currently, I don't have the resources to do bigger changes in davcal. However, would it be an option for @thegcat to use either of the plugins, since they both provide very similar features with regard to ics subscriptions?

from dokuwiki-plugin-icalevents.

thegcat avatar thegcat commented on September 27, 2024

We use icalevents to show a table of events from an ical feed, I haven't tried using davcal for this. Would this be the "client mode" the documentation refers to? It seems this requires an admin to have a prepopulated list of feeds to read and/or an admin to add each feed that needs to be connected to the configuration. It would be less ideal than having users just being able to add an arbitrary URL, but that would probably be doable for us, yes.

from dokuwiki-plugin-icalevents.

andyboeh avatar andyboeh commented on September 27, 2024

Yes, exactly. You need webdavclient installed, configure the feed URLs there (as admin) and include the feeds as webdav:// in davcal or davcaltable to get a tabular output.
Of course, this does not prevent any incompatibility but might be an option for you in the meantime.

from dokuwiki-plugin-icalevents.

real-or-random avatar real-or-random commented on September 27, 2024

Regarding the scoper: I don't think that helps, since it does not prevent two libraries from trying to live in the same namespace.

I think that's exactly what I does, by prefixing the namespaces:
https://github.com/humbug/php-scoper

from dokuwiki-plugin-icalevents.

andyboeh avatar andyboeh commented on September 27, 2024

Well, I seem to have misinterpreted the description...you are right, that might solve the issue. As mentioned, I don't really have the time to try it.

from dokuwiki-plugin-icalevents.

thegcat avatar thegcat commented on September 27, 2024

Yes, exactly. You need webdavclient installed, configure the feed URLs there (as admin) and include the feeds as webdav:// in davcal or davcaltable to get a tabular output.
Of course, this does not prevent any incompatibility but might be an option for you in the meantime.

I'll see about using this, for the moment it seems the problem has vanished? (it also did work a long time without this error, we're not quite sure what prompted it to appear) But yes, this would be workable, so we have a solution for our case.

Thank you a bunch for your help!

from dokuwiki-plugin-icalevents.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.