Kiro icon indicating copy to clipboard operation
Kiro copied to clipboard

groovy bin directory

Open tbaldarelli opened this issue 1 year ago • 4 comments

Before opening, please confirm:

Operating System

win32

Kiro Version

0.5.9

Bug Description

It seems to be adding the bin directory when I save my groovy file changes. According to the AI, it is copying the groovy file I just changed into bin.

As a work around, I am just adding to .gitignore.

Steps to Reproduce

The steps taken are as follows:

  1. Open a Groovy test file in Kiro
  2. Make any edit (even just a space)
  3. Save the file
  4. bin/test/ directory appears with a copy of the source file

Expected Behavior

I expect either no bin directory, or for the bin directory to be cleaned up after Kiro is finished doing whatever it is doing.

Conversation ID

a106ef13-1e59-4c19-b612-009c472fd040 1f2deb17-ebd3-4687-adb7-7631f84c854e

Additional Context

No response

tbaldarelli avatar Nov 11 '25 02:11 tbaldarelli

Hey @tbaldarelli,Thank you for reporting this issue. Could you provide more details about your development environment, specifically your Groovy project configuration and any build tools or compilation settings you're using? To help diagnose the problem, could you share the contents of your project's build configuration files (like build.gradle or similar) and confirm whether this behavior occurs consistently across different Groovy projects?

AnilMaktala avatar Nov 11 '25 18:11 AnilMaktala

See here for the worktree I am working on. It just occurred to me that it could also be VSCode, so I checked what would happen in another editor (tried 2 others, including Notepad), and both caused bin to be created. So maybe the AI was wrong, and it is something strange in the project setup. Weird that "Save" would trigger it, but gradlew.bat would not. Based on another AI query, I did check if gradle was running, and it says it is not:

PS C:\Users\Tony Baldarelli\Documents\workspaces\WarpStuff\cron-query-ws\groovy> gradle --status                       
No Gradle daemons are running.

Only Daemons for the current Gradle version are displayed. See https://docs.gradle.org/6.6.1/userguide/gradle_daemon.html#sec:status

So maybe some extension in VSCode is doing it, acting as a daemon even though I do the save in Notepad or some other editor? Let me confirm this by shutting down Kiro entirely.

When I did the above, and opened the same file in normal VSCode, doing the same type of save actions, no bin directory was created. Same with Notepad. Then I brought up Kiro and did not touch anything at all. The bin directory got created immediately, with a timestamp of 2:27 pm, this time with a "main" directory as well (which was not there before):

PS C:\Users\Tony Baldarelli\Documents\workspaces\WarpStuff\cron-query-ws\groovy> ls bin

    Directory: C:\Users\Tony Baldarelli\Documents\workspaces\WarpStuff\cron-query-ws\groovy\bin

Mode                 LastWriteTime         Length Name
----                 -------------         ------ ----
d----          11/11/2025  2:27 PM                main
d----          11/11/2025  2:27 PM                test

And no changes were made at that time (last true change was at 2:25 pm, I am ignoring the stuff related to .gradle):

S C:\Users\Tony Baldarelli\Documents\workspaces\WarpStuff\cron-query-ws\groovy> Get-ChildItem -Recurse -File | Where-Object {$_.LastWriteTime -gt (Get-Date -Hour 14 -Minute 24 -Second 0)} | Select-Object FullName, LastWriteTime

FullName                                                                                                                        LastWriteTime
--------                                                                                                                        -------------
C:\Users\Tony Baldarelli\Documents\workspaces\WarpStuff\cron-query-ws\groovy\.gradle\8.11.1\checksums\checksums.lock            11/11/2025 2:27:20 PM
C:\Users\Tony Baldarelli\Documents\workspaces\WarpStuff\cron-query-ws\groovy\.gradle\8.11.1\fileChanges\last-build.bin          11/11/2025 2:27:20 PM
C:\Users\Tony Baldarelli\Documents\workspaces\WarpStuff\cron-query-ws\groovy\.gradle\8.11.1\fileHashes\fileHashes.lock          11/11/2025 2:27:20 PM
C:\Users\Tony Baldarelli\Documents\workspaces\WarpStuff\cron-query-ws\groovy\.gradle\buildOutputCleanup\buildOutputCleanup.lock 11/11/2025 2:27:20 PM
C:\Users\Tony Baldarelli\Documents\workspaces\WarpStuff\cron-query-ws\groovy\src\groovy\test\CronLoaderSpec.groovy              11/11/2025 2:25:36 PM
C:\Users\Tony Baldarelli\Documents\workspaces\WarpStuff\cron-query-ws\groovy\src\groovy\test\OutputFormatterSpec.groovy         11/11/2025 2:24:06 PM

PS C:\Users\Tony Baldarelli\Documents\workspaces\WarpStuff\cron-query-ws\groovy> 

So this suggests to me that something either in the project or Kiro/VSCode is doing this. I guess I could try loading plain VSCode at the project level, see if that creates the bin directory as well. Tell me if you want me to try that, or the above is enough information for now.

I do not currently have other Groovy projects, so I don't know if it happens there or not.

I hope that helps. I provide some more information below, for completeness. As I said above, if you want me to do any other experiments, tell me.

Here are some pictures with comments on a recent test I did. After deleting bin, so it is clean: Image Image

Running command: Image

Now making a small change. I simply added a space, and then removed it, so effectively I am just "touching" the file.

Image Image

tbaldarelli avatar Nov 11 '25 19:11 tbaldarelli

I don't know if this helps, but I had Groovy Easy extension yesterday, and just now I uninstalled it and installed the Groovy Guru extension. I thought maybe they were doing something, but when I uninstalled both, it immediately recreated to bin directory, albeit with empty "main" and "test" subfolders. When I saved a groovy file, it immediately showed up in the test directory. This is rather consistent.

tbaldarelli avatar Nov 13 '25 19:11 tbaldarelli

Thanks for taking the time to file this and for the feedback! We're doing a periodic backlog review and noticed this issue hasn't seen activity in over 6 months. Given how much has changed in Kiro since then (we're now on IDE 1.0.293 / CLI 2.18.0), we can't be confident it's still relevant on current builds.

We're closing this to keep the backlog focused, but it's not a dismissal — if you're still seeing this or the idea still resonates, we'd genuinely welcome a new issue with your current version and any updated context. Issues with 👍 reactions or detailed reproduction steps rise to the top fastest.

Appreciate the input! 🙏

AnilMaktala avatar Aug 14 '26 18:08 AnilMaktala