Skip to content

Instantly share code, notes, and snippets.

@hcarty
Created July 26, 2017 16:45
Show Gist options
  • Select an option

  • Save hcarty/c52f07d1e04f02f56209801c911a459f to your computer and use it in GitHub Desktop.

Select an option

Save hcarty/c52f07d1e04f02f56209801c911a459f to your computer and use it in GitHub Desktop.
merlin debug log
# 0.50 Mconfig - normalize
{
"ocaml": {
"include_dirs": [],
"no_std_include": false,
"unsafe": false,
"classic": false,
"principal": false,
"real_paths": false,
"recursive_types": false,
"strict_sequence": true,
"applicative_functors": true,
"unsafe_string": true,
"nopervasives": false,
"strict_formats": true,
"open_modules": [],
"ppx": [
"/home/hcarty/projects/upstream/jbuild-merlin-example/_build/default/.ppx/lwt.ppx/ppx.exe --as-ppx --cookie 'library-name=\"m\"'"
],
"pp": "",
"warnings": {
"actives": [
1, 2, 3, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20,
21, 22, 23, 24, 25, 26, 27, 28, 30, 31, 32, 33, 34, 35, 36, 37, 38,
39, 43, 46, 47, 49, 50, 51, 52, 53, 54, 55, 56, 57, 61
],
"warn_error": [
1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19,
20, 21, 22, 23, 24, 25, 26, 27, 28, 29, 30, 31, 32, 33, 34, 35, 36,
37, 38, 39, 40, 41, 42, 43, 44, 45, 46, 47, 48, 49, 50, 51, 52, 53,
54, 55, 56, 57, 58, 59, 60, 61
]
}
},
"findlib": { "conf": null, "path": [] },
"merlin": {
"build_path": [
"/home/hcarty/projects/upstream/jbuild-merlin-example/_build/default/src"
],
"source_path": [],
"cmi_path": [],
"cmt_path": [],
"flags_applied": [
{
"cwd": "/",
"flags": [
"-ppx",
"/home/hcarty/projects/upstream/jbuild-merlin-example/_build/default/.ppx/lwt.ppx/ppx.exe --as-ppx --cookie 'library-name=\"m\"'"
]
},
{
"cwd": "/",
"flags": [
"-w", "@a-4-29-40-41-42-44-45-48-58-59-60-40", "-strict-sequence",
"-strict-formats", "-short-paths", "-keep-locs"
]
}
],
"extensions": [],
"suffixes": [
{ "impl": ".ml", "intf": ".mli" },
{ "impl": ".re", "intf": ".rei" }
],
"stdlib": null,
"reader": [],
"protocol": "json",
"log_file": "-",
"trace": false,
"flags_to_apply": [],
"packages_to_load": [],
"dotmerlin_loaded": [
"/home/hcarty/projects/upstream/jbuild-merlin-example/src/.merlin"
],
"packages_loaded": [
"bigarray", "bytes", "lwt", "lwt.log", "lwt.unix", "result", "unix"
],
"packages_path": [
"/home/hcarty/.opam/latest-lwt/lib/ocaml",
"/home/hcarty/.opam/latest-lwt/lib/ocaml",
"/home/hcarty/.opam/latest-lwt/lib/bytes",
"/home/hcarty/.opam/latest-lwt/lib/result",
"/home/hcarty/.opam/latest-lwt/lib/lwt",
"/home/hcarty/.opam/latest-lwt/lib/lwt",
"/home/hcarty/.opam/latest-lwt/lib/lwt"
],
"failures": []
},
"query": {
"filename": "m.ml",
"directory": "/home/hcarty/projects/upstream/jbuild-merlin-example/src",
"printer_width": 0,
"verbosity": 0
}
}
# 0.50 New_commands.run - query
{
"command": "type-enclosing",
"cursor": null,
"index": 0,
"position": { "line": 1, "column": 4 }
}
# 0.50 reader - run
extension("m.ml") = ".ml"
# 0.50 Mconfig - build_path
10 items in path, 6 after deduplication
# 0.50 Mconfig - normalize
{
"ocaml": {
"include_dirs": [],
"no_std_include": false,
"unsafe": false,
"classic": false,
"principal": false,
"real_paths": false,
"recursive_types": false,
"strict_sequence": true,
"applicative_functors": true,
"unsafe_string": true,
"nopervasives": false,
"strict_formats": true,
"open_modules": [],
"ppx": [
"/home/hcarty/projects/upstream/jbuild-merlin-example/_build/default/.ppx/lwt.ppx/ppx.exe --as-ppx --cookie 'library-name=\"m\"'"
],
"pp": "",
"warnings": {
"actives": [
1, 2, 3, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20,
21, 22, 23, 24, 25, 26, 27, 28, 30, 31, 32, 33, 34, 35, 36, 37, 38,
39, 43, 46, 47, 49, 50, 51, 52, 53, 54, 55, 56, 57, 61
],
"warn_error": [
1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19,
20, 21, 22, 23, 24, 25, 26, 27, 28, 29, 30, 31, 32, 33, 34, 35, 36,
37, 38, 39, 40, 41, 42, 43, 44, 45, 46, 47, 48, 49, 50, 51, 52, 53,
54, 55, 56, 57, 58, 59, 60, 61
]
}
},
"findlib": { "conf": null, "path": [] },
"merlin": {
"build_path": [
"/home/hcarty/projects/upstream/jbuild-merlin-example/_build/default/src"
],
"source_path": [],
"cmi_path": [],
"cmt_path": [],
"flags_applied": [
{
"cwd": "/",
"flags": [
"-ppx",
"/home/hcarty/projects/upstream/jbuild-merlin-example/_build/default/.ppx/lwt.ppx/ppx.exe --as-ppx --cookie 'library-name=\"m\"'"
]
},
{
"cwd": "/",
"flags": [
"-w", "@a-4-29-40-41-42-44-45-48-58-59-60-40", "-strict-sequence",
"-strict-formats", "-short-paths", "-keep-locs"
]
}
],
"extensions": [],
"suffixes": [
{ "impl": ".ml", "intf": ".mli" },
{ "impl": ".re", "intf": ".rei" }
],
"stdlib": null,
"reader": [],
"protocol": "json",
"log_file": "-",
"trace": false,
"flags_to_apply": [],
"packages_to_load": [],
"dotmerlin_loaded": [
"/home/hcarty/projects/upstream/jbuild-merlin-example/src/.merlin"
],
"packages_loaded": [
"bigarray", "bytes", "lwt", "lwt.log", "lwt.unix", "result", "unix"
],
"packages_path": [
"/home/hcarty/.opam/latest-lwt/lib/ocaml",
"/home/hcarty/.opam/latest-lwt/lib/ocaml",
"/home/hcarty/.opam/latest-lwt/lib/bytes",
"/home/hcarty/.opam/latest-lwt/lib/result",
"/home/hcarty/.opam/latest-lwt/lib/lwt",
"/home/hcarty/.opam/latest-lwt/lib/lwt",
"/home/hcarty/.opam/latest-lwt/lib/lwt"
],
"failures": []
},
"query": {
"filename": "m.ml",
"directory": "/home/hcarty/projects/upstream/jbuild-merlin-example/src",
"printer_width": 0,
"verbosity": 0
}
}
# 0.50 Mppx - changing_directory
/home/hcarty/projects/upstream/jbuild-merlin-example/src
# 0.52 Mppx - rewrite
failed with Error while running external preprocessor
Command line: /home/hcarty/projects/upstream/jbuild-merlin-example/_build/default/.ppx/lwt.ppx/ppx.exe --as-ppx --cookie 'library-name="m"' '/tmp/camlppxd65fb3' '/tmp/camlppx67b4c8' 1>/dev/null 2>/dev/null
# 0.52 Mppx - changing_directory
/
# 0.52 Mconfig - build_path
10 items in path, 6 after deduplication
# 0.52 Mtyper - pop_cache
found entry for this configuration
# 0.52 File_cache(File_exists) - read
reusing "/home/hcarty/projects/upstream/jbuild-merlin-example/src/pervasives.cmi"
# 0.52 dir_cache - reuse cache
/home/hcarty/projects/upstream/jbuild-merlin-example/src
# 0.52 File_cache(File_exists) - read
reusing "/home/hcarty/projects/upstream/jbuild-merlin-example/src/Pervasives.cmi"
# 0.52 File_cache(File_exists) - read
reusing "/home/hcarty/.opam/latest-lwt/lib/lwt/pervasives.cmi"
# 0.52 dir_cache - reuse cache
/home/hcarty/.opam/latest-lwt/lib/lwt
# 0.52 File_cache(File_exists) - read
reusing "/home/hcarty/.opam/latest-lwt/lib/lwt/Pervasives.cmi"
# 0.52 dir_cache - reuse cache
/home/hcarty/.opam/latest-lwt/lib/lwt
# 0.52 File_cache(File_exists) - read
reusing "/home/hcarty/.opam/latest-lwt/lib/lwt/pervasives.cmi"
# 0.52 dir_cache - reuse cache
/home/hcarty/.opam/latest-lwt/lib/lwt
# 0.52 File_cache(File_exists) - read
reusing "/home/hcarty/.opam/latest-lwt/lib/lwt/Pervasives.cmi"
# 0.52 dir_cache - reuse cache
/home/hcarty/.opam/latest-lwt/lib/lwt
# 0.52 File_cache(File_exists) - read
reusing "/home/hcarty/.opam/latest-lwt/lib/lwt/pervasives.cmi"
# 0.52 dir_cache - reuse cache
/home/hcarty/.opam/latest-lwt/lib/lwt
# 0.52 File_cache(File_exists) - read
reusing "/home/hcarty/.opam/latest-lwt/lib/lwt/Pervasives.cmi"
# 0.52 File_cache(File_exists) - read
reusing "/home/hcarty/.opam/latest-lwt/lib/result/pervasives.cmi"
# 0.52 dir_cache - reuse cache
/home/hcarty/.opam/latest-lwt/lib/result
# 0.52 File_cache(File_exists) - read
reusing "/home/hcarty/.opam/latest-lwt/lib/result/Pervasives.cmi"
# 0.52 File_cache(File_exists) - read
reusing "/home/hcarty/.opam/latest-lwt/lib/bytes/pervasives.cmi"
# 0.52 dir_cache - reuse cache
/home/hcarty/.opam/latest-lwt/lib/bytes
# 0.52 File_cache(File_exists) - read
reusing "/home/hcarty/.opam/latest-lwt/lib/bytes/Pervasives.cmi"
# 0.52 File_cache(File_exists) - read
reusing "/home/hcarty/.opam/latest-lwt/lib/ocaml/pervasives.cmi"
# 0.52 dir_cache - reuse cache
/home/hcarty/.opam/latest-lwt/lib/ocaml
# 0.52 File_cache(Cmi_cache) - read
reusing "/home/hcarty/.opam/latest-lwt/lib/ocaml/pervasives.cmi"
# 0.52 Mtyper - pop_cache
consistent state, reusing
# 0.52 Mtyper - compatible_prefix
reusing 1 items, 0 new items to type
# 0.52 New_commands.run - result
[
{
"start": { "line": 1, "col": 4 },
"end": { "line": 1, "col": 5 },
"type": "'a -> 'b",
"tail": "no"
}
]
# 0.53 Mconfig - normalize
{
"ocaml": {
"include_dirs": [],
"no_std_include": false,
"unsafe": false,
"classic": false,
"principal": false,
"real_paths": false,
"recursive_types": false,
"strict_sequence": true,
"applicative_functors": true,
"unsafe_string": true,
"nopervasives": false,
"strict_formats": true,
"open_modules": [],
"ppx": [
"/home/hcarty/projects/upstream/jbuild-merlin-example/_build/default/.ppx/lwt.ppx/ppx.exe --as-ppx --cookie 'library-name=\"m\"'"
],
"pp": "",
"warnings": {
"actives": [
1, 2, 3, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20,
21, 22, 23, 24, 25, 26, 27, 28, 30, 31, 32, 33, 34, 35, 36, 37, 38,
39, 43, 46, 47, 49, 50, 51, 52, 53, 54, 55, 56, 57, 61
],
"warn_error": [
1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19,
20, 21, 22, 23, 24, 25, 26, 27, 28, 29, 30, 31, 32, 33, 34, 35, 36,
37, 38, 39, 40, 41, 42, 43, 44, 45, 46, 47, 48, 49, 50, 51, 52, 53,
54, 55, 56, 57, 58, 59, 60, 61
]
}
},
"findlib": { "conf": null, "path": [] },
"merlin": {
"build_path": [
"/home/hcarty/projects/upstream/jbuild-merlin-example/_build/default/src"
],
"source_path": [],
"cmi_path": [],
"cmt_path": [],
"flags_applied": [
{
"cwd": "/",
"flags": [
"-ppx",
"/home/hcarty/projects/upstream/jbuild-merlin-example/_build/default/.ppx/lwt.ppx/ppx.exe --as-ppx --cookie 'library-name=\"m\"'"
]
},
{
"cwd": "/",
"flags": [
"-w", "@a-4-29-40-41-42-44-45-48-58-59-60-40", "-strict-sequence",
"-strict-formats", "-short-paths", "-keep-locs"
]
}
],
"extensions": [],
"suffixes": [
{ "impl": ".ml", "intf": ".mli" },
{ "impl": ".re", "intf": ".rei" }
],
"stdlib": null,
"reader": [],
"protocol": "json",
"log_file": "-",
"trace": false,
"flags_to_apply": [],
"packages_to_load": [],
"dotmerlin_loaded": [
"/home/hcarty/projects/upstream/jbuild-merlin-example/src/.merlin"
],
"packages_loaded": [
"bigarray", "bytes", "lwt", "lwt.log", "lwt.unix", "result", "unix"
],
"packages_path": [
"/home/hcarty/.opam/latest-lwt/lib/ocaml",
"/home/hcarty/.opam/latest-lwt/lib/ocaml",
"/home/hcarty/.opam/latest-lwt/lib/bytes",
"/home/hcarty/.opam/latest-lwt/lib/result",
"/home/hcarty/.opam/latest-lwt/lib/lwt",
"/home/hcarty/.opam/latest-lwt/lib/lwt",
"/home/hcarty/.opam/latest-lwt/lib/lwt"
],
"failures": []
},
"query": {
"filename": "m.ml",
"directory": "/home/hcarty/projects/upstream/jbuild-merlin-example/src",
"printer_width": 0,
"verbosity": 0
}
}
# 0.53 New_commands.run - query
{ "command": "errors" }
# 0.53 reader - run
extension("m.ml") = ".ml"
# 0.53 Mconfig - build_path
10 items in path, 6 after deduplication
# 0.53 Mconfig - normalize
{
"ocaml": {
"include_dirs": [],
"no_std_include": false,
"unsafe": false,
"classic": false,
"principal": false,
"real_paths": false,
"recursive_types": false,
"strict_sequence": true,
"applicative_functors": true,
"unsafe_string": true,
"nopervasives": false,
"strict_formats": true,
"open_modules": [],
"ppx": [
"/home/hcarty/projects/upstream/jbuild-merlin-example/_build/default/.ppx/lwt.ppx/ppx.exe --as-ppx --cookie 'library-name=\"m\"'"
],
"pp": "",
"warnings": {
"actives": [
1, 2, 3, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20,
21, 22, 23, 24, 25, 26, 27, 28, 30, 31, 32, 33, 34, 35, 36, 37, 38,
39, 43, 46, 47, 49, 50, 51, 52, 53, 54, 55, 56, 57, 61
],
"warn_error": [
1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19,
20, 21, 22, 23, 24, 25, 26, 27, 28, 29, 30, 31, 32, 33, 34, 35, 36,
37, 38, 39, 40, 41, 42, 43, 44, 45, 46, 47, 48, 49, 50, 51, 52, 53,
54, 55, 56, 57, 58, 59, 60, 61
]
}
},
"findlib": { "conf": null, "path": [] },
"merlin": {
"build_path": [
"/home/hcarty/projects/upstream/jbuild-merlin-example/_build/default/src"
],
"source_path": [],
"cmi_path": [],
"cmt_path": [],
"flags_applied": [
{
"cwd": "/",
"flags": [
"-ppx",
"/home/hcarty/projects/upstream/jbuild-merlin-example/_build/default/.ppx/lwt.ppx/ppx.exe --as-ppx --cookie 'library-name=\"m\"'"
]
},
{
"cwd": "/",
"flags": [
"-w", "@a-4-29-40-41-42-44-45-48-58-59-60-40", "-strict-sequence",
"-strict-formats", "-short-paths", "-keep-locs"
]
}
],
"extensions": [],
"suffixes": [
{ "impl": ".ml", "intf": ".mli" },
{ "impl": ".re", "intf": ".rei" }
],
"stdlib": null,
"reader": [],
"protocol": "json",
"log_file": "-",
"trace": false,
"flags_to_apply": [],
"packages_to_load": [],
"dotmerlin_loaded": [
"/home/hcarty/projects/upstream/jbuild-merlin-example/src/.merlin"
],
"packages_loaded": [
"bigarray", "bytes", "lwt", "lwt.log", "lwt.unix", "result", "unix"
],
"packages_path": [
"/home/hcarty/.opam/latest-lwt/lib/ocaml",
"/home/hcarty/.opam/latest-lwt/lib/ocaml",
"/home/hcarty/.opam/latest-lwt/lib/bytes",
"/home/hcarty/.opam/latest-lwt/lib/result",
"/home/hcarty/.opam/latest-lwt/lib/lwt",
"/home/hcarty/.opam/latest-lwt/lib/lwt",
"/home/hcarty/.opam/latest-lwt/lib/lwt"
],
"failures": []
},
"query": {
"filename": "m.ml",
"directory": "/home/hcarty/projects/upstream/jbuild-merlin-example/src",
"printer_width": 0,
"verbosity": 0
}
}
# 0.53 Mppx - changing_directory
/home/hcarty/projects/upstream/jbuild-merlin-example/src
# 0.53 Mppx - rewrite
failed with Error while running external preprocessor
Command line: /home/hcarty/projects/upstream/jbuild-merlin-example/_build/default/.ppx/lwt.ppx/ppx.exe --as-ppx --cookie 'library-name="m"' '/tmp/camlppx6f5247' '/tmp/camlppx5948fe' 1>/dev/null 2>/dev/null
# 0.53 Mppx - changing_directory
/
# 0.53 Mconfig - build_path
10 items in path, 6 after deduplication
# 0.53 Mtyper - pop_cache
found entry for this configuration
# 0.53 File_cache(File_exists) - read
reusing "/home/hcarty/projects/upstream/jbuild-merlin-example/src/pervasives.cmi"
# 0.53 dir_cache - reuse cache
/home/hcarty/projects/upstream/jbuild-merlin-example/src
# 0.53 File_cache(File_exists) - read
reusing "/home/hcarty/projects/upstream/jbuild-merlin-example/src/Pervasives.cmi"
# 0.53 File_cache(File_exists) - read
reusing "/home/hcarty/.opam/latest-lwt/lib/lwt/pervasives.cmi"
# 0.53 dir_cache - reuse cache
/home/hcarty/.opam/latest-lwt/lib/lwt
# 0.53 File_cache(File_exists) - read
reusing "/home/hcarty/.opam/latest-lwt/lib/lwt/Pervasives.cmi"
# 0.53 dir_cache - reuse cache
/home/hcarty/.opam/latest-lwt/lib/lwt
# 0.53 File_cache(File_exists) - read
reusing "/home/hcarty/.opam/latest-lwt/lib/lwt/pervasives.cmi"
# 0.53 dir_cache - reuse cache
/home/hcarty/.opam/latest-lwt/lib/lwt
# 0.53 File_cache(File_exists) - read
reusing "/home/hcarty/.opam/latest-lwt/lib/lwt/Pervasives.cmi"
# 0.53 dir_cache - reuse cache
/home/hcarty/.opam/latest-lwt/lib/lwt
# 0.53 File_cache(File_exists) - read
reusing "/home/hcarty/.opam/latest-lwt/lib/lwt/pervasives.cmi"
# 0.53 dir_cache - reuse cache
/home/hcarty/.opam/latest-lwt/lib/lwt
# 0.53 File_cache(File_exists) - read
reusing "/home/hcarty/.opam/latest-lwt/lib/lwt/Pervasives.cmi"
# 0.53 File_cache(File_exists) - read
reusing "/home/hcarty/.opam/latest-lwt/lib/result/pervasives.cmi"
# 0.53 dir_cache - reuse cache
/home/hcarty/.opam/latest-lwt/lib/result
# 0.53 File_cache(File_exists) - read
reusing "/home/hcarty/.opam/latest-lwt/lib/result/Pervasives.cmi"
# 0.53 File_cache(File_exists) - read
reusing "/home/hcarty/.opam/latest-lwt/lib/bytes/pervasives.cmi"
# 0.53 dir_cache - reuse cache
/home/hcarty/.opam/latest-lwt/lib/bytes
# 0.53 File_cache(File_exists) - read
reusing "/home/hcarty/.opam/latest-lwt/lib/bytes/Pervasives.cmi"
# 0.53 File_cache(File_exists) - read
reusing "/home/hcarty/.opam/latest-lwt/lib/ocaml/pervasives.cmi"
# 0.53 dir_cache - reuse cache
/home/hcarty/.opam/latest-lwt/lib/ocaml
# 0.53 File_cache(Cmi_cache) - read
reusing "/home/hcarty/.opam/latest-lwt/lib/ocaml/pervasives.cmi"
# 0.53 Mtyper - pop_cache
consistent state, reusing
# 0.53 Mtyper - compatible_prefix
reusing 1 items, 0 new items to type
# 0.53 New_commands.run - result
[
{
"start": { "line": 2, "col": 8 },
"end": { "line": 2, "col": 11 },
"type": "error",
"sub": [],
"valid": true,
"message": "Uninterpreted extension 'lwt'."
}
]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment