Coder Social home page Coder Social logo

Comments (14)

rosenpin avatar rosenpin commented on May 31, 2024

Isn't summary just the event name? how do you even create an event without a title?

from i3-agenda.

Zackhardtoname avatar Zackhardtoname commented on May 31, 2024

The rectangular area:
image

from i3-agenda.

rosenpin avatar rosenpin commented on May 31, 2024

Are you sure? Can you reproduce it this way? Because I never enter a description and it doesn't crash for me

from i3-agenda.

Zackhardtoname avatar Zackhardtoname commented on May 31, 2024

Somehow I can't reproduce it now, but I am sure that's the problematic field since the error went away as soon as I put in some text there. (Previously, reinstalling did not help.)

from i3-agenda.

rosenpin avatar rosenpin commented on May 31, 2024

I read the logs you sent, seems like the error occurs in this line
https://github.com/rosenpin/i3-agenda/blob/master/i3_agenda/__init__.py#L147

The summary field is the title as far as I know, this is how it works when I use it so there shouldn't be a different in your instance (unless there was a change to the API and you have a newer version than I)

I'll look into the error when I get the time

from i3-agenda.

snide avatar snide commented on May 31, 2024

First. Thank you for this wonderful package. I just wanted to report that trying to install this with a fresh install through AUR i get a similar error. Credentials were created and look find. When I run with the -u flag I get.

Traceback (most recent call last):
  File "/bin/i3-agenda", line 33, in <module>
    sys.exit(load_entry_point('i3-agenda==1.4', 'console_scripts', 'i3-agenda')())
  File "/usr/lib/python3.9/site-packages/i3_agenda/__init__.py", line 100, in main
    events = getEvents(service, allowed_calendars_ids, args.maxres,
  File "/usr/lib/python3.9/site-packages/i3_agenda/__init__.py", line 173, in getEvents
    all.append(Event(event['summary'],
KeyError: 'summary'

I can see the .i3agenda folder is created, with the token.pickle. The .cache.txt file ends up being an empty array.

If you have any ideas please let me know. This looks like a fantastic script and I appreciate the time you took to build it.

from i3-agenda.

indradhanush avatar indradhanush commented on May 31, 2024

🐛 Just tried this out and I have the same error as @snide. This looks like a fantastic module. <3

from i3-agenda.

indradhanush avatar indradhanush commented on May 31, 2024

I looked into this and with patch in PR #48, the code no longer runs into this error. However I'm not sure if that's a complete fix. At the moment, after running the script just with the -c flag set, I get this output:

%d/%m at 01:45 busy

from i3-agenda.

rosenpin avatar rosenpin commented on May 31, 2024

Do you literally get "%d/%m"? or the actual day/month?

I think maybe shared events really be the reason for this because I don't really have any shared events and I never ran into such issue

from i3-agenda.

rosenpin avatar rosenpin commented on May 31, 2024

@snide do you have shared events in your calendar?

Could you try @indradhanush patch?

from i3-agenda.

indradhanush avatar indradhanush commented on May 31, 2024

Do you literally get "%d/%m"? or the actual day/month?

Yes, indeed. I was confused and thought that maybe I am missing some additional configuration? I will try this out without a shared calendar and see if I am seeing a similar behaviour.

from i3-agenda.

snide avatar snide commented on May 31, 2024

from i3-agenda.

indradhanush avatar indradhanush commented on May 31, 2024

I checked today where the next / current event description was publicly available from the shared calendar and the description along with the timestamp was printed as the output. However, if the event description is not publicly available, I still see the %d/%m in the output.

And on that note, I was also thinking that users may only want to use i3-agenda as what is the next meeting in their calendar that they need to be at instead of seeing a notification for the next meeting from every shared calendar. Would it be possible to maybe optionally exclude all shared calendars? That is if the user wanted, they may set a flag like --exclude-shared=foo,bar,baz and that would only exclude these three calendars from the events list?

Or alternatively, the opposite of the above as --include-shared=foo,bar,baz and it only shows events from these shared calendars while excluding every other shared calendar? And if that flag is not set, i3-agenda skips all events from shared calendars.

What do you think?

Edit: My bad. I was reading the code, and it seems this is already doable with the --ids flag.

from i3-agenda.

rosenpin avatar rosenpin commented on May 31, 2024

Solved at #88

from i3-agenda.

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.