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.
If I try to set up Mercurial sources as a NB project, my first instinct is to add the root folder as a source folder. Unfortunately this then means that the build dir is scanned and offered in e.g. Find Usages, which I definitely do not want. There is no way to exclude it. I can instead add mercurial/ and hgext/ folders as source folders. This works tolerably well, but it gets the import path wrong: $PYTHONPATH when running the app should be the root folder. For example, if I Go to Type and enter "localrepository", it offers "localrepo.localrepository", whereas it should be showing "mercurial.localrepo.localrepository". Of course, with Python doing such dynamic name lookups, it is not clear whether the root module namespace is very meaningful.
Not sure it is still relevant with the current version. Closing this as old bug. If this is still a thing, please reopen and accept my apologies.
Thanks for your evaluation Julien. Reporter, if you think your issue is still valid and needs to be addressed, don't hesitate to reopen it with additional information. Closing for now.