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

[JupyterLab] unable to use symbols from unnamed packages #422

Closed
revintec opened this issue Jul 13, 2023 · 13 comments
Closed

[JupyterLab] unable to use symbols from unnamed packages #422

revintec opened this issue Jul 13, 2023 · 13 comments
Labels
bug Installation and functionality issues

Comments

@revintec
Copy link

just installed kotlin-jupyter so it should be the latest stable version as of writing
running on JupyterLab 4.0.2, Java20, kotlin 1.8.20

I have some code under the default unnamed package, they can be called from IntelliJ IDEA's Notebook plugin, but they can't be called from kotlin-jupyter

image image

is there any command line switch or any of these sort I should be messing with?

@revintec
Copy link
Author

Am I missing something? the named packages from kotlin library is also not working...
image

@ileasile
Copy link
Contributor

That's very interesting.. What if you execute %use coroutines before importing? Will it work? Problem looks like some Kotlin metadata is missing from these dependencies but I've never faced this before

@ileasile ileasile added the bug Installation and functionality issues label Jul 13, 2023
@revintec
Copy link
Author

@ileasile %use coroutines won't work
image

how can I debug the metadata missing problem you've mentioned?
I'm curious:

  1. why the IntelliJ IDEA Notebook plugin works? is there any difference?
  2. clearly the classpath is valid, the code can be loaded. IIRC the meta data is embedded in the classfile, so... they should be available?

my setup should be fairly standard:

  1. pip install jupyterlab
  2. pip install kotlin-jupyter-kernel
  3. add classpath

@revintec
Copy link
Author

and I'd like to ask, where is kotlin jupyter headed? will it be merged into/replaced by IntelliJ IDEA's Notebook plugin?

@ileasile
Copy link
Contributor

No, it will not be replaced and will remain open source. We're ofc interested in developing kernel further

@ileasile
Copy link
Contributor

Regarding your questions:

  1. Try to execute :classpath in Lab and in Kotlin Notebook. Is there a difference? You can share the output
  2. Yes, but there might be some jars for example. So I can't be 100% sure

My another consideration is that you executed unresolved reference before adding it to classpath. Compiler might have cached unsuccessful resolution result

@revintec
Copy link
Author

Kotlin Notebook

Current classpath (164 paths):
/Users/revin/Library/Caches/JetBrains/IntelliJIdea2023.1/kotlin-jupyter/kernelProcess/lib/kotlin-jupyter-lib-0.11.0-381.jar
/Users/revin/Library/Caches/JetBrains/IntelliJIdea2023.1/kotlin-jupyter/kernelProcess/lib/kotlin-jupyter-common-dependencies-0.11.0-381.jar
/Users/revin/Library/Caches/JetBrains/IntelliJIdea2023.1/kotlin-jupyter/kernelProcess/lib/slf4j-api-1.7.36.jar
/Users/revin/Library/Caches/JetBrains/IntelliJIdea2023.1/kotlin-jupyter/kernelProcess/lib/kotlinx-serialization-core-jvm-1.4.1.jar
/Users/revin/Library/Caches/JetBrains/IntelliJIdea2023.1/kotlin-jupyter/kernelProcess/lib/kotlin-script-runtime-1.8.0.jar
/Users/revin/Library/Caches/JetBrains/IntelliJIdea2023.1/kotlin-jupyter/kernelProcess/lib/kotlin-reflect-1.8.20.jar
/Users/revin/Library/Caches/JetBrains/IntelliJIdea2023.1/kotlin-jupyter/kernelProcess/lib/httpcore5-h2-5.2.jar
/Users/revin/Library/Caches/JetBrains/IntelliJIdea2023.1/kotlin-jupyter/kernelProcess/lib/http4k-client-apache-4.34.3.0.jar
/Users/revin/Library/Caches/JetBrains/IntelliJIdea2023.1/kotlin-jupyter/kernelProcess/lib/http4k-core-4.34.3.0.jar
/Users/revin/Library/Caches/JetBrains/IntelliJIdea2023.1/kotlin-jupyter/kernelProcess/lib/kotlin-stdlib-1.8.20.jar
/Users/revin/Library/Caches/JetBrains/IntelliJIdea2023.1/kotlin-jupyter/kernelProcess/lib/annotations-13.0.jar
/Users/revin/Library/Caches/JetBrains/IntelliJIdea2023.1/kotlin-jupyter/kernelProcess/lib/kotlin-jupyter-api-0.11.0-381.jar
/Users/revin/Library/Caches/JetBrains/IntelliJIdea2023.1/kotlin-jupyter/kernelProcess/lib/kotlin-stdlib-jdk7-1.8.0.jar
/Users/revin/Library/Caches/JetBrains/IntelliJIdea2023.1/kotlin-jupyter/kernelProcess/lib/kotlinx-serialization-json-jvm-1.4.1.jar
/Users/revin/Library/Caches/JetBrains/IntelliJIdea2023.1/kotlin-jupyter/kernelProcess/lib/httpcore5-5.2.jar
/Users/revin/Library/Caches/JetBrains/IntelliJIdea2023.1/kotlin-jupyter/kernelProcess/lib/kotlin-stdlib-common-1.8.20.jar
/Users/revin/Library/Caches/JetBrains/IntelliJIdea2023.1/kotlin-jupyter/kernelProcess/lib/httpclient5-5.2.1.jar
/Users/revin/Library/Caches/JetBrains/IntelliJIdea2023.1/kotlin-jupyter/kernelProcess/lib/kotlin-stdlib-jdk8-1.8.0.jar
/Users/revin/code/corex/build/classes/kotlin/main
/Users/revin/code/corex/corex-jvm/build/classes/atomicfu/main
/Users/revin/code/corex/corex-jvm/build/resources/main
/Users/revin/.gradle/caches/modules-2/files-2.1/org.jetbrains.kotlin/kotlin-stdlib-common/1.9.0-RC/d9bdb03665199f3548ff91464625d943f816594/kotlin-stdlib-common-1.9.0-RC.jar
/Users/revin/.gradle/caches/modules-2/files-2.1/org.jetbrains.kotlinx/kotlinx-coroutines-debug/1.7.0/3d34c406d7f90d2a6f56808c6fed3a514a2225d3/kotlinx-coroutines-debug-1.7.0.jar
/Users/revin/.gradle/caches/modules-2/files-2.1/org.jetbrains.kotlin/kotlin-stdlib-jdk8/1.9.0-RC/e5bf0792a19d87d90a78c844d0443eae968233e1/kotlin-stdlib-jdk8-1.9.0-RC.jar
/Users/revin/.gradle/caches/modules-2/files-2.1/com.fasterxml.jackson.module/jackson-module-kotlin/2.14.2/eef6cbd3236664588e646157093d1266bf2d6279/jackson-module-kotlin-2.14.2.jar
/Users/revin/.gradle/caches/modules-2/files-2.1/org.jetbrains.kotlin/kotlin-reflect/1.9.0-RC/2a7a69e82364a9e6f26b8d7053c0e4f1095693e5/kotlin-reflect-1.9.0-RC.jar
/Users/revin/.gradle/caches/modules-2/files-2.1/com.mysql/mysql-connector-j/8.0.32/41ec3f8cdaccf6c46a47d7cd628eeb59a926d9d4/mysql-connector-j-8.0.32.jar
/Users/revin/.gradle/caches/modules-2/files-2.1/com.github.luben/zstd-jni/1.5.2-3/f52de0603f31798455e48bd90e10a8f888dd6d93/zstd-jni-1.5.2-3.jar
/Users/revin/.gradle/caches/modules-2/files-2.1/dnsjava/dnsjava/3.5.2/f980d4c3360861c5c8f1c7632ec5097d675e78f0/dnsjava-3.5.2.jar
/Users/revin/.gradle/caches/modules-2/files-2.1/org.jetbrains.kotlinx/atomicfu-jvm/0.21.0/ffdbefd57197da7e9f28e5135458809376f4f84/atomicfu-jvm-0.21.0.jar
/Users/revin/.gradle/caches/modules-2/files-2.1/org.jetbrains.kotlinx/kotlinx-coroutines-core-jvm/1.7.0/239d3e685a54ae7c75a03708b78f3a810b5fb360/kotlinx-coroutines-core-jvm-1.7.0.jar
/Users/revin/.gradle/caches/modules-2/files-2.1/net.java.dev.jna/jna-platform/5.9.0/c535a5bda553d7d7690356c825010da74b2671b5/jna-platform-5.9.0.jar
/Users/revin/.gradle/caches/modules-2/files-2.1/net.java.dev.jna/jna/5.9.0/8f503e6d9b500ceff299052d6be75b38c7257758/jna-5.9.0.jar
/Users/revin/.gradle/caches/modules-2/files-2.1/org.jetbrains.kotlin/kotlin-stdlib-jdk7/1.9.0-RC/f27a06069a65b5169eb1b740d6e5d6b582de619c/kotlin-stdlib-jdk7-1.9.0-RC.jar
/Users/revin/.gradle/caches/modules-2/files-2.1/org.jetbrains.kotlin/kotlin-stdlib/1.9.0-RC/f42325be451f7f28ec68e1e60227035beae7ca9b/kotlin-stdlib-1.9.0-RC.jar
/Users/revin/.gradle/caches/modules-2/files-2.1/com.fasterxml.jackson.core/jackson-databind/2.14.2/1e71fddbc80bb86f71a6345ac1e8ab8a00e7134/jackson-databind-2.14.2.jar
/Users/revin/.gradle/caches/modules-2/files-2.1/com.fasterxml.jackson.core/jackson-annotations/2.14.2/a7aae9525864930723e3453ab799521fdfd9d873/jackson-annotations-2.14.2.jar
/Users/revin/.gradle/caches/modules-2/files-2.1/com.google.protobuf/protobuf-java/3.21.9/ed1240d9231044ce6ccf1978512f6e44416bb7e7/protobuf-java-3.21.9.jar
/Users/revin/.gradle/caches/modules-2/files-2.1/org.slf4j/slf4j-api/1.7.36/6c62681a2f655b49963a5983b8b0950a6120ae14/slf4j-api-1.7.36.jar
/Users/revin/.gradle/caches/modules-2/files-2.1/org.jetbrains/annotations/23.0.0/8cc20c07506ec18e0834947b84a864bfc094484e/annotations-23.0.0.jar
/Users/revin/.gradle/caches/modules-2/files-2.1/com.fasterxml.jackson.core/jackson-core/2.14.2/f804090e6399ce0cf78242db086017512dd71fcc/jackson-core-2.14.2.jar
/Users/revin/.gradle/caches/modules-2/files-2.1/net.bytebuddy/byte-buddy/1.10.9/2c03f15cd1131692feca93f190ed81412a3de961/byte-buddy-1.10.9.jar
/Users/revin/.gradle/caches/modules-2/files-2.1/net.bytebuddy/byte-buddy-agent/1.10.9/cbbeffa557e6b1b4cbb181b0782436921c523699/byte-buddy-agent-1.10.9.jar
/Users/revin/.gradle/caches/modules-2/files-2.1/org.javassist/javassist/3.22.0-GA/3e83394258ae2089be7219b971ec21a8288528ad/javassist-3.22.0-GA.jar
/Users/revin/.gradle/caches/modules-2/files-2.1/org.apache.hadoop/hadoop-common/3.3.3/2e1293fddedc9d5c42ce07703d22c33eb3b39aa3/hadoop-common-3.3.3.jar
/Users/revin/.gradle/caches/modules-2/files-2.1/org.cryptomator/cryptofs/2.4.4/57fe19964c8fc505414ad1127cdceebcb8e26818/cryptofs-2.4.4.jar
/Users/revin/.gradle/caches/modules-2/files-2.1/org.cryptomator/fuse-nio-adapter/1.3.4/da7ff0a6db524581974dbc7b06d9a19f23cfb06/fuse-nio-adapter-1.3.4.jar
/Users/revin/.gradle/caches/modules-2/files-2.1/org.apache.hadoop.thirdparty/hadoop-shaded-protobuf_3_7/1.1.1/57b7ba0ca94313c342b03bd31830fe4a8f34bc1a/hadoop-shaded-protobuf_3_7-1.1.1.jar
/Users/revin/.gradle/caches/modules-2/files-2.1/org.apache.hadoop/hadoop-annotations/3.3.3/f093f02eb980be6afcda2c86aff71bcf8d9c5d9c/hadoop-annotations-3.3.3.jar
/Users/revin/.gradle/caches/modules-2/files-2.1/org.apache.hadoop/hadoop-auth/3.3.3/6788fe94013801dca0712e3fd19b3c140f03b6e0/hadoop-auth-3.3.3.jar
/Users/revin/.gradle/caches/modules-2/files-2.1/org.apache.hadoop.thirdparty/hadoop-shaded-guava/1.1.1/2419d851c01139edf9e19b81056382163d9bfab/hadoop-shaded-guava-1.1.1.jar
/Users/revin/.gradle/caches/modules-2/files-2.1/com.google.guava/guava/31.1-jre/60458f877d055d0c9114d9e1a2efb737b4bc282c/guava-31.1-jre.jar
/Users/revin/.gradle/caches/modules-2/files-2.1/commons-cli/commons-cli/1.2/2bf96b7aa8b611c177d329452af1dc933e14501c/commons-cli-1.2.jar
/Users/revin/.gradle/caches/modules-2/files-2.1/org.apache.commons/commons-math3/3.1.1/6719d757a98ff24a83d9d727bef9cec83f59b6e1/commons-math3-3.1.1.jar
/Users/revin/.gradle/caches/modules-2/files-2.1/org.apache.httpcomponents/httpclient/4.5.13/e5f6cae5ca7ecaac1ec2827a9e2d65ae2869cada/httpclient-4.5.13.jar
/Users/revin/.gradle/caches/modules-2/files-2.1/commons-codec/commons-codec/1.15/49d94806b6e3dc933dacbd8acb0fdbab8ebd1e5d/commons-codec-1.15.jar
/Users/revin/.gradle/caches/modules-2/files-2.1/commons-io/commons-io/2.8.0/92999e26e6534606b5678014e66948286298a35c/commons-io-2.8.0.jar
/Users/revin/.gradle/caches/modules-2/files-2.1/commons-net/commons-net/3.6/b71de00508dcb078d2b24b5fa7e538636de9b3da/commons-net-3.6.jar
/Users/revin/.gradle/caches/modules-2/files-2.1/commons-beanutils/commons-beanutils/1.9.4/d52b9abcd97f38c81342bb7e7ae1eee9b73cba51/commons-beanutils-1.9.4.jar
/Users/revin/.gradle/caches/modules-2/files-2.1/commons-collections/commons-collections/3.2.2/8ad72fe39fa8c91eaaf12aadb21e0c3661fe26d5/commons-collections-3.2.2.jar
/Users/revin/.gradle/caches/modules-2/files-2.1/org.eclipse.jetty/jetty-webapp/9.4.43.v20210629/a7d28284c66fb6ca71e98a82142b2debd6eeb454/jetty-webapp-9.4.43.v20210629.jar
/Users/revin/.gradle/caches/modules-2/files-2.1/org.eclipse.jetty/jetty-servlet/9.4.43.v20210629/ee000c7dcdbe7b4ef94e3fa67be8f56a46915944/jetty-servlet-9.4.43.v20210629.jar
/Users/revin/.gradle/caches/modules-2/files-2.1/org.eclipse.jetty/jetty-server/9.4.43.v20210629/8ba04f6b5d00223983684a563a3edaa12282bcf0/jetty-server-9.4.43.v20210629.jar
/Users/revin/.gradle/caches/modules-2/files-2.1/javax.servlet/javax.servlet-api/3.1.0/3cd63d075497751784b2fa84be59432f4905bf7c/javax.servlet-api-3.1.0.jar
/Users/revin/.gradle/caches/modules-2/files-2.1/org.eclipse.jetty/jetty-util/9.4.43.v20210629/97306fd3c76171602caad2acc54ca779c9240d5f/jetty-util-9.4.43.v20210629.jar
/Users/revin/.gradle/caches/modules-2/files-2.1/com.sun.jersey/jersey-json/1.19/12491ab748d2bee7be96629a749f361154e6705f/jersey-json-1.19.jar
/Users/revin/.gradle/caches/modules-2/files-2.1/com.sun.jersey/jersey-servlet/1.19/2f19f1f7096d0fe3e09ae5698e4427114c23ad03/jersey-servlet-1.19.jar
/Users/revin/.gradle/caches/modules-2/files-2.1/com.sun.jersey/jersey-server/1.19/ee2ff839a65097eb12004edd909bcb4a97a2832c/jersey-server-1.19.jar
/Users/revin/.gradle/caches/modules-2/files-2.1/com.sun.jersey/jersey-core/1.19/9a0619e2c514a79b610f17cadaae619c0a08d6a6/jersey-core-1.19.jar
/Users/revin/.gradle/caches/modules-2/files-2.1/org.apache.commons/commons-configuration2/2.1.1/d97d5b3f8b58c52730d47e1a63c8d3258f41ca6c/commons-configuration2-2.1.1.jar
/Users/revin/.gradle/caches/modules-2/files-2.1/commons-logging/commons-logging/1.2/4bfc12adfe4842bf07b657f0369c4cb522955686/commons-logging-1.2.jar
/Users/revin/.gradle/caches/modules-2/files-2.1/org.slf4j/slf4j-reload4j/1.7.36/db708f7d959dee1857ac524636e85ecf2e1781c1/slf4j-reload4j-1.7.36.jar
/Users/revin/.gradle/caches/modules-2/files-2.1/ch.qos.reload4j/reload4j/1.2.19/4eae9978468c5e885a6fb44df7e2bbc07a20e6ce/reload4j-1.2.19.jar
/Users/revin/.gradle/caches/modules-2/files-2.1/org.apache.commons/commons-text/1.4/680b74de9c393bbf8d9e951af301659b16845907/commons-text-1.4.jar
/Users/revin/.gradle/caches/modules-2/files-2.1/org.apache.commons/commons-lang3/3.12.0/c6842c86792ff03b9f1d1fe2aab8dc23aa6c6f0e/commons-lang3-3.12.0.jar
/Users/revin/.gradle/caches/modules-2/files-2.1/org.apache.avro/avro/1.7.7/3548c0bc136e71006f3fc34e22d34a29e5069e50/avro-1.7.7.jar
/Users/revin/.gradle/caches/modules-2/files-2.1/org.apache.zookeeper/zookeeper/3.5.6/605a70bdc3306e92d94df3b6258809ba87e9b45b/zookeeper-3.5.6.jar
/Users/revin/.gradle/caches/modules-2/files-2.1/org.apache.kerby/kerb-core/1.0.1/82357e97a5c1b505beb0f6c227d9f39b2d7fdde0/kerb-core-1.0.1.jar
/Users/revin/.gradle/caches/modules-2/files-2.1/org.slf4j/slf4j-api/2.0.3/deef7fc81f00bd5e6205bb097be1040b4094f007/slf4j-api-2.0.3.jar
/Users/revin/.gradle/caches/modules-2/files-2.1/com.google.re2j/re2j/1.1/d716952ab58aa4369ea15126505a36544d50a333/re2j-1.1.jar
/Users/revin/.gradle/caches/modules-2/files-2.1/com.google.code.gson/gson/2.8.9/8a432c1d6825781e21a02db2e2c33c5fde2833b9/gson-2.8.9.jar
/Users/revin/.gradle/caches/modules-2/files-2.1/com.jcraft/jsch/0.1.55/bbd40e5aa7aa3cfad5db34965456cee738a42a50/jsch-0.1.55.jar
/Users/revin/.gradle/caches/modules-2/files-2.1/org.apache.curator/curator-recipes/4.2.0/7f775be5a7062c2477c51533b9d008f70411ba8e/curator-recipes-4.2.0.jar
/Users/revin/.gradle/caches/modules-2/files-2.1/org.apache.curator/curator-client/4.2.0/d5d50930b8dd189f92c40258a6ba97675fea3e15/curator-client-4.2.0.jar
/Users/revin/.gradle/caches/modules-2/files-2.1/com.google.code.findbugs/jsr305/3.0.2/25ea2e8b0c338a877313bd4672d3fe056ea78f0d/jsr305-3.0.2.jar
/Users/revin/.gradle/caches/modules-2/files-2.1/org.apache.commons/commons-compress/1.21/4ec95b60d4e86b5c95a0e919cb172a0af98011ef/commons-compress-1.21.jar
/Users/revin/.gradle/caches/modules-2/files-2.1/com.fasterxml.woodstox/woodstox-core/5.3.0/59a3a7fb46a364ee383ea7e8c67c152a224b3d99/woodstox-core-5.3.0.jar
/Users/revin/.gradle/caches/modules-2/files-2.1/org.codehaus.woodstox/stax2-api/4.2.1/a3f7325c52240418c2ba257b103c3c550e140c83/stax2-api-4.2.1.jar
/Users/revin/.gradle/caches/modules-2/files-2.1/org.xerial.snappy/snappy-java/1.1.8.2/4205e3cf9c44264731ad002fcd2520eb1b2bb801/snappy-java-1.1.8.2.jar
/Users/revin/.gradle/caches/modules-2/files-2.1/org.cryptomator/cryptolib/2.1.0-rc1/952e8b7a1b6e19bac1108e8da382d4094a5629cc/cryptolib-2.1.0-rc1.jar
/Users/revin/.gradle/caches/modules-2/files-2.1/com.auth0/java-jwt/4.0.0/b73d56c5efa1b51c7e5f99a4f724f98717c02689/java-jwt-4.0.0.jar
/Users/revin/.gradle/caches/modules-2/files-2.1/com.google.dagger/dagger/2.44/8e8d1b776ce69b66f46fb7862db68cfbeee4f43c/dagger-2.44.jar
/Users/revin/.gradle/caches/modules-2/files-2.1/com.github.serceman/jnr-fuse/0.5.7/b55714c0d71c7856b55563cf487242d5c246cf3d/jnr-fuse-0.5.7.jar
/Users/revin/.gradle/caches/modules-2/files-2.1/org.apache.kerby/kerb-simplekdc/1.0.1/1e39adf7c3f5e87695789994b694d24c1dda5752/kerb-simplekdc-1.0.1.jar
/Users/revin/.gradle/caches/modules-2/files-2.1/org.apache.curator/curator-framework/4.2.0/5b1cc87e17b8fe4219b057f6025662a693538861/curator-framework-4.2.0.jar
/Users/revin/.gradle/caches/modules-2/files-2.1/com.nimbusds/nimbus-jose-jwt/9.8.1/2af7f734313320e4b156522d22ce32b775633909/nimbus-jose-jwt-9.8.1.jar
/Users/revin/.gradle/caches/modules-2/files-2.1/net.minidev/json-smart/2.4.7/8d7f4c1530c07c54930935f3da85f48b83b3c109/json-smart-2.4.7.jar
/Users/revin/.gradle/caches/modules-2/files-2.1/com.google.guava/failureaccess/1.0.1/1dcf1de382a0bf95a3d8b0849546c88bac1292c9/failureaccess-1.0.1.jar
/Users/revin/.gradle/caches/modules-2/files-2.1/com.google.guava/listenablefuture/9999.0-empty-to-avoid-conflict-with-guava/b421526c5f297295adef1c886e5246c39d4ac629/listenablefuture-9999.0-empty-to-avoid-conflict-with-guava.jar
/Users/revin/.gradle/caches/modules-2/files-2.1/org.checkerframework/checker-qual/3.12.0/d5692f0526415fcc6de94bb5bfbd3afd9dd3b3e5/checker-qual-3.12.0.jar
/Users/revin/.gradle/caches/modules-2/files-2.1/com.google.errorprone/error_prone_annotations/2.11.0/c5a0ace696d3f8b1c1d8cc036d8c03cc0cbe6b69/error_prone_annotations-2.11.0.jar
/Users/revin/.gradle/caches/modules-2/files-2.1/com.google.j2objc/j2objc-annotations/1.3/ba035118bc8bac37d7eff77700720999acd9986d/j2objc-annotations-1.3.jar
/Users/revin/.gradle/caches/modules-2/files-2.1/org.apache.httpcomponents/httpcore/4.4.13/853b96d3afbb7bf8cc303fe27ee96836a10c1834/httpcore-4.4.13.jar
/Users/revin/.gradle/caches/modules-2/files-2.1/org.eclipse.jetty/jetty-xml/9.4.43.v20210629/f06c27f4855785847c299d94591a7ac324fb32f1/jetty-xml-9.4.43.v20210629.jar
/Users/revin/.gradle/caches/modules-2/files-2.1/org.eclipse.jetty/jetty-security/9.4.43.v20210629/ae1958da077c46bac61be9b8de2b45a3aa112353/jetty-security-9.4.43.v20210629.jar
/Users/revin/.gradle/caches/modules-2/files-2.1/org.eclipse.jetty/jetty-util-ajax/9.4.43.v20210629/2500d180c6e8e28eb3b75372b6ea9d457cf37658/jetty-util-ajax-9.4.43.v20210629.jar
/Users/revin/.gradle/caches/modules-2/files-2.1/org.eclipse.jetty/jetty-http/9.4.43.v20210629/5171466337a6da7efbf317490b9c4574c0b4b640/jetty-http-9.4.43.v20210629.jar
/Users/revin/.gradle/caches/modules-2/files-2.1/org.eclipse.jetty/jetty-io/9.4.43.v20210629/acf672c64ac21851069c5b5b789e5c185a25933f/jetty-io-9.4.43.v20210629.jar
/Users/revin/.gradle/caches/modules-2/files-2.1/org.codehaus.jettison/jettison/1.1/1a01a2a1218fcf9faa2cc2a6ced025bdea687262/jettison-1.1.jar
/Users/revin/.gradle/caches/modules-2/files-2.1/com.sun.xml.bind/jaxb-impl/2.2.3-1/56baae106392040a45a06d4a41099173425da1e6/jaxb-impl-2.2.3-1.jar
/Users/revin/.gradle/caches/modules-2/files-2.1/org.codehaus.jackson/jackson-jaxrs/1.9.2/aedf43f1d5005561e531b6bf0d067e4d20f58aba/jackson-jaxrs-1.9.2.jar
/Users/revin/.gradle/caches/modules-2/files-2.1/org.codehaus.jackson/jackson-xc/1.9.2/437c991a8eb2c8b69ef1dba2eba27fccb9b98448/jackson-xc-1.9.2.jar
/Users/revin/.gradle/caches/modules-2/files-2.1/org.codehaus.jackson/jackson-mapper-asl/1.9.13/1ee2f2bed0e5dd29d1cb155a166e6f8d50bbddb7/jackson-mapper-asl-1.9.13.jar
/Users/revin/.gradle/caches/modules-2/files-2.1/org.codehaus.jackson/jackson-core-asl/1.9.13/3c304d70f42f832e0a86d45bd437f692129299a4/jackson-core-asl-1.9.13.jar
/Users/revin/.gradle/caches/modules-2/files-2.1/javax.ws.rs/jsr311-api/1.1.1/59033da2a1afd56af1ac576750a8d0b1830d59e6/jsr311-api-1.1.1.jar
/Users/revin/.gradle/caches/modules-2/files-2.1/com.thoughtworks.paranamer/paranamer/2.3/4a85963a752c0a2f715c3924bfc686865e7e1bc6/paranamer-2.3.jar
/Users/revin/.gradle/caches/modules-2/files-2.1/org.apache.zookeeper/zookeeper-jute/3.5.6/eb8794187011fae2de22f6187e4fb6b1a7cf34d7/zookeeper-jute-3.5.6.jar
/Users/revin/.gradle/caches/modules-2/files-2.1/org.apache.yetus/audience-annotations/0.5.0/55762d3191a8d6610ef46d11e8cb70c7667342a3/audience-annotations-0.5.0.jar
/Users/revin/.gradle/caches/modules-2/files-2.1/io.netty/netty-handler/4.1.42.Final/fc6546be5df552d9729f008d8d41a6dee28127aa/netty-handler-4.1.42.Final.jar
/Users/revin/.gradle/caches/modules-2/files-2.1/io.netty/netty-transport-native-epoll/4.1.42.Final/4e99c63bdcf2bd1e61bf2d95c7abf761c09edde9/netty-transport-native-epoll-4.1.42.Final.jar
/Users/revin/.gradle/caches/modules-2/files-2.1/org.slf4j/slf4j-log4j12/1.7.25/110cefe2df103412849d72ef7a67e4e91e4266b4/slf4j-log4j12-1.7.25.jar
/Users/revin/.gradle/caches/modules-2/files-2.1/log4j/log4j/1.2.17/5af35056b4d257e4b64b9e8069c0746e8b08629f/log4j-1.2.17.jar
/Users/revin/.gradle/caches/modules-2/files-2.1/org.apache.kerby/kerby-pkix/1.0.1/4c1fd1f78ba7c16cf6fcd663ddad7eed34b4d911/kerby-pkix-1.0.1.jar
/Users/revin/.gradle/caches/modules-2/files-2.1/org.cryptomator/siv-mode/1.4.4/513949658a9b4569eda741396a0533d7303d77ac/siv-mode-1.4.4.jar
/Users/revin/.gradle/caches/modules-2/files-2.1/javax.inject/javax.inject/1/6975da39a7040257bd51d21a231b76c915872d38/javax.inject-1.jar
/Users/revin/.gradle/caches/modules-2/files-2.1/com.github.jnr/jnr-posix/3.1.10/18f1ebd53c4a6d7d23487f8f73c3e6adc4cd6716/jnr-posix-3.1.10.jar
/Users/revin/.gradle/caches/modules-2/files-2.1/com.github.jnr/jnr-ffi/2.2.7/73987a1153030a3f1fd6c304531235ad5a0abc74/jnr-ffi-2.2.7.jar
/Users/revin/.gradle/caches/modules-2/files-2.1/com.github.jnr/jnr-constants/0.10.2/11a081b5482f415443d5e4b860b7a3cb62e319d3/jnr-constants-0.10.2.jar
/Users/revin/.gradle/caches/modules-2/files-2.1/org.apache.kerby/kerb-client/1.0.1/a82d2503e718d17628fc9b4db411b001573f61b7/kerb-client-1.0.1.jar
/Users/revin/.gradle/caches/modules-2/files-2.1/org.apache.kerby/kerb-admin/1.0.1/7868b29620b92aa1040fe20d21ba09f2506207aa/kerb-admin-1.0.1.jar
/Users/revin/.gradle/caches/modules-2/files-2.1/com.github.stephenc.jcip/jcip-annotations/1.0-1/ef31541dd28ae2cefdd17c7ebf352d93e9058c63/jcip-annotations-1.0-1.jar
/Users/revin/.gradle/caches/modules-2/files-2.1/net.minidev/accessors-smart/2.4.7/3970cfc505e6657ca60f3aa57c849f6043000d7a/accessors-smart-2.4.7.jar
/Users/revin/.gradle/caches/modules-2/files-2.1/javax.xml.bind/jaxb-api/2.2.2/aeb3021ca93dde265796d82015beecdcff95bf09/jaxb-api-2.2.2.jar
/Users/revin/.gradle/caches/modules-2/files-2.1/io.netty/netty-codec/4.1.42.Final/b1d5ed85a558fbbadc2783f869fbd0adcd32b07b/netty-codec-4.1.42.Final.jar
/Users/revin/.gradle/caches/modules-2/files-2.1/io.netty/netty-transport/4.1.42.Final/857502e863c02c829fdafea61c3fda6bda01d0af/netty-transport-4.1.42.Final.jar
/Users/revin/.gradle/caches/modules-2/files-2.1/io.netty/netty-buffer/4.1.42.Final/6e6fc9178d1f1401aa0d6b843341efb91720f2cd/netty-buffer-4.1.42.Final.jar
/Users/revin/.gradle/caches/modules-2/files-2.1/io.netty/netty-common/4.1.42.Final/e02700b574d3a0e2100308f971f0753ac8700e7c/netty-common-4.1.42.Final.jar
/Users/revin/.gradle/caches/modules-2/files-2.1/io.netty/netty-transport-native-unix-common/4.1.42.Final/344ff6fc05315233f0db5d86f94e8a3b5799b995/netty-transport-native-unix-common-4.1.42.Final.jar
/Users/revin/.gradle/caches/modules-2/files-2.1/org.apache.kerby/kerby-asn1/1.0.1/d54a9712c29c4e6d9d9ba483fad3d450be135fff/kerby-asn1-1.0.1.jar
/Users/revin/.gradle/caches/modules-2/files-2.1/org.apache.kerby/kerby-util/1.0.1/389b730dc4e454f70d72ec19ddac2528047f157e/kerby-util-1.0.1.jar
/Users/revin/.gradle/caches/modules-2/files-2.1/com.github.jnr/jffi/1.3.5/1dadd62fc8434d4ba6e3c78ed42e4852d79d3a46/jffi-1.3.5.jar
/Users/revin/.gradle/caches/modules-2/files-2.1/org.ow2.asm/asm-commons/9.2/f4d7f0fc9054386f2893b602454d48e07d4fbead/asm-commons-9.2.jar
/Users/revin/.gradle/caches/modules-2/files-2.1/org.ow2.asm/asm-util/9.2/fbc178fc5ba3dab50fd7e8a5317b8b647c8e8946/asm-util-9.2.jar
/Users/revin/.gradle/caches/modules-2/files-2.1/org.ow2.asm/asm-analysis/9.2/7487dd756daf96cab9986e44b9d7bcb796a61c10/asm-analysis-9.2.jar
/Users/revin/.gradle/caches/modules-2/files-2.1/org.ow2.asm/asm-tree/9.2/d96c99a30f5e1a19b0e609dbb19a44d8518ac01e/asm-tree-9.2.jar
/Users/revin/.gradle/caches/modules-2/files-2.1/org.ow2.asm/asm/9.2/81a03f76019c67362299c40e0ba13405f5467bff/asm-9.2.jar
/Users/revin/.gradle/caches/modules-2/files-2.1/com.github.jnr/jnr-a64asm/1.0.0/a1cb8dbe71b5a6a0288043c3ba3ca64545be165/jnr-a64asm-1.0.0.jar
/Users/revin/.gradle/caches/modules-2/files-2.1/com.github.jnr/jnr-x86asm/1.0.2/6936bbd6c5b235665d87bd450f5e13b52d4b48/jnr-x86asm-1.0.2.jar
/Users/revin/.gradle/caches/modules-2/files-2.1/org.apache.kerby/kerb-common/1.0.1/e358016010b6355630e398db20d83925462fa4cd/kerb-common-1.0.1.jar
/Users/revin/.gradle/caches/modules-2/files-2.1/org.apache.kerby/kerb-util/1.0.1/93d37f677addd2450b199e8da8fcac243ceb8a88/kerb-util-1.0.1.jar
/Users/revin/.gradle/caches/modules-2/files-2.1/org.apache.kerby/token-provider/1.0.1/e6feb6b7c06600924e8b6bda3263c870cfb0a447/token-provider-1.0.1.jar
/Users/revin/.gradle/caches/modules-2/files-2.1/org.apache.kerby/kerby-config/1.0.1/a4c3885fa656a92508315aca9b4632197a454b18/kerby-config-1.0.1.jar
/Users/revin/.gradle/caches/modules-2/files-2.1/org.apache.kerby/kerb-server/1.0.1/c56ffb4a6541864daf9868895b79c0c33427fd8c/kerb-server-1.0.1.jar
/Users/revin/.gradle/caches/modules-2/files-2.1/org.apache.kerby/kerby-xdr/1.0.1/7d1b5b69a5ea87fb2f62498710d9d788d17beb2b/kerby-xdr-1.0.1.jar
/Users/revin/.gradle/caches/modules-2/files-2.1/javax.xml.stream/stax-api/1.0-2/d6337b0de8b25e53e81b922352fbea9f9f57ba0b/stax-api-1.0-2.jar
/Users/revin/.gradle/caches/modules-2/files-2.1/javax.activation/activation/1.1/e6cb541461c2834bdea3eb920f1884d1eb508b50/activation-1.1.jar
/Users/revin/.gradle/caches/modules-2/files-2.1/io.netty/netty-resolver/4.1.42.Final/ccaacf418a9e486b65e82c47bed66439119c5fdb/netty-resolver-4.1.42.Final.jar
/Users/revin/.gradle/caches/modules-2/files-2.1/org.apache.kerby/kerb-crypto/1.0.1/66eab4bbf91fa01ed4f72ce771db28c59d35a843/kerb-crypto-1.0.1.jar
/Users/revin/.gradle/caches/modules-2/files-2.1/org.apache.kerby/kerb-identity/1.0.1/eb91bc9b9ff26bfcca077cf1a888fb09e8ce72be/kerb-identity-1.0.1.jar
/Users/revin/.gradle/caches/modules-2/files-2.1/org.jetbrains.kotlin/kotlin-stdlib-common/1.9.0/cd65c21cfd1eec4d44ef09f9f52b6d9f8a720636/kotlin-stdlib-common-1.9.0.jar
/Users/revin/.gradle/caches/modules-2/files-2.1/org.jetbrains.kotlin/kotlin-stdlib-jdk8/1.9.0/e000bd084353d84c9e888f6fb341dc1f5b79d948/kotlin-stdlib-jdk8-1.9.0.jar
/Users/revin/.gradle/caches/modules-2/files-2.1/org.jetbrains.kotlin/kotlin-reflect/1.9.0/2891f552979d4bf4d4ec516acb9df769fb62dbe9/kotlin-reflect-1.9.0.jar
/Users/revin/.gradle/caches/modules-2/files-2.1/org.jetbrains.kotlin/kotlin-stdlib-jdk7/1.9.0/f320478990d05e0cfaadd74f9619fd6027adbf37/kotlin-stdlib-jdk7-1.9.0.jar
/Users/revin/.gradle/caches/modules-2/files-2.1/org.jetbrains.kotlin/kotlin-stdlib/1.9.0/8ee15ef0c67dc83d874f412d84378d7f0eb50b63/kotlin-stdlib-1.9.0.jar

Jupyter Lab

Current classpath (19 paths):
/data01/revin/miniconda3/lib/python3.9/site-packages/run_kotlin_kernel/jars/lib-0.11.0-385.jar
/data01/revin/miniconda3/lib/python3.9/site-packages/run_kotlin_kernel/jars/api-0.11.0-385.jar
/data01/revin/miniconda3/lib/python3.9/site-packages/run_kotlin_kernel/jars/kotlin-script-runtime-1.8.20.jar
/data01/revin/miniconda3/lib/python3.9/site-packages/run_kotlin_kernel/jars/kotlin-reflect-1.8.20.jar
/data01/revin/miniconda3/lib/python3.9/site-packages/run_kotlin_kernel/jars/kotlin-stdlib-1.8.20.jar
/data01/revin/miniconda3/lib/python3.9/site-packages/run_kotlin_kernel/jars/kotlin-stdlib-common-1.8.20.jar
/data01/revin/miniconda3/lib/python3.9/site-packages/run_kotlin_kernel/jars/annotations-13.0.jar
/data01/revin/miniconda3/lib/python3.9/site-packages/run_kotlin_kernel/jars/kotlinx-serialization-json-jvm-1.4.1.jar
/data01/revin/miniconda3/lib/python3.9/site-packages/run_kotlin_kernel/jars/kotlinx-serialization-core-jvm-1.4.1.jar
/data01/revin/miniconda3/lib/python3.9/site-packages/run_kotlin_kernel/jars/kotlin-stdlib-jdk8-1.7.20.jar
/data01/revin/miniconda3/lib/python3.9/site-packages/run_kotlin_kernel/jars/kotlin-stdlib-jdk7-1.7.20.jar
/data01/revin/.starBase/corex-main.jar
/data01/revin/.m2/repository/org/jetbrains/kotlinx/kotlinx-coroutines-core/1.7.1/kotlinx-coroutines-core-1.7.1.jar
/data01/revin/.m2/repository/org/jetbrains/kotlinx/kotlinx-coroutines-core-jvm/1.7.1/kotlinx-coroutines-core-jvm-1.7.1.jar
/data01/revin/.m2/repository/org/jetbrains/annotations/23.0.0/annotations-23.0.0.jar
/data01/revin/.m2/repository/org/jetbrains/kotlin/kotlin-stdlib-common/1.8.20/kotlin-stdlib-common-1.8.20.jar
/data01/revin/.m2/repository/org/jetbrains/kotlin/kotlin-stdlib-jdk8/1.8.20/kotlin-stdlib-jdk8-1.8.20.jar
/data01/revin/.m2/repository/org/jetbrains/kotlin/kotlin-stdlib/1.8.20/kotlin-stdlib-1.8.20.jar
/data01/revin/.m2/repository/org/jetbrains/kotlin/kotlin-stdlib-jdk7/1.8.20/kotlin-stdlib-jdk7-1.8.20.jar

@revintec
Copy link
Author

revintec commented Jul 13, 2023

@ileasile how can I invalidate the kotlin jupyter compiler cache? or how can I confirm if this is the problem?
maybe you could point me the source code where symbol resolution is done so I can dig deeper?

@ileasile
Copy link
Contributor

ileasile commented Jul 13, 2023

Restarting kernel and execution of cells in the correct order doesn't help, right?

@ileasile
Copy link
Contributor

I actually can show you the place, but it's too deep)

@revintec
Copy link
Author

revintec commented Jul 13, 2023

@ileasile restarting the kernel works... but I did recall I've restarted the jupyter lab server several times earlier and still having the problem... weird...

do you know how I can use Kotlin Notebook plugin to connect to the remote kotlin jupyter kernel? I'm using jupyter instead of Kotlin Notebook because the dataset I have to analyze is VERY large, like >300GB, so I have to run it on a server instead of on my puny laptop

the following won't work
image
this shows every time and no code got executed. the remote kotlin jupyter server log shows nothing
image

@ileasile
Copy link
Contributor

Do you press "Terminate"? It looks like it tries to terminate the local kernel process in favor of remote one.
Anyways it shouldn't be so compilcated, I filed a bug: https://youtrack.jetbrains.com/issue/KTNB-310/Make-configured-jupyter-server-work-in-Kotlin-Notebook

@revintec
Copy link
Author

@ileasile thanks for the youtrack issue, I'll add more info there

I've pressed Terminate multiple times, but it won't work, the code won't execute, and when trying to execute the code again, the Terminate alert box is shown again, and things just loop

anyway the original issue seems to be caused by stale compiler cache, and seems fixed now, so I'm closing this issue
you can @ me and reopen this issue if you need me to provide more information or try to reproduce the issue

thanks again for all your swift replies

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Installation and functionality issues
Projects
None yet
Development

No branches or pull requests

2 participants