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

Impossible to use JShell commands like /list #128

Open
nicolalandro opened this issue Dec 6, 2021 · 0 comments
Open

Impossible to use JShell commands like /list #128

nicolalandro opened this issue Dec 6, 2021 · 0 comments

Comments

@nicolalandro
Copy link

I try to do this instructions:

import io.github.spencerpark.ijava.IJava;
IJava.getKernelInstance().evalRaw("/list")

But the result is:

---------------------------------------------------------------------------
io.github.spencerpark.ijava.execution.CompilationException: null
	at io.github.spencerpark.ijava.execution.CodeEvaluator.evalSingle(CodeEvaluator.java:127)
	at io.github.spencerpark.ijava.execution.CodeEvaluator.eval(CodeEvaluator.java:147)
	at io.github.spencerpark.ijava.JavaKernel.evalRaw(JavaKernel.java:276)
	at .(#76:1)

How to get the lines of the cels? In jupyter python I only run _ih[line_number], I need it for Printing the line near the Jacoco Coverage you can see the full code here.

To quickly replicate:

  • run with docker docker run -v notebook:/server/notebook -p 8888:8888 nicolalandro/multilanguage-jupyter:1.0
  • (or if you prefer you can deploy the jupyter notebook on Heroku by clicking the Deploy button on this Repo README.md)
  • Create new notebook and exec the instructions:
import io.github.spencerpark.ijava.IJava;
IJava.getKernelInstance().evalRaw("/list")
@nicolalandro nicolalandro changed the title Impossible to use IJava commands like /list Impossible to use JShell commands like /list Dec 10, 2021
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

1 participant