From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Original-To: caml-list@sympa.inria.fr Delivered-To: caml-list@sympa.inria.fr Received: from mail4-relais-sop.national.inria.fr (mail4-relais-sop.national.inria.fr [192.134.164.105]) by sympa.inria.fr (Postfix) with ESMTPS id 11E887EE20 for ; Sat, 17 Nov 2012 09:35:52 +0100 (CET) Received-SPF: None (mail4-smtp-sop.national.inria.fr: no sender authenticity information available from domain of edwin+ml-ocaml@etorok.net) identity=pra; client-ip=176.9.138.55; receiver=mail4-smtp-sop.national.inria.fr; envelope-from="edwin+ml-ocaml@etorok.net"; x-sender="edwin+ml-ocaml@etorok.net"; x-conformance=sidf_compatible Received-SPF: Pass (mail4-smtp-sop.national.inria.fr: domain of edwin+ml-ocaml@etorok.net designates 176.9.138.55 as permitted sender) identity=mailfrom; client-ip=176.9.138.55; receiver=mail4-smtp-sop.national.inria.fr; envelope-from="edwin+ml-ocaml@etorok.net"; x-sender="edwin+ml-ocaml@etorok.net"; x-conformance=sidf_compatible; x-record-type="v=spf1" Received-SPF: Pass (mail4-smtp-sop.national.inria.fr: domain of postmaster@mail.etorok.net designates 176.9.138.55 as permitted sender) identity=helo; client-ip=176.9.138.55; receiver=mail4-smtp-sop.national.inria.fr; envelope-from="edwin+ml-ocaml@etorok.net"; x-sender="postmaster@mail.etorok.net"; x-conformance=sidf_compatible; x-record-type="v=spf1" X-IronPort-Anti-Spam-Filtered: true X-IronPort-Anti-Spam-Result: Av8EAJZLp1CwCYo3/2dsb2JhbABFgmzAQoEIgh4BAQQBQAEBNgIECwsYCRYPCQMCAQIBRRMIAogDBwOrP4Q3AQWPEgaMNIFmgyeVf5BDgnE X-IronPort-AV: E=Sophos;i="4.83,270,1352070000"; d="scan'208";a="162817504" Received: from mail.etorok.net ([176.9.138.55]) by mail4-smtp-sop.national.inria.fr with ESMTP; 17 Nov 2012 09:35:51 +0100 Received: from [IPv6:2a02:2f02:1022:9239:1e6f:65ff:fe23:db0d] (unknown [IPv6:2a02:2f02:1022:9239:1e6f:65ff:fe23:db0d]) by mail.etorok.net (Postfix) with ESMTPSA id D335F46B0 for ; Sat, 17 Nov 2012 09:35:49 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=etorok.net; s=MAILOUT; t=1353141349; bh=fvWw0E1q+tKpcLmOuwml+Z67iMlWpWdXQjZi10gPWgQ=; h=Message-ID:Date:From:MIME-Version:To:Subject:References: In-Reply-To:Content-Type:Content-Transfer-Encoding; b=Atj5LGm34w+6E2riu29mzfSSjF5lqz7ZTuoZYrqfrwdAa08MMA3RVblW9QwX7VW8l QkpPb7mVk/f65nazHprz1pS/ppG6AN+z9d8UCAEIwvgY3R6F5JdITNPUsJgExqywNV bKHneJjNW6myHRpNAKJfPJvjFID9vUNjjaer+x8A= Message-ID: <50A74C64.5010703@etorok.net> Date: Sat, 17 Nov 2012 10:35:48 +0200 From: =?ISO-8859-1?Q?T=F6r=F6k_Edwin?= User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:10.0.10) Gecko/20121027 Icedove/10.0.10 MIME-Version: 1.0 To: caml-list@inria.fr References: <50A6EBAD.8050204@gmail.com> In-Reply-To: <50A6EBAD.8050204@gmail.com> Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit X-Virus-Scanned: clamav-milter 0.97.6 at mail X-Virus-Status: Clean Subject: Re: [Caml-list] OCaml linting On 11/17/2012 03:43 AM, Edgar Friendly wrote: > I'm playing with Sublime Text 2, and find it has an interesting plugin to do active linting of a program under development. What's the set of compiler options that will produce warnings/errors the > quickest, for using ocamlc to quickly check for syntax and maybe even type errors in a partial program? For syntax: camlp4o(.opt), for type errors: build a .cmi file (or .inferred.mli?) > Does anyone already have a process for this under emacs, using auto-recompile or other plugins? I don't use emacs, but under Vim you can use the syntastic plugin for syntax checks on file save (via camlp4o). Or to get type errors set this: let g:syntastic_ocaml_use_ocamlbuild = 1 Best regards, --Edwin