-
-
Notifications
You must be signed in to change notification settings - Fork 50
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Can't find DangerFileScript in Kotlin Scripting #276
Comments
I have the same issue |
Same issue, you can see what is wrong from the IDE logs
|
Hi, I had the same issue. Here is how I fixed that:
After that, you should see the DangerFileScript in Hope it will help someone. Also, the instructions in the main README should probably be updated. I think many people have the same issue and might not use this project because of that |
it didn't help, I suspect because I can't follow the first part of the instructions in the readme, since even the main menu of the new versions of Android Studio doesn't have the appropriate fields |
Hi, @ron-diesel. What do you see in kotlin section? |
|
Please, take a look at issue description. The screenshot from there should help you |
Yes, as far as I remember, I did the same. Can share with you my settings once I have access to my laptop |
But of course, the path will depend on your system |
IDE does not allow to apply this setting. Which version of AS do you use? |
Originally, I did it in IntelliJ IDEA. But I just tried it in AS Koala and everything worked (after the AS restart). I did not have any problems with applying those settings. Android Studio detailsAndroid Studio Koala Feature Drop | 2024.1.2 |
Then please tell me where your path leads and what's in the libs folder. In my case there is no libs folder, there is only /opt/homebrew/opt/danger-kotlin/lib/danger/danger-kotlin.jar |
I figured it out, it seems the problem is this |
is there any workaround for this issue? |
@pablobaldez
to build.gradle, put the danger file into the |
Hi, @pablobaldez. Maybe you can try IntelliJ IDEA instead of Android Studio (if you are okay with switching between IDEs of course). I did not observe any issues with IDEA |
@OptimumCode I tried the community IntelliJ but then another problem appeared. obs:
|
@pablobaldez Unfortunately, I am using Linux not a Mac so I cannot even try to reproduce the problem. However, you probably can find some useful information about the problem's cause in IDE logs. If you are using ToolBox you can click and look for |
Hello people, I am trying to activate the autocomplete, and after adding Script template classes and Script templates classpath
I want to activate DangerFileScript but don't see it in Kotlin Scripting.
I see this cause of errors (Unresolved reference: danger) in my Dangerfile.df.kts
`import systems.danger.kotlin.*
danger(args) {
}`
Am I missing something or doing something wrong?
Thank you very much.
The text was updated successfully, but these errors were encountered: