Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Error in post-command-hook (tern-post-command): (void-function url-http) #4

Closed
iwillig opened this issue Mar 14, 2013 · 10 comments
Closed

Comments

@iwillig
Copy link

iwillig commented Mar 14, 2013

Hi,

I must have something configured wrong, or maybe I am using an old version of emacs but I am getting the above error when tern tries to display the argument names and types. I followed the install instructions in the readme.

I am running the debian emacs-snapshot. The version number is GNU Emacs 24.3.50.1

Term looks like an incredible tool, thanks for all of your hard work.

@marijnh
Copy link
Member

marijnh commented Mar 14, 2013

Thanks for reporting this. Strange. url-http should be provided by the url-http package that tern.el requires at the top of the file (and which is supposed to be included in the Emacs distribution). If you do M-x apropos url-http, does it find anything (that actually starts with those words)?

@iwillig
Copy link
Author

iwillig commented Mar 14, 2013

For some reason I don't have the normal url-http function installed, just url-https

url-https
Function: (not documented)
url-https-expand-file-name
Function: (not documented)
url-https-file-attributes
Function: (not documented)
url-https-file-exists-p
Function: (not documented)
url-https-file-readable-p
Function: (not documented)

@marijnh
Copy link
Member

marijnh commented Mar 14, 2013

What happens when you evaluate (require 'url-http) in the *scratch* buffer? And is the url package shown as built-in when you browse to it under M-x package-list-packages?

@iwillig
Copy link
Author

iwillig commented Mar 14, 2013

The first step works fine, in scratch

(require 'url-http)
M-x eval-buffer

And no errors

And the url package is the built in one, from what I can tell,
url built-in Uniform Resource Locator retrieval tool

@marijnh
Copy link
Member

marijnh commented Mar 14, 2013

Well, that's getting more and more odd. Did you install emacs in some funky way, or is it a standard package? If so, where does it come from?

Does a file like /usr/share/emacs/24.1/lisp/url/url-http.elc exist on your system?

Did you try restarting emacs?

@iwillig
Copy link
Author

iwillig commented Mar 14, 2013

I am using the emacs-snapshot package on debian.

Package: emacs-snapshot
New: yes
State: installed
Automatically installed: no
Version: 2:20130207-1
Priority: optional
Section: editors
Maintainer: Julien Danjou acid@debian.org
Architecture: amd64
Uncompressed Size: 14.7 M
Depends: emacs-snapshot-bin-common (= 2:20130207-1), libasound2 (>= 1.0.16), libc6 (>= 2.11), libcairo2 (>= 1.2.4),
libdbus-1-3 (>= 1.5.12), libfontconfig1 (>= 2.9.0), libfreetype6 (>= 2.2.1), libgdk-pixbuf2.0-0 (>= 2.22.0),
libgif4 (>= 4.1.4), libglib2.0-0 (>= 2.26.0), libgnutls26 (>= 2.12.17-0), libgpm2 (>= 1.20.4), libgtk-3-0
(>= 3.2.1), libice6 (>= 1:1.0.0), libjpeg8 (>= 8c), libm17n-0 (>= 1.6.1), libmagickcore5 (>= 8:6.7.7.10),
libmagickwand5 (>= 8:6.7.7.10), libotf0 (>= 0.9.11), libpango1.0-0 (>= 1.18.0), libpng12-0 (>= 1.2.13-4),
librsvg2-2 (>= 2.14.4), libselinux1 (>= 1.32), libsm6, libtiff4 (> 3.9.5-3~), libtinfo5, libx11-6, libxft2
(> 2.1.1), libxml2 (>= 2.7.4), libxpm4, libxrender1
PreDepends: dpkg (>= 1.15.6)
Conflicts: emacs-snapshot-gtk (<= 1:20070824-1), emacs-snapshot-gtk (<= 1:20070824-1), emacs-snapshot
Provides: editor, emacsen, info-browser, mail-reader, news-reader
Provided by: emacs-snapshot-lucid, emacs-snapshot-nox
Description: The GNU Emacs editor (development snapshot)
GNU Emacs is the extensible self-documenting text editor.
Homepage: http://www.gnu.org/software/emacs/

And I have two copies of that file on my system, because I have two copies of emacs installed.

/usr/share/emacs/23.4/lisp/url/url-http.elc
/usr/share/emacs/24.3.50/lisp/url/url-http.elc

Maybe I should uninstall both and compile from source?

@marijnh
Copy link
Member

marijnh commented Mar 14, 2013

Having multiple Emacsen installed should usually work without trouble, and if you're using the snapshot package, I would hope that that is not a messed up version.

I must say I'm clueless what could be causing this. I don't have a deep grasp of emacs internals, but it seems that if the file is present, and the require call succeeds, there's something deeply wrong when that doesn't cause the actual function defined in that file to be defined.

@iwillig
Copy link
Author

iwillig commented Mar 14, 2013

:(. Oh well maybe I will look into it more and see if I can fix it.

Thanks for taking a look at this.

@ozanmakes
Copy link

@marijnh tern.el doesn't seem to require url-http

marijnh added a commit that referenced this issue Mar 26, 2013
@marijnh
Copy link
Member

marijnh commented Mar 26, 2013

Indeed. I assumed this was implicit in requiring 'url. Maybe not. I've added it.

@marijnh marijnh closed this as completed Mar 26, 2013
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants