cursive-ide / cursive

Cursive: The IDE for beautiful Clojure code
578 stars 7 forks source link

Don't warn about "File build.boot is not under a source root" #1811

Open danielcompton opened 7 years ago

danielcompton commented 7 years ago

When using Boot, the build.boot is at the same level as project.clj in most projects. However it is treated as being outside of a source root, so a warning is shown. It would be handy if build.boot files were:

  1. Default recognised as Clojure files, I think you need to manually add the association
  2. Treated like project.clj files, where you don't get warned about being outside a source root.
kassapo commented 6 years ago

For starters it would be enough to not show the warning. The warning tells me nothing I do not already know. I cannot do anything to change the situation. So the warning is just pure pain to me

slifin commented 2 years ago

Just noticed that deps-new generates a build.clj at the top level of a project

Screenshot 2022-03-04 at 22 46 53

Which suffers from a similar issue

Using (clojure -Tnew app :name myusername/mynewapp)

slifin commented 2 years ago

Ah looks like the issue is that I didn't have the build aliases selected:

Screenshot 2022-03-04 at 22 51 10
kwladyka commented 1 year ago
image

even with aliases base functionality doesn't work

cursive-ide commented 1 year ago

@kwladyka Sometimes picking the new deps up can be flakey, which seems to be an IntelliJ problem. If you close and reopen your project, does that fix it?

kwladyka commented 1 year ago

I have checked right now and it works.

theronic commented 3 months ago

@cursive-ide I have a similar problem in a multi-module Clojure project. If I open one of the modules in an own IntelliJ window, the source code, which lives under project/tasks/src and is included in :paths for the module's deps.edn file, I get this error, which prevents me from using Parinfer to indent code:

image

Under Project Settings -> Modules, it shows this:

image

I tried adding the tasks module path "src" via "Add Content Root", but then it complains about this:

image

Could Cursive please not disable Clojure editing just because it can't figure out what the path means? Thanks!