This Bugzilla instance is a read-only archive of historic NetBeans bug reports. To report a bug in NetBeans please follow the project's instructions for reporting issues.
It looks NetBeans can not handle a lot of files in mercurial. When I tried to commit a lot of files, the following error happens. SEVERE [org.netbeans.modules.mercurial]: execEnv(): execEnv(): IOException java.io.IOException: Cannot run program "/usr/local/bin/hg": error=7, Argument list too long Another problem is that error dialog is not correct by this error. It says "Mercurial could not found".
Created attachment 84385 [details] error dialog
How many is 'a lot of files'? I am trying to fix this, but i see the problem somewhere around 100 000 files on my system. But i don't want to believe that you are trying that since with so many files the mercurial module (especially it's cache) gets so slow that the IDE becomes unusable anyway. Could you please attach the message log (for some system settings and so that i can exactly what command is failing - add or commit)?
Hi Ondrej, I tried the latest 6.7.1 FCS build. Product Version: NetBeans IDE 6.7.1 (Build 200907202301) Java: 1.6.0_13; Java HotSpot(TM) 64-Bit Server VM 11.3-b02-83 System: Mac OS X version 10.5.7 running on x86_64; SJIS; en (nb) % hg --version Mercurial Distributed SCM (version 1.0.2) I'm working on localization and I'm encountering this issue when I handle many localized files. It's easy to reproduce, 1. hg clone http://hg.netbeans.org/main/l10n 2. cd l10n/src 3. cp -r ja ja2 4. Start NetBeans 5. Try to commit all files under ja2 on NetBeans. ja2 contains 7003 files.
Created attachment 84978 [details] log file but only SEVERE line in output
My setup is: Product Version: NetBeans IDE Dev (Build 200907200201) Java: 1.5.0_19; Java HotSpot(TM) Client VM 1.5.0_19-137 System: Mac OS X version 10.5.7 running on i386; MacRoman; en_US (nb) Mercurial Distributed SCM (version 1.1.1+20081229) I get the different exception dialog when tried to reproduce the steps above - see attached screenshot. The output window in NetBeans contains following commit messages: Mercurial Commit ---------------- cmd line args test INFO: End of Commit
Created attachment 84987 [details] Screenshot attached...
so, i hope this will help: cdev #aae93a8dd92e you will get a confirmation dialog (when committing too many files). If you confirm that dialog, the whole folder will be committed recursively, meaning all hg-tracked files under it will be committed. But note that also excluded files will be committed (thats why a confirmation will be needed)
Integrated into 'main-golden', will be available in build *200907230201* on http://bits.netbeans.org/dev/nightly/ (upload may still be in progress) Changeset: http://hg.netbeans.org/main-golden/rev/aae93a8dd92e User: Ondrej Vrabec <ovrabec@netbeans.org> Log: #168155 - Can not handle many files and wrong error dialog remove done in loop, commit exceeding max command line size is done recursively on roots
Great! It looks working properly on build 200908021401.