Open DesiQuintans opened 5 years ago
Looks like we could fix this just by re-arranging the code here, and forcing a .rstheme
extension on the downloaded object:
An interesting other unexpected behaviour that's related to your potential fix. Trying to get people to install from a URL that ends with rsTheme
or tmTheme
but isn't actually the proper file format makes RStudio install a completely invalid file that tries to be a theme but fails.
For example, trying to get people to install from the GitHub repo itself (obviously a bad idea, but roll with it):
https://github.com/DesiQuintans/Pebble-safe/blob/master/Pebble-Safe_Dark.rstheme
Because this URL leads to another GitHub page, the HTML of that page gets downloaded, saved as Pebble-Safe_Dark.rstheme
, and RStudio tries to use it as the theme. It correctly sets the editor background colour but fails at everything else.
I'm not sure if this is within your control, but reporting it anyway. I have tried making a short bit.ly link for people to install my theme from a GitHub release, but installing from the short URL returns the error:
Code below.