Unknown opened 4 years ago
|
|
You have to update Kotlin library location in file
Or simply grab this file from other CN1 project what works. |
|
This helped but your suggested solution has a few problems:
I think it IntelliJ is usually installed in standard location, so, it would be best to use path to the IntelliJ Kotlin plugin location, which makes it most portable. Then it does not directly depends on Kotlin version. Like this:
In any case, the CN1 supports only Kotlin ver. 1.3.72, and the library compilation fails under this Kotlin version. I would suggest to install in IntelliJ kotlin plugin for this particular version of the Kotlin, to make sure our code is compatible. Here is compilation output:
|
|
I removed all "trailing comas" errors but still the compilation fails with the following errors:
|
|
Minor side-comment:
This doesn't seem to be the case if you use JetbrainsToolbox to install Idea. In that case it's |
|
Thank you for the input. I gave up on Toolbox a while ago because it messed licenses up for me. It was always confused which IDE is licensed and which is Community. The above location, I gave is fixed, indeed and indeed OS dependent but at least it is stable on this OS. And right now we all use the same OS, so it seems like the best solution. However, I am open to different suggestions. I am not sure if the properties file can use ENV variables. If it could, then universal solution would be very simple and easy. If it cannot have use ENV variables we could all agree on one, fixed location for kotlinc and then have a fixed location in the properties file. |
|
Ok, I found a solution which seems to be working. It is, indeed, based on ENV variables. It does need a little bit of editing build file and properties but these are really minor build.xml file modifications - add a single line:
Just after second XML line starting with
In my case, the beginning of the build.xml file looks like this:
Now the
Of course the
This should solve the problem on all platforms and OSes and different way we have system configured. @bmalkow as you maintain the code repo, could you please make the necessary adjustments in the build files? |
|
Can we apply the solution above? If so, please do and you can then close the ticket. |
|
I did it. But I did it in a bit different way. Instead of using new |
|
Works for me, thank you. |
According to your comments, in order to get new version of the library I should do:
However, I am getting error and I am unable to compile the project:
Please assist with the project compilation. Perhaps I am missing something or maybe I need some additional tools?