Skip to content
This repository has been archived by the owner on Nov 30, 2021. It is now read-only.

Installing the d3.tsd.ts typings fails with zero results #2

Closed
thinkh opened this issue Jul 5, 2016 · 2 comments
Closed

Installing the d3.tsd.ts typings fails with zero results #2

thinkh opened this issue Jul 5, 2016 · 2 comments

Comments

@thinkh
Copy link
Contributor

thinkh commented Jul 5, 2016

Running ./manage.sh resolve_dev (re-)installs the typings of all plugins.

Since a couple of days we get this output:

--- installing tsd dependencies ---
+ tsd install es6-promise --commit 35119c

 - es6-promise / es6-promise : 35119c : 2015-05-06 23:17

   35119c | 2015-05-06 23:17 | Jason Freeman @ JsonFreeman
    | Add the actual typing fix

>> running install..

>> written zero files
+ set +vx
+ tsd install marked --commit 935bfa

 - marked / marked : 935bfa : 2015-07-24 22:21

   935bfa | 2015-07-24 22:21 | Matthias Bussonnier @ Carreau
    | [marked] add missing `renderer?` option on marked

>> running install..

>> written zero files
+ set +vx
+ tsd install d3 --commit 1e6796

>> zero results
+ set +vx
+ tsd install jquery --commit dca2d4

 - jquery / jquery : dca2d4 : 2015-07-10 16:48

   dca2d4 | 2015-07-10 16:48 | John Kurlak @ JohnKurlak
    | Add method property to ajaxSettings

>> running install..

>> written zero files
+ set +vx
+ tsd rebundle

>> nothing rebundled
+ set +vx

Installing d3.tsd.ts typings has >> zero results. In following the compilation of the tsd files using grunt tsd:dist fails with the following output:

### Fast Compile >>tsd.d.ts
### Fast Compile >>tsd.gen.d.ts
Using tsc v1.8.10

plugins/caleydo_clue/annotation.ts(8,21): error TS2307: Cannot find module 'd3'.
plugins/caleydo_clue/dummy.ts(10,21): error TS2307: Cannot find module 'd3'.
plugins/caleydo_clue/mode.ts(6,21): error TS2307: Cannot find module 'd3'.
plugins/caleydo_clue/player.ts(7,21): error TS2307: Cannot find module 'd3'.
plugins/caleydo_clue/prov.ts(971,69): error TS2304: Cannot find name 'd3'.
plugins/caleydo_clue/provvis.ts(13,21): error TS2307: Cannot find module 'd3'.
plugins/caleydo_clue/storyvis.ts(12,21): error TS2307: Cannot find module 'd3'.
plugins/caleydo_clue/template.ts(20,21): error TS2307: Cannot find module 'd3'.
plugins/caleydo_d3/ajax_adapter_d3.ts(6,21): error TS2307: Cannot find module 'd3'.
plugins/caleydo_d3/d3util.ts(10,21): error TS2307: Cannot find module 'd3'.
plugins/caleydo_d3/databrowser.ts(7,21): error TS2307: Cannot find module 'd3'.
plugins/caleydo_d3/layout_d3util.ts(6,21): error TS2307: Cannot find module 'd3'.
plugins/caleydo_d3/link.ts(13,21): error TS2307: Cannot find module 'd3'.
plugins/caleydo_d3/link_renderer.ts(8,21): error TS2307: Cannot find module 'd3'.
plugins/caleydo_d3/parser.ts(6,21): error TS2307: Cannot find module 'd3'.
plugins/caleydo_d3/selectioninfo.ts(4,21): error TS2307: Cannot find module 'd3'.
plugins/caleydo_d3/tooltip.ts(7,21): error TS2307: Cannot find module 'd3'.
plugins/caleydo_vis/axis.ts(11,21): error TS2307: Cannot find module 'd3'.
plugins/caleydo_vis/barplot.ts(11,21): error TS2307: Cannot find module 'd3'.
plugins/caleydo_vis/box.ts(11,21): error TS2307: Cannot find module 'd3'.
plugins/caleydo_vis/distribution.ts(11,21): error TS2307: Cannot find module 'd3'.
plugins/caleydo_vis/force_directed_graph.ts(11,21): error TS2307: Cannot find module 'd3'.
plugins/caleydo_vis/heatmap.ts(9,21): error TS2307: Cannot find module 'd3'.
plugins/caleydo_vis/kaplanmeier.ts(7,21): error TS2307: Cannot find module 'd3'.
plugins/caleydo_vis/scatterplot.ts(10,21): error TS2307: Cannot find module 'd3'.
plugins/caleydo_vis/table.ts(7,21): error TS2307: Cannot find module 'd3'.
plugins/clue_dummy/cmds.ts(7,21): error TS2307: Cannot find module 'd3'.
plugins/gapminder/gapminder.ts(15,21): error TS2307: Cannot find module 'd3'.
plugins/sample_vis/main.ts(11,21): error TS2307: Cannot find module 'd3'.
plugins/stratomex_js/Column.ts(4,21): error TS2307: Cannot find module 'd3'.
@thinkh
Copy link
Contributor Author

thinkh commented Jul 5, 2016

After tracking this issue down I discovered that tsd install d3 --commit 1e6796 cannot be found, because tsd query d3 --history reads only the most recent commits (basically the first page). As consequence the commit 1e6796 cannot be queried anymore.

There are the following options to solve this problem:

  1. Change the tsd source code to query longer history --> does not work since tsd is deprecated
  2. Clone the commit 1e6796 into separate repository and use it here
  3. Fix ts compile errors in Caleydo code to support the most recent version of the d3.tsd.ts

@thinkh
Copy link
Contributor Author

thinkh commented Jul 5, 2016

To get the most recent update run the following commands:

  1. ./manage.sh pull to update repos
  2. ./manage.sh resolve to download the newest typings
  3. ./manage.sh server to compile and run Caleydo

@thinkh thinkh added the bug label Jul 5, 2016
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant