-
Notifications
You must be signed in to change notification settings - Fork 7
New issue
Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? # to your account
Don't sync the build file on project open #79
Comments
Kotlin should be configured inside Build.kt script and you will not have that issue.
This will be probably muted. |
Can you elaborate? How do I configure in the build file?
…On Apr 1, 2017 8:22 AM, "Dmitry Zhuravlev" ***@***.***> wrote:
Forces me to reconfigure Kotlin for that project
Kotlin should be configured inside Build.kt script and you will not have
that issue.
Causes the display of the recv failed message (separate issue filed for
that)
This will be probably muted.
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub
<#79 (comment)>,
or mute the thread
<https://github.com/notifications/unsubscribe-auth/AAFoon6paGhJ2jdAalPlnS3yQ-mtTNJ8ks5rrmuhgaJpZM4MwfNI>
.
|
As you remember before Kotlin 1.1 out there was some talks about Kobalt Kotlin configurator. Mentioned about it previously.... e.g. here #69 (comment) Also it could be done without this configurator by simple adding corresponding dependencies inside Build.kt file. It is the only one proper way to configure Kotlin runtime- inside Build.kt file. |
Sorry I don't follow.
The build file should not contain extra dependencies just to keep the
plugin happy.
Can you give an example?
…On Apr 1, 2017 9:02 AM, "Dmitry Zhuravlev" ***@***.***> wrote:
As you remember before Kotlin 1.1 out there was some talks about Kobalt
Kotlin configurator. Mentioned about it previously.... e.g. here #69
(comment)
<#69 (comment)>
Also it could be done without this configurator by simple adding
corresponding dependencies inside Build.kt file.
It is the only one proper way to configure Kotlin runtime- inside Build.kt
file.
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub
<#79 (comment)>,
or mute the thread
<https://github.com/notifications/unsubscribe-auth/AAFool7BPbgnmJbTQotRqoYPXPeYdCYEks5rrnUtgaJpZM4MwfNI>
.
|
It is not an extra dependency. Kotlin runtime lib it is regular compile time project dependency which should be explicitly present like other dependencies in the project. |
Oh I didn't realize that's all I needed. I just added Great! I'd rather avoid forcing users to explicitly add this dependency, though, so I think if Kobalt detects a Kotlin project, it will automatically add this dependency (and Thoughts? |
Yeach it could be like this. But the users should not be forced to use Kotlin version which have Kobalt under the hood.... We again back to the main issue cbeust/kobalt#317 In general: Kotlin version inside Kobalt should not affect Kotlin version inside Kobalt's project. |
By the way I fixed the cause of "sync on every start". But we should take in mind #79 (comment) and cbeust/kobalt#317 |
Actually maybe it is a good solution together with directive |
Yes, that's trivial with Kobalt's architecture: the Kotlin plug-in can contribute additional classpath entries if it detects |
Great! In this case lets send at least |
Actually that's already happening: https://github.com/cbeust/kobalt/blob/master/src/main/kotlin/com/beust/kobalt/plugin/kotlin/KotlinPlugin.kt#L102 Not sending |
This doesn't work when Kobalt server send dependencies to plugin... Just recheched in Kobalt 1.0.68
Actually yes, you are right. Expecialy in case if user don't want to use it. |
Whenever I open a project, the plug-in resyncs my build file (even if it doesn't need to), which
recv failed
message (separate issue filed for that)I think we should not sync automatically like that and ultimately, we shouldn't have to reconfigure Kotlin every time we sync (I know it's connected to the fact that the Kobalt dependencies have
kotlin-compiler-embeddable
in them, any progress on fixing that?).The text was updated successfully, but these errors were encountered: