Skip to content

Commit

Permalink
Merge tag 'v1.10.0.3'
Browse files Browse the repository at this point in the history
  • Loading branch information
valis committed Dec 4, 2024
2 parents d4791f5 + 7ba65d4 commit ada17a5
Show file tree
Hide file tree
Showing 6 changed files with 11 additions and 10 deletions.
4 changes: 2 additions & 2 deletions build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ import org.jetbrains.kotlin.gradle.dsl.KotlinVersion

val projectArend = gradle.includedBuild("Arend")
group = "org.arend.lang"
version = "1.10.0.2"
version = "1.10.0.3"

plugins {
idea
Expand All @@ -38,7 +38,7 @@ dependencies {
testCompileOnly("junit:junit:4.13.1")

intellijPlatform {
create(IntelliJPlatformType.IntellijIdeaCommunity, "2024.2.3")
create(IntelliJPlatformType.IntellijIdeaCommunity, "2024.3")
instrumentationTools()
bundledPlugins("org.jetbrains.plugins.yaml", "com.intellij.java")
plugins("IdeaVIM:2.16.0")
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -186,7 +186,7 @@ abstract class ArendCommonStarterInitialStep(
.withTextToPathConvertor(::getCanonicalPath)
val title = IdeBundle.message("title.select.project.file.directory", wizardContext.presentationName)
val property = locationProperty.transform(::getPresentablePath, ::getCanonicalPath)
return textFieldWithBrowseButton(title, wizardContext.project, fileChooserDescriptor)
return textFieldWithBrowseButton(fileChooserDescriptor.withTitle(title), wizardContext.project)
.bindText(property)
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -85,7 +85,7 @@ abstract class ArendStarterModuleBuilder : ModuleBuilder() {
return true
}

override fun isSuitableSdkType(sdkType: SdkTypeId?): Boolean {
override fun isSuitableSdkType(sdkType: SdkTypeId): Boolean {
return sdkType is JavaSdkType && !sdkType.isDependent
}

Expand All @@ -94,7 +94,7 @@ abstract class ArendStarterModuleBuilder : ModuleBuilder() {
return null
}

override fun createProject(name: String?, path: String?): Project? {
override fun createProject(name: String, path: String): Project? {
val project = super.createProject(name, path)
project?.let { setupProject(it) }
return project
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,8 @@ class ArendProjectImportBuilder : ProjectImportBuilder<String>() {

override fun getName(): String = "Arend project"

override fun isOpenProjectSettingsAfter() = parameters.openProjectSettingsAfter
override val isOpenProjectSettingsAfter
get() = parameters.openProjectSettingsAfter

override fun setOpenProjectSettingsAfter(on: Boolean) {
parameters.openProjectSettingsAfter = on
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ class ArendProjectOpenProcessor : ProjectOpenProcessor() {
override fun importProjectAfterwards(project: Project, file: VirtualFile) {
val builder = builder
try {
builder.isUpdate = false
builder.setUpdate(false)
builder.fileToImport = (if (file.isDirectory) file else file.parent).toNioPath().toString()
if (builder.validate(null, project)) {
builder.commit(project, null, ModulesProvider.EMPTY_MODULES_PROVIDER)
Expand Down
6 changes: 3 additions & 3 deletions src/main/kotlin/org/arend/tracer/ArendTraceProcess.kt
Original file line number Diff line number Diff line change
Expand Up @@ -179,7 +179,7 @@ class ArendTraceProcess(session: XDebugSession, private val tracingData: ArendTr
}

private inner class NextEntryActionHandler : XDebuggerSuspendedActionHandler() {
override fun perform(session: XDebugSession, dataContext: DataContext?) {
override fun perform(session: XDebugSession, dataContext: DataContext) {
session.sessionResumed()
val entry = trace.entries.getOrNull(++traceEntryIndex)
if (entry == null) {
Expand All @@ -191,7 +191,7 @@ class ArendTraceProcess(session: XDebugSession, private val tracingData: ArendTr
}

private inner class PrevEntryActionHandler : XDebuggerSuspendedActionHandler() {
override fun perform(session: XDebugSession, dataContext: DataContext?) {
override fun perform(session: XDebugSession, dataContext: DataContext) {
session.sessionResumed()
val entry = trace.entries.getOrNull(--traceEntryIndex)
if (entry == null) {
Expand All @@ -201,7 +201,7 @@ class ArendTraceProcess(session: XDebugSession, private val tracingData: ArendTr
session.positionReached(ArendSuspendContext(entry, contextView))
}

override fun isEnabled(project: Project, event: AnActionEvent?): Boolean =
override fun isEnabled(project: Project, event: AnActionEvent): Boolean =
super.isEnabled(project, event) && traceEntryIndex > 0
}

Expand Down

0 comments on commit ada17a5

Please sign in to comment.