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

Syntax error but no clue #50

Closed
f4lco opened this issue Mar 24, 2020 · 3 comments
Closed

Syntax error but no clue #50

f4lco opened this issue Mar 24, 2020 · 3 comments
Labels
wait for answer The issue waits for opener's action or answer

Comments

@f4lco
Copy link

f4lco commented Mar 24, 2020

I'm using kotlin-jupyter-kernel 0.7.40.145 and a cell with the following code (and syntactic error) produces no output:

data class Person(val name: String, val age: Int)
val example = Person("Testperson"; age = 4)
println(example)

As evident in this screen shot:
person

Whenever I make a different kind of error, such as leaving out a parameter (as in Person("foo")), I get a helpful message in red below the cell. There should be a similar error message when mistaking ; for ,.

@ileasile
Copy link
Collaborator

Hello, f4lco! Please check it for version 0.7.41.254.dev1 (may be installed from dev channels, see Readme for instructions). Should work now.
image

@ileasile ileasile added the wait for answer The issue waits for opener's action or answer label Apr 21, 2020
@f4lco
Copy link
Author

f4lco commented Apr 21, 2020

Hello @ileasile this issue appears fixed in 0.7.41.254.dev1 as advertised (minus the fancy tooltip - maybe it requires additional dependencies or configuration?).

My first attempt - running pip install -i https://test.pypi.org/simple/ kotlin-jupyter-kernel, because it is labeled as "dev" in the README - installed 0.7.41.190. In this version the bug is also fixed, but in a slightly different manner:

kotlin-jupyter-kernel-0 7 41 190

I thought it might be of interest to you, in case this is unexpected.

Both releases clear the bar for me and provide some indication what's wrong with the code (which line to look at and what to fix). Thank you very much, closing this now.

@f4lco f4lco closed this as completed Apr 21, 2020
@f4lco
Copy link
Author

f4lco commented Apr 21, 2020

I almost forgot the praise I was going to give. I used this kernel when recently trying to befriend some Java devs with Kotlin. Using the presentation mode of a Jupyter notebook with some prepared examples in addition to livecoding really proved worthwhile and felt superior to using only a REPL. You guys made it possible, I really appreciate it. Thanks!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
wait for answer The issue waits for opener's action or answer
Projects
None yet
Development

No branches or pull requests

2 participants