Skip to content

Commit

Permalink
2.1.0 (#165)
Browse files Browse the repository at this point in the history
### Added

- Language selection in project template ([#148](#148))
- Empty and example project templates ([#147](#147))
- `#include` assist ([#108](#108))

### Fixed

- Negative method IDs are considered a syntax
  error ([#157](#157))
- Non-ASCII characters in FunC identifiers ([#156](#156))
- Invalid trailing comma in return tuple type ([#155](#155))
- Unresolved reference to uninitialized
  variable ([#151](#151))
- Invalid indent for multiline tuples in function signature return
  type ([#150](#150))
- Auto-complete not work on `slice~` ([#149](#149))
- `method_id` completion ([#126](#126))
- Reference resolving with identifiers containing non-letter
  characters ([#107](#107))
- Uppercase HEX in TL-B ([#100](#100))
- Indent in chain calls ([#38](#38))
  • Loading branch information
andreypfau authored Mar 23, 2024
1 parent 609b70b commit 4dcef48
Show file tree
Hide file tree
Showing 135 changed files with 4,337 additions and 1,892 deletions.
29 changes: 27 additions & 2 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,10 +1,35 @@
# TON Development Changelog
# TON Plugin for the IntelliJ IDEs Changelog

## [2.1.0]

### Added

- Language selection in project template ([#148](https://github.com/ton-blockchain/intellij-ton/issues/148))
- Empty and example project templates ([#147](https://github.com/ton-blockchain/intellij-ton/issues/147))
- `#include` assist ([#108](https://github.com/ton-blockchain/intellij-ton/issues/108))

### Fixed

- Negative method IDs are considered a syntax
error ([#157](https://github.com/ton-blockchain/intellij-ton/issues/157))
- Non-ASCII characters in FunC identifiers ([#156](https://github.com/ton-blockchain/intellij-ton/issues/156))
- Invalid trailing comma in return tuple type ([#155](https://github.com/ton-blockchain/intellij-ton/issues/155))
- Unresolved reference to uninitialized
variable ([#151](https://github.com/ton-blockchain/intellij-ton/issues/151))
- Invalid indent for multiline tuples in function signature return
type ([#150](https://github.com/ton-blockchain/intellij-ton/issues/150))
- Auto-complete not work on `slice~` ([#149](https://github.com/ton-blockchain/intellij-ton/issues/149))
- `method_id` completion ([#126](https://github.com/ton-blockchain/intellij-ton/issues/126))
- Reference resolving with identifiers containing non-letter
characters ([#107](https://github.com/ton-blockchain/intellij-ton/issues/107))
- Uppercase HEX in TL-B ([#100](https://github.com/ton-blockchain/intellij-ton/issues/100))
- Indent in chain calls ([#38](https://github.com/ton-blockchain/intellij-ton/issues/38))

## [2.0.5]

- fixed builtin functions resolving for `load_int`, `load_uint`

## [2.0]
## [2.0.0]

### Complete plugin rework

Expand Down
29 changes: 25 additions & 4 deletions build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,8 @@ plugins {
kotlin("jvm") version "1.9.0"
id("org.jetbrains.intellij") version "1.16.0"
id("org.jetbrains.grammarkit") version "2022.3.2"
id("org.jetbrains.changelog") version "1.3.1"
idea
}

allprojects {
Expand All @@ -32,6 +34,7 @@ allprojects {
repositories {
maven("https://cache-redirector.jetbrains.com/intellij-dependencies")
mavenCentral()
maven(url = "https://jitpack.io")
}

tasks.withType<KotlinCompile> {
Expand All @@ -41,6 +44,8 @@ allprojects {

dependencies {
implementation(kotlin("stdlib-jdk8"))
implementation("me.alllex.parsus:parsus-jvm:0.6.1")
implementation("com.github.andreypfau.tlb:tlb-jvm:54070d9405")
}
}

Expand All @@ -52,6 +57,7 @@ sourceSets {

idea {
module {
isDownloadSources = true
generatedSourceDirs.add(file("src/gen"))
}
}
Expand Down Expand Up @@ -91,12 +97,27 @@ val compileKotlin = tasks.named("compileKotlin") {

val compileJava = tasks.named("compileJava")

changelog {
version.set(version)
path.set("${project.projectDir}/CHANGELOG.md")
header.set(provider { "[${version.get()}]" })
itemPrefix.set("-")
keepUnreleasedSection.set(true)
unreleasedTerm.set("[Unreleased]")
groups.set(listOf("Added", "Changed", "Deprecated", "Removed", "Fixed", "Security"))
}

tasks {
runIde { enabled = true }
prepareSandbox { enabled = true }
patchPluginXml {
sinceBuild.set("231")
untilBuild.set("")
changeNotes.set(provider {
changelog.run {
getLatest()
}.toHTML()
})
}
buildSearchableOptions {
enabled = prop("enableBuildSearchableOptions").toBoolean()
Expand All @@ -108,13 +129,13 @@ fun prop(name: String, default: (() -> String?)? = null) = extra.properties[name

fun generateParser(language: String, suffix: String = "", config: GenerateParserTask.() -> Unit = {}) =
task<GenerateParserTask>("generate${language.capitalized()}Parser${suffix.capitalized()}") {
sourceFile.set(file("src/main/grammar/${language}Parser.bnf"))
targetRoot.set("src/gen")
sourceFile.set(file("src/main/grammar/${language}Parser.bnf"))
targetRoot.set("src/gen")
pathToParser.set("/org/ton/intellij/${language.lowercase()}/parser/${language}Parser.java")
pathToPsiRoot.set("/org/ton/intellij/${language.lowercase()}/psi")
purgeOldFiles.set(true)
purgeOldFiles.set(true)
config()
}
}

fun generateLexer(language: String) = task<GenerateLexerTask>("generate${language}Lexer") {
sourceFile.set(file("src/main/grammar/${language}Lexer.flex"))
Expand Down
4 changes: 2 additions & 2 deletions gradle.properties
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
org.gradle.jvmargs=-Xmx4096m
pluginGroup=org.ton
pluginVersion=2.0.5
pluginVersion=2.1.0
publishChannel=release
publishToken=token
enableBuildSearchableOptions=false
Expand All @@ -11,4 +11,4 @@ ideaVersion=231-EAP-SNAPSHOT
# https://plugins.jetbrains.com/plugin/227-psiviewer/versions
psiViewerPluginVersion=231-SNAPSHOT
kotlin.stdlib.default.dependency=false
buildNumber=0
buildNumber=8
2 changes: 1 addition & 1 deletion gradle/wrapper/gradle-wrapper.properties
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
distributionBase=GRADLE_USER_HOME
distributionPath=wrapper/dists
distributionUrl=https\://services.gradle.org/distributions/gradle-8.2.1-bin.zip
distributionUrl=https\://services.gradle.org/distributions/gradle-8.5-bin.zip
zipStoreBase=GRADLE_USER_HOME
zipStorePath=wrapper/dists
Loading

0 comments on commit 4dcef48

Please sign in to comment.