Warning: Use of undefined constant _FILE_ - assumed '_FILE_' (this will throw an Error in a future version of PHP) in /home/bolyarco/www-ikratko/ogrelab/wp-content/plugins/ad-blocker-stats-vip/ad-blocker-stats-vip.php on line 13

Warning: count(): Parameter must be an array or an object that implements Countable in /home/bolyarco/www-ikratko/ogrelab/wp-content/plugins/microkids-related-posts/microkids-related-posts.php on line 645

Warning: count(): Parameter must be an array or an object that implements Countable in /home/bolyarco/www-ikratko/ogrelab/wp-content/plugins/microkids-related-posts/microkids-related-posts.php on line 645

Warning: count(): Parameter must be an array or an object that implements Countable in /home/bolyarco/www-ikratko/ogrelab/wp-content/plugins/microkids-related-posts/microkids-related-posts.php on line 645

Warning: count(): Parameter must be an array or an object that implements Countable in /home/bolyarco/www-ikratko/ogrelab/wp-content/plugins/microkids-related-posts/microkids-related-posts.php on line 645

Eclipse + PDT + Mercurial + Win 7 = Very slow. Solution

Posted / Публикувана 2012-03-13 in category / в категория: PHP

Warning: count(): Parameter must be an array or an object that implements Countable in /home/bolyarco/www-ikratko/ogrelab/wp-content/plugins/microkids-related-posts/microkids-related-posts.php on line 645

I had this MF problem: I was using latest PDT (3.0.x) bundle, with latest Java on Windows 7 64 bit. When I was working on projects with Mercurial source control I've experienced huge hangs/lag when I was clicking on the project folder/name or right-clicking on it. After hours of frustration I finally found a solution:

  • rename .hg dir to something different for example .hg-tmp
  • refresh the project in Eclipse
  • Create a linked resource ( New -> File  -> Advanced -> Link to file in the file system ). Name it .hg
  • on filesystem: rename .hg-tmp back to .hg
  • refresh the project in Eclipse

Now things should be fine.

I am not sure why exactly above steps have positive effect but it has something to do with .hg dir slowing down Eclipse/PDT (even thou I had no hg plug-in installed in Eclipse (I use external tool -- TortoiseHg)).

Comments are closed.