Giter VIP home page Giter VIP logo

imandra-merlin's Introduction

Imandra-merlin

A simple reader using merlin-extend and Imandra's Syntax module.

Usage

Install imandra-merlin using opam pin add [email protected]:AestheticIntegration/imandra-merlin.git

For the OCaml extension, add FLG -reader imandra -package imandra-base.prelude -open Imandra_prelude to your .merlin file (or configure your merlin extension to do the equivalent).

For the Reason extension add FLG -reader imandra-reason -package imandra-base.prelude -open Imandra_prelude to your .merlin file (or configure your merlin extension to do the equivalent).

Troubleshoot

If trying to use imandra-merlin causes merlin to fail with EOF exception, you might need to:

opam pin add https://github.com/Aestheticintegration/merlin.git
ln -s `which ocamlmerlin-imandra` /usr/local/bin

imandra-merlin's People

Contributors

bronsa avatar c-cube avatar ewenmaclean avatar

Stargazers

 avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar

imandra-merlin's Issues

Imandra-merlin exceptions on syntax error

[~]> echo "let #asd" >> test.iml
[~]> ocamlmerlin single errors -open Imandra_prelude -reader imandra -protocol sexp < test.iml
((assoc) (class . "exception") (value . "Extend_driver.Extension(\"imandra\", \"Syntaxerr.Error\", \"Syntaxerr.Error(_)\")
Raised at file \"src/extend/extend_driver.ml\", line 41, characters 6-43
Called from file \"src/kernel/mreader_extend.ml\", line 74, characters 4-274
Called from file \"src/ocaml/utils/misc.ml\", line 30, characters 20-27
Re-raised at file \"src/ocaml/utils/misc.ml\", line 30, characters 50-57
Called from file \"src/kernel/mreader.ml\", line 159, characters 4-84
Called from file \"src/kernel/mpipeline.ml\", line 88, characters 19-68
Called from file \"camlinternalLazy.ml\", line 27, characters 17-27
Re-raised at file \"camlinternalLazy.ml\", line 34, characters 4-11
Called from file \"src/kernel/mpipeline.ml\", line 13, characters 10-22
Re-raised at file \"src/kernel/mpipeline.ml\", line 15, characters 34-49
Called from file \"camlinternalLazy.ml\", line 27, characters 17-27
Re-raised at file \"camlinternalLazy.ml\", line 34, characters 4-11
Called from file \"camlinternalLazy.ml\", line 27, characters 17-27
Re-raised at file \"camlinternalLazy.ml\", line 34, characters 4-11
Called from file \"src/kernel/mpipeline.ml\", line 13, characters 10-22
Re-raised at file \"src/kernel/mpipeline.ml\", line 15, characters 34-49
Called from file \"camlinternalLazy.ml\", line 27, characters 17-27
Re-raised at file \"camlinternalLazy.ml\", line 34, characters 4-11
Called from file \"camlinternalLazy.ml\", line 27, characters 17-27
Re-raised at file \"camlinternalLazy.ml\", line 34, characters 4-11
Called from file \"src/kernel/mpipeline.ml\", line 13, characters 10-22
Re-raised at file \"src/kernel/mpipeline.ml\", line 15, characters 34-49
Called from file \"camlinternalLazy.ml\", line 27, characters 17-27
Re-raised at file \"camlinternalLazy.ml\", line 34, characters 4-11
Called from file \"src/kernel/mpipeline.ml\" (inlined), line 77, characters 21-30
Called from file \"src/frontend/query_commands.ml\", line 64, characters 14-45
Called from file \"src/frontend/new/new_commands.ml\", line 64, characters 15-53
Called from file \"src/utils/std.ml\", line 654, characters 8-12
Re-raised at file \"src/utils/std.ml\", line 656, characters 30-39
Called from file \"src/ocaml/utils/misc.ml\", line 30, characters 20-27
Re-raised at file \"src/ocaml/utils/misc.ml\", line 30, characters 50-57
Called from file \"src/frontend/new/new_merlin.ml\", line 97, characters 18-54
") (notifications) (timing (assoc) (total . 0.705) (query . 0.137) (reader . 0.555) (ppx . 0.009) (typer . 0.004) (error . 0.)))

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.