Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

1.19.0: Support for 2024.1 #28

Open
wants to merge 2 commits into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 7 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,13 @@ All notable changes to this project will be documented in this file.
The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/), and this project adheres
to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).

## 1.19.0

- The backends are now tested against MPS 2024.1.1.

- `modelcheck`: instead of adding `UnresolvedReferencesChecker` to the list of checkers, `mps-modelchecker` plugin
(which contains this checker) is loaded by default, unless `--without-mps-modelchecker-plugin` argument is passed.

## 1.18.0

- `modelcheck`: Work around an indexing problem in MPS 2023.2 and above (build number 232.xxx or higher) by triggering
Expand Down
2 changes: 1 addition & 1 deletion gradle.properties
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
version.backend=1.18.0
version.backend=1.19.0
version.project-loader=2.3.1
3 changes: 1 addition & 2 deletions integration-tests/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ dependencies {
execute(project(":execute"))
}

val SUPPORTED_MPS_VERSIONS = arrayOf("2021.3.5", "2022.2.2", "2022.3.2", "2023.2", "2023.3")
val SUPPORTED_MPS_VERSIONS = arrayOf("2022.2.2", "2022.3.3", "2023.2.2", "2024.1.1")

val GENERATION_TESTS = listOf(
GenerationTest("generateBuildSolution", "generate-build-solution", listOf("--model", "my.build.script"),
Expand Down Expand Up @@ -300,7 +300,6 @@ fun tasksForMpsVersion(mpsVersion: String): Multimap<TestKind, TaskProvider<out
include("lib/**/*.jar")
// modelcheck uses HttpSupportUtil#getURL()
include("plugins/mps-httpsupport/**/*.jar")
include("plugins/mps-modelchecker/**/*.jar")
})
classpath(modelcheck)

Expand Down
1 change: 0 additions & 1 deletion modelcheck/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,6 @@ mpsZips {

include("lib/mpsant/mps-tool.jar")

include("plugins/mps-modelchecker/lib/modelchecker.jar")
include("plugins/mps-httpsupport/solutions/jetbrains.mps.ide.httpsupport.runtime.jar")
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -313,9 +313,6 @@ private fun ModelCheckerBuilder.setParallelTaskSchedulerV1(project: Project) {

fun modelCheckProject(args: ModelCheckArgs, environment: Environment, project: Project): Boolean {
val checkers = environment.platform.findComponent(CheckerRegistry::class.java)!!.checkers
if (checkers.all { it !is UnresolvedReferencesChecker }) {
checkers.add(UnresolvedReferencesChecker())
}

if (logger.isInfoEnabled) {
logger.info(checkers.joinToString(prefix = "Found the following checkers in CheckerRegistry: "))
Expand All @@ -337,7 +334,7 @@ fun modelCheckProject(args: ModelCheckArgs, environment: Environment, project: P

// Workaround for https://youtrack.jetbrains.com/issue/MPS-37926/Indices-not-built-properly-in-IdeaEnvironment
if (project is MPSProject && shouldForceIndexing(args, BuildNumber.currentVersion())) {
logger.info("Forcing full indexing to work around MPS-37926")
logger.info("Forcing full indexing to work around MPS-37926. Can be disabled with --force-indexing=never.")
ApplicationManager.getApplication().invokeAndWait({
ApplicationManager.getApplication().runWriteAction {
ProjectRootManagerEx.getInstanceEx(project.project)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,8 @@ package de.itemis.mps.gradle.modelcheck
import com.xenomachina.argparser.ArgParser
import com.xenomachina.argparser.default
import de.itemis.mps.gradle.project.loader.Args
import de.itemis.mps.gradle.project.loader.Plugin
import de.itemis.mps.gradle.project.loader.ProjectLoader
import kotlin.test.fail

@Suppress("DEPRECATION")
Expand Down Expand Up @@ -36,4 +38,16 @@ class ModelCheckArgs(parser: ArgParser) : Args(parser) {
else -> fail("Unsupported value '$this'. Supported values are always, never, auto")
}
}.default(null)

val withoutModelcheckerPlugin by parser.flagging(
"--without-mps-modelchecker-plugin",
help = "do not load the mps-modelchecker plugin by default")

override fun configureProjectLoader(builder: ProjectLoader.Builder) {
if (!withoutModelcheckerPlugin) {
builder.environmentConfig {
plugins.add(Plugin("jetbrains.mps.ide.modelchecker", "mps-modelchecker"))
}
}
}
}