Skip to content

Commit 07de661

Browse files
committed
IntelliJ IDEA PoC
Signed-off-by: Uladzislau <leksilonchikk@gmail.com>
1 parent 0ac1933 commit 07de661

36 files changed

+2923
-523
lines changed

.github/workflows/build.yml

Lines changed: 57 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,57 @@
1+
name: Build
2+
3+
on: [push, workflow_dispatch]
4+
5+
jobs:
6+
build-intellij:
7+
runs-on: ubuntu-latest
8+
# Changing WORKING_DIRECTORY, don't forget to change defaults.run.working-directory
9+
env:
10+
WORKING_DIRECTORY: intellij-plugin
11+
defaults:
12+
run:
13+
working-directory: ./intellij-plugin
14+
steps:
15+
16+
- name: Checkout the plugin GitHub repository
17+
uses: actions/checkout@v4
18+
19+
- name: Setup Java
20+
uses: actions/setup-java@v4
21+
with:
22+
distribution: zulu
23+
java-version: 17
24+
25+
- name: Setup Gradle
26+
uses: gradle/actions/setup-gradle@v3
27+
with:
28+
gradle-home-cache-cleanup: true
29+
30+
- name: Check repository content
31+
shell: bash
32+
run: pwd && ls -la
33+
34+
- name: Test plugin
35+
shell: bash
36+
run: ./gradlew test
37+
38+
- name: Build plugin
39+
shell: bash
40+
run: ./gradlew buildPlugin
41+
42+
- name: Prepare Plugin Artifact
43+
id: artifact
44+
shell: bash
45+
run: |
46+
cd ${{ github.workspace }}/${{ env.WORKING_DIRECTORY }}/build/distributions
47+
FILENAME=`ls *.zip`
48+
unzip "$FILENAME" -d content
49+
echo "filename=${FILENAME:0:-4}" >> $GITHUB_OUTPUT
50+
echo "zip artifact name:"
51+
echo "$FILENAME"
52+
53+
- name: Publish built plugin to artifacts
54+
uses: actions/upload-artifact@v4
55+
with:
56+
name: ${{ steps.artifact.outputs.filename }}
57+
path: ./${{ env.WORKING_DIRECTORY }}/build/distributions/content/*/*

.gitignore

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
.vscode/*
2+
!.vscode/extensions.json
3+
!.vscode/launch.json
4+
!.vscode/tasks.json
5+
node_modules/
6+
dist/
7+
out/
8+
**/src/generated
9+
**/syntaxes/pli.merged.json
10+
*.tsbuildinfo
11+
*.vsix

PoC/pl-one/package-lock.json

Lines changed: 505 additions & 523 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

intellij-plugin/.gitignore

Lines changed: 42 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,42 @@
1+
.gradle
2+
build/
3+
!gradle/wrapper/gradle-wrapper.jar
4+
!**/src/main/**/build/
5+
!**/src/test/**/build/
6+
7+
### IntelliJ IDEA ###
8+
.idea/modules.xml
9+
.idea/jarRepositories.xml
10+
.idea/compiler.xml
11+
.idea/libraries/
12+
*.iws
13+
*.iml
14+
*.ipr
15+
out/
16+
!**/src/main/**/out/
17+
!**/src/test/**/out/
18+
19+
### Eclipse ###
20+
.apt_generated
21+
.classpath
22+
.factorypath
23+
.project
24+
.settings
25+
.springBeans
26+
.sts4-cache
27+
bin/
28+
!**/src/main/**/bin/
29+
!**/src/test/**/bin/
30+
31+
### NetBeans ###
32+
/nbproject/private/
33+
/nbbuild/
34+
/dist/
35+
/nbdist/
36+
/.nb-gradle/
37+
38+
### VS Code ###
39+
.vscode/
40+
41+
### Mac OS ###
42+
.DS_Store

intellij-plugin/.idea/.gitignore

Lines changed: 3 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

intellij-plugin/.idea/.name

Lines changed: 1 addition & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

intellij-plugin/.idea/gradle.xml

Lines changed: 16 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

intellij-plugin/.idea/kotlinc.xml

Lines changed: 6 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

intellij-plugin/.idea/misc.xml

Lines changed: 6 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

intellij-plugin/.idea/uiDesigner.xml

Lines changed: 124 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

intellij-plugin/.idea/vcs.xml

Lines changed: 7 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.
Lines changed: 33 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,33 @@
1+
<!--
2+
This program and the accompanying materials are made available under the terms of the
3+
Eclipse Public License v2.0 which accompanies this distribution, and is available at
4+
https://www.eclipse.org/legal/epl-v20.html
5+
6+
SPDX-License-Identifier: EPL-2.0
7+
8+
Copyright IBA Group 2024
9+
-->
10+
11+
<component name="ProjectRunConfigurationManager">
12+
<configuration default="false" name="Package plugin" type="GradleRunConfiguration" factoryName="Gradle">
13+
<ExternalSystemSettings>
14+
<option name="executionName" />
15+
<option name="externalProjectPath" value="$PROJECT_DIR$" />
16+
<option name="externalSystemIdString" value="GRADLE" />
17+
<option name="scriptParameters" value="" />
18+
<option name="taskDescriptions">
19+
<list />
20+
</option>
21+
<option name="taskNames">
22+
<list>
23+
<option value="buildPlugin" />
24+
</list>
25+
</option>
26+
<option name="vmOptions" />
27+
</ExternalSystemSettings>
28+
<ExternalSystemDebugServerProcess>true</ExternalSystemDebugServerProcess>
29+
<ExternalSystemReattachDebugProcess>true</ExternalSystemReattachDebugProcess>
30+
<DebugAllEnabled>false</DebugAllEnabled>
31+
<method v="2" />
32+
</configuration>
33+
</component>
Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
1+
<component name="ProjectRunConfigurationManager">
2+
<configuration default="false" name="Run Plugin" type="GradleRunConfiguration" factoryName="Gradle">
3+
<log_file alias="idea.log" path="$PROJECT_DIR$/build/idea-sandbox/system/log/idea.log" />
4+
<ExternalSystemSettings>
5+
<option name="executionName" />
6+
<option name="externalProjectPath" value="$PROJECT_DIR$" />
7+
<option name="externalSystemIdString" value="GRADLE" />
8+
<option name="scriptParameters" value="--stacktrace" />
9+
<option name="taskDescriptions">
10+
<list />
11+
</option>
12+
<option name="taskNames">
13+
<list>
14+
<option value="runIde" />
15+
</list>
16+
</option>
17+
<option name="vmOptions" value="" />
18+
</ExternalSystemSettings>
19+
<ExternalSystemDebugServerProcess>true</ExternalSystemDebugServerProcess>
20+
<ExternalSystemReattachDebugProcess>true</ExternalSystemReattachDebugProcess>
21+
<DebugAllEnabled>false</DebugAllEnabled>
22+
<RunAsTest>false</RunAsTest>
23+
<method v="2" />
24+
</configuration>
25+
</component>

intellij-plugin/README.md

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
# PL/I Language Support plug-in for IntelliJ IDEA™
2+
3+
## Prerequisites
4+
5+
- Java v17
6+
- Node.js v18 and later
7+
- IntelliJ v2023.2
8+
9+
## How to run (user)
10+
11+
- Open the folder with the project, run `./gradlew buildPlugin` (for Unix-like) or `.\gradlew.bat buildPlugin` (for Windows) to build the plugin (or run "Package plugin" configuration)
12+
- The built plug-in will be at the `build/distributions` in .zip format, install it with Settings -> Plugins -> Install plugin from disk
13+
- Reload your IDE
14+
15+
## How to run (developer)
16+
17+
- Open the folder with the project, run "Run plugin" configuration, wait for the other instance of IDE to run

0 commit comments

Comments
 (0)