Today the plugin auto-detects the first errors-ai.log in the project and polls on a fixed interval. Add a small Settings page so a user can point it at a specific file and tune the poll — useful in multi-module projects or when the log lives under build/.
What to do
In the :plugin module:
- Add a
PersistentStateComponent (project-level) holding two fields: logPath (empty = auto-detect, the current behavior) and pollSeconds (default = whatever StacktalePanel uses today).
- Add a
Configurable (registered via <projectConfigurable .../> in plugin.xml, under a "Stacktale" entry) with a text field for the path and a spinner for the interval.
- Make
StacktalePanel read these: if logPath is set, use it; otherwise keep auto-detecting. Apply pollSeconds to the existing poll.
Keep the defaults exactly matching today's behavior so existing users notice nothing until they change a setting.
How to verify
./gradlew runIde, open Settings → Tools → Stacktale, set a path, and confirm the tool window reads that file; clear it and confirm auto-detect returns. ./gradlew test green.
Files: a settings state class + a Configurable under plugin/src/main/java/.../idea/, plugin.xml, and a small change in StacktalePanel.
Today the plugin auto-detects the first
errors-ai.login the project and polls on a fixed interval. Add a small Settings page so a user can point it at a specific file and tune the poll — useful in multi-module projects or when the log lives underbuild/.What to do
In the
:pluginmodule:PersistentStateComponent(project-level) holding two fields:logPath(empty = auto-detect, the current behavior) andpollSeconds(default = whateverStacktalePaneluses today).Configurable(registered via<projectConfigurable .../>inplugin.xml, under a "Stacktale" entry) with a text field for the path and a spinner for the interval.StacktalePanelread these: iflogPathis set, use it; otherwise keep auto-detecting. ApplypollSecondsto the existing poll.Keep the defaults exactly matching today's behavior so existing users notice nothing until they change a setting.
How to verify
./gradlew runIde, open Settings → Tools → Stacktale, set a path, and confirm the tool window reads that file; clear it and confirm auto-detect returns../gradlew testgreen.Files: a settings state class + a
Configurableunderplugin/src/main/java/.../idea/,plugin.xml, and a small change inStacktalePanel.