Open hacker1024 opened 4 years ago
It was painfully slow uploading 4mb of Kotlin classes via bluetooth every run, so I modded it to add the Kotlin classes to the jar classpath.
kotlin-reflect.jar
, kotlin-stdlib.jar
, kotlin-stdlib-jdk7.jar
, kotlin-stdlib-jdk8.jar
, and kotlin-test.jar
to /home/root/lejos/lib/
Hi, cool solution. This was done for a previous version of Kotlin, and the easy thing was to build it with libraries in it. But of course, it is way much faster if you manage to upload the kotlin jars directly. If you want you can create a PR to the project and I can add your code there.
Miguel
On Tue, Apr 7, 2020 at 10:12 AM hacker1024 notifications@github.com wrote:
It was painfully slow uploading 4mb of Kotlin classes via bluetooth every run, so I modded it to add the Kotlin classes to the jar classpath.
- Use SCP to copy kotlin-reflect.jar, kotlin-stdlib.jar, kotlin-stdlib-jdk7.jar, kotlin-stdlib-jdk8.jar, and kotlin-test.jar to /home/root/lejos/lib/
- Install my modified plugin https://drive.google.com/file/d/1BHdhru3eO2e8G9BDn9CIfynsR3TFGudf/view?usp=sharing
— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub https://github.com/miguelcordovam/leJOS_plugin/issues/13#issuecomment-610243852, or unsubscribe https://github.com/notifications/unsubscribe-auth/ABLLT2NLLDJKXDJHKU5VHFTRLLN57ANCNFSM4MC2J4NQ .
It was painfully slow uploading 4mb of Kotlin classes via bluetooth every run, so I modded it to add the Kotlin classes to the jar classpath.
1. Use SCP to copy `kotlin-reflect.jar`, `kotlin-stdlib.jar`, `kotlin-stdlib-jdk7.jar`, `kotlin-stdlib-jdk8.jar`, and `kotlin-test.jar` to `/home/root/lejos/lib/` 2. Install [my modified plugin ](https://drive.google.com/file/d/1BHdhru3eO2e8G9BDn9CIfynsR3TFGudf/view?usp=sharing)
I added Kotlin support and made a pull request: #15 Commit
Hello guys, can someone tell me how can I install this patched version of the plugin? I tried to install it directly from intelliJ, but it still has the previous errors. PS: I use windows 10
@qhamza sure, follow these instructions on my fork
@qhamza sure, follow these instructions on my fork
Thank you so much, now it works greatly!
As a workaround for now, I built a patched version of the plugin that doesn't build the jar itself. Instead, configure the ide to build a jar artifact (including all libraries) to the root of your project folder.
https://drive.google.com/file/d/1mXnhSYTeunS2EFmTbtYn_TqxE477tVCq/view?usp=sharing