Skip to content

Commit

Permalink
fixed wrong import on StringUtils, tested building distributions
Browse files Browse the repository at this point in the history
  • Loading branch information
Peter Vanusanik committed Jan 14, 2023
1 parent 7ef69a4 commit 4681185
Show file tree
Hide file tree
Showing 9 changed files with 58 additions and 11 deletions.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
signcerts/
distributions/
.gradle
build/
!gradle/wrapper/gradle-wrapper.jar
Expand Down
2 changes: 1 addition & 1 deletion .run/Run Plugin.run.xml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
<option name="executionName" />
<option name="externalProjectPath" value="$PROJECT_DIR$" />
<option name="externalSystemIdString" value="GRADLE" />
<option name="scriptParameters" value="" />
<option name="scriptParameters" value="--stacktrace" />
<option name="taskDescriptions">
<list />
</option>
Expand Down
22 changes: 20 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,8 @@
[![0.1.0](https://badgen.net/github/milestones/enerccio/SLT/1)](https://github.com/enerccio/SLT/milestone/1)
[![0.2.0](https://badgen.net/github/milestones/enerccio/SLT/2)](https://github.com/enerccio/SLT/milestone/2)

**THIS PLUGIN IS EXPERIMENTAL and can crash at any time! Please report all bugs!**

This plugin is providing support for Common Lisp for JetBrains IDEs.
Using modified SLIME/Swank protocol to commmunicate with SBCL providing
IDE capabilities for Common Lisp.
Expand All @@ -18,15 +20,31 @@ IDE capabilities for Common Lisp.

## Getting started

Download plugin for your IDE from releases and install it via file.
Download plugin for your IDE from releases and install it via file.
To find out which release applies to you check this table:

| Jetbrains IDE Variant | Plugin name pattern |
|-----------------------|----------------------------:|
| CLion | slt-_version_-signed-CL.zip |
| GoLand | slt-_version_-signed-GO.zip |
| Intellij Community | slt-_version_-signed-IC.zip |
| Intellij Ultimate | slt-_version_-signed-IU.zip |
| PyCharm | slt-_version_-signed-PY.zip |
| PyCharm Community | slt-_version_-signed-PC.zip |
| Rider | slt-_version_-signed-RD.zip |

PhpStorm is coming when I read how to build it correctly since just swapping
the type does not work.

## Compiling source

Clone the repository and change gradle.properties for your IDE. Then use gradle to build the plugin.
Clone the repository and change gradle.properties for your IDE.
Then use gradle to build the plugin.
You can also open this as a project in Intellij Idea.

## Planned features / goals

* [ ] Upload to marketplace when it has enough features
* [x] REPL
* [x] Interactive debugging
* [ ] Walkable debugger without actions
Expand Down
25 changes: 25 additions & 0 deletions build-distributions.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
#!/bin/bash

rm distributions/*

echo -n Private key password:
read -s PASSWORD
export PRIVATE_KEY_PASSWORD=$PASSWORD

expandedName() (
# shellcheck disable=SC2125
UNEXPANDED=build/distributions/slt-*-signed.zip
set +f
echo $UNEXPANDED
)

DISTRIBUTIONS="CL GO IC IU PY PC RD"
for TARGET_IDE in ${DISTRIBUTIONS}; do
echo Trying to build $TARGET_IDE
export TARGET_IDE=$TARGET_IDE
./gradlew clean signPlugin verifyPlugin buildPlugin || ./gradlew signPlugin verifyPlugin buildPlugin || exit
FILE=$(expandedName)
NEW_FILE=$(basename ${FILE%.*}-$TARGET_IDE.zip)
cp "$FILE" distributions/$NEW_FILE
echo Built $NEW_FILE
done
9 changes: 6 additions & 3 deletions build.gradle.kts
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
plugins {
id("java")
id("org.jetbrains.intellij") version "1.11.0"
id("org.jetbrains.intellij") version "1.12.0"
}

group = "com.en_circle.slt"
Expand All @@ -26,9 +26,12 @@ sourceSets {
// Configure Gradle IntelliJ Plugin
// Read more: https://plugins.jetbrains.com/docs/intellij/tools-gradle-intellij-plugin.html
intellij {
version.set("2022.1.4")
version.set("2022.1")
pluginName.set("slt")
type.set(extra["targetIDE"].toString()) // Target IDE Platform
var ide = System.getenv("TARGET_IDE")
if (ide == null || "" == ide)
ide = extra["targetIDE"].toString()
type.set(ide) // Target IDE Platform

plugins.set(listOf(

Expand Down
4 changes: 2 additions & 2 deletions gradle.properties
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
org.gradle.jvmargs=-XX:MaxHeapSize=512m -Xms512m -Xmx1g

# IU, IC, CL, PY, GO
targetIDE=IU
# CL GO IC IU PS PY PC RD
targetIDE=IC
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
import com.intellij.openapi.vfs.VirtualFile;
import com.intellij.psi.PsiElement;
import com.intellij.util.FileContentUtilCore;
import org.codehaus.plexus.util.StringUtils;
import org.apache.commons.lang3.StringUtils;

import java.lang.ref.WeakReference;
import java.util.*;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
import com.intellij.psi.PsiFile;
import com.intellij.psi.PsiRecursiveVisitor;
import com.intellij.psi.tree.IElementType;
import org.codehaus.plexus.util.StringUtils;
import org.apache.commons.lang3.StringUtils;
import org.jetbrains.annotations.NotNull;

import java.math.BigInteger;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@
import com.intellij.ui.components.JBTextField;
import com.intellij.ui.tabs.TabInfo;
import com.intellij.ui.tabs.impl.JBTabsImpl;
import org.codehaus.plexus.util.StringUtils;
import org.apache.commons.lang3.StringUtils;
import org.jetbrains.annotations.NotNull;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
Expand Down

0 comments on commit 4681185

Please sign in to comment.