Join Slack
Powered by
Is there a way to disable the "Package directive d...
# scripting
m
martmists
06/04/2026, 10:49 AM
Is there a way to disable the "Package directive does not match file location" in IntelliJ for scripts only?
v
Vladislav Koshkin
06/04/2026, 2:58 PM
hi, why is it the case? do you put your script under the source root? 🤔
m
martmists
06/04/2026, 4:22 PM
I put my scripts in the project resources, namespaced under different folders based on their purpose or script type. For example,
src/main/resources/autorun/sample.autorun.kts
would report as needing to be in the
autorun
package.
2
Views
Open in Slack
Previous
Next