Fork me on GitHub

hello fellow humans


Is there any “who calls” or “who requires” functionality in clojure-mode?


I’d like to have my cursor at point over a fn, hit a hotkey and see a list of callers. Similarly, I’d like to get a list of namespaces that require the namespace at point.


Lsp offers this. I think cider does as well. But not clojure mode


Yes, for #lsp, you can check here for more info:


I have looked at the clojure-lsp install instructions, and it says to download a clojure-lsp file from the github LATEST release section, which I have, and it is in a format I've not encountered before, which about 3 lines of text at the beginning that look something like a few lines of bash script, but starting with ":;" instead of "#! /bin/bash" like I see more often, and after those 3 lines of text containing binary data that my macOS's "file" command recognizes as a zip file, to the extend that "unzip -v clojure-lsp" shows what looks like a JAR file contents. Is there a name for this trick that I can look up and read more about?


The clojure-lsp that's downloadable from github is an executable thing, but you'll probably need to change its permissions in order to execute it. chmod +x /path/to/clojure-lsp Then try running it according to the troubleshooting guidelines:


Oh, d'uh - you asked about what makes it work, not why it doesn't work 😛


Yes, it is indeed normal shell script stuff. The JAR format apparently allows to add pretty much whatever you want at the beginning of the file up to the point where the jar itself starts.


But I have never seen a shell script that did not start with the #! characters before -- this one starts with :;, which is new to me. That is what surprised me most.


perhaps folks have tracked this down already, but fwiw, found this: > One day, while studying old code, I found out that it's possible to encode Windows Portable Executable files as a UNIX Sixth Edition shell script, due to the fact that the Thompson Shell didn't use a shebang line. via:


possibly it's similar to what this does:


sorry, this is not an answer to the actual question


here is an article that may touch on it:


Yes @andy.fingerhut, this is exaclty what lein bin does, it is a jar blundled insize a executable linux file. You can learn more about it


it may be obvious to everyone who cares and a repeat, but fwiw there is a more up-to-date version with fixes (mentioned ealier in the channel). mentioning because of the security angle.

👍 3