Skip to content

Commit

Permalink
Fix exceptions on no lama installed
Browse files Browse the repository at this point in the history
Fix PR base branch name
  • Loading branch information
Mervap committed Feb 20, 2022
1 parent b60ab93 commit 790c8d3
Show file tree
Hide file tree
Showing 4 changed files with 15 additions and 11 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -71,5 +71,5 @@ jobs:
gh pr create \
--title "Changelog update - \`$VERSION\`" \
--body "Current pull request contains patched \`CHANGELOG.md\` file for the \`$VERSION\` version." \
--base main \
--base master \
--head $BRANCH
20 changes: 11 additions & 9 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,10 +1,12 @@
<!-- Keep a Changelog guide -> https://keepachangelog.com -->

# LamaPlugin Changelog

## [Unreleased]

## [0.1.0]
<!-- Keep a Changelog guide -> https://keepachangelog.com -->

# LamaPlugin Changelog

## [Unreleased]
### Fixed
- Errors during compiler fetch

## [0.1.0]
### Added
- Init project
- Parser/lexer
Expand All @@ -18,5 +20,5 @@
- Some keywords
- Go To Declaration & Find Usages
- Parameter Info
- GitHub CI/CD

- GitHub CI/CD

2 changes: 1 addition & 1 deletion gradle.properties
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
# -> https://plugins.jetbrains.com/docs/intellij/intellij-artifacts.html
pluginGroup=org.jetbrains.lama
pluginName=Lama
pluginVersion=0.1.0
pluginVersion=0.1.1
# See https://plugins.jetbrains.com/docs/intellij/build-number-ranges.html
# for insight into build numbers and IntelliJ Platform versions.
pluginSinceBuild=213
Expand Down
2 changes: 2 additions & 0 deletions src/main/kotlin/org/jetbrains/lama/util/LamaStdUnitUtil.kt
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,8 @@ import kotlin.io.path.notExists

object LamaStdUnitUtil {
fun Class<*>.addStdUnitStubToDirectory(stdlibRoot: Path) {
if (stdlibRoot.notExists()) return

val stdUnitPath = stdlibRoot.resolve(UNIT_NAME_WITH_EXT)
if (stdUnitPath.notExists()) {
val stdUnitText = getResource("/stubs/$UNIT_NAME_WITH_EXT")?.readText()
Expand Down

0 comments on commit 790c8d3

Please sign in to comment.