diff --git a/.idea/encodings.xml b/.idea/encodings.xml index 29d73a76b8..4e47717d50 100644 --- a/.idea/encodings.xml +++ b/.idea/encodings.xml @@ -1,6 +1,6 @@ - + diff --git a/gradle.properties b/gradle.properties index 3b62ebfd0f..b95fc6f95b 100644 --- a/gradle.properties +++ b/gradle.properties @@ -17,12 +17,12 @@ # https://www.jetbrains.com/intellij-repository/releases # https://www.jetbrains.com/intellij-repository/snapshots name="Perl5 Support (Camelcade)" -platformVersion=233 -platformBranch=.11799.196-EAP-SNAPSHOT +platformVersion=2023 +platformBranch=.3 platformBuild= pluginVersion=2023 -pluginBranch=.3 -pluginBuild= +pluginBranch= +pluginBuild=.1 pycharmVersion=192.4787.5-EAP-SNAPSHOT clionVersion=192.4787.12-EAP-SNAPSHOT psiViewerVersion=233.2 @@ -38,3 +38,4 @@ descriptionFile=parts/pluginDescription.html changesFile=parts/pluginChanges.html org.gradle.jvmargs=-Xmx2048m -XX:+HeapDumpOnOutOfMemoryError -Xss10M perl.test.version=5.38.0 +kotlin.stdlib.default.dependency=false \ No newline at end of file diff --git a/plugin/core/src/main/java/com/perl5/lang/perl/idea/inspections/PerlDeprecatedInspection.java b/plugin/core/src/main/java/com/perl5/lang/perl/idea/inspections/PerlDeprecatedInspection.java index fc3bc10f2f..8341123e84 100644 --- a/plugin/core/src/main/java/com/perl5/lang/perl/idea/inspections/PerlDeprecatedInspection.java +++ b/plugin/core/src/main/java/com/perl5/lang/perl/idea/inspections/PerlDeprecatedInspection.java @@ -25,6 +25,9 @@ import com.perl5.lang.perl.psi.utils.PerlResolveUtil; import org.jetbrains.annotations.NotNull; +import java.util.HashSet; +import java.util.Set; + /** * fixme butify this */ @@ -32,6 +35,8 @@ public class PerlDeprecatedInspection extends PerlInspection { @Override public @NotNull PsiElementVisitor buildVisitor(final @NotNull ProblemsHolder holder, boolean isOnTheFly) { return new PerlVisitor() { + private Set myMarkedElements = new HashSet<>(); + @Override public void visitSubNameElement(@NotNull PerlSubNameElement o) { PsiElement container = o.getParent(); @@ -93,7 +98,7 @@ public void visitNamespaceElement(@NotNull PerlNamespaceElement o) { public void visitPerlSubElement(@NotNull PerlSubElement o) { if (o.isDeprecated()) { PsiElement nameIdentifier = o.getNameIdentifier(); - if (nameIdentifier != null) { + if (nameIdentifier != null && myMarkedElements.add(nameIdentifier)) { markDeprecated(holder, nameIdentifier, PerlBundle.message("perl.deprecated.sub")); } } diff --git a/plugin/idea/src/main/java/com/perl5/lang/perl/idea/configuration/module/idea/PerlDumbModuleConfigurable.form b/plugin/idea/src/main/java/com/perl5/lang/perl/idea/configuration/module/idea/PerlDumbModuleConfigurable.form deleted file mode 100644 index 8cbf2b827e..0000000000 --- a/plugin/idea/src/main/java/com/perl5/lang/perl/idea/configuration/module/idea/PerlDumbModuleConfigurable.form +++ /dev/null @@ -1,27 +0,0 @@ - -
- - - - - - - - - - - - - - - - - - - - - - - - -
diff --git a/settings.gradle.kts b/settings.gradle.kts index bfe4457aa0..f59e756a02 100644 --- a/settings.gradle.kts +++ b/settings.gradle.kts @@ -85,3 +85,4 @@ include("lang.mason.htmlmason") project(":lang.mason.htmlmason").projectDir = file("mason/htmlmason") include("lang.mason.htmlmason:core") project(":lang.mason.htmlmason:core").projectDir = file("mason/htmlmason/core") +System.setProperty("sonar.gradle.skipCompile", "true") \ No newline at end of file