Improved support for revisions
[?]
Mar 31, 2021, 10:43 PM
ZCRW57C5MSBXYGUMGQTZNHGHO4HGHFBICW53X5I2IMGP3H2CKWRQCDependencies
- [2]
Q7FXTHVUFirst record support, YEAAAH, RECOOORD - [3]
EAGIDXOLBuild 2 to only listen to changes in project under pijul - [4]
FRFFQV7VBasic show history support. - [5]
6CR2EFUNFirst ChangeProvider implementation!!! Wheehooo - [6]
QXUEMZ3BInitial CahngeProvider - [7]
NTRPUMVQImproved README and added roadmap. - [8]
FNNW5IEAAdded more plugin files to Pijul - [9]
GGYFPXNDInitial plugin - [10]
MTPTFTHGInitial plugin 2 - [11]
OPFG6CZ2File status tracking supported. - [*]
7L5LODGZParse changes from `pijul change`
Change contents
- edit in src/main/resources/messages/DraconBundle.properties at line 18
action.Pijul.ExpertRecord.text=Record (Expert Mode)... - replacement in src/main/resources/messages/DraconBundle.properties at line 32
record.author=&Author:[2.58]record.author=&Author:record.expert.mode.title=Record (Expert Mode)expert.mode.button.record=Recordexpert.mode.button.cancel=Cancelexpert.mode.notification.group.id=Expert modeexpert.mode.notification.title=Record (expert mode)expert.mode.notification.success=Successfully recorded changes. New revision: <tt>{0}</tt>.expert.mode.notification.failure=Failed to record changes with exit code <bold>{0}</bold> and message: <tt>{1}</tt>. - edit in src/main/resources/META-INF/plugin.xml at line 1
<!--Dracon - An IntelliJ-Pijul integration.Copyright 2021 JonathanxD <jhrldev@gmail.com>Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.--> - edit in src/main/resources/META-INF/plugin.xml at line 19
<depends>org.toml.lang</depends> - edit in src/main/resources/META-INF/plugin.xml at line 21
- edit in src/main/resources/META-INF/plugin.xml at line 32
<completion.contributor language="TOML" implementationClass="com.github.jonathanxd.dracon.completion.PijulCompletionContributor" /> - edit in src/main/resources/META-INF/plugin.xml at line 42
<action id="Pijul.ExpertRecord" class="com.github.jonathanxd.dracon.actions.PijulExpertRecord"/> - edit in src/main/resources/META-INF/plugin.xml at line 56
<reference ref="CheckinFiles"/><reference ref="CheckinProject"/><reference ref="Pijul.ExpertRecord"/><separator/><reference ref="Compare.SameVersion"/><reference ref="Compare.Selected"/> - edit in src/main/resources/META-INF/plugin.xml at line 69
- edit in src/main/kotlin/com/github/jonathanxd/dracon/vfs/PijulVirtualFileStatusProvider.kt at line 18
import com.intellij.openapi.vcs.ProjectLevelVcsManager - replacement in src/main/kotlin/com/github/jonathanxd/dracon/vfs/PijulVirtualFileStatusProvider.kt at line 24
if (!Pijul.isUnderPijul(virtualFile))if (!Pijul.isUnderPijul(virtualFile) || isIdeaRoot(virtualFile)) - replacement in src/main/kotlin/com/github/jonathanxd/dracon/vfs/PijulVirtualFileStatusProvider.kt at line 33
status.result ?: FileStatus.UNKNOWNstatus.result - edit in src/main/kotlin/com/github/jonathanxd/dracon/vfs/PijulVirtualFileStatusProvider.kt at line 36
}}fun isIdeaRoot(virtualFile: VirtualFile): Boolean {val root = ProjectLevelVcsManager.getInstance(project).getVcsRootFor(virtualFile)if (root != null) {return root == virtualFile || virtualFile.toNioPath().toAbsolutePath().toString().startsWith(root.toNioPath().toAbsolutePath().resolve(".idea").toString())} else {return false - edit in src/main/kotlin/com/github/jonathanxd/dracon/revision/RevisionContentResolver.kt at line 5
import com.intellij.openapi.util.io.FileUtilRt - edit in src/main/kotlin/com/github/jonathanxd/dracon/revision/RevisionContentResolver.kt at line 7
import com.intellij.openapi.vfs.VirtualFile - edit in src/main/kotlin/com/github/jonathanxd/dracon/revision/RevisionContentResolver.kt at line 50
val tempDir = FileUtilRt.createTempDirectory("dracon_diffs-", revisionHash)val tmpTarget = tempDir.toPath() - edit in src/main/kotlin/com/github/jonathanxd/dracon/revision/RevisionContentResolver.kt at line 53
val tmpTarget = Paths.get(project.baseDir.path, ".idea", "dracon_diffs", revisionHash)if (Files.exists(tmpTarget)) {Files.walk(tmpTarget).use { walk ->walk.sorted(Comparator.reverseOrder()).map(Path::toFile).forEach(File::delete)}}Files.createDirectories(tmpTarget) - replacement in src/main/kotlin/com/github/jonathanxd/dracon/revision/RevisionContentResolver.kt at line 63
return Files.readString(tmpTarget.resolve(filePath))val relativeToRoot = filePath.subpath(root.nameCount, filePath.nameCount)try {return Files.readString(tmpTarget.resolve(relativeToRoot))} finally {FileUtilRt.delete(tempDir)} - edit in src/main/kotlin/com/github/jonathanxd/dracon/revision/PijulVcsFileRevision.kt at line 5
import com.intellij.openapi.vcs.LocalFilePath - edit in src/main/kotlin/com/github/jonathanxd/dracon/revision/PijulVcsFileRevision.kt at line 8
import com.intellij.openapi.vcs.history.VcsFileRevisionEx - edit in src/main/kotlin/com/github/jonathanxd/dracon/revision/PijulVcsFileRevision.kt at line 10
import com.intellij.vcs.log.VcsUserimport java.nio.file.Files - replacement in src/main/kotlin/com/github/jonathanxd/dracon/revision/PijulVcsFileRevision.kt at line 22
val author_: String?,val authors: List<VcsUser>, - replacement in src/main/kotlin/com/github/jonathanxd/dracon/revision/PijulVcsFileRevision.kt at line 24
val branch: String?) : VcsFileRevision {val branch: String?,val deleted: Boolean) : VcsFileRevisionEx(), Comparable<PijulVcsFileRevision> { - replacement in src/main/kotlin/com/github/jonathanxd/dracon/revision/PijulVcsFileRevision.kt at line 32
author_: String?,authors: List<VcsUser>, - replacement in src/main/kotlin/com/github/jonathanxd/dracon/revision/PijulVcsFileRevision.kt at line 34
branch: String?): this(project, vcsRoot, Paths.get(filePath.path).relativeTo(vcsRoot), revision, author_, message, branch)branch: String?,deleted: Boolean): this(project, vcsRoot, Paths.get(filePath.path).relativeTo(vcsRoot), revision, authors, message, branch, deleted) - replacement in src/main/kotlin/com/github/jonathanxd/dracon/revision/PijulVcsFileRevision.kt at line 46
override fun getAuthor(): String? = this.author_override fun getAuthor(): String? = this.authors.map { it.name }.firstOrNull() - edit in src/main/kotlin/com/github/jonathanxd/dracon/revision/PijulVcsFileRevision.kt at line 53
override fun getAuthorEmail(): String? =this.authors.map { it.email }.firstOrNull()override fun getCommitterName(): String? = this.authoroverride fun getCommitterEmail(): String? = this.authorEmailoverride fun getPath(): FilePath =LocalFilePath(this.filePath, Files.isDirectory(this.filePath))override fun getAuthorDate(): Date? = Date.from(this.revision.timestamp.toInstant())override fun isDeleted(): Boolean = this.deletedoverride fun compareTo(other: PijulVcsFileRevision): Int =this.revision.timestamp.compareTo(other.revision.timestamp) - edit in src/main/kotlin/com/github/jonathanxd/dracon/provider/PijulHistoryProvider.kt at line 3
import com.github.jonathanxd.dracon.log.FileDelHunkimport com.github.jonathanxd.dracon.log.HunkWithPath - edit in src/main/kotlin/com/github/jonathanxd/dracon/provider/PijulHistoryProvider.kt at line 19
import com.intellij.vcs.log.impl.VcsUserImpl - replacement in src/main/kotlin/com/github/jonathanxd/dracon/provider/PijulHistoryProvider.kt at line 55
it.authors.map { it.name }.firstOrNull(),it.authors.map { VcsUserImpl(it.name ?: "", it.email ?: "") }.filter { it.name.isNotEmpty() }, - replacement in src/main/kotlin/com/github/jonathanxd/dracon/provider/PijulHistoryProvider.kt at line 57
currentChannelcurrentChannel,false - replacement in src/main/kotlin/com/github/jonathanxd/dracon/provider/PijulHistoryProvider.kt at line 84
partner.acceptRevision(PijulVcsFileRevision(this.project,root.toNioPath(),path,PijulRevisionNumber(it.changeHash, it.date),it.authors.map { it.name }.firstOrNull(),it.message,currentChannelit.hunks.filterIsInstance<HunkWithPath>().groupBy {it.resolvePath(root.toNioPath())}.forEach { path, hunks ->val deleted = hunks.any { it is FileDelHunk }partner.acceptRevision(PijulVcsFileRevision(this.project,root.toNioPath(),path,PijulRevisionNumber(it.changeHash, it.date),it.authors.map { VcsUserImpl(it.name ?: "", it.email ?: "") }.filter { it.name.isNotEmpty() },it.message,currentChannel,deleted) - replacement in src/main/kotlin/com/github/jonathanxd/dracon/provider/PijulHistoryProvider.kt at line 101
)} - edit in src/main/kotlin/com/github/jonathanxd/dracon/provider/PijulHistoryProvider.kt at line 149
} - edit in src/main/kotlin/com/github/jonathanxd/dracon/provider/PijulHistoryProvider.kt at line 150
/*override fun createFromCachedData(cacheable: Boolean?,revisions: MutableList<out VcsFileRevision>,filePath: FilePath,currentRevision: VcsRevisionNumber?): VcsAbstractHistorySession {TODO("Not yet implemented") - edit in src/main/kotlin/com/github/jonathanxd/dracon/provider/PijulHistoryProvider.kt at line 151
override fun getBaseVersionContent(filePath: FilePath?,processor: Processor<in String>?,beforeVersionId: String?): Boolean {TODO("Not yet implemented")}*/ - edit in src/main/kotlin/com/github/jonathanxd/dracon/provider/PijulChangeProvider.kt at line 33
val rootAbsolute = root!!.toNioPath().toAbsolutePath()if (dir.path.startsWith(rootAbsolute.resolve(".pijul").toString()))continue;if (dir.path.startsWith(rootAbsolute.resolve(".idea").toString()))continue;if (!dir.path.startsWith(rootAbsolute.toString()))continue;if (!dir.path.startsWith(project.baseDir.toNioPath().toAbsolutePath().toString()))continue; - replacement in src/main/kotlin/com/github/jonathanxd/dracon/provider/PijulChangeProvider.kt at line 59
val path = Paths.get(dir.path, hunk.path)val path = Paths.get(dir.path, hunk.resolvedPath) - replacement in src/main/kotlin/com/github/jonathanxd/dracon/provider/PijulChangeProvider.kt at line 64
PijulContentRevision(rootPath,filePath,head,this.project), CurrentContentRevision.create(filePath),null, CurrentContentRevision.create(filePath), - replacement in src/main/kotlin/com/github/jonathanxd/dracon/provider/PijulChangeProvider.kt at line 69
val path = Paths.get(dir.path, hunk.path)val path = Paths.get(dir.path, hunk.resolvedPath) - replacement in src/main/kotlin/com/github/jonathanxd/dracon/provider/PijulChangeProvider.kt at line 76
filePath,path, - replacement in src/main/kotlin/com/github/jonathanxd/dracon/provider/PijulChangeProvider.kt at line 79
), CurrentContentRevision.create(filePath),), null, - replacement in src/main/kotlin/com/github/jonathanxd/dracon/provider/PijulChangeProvider.kt at line 84
val path = Paths.get(dir.path, hunk.path)val path = Paths.get(dir.path, hunk.resolvedPath) - replacement in src/main/kotlin/com/github/jonathanxd/dracon/provider/PijulChangeProvider.kt at line 99
val path = Paths.get(dir.path, hunk.path)val path = Paths.get(dir.path, hunk.resolvedPath) - edit in src/main/kotlin/com/github/jonathanxd/dracon/pijul/diff/PijulDiffFromHistoryHandler.kt at line 78
override fun showChangesBetweenRevisions(path: FilePath,older: PijulVcsFileRevision,newer: PijulVcsFileRevision?) {super.showChangesBetweenRevisions(path, older, newer)} - edit in src/main/kotlin/com/github/jonathanxd/dracon/pijul/Pijul.kt at line 99
@RequiresBackgroundThreadfun recordToString(project: Project, root: Path): PijulOperationResult<String> - edit in src/main/kotlin/com/github/jonathanxd/dracon/pijul/Pijul.kt at line 103
@RequiresBackgroundThreadfun recordFromString(project: Project, root: Path, record: String): PijulOperationResult<String> - edit in src/main/kotlin/com/github/jonathanxd/dracon/log/PijulLog.kt at line 4[13.61125][4.2039]
import java.nio.file.Path - edit in src/main/kotlin/com/github/jonathanxd/dracon/log/PijulLog.kt at line 77[4.13913][13.62495]
fun resolvePath(root: Path): Path =root.resolve(this.resolvedPath) - replacement in src/main/kotlin/com/github/jonathanxd/dracon/i18n/DraconBundle.kt at line 24
fun message(@PropertyKey(resourceBundle = BUNDLE) key: String, vararg params: Any): @Nls String {@Nlsfun message(@PropertyKey(resourceBundle = BUNDLE) key: String, vararg params: Any): String { - edit in src/main/kotlin/com/github/jonathanxd/dracon/content/PijulContentRevision.kt at line 3
import com.github.jonathanxd.dracon.pijul.pijul - edit in src/main/kotlin/com/github/jonathanxd/dracon/content/PijulContentRevision.kt at line 5
import com.intellij.openapi.diagnostic.logger - replacement in src/main/kotlin/com/github/jonathanxd/dracon/content/PijulContentRevision.kt at line 10
import com.intellij.vcsUtil.VcsUtilimport java.io.Fileimport java.io.IOExceptionimport java.nio.file.*import java.nio.file.attribute.BasicFileAttributesimport java.nio.file.Filesimport java.nio.file.Pathimport java.nio.file.Paths - edit in src/main/kotlin/com/github/jonathanxd/dracon/content/PijulContentRevision.kt at line 14
import kotlin.io.path.relativeToimport java.util.Comparator - replacement in src/main/kotlin/com/github/jonathanxd/dracon/content/PijulContentRevision.kt at line 26
project: Project): this(root, Paths.get(filePath.path).relativeTo(root), revision, project)project: Project): this(root, Paths.get(filePath.path), revision, project) - edit in src/main/kotlin/com/github/jonathanxd/dracon/cmd/PijulCmd.kt at line 15
import com.github.jonathanxd.dracon.context.PijulVcsContext - edit in src/main/kotlin/com/github/jonathanxd/dracon/cmd/PijulCmd.kt at line 25
import com.intellij.openapi.components.service - edit in src/main/kotlin/com/github/jonathanxd/dracon/cmd/PijulCmd.kt at line 28
import com.intellij.openapi.util.io.FileUtilRt - edit in src/main/kotlin/com/github/jonathanxd/dracon/cmd/PijulCmd.kt at line 47
import java.nio.file.StandardOpenOptionimport java.util.* - edit in src/main/kotlin/com/github/jonathanxd/dracon/cmd/PijulCmd.kt at line 203
}}override fun recordToString(project: Project,root: Path): PijulOperationResult<String> {val arguments = mutableListOf("record")val uuid = UUID.randomUUID().toString()val tempFile = createCopieTempFile(uuid)val operation = this.createPainlessExecPijulWithCopieOperation(this.project,root,tempFile,CopieMode.TO,arguments)return this.doExecutionWithMapperEvenFailed("record", operation) {val data = Files.readString(tempFile, Charsets.UTF_8)deleteCopieTempDir(uuid)data}}override fun recordFromString(project: Project, root: Path, record: String): PijulOperationResult<String> {val arguments = mutableListOf("record")val uuid = UUID.randomUUID().toString()val tempFile = createCopieTempFile(uuid)Files.writeString(tempFile, record, Charsets.UTF_8, StandardOpenOption.CREATE_NEW)val operation = this.createPainlessExecPijulWithCopieOperation(this.project,root,tempFile,CopieMode.FROM,arguments)return this.doExecutionWithMapper("record", operation) {deleteCopieTempDir(uuid)it - edit in src/main/kotlin/com/github/jonathanxd/dracon/cmd/PijulCmd.kt at line 304
val ctx = project.service<PijulVcsContext>() - replacement in src/main/kotlin/com/github/jonathanxd/dracon/cmd/PijulCmd.kt at line 306
val filePath = Paths.get(file.path).relativeTo(rootPath)val filePath = ctx.resolveUnderVcs(file)val isRootPath = ctx.isRootPath(filePath)val filePathAsStr = ctx.resolveRelativeToRoot(filePath) - replacement in src/main/kotlin/com/github/jonathanxd/dracon/cmd/PijulCmd.kt at line 339
if (filePath.toString().equals(hunk.resolvedPath, ignoreCase = true)) {if (hunk is FileAddHunk) {isAdd = true}val hunkPath = hunk.resolvePath(rootPath)if (isRootPath) { - edit in src/main/kotlin/com/github/jonathanxd/dracon/cmd/PijulCmd.kt at line 343
} else {if (Files.isDirectory(filePath)) {if (hunkPath == filePath) {if (hunk is FileAddHunk) {isAdd = true}shouldConsume = true} else if (hunkPath.startsWith(filePath)) {shouldConsume = true}} else {if (hunkPath == filePath) {if (hunk is FileAddHunk) {isAdd = true}shouldConsume = true}} - replacement in src/main/kotlin/com/github/jonathanxd/dracon/cmd/PijulCmd.kt at line 427
filePath.toString().equals(it.resolvedPath, ignoreCase = true)val resolved = it.resolvePath(root)filePath == resolved - edit in src/main/kotlin/com/github/jonathanxd/dracon/cmd/PijulCmd.kt at line 481
}}fun <T> doExecutionWithMapperEvenFailed(name: String,execution: PijulExecution,regularStreamStringMapper: (String) -> T?): PijulOperationResult<T> {val status = runBlocking(Dispatchers.IO) {execution.status.first()}return if (status == 0) {val std = runBlocking(Dispatchers.IO) {execution.regularStream.toList().joinToString("\n")}PijulOperationResult(name, SuccessStatusCode, regularStreamStringMapper(std))} else {val error = runBlocking(Dispatchers.IO) {execution.errorStream.toList().joinToString("\n")}PijulOperationResult(name, NonZeroExitStatusCode(status, error), regularStreamStringMapper("")) - replacement in src/main/kotlin/com/github/jonathanxd/dracon/cmd/PijulCmd.kt at line 570
dir: Path,args: List<String>): PijulExecution {dir: Path,args: List<String>): PijulExecution {val process = ProcessBuilder().command(listOf(this.findPijul()) + args).directory(dir.toFile()).start()val input = process.inputStreamval error = process.errorStreamreturn PijulExecution(input.linesToFlow().onEach {draconConsoleWriter(project).logCommand("pijul", args, it)},error.linesToFlow().onEach {draconConsoleWriter(project).logCommandError("pijul", args, it)},flow {process.onExit().await()val exit = process.exitValue()if (exit == 0) {draconConsoleWriter(project).logCommand("pijul", args, "<Exit status> $exit")} else {draconConsoleWriter(project).logCommandError("pijul", args, "<Exit status> $exit")}emit(exit)}.flowOn(Dispatchers.IO))}/*** Creates a [PijulExecution] operation that could be executed at any time. This operation uses Kotlin Coroutines* and can be executed immediately through [doExecution] or through [doExecutionWithMapper].** This implementation does not requires a delay value to be provided, like [createExecPijulOperation] does, instead* it uses the kotlin conversion from `CompletionStage` to `Coroutines` and awaits the process through [Process.onExit].** [doExecution] and [doExecutionWithMapper] does execution by scheduling task to [Dispatchers.IO], instead of Main Thread,* offloading the Process execution handling to a different scheduler. However, mapping operation of [doExecutionWithMapper]* is not offloaded from the caller context.**/@RequiresBackgroundThreadprivate fun createPainlessExecPijulWithCopieOperation(project: Project,dir: Path,copiePath: Path,copieMode: CopieMode,args: List<String>): PijulExecution { - edit in src/main/kotlin/com/github/jonathanxd/dracon/cmd/PijulCmd.kt at line 622
.apply {when(copieMode) {CopieMode.FROM -> environment()["COPIE_FROM"] = copiePath.toAbsolutePath().toString()CopieMode.TO -> environment()["COPIE_TO"] = copiePath.toAbsolutePath().toString()}environment()["VISUAL"] = "copie"environment()["EDITOR"] = "copie"} - replacement in src/main/kotlin/com/github/jonathanxd/dracon/cmd/PijulCmd.kt at line 718
}[4.18094]fun createCopieTempFile(hash: String): Path {val tempDir = FileUtilRt.createTempDirectory("dracon_records-", hash).toPath()return tempDir.resolve("record")}fun deleteCopieTempDir(hash: String) {val tempDir = FileUtilRt.createTempDirectory("dracon_records-", hash).toPath()FileUtilRt.delete(tempDir.toFile())}enum class CopieMode {FROM,TO}}/*** Returns whether [resolvedPath] is a directory inside [this] [Path].** @param root The root path for [this] [Path] and [resolvedPath].*/fun Path.isInside(root: Path, resolvedPath: String) =if (this == root) {true} else if (Files.isDirectory(this) && resolvedPath.startsWith(this.toString())) {true} else if (!Files.isDirectory(this)) {this.toString().equals(resolvedPath, ignoreCase = true)} else {false}/*** Returns whether [this] path is equal the [path].*/fun String.isEqual(path: Path) =path.toString() == this/*** Returns whether [this] path is equal the [path].*/fun String.isPathEqual(path: String) =this.removeTrailingSlash().equals(path.removeTrailingSlash(), ignoreCase = true)fun String.removeTrailingSlash() =if (this.length > 1 && this.endsWith("/")) this.substring(0, this.length - 1)else this/*** Returns whether [this] path is inside the [path].*/fun String.isInside(path: Path) =path.startsWith(this) - edit in src/main/kotlin/com/github/jonathanxd/dracon/checkin/PijulCheckingEnvironment.kt at line 10
import com.intellij.openapi.fileEditor.FileEditorManagerimport com.intellij.openapi.fileEditor.OpenFileDescriptorimport com.intellij.openapi.fileTypes.FileTypeimport com.intellij.openapi.fileTypes.FileTypeRegistry - edit in src/main/kotlin/com/github/jonathanxd/dracon/checkin/PijulCheckingEnvironment.kt at line 26
import com.intellij.openapi.wm.WindowManager - edit in src/main/kotlin/com/github/jonathanxd/dracon/checkin/PijulCheckingEnvironment.kt at line 41
import com.intellij.ui.EditorTextFieldimport com.intellij.psi.PsiDocumentManager - edit in src/main/kotlin/com/github/jonathanxd/dracon/checkin/PijulCheckingEnvironment.kt at line 45
import com.intellij.psi.PsiElementimport com.intellij.psi.PsiFileimport com.intellij.testFramework.LightVirtualFile - edit in src/main/kotlin/com/github/jonathanxd/dracon/checkin/PijulCheckingEnvironment.kt at line 98
println(paths) - edit in build.gradle.kts at line 64
setPlugins("org.toml.lang:0.2.144.3766-211") - edit in build.gradle.kts at line 103
excludes.add("**/plugin.xml")