Fork me on GitHub
#cursive
<
2019-06-30
>
wilkerlucio20:06:34

hello, I'm getting an strange error when trying to load a project from deps:

Error resolving /Users/wilker.lucio/Development/third-part/fulcro-garden-css: java.lang.String cannot be cast to java.io.File

wilkerlucio20:06:40

any idea what that can be?

wilkerlucio21:06:17

another interesting point, I'm used to import new projects by dragging the folder, or via terminal idea folder, but now it happens that when the project contains both deps.edn and pom.xml Cursive/IntelliJ seems to prefer the Maven version. Can this be a dialog for the user to choose? and I feel like when this happens getting deps to work is complicated (like the error I described above, when I'm trying to migrate Cursive to understand the project as deps instead of lein I often see it goes a bit crazy)

wilkerlucio21:06:09

this is the project I'm having trouble with to import, the deps are pretty simple: https://github.com/fulcrologic/fulcro-garden-css

wilkerlucio21:06:33

trying invalidating caches but still no luck, is there a way to check for a more detailed error message? java.lang.String cannot be cast to java.io.File is really not helpful, and there is no stack trace =/

wilkerlucio21:06:03

got the trace on the logs, seems something is getting broken inside the process to resolve deps:

wilkerlucio21:06:52

ok, found it, there was a syntax error in my deps.edn, when I tried to run another command on the terminal for another reason I got: Error building classpath. Error reading edn. Unmatched delimiter: } (/Users/wilker.lucio/.clojure/deps.edn), would be nice if Cursive could also use that message

cfleming21:06:55

@wilkerlucio Interesting, thanks - I’ll try to reproduce that and make sure that error gets replicated.

wilkerlucio21:06:55

@cfleming thanks, the error was in my user deps.edn (not in the project one), maybe this gets reported differently

cfleming21:06:25

Oh, ok - it looks like it was an unclosed paren or something similar, right?

wilkerlucio21:06:39

yeah, I did a silly editing mistake, forgot remove a }

wilkerlucio21:06:54

(that's what happens when I use vim instead of paredit for short edits)