{"id":15211080,"url":"https://github.com/hackwaly/vscode-ocaml","last_synced_at":"2025-08-20T14:31:38.909Z","repository":{"id":56025658,"uuid":"60503507","full_name":"hackwaly/vscode-ocaml","owner":"hackwaly","description":"An extension for VS Code which provides support for the OCaml language.","archived":false,"fork":false,"pushed_at":"2020-11-30T14:38:48.000Z","size":1710,"stargazers_count":170,"open_issues_count":34,"forks_count":26,"subscribers_count":12,"default_branch":"master","last_synced_at":"2024-12-07T01:42:08.237Z","etag":null,"topics":["ocaml","vscode-extension"],"latest_commit_sha":null,"homepage":null,"language":"TypeScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/hackwaly.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE.TXT","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2016-06-06T06:22:23.000Z","updated_at":"2024-05-23T15:25:39.000Z","dependencies_parsed_at":"2022-08-15T11:40:34.757Z","dependency_job_id":null,"html_url":"https://github.com/hackwaly/vscode-ocaml","commit_stats":null,"previous_names":[],"tags_count":2,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hackwaly%2Fvscode-ocaml","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hackwaly%2Fvscode-ocaml/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hackwaly%2Fvscode-ocaml/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hackwaly%2Fvscode-ocaml/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/hackwaly","download_url":"https://codeload.github.com/hackwaly/vscode-ocaml/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":230431103,"owners_count":18224655,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["ocaml","vscode-extension"],"created_at":"2024-09-28T08:03:29.678Z","updated_at":"2024-12-19T12:10:04.126Z","avatar_url":"https://github.com/hackwaly.png","language":"TypeScript","funding_links":[],"categories":["Developer Tools"],"sub_categories":[],"readme":"# If you are seeking for an OCaml debugger vscode extension. Take a look at [ocamlearlybird](https://github.com/hackwaly/ocamlearlybird/).\n\n\u003e Deprecated. Please use [this official extension](https://github.com/ocamllabs/vscode-ocaml-platform) instead.\n\n## Features\n\n* Basic syntax highlighting for `*.ml`, `*.mli`, `*.mly` and `*.mll`. _ported from textmate_\n* Auto-completion (aka. IntelliSense). _powered by ocamlmerlin_\n* Error check on the fly (aka. Lint). _powered by ocamlmerlin_\n* Show type information on hover. _powered by ocamlmerlin_\n* Peek and goto definition (also provide a symbol list). _powered by ocamlmerlin_\n* Auto indent on your type. _powered by ocp-indent_\n* Debugger integrated. _powered by ocamldebug_\n* UTop integrated. _since v0.6.2_\n\n![features](https://i.giphy.com/26BRsQmMAHdg1LNRe.gif)\n\n![debugger](https://i.giphy.com/l46Cx0HvCXnUrVOkU.gif)\n\n## Requirements\n\n```shell\nopam install merlin\nopam install ocp-indent\n```\n\n## Extension Settings\n\nThis extension contributes the following settings:\n\n* `ocaml.ocpIndentPath`: Path to ocp-indent.\n* `ocaml.merlinPath`: Path to ocamlmerlin.\n* `ocaml.replPath.windows` or `ocaml.replPath.unix`: Path to ocaml REPL, eg \"ocaml.exe\", \"utop\".\n* `ocaml.lintDelay`: Time to delay lint when made changes.\n* `ocaml.lintOnChange`: Do lint when made changes.\n* `ocaml.lintOnSave`: Do lint when save document.\n\n## Tips\n\n1). In VS Code, `*.ml` is associated to F# by default, You need manually config this in `settings.json` to make OCaml mode work with `*.ml` file.\n```json\n\t\"files.associations\": {\n\t\t\"*.ml\": \"ocaml\",\n\t\t\"*.mli\": \"ocaml\"\n\t}\n```\n2). You need build with `-bin-annot` flag and set build folder in `.merlin` to get goto definitions works cross files.\n\n3). Did you know vscode-ocaml works perfect with `.vscode/tasks.json`. Here is an example:\n\n```Makefile\n# Makefile\nbuild:\n\tocamlbuild -use-ocamlfind main.d.byte\nclean:\n\tocamlbuild -clean\n.PHONY: build clean\n```\n\n```js\n// .vscode/tasks.json\n{\n\t\"version\": \"0.1.0\",\n\t\"command\": \"make\",\n\t\"showOutput\": \"always\",\n\t\"tasks\": [{\n\t\t\"taskName\": \"clean\"\n\t}, {\n\t\t\"taskName\": \"build\",\n\t\t\"problemMatcher\": \"$ocamlc\"\n\t}]\n}\n```\n\n```js\n// .vscode/launch.json\n{\n    \"version\": \"0.2.0\",\n    \"configurations\": [\n        {\n            \"name\": \"OCaml\",\n            \"type\": \"ocamldebug\",\n            \"request\": \"launch\",\n            \"program\": \"${workspaceRoot}/main.d.byte\",\n            \"stopOnEntry\": false,\n            \"preLaunchTask\": \"build\" // Build before launch\n        }\n    ]\n}\n```\n\n## Known Issues\n\nSee https://github.com/hackwaly/vscode-ocaml/issues?q=is%3Aopen+is%3Aissue+label%3Abug\n\n## Release Notes\n\n### 0.6.0\n\nSupport launch debug target in Integrated Terminal.\nAdd a command to switch between module implementation/signature.\nSupport Find references in file.\nUTop integrated.\nAdd opam switch command.\n[More Info](https://github.com/hackwaly/vscode-ocaml/milestone/3?closed=1)\n\n### 0.5.0\n\nSupport debug variable paging.\nSupport highlight occurrences and refactor in file.\n[More Info](https://github.com/hackwaly/vscode-ocaml/milestone/1?closed=1)\n\n### 0.4.0\n\nAdd Windows debug support.\nAdd remote debug support.\n\n### 0.3.0\n\nAdd keywords completion.\nAdd Menhir syntax over OCamlyacc syntax.\n\n### 0.2.0\n\nAdd debugger (ocamldebug) support.\n\n### 0.1.0\n\nFirst published version.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fhackwaly%2Fvscode-ocaml","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fhackwaly%2Fvscode-ocaml","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fhackwaly%2Fvscode-ocaml/lists"}