Fork me on GitHub
#emacs
<
2020-02-23
>
EmmanuelOga01:02:03

Hello! I'm trying to open java files directly from an exception stacktrace. It seems like I'm missing some source files. Example: *messages* logs Unexpected archive: /usr/lib/jvm/openjdk-8/src.zip [4 times] when I try to open some of the entries

EmmanuelOga01:02:36

I'm guessing there must be some sort of way to setup the search path for these files

EmmanuelOga01:02:15

oh! does this also come down to the classpath?

EmmanuelOga01:02:29

I'm confused why /usr/lib/jvm/... is being search if I'm using windows

EmmanuelOga02:02:33

I'm gonna experiment with adding paths to :extra-paths in deps.edn

EmmanuelOga02:02:46

Someone reported my exact problem here

EmmanuelOga02:02:50

so maybe an issue in this file:

EmmanuelOga02:02:31

god working with paths on windows... the pain

EmmanuelOga02:02:51

this is most likely the fix to my problem:

EmmanuelOga02:02:07

but setting a simple path on that list variable is an ordeal

EmmanuelOga03:02:44

damn it, I solved my own problem

EmmanuelOga03:02:48

tears of joy 😛

EmmanuelOga03:02:56

gonna document on that issue

EmmanuelOga03:02:00

also experimenting a bit with usage patterns of slack. Sorry if I annoy ppl a lil or a lot 🙂

EmmanuelOga03:02:46

oh! talking about annoying ppl. I'm not sure but I may be talking to myself in the wrong channel. Cider seems a lot more appropriate for this issue.

vinnyataide06:02:48

hello! how can I send a (go) command to my repl when I save a clj file?

vinnyataide06:02:05

or it could be a shortcut on my keyboard that I could do after I save the buffer

dpsutton06:02:52

Write a function that saves the buffer and sends a command to be evaluated. I doubt you’d want to get wrapped up in a saved hook

dpsutton06:02:19

(defun save-and-send-thing ()
  (interactive)
  (save-buffer)
  ;; will eval
  (cider-interactive-eval "(prn \"hi\")")
  ;; will put in repl and eval
  (cider-insert-in-repl "(prn \"hi\")" t))

vinnyataide07:02:28

@dpsutton thanks! yeah that would be a very icky false positive situation

tianshu07:02:14

Can I make an overlay actually hold a position not floating on a point?

zilvinasu15:02:54

Hey folks, any ideas how to avoid having add-missing-libspec show up on every single line on ?

dpsutton15:02:22

can you explain what you mean?

Nir Rubinstein18:02:00

Hi guys - anyone using doom emacs? Latest update broke company mode for clojure - can't select options with arrows for some reason. Any idea how to get over it?

ericdallo18:02:18

@nirrub, I upgraded too but for me its working well using clojure-lsp

Nir Rubinstein18:02:19

Hmm... Using vanilla Cider with company mode and it fails to work. I'll try and dig deeper

Nir Rubinstein19:02:27

@deleted-user - thanks! tried the discord channel but no response yet. I’ll try reverting for now and see if a fix will come later. :thumbsup:

dpsutton19:02:26

can you try M-x company-complete-common?

zilvinasu19:02:44

@dpsutton it just shows up as some sort of linting error, give me a sec will make a screenshot, it comes form clojure-lsp

dpsutton19:02:10

oh yeah i remember trying out that lsp-hud (or whatever its called) and abandoned it.

zilvinasu19:02:47

@dpsutton without that, refactoring capabilities are kind of broken, can’t rename .symbols and etc, do you use emacs ?

dpsutton19:02:05

yeah i use emacs. I don't have the lsp-hud enabled just lsp-mode

zilvinasu19:02:54

I don’t know what is lsp hud 😕

zilvinasu19:02:57

or how to disable it

dpsutton19:02:56

i think its https://github.com/emacs-lsp/lsp-ui lsp-ui i was thinking of. do you use that?

zilvinasu19:02:01

I don’t think so, I just had it auto enabled by doom emacs

dpsutton19:02:35

i'll put my lsp-config here if it helps you. no idea what doom does though.

(use-package lsp-mode
  :init
  (setq lsp-clojure-server-command '("bash" "-c" "cd ~/projects/clojure/clojure-lsp && lein run"))
  (setq lsp-enable-indentation nil)
  (setq lsp-enable-completion-at-point nil)
  ;; (setq indent-region-function #'clojure-indent-function)
  (add-hook 'clojure-mode-hook #'lsp)
  (add-hook 'clojurec-mode-hook #'lsp)
  (add-hook 'clojurescript-mode-hook #'lsp)
  :config
  (require 'lsp-clojure)
  (add-to-list 'lsp-language-id-configuration '(clojure-mode . "clojure"))
  (add-to-list 'lsp-language-id-configuration '(clojurec-mode . "clojure"))
  (add-to-list 'lsp-language-id-configuration '(clojurescript-mode . "clojurescript")))

dpsutton19:02:48

you can go compare to what doom is doing and see if anything sticks out

zilvinasu19:02:11

thanks, will check

ericdallo21:02:07

Yeah, this is clojure-lsp with lsp-ui .

zilvinasu21:02:42

@ericdallo thanks, will check!

(setq
 lsp-diagnostic-package :none
 lsp-ui-sideline-show-code-actions nil)
this seem to have helped to avoid the issue

🎉 4