Comments (8)
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.
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.
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.
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.
thanks! it's been awesome fun so far and glad to see people enjoy it as well :)
from java-repl.
@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.
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.
IntelliJ plugin is no longer supported
from java-repl.
Related Issues (20)
- Attempt to assign char an int value results in session termination HOT 3
- Windows: Stream issue
- JShell compatible web front-end
- long values give integer error on javarepl.com HOT 2
- .bashrc file
- Pipe File Into Runtime
- :quit causes RuntimeException HOT 1
- Assignment return value broken
- REPL gets stuck when result's "message" is a very long String
- NumberFormatException at startup HOT 1
- Could not start REPL instance
- Crashes on start
- support java9
- Calling Charset.forName leaves REPL in unusable state, constant access denied error
- a bug
- It is not possible to set the port for JavaREPLClient Web. HOT 1
- java.lang.NullPointerException - javarepl-428.jar
- support https
- StackOverflowError when using enum
- The web REPL is very helpful can you please keep it working HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from java-repl.