Fork me on GitHub
#dirac
<
2016-05-08
>
danielcompton20:05:45

Is it expected to see Use of undeclared Var warnings in the Dirac REPL like this?

darwin20:05:16

yes, it is normal nREPL session in this regard

darwin20:05:56

you have to require or load-file to get rid of those warnings

darwin20:05:35

load-file is a special nREPL middleware command, some IDEs support it, for example Cursive has it as command in menu

danielcompton20:05:56

Cool, gotcha. Thanks!

danielcompton20:05:17

Also, I noticed that it seemed like source maps weren’t updating when Figwheel recompiled, is that expected/known?

darwin20:05:58

I didn’t notice that, but I don’t have complex-enough project with figwheel + dirac

darwin20:05:16

still have to start using Dirac on some real project myself 😉

darwin20:05:15

by source maps do you mean “source panel”, when you click some file location link and it shows you outdated sources or location?

danielcompton20:05:18

I noticed http://dev.clojure.org/jira/browse/CLJS-894, but need to check more to see how normal devtools behaves

danielcompton20:05:42

Yeah, I noticed it with a (js-debugger) breakpoint set, but I think it will apply anywhere

darwin20:05:20

I was using it to help with outdated source-maps, it was an issue when I was working on Atom package, seems not needed for normal webdev workflows tough

danielcompton20:05:24

yeah, just trying it now, I don’t think it’s a dirac issue, just devtools

darwin20:05:32

I can’t recall what was the issue with those source maps. Please, let us know if you find the problem.

danielcompton20:05:07

Yep, that fixes it

danielcompton20:05:17

Probably all figwheel users should have that option enabled

darwin20:05:02

not sure, this does not seem to be reported often in figwheel or general clojurescript channels

darwin20:05:14

I would guess some caching setting comes into play

darwin20:05:34

it should be fixed if you force DevTools to not cache anything at all (when open)

darwin20:05:53

that would be an alternative solution I believe

darwin20:05:25

do you use figwheel’s web server for dev or your own?

darwin20:05:39

what headers does it send?

danielcompton20:05:59

Using figwheels

danielcompton20:05:37

@darwin: I suspect that may be because not many people use source-maps? simple_smile

danielcompton20:05:10

Nope, even with caching off it still fails

danielcompton20:05:01

This is just a general issue, but I suspect most people haven’t hit it much because without dirac, source maps are not quite so useful

danielcompton20:05:26

They obviously have use, but dirac lets you use them in an interactive fashion much easier

darwin20:05:20

there is a chance I could be able to fix this in DevTools if this is really a devtools bug

darwin20:05:49

but first let’s wait for more reports for other users as well

darwin20:05:20

Dirac is pretty much unknown to most people and those who are aware of it, they haven’t integrated it yet into their workflows. It will take few months I guess before we start seeing reports like this.

darwin21:05:02

@danielcompton: thanks for the PRs for docs improvements, much appreciated

danielcompton21:05:37

np, is it ok to leave commit and PR messages blank? I was in a bit of a hurry, but I can fill them out more in the future if it’s helpful

danielcompton21:05:47

In fact I will fill them out more

darwin21:05:47

It is fine. It is pretty obvious that those are grammar/spelling fixes.