Skip to content
New issue

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

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

Already on GitHub? # to your account

2025.1 EAP support #270

Merged
merged 2 commits into from
Jan 16, 2025
Merged
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
3 changes: 3 additions & 0 deletions .github/workflows/check.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,9 @@ jobs:
matrix:
gradle-properties-version: [ 242, 243 ]
platform-type: [ RR, PC ]
include:
- gradle-properties-version: 251
platform-type: IC

runs-on: ubuntu-latest
env:
Expand Down
20 changes: 2 additions & 18 deletions .github/workflows/publish-stable-on-release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,26 +5,10 @@ on:
types: [released]

jobs:
# check-for-tests-success:
# runs-on: ubuntu-latest
# permissions:
# actions: write
#
# steps:
# - name: Early exit if tests wasn't successful
# if: ${{ github.event.workflow_run.conclusion != 'success' }}
# run: |
# gh run cancel ${{ github.run_id }}
# gh run watch ${{ github.run_id }}
# env:
# GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}


publish-eap-channel:
# needs: [ check-for-tests-success ]
publish-release:
strategy:
matrix:
gradle-properties-version: [ 242, 243 ]
gradle-properties-version: [ 242, 243, 251 ]

runs-on: ubuntu-latest
env:
Expand Down
5 changes: 5 additions & 0 deletions gradle-251.properties
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
# IntelliJ Platform Properties -> https://github.com/JetBrains/gradle-intellij-plugin#intellij-platform-properties
platformType = IC
platformVersion = 251.14649.49

stableRelease=true
Original file line number Diff line number Diff line change
@@ -1,7 +1,5 @@
package org.move.cli.sentryReporter

import com.intellij.diagnostic.DiagnosticBundle
import com.intellij.diagnostic.IdeErrorsDialog
import com.intellij.notification.NotificationGroupManager
import com.intellij.notification.NotificationType
import com.intellij.openapi.application.ApplicationInfo
Expand Down Expand Up @@ -72,7 +70,7 @@ class SentryErrorReporter: ErrorReportSubmitter() {
val sentryEvent = SentryEvent()
sentryEvent.level = SentryLevel.ERROR

val plugin = IdeErrorsDialog.getPlugin(event)
val plugin = this.pluginDescriptor

val pluginInfoContext = mutableMapOf<String, Any>()
pluginInfoContext["Platform"] = ApplicationInfo.getInstance().fullApplicationName
Expand Down Expand Up @@ -120,10 +118,8 @@ private fun onSuccess(project: Project?, callback: Consumer<in SubmittedReportIn
val reportInfo = SubmittedReportInfo(SubmittedReportInfo.SubmissionStatus.NEW_ISSUE)
callback.consume(reportInfo)
ApplicationManager.getApplication().invokeLater {
val title = DiagnosticBundle.message("error.report.submitted")
val content = DiagnosticBundle.message("error.report.gratitude")
NotificationGroupManager.getInstance().getNotificationGroup("Error Report")
.createNotification(title, content, NotificationType.INFORMATION)
.createNotification("Report submitted", "Thank you for your feedback!", NotificationType.INFORMATION)
.setImportant(false)
.notify(project)
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@ import com.intellij.openapi.project.Project
import com.intellij.psi.PsiDirectory
import com.intellij.psi.PsiFile
import com.intellij.psi.SmartPointerManager
import com.intellij.psi.createSmartPointer
import com.intellij.util.IncorrectOperationException
import com.jetbrains.rd.util.firstOrNull
import org.apache.velocity.runtime.parser.ParseException
Expand Down
3 changes: 0 additions & 3 deletions src/main/kotlin/org/move/stdext/Utils.kt
Original file line number Diff line number Diff line change
Expand Up @@ -68,9 +68,6 @@ fun String.pluralize(): String = StringUtil.pluralize(this)
@NlsActions.ActionText
fun String.capitalized(): String = StringUtil.capitalize(this)

fun randomLowercaseAlphabetic(length: Int): String =
RandomStringUtils.random(length, "0123456789abcdefghijklmnopqrstuvwxyz")

fun numberSuffix(number: Int): String {
if ((number % 100) in 11..13) {
return "th"
Expand Down
Loading