Skip to content

Fix timeline view#13

Open
ryokaji wants to merge 2 commits intomark-when:mainfrom
ryokaji:fix/timeline
Open

Fix timeline view#13
ryokaji wants to merge 2 commits intomark-when:mainfrom
ryokaji:fix/timeline

Conversation

@ryokaji
Copy link

@ryokaji ryokaji commented Mar 15, 2026

Issue

The v1.4.4 (f4e2e63) can't render a mw file to a timeline view.
The reason is the viewers which depends on an old version parser are pulled into assets in build process.

What I changed

The same of #12, I confirmed that this can be resolved by the following.

  • Updated the dependent packages.
  • Updated interfaces in MarkwhenTimelineEditorProvider .

note:

Result

before:

*an error happens

rejected promise not handled within 1 second: TypeError: Cannot read properties of undefined (reading '0')
stack trace: TypeError: Cannot read properties of undefined (reading '0')
	at MarkwhenTimelineEditorProvider.parse (/Users/ryok/work/vscode/markwhen/out/MarkwhenTimelineEditorProvider.js:124:46)
	at async MarkwhenTimelineEditorProvider.updateWebview (/Users/ryok/work/vscode/markwhen/out/MarkwhenTimelineEditorProvider.js:133:9)
rejected promise not handled within 1 second: TypeError: Cannot read properties of undefined (reading '0')
stack trace: TypeError: Cannot read properties of undefined (reading '0')
	at Object.markwhenState (/Users/ryok/work/vscode/markwhen/out/MarkwhenTimelineEditorProvider.js:86:50)
rejected promise not handled within 1 second: TypeError: Cannot read properties of undefined (reading '0')
stack trace: TypeError: Cannot read properties of undefined (reading '0')
	at Object.markwhenState (/Users/ryok/work/vscode/markwhen/out/MarkwhenTimelineEditorProvider.js:86:50)
image

after:

image

mw file contents:

Details
title: Welcome to Markwhen!

#Project1: #3d6bc7

meridiem:
  view: "*"

timeline:
  ranges: [2 years]
  center: 2026-06
  style:
    row:
      height: 30
    event:
      bar:
        height: 12
        rx: 3
    dependency:
      strut:
        stroke-width: 0
      line:
        stroke-width: 4
    
# Welcome #welcome
style: section
2026 / 2026-02-14: This example timeline showcases some of markwhen's features.

Feel free to delete everything to start making your own timeline #welcome

2026/2026-03: You can also view an example timeline at [markwhen.com/example](https://markwhen.com/example) #welcome

Or you can save this timeline so you can refer to it later, by going to File -> Save as -> Save to browser.

now: For more information, view the documentation [here](https://docs.markwhen.com) or join the [discord](https://discord.gg/3rTpUD94ac)
#welcome

# All Projects
style: section

## Project 1 #Project1
// Supports ISO8601
2026-01/2026-03: Sub task #John
  id: ProjectStart

3 months: Sub task 2 #Michelle

More info about sub task 2

- [ ] We need to get this done
- [x] And this
- [ ] This one is extra

1 month / 1 week: Check in and verification
  id: verification

!ProjectStart.start / !verification.end: Continuous testing

2026-07-28 / 2026-08-01: Yearly planning #milestone

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant