Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

leiningen integration doesnt apply middleware #1390

Open
henryw374 opened this issue May 6, 2016 · 5 comments
Open

leiningen integration doesnt apply middleware #1390

henryw374 opened this issue May 6, 2016 · 5 comments

Comments

@henryw374
Copy link

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

@cursive-ide
Copy link
Owner

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?

@henryw374
Copy link
Author

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

@cursive-ide
Copy link
Owner

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

@henryw374
Copy link
Author

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

@jvia
Copy link

jvia commented Jan 18, 2022

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants