Account Options

  1. Sign in
The old Google Groups will be going away soon.
Switch to the new Google Groups.
Google Groups Home
« Groups Home
RuntimeException when using :CCallHierarchy with files defined as links relative to Eclipse variable
There are currently too many topics in this group that display first. To make this topic appear first, remove this option from another topic.
There was an error processing your request. Please try again.
flag
  7 messages - Collapse all  -  Translate all to Translated (View all originals)
The group you are posting to is a Usenet group. Messages posted to this group will make your email address visible to anyone on the Internet.
Your reply message has not been sent.
Your post was successful
 
From:
To:
Cc:
Followup To:
Add Cc | Add Followup-to | Edit Subject
Subject:
Validation:
For verification purposes please type the characters you see in the picture below or the numbers you hear by clicking the accessibility icon. Listen and type the numbers you hear
 
Ben Fritz  
View profile  
 More options Feb 8, 3:27 pm
From: Ben Fritz <fritzophre...@gmail.com>
Date: Wed, 8 Feb 2012 12:27:14 -0800 (PST)
Local: Wed, Feb 8 2012 3:27 pm
Subject: RuntimeException when using :CCallHierarchy with files defined as links relative to Eclipse variable
I defined a file as a link in Eclipse, via:

1. Right-click on folder in project
2. Select New->File menu item
3. Select "Advanced >>" button
4. Check "Link to file in the file system" checkbox
5. Select "Variables..." button
6. Select PROJECT_LOC variable
7. Continue entering path from the project root to the resource to
link in

Now, Eclipse can handle this file fine. When I choose "Open Call
Hierarchy" from the Eclipse context menu, and the selected function
traces through the linked file, Eclipse traces the call tree through
the file.

But, when I try the same operation in Vim, I get:

java.lang.RuntimeException:
org.apache.commons.vfs.FileSystemException: Could not find file with
URI "PROJECT_LOC/path/to/file.c" because it is a relative path, and no
base URI was provided.^M
while executing command (port: 9091): -command c_callhierarchy -p
"MYPROJECT" -f "path/to/file.c" -o 2232 -l 19 -e latin1

:CSearch at least finds things in this file just fine; I'm not sure
about other commands.

I tried editing the link path to the file in Eclipse, to use $
{PROJECT_LOC} instead of just PROJECT_LOC, but I get the same error
message (except PROJECT_LOC is replaced with a literal ${PROJECT_LOC}
in the massage text).

Probably I should file a bug report, but is there an easy workaround
for this problem? Or maybe, a way to define a linked file in Eclipse
which provides the required information (like a "base URI" maybe) for
this operation to succeed?


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Ben Fritz  
View profile  
 More options Feb 8, 3:33 pm
From: Ben Fritz <fritzophre...@gmail.com>
Date: Wed, 8 Feb 2012 12:33:45 -0800 (PST)
Local: Wed, Feb 8 2012 3:33 pm
Subject: Re: RuntimeException when using :CCallHierarchy with files defined as links relative to Eclipse variable

On Feb 8, 2:27 pm, Ben Fritz <fritzophre...@gmail.com> wrote:

> But, when I try the same operation in Vim, I get:

> java.lang.RuntimeException:
> org.apache.commons.vfs.FileSystemException: Could not find file with
> URI "PROJECT_LOC/path/to/file.c" because it is a relative path, and no
> base URI was provided.^M
> while executing command (port: 9091): -command c_callhierarchy -p
> "MYPROJECT" -f "path/to/file.c" -o 2232 -l 19 -e latin1

I should mention, "the same operation in Vim" is using
the :CCallHierarchy command, and I'm running:

eclim 1.7.2 with the following patches to the Vim scripts:
* move version guard to top of plugin/eclim.vim to exit early for old
Vim versions
* save/unset/restore 'autochdir' option during ProjectGrep operation
* patch from this list, to autoload/eclim/util.vim, which fixes byte
offsets when 'encoding' differs from 'fileencoding'

gvim 7.3.434 HUGE

Eclipse 3.6.2

Windows XP 64-bit


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Eric Van Dewoestine  
View profile  
 More options Feb 9, 1:06 am
From: Eric Van Dewoestine <ervan...@gmail.com>
Date: Wed, 8 Feb 2012 22:06:06 -0800
Local: Thurs, Feb 9 2012 1:06 am
Subject: Re: [eclim-user] RuntimeException when using :CCallHierarchy with files defined as links relative to Eclipse variable
On 2012-02-08 12:27:14, Ben Fritz wrote:

I just checked in a fix[1] for this which fixes the issue with
:CCallHierarchy and potentially several other commands.

[1] https://github.com/ervandew/eclim/commit/94c12c20a3be27fd126135b4fb5e...

--
eric


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Benjamin Fritz  
View profile  
 More options Feb 9, 11:58 am
From: Benjamin Fritz <fritzophre...@gmail.com>
Date: Thu, 9 Feb 2012 10:58:44 -0600
Local: Thurs, Feb 9 2012 11:58 am
Subject: Re: [eclim-user] RuntimeException when using :CCallHierarchy with files defined as links relative to Eclipse variable
On Thu, Feb 9, 2012 at 12:06 AM, Eric Van Dewoestine <ervan...@gmail.com> wrote:

Thanks, I suppose I won't bother with the bug report in the issue
tracker then. A fix is certainly better than a workaround :-). Now
I'll just need to learn how to install from source, unless 1.7.3 is
coming out soon...

(http://eclim.org/guides/development.html#development-build makes it
look pretty easy, although I'll need to install ant and maybe some
other things first)


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Eric Van Dewoestine  
View profile  
 More options Feb 9, 12:55 pm
From: Eric Van Dewoestine <ervan...@gmail.com>
Date: Thu, 9 Feb 2012 09:55:06 -0800
Local: Thurs, Feb 9 2012 12:55 pm
Subject: Re: [eclim-user] RuntimeException when using :CCallHierarchy with files defined as links relative to Eclipse variable
On 2012-02-09 10:58:44, Benjamin Fritz wrote:

It should be out soon. I just have a few more small fixes and some
testing to do, but I just started a new job so I make no promises as
to when I'll have it done.

> (http://eclim.org/guides/development.html#development-build makes it
> look pretty easy, although I'll need to install ant and maybe some
> other things first)

Yeah it should be painless to build eclim. With the latest master
branch you can even ignore the -Dplugins argument which is no longer
needed.

--
eric


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Benjamin Fritz  
View profile  
 More options Feb 9, 2:26 pm
From: Benjamin Fritz <fritzophre...@gmail.com>
Date: Thu, 9 Feb 2012 13:26:03 -0600
Local: Thurs, Feb 9 2012 2:26 pm
Subject: Re: [eclim-user] RuntimeException when using :CCallHierarchy with files defined as links relative to Eclipse variable
On Thu, Feb 9, 2012 at 11:55 AM, Eric Van Dewoestine <ervan...@gmail.com> wrote:

> On 2012-02-09 10:58:44, Benjamin Fritz wrote:
>> (http://eclim.org/guides/development.html#development-build makes it
>> look pretty easy, although I'll need to install ant and maybe some
>> other things first)

> Yeah it should be painless to build eclim. With the latest master
> branch you can even ignore the -Dplugins argument which is no longer
> needed.

So how do I build only the tools I'm interested in (CDT) with the
latest master branch? I certainly don't have all the required tools
installed for all the Eclim features! Currently the build guide says:

"...ant...will build all the eclim plugins, requiring you to have all
the related dependencies already installed in your eclipse
distribution. However, if you only want a subset of the eclim plugins
to be built, you can specify so using the ‘plugins’ system property"


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Eric Van Dewoestine  
View profile  
 More options Feb 9, 4:30 pm
From: Eric Van Dewoestine <ervan...@gmail.com>
Date: Thu, 9 Feb 2012 13:30:21 -0800
Local: Thurs, Feb 9 2012 4:30 pm
Subject: Re: [eclim-user] RuntimeException when using :CCallHierarchy with files defined as links relative to Eclipse variable
On 2012-02-09 13:26:03, Benjamin Fritz wrote:

The docs on eclim.org are out of date as far as the git master is
concerned. Now when building the code, the build script will check
what features your eclipse has and build the appropriate eclim
plugins accordingly.

--
eric


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
End of messages
« Back to Discussions « Newer topic     Older topic »