Skip to content

Commit 2fc3cf3

Browse files
authored
Merge pull request #305 from hubertgrzeskowiak/patch-1
Add Docker instructions and syntax highlighting tips
2 parents 92d2ac8 + ad9bef9 commit 2fc3cf3

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

README.md

+8
Original file line numberDiff line numberDiff line change
@@ -47,6 +47,11 @@ danger(args) {
4747

4848
### Setup
4949

50+
### Docker
51+
```sh
52+
docker run --rm -v "${PWD}:/code" -w /code ghcr.io/danger/danger-kotlin:1.3.3 danger-kotlin local
53+
```
54+
5055
#### macOS (ARM)
5156
```sh
5257
brew install danger/tap/danger-kotlin
@@ -130,6 +135,9 @@ You can activate the autocomplete following this additional steps:
130135
- Make sure the script template `DangerFileScript` is active and above the default `Kotlin Script`
131136
- Apply changes
132137
- If opening the `Dangerfile.df.kts` the autocomplete and syntax highlighting doesn't work, try to reboot your IDE or open the Dangerfile from your IDE as a single file.
138+
- If it still doesn't work, go to `Help -> Edit Custom VM Options...` and add `-Dkotlin.script.classpath=<path>/danger-kotlin.jar` (replace the `<path>` with the absolute path to the JAR). Then restart the IDE.
139+
- You may also need to disable the "K2 mode" (search the settings for it) if you enabled it previously.
140+
133141

134142
### Using external maven dependencies into your Dangerfile
135143
You can use any external dependency by adding the following lines at the top of your `Dangerfile.df.kts`

0 commit comments

Comments
 (0)