Giter Site home page Giter Site logo

resizable's People

Contributors

akoprow avatar

Stargazers

 avatar

Watchers

 avatar  avatar

Forkers

mlstate

resizable's Issues

compiler error

by executing the command:

opa --parser js-like demo_resizable.opa -o resizable.exe

i get the following error message:

Error
    File "demo_resizable.opa", line 15, characters 0-249, (15:0-23:1 | 356-605)
    Function was found of type Server.conf, Server.handler -> void but
    application expects it to be of type
    Server.conf,
    { hd:
      { resources: ordered_map(string, Resource.resource, String.order) } / 'c.b;
      tl: list
      ({ register: { hd: string; tl: list(string) } / 'c.d } /
       { page:  -> xhtml; title: string } / 'c.c) } /
    'c.a -> 'a.
    Types string and
    { css: list(string) } / { doctype: Resource.doctype } /
    { favicon: list(Favicon.t) } /
    { hd: Server.registrable_resource; tl: list(Server.registrable_resource) } /
    { js: list(string) } / { nil } are not compatible
    Hint:
      Error occurred through field hd.

i use version 0.9.4 of opa compiler.

i solved this issue by editing the file demo_resizable.opa

from:

Server.start(Server.http,
  [ { resources: @static_resource_directory("resources") }
  , { register: [ "resources/jquery-ui-1.8.16.custom.css"
                , "resources/style.css"
                ]
    }
  , {title: "jQuery-UI demo", ~page}
  ]
)

to:

Server.start(Server.http,
  [ { resources: @static_resource_directory("resources") }
  , { register:{css: [ "resources/jquery-ui-1.8.16.custom.css"
                , "resources/style.css"
                ]}
    }
  , {title: "jQuery-UI demo", ~page}
  ]
)

i think the syntax has changed and so the additional {css: ... } is necessary.

jojo

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.