{"action":"created","issue":{"url":"https://api.github.com/repos/clojure-emacs/cider/issues/1026","labels_url":"https://api.github.com/repos/clojure-emacs/cider/issues/1026/labels{/name}","comments_url":"https://api.github.com/repos/clojure-emacs/cider/issues/1026/comments","events_url":"https://api.github.com/repos/clojure-emacs/cider/issues/1026/events","html_url":"https://github.com/clojure-emacs/cider/issues/1026","id":62426849,"number":1026,"title":"ns-form sent within cider-eval-defun-at-point seems incomplete","user":{"login":"friemen","id":4103808,"avatar_url":"https://avatars.githubusercontent.com/u/4103808?v=3","gravatar_id":"","url":"https://api.github.com/users/friemen","html_url":"https://github.com/friemen","followers_url":"https://api.github.com/users/friemen/followers","following_url":"https://api.github.com/users/friemen/following{/other_user}","gists_url":"https://api.github.com/users/friemen/gists{/gist_id}","starred_url":"https://api.github.com/users/friemen/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/friemen/subscriptions","organizations_url":"https://api.github.com/users/friemen/orgs","repos_url":"https://api.github.com/users/friemen/repos","events_url":"https://api.github.com/users/friemen/events{/privacy}","received_events_url":"https://api.github.com/users/friemen/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":10,"created_at":"2015-03-17T15:22:04Z","updated_at":"2015-03-18T11:31:21Z","closed_at":null,"body":"ClojureScript project is https://github.com/friemen/zackzack\r\n\r\nAfter starting a REPL using `cider-jack-in` I start the backend and the weasel+piggieback based browser-connected REPL.\r\n\r\nThen I connect with the browser using http://localhost:8080/testindex.html\r\n\r\nI load for example src/cljs/zackzack/demo/playground.cljs\r\nI eval code using `cider-eval-defun-at-point` for example function `playground-view`.\r\n\r\nI receive warnings as shown below and changed code is not loaded/compiled:\r\n\r\n```\r\n; CIDER 0.9.0snapshot (package: 20150316.2241) (Java 1.8.0_40, Clojure 1.6.0, nREPL 0.2.8)\r\nzackzack.backend> (start!)\r\n:started\r\nzackzack.backend> (cljs-repl)\r\n<< Started Weasel server on ws://0.0.0.0:9001 >>\r\nType `:cljs/quit` to stop the ClojureScript REPL\r\nnil\r\nWARNING: Use of undeclared Var zackzack.demo.playground/convert-text at line 23 /home/riemensc/Workspaces/Clojure/workspace/zackzack/src/cljs/zackzack/demo/playground.cljs\r\nWARNING: Use of undeclared Var zackzack.demo.playground/view at line 19 /home/riemensc/Workspaces/Clojure/workspace/zackzack/src/cljs/zackzack/demo/playground.cljs\r\nWARNING: Use of undeclared Var zackzack.demo.playground/textfield at line 20 /home/riemensc/Workspaces/Clojure/workspace/zackzack/src/cljs/zackzack/demo/playground.cljs\r\nWARNING: Use of undeclared Var zackzack.demo.playground/textfield at line 21 /home/riemensc/Workspaces/Clojure/workspace/zackzack/src/cljs/zackzack/demo/playground.cljs\r\nWARNING: Use of undeclared Var zackzack.demo.playground/button at line 22 /home/riemensc/Workspaces/Clojure/workspace/zackzack/src/cljs/zackzack/demo/playground.cljs\r\n```\r\nI added `(message ns-form)` in cider-interaction.el, function `cider--dummy-file-contents`.\r\nIn *Messages* buffer the line `(ns zackzack.demo.playground)` appears, but the complete ns-form in cljs file is:\r\n\r\n```\r\n(ns zackzack.demo.playground\r\n  (:require [examine.constraints :as c]\r\n            [examine.core :as e]\r\n            [clojure.string :as string]\r\n            [zackzack.specs :refer [action-link button checkbox column\r\n                                    datepicker panel\r\n                                    selectbox table textfield view]])\r\n  (:require-macros [examine.macros :refer [defvalidator]]\r\n                   [cljs.core.async.macros :refer [go]]))\r\n```\r\n\r\nI suspect the ns-form sent to compiler is incomplete, which causes the warnings.\r\nAround end of November 2014 this worked flawlessly, so the problem appeared very recently.\r\n\r\nOh, and not to forget: I really appreciate all the excellent work that you have done for the Emacs/Clojure community!\r\n"},"comment":{"url":"https://api.github.com/repos/clojure-emacs/cider/issues/comments/82916390","html_url":"https://github.com/clojure-emacs/cider/issues/1026#issuecomment-82916390","issue_url":"https://api.github.com/repos/clojure-emacs/cider/issues/1026","id":82916390,"user":{"login":"vspinu","id":1363467,"avatar_url":"https://avatars.githubusercontent.com/u/1363467?v=3","gravatar_id":"","url":"https://api.github.com/users/vspinu","html_url":"https://github.com/vspinu","followers_url":"https://api.github.com/users/vspinu/followers","following_url":"https://api.github.com/users/vspinu/following{/other_user}","gists_url":"https://api.github.com/users/vspinu/gists{/gist_id}","starred_url":"https://api.github.com/users/vspinu/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/vspinu/subscriptions","organizations_url":"https://api.github.com/users/vspinu/orgs","repos_url":"https://api.github.com/users/vspinu/repos","events_url":"https://api.github.com/users/vspinu/events{/privacy}","received_events_url":"https://api.github.com/users/vspinu/received_events","type":"User","site_admin":false},"created_at":"2015-03-18T11:31:21Z","updated_at":"2015-03-18T11:31:21Z","body":"@cichili what's the reasoning behind the truncation here?\r\n\r\nClojure script is very slow on evaluation of full ns. So we are loading full ns once and then assuming that `(ns foo)` is fast and evaluation is additive. \r\n \r\nSee a very long #830 for reasons and  #956 where the change made."}}