Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

New TiddlyWiki builds : Backend: low test coverage + Frontend: JavaScript Error #1

Open
almereyda opened this issue Jul 31, 2014 · 5 comments

Comments

@almereyda
Copy link

I was so happy almost having found a usable, flexible timeline editor.

Unfortunately I cannot get it to work. I tried

  • drag and drop to a local install
  • recursively cloning and running tiddlywiki from there

It always throws

Error executing boot module $:/plugins/emkay/visjs/graphwidget.js: TypeError: Cannot read property 'measure' of undefined
@almereyda
Copy link
Author

@emkayonline Additionally, running tiddlywiki --server within the cloned directory doesn't run the plugin, as more than half of the tests fail.

Using tiddlywiki via sudo npm install -g tiddlywiki.

tiddlywiki --version
5.0.13-beta

vis.js Graph Widget module
�[32m    should report unexpected attributes�[0m
�[31m    should render from AListTiddler�[0m
�[31m    should render from TiddlerThree�[0m
�[31m    should render from MissingTiddler�[0m
�[31m    should render from TiddlerFour�[0m
�[31m    should render from TiddlerTwo�[0m

vis.js Timeline Widget module
�[32m    should report unexpected attributes�[0m
�[32m    should render from a tiddlerList and default startDateField, setting start range to lowest�[0m
�[31m    should set the a given custom time�[0m
�[32m    should render using default filter and start date�[0m
�[32m    should handle a nonsensical filter, giving no timepoints�[0m
�[32m    should render with a specified filter and startDateField�[0m
�[32m    should render from a filter attribute listing tiddlers �[0m
�[32m    should skip any unknown tiddlers in a filter list�[0m
�[32m    should group tiddlers based on an attribute�[0m
�[32m    should provide default grouping when field missing�[0m
�[31m    should handle tiddlers with textual dates with specified format�[0m
�[31m    should skip tiddlers with unparsable startDateField�[0m
�[31m    should skip tiddlers missing the startDateField�[0m
�[31m    should set tiddlers as range timepoints when using endDateField�[0m
�[32m    should set tiddlers as point timepoints when start date matches end date (and set max correctly)�[0m
�[31m    should set tiddlers as point timepoints when missing endDateField�[0m
�[31m    it should handle 'now' as current date for date values�[0m
�[31m    should handle years as dates from a long time ago�[0m
�[31m    Should report an error when start date is before end date�[0m
�[32m    should refresh when an included tiddler changes�[0m
�[32m    should refresh when an included tiddler changes and excludes itself from the filter�[0m
�[32m    should refresh when an included tiddler changes�[0m
�[32m    should refresh when an included tiddler changes�[0m
�[32m    should not refresh when an irrelevant tiddler is changed�[0m

Failures:

  1) vis.js Graph Widget module should render from AListTiddler
   Message:
     �[31mTypeError: Object AListTiddler has no method 'getVariable'�[0m
   Stacktrace:
     TypeError: Object AListTiddler has no method 'getVariable'
    at operationSubFunction ($:/core/modules/filters.js:182:41)
    at $:/core/modules/filters.js:227:33
    at $:/core/modules/filters.js:252:4
    at Array.forEach (native)
    at $tw.utils.each (/usr/lib/node_modules/tiddlywiki/boot/boot.js:81:11)
    at filterFunction ($:/core/modules/filters.js:251:13)
    at addNodesAndEdges ($:/plugins/emkay/visjs/graphwidget.js:128:46)
    at buildNodeAndEdgeSets ($:/plugins/emkay/visjs/graphwidget.js:147:7)
    at GraphWidget.drawGraph ($:/plugins/emkay/visjs/graphwidget.js:198:27)
    at GraphWidget.createGraph ($:/plugins/emkay/visjs/graphwidget.js:192:10)

  2) vis.js Graph Widget module should render from TiddlerThree
   Message:
     �[31mTypeError: Object TiddlerThree has no method 'getVariable'�[0m
   Stacktrace:
     TypeError: Object TiddlerThree has no method 'getVariable'
    at operationSubFunction ($:/core/modules/filters.js:182:41)
    at $:/core/modules/filters.js:227:33
    at $:/core/modules/filters.js:252:4
    at Array.forEach (native)
    at $tw.utils.each (/usr/lib/node_modules/tiddlywiki/boot/boot.js:81:11)
    at filterFunction ($:/core/modules/filters.js:251:13)
    at addNodesAndEdges ($:/plugins/emkay/visjs/graphwidget.js:128:46)
    at buildNodeAndEdgeSets ($:/plugins/emkay/visjs/graphwidget.js:147:7)
    at GraphWidget.drawGraph ($:/plugins/emkay/visjs/graphwidget.js:198:27)
    at GraphWidget.createGraph ($:/plugins/emkay/visjs/graphwidget.js:192:10)

  3) vis.js Graph Widget module should render from MissingTiddler
   Message:
     �[31mTypeError: Object MissingTiddler has no method 'getVariable'�[0m
   Stacktrace:
     TypeError: Object MissingTiddler has no method 'getVariable'
    at operationSubFunction ($:/core/modules/filters.js:182:41)
    at $:/core/modules/filters.js:227:33
    at $:/core/modules/filters.js:252:4
    at Array.forEach (native)
    at $tw.utils.each (/usr/lib/node_modules/tiddlywiki/boot/boot.js:81:11)
    at filterFunction ($:/core/modules/filters.js:251:13)
    at addNodesAndEdges ($:/plugins/emkay/visjs/graphwidget.js:128:46)
    at buildNodeAndEdgeSets ($:/plugins/emkay/visjs/graphwidget.js:147:7)
    at GraphWidget.drawGraph ($:/plugins/emkay/visjs/graphwidget.js:198:27)
    at GraphWidget.createGraph ($:/plugins/emkay/visjs/graphwidget.js:192:10)

  4) vis.js Graph Widget module should render from TiddlerFour
   Message:
     �[31mTypeError: Object TiddlerFour has no method 'getVariable'�[0m
   Stacktrace:
     TypeError: Object TiddlerFour has no method 'getVariable'
    at operationSubFunction ($:/core/modules/filters.js:182:41)
    at $:/core/modules/filters.js:227:33
    at $:/core/modules/filters.js:252:4
    at Array.forEach (native)
    at $tw.utils.each (/usr/lib/node_modules/tiddlywiki/boot/boot.js:81:11)
    at filterFunction ($:/core/modules/filters.js:251:13)
    at addNodesAndEdges ($:/plugins/emkay/visjs/graphwidget.js:128:46)
    at buildNodeAndEdgeSets ($:/plugins/emkay/visjs/graphwidget.js:147:7)
    at GraphWidget.drawGraph ($:/plugins/emkay/visjs/graphwidget.js:198:27)
    at GraphWidget.createGraph ($:/plugins/emkay/visjs/graphwidget.js:192:10)

  5) vis.js Graph Widget module should render from TiddlerTwo
   Message:
     �[31mTypeError: Object TiddlerTwo has no method 'getVariable'�[0m
   Stacktrace:
     TypeError: Object TiddlerTwo has no method 'getVariable'
    at operationSubFunction ($:/core/modules/filters.js:182:41)
    at $:/core/modules/filters.js:227:33
    at $:/core/modules/filters.js:252:4
    at Array.forEach (native)
    at $tw.utils.each (/usr/lib/node_modules/tiddlywiki/boot/boot.js:81:11)
    at filterFunction ($:/core/modules/filters.js:251:13)
    at addNodesAndEdges ($:/plugins/emkay/visjs/graphwidget.js:128:46)
    at buildNodeAndEdgeSets ($:/plugins/emkay/visjs/graphwidget.js:147:7)
    at GraphWidget.drawGraph ($:/plugins/emkay/visjs/graphwidget.js:198:27)
    at GraphWidget.createGraph ($:/plugins/emkay/visjs/graphwidget.js:192:10)

  6) vis.js Timeline Widget module should set the a given custom time
   Message:
     �[31mTypeError: undefined is not a function�[0m
   Stacktrace:
     TypeError: undefined is not a function
    at TimelineWidget.updateTimeline ($:/plugins/emkay/visjs/timelinewidget.js:230:15)
    at TimelineWidget.render ($:/plugins/emkay/visjs/timelinewidget.js:43:12)
    at $:/core/modules/widgets/widget.js:337:15
    at Array.forEach (native)
    at $tw.utils.each (/usr/lib/node_modules/tiddlywiki/boot/boot.js:81:11)
    at Widget.renderChildren ($:/core/modules/widgets/widget.js:336:12)
    at ElementWidget.render ($:/core/modules/widgets/element.js:41:7)
    at $:/core/modules/widgets/widget.js:337:15
    at Array.forEach (native)
    at $tw.utils.each (/usr/lib/node_modules/tiddlywiki/boot/boot.js:81:11)

  7) vis.js Timeline Widget module should handle tiddlers with textual dates with specified format
   Message:
     �[31mTypeError: undefined is not a function�[0m
   Stacktrace:
     TypeError: undefined is not a function
    at dateFieldToDate ($:/plugins/emkay/visjs/timelinewidget.js:140:17)
    at $:/plugins/emkay/visjs/timelinewidget.js:157:25
    at Array.reduce (native)
    at TimelineWidget.updateTimeline ($:/plugins/emkay/visjs/timelinewidget.js:203:32)
    at TimelineWidget.render ($:/plugins/emkay/visjs/timelinewidget.js:43:12)
    at $:/core/modules/widgets/widget.js:337:15
    at Array.forEach (native)
    at $tw.utils.each (/usr/lib/node_modules/tiddlywiki/boot/boot.js:81:11)
    at Widget.renderChildren ($:/core/modules/widgets/widget.js:336:12)
    at ElementWidget.render ($:/core/modules/widgets/element.js:41:7)

  8) vis.js Timeline Widget module should skip tiddlers with unparsable startDateField
   Message:
     �[31mTypeError: undefined is not a function�[0m
   Stacktrace:
     TypeError: undefined is not a function
    at dateFieldToDate ($:/plugins/emkay/visjs/timelinewidget.js:140:17)
    at $:/plugins/emkay/visjs/timelinewidget.js:157:25
    at Array.reduce (native)
    at TimelineWidget.updateTimeline ($:/plugins/emkay/visjs/timelinewidget.js:203:32)
    at TimelineWidget.render ($:/plugins/emkay/visjs/timelinewidget.js:43:12)
    at $:/core/modules/widgets/widget.js:337:15
    at Array.forEach (native)
    at $tw.utils.each (/usr/lib/node_modules/tiddlywiki/boot/boot.js:81:11)
    at Widget.renderChildren ($:/core/modules/widgets/widget.js:336:12)
    at ElementWidget.render ($:/core/modules/widgets/element.js:41:7)

  9) vis.js Timeline Widget module should skip tiddlers missing the startDateField
   Message:
     �[31mTypeError: undefined is not a function�[0m
   Stacktrace:
     TypeError: undefined is not a function
    at dateFieldToDate ($:/plugins/emkay/visjs/timelinewidget.js:140:17)
    at $:/plugins/emkay/visjs/timelinewidget.js:157:25
    at Array.reduce (native)
    at TimelineWidget.updateTimeline ($:/plugins/emkay/visjs/timelinewidget.js:203:32)
    at TimelineWidget.render ($:/plugins/emkay/visjs/timelinewidget.js:43:12)
    at $:/core/modules/widgets/widget.js:337:15
    at Array.forEach (native)
    at $tw.utils.each (/usr/lib/node_modules/tiddlywiki/boot/boot.js:81:11)
    at Widget.renderChildren ($:/core/modules/widgets/widget.js:336:12)
    at ElementWidget.render ($:/core/modules/widgets/element.js:41:7)

  10) vis.js Timeline Widget module should set tiddlers as range timepoints when using endDateField
   Message:
     �[31mTypeError: undefined is not a function�[0m
   Stacktrace:
     TypeError: undefined is not a function
    at dateFieldToDate ($:/plugins/emkay/visjs/timelinewidget.js:140:17)
    at $:/plugins/emkay/visjs/timelinewidget.js:157:25
    at Array.reduce (native)
    at TimelineWidget.updateTimeline ($:/plugins/emkay/visjs/timelinewidget.js:203:32)
    at TimelineWidget.render ($:/plugins/emkay/visjs/timelinewidget.js:43:12)
    at $:/core/modules/widgets/widget.js:337:15
    at Array.forEach (native)
    at $tw.utils.each (/usr/lib/node_modules/tiddlywiki/boot/boot.js:81:11)
    at Widget.renderChildren ($:/core/modules/widgets/widget.js:336:12)
    at ElementWidget.render ($:/core/modules/widgets/element.js:41:7)

  11) vis.js Timeline Widget module should set tiddlers as point timepoints when missing endDateField
   Message:
     �[31mTypeError: undefined is not a function�[0m
   Stacktrace:
     TypeError: undefined is not a function
    at dateFieldToDate ($:/plugins/emkay/visjs/timelinewidget.js:140:17)
    at $:/plugins/emkay/visjs/timelinewidget.js:157:25
    at Array.reduce (native)
    at TimelineWidget.updateTimeline ($:/plugins/emkay/visjs/timelinewidget.js:203:32)
    at TimelineWidget.render ($:/plugins/emkay/visjs/timelinewidget.js:43:12)
    at $:/core/modules/widgets/widget.js:337:15
    at Array.forEach (native)
    at $tw.utils.each (/usr/lib/node_modules/tiddlywiki/boot/boot.js:81:11)
    at Widget.renderChildren ($:/core/modules/widgets/widget.js:336:12)
    at ElementWidget.render ($:/core/modules/widgets/element.js:41:7)

  12) vis.js Timeline Widget module it should handle 'now' as current date for date values
   Message:
     �[31mTypeError: undefined is not a function�[0m
   Stacktrace:
     TypeError: undefined is not a function
    at dateFieldToDate ($:/plugins/emkay/visjs/timelinewidget.js:140:17)
    at $:/plugins/emkay/visjs/timelinewidget.js:157:25
    at Array.reduce (native)
    at TimelineWidget.updateTimeline ($:/plugins/emkay/visjs/timelinewidget.js:203:32)
    at TimelineWidget.render ($:/plugins/emkay/visjs/timelinewidget.js:43:12)
    at $:/core/modules/widgets/widget.js:337:15
    at Array.forEach (native)
    at $tw.utils.each (/usr/lib/node_modules/tiddlywiki/boot/boot.js:81:11)
    at Widget.renderChildren ($:/core/modules/widgets/widget.js:336:12)
    at ElementWidget.render ($:/core/modules/widgets/element.js:41:7)

  13) vis.js Timeline Widget module should handle years as dates from a long time ago
   Message:
     �[31mTypeError: undefined is not a function�[0m
   Stacktrace:
     TypeError: undefined is not a function
    at dateFieldToDate ($:/plugins/emkay/visjs/timelinewidget.js:140:17)
    at $:/plugins/emkay/visjs/timelinewidget.js:157:25
    at Array.reduce (native)
    at TimelineWidget.updateTimeline ($:/plugins/emkay/visjs/timelinewidget.js:203:32)
    at TimelineWidget.render ($:/plugins/emkay/visjs/timelinewidget.js:43:12)
    at $:/core/modules/widgets/widget.js:337:15
    at Array.forEach (native)
    at $tw.utils.each (/usr/lib/node_modules/tiddlywiki/boot/boot.js:81:11)
    at Widget.renderChildren ($:/core/modules/widgets/widget.js:336:12)
    at ElementWidget.render ($:/core/modules/widgets/element.js:41:7)

  14) vis.js Timeline Widget module Should report an error when start date is before end date
   Message:
     �[31mTypeError: undefined is not a function�[0m
   Stacktrace:
     TypeError: undefined is not a function
    at dateFieldToDate ($:/plugins/emkay/visjs/timelinewidget.js:140:17)
    at $:/plugins/emkay/visjs/timelinewidget.js:157:25
    at Array.reduce (native)
    at TimelineWidget.updateTimeline ($:/plugins/emkay/visjs/timelinewidget.js:203:32)
    at TimelineWidget.render ($:/plugins/emkay/visjs/timelinewidget.js:43:12)
    at $:/core/modules/widgets/widget.js:337:15
    at Array.forEach (native)
    at $tw.utils.each (/usr/lib/node_modules/tiddlywiki/boot/boot.js:81:11)
    at Widget.renderChildren ($:/core/modules/widgets/widget.js:336:12)
    at ElementWidget.render ($:/core/modules/widgets/element.js:41:7)

Finished in 2.32 seconds
�[31m30 tests, 122 assertions, 14 failures
�[0m

@almereyda almereyda changed the title JavaScript Error Backend: low test coverage + Frontend: JavaScript Error Aug 5, 2014
@almereyda almereyda changed the title Backend: low test coverage + Frontend: JavaScript Error New TiddlyWiki builds : Backend: low test coverage + Frontend: JavaScript Error Aug 5, 2014
@almereyda
Copy link
Author

It seems @Jermolene has done some refactorings so the version requirements in README.md of this repo are not correct.

I tried 5.0.13-beta, 5.0.14-prerelease and 5.0.8-beta it with the npm link method and only the last works.

@almereyda
Copy link
Author

As of http://emkayonline.github.io/tw5visjs/ the tag v5.0.9-beta is also known to work.

@almereyda
Copy link
Author

This issue can be considered as being in the queue now.

@almereyda
Copy link
Author

It's being discussed now in [TW5] Getting the tw5visjs plugin to work again. on the TiddlyWikiDev list.

It's known to work up until 5.0.10beta now.

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

No branches or pull requests

1 participant