Comments (11)
Yes, that was the problem! I switched to a fine-grained access token, and now the plugin works as intended (both writing to a gist and to a .ical file locally). My classic token was only 40 characters long, which was causing all the problems. I'm not sure if I was failing to copy the whole token or if they are not always 255 characters long
from obsidian-to-ical-plugin.
I confirm it works for me too.
from obsidian-to-ical-plugin.
One interesting note is that every time I paste in my github personal access key, the field gets cleared. I'm not sure if this is intentional or part of the problem.
For info. I just made a test yesterday... same behavior.
from obsidian-to-ical-plugin.
I figured that my problem was that I was manually making tasks instead of using the official Obsidian Tasks plugin with due dates and scheduled dates etc, but still no dice.
from obsidian-to-ical-plugin.
I figured that my problem was that I was manually making tasks instead of using the official Obsidian Tasks plugin with due dates and scheduled dates etc, but still no dice.
Did you include emoji before date ?
from obsidian-to-ical-plugin.
Yes, I have migrated over to using the standard Tasks format with emojis and dates now. (Don't know how it took me this long to find out about Tasks)
from obsidian-to-ical-plugin.
Hi @JJTofflemire, thanks for raising this issue.
- [ ] #task 2023-12-04 work on stuff
- [ ] 2023-12-05 tasks
This should absolutely be identified as a Task. The regular expression to find a date in a line is:
/(?<emoji>➕|⏳|🛫|📅|✅)?\s?(?<year>\d{4})-(?<month>\d{2})-(?<day>\d{1,2})\b/gi
The <emoji>
group is optional. A long as there is a "0000-00-00" or "0000-00-0" where 0 is any number, then it should be considered a date and therefore a valid task with a date.
In my test case I have:
![image](https://private-user-images.githubusercontent.com/682893/287927229-eedce9c3-4655-4134-b30b-4b39b7fc6413.png?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3MDg1Mjg5OTIsIm5iZiI6MTcwODUyODY5MiwicGF0aCI6Ii82ODI4OTMvMjg3OTI3MjI5LWVlZGNlOWMzLTQ2NTUtNDEzNC1iMzBiLTRiMzliN2ZjNjQxMy5wbmc_WC1BbXotQWxnb3JpdGhtPUFXUzQtSE1BQy1TSEEyNTYmWC1BbXotQ3JlZGVudGlhbD1BS0lBVkNPRFlMU0E1M1BRSzRaQSUyRjIwMjQwMjIxJTJGdXMtZWFzdC0xJTJGczMlMkZhd3M0X3JlcXVlc3QmWC1BbXotRGF0ZT0yMDI0MDIyMVQxNTE4MTJaJlgtQW16LUV4cGlyZXM9MzAwJlgtQW16LVNpZ25hdHVyZT01Y2FlZjAzMDIwODczNzRkOGY4YWQ0YjJhMzM2OTNkNjJkZWU5ZmFkZjMyMjRmMTIzMGRhMTk1MTRiNTRhN2EwJlgtQW16LVNpZ25lZEhlYWRlcnM9aG9zdCZhY3Rvcl9pZD0wJmtleV9pZD0wJnJlcG9faWQ9MCJ9.40dRkaMBngVUwCV6WVQSjtjD-AG2CUvtRpG5GDrcJ8E)
And in the console I can see it was identified correctly:
![image](https://private-user-images.githubusercontent.com/682893/287927410-833350f2-54ac-497f-82a9-d361e8dfe262.png?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3MDg1Mjg5OTIsIm5iZiI6MTcwODUyODY5MiwicGF0aCI6Ii82ODI4OTMvMjg3OTI3NDEwLTgzMzM1MGYyLTU0YWMtNDk3Zi04MmE5LWQzNjFlOGRmZTI2Mi5wbmc_WC1BbXotQWxnb3JpdGhtPUFXUzQtSE1BQy1TSEEyNTYmWC1BbXotQ3JlZGVudGlhbD1BS0lBVkNPRFlMU0E1M1BRSzRaQSUyRjIwMjQwMjIxJTJGdXMtZWFzdC0xJTJGczMlMkZhd3M0X3JlcXVlc3QmWC1BbXotRGF0ZT0yMDI0MDIyMVQxNTE4MTJaJlgtQW16LUV4cGlyZXM9MzAwJlgtQW16LVNpZ25hdHVyZT0zMTkxZjAyMzM1YTBhYTlmNjgwOTNiMzhkNjRlYWNkN2ZlMzdmNDA5NjQzMTQ3ODg3MDAwNjM3ZTZiNTk3NmQxJlgtQW16LVNpZ25lZEhlYWRlcnM9aG9zdCZhY3Rvcl9pZD0wJmtleV9pZD0wJnJlcG9faWQ9MCJ9.8lzLY5TCvAp2HHf3vPMCZC5DmbnzFaDSf-fJOHnS0Uc)
So then I added your test case:
![image](https://private-user-images.githubusercontent.com/682893/287927604-8f3e7a54-374c-4178-ae71-437cce2d5855.png?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3MDg1Mjg5OTIsIm5iZiI6MTcwODUyODY5MiwicGF0aCI6Ii82ODI4OTMvMjg3OTI3NjA0LThmM2U3YTU0LTM3NGMtNDE3OC1hZTcxLTQzN2NjZTJkNTg1NS5wbmc_WC1BbXotQWxnb3JpdGhtPUFXUzQtSE1BQy1TSEEyNTYmWC1BbXotQ3JlZGVudGlhbD1BS0lBVkNPRFlMU0E1M1BRSzRaQSUyRjIwMjQwMjIxJTJGdXMtZWFzdC0xJTJGczMlMkZhd3M0X3JlcXVlc3QmWC1BbXotRGF0ZT0yMDI0MDIyMVQxNTE4MTJaJlgtQW16LUV4cGlyZXM9MzAwJlgtQW16LVNpZ25hdHVyZT1lZDk4Nzk3OTk5NzllZGM1MTQxYWIwZTEyZGYwMmNlODRkNzYwNzAzNjI0ODQyNDUxODk4MDQ1ODNkODYyMmI5JlgtQW16LVNpZ25lZEhlYWRlcnM9aG9zdCZhY3Rvcl9pZD0wJmtleV9pZD0wJnJlcG9faWQ9MCJ9.wBLEAmuUF9hS-BYjxT58byHJkaN1PznfCCT7ru2qIis)
And it worked 😳:
![image](https://private-user-images.githubusercontent.com/682893/287927920-13c763bc-c19c-4f10-88e4-bfb8e32a383a.png?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3MDg1Mjg5OTIsIm5iZiI6MTcwODUyODY5MiwicGF0aCI6Ii82ODI4OTMvMjg3OTI3OTIwLTEzYzc2M2JjLWMxOWMtNGYxMC04OGU0LWJmYjhlMzJhMzgzYS5wbmc_WC1BbXotQWxnb3JpdGhtPUFXUzQtSE1BQy1TSEEyNTYmWC1BbXotQ3JlZGVudGlhbD1BS0lBVkNPRFlMU0E1M1BRSzRaQSUyRjIwMjQwMjIxJTJGdXMtZWFzdC0xJTJGczMlMkZhd3M0X3JlcXVlc3QmWC1BbXotRGF0ZT0yMDI0MDIyMVQxNTE4MTJaJlgtQW16LUV4cGlyZXM9MzAwJlgtQW16LVNpZ25hdHVyZT0wNTFhNDE5MjdmZWRjYTc5YzczMGMxOGI4MTNjZmI4NWJjOTZlZWYxM2Y4MTA1ZTJiMjRmNmJmYzUwNDM0YWZjJlgtQW16LVNpZ25lZEhlYWRlcnM9aG9zdCZhY3Rvcl9pZD0wJmtleV9pZD0wJnJlcG9faWQ9MCJ9.IsSMAs3VEfso4bbEs8Di2pjRRzXLl2r5qK1hMXQ454E)
I'm at a loss trying to understand how this could happen. I've added some additional logging and a new setting called "Debug mode" to print more logs to console. Perhaps that will assist me in working out what is going on here.
from obsidian-to-ical-plugin.
That's really weird. I configured the plugin on my desktop running Arch Linux, and still no dice. Here's the output from Debug Mode
.
Which failed to find these tasks:
- [ ] Module 1 and 2 review 📅 2023-12-08 ⏳ 2023-12-07
- [ ] Section 17.2 # 1, 5, 15 p 979 🔼 ⏳ 2023-12-05
- [ ] Webwork Set 23 (4 problems) ⏫ ⏳ 2023-12-05 📅 2023-12-06
- [ ] Homework 11 📅 2023-12-11 ⏬
The link from the iCal settings successfully pulls up my gist, though there is still an error in the console. Also, when I tried to enter my Github token, every time I tried to type in the box it would immediately deselect (and pasting in the token would give me no feedback). Though, regardless, the primary issue appears to be identifying the tasks.
from obsidian-to-ical-plugin.
I'm wondering about the GitHub token. Can you confirm the details of the token?
I currently enforce the token to be either a classic token or a fine-grained token like this:
^ghp_[a-zA-Z0-9]{255}$
or
^github_pat_[a-zA-Z0-9]{22}_[a-zA-Z0-9]{59}$
Can you check if your token looks like this or if it looks different? If it's different, then the code will throw an error. That would explain the token being cleared, and maybe even the plugin not working correctly from there on.
from obsidian-to-ical-plugin.
That's great to hear. I will update the code to be a bit better about what should happen when there is a problem parsing the token. eg: Tell the user instead of simply clearing the textbox.
from obsidian-to-ical-plugin.
This has been fixed in 1.9.1
from obsidian-to-ical-plugin.
Related Issues (20)
- I need an option to not generate completed tasks as ical HOT 1
- recurring export doesn't work HOT 7
- [feature] Distinguish between scheduled tasks and tasks with a deadline HOT 6
- [question] Scheduled VS Deadline in GTD workflow HOT 8
- 0 Markdown files found when Obsidian first starts
- Markdown formatting in README is borked
- Add linting at development time
- Add ability to ignore events older than certain time periods
- Ignore SyncThing sync conflict files
- Add option to parse Dataview formatted tasks HOT 4
- (Feature) Unscheduled tasks HOT 17
- (review) Architecture, roles and cleanliness HOT 1
- (Architecure) Parameters as singleton HOT 2
- (idea) add description in event HOT 3
- Test test test HOT 7
- AP_G HOT 3
- Add script to make versioning easier HOT 1
- Implement rfc 5545 3.1 content lines length limit
- (FR) Make the date adjust after completion HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from obsidian-to-ical-plugin.