Skip to main content



      Home
Home » Eclipse Projects » Buckminster dev » [buckminster-dev] CSPEC Resolution and other issues
[buckminster-dev] CSPEC Resolution and other issues [message #11593] Fri, 21 March 2008 17:24 Go to next message
Eclipse UserFriend
Originally posted by: hollings.cern.ch

------=_NextPart_000_000B_01C88B78.7E5C6560
Content-Type: text/plain; charset="us-ascii"
Content-Transfer-Encoding: 7bit

Hello,



Ok, so I've gotten to the point to where I want to make a simple RMAP,
CSPEC, and CQUERY that will essentially just check out a project from CVS.
This has led to a number of questions that I couldn't find discussed in the
docs, as well as a few potential bugs.



How are CSPEC's resolved? The documentation describes how to create CSPECS,
but not how CQUERY's or RMAP's figure out where said CSPECS are. I inferred
that it looks at the root of whatever the location is for a
buckminster.cspec; is that correct? If so, unless I'm thinking about this
wrong, I have a request. Shouldn't we be able to explicitly map CSPECS to
project names in the RMAPS, as in specify search paths for CSPECS that can
map project names to CSPEC's? I say this because it makes developing
complex CSPECS difficult to say the least. Every time one makes a change,
one would have to commit it to CVS, right? If this isn't how it works, then
how does it?



Also, has anyone tried making CQUERY's, RMAPS, and CSPECS that only live on
the filesystem? I'm theorizing that the file:// url is possibly broken, as
I tried downloading the demo.cquery and the demo.rmap and changing them both
to file:// urls (made the demo cquery, which was on the file system, point
to the demo rmap, which was also on the filesystem), which resulted in the
GUI getting stuck on "Resolving query" indefinitely (well, indefinitely as
far as I was concerned, but it was 10 minutes and then I cancelled it). The
http:// link worked fine however, both for the demo and for the
buckminster-dev cquery. It would be nice to be able to use the file url for
development purposes, right? I got around that by running an XAMPP server
that I already had sitting around to remount my workspace to http, and it
didn't get stuck that time (although it didn't work, but I'm pretty sure
that's my fault. I haven't really looked into that part yet).



By the way, the getting started guide worked great, so I'll be moving it
into my little latex project pretty much word for word (and keep credits in
the comments of course :) ). If someone could confirm the bug that I
mentioned yesterday on the newsgroup (a problem that I had that was also
discussed here:
http://dev.eclipse.org/newslists/news.eclipse.tools.buckmins ter/msg00018.htm
l and here: http://www.nabble.com/Error-Resolving-Buckminster-p15675986. html
), I'll add that in as a warning somewhere in the docs as well.



-Matt


------=_NextPart_000_000B_01C88B78.7E5C6560
Content-Type: text/html; charset="us-ascii"
Content-Transfer-Encoding: quoted-printable

<html xmlns:o=3D"urn:schemas-microsoft-com:office:office" =
xmlns:w=3D"urn:schemas-microsoft-com:office:word" =
xmlns=3D"http://www.w3.org/TR/REC-html40">

<head>
<META HTTP-EQUIV=3D"Content-Type" CONTENT=3D"text/html; =
charset=3Dus-ascii">
<meta name=3DGenerator content=3D"Microsoft Word 11 (filtered medium)">
<style>
<!--
/* Style Definitions */
p.MsoNormal, li.MsoNormal, div.MsoNormal
{margin:0in;
margin-bottom:.0001pt;
font-size:12.0pt;
font-family:"Times New Roman";}
a:link, span.MsoHyperlink
{color:blue;
text-decoration:underline;}
a:visited, span.MsoHyperlinkFollowed
{color:purple;
text-decoration:underline;}
span.EmailStyle17
{mso-style-type:personal-compose;
font-family:Arial;
color:windowtext;}
@page Section1
{size:8.5in 11.0in;
margin:1.0in 1.25in 1.0in 1.25in;}
div.Section1
{page:Section1;}
-->
</style>

</head>

<body lang=3DEN-US link=3Dblue vlink=3Dpurple>

<div class=3DSection1>

<p class=3DMsoNormal><font size=3D2 face=3DArial><span =
style=3D'font-size:10.0pt;
font-family:Arial'>Hello,<o:p></o:p></span></font></p>

<p class=3DMsoNormal><font size=3D2 face=3DArial><span =
style=3D'font-size:10.0pt;
font-family:Arial'><o:p>&nbsp;</o:p></span></font></p >

<p class=3DMsoNormal><font size=3D2 face=3DArial><span =
style=3D'font-size:10.0pt;
font-family:Arial'>Ok, so I&#8217;ve gotten to the point to where I want =
to
make a simple RMAP, CSPEC, and CQUERY that will essentially just check =
out a
project from CVS. &nbsp;This has led to a number of questions that I =
couldn&#8217;t
find discussed in the docs, as well as a few potential bugs. =
&nbsp;<o:p></o:p></span></font></p>

<p class=3DMsoNormal><font size=3D2 face=3DArial><span =
style=3D'font-size:10.0pt;
font-family:Arial'><o:p>&nbsp;</o:p></span></font></p >

<p class=3DMsoNormal><font size=3D2 face=3DArial><span =
style=3D'font-size:10.0pt;
font-family:Arial'>How are CSPEC&#8217;s resolved?&nbsp; The =
documentation describes
how to create CSPECS, but not how CQUERY&#8217;s or RMAP&#8217;s figure =
out
where said CSPECS are. &nbsp;I inferred that it looks at the root of =
whatever the
location is for a buckminster.cspec; is that correct?&nbsp; If so, =
unless I&#8217;m
thinking about this wrong, I have a request. &nbsp;Shouldn&#8217;t we be =
able to
explicitly map CSPECS to project names in the RMAPS, as in specify =
search paths
for CSPECS that can map project names to CSPEC&#8217;s? &nbsp;I say this =
because it
makes developing complex CSPECS difficult to say the least.&nbsp; Every =
time one
makes a change, one would have to commit it to CVS, right? &nbsp;If this =
isn&#8217;t
how it works, then how does it?&nbsp; <o:p></o:p></span></font></p>

<p class=3DMsoNormal><font size=3D2 face=3DArial><span =
style=3D'font-size:10.0pt;
font-family:Arial'><o:p>&nbsp;</o:p></span></font></p >

<p class=3DMsoNormal><font size=3D2 face=3DArial><span =
style=3D'font-size:10.0pt;
font-family:Arial'>Also, has anyone tried making CQUERY&#8217;s, RMAPS, =
and
CSPECS that only live on the filesystem? &nbsp;I&#8217;m theorizing that =
the file://
url is possibly broken, as I tried downloading the demo.cquery and the
demo.rmap and changing them both to file:// urls (made the demo cquery, =
which
was on the file system, point to the demo rmap, which was also on the
filesystem), which resulted in the GUI getting stuck on &#8220;Resolving =
query&#8221;
indefinitely (well, indefinitely as far as I was concerned, but it was =
10
minutes and then I cancelled it). &nbsp;The http:// link worked fine =
however, both
for the demo and for the buckminster-dev cquery.&nbsp; It would be nice =
to be able
to use the file url for development purposes, right?&nbsp; I got around =
that by
running an XAMPP server that I already had sitting around to remount my =
workspace
to http, and it didn&#8217;t get stuck that time (although it =
didn&#8217;t
work, but I&#8217;m pretty sure that&#8217;s my fault&#8230;&nbsp; I =
haven&#8217;t
really looked into that part yet). <o:p></o:p></span></font></p>

<p class=3DMsoNormal><font size=3D2 face=3DArial><span =
style=3D'font-size:10.0pt;
font-family:Arial'><o:p>&nbsp;</o:p></span></font></p >

<p class=3DMsoNormal><font size=3D2 face=3DArial><span =
style=3D'font-size:10.0pt;
font-family:Arial'>By the way, the getting started guide worked great, =
so I&#8217;ll
be moving it into my little latex project pretty much word for word (and =
keep
credits in the comments of course :) ).&nbsp; If someone could confirm =
the bug that
I mentioned yesterday on the newsgroup (a problem that I had that was =
also
discussed here: <a
href=3D" http://dev.eclipse.org/newslists/news.eclipse.tools.buckmins ter/m=
sg00018.html"> http://dev.eclipse.org/newslists/news.eclipse.tools.buckmin=
ster/msg00018.html</a>
and here: <a
href=3D" http://www.nabble.com/Error-Resolving-Buckminster-p15675986. html"=
> http://www.nabble.com/Error-Resolving-Buckminster-p15675986. html</a>
), I&#8217;ll add that in as a warning somewhere in the docs as =
well.<o:p></o:p></span></font></p>

<p class=3DMsoNormal><font size=3D2 face=3DArial><span =
style=3D'font-size:10.0pt;
font-family:Arial'><o:p>&nbsp;</o:p></span></font></p >

<p class=3DMsoNormal><font size=3D2 face=3DArial><span =
style=3D'font-size:10.0pt;
font-family:Arial'>-Matt<o:p></o:p></span></font></p>

</div>

</body>

</html>

------=_NextPart_000_000B_01C88B78.7E5C6560--
Re: [buckminster-dev] CSPEC Resolution and other issues [message #11629 is a reply to message #11593] Mon, 24 March 2008 11:16 Go to previous message
Eclipse UserFriend
Matt Hollingsworth wrote:
> Hello,
>
>
>
> Ok, so I’ve gotten to the point to where I want to make a simple RMAP,
> CSPEC, and CQUERY that will essentially just check out a project from
> CVS. This has led to a number of questions that I couldn’t find
> discussed in the docs, as well as a few potential bugs.
>
>
>
> How are CSPEC’s resolved? The documentation describes how to create
> CSPECS, but not how CQUERY’s or RMAP’s figure out where said CSPECS are.
> I inferred that it looks at the root of whatever the location is for a
> buckminster.cspec; is that correct?

Yes, this is correct. Worth mentioning is perhaps that use of handcrafted CSPEC's is not the common
case. The CSPEC is often automatically derived from other artifacts (maven POM's, OSGi manifests, etc.).

> If so, unless I’m thinking about
> this wrong, I have a request. Shouldn’t we be able to explicitly map
> CSPECS to project names in the RMAPS, as in specify search paths for
> CSPECS that can map project names to CSPEC’s? I say this because it
> makes developing complex CSPECS difficult to say the least. Every time
> one makes a change, one would have to commit it to CVS, right? If this
> isn’t how it works, then how does it?
>
You don't need to commit to CVS in order for the change to be seen. The resolver will (unless you
explicitly tell it not too, more on that below) always look into your workspace first, the target
platform second, and then use the RMAP. The following will work:

You have a cquery that appoints component A.
Component A lives as a project in your workspace.
In A/buckminster.cspec you add a dependency to B.
Rerun the CQUERY.
The resolver will now try to find B.

No check-ins. Everything is in the filesystem.

To change the resolver default behavior:
There are cases when you don't want the resolver to see the workspace/target platform. You can
control the behavior of the resolver with the CQUERY. Add an advisor node with a pattern that
matches the component name(s) in question, select "Resolution Scope" in the middle pane of the
"Advisor Nodes" tab and uncheck everything but "Resolution Service". This will ensure that no matter
what is found locally, the resolver will always attempt to find things remotely.

>
>
> Also, has anyone tried making CQUERY’s, RMAPS, and CSPECS that only live
> on the filesystem? I’m theorizing that the file:// url is possibly
> broken, as I tried downloading the demo.cquery and the demo.rmap and
> changing them both to file:// urls (made the demo cquery, which was on
> the file system, point to the demo rmap, which was also on the
> filesystem), which resulted in the GUI getting stuck on “Resolving
> query” indefinitely (well, indefinitely as far as I was concerned, but
> it was 10 minutes and then I cancelled it).

That doesn't sound right. Such a resolution should be immediate. Please attach the files and I'll
try to figure out what it is that goes wrong.

> The http:// link worked
> fine however, both for the demo and for the buckminster-dev cquery. It
> would be nice to be able to use the file url for development purposes,
> right? I got around that by running an XAMPP server that I already had
> sitting around to remount my workspace to http, and it didn’t get stuck
> that time (although it didn’t work, but I’m pretty sure that’s my
> fault… I haven’t really looked into that part yet).
>
>
>
> By the way, the getting started guide worked great, so I’ll be moving it
> into my little latex project pretty much word for word (and keep credits
> in the comments of course :) ). If someone could confirm the bug that I
> mentioned yesterday on the newsgroup (a problem that I had that was also
> discussed here:
> http://dev.eclipse.org/newslists/news.eclipse.tools.buckmins ter/msg00018.html
> and here:
> http://www.nabble.com/Error-Resolving-Buckminster-p15675986. html ), I’ll
> add that in as a warning somewhere in the docs as well.
>
Yes, I think you indeed did find the cause of this problem. Good catch!

I'll prepare an update and post that to the Subclipse JIRA.

Regards,
Thomas Hallgren
Previous Topic:Re: [buckminster-dev] Has something changed on buckminster update site?
Next Topic:RE: [buckminster-dev] CSPEC Resolution and other issues
Goto Forum:
  


Current Time: Sun Apr 27 01:28:17 EDT 2025

Powered by FUDForum. Page generated in 0.25700 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top