Because the Kotlin/JS lockfile updating is buggy, ...
# intellij
c
Because the Kotlin/JS lockfile updating is buggy, I need to delete the lockfiles before attempting to run the gradle tasks to re-generate them I’m trying to set up an IntelliJ Gradle run configuration that will 1.
rm
the kotlin-js-store directory 2. Run the gradle task to regenerate the Kotlin/JS lockfile I can get it working locally, but not when checking the run configuration into the Git repo. I’ve tried: 1. Add the shell commands as an Before launch “Run external tool” configuration. The problem is that this creates some kind of run configuration that’s stored separately from my Gradle run configuration, therefore it doesn’t get checked into the repo 2. Create a shared Shell script run configuration, then have the Before launch use this. The problem with this option is the hardcoded working directory path, which requires all checkouts be at the same path. Run external tool option above allows a
$ProjectFileDir$
variable Ideas?
m
Make a dedicated task inside Gradle?
Also, I'm sure you have already but for others in that thread, upvote https://youtrack.jetbrains.com/issue/KT-69684 and https://youtrack.jetbrains.com/issue/KT-79811
c
That issue points to a Slack thread I started 🙃
m
Ahah those are the best issues!
🙈 2
"Wait, I know this person, this is ... me!"
c
spiderman pointing
So… I also have to delete part of the root kotlin build directory too 😬, the js directory. I’d have to test whether that blows things up.