cursive icon indicating copy to clipboard operation
cursive copied to clipboard

leiningen integration doesnt apply middleware

Open henryw374 opened this issue 9 years ago • 5 comments

Hi, I have some middleware which adds dependencies and source-paths (I know, I know, but this is the best working solution for us) but Cursive doesn't reflect the changes to the project made by the middleware.

Could it be made to do so?

Thanks

henryw374 avatar May 06 '16 09:05 henryw374

That should work, I think - how are you adding those? Is the source of the middleware open? If not, can you describe how you're adding them?

cursive-ghost avatar May 06 '16 09:05 cursive-ghost

adding them via plugins. source is not open, but i could mock something up if required.

henryw374 avatar May 06 '16 09:05 henryw374

That would be great, then I can reproduce. Just a minimal example adding a dep & source path which doesn't work correctly.

cursive-ghost avatar May 06 '16 09:05 cursive-ghost

ok, turns out it is working in some situations (e.g. adding to :dependencies) but it is having some issue when adding to :source-paths

git clone https://github.com/ohlo/lein-middleware-demo.git cd lein-middleware-demo lein install

lein new proj-using-middleware

then in the proj-using-middleware project.clj add :plugins [[lein-middleware-demo "0.1.0-SNAPSHOT"]] and open the project from intellij to see the error

using lein from cmd line with this project is fine. e.g. lein pprint to see the output

the errors intellij is reporting vary depending on what strings get added to :source-paths but include 'invalid stored block lengths' 'invalid distance too far back', 'invalid code lengths set' - and googling these gets results relating to corruption.

i know its a pretty niche problem but it would really help us.

thanks

henryw374 avatar May 06 '16 13:05 henryw374

Just ran into this same problem. Is there a work around for this issue?

jvia avatar Jan 18 '22 22:01 jvia