Giter VIP home page Giter VIP logo

Comments (8)

albertlatacz avatar albertlatacz commented on August 22, 2024

Thanks for spotting. I'll have a look into that.

At the moment classes autocompletion will work but for expressions is quite basic as intellij expects full java file to parse correctly. Hope to make it work at some point.

from java-repl.

 avatar commented on August 22, 2024

Is there planned support for tab completion in the console version? I'm not sure how to determine all of the classes in scope (the ClassLoader API doesn't seem to have anything like this), maybe some sort of manual inventory of classes that are on the class path?

from java-repl.

albertlatacz avatar albertlatacz commented on August 22, 2024

yes, I had a look at this. It's a bit tricky since you need to know the type of expression which may produce side effects when evaluating. I had it working with evaluating expression in separate context but then the side effects :(. Scala does it by looking at last "constant" e.g. previous result, literal, etc. so should be able to add that. Adding class/package completion should be pretty straight forward and is planned :).

from java-repl.

 avatar commented on August 22, 2024

Really appreciate this project btw! SBT ruined me, and when I changed jobs and went back to Java land I was missing the SBT console bad.

from java-repl.

albertlatacz avatar albertlatacz commented on August 22, 2024

thanks! it's been awesome fun so far and glad to see people enjoy it as well :)

from java-repl.

albertlatacz avatar albertlatacz commented on August 22, 2024

@trustin I had a look and repl is loaded with current classpath of the project. When you add jar it won't reflect if repl was started before. When I add a jar and restart IntelliJ I can import without a problem. I could maybe start using repl directly instead of via process handler to cater for changes in classpath or use classpath setting from command line before evaluation. Needs more thinking..

from java-repl.

jettero avatar jettero commented on August 22, 2024

I would love this.

Maybe the simplest thing would be to load an rc file that contains :cp commands... I'd be fine if I could just replicate my build environment that way.

from java-repl.

albertlatacz avatar albertlatacz commented on August 22, 2024

IntelliJ plugin is no longer supported

from java-repl.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.