Mailspring: Calendar preview only shows empty screen

Created on 8 May 2019  路  8Comments  路  Source: Foundry376/Mailspring

What operating system are you using?
Linux Mint 19.1

What version of Mailspring are you using?
1.6.1

Steps to reproduce:
Prerequisites: Create GMail account

  1. Click Developer -> Calendar Preview
  2. An empty calendar window opens (without any chrome, like a close button)

Way to fix the bug
I've cloned the repository and debugged the application. There are two reasons the Calendar Preview window is empty:

  1. The file calendar-wrapper.ts (in interal_packages/main-calendar/lib/core) is importing the class MailspringCalendar from './core/mailspring-calendar'; (on line 8), but there is no file called mailspring-calendar.tsx. You have to rename nylas-calendar.tsx to mailspring-calendar.tsx (or change the import).
  2. The file calendar-toggles.tsz (in interal_packages/main-calendar/lib/core) is checking for disabledCalendars to contain the current calendar.id but the prop is undefined. To fix this issue you have to either check if the property exist or give it an empty value in the config (where it comes from).
bug calendar done-pending-release

Most helpful comment

Hey @mslourens鈥攚ow, thanks for reporting this and diagnosing the issue! It looks like I broke this right at the end of the typescript conversion by renaming a few things. I'll get this fixed in the next release! I've been working on the sync logic for the calendar feature and the preview should be getting more fun soon - stay tuned!

All 8 comments

Hey @mslourens鈥攚ow, thanks for reporting this and diagnosing the issue! It looks like I broke this right at the end of the typescript conversion by renaming a few things. I'll get this fixed in the next release! I've been working on the sync logic for the calendar feature and the preview should be getting more fun soon - stay tuned!

@bengotow This still happens on 1.6.2 for me - None of my 3 gmail accounts (one is a gapps/gsuite work account) show anything on the preview screen.

fixed by version 1.6.2 for me

@mslourens did you mean 1.6.2?

Either way, Still the same for me on 1.6.3. The sidebar loads and shows the various event categories, but nothing actually appears in the calendar itself.

@ransagy Yes, I meant 1.6.2, sorry about the confusion.
Do you see any errors in the developer tools, if you open them by going to Developer => Toggle Developer Tools or press CTRL+ALT+I?

Nope, first thing i checked. Just debug info about querying the event data store.

Hey folks鈥攖hanks for the updates here. It looks like we've gotten some automated JS exceptions reported from the calendar preview in the latest release, so I'll see if I can get this fixed. Starting in the next month or so you'll be able to create / edit calendar events as well and this should get a whole lot more polished. Stay tuned!

Hey folks, thanks for reporting this. Happy to say this has been resolved in a recent release and 1.7.6, which shipped today, should leave things in a nice stable place while I go and finish the calendar feature. Stay tuned!

Was this page helpful?
0 / 5 - 0 ratings

Related issues

3v1n0 picture 3v1n0  路  3Comments

dgattey picture dgattey  路  3Comments

k4rli picture k4rli  路  3Comments

tuxmachine picture tuxmachine  路  3Comments

justindoran picture justindoran  路  3Comments