Skip to content
This repository has been archived by the owner on Oct 21, 2022. It is now read-only.

LightTable not able to detect classpath of lein project #1997

Closed
buzzshiva opened this issue Sep 29, 2015 · 4 comments
Closed

LightTable not able to detect classpath of lein project #1997

buzzshiva opened this issue Sep 29, 2015 · 4 comments

Comments

@buzzshiva
Copy link

LightTable not able to detect classpath of lein project, Can someone let me know how to set classpath in lightTable for clojure projects using lein.

java.io.FileNotFoundException: Could not locate guestbook/models

@kenny-evitt
Copy link
Contributor

Light Table is just using Leiningen. Are you able to run your project directly with Leiningen?

Also, see the section about bugs in the contributing guidelines:

When filing a bug on GitHub, please help us help you by including the following:

  • Steps to reproduce the bug.
  • Your operating system, LT and relevant plugin versions.
  • Relevant configuration in your user.keymap and user.behaviors.

Steps would be helpful.

Your OS, OS version, LT version, and plugin versions (particularly the Clojure plugin) would be helpful too.

It would also also be helpful to share a minimal example version of your project for which you can reproduce this.

All the above having been written, you should probably first try building the latest source version (of the master branch) and then upgrading the Clojure plugin. Well, first try running your project directly with Leiningen. But then try the latest source version.

@buzzshiva
Copy link
Author

Basically I created a lein project and imported the root project folder and started liverepl where I pointed the src/guestbook/models/db.clj file using

Also be noted that I'm able to resolve the classpath using lein repl under the same directory i.e., c:\samples\guestbook\lein repl,

[use 'guestbook.models.db]

under lein classpath i can see the path is available, but guestbook model is not getting resolved via lighttable.

One question are there any configuration I need to make to set the lein classpath in lighttable? What would be the default lein classpath in case of LightTable, What I noticed was wherever I run len repl it takes current working directory and adds lein classpath.

@rundis
Copy link
Contributor

rundis commented Sep 30, 2015

@buzzshiva I think there are some severe limitations with the instarepl when handling clojure projects (not sure if it has been recently introduced or not). This issue is related: LightTable/Clojure#55

If you skip using instarepl and rather use eval form or eval editor contents expllicitly should work as you would expect.

@cldwalker
Copy link
Member

This issue has moved to LightTable/ClojureInstarepl#14 as the instarepl is now its own plugin

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

No branches or pull requests

4 participants