Skip to content

Instantly share code, notes, and snippets.

@gamb
Last active May 11, 2019 08:33
Show Gist options
  • Save gamb/8813d2e3f2598864a5c2a86377882954 to your computer and use it in GitHub Desktop.
Save gamb/8813d2e3f2598864a5c2a86377882954 to your computer and use it in GitHub Desktop.
Erroring when running `ocamlmerlin -version The Merlin toolkit version %VERSION%, for Ocaml 4.02.3` (Should be 3.2.2)
# calling binary: "ocamlmerlin" with arguments: ("server" "errors" "-protocol" "sexp" "-log-file" "-" "-filename" "/home/gamble/dev/reasonml-playground/src/Greeting.re").
# stdout
((assoc) (class . "exception") (value . "End_of_file
Raised at file \"src/utils/std.ml\", line 656, characters 36-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 56-57
Called from file \"src/frontend/new/new_merlin.ml\", line 97, characters 18-54
") (notifications) (timing (assoc) (total . 1.822) (query . 1.22) (reader . 0.582) (ppx . 0.012) (typer . 0.008) (error . 0.)))
# stderr
# 0.01 Mconfig - normalize
{
"ocaml": {
"include_dirs": [],
"no_std_include": true,
"unsafe": false,
"classic": false,
"principal": false,
"real_paths": true,
"recursive_types": false,
"strict_sequence": false,
"applicative_functors": true,
"unsafe_string": true,
"nopervasives": false,
"strict_formats": false,
"open_modules": [ "Whatever" ],
"ppx": [
"/home/gamble/dev/reasonml-playground/node_modules/bs-platform/lib/bsppx.exe",
"/home/gamble/dev/reasonml-playground/node_modules/bs-platform/lib/reactjs_jsx_ppx_2.exe"
],
"pp": "",
"warnings": {
"actives": [
1, 2, 3, 5, 6, 7, 8, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21,
22, 23, 24, 25, 26, 27, 28, 31, 32, 33, 34, 35, 36, 37, 38, 39, 43,
44, 45, 46, 47, 49
],
"warn_error": []
}
},
"findlib": { "conf": null, "path": [], "toolchain": null },
"merlin": {
"build_path": [
"/home/gamble/dev/reasonml-playground/lib/bs",
"/home/gamble/dev/reasonml-playground/node_modules/bs-platform/lib/ocaml",
"/home/gamble/dev/reasonml-playground/node_modules/reason-react/lib/ocaml",
"/home/gamble/dev/reasonml-playground/lib/bs/src"
],
"source_path": [
"/home/gamble/dev/reasonml-playground/node_modules/bs-platform/lib/ocaml",
"/home/gamble/dev/reasonml-playground/node_modules/reason-react/lib/ocaml",
"/home/gamble/dev/reasonml-playground/src"
],
"cmi_path": [],
"cmt_path": [],
"flags_applied": [
{ "cwd": "/", "flags": [ "-open", "Whatever" ] },
{
"cwd": "/",
"flags": [
"-ppx",
"/home/gamble/dev/reasonml-playground/node_modules/bs-platform/lib/reactjs_jsx_ppx_2.exe"
]
},
{
"cwd": "/",
"flags": [
"-ppx",
"/home/gamble/dev/reasonml-playground/node_modules/bs-platform/lib/bsppx.exe"
]
},
{ "cwd": "/", "flags": [ "-nostdlib", "-color", "always" ] },
{ "cwd": "/", "flags": [ "-w", "-30-40+6+7+27+32..39+44+45+101" ] }
],
"extensions": [],
"suffixes": [
{ "impl": ".ml", "intf": ".mli" },
{ "impl": ".re", "intf": ".rei" }
],
"stdlib": null,
"reader": [],
"protocol": "sexp",
"log_file": "-",
"trace": false,
"flags_to_apply": [],
"packages_to_load": [],
"dotmerlin_loaded": [ "/home/gamble/dev/reasonml-playground/.merlin" ],
"packages_loaded": [],
"packages_path": [],
"failures": [],
"assoc_suffixes": [
{ "extension": ".re", "reader": "reason" },
{ "extension": ".rei", "reader": "reason" }
]
},
"query": {
"filename": "Greeting.re",
"directory": "/home/gamble/dev/reasonml-playground/src",
"printer_width": 0,
"verbosity": 0
}
}
# 0.01 New_commands.run - query
{ "command": "errors" }
# 0.01 New_merlin.run - Command error backtrace
Raised at file "src/utils/std.ml", line 656, characters 36-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 56-57
Called from file "src/frontend/new/new_merlin.ml", line 97, characters 18-54
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment