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

hledger-web temporarily disabled on nightlies per build failure #2164

Closed
DanBurton opened this issue Dec 27, 2016 · 4 comments
Closed

hledger-web temporarily disabled on nightlies per build failure #2164

DanBurton opened this issue Dec 27, 2016 · 4 comments

Comments

@DanBurton
Copy link
Contributor

Ping @simonmichael

I apologize for the abrupt removal of hledger-web from the nightly build plan. I shall investigate tomorrow to discover what precisely caused this regression and what needs to be done to get hledger-web back to building happily on stackage.

[ 7 of 17] Compiling Foundation       ( Foundation.hs, dist/build/Foundation.o )

Foundation.hs:298:23: error:
    • Exception when trying to run compile-time code:
        "

<script language="javascript">
  jQuery(document).ready(function() {



    datesSuggester = new Bloodhound({
      local:#{listToJsonValueObjArrayStr dates},
      limit:100,
      datumTokenizer: function(d) { return [d.value]; },
      queryTokenizer: function(q) { return [q]; }
    });
    datesSuggester.initialize();

    descriptionsSuggester = new Bloodhound({
      local:#{listToJsonValueObjArrayStr descriptions},
      limit:100,
      datumTokenizer: function(d) { return [d.value]; },
      queryTokenizer: function(q) { return [q]; }
    });
    descriptionsSuggester.initialize();

    accountsSuggester = new Bloodhound({
      local:#{listToJsonValueObjArrayStr accts},
      limit:100,
      datumTokenizer: function(d) { return [d.value]; },
      queryTokenizer: function(q) { return [q]; }


    });
    accountsSuggester.initialize();

    enableTypeahead(jQuery('input#date'), datesSuggester);
    enableTypeahead(jQuery('input#description'), descriptionsSuggester);
    enableTypeahead(jQuery('input#account1, input#account2, input#account3, input#account4'), accountsSuggester);

  });

<form#addform method=POST .form>
 <div .form-group>
  <div .row>
   <div .col-md-2 .col-xs-6 .col-sm-6>
    <input #date .typeahead .form-control .input-lg type=text size=15 name=date placeholder="Date" value="#{defdate}">
   <div .col-md-10 .col-xs-6 .col-sm-6>
    <input #description .typeahead .form-control .input-lg type=text size=40 name=description placeholder="Description">
 <div .account-postings>
  $forall n <- postingnums
    ^{postingfields vd n}
 <div .col-md-8 .col-xs-8 .col-sm-8>
 <div .col-md-4 .col-xs-4 .col-sm-4>
  <button type=submit .btn .btn-default .btn-lg name=submit>add
 $if length filepaths > 1
  <br>
  <span class="input-lg">to:
   ^{journalselect filepaths}
 <span style="padding-left:2em;">
  <span .small>
    Enter a value in the last field for
    <a href="#" onclick="addformAddPosting(); return false;">more
    (or ctrl +, ctrl -)
" (line 63, column 8):
unexpected "h"
expecting ">"
@simonmichael
Copy link
Contributor

Thanks @DanBurton. That's a puzzling one..

@DanBurton
Copy link
Contributor Author

Here's the relevant nightly diff. https://www.stackage.org/diff/nightly-2016-12-23/nightly-2016-12-27

My guess is that it was the bump from shakespeare-2.0.11.2 to shakespeare-2.0.12, possibly a bug in the latter. Will investigate further.

@simonmichael
Copy link
Contributor

simonmichael commented Dec 27, 2016 via email

@DanBurton
Copy link
Contributor Author

DanBurton commented Dec 27, 2016

Ok, I've constrained shakespeare < 2.0.12 ( @snoyberg take note ), and hledger-web is back on track for inclusion in the next nightly.

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

2 participants