Fork me on GitHub
#cursive
<
2019-10-15
>
stijn06:10:00

@erkinun you can specify JVM Args in the REPL Run command with e.g. -Dlogback.configurationFile=/path/to/your/logback.xml

Erkin08:10:49

@stijn thanks a lot! do you know where do you specify those arguments in cursive repl though?

d-t-w01:10:57

Hey @erkinun dropping into an old thread here so forgive if you found this already. Just drop a logback-test.xml file in your dev-resources.

d-t-w01:10:57

Logback favours logback-text.xml over logback.xml specifically for this reason - expects you to have one on a test path when you're testing.

Erkin10:10:38

hey @U051GK36U there’s a logback-test file available which works fine with lein test in resources folder

Erkin10:10:08

but that does not come into effect when I run the tests from the cursive repl which I started via project.clj file

d-t-w03:11:32

Hey Erkin, just checking back in here. Do you have dev-resources set for in your lein profile. For example I have:

d-t-w03:11:34

:profiles {:dev {:resource-paths ["dev-resources"]

d-t-w03:11:58

and my logback-test is under that path

stijn13:10:14

I'm getting this error on a new project without any deps

stijn13:10:18

15:24	Errors during project resolution
			The following errors were found during project resolve:
			/home/stijn/Documents/code/tryouts/http-connect/deps.edn:
			Could not find artifact aero:aero:jar: in central ()

stijn13:10:54

anyone seen this before? after invalidate caches and restart still having the same isue

stijn13:10:47

cli tools 1.10.1.469

alexmiller14:10:44

looks like there is no version in that error message

alexmiller14:10:03

do you have {:mvn/version "something"} in your deps.edn?

kwladyka16:10:17

When project use local deps with deps.edn

github-kwladyka/form-validator {:local/root "../master"}
then it open 2 projects at once, here doc and master. But the bug is: When click on deps.edn in master it open deps.edn in doc instead. But not always. Sometimes it works, sometimes not. No idea. I was fighting with it about 15 minutes and now it works after open right deps.edn in Visual Studio Code it started to work. Coincident? I don’t know. Just sharing the issue. Don’t know solution and I can’t provide deeper info about bug. Probably it is even not Cursive bug, but Intellij.

stijn18:10:10

@alexmiller this is my deps.edn {:deps {}}.

alexmiller18:10:40

where is aero coming from then?

stijn18:10:40

I've seen it before and invalidating caches seemed to resolve it

stijn18:10:50

That is a very good question 🙂

stijn18:10:01

I have it as a dep in some other projects

alexmiller18:10:16

well, I'd figure that out and that will answer the question :)

stijn18:10:33

haha, sounds like a plan!

alexmiller18:10:29

if you can supply deps options, you might want to -Sdeps '{:aliases {:v {:verbose true}}}' -A:v

alexmiller18:10:26

or -Sdescribe to see what files are in use

stijn18:10:03

I don't think that's currently possible in Cursive

stijn18:10:25

If I use tools.deps directly (without clj cli) then it works

alexmiller18:10:47

yeah, I couldn't remember what was available through cursive

cfleming20:10:34

@stijn No-one else has reported that, and I can’t imagine anything about what Cursive is doing that would cause that.

cfleming20:10:47

How do you have deps configured? Can you send a screenshot of your Preferences | Build, Execution, Deployment | Build Tools | Clojure Deps page?

kwladyka21:10:06

@stijn I can’t be sure, but I think I had this issue. It was about Cursive version and Intellij version. I updated everything to the newest and it solved the issue.

kwladyka21:10:10

But I can be wrong, really don’t remember, but I saw it somewhere

cfleming21:10:07

@kwladyka Did you see Deps with Cursive picking up some unrelated artifact?

kwladyka21:10:53

I can’t remember, sorry.

kwladyka21:10:33

It started after Intellij update if I remember.

kwladyka21:10:52

But now I have the newest ver. and everything is ok

kwladyka21:10:54

But really not remember if it was exactly this one issue or I saw it somewhere else

kwladyka21:10:27

sorry for confusion