Comment 2 for bug 880896

Revision history for this message
Rares Boian (rares-boian) wrote :

Steps to reproduce the bug:

1. Open in Bazaar Explorer the branch D:/work/branch

2. Run in D:\work\branch "mvn clean install". This attempts to delete a lot
   of directories named "target", which were previously detected by
   Bazaar Explorer as Unversioned

3. Maven stops with the error below

   [INFO] Failed to clean project: Failed to delete D:\work\branch\target\classes\my\domain\myproject\export

4. .bzr.log shows the error below

   8.423 Traceback (most recent call last):
     File "C:/Program Files (x86)/Bazaar/plugins\explorer\lib\view_workingtree.py", line 141, in refresh_view
     File "C:/Program Files (x86)/Bazaar/plugins\explorer\lib\view_workingtree.py", line 115, in _add_file_watcher_paths
     File "bzrlib\osutils.pyo", line 1808, in _walkdirs_utf8
     File "_walkdirs_win32.pyx", line 227, in bzrlib._walkdirs_win32.Win32ReadDir.read_dir (bzrlib\_walkdirs_win32.c:1837)
   WindowsError: [Error 5] D:/work/branch/target/classes/my/domain/myproject/export/annotations/*

5. Bazaar Explorer shows an error dialog with the content below

   bzr: ERROR: [Error 5] D:/work/branch/target/classes/my/domain/myproject/export/annotations/*

6. Click "Ignore" In the error dialog

7. Repeat step 2 multiple times. The Maven build keeps stopping with the
   error below, but there are no errors logged in .bzr.log and Bazaar
   Explorer shows no error dialogs. Closing the branch tab in Bazaar
   Explorer has no effect, as the build keeps failing to delete the same
   directory. Only when Bazaar Explorer is stopped does the build work
   again.

   [INFO] Failed to clean project: Failed to delete D:\work\branch\target\generated-sources

Bazaar version:

  Bazaar (bzr) 2.5b4
  Python interpreter: C:\Programs\x86\Bazaar\python26.dll 2.6.6
  Python standard library: C:\Programs\x86\Bazaar\lib\library.zip
  Platform: Windows-7-6.1.7601-SP1
  bzrlib: C:\Programs\x86\Bazaar\lib\library.zip\bzrlib
  Bazaar configuration: C:/Users/rares/AppData/Roaming/bazaar/2.0
  Bazaar log file: C:\Users\rares\Documents\.bzr.log

Bazaar Explorer version:

  1.2.1 "Leif Ericson"
  QBzr 0.22.0dev, bzrlib 2.5b4, PyQt 4.8.4, Qt 4.7.2, Python 2.6.6