Skip to content

Commit

Permalink
Updated a bunch of stuff around the intellij plugin
Browse files Browse the repository at this point in the history
  • Loading branch information
jmeaster30 committed Aug 5, 2024
1 parent 9653075 commit 0e2f45d
Show file tree
Hide file tree
Showing 10 changed files with 81 additions and 31 deletions.
5 changes: 4 additions & 1 deletion documentation/Hydro.md
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,10 @@
7. [Multi Byte Instruction Layout](#multi-byte-instruction-layout)
1. [Push](#push)
2. [Jump](#jump)
3. []
3. [Branch](#branch)
4. [AllocArray](#allocarray)
5. [AllocLayout](#alloclayout)
6. [LayoutIndex](#layoutindex)

## Instructions and What They Do

Expand Down
3 changes: 1 addition & 2 deletions examples/hydro/fibonacci.h2o
Original file line number Diff line number Diff line change
Expand Up @@ -30,5 +30,4 @@ main body
call
cast string
push funcp std.io.print println
call
return
call
24 changes: 24 additions & 0 deletions ocean-language-support/intellij/ocean/.run/Build Plugin.run.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
<component name="ProjectRunConfigurationManager">
<configuration default="false" name="Build Plugin" type="GradleRunConfiguration" factoryName="Gradle">
<ExternalSystemSettings>
<option name="executionName" />
<option name="externalProjectPath" value="$PROJECT_DIR$/ocean-language-support/intellij/ocean" />
<option name="externalSystemIdString" value="GRADLE" />
<option name="scriptParameters" value="" />
<option name="taskDescriptions">
<list />
</option>
<option name="taskNames">
<list>
<option value="build" />
</list>
</option>
<option name="vmOptions" />
</ExternalSystemSettings>
<ExternalSystemDebugServerProcess>true</ExternalSystemDebugServerProcess>
<ExternalSystemReattachDebugProcess>true</ExternalSystemReattachDebugProcess>
<DebugAllEnabled>false</DebugAllEnabled>
<RunAsTest>false</RunAsTest>
<method v="2" />
</configuration>
</component>
24 changes: 24 additions & 0 deletions ocean-language-support/intellij/ocean/.run/Clean Plugin.run.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
<component name="ProjectRunConfigurationManager">
<configuration default="false" name="Clean Plugin" type="GradleRunConfiguration" factoryName="Gradle">
<ExternalSystemSettings>
<option name="executionName" />
<option name="externalProjectPath" value="$PROJECT_DIR$/ocean-language-support/intellij/ocean" />
<option name="externalSystemIdString" value="GRADLE" />
<option name="scriptParameters" value="" />
<option name="taskDescriptions">
<list />
</option>
<option name="taskNames">
<list>
<option value="clean" />
</list>
</option>
<option name="vmOptions" />
</ExternalSystemSettings>
<ExternalSystemDebugServerProcess>true</ExternalSystemDebugServerProcess>
<ExternalSystemReattachDebugProcess>true</ExternalSystemReattachDebugProcess>
<DebugAllEnabled>false</DebugAllEnabled>
<RunAsTest>false</RunAsTest>
<method v="2" />
</configuration>
</component>

This file was deleted.

25 changes: 25 additions & 0 deletions ocean-language-support/intellij/ocean/.run/Run Plugin.run.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
<component name="ProjectRunConfigurationManager">
<configuration default="false" name="Run Plugin" type="GradleRunConfiguration" factoryName="Gradle">
<log_file alias="idea.log" path="$PROJECT_DIR$/build/idea-sandbox/system/log/idea.log" />
<ExternalSystemSettings>
<option name="executionName" />
<option name="externalProjectPath" value="$PROJECT_DIR$/ocean-language-support/intellij/ocean" />
<option name="externalSystemIdString" value="GRADLE" />
<option name="scriptParameters" value="" />
<option name="taskDescriptions">
<list />
</option>
<option name="taskNames">
<list>
<option value="runIde" />
</list>
</option>
<option name="vmOptions" value="" />
</ExternalSystemSettings>
<ExternalSystemDebugServerProcess>true</ExternalSystemDebugServerProcess>
<ExternalSystemReattachDebugProcess>true</ExternalSystemReattachDebugProcess>
<DebugAllEnabled>false</DebugAllEnabled>
<RunAsTest>false</RunAsTest>
<method v="2" />
</configuration>
</component>
4 changes: 2 additions & 2 deletions ocean-language-support/intellij/ocean/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ sourceSets {
// Configure Gradle IntelliJ Plugin
// Read more: https://plugins.jetbrains.com/docs/intellij/tools-gradle-intellij-plugin.html
intellij {
version.set("2023.3.2")
version.set("2022.2.5")
type.set("IC") // Target IDE Platform

plugins.set(listOf(/* Plugin Dependencies */))
Expand Down Expand Up @@ -55,7 +55,7 @@ tasks {

patchPluginXml {
sinceBuild.set("222")
untilBuild.set("233.*")
untilBuild.set("")
}

signPlugin {
Expand Down
Empty file modified ocean-language-support/intellij/ocean/gradlew
100644 → 100755
Empty file.
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,6 @@ import static com.syrency.ocean.language.psi.HydroTypes.*;
%type IElementType
%unicode

EOL=\R
WHITE_SPACE=\s+

NUMBER=-?(([0-9]+)|([0-9]*\.[0-9]+))
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,5 +5,5 @@
import javax.swing.Icon;

public class HydroIcons {
public static final Icon BASE = IconLoader.getIcon("/icons/hydro.svg");
public static final Icon BASE = IconLoader.getIcon("/icons/hydro.svg", HydroIcons.class);
}

0 comments on commit 0e2f45d

Please sign in to comment.