This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
2020-02-23
Channels
- # announcements (18)
- # babashka (65)
- # bangalore-clj (14)
- # beginners (80)
- # bristol-clojurians (1)
- # calva (4)
- # chlorine-clover (3)
- # cider (39)
- # clj-kondo (5)
- # clojars (1)
- # clojure (134)
- # clojure-france (1)
- # clojure-losangeles (3)
- # clojure-nl (1)
- # clojure-uk (7)
- # clojurescript (17)
- # core-typed (22)
- # data-science (1)
- # datomic (6)
- # duct (9)
- # emacs (48)
- # fulcro (58)
- # graalvm (37)
- # kaocha (2)
- # nrepl (1)
- # reagent (8)
- # shadow-cljs (20)
- # specter (1)
- # tree-sitter (5)
- # xtdb (3)
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
I'm guessing there must be some sort of way to setup the search path for these files
oh! does this also come down to the classpath?
I'm confused why /usr/lib/jvm/... is being search if I'm using windows
I'm gonna experiment with adding paths to :extra-paths in deps.edn
Someone reported my exact problem here
so maybe an issue in this file:
god working with paths on windows... the pain
this is most likely the fix to my problem:
https://docs.cider.mx/cider/config/basic_config.html#_use_a_local_copy_of_the_java_source_code
but setting a simple path on that list variable is an ordeal
damn it, I solved my own problem
tears of joy 😛
gonna document on that issue
also experimenting a bit with usage patterns of slack. Sorry if I annoy ppl a lil or a lot 🙂
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.
hello! how can I send a (go) command to my repl when I save a clj file?
or it could be a shortcut on my keyboard that I could do after I save the buffer
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
(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))
@dpsutton thanks! yeah that would be a very icky false positive situation
Hey folks, any ideas how to avoid having add-missing-libspec
show up on every single line on ?
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?
Hmm... Using vanilla Cider with company mode and it fails to work. I'll try and dig deeper
@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:
@dpsutton it just shows up as some sort of linting error, give me a sec will make a screenshot, it comes form clojure-lsp
oh yeah i remember trying out that lsp-hud (or whatever its called) and abandoned it.
@dpsutton without that, refactoring capabilities are kind of broken, can’t rename .symbols and etc, do you use emacs ?
i think its https://github.com/emacs-lsp/lsp-ui lsp-ui i was thinking of. do you use that?
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")))
I have mine configured here if it helps: https://github.com/ericdallo/dotfiles/blob/master/emacs/.doom.d/config.el#L216
@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