Fork me on GitHub
#cursive
<
2017-11-23
>
tengstrand08:11:06

When I set up one extra test folder ‘itest’ for my integration tests (+ mark it as a “green” test folder in the Project Structure), the test looks fine for some seconds, but suddenly the ‘itest’ folder turns back to “grey” and after that it isn’t recognised as a source code folder.

gklijs10:11:57

I have ind of the same thing, except it’s only for clojurescript sources, and it’s reset every time I open the project.

claudiu10:11:53

Hi. Is there any way to get "vim" like tabs in cursive ? (tab1: 3 split windows, tab2: 2 split windows) ?

curlyfry11:11:55

I'm not sure, but it's likely an IntelliJ setting rather than a Cursive setting. I suggest looking at IntelliJ documentation.

cfleming21:11:52

See here for someone asking in the plugin dev forum about it this morning. I don’t really know how Vim handles tabs, but it looks like IntelliJ doesn’t do anything like that: https://intellij-support.jetbrains.com/hc/en-us/community/posts/115000722050-Redesign-of-IDEA-tabs-split

ikitommi10:11:34

Adding this (broken let) will cause Cursive (and IDEA) to halt (throws StackOverFlowError):

(defn wild-param? [segment]
  (let [string-segment (if keyword? segment) (name segment) segment]
    (str/starts-with? string-segment ":")))

tengstrand12:11:11

I have some issues with my development environment: - unused imports are not shown in grey - I can’t send things that have been defined by ‘def’ or constants (like 123) to the REPL, I need to wrap it in an empty function ((fn [] 123)) or in a vector [123]. - I can’t have more than one test folder (as mentioned earlier today) I extended the Cursive licence today and reinstalled the Cursive plugin. I’m running Cursive 1.6.1-2017-2. I have the latest version of IntelliJ IDEA, Community 2017.2.6. I use Java JDK 1.8.0_111. I still have these problems.

tengstrand15:11:42

I have reinstalled everything now and the problem with two test folders could be that I’m doing something wrong with the profiles, I’m looking into that…so it’s ok for the moment even though I haven’t solved everything yet!

cfleming21:11:45

@teng @gklijs The problem with your source folders is probably that your test or source roots are added in a Leiningen profile. You can set the profiles that Cursive should use when syncing the project in the Leiningen toolwindow under the Profiles tree. Select the profiles you need then refresh your project.

gklijs06:11:13

@teng thanks, that dit the trick. Never really looked for a solution before, since it wasn’t that bothered by it. On overall it’s really great to be able to have it all in intelliJ.

cfleming21:11:36

@teng Re: unused imports, this seems to be a problem with the inspection severity, see here: https://github.com/cursive-ide/cursive/issues/1637#issuecomment-298197331

cfleming21:11:09

I’ve filed https://github.com/cursive-ide/cursive/issues/1900 to investigate why this is happening.

cfleming21:11:27

But changing the severity generally fixes the problem as a workaround.

tengstrand22:11:14

@cfleming “Unused import” was set to Warning and checked, but the unused imports are still not marked as grey.

tengstrand22:11:45

+ “In All Scopes”.

cfleming22:11:48

@teng can you email me a copy of your log? Help-&gt;Show log in Finder/Explorer, <mailto:[email protected]|[email protected]>

tengstrand23:11:35

I have mailed it.