Message from discussion
Maven support dropped?
Received: by 10.180.82.226 with SMTP id l2mr1260185wiy.1.1344270910844;
Mon, 06 Aug 2012 09:35:10 -0700 (PDT)
X-BeenThere: ensime@googlegroups.com
Received: by 10.216.206.198 with SMTP id l48ls6356688weo.3.gmail; Mon, 06 Aug
2012 09:35:10 -0700 (PDT)
Received: by 10.180.105.2 with SMTP id gi2mr1257198wib.4.1344270910490;
Mon, 06 Aug 2012 09:35:10 -0700 (PDT)
Received: by 10.180.105.2 with SMTP id gi2mr1257197wib.4.1344270910476;
Mon, 06 Aug 2012 09:35:10 -0700 (PDT)
Return-Path: <aemoncan...@gmail.com>
Received: from mail-wg0-f50.google.com (mail-wg0-f50.google.com [74.125.82.50])
by gmr-mx.google.com with ESMTPS id em7si1923301wib.2.2012.08.06.09.35.10
(version=TLSv1/SSLv3 cipher=OTHER);
Mon, 06 Aug 2012 09:35:10 -0700 (PDT)
Received-SPF: pass (google.com: domain of aemoncan...@gmail.com designates 74.125.82.50 as permitted sender) client-ip=74.125.82.50;
Authentication-Results: gmr-mx.google.com; spf=pass (google.com: domain of aemoncan...@gmail.com designates 74.125.82.50 as permitted sender) smtp.mail=aemoncan...@gmail.com; dkim=pass header...@gmail.com
Received: by wgbds11 with SMTP id ds11so2041711wgb.7
for <ensime@googlegroups.com>; Mon, 06 Aug 2012 09:35:10 -0700 (PDT)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
d=gmail.com; s=20120113;
h=mime-version:in-reply-to:references:from:date:message-id:subject:to
:content-type;
bh=GDA6ovJFkATS1HLXiKRH9ueFLg8x52BFRmXgglMC2fA=;
b=ZuKrwMvoEdeQzSTOv39xWFJk9752OS3CyBbgo7xkDAlEcrUqt289vomR6NYkHHg4gO
Vw/V1ZIF9GtttkR95YjmHPiGSQ1nDbkbHoX0yRVoPia4vLPB5UuY57gTR1VD9LXx1BML
9MywwTHM5N1rgcS9syz792m+nGqokh48Z8fVISJ/srrV0mEEF85Dpp87gYWaC8tYfmXl
KP53VkhMiAH72P81eud1ZiDMba6nja+2fJnG+6d90Dm9k34WHe0TKDCkasRQ+T3VTF+2
/2mERCUBy9VpLfz6aaTcldv13lE5aSIO5kMtCG1qpHdWmJ8/TZQaMUsRBoMteJIkfI0P
r1og==
Received: by 10.180.78.37 with SMTP id y5mr19777825wiw.16.1344270910226; Mon,
06 Aug 2012 09:35:10 -0700 (PDT)
MIME-Version: 1.0
Received: by 10.216.240.140 with HTTP; Mon, 6 Aug 2012 09:34:49 -0700 (PDT)
In-Reply-To: <CALoHfWwDM534HgC_zqWXhz_KO8-842=bxc1=MriWS4RQ8eD...@mail.gmail.com>
References: <8b3b6d75-2035-4b5b-8c8f-5b6c1a9952f2@googlegroups.com>
<CALoHfWwDTgsvnFEo-3Hi73zrj+3DrSKfk9tuWYNz51VegQu...@mail.gmail.com> <CALoHfWwDM534HgC_zqWXhz_KO8-842=bxc1=MriWS4RQ8eD...@mail.gmail.com>
From: Aemon Cannon <aemoncan...@gmail.com>
Date: Mon, 6 Aug 2012 12:34:49 -0400
Message-ID: <CALoHfWwTFwEanQvG0AossKmmGhHSRXiC=Km5eqa7=_TAVcO...@mail.gmail.com>
Subject: Re: Maven support dropped?
To: ensime@googlegroups.com
Content-Type: multipart/alternative; boundary=f46d043891ad16009304c69b7680
--f46d043891ad16009304c69b7680
Content-Type: text/plain; charset=ISO-8859-1
Revised:
https://gist.github.com/16a8e80f0425d837bdce/0d2042de502ffe767a321a3609f47eed58f10615
On Mon, Aug 6, 2012 at 12:30 PM, Aemon Cannon <aemoncan...@gmail.com> wrote:
> Revised:
> https://gist.github.com/16a8e80f0425d837bdce
>
>
>
> On Mon, Aug 6, 2012 at 11:29 AM, Aemon Cannon <aemoncan...@gmail.com>wrote:
>
>> Hi George,
>>
>> Yes, you are correct that the internal support for maven was removed. I'm
>> sorry there wasn't really an announcement.
>> Going forward, I'd like to generate .ensime files externally, as in the
>> sbt project plugin.
>>
>> Here's a little python script that prints a very basic project to stdout
>> (obviously a proper maven plugin would be preferred):
>>
>>
>> ##########################
>> import subprocess
>>
>> def runProcess(exe):
>> p = subprocess.Popen(exe, stdout=subprocess.PIPE,
>> stderr=subprocess.STDOUT, shell=True)
>> while(True):
>> retcode = p.poll() #returns None while subprocess is running
>> line = p.stdout.readline()
>> yield line
>> if(retcode is not None):
>> break
>>
>> def deps(scope):
>> def goodLineP(line):
>> return (line and not line.isspace() and
>> not line.startswith("[INFO]") and
>> not line.startswith("Downloading") and
>> not line.startswith("Downloaded"))
>> cmd = "mvn dependency:build-classpath -DincludeScope=%s" % scope
>> output_lines = [line.strip() for line in runProcess(cmd)
>> if goodLineP(line)]
>> return output_lines
>>
>> def quote(obj):
>> return "\"" + str(obj) + "\""
>>
>> def mkStringList(lst):
>> return " ".join([quote(ea) for ea in lst])
>>
>>
>> projectName = quote("my-app")
>> compileDeps = mkStringList(deps("") + deps("compile"))
>> runtimeDeps = mkStringList(deps("runtime"))
>> testDeps = mkStringList(deps("test"))
>>
>>
>> print """(
>> :name %s
>> :compile-deps (%s)
>> :runtime-deps (%s)
>> :test-deps (%s)
>> )
>> """ % (projectName, compileDeps, runtimeDeps, testDeps)
>>
>>
>> ##################################################
>>
>>
>>
>>
>>
>> On Mon, Aug 6, 2012 at 6:43 AM, George Leontiev <fol...@gmail.com> wrote:
>>
>>> Hello.
>>> I've noticed, that starting from version 0.9.6 maven support stopped
>>> working. The last version, I'm able to use with maven projects is
>>> ensime_2.9.2-RC1-0.9.3.RC4.
>>> By "stopped working" I mean following:
>>> When I try to start ensime for the new project, it correctly detects,
>>> that it is a maven project, and proceeds with creating an .ensime file.
>>> When I run it with M-x ensime afterwards, it starts in seconds (which is
>>> cool, of course), but seems to be only compiling the source file, opened in
>>> current buffer. It also won't see project's classpath.
>>> Is this a known issue? Will maven support be reenabled in the future?
>>>
>>
>>
>
--f46d043891ad16009304c69b7680
Content-Type: text/html; charset=ISO-8859-1
Content-Transfer-Encoding: quoted-printable
Revised:<div><a href=3D"https://gist.github.com/16a8e80f0425d837bdce/0d2042=
de502ffe767a321a3609f47eed58f10615">https://gist.github.com/16a8e80f0425d83=
7bdce/0d2042de502ffe767a321a3609f47eed58f10615</a><br><br><div class=3D"gma=
il_quote">
On Mon, Aug 6, 2012 at 12:30 PM, Aemon Cannon <span dir=3D"ltr"><<a href=
=3D"mailto:aemoncan...@gmail.com" target=3D"_blank">aemoncan...@gmail.com</=
a>></span> wrote:<br><blockquote class=3D"gmail_quote" style=3D"margin:0=
0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
Revised:<div><a href=3D"https://gist.github.com/16a8e80f0425d837bdce" targe=
t=3D"_blank">https://gist.github.com/16a8e80f0425d837bdce</a></div><div cla=
ss=3D"HOEnZb"><div class=3D"h5"><div><br></div><div><br></div><div><br><div=
class=3D"gmail_quote">
On Mon, Aug 6, 2012 at 11:29 AM, Aemon Cannon <span dir=3D"ltr"><<a href=
=3D"mailto:aemoncan...@gmail.com" target=3D"_blank">aemoncan...@gmail.com</=
a>></span> wrote:<br>
<blockquote class=3D"gmail_quote" style=3D"margin:0 0 0 .8ex;border-left:1p=
x #ccc solid;padding-left:1ex">
Hi George,=A0<div><br></div><div>Yes, you are correct that the internal sup=
port for maven was removed. I'm sorry there wasn't really an announ=
cement.</div><div>Going forward, I'd like to generate .ensime files ext=
ernally, as in the sbt project plugin.</div>
<div><br></div><div>Here's a little python script that prints a very ba=
sic project to stdout (obviously a proper maven plugin would be preferred):=
</div><div><br></div><div><br></div><div>##########################</div>
<div><div>import subprocess</div><div><br></div><div>def runProcess(exe):</=
div><div>=A0 p =3D subprocess.Popen(exe, stdout=3Dsubprocess.PIPE, stderr=
=3Dsubprocess.STDOUT, shell=3DTrue)</div><div>=A0 while(True):</div><div>=
=A0 =A0 retcode =3D p.poll() #returns None while subprocess is running</div=
>
<div>=A0 =A0 line =3D p.stdout.readline()</div><div>=A0 =A0 yield line</div=
><div>=A0 =A0 if(retcode is not None):</div><div>=A0 =A0 =A0 break</div><di=
v><br></div><div>def deps(scope):</div><div>=A0 def goodLineP(line):</div><=
div>=A0 =A0 return (line and not line.isspace() and</div>
<div>=A0 =A0 =A0 =A0 =A0 =A0 not line.startswith("[INFO]") and</d=
iv><div>=A0 =A0 =A0 =A0 =A0 =A0 not line.startswith("Downloading"=
) and</div><div>=A0 =A0 =A0 =A0 =A0 =A0 not line.startswith("Downloade=
d"))</div><div>=A0 cmd =3D "mvn dependency:build-classpath -Dincl=
udeScope=3D%s" % scope</div>
<div>=A0 output_lines =3D [line.strip() for line in runProcess(cmd)</div><d=
iv>=A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 if goodLineP(line)]</div><div>=A0 re=
turn output_lines</div><div><br></div><div>def quote(obj):</div><div>=A0 re=
turn "\"" + str(obj) + "\""</div>
<div><br></div><div>def mkStringList(lst):</div><div>=A0 return " &quo=
t;.join([quote(ea) for ea in lst])</div><div><br></div><div><br></div><div>=
projectName =3D quote("my-app")</div><div>compileDeps =3D mkStrin=
gList(deps("") + deps("compile"))</div>
<div>runtimeDeps =3D mkStringList(deps("runtime"))</div><div>test=
Deps =3D mkStringList(deps("test"))</div><div><br></div><div><br>=
</div><div>print """(</div><div>:name %s</div><div>:compile-=
deps (%s)</div>
<div>:runtime-deps (%s)</div><div>:test-deps (%s)</div><div>)</div><div>&qu=
ot;"" % (projectName, compileDeps, runtimeDeps, testDeps)</div></=
div><div><br></div><div><br></div><div>####################################=
##############</div>
<div><div>
<div><br></div><div><br></div><div><div><br></div><div><br></div><div><br><=
div class=3D"gmail_quote">On Mon, Aug 6, 2012 at 6:43 AM, George Leontiev <=
span dir=3D"ltr"><<a href=3D"mailto:fol...@gmail.com" target=3D"_blank">=
fol...@gmail.com</a>></span> wrote:<br>
<blockquote class=3D"gmail_quote" style=3D"margin:0 0 0 .8ex;border-left:1p=
x #ccc solid;padding-left:1ex">Hello.<br>
I've noticed, that starting from version 0.9.6 maven support stopped wo=
rking. The last version, I'm able to use with maven projects is ensime_=
2.9.2-RC1-0.9.3.RC4.<br>
By "stopped working" I mean following:<br>
When I try to start ensime for the new project, it correctly detects, that =
it is a maven project, and proceeds with creating an .ensime file. When I r=
un it with M-x ensime afterwards, it starts in seconds (which is cool, of c=
ourse), but seems to be only compiling the source file, opened in current b=
uffer. It also won't see project's classpath.<br>
Is this a known issue? Will maven support be reenabled in the future?<br>
</blockquote></div><br></div></div>
</div></div></blockquote></div><br>
</div>
</div></div></blockquote></div><br></div>
--f46d043891ad16009304c69b7680--