Tuesday, September 9, 2014

Error with PHP Autocomplete

I am getting this error with eclim setup trying to autocomplete a function using ^C^U.

java.lang.IllegalArgumentException: Source file 'httpdocs/sites/all/modules/custom/wch_sweepstakes/wch_sweepstakes.module' not found in any of the project's designated source directories defined in the project's .buildpath file.
while executing command (port: 9091): -editor vim -command php_complete -p "wch" -f "httpdocs/sites/all/modules/custom/wch_sweepstakes/wch_sweepstakes.module" -o 1606 -e utf-8

relevant details (pwd, .buildfile, find that proves the above statement incorrect...)

feta:wch jwatson$ pwd
/Users/jwatson/webroot/wch

feta:wch jwatson$ cat .buildpath
<?xml version="1.0" encoding="UTF-8"?>
<buildpath>
<buildpathentry kind="src" path="assets"/>
<buildpathentry kind="src" path="dev-tools/db-common/srdb"/>
<buildpathentry kind="src" path="dev-tools/settings/local-dev"/>
<buildpathentry kind="src" path="dev-tools/settings/staging"/>
<buildpathentry kind="con" path="org.eclipse.php.core.LANGUAGE"/>
<buildpathentry kind="src" path="httpdocs"/>
</buildpath>

feta:wch jwatson$ find httpdocs -iname wch_sweepstakes.module
httpdocs/sites/all/modules/custom/wch_sweepstakes/wch_sweepstakes.module

PingEclim works:
eclim 2.4.0
eclipse 4.4.0

ProjectInfo if this helps
Name: wch
Path: /Library/WebServer/Documents/wch
Workspace: /Users/jwatson/Documents/workspace
Open: true
Natures: javascript, php

As you can see httpdocs is specified as a src path and the file does indeed exist. What am I missing here? Thanks-

--
--
You received this message from the "vim_use" maillist.
Do not top-post! Type your reply below the text you are replying to.
For more information, visit http://www.vim.org/maillist.php

---
You received this message because you are subscribed to the Google Groups "vim_use" group.
To unsubscribe from this group and stop receiving emails from it, send an email to vim_use+unsubscribe@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

No comments:

Post a Comment