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.

Bug 189298 - WARNING [org.netbeans.core.startup.InstalledFileLocatorImpl]: no code name base passed when looking up modules/dict/dictionary_en_US.description
Summary: WARNING [org.netbeans.core.startup.InstalledFileLocatorImpl]: no code name ba...
Status: RESOLVED WONTFIX
Alias: None
Product: platform
Classification: Unclassified
Component: Module System (show other bugs)
Version: 7.0
Hardware: PC Linux
: P4 normal (vote)
Assignee: Jesse Glick
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2010-08-08 18:55 UTC by Jan Lahoda
Modified: 2010-08-11 12:16 UTC (History)
0 users

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Jan Lahoda 2010-08-08 18:55:29 UTC
Recently, warnings like:
WARNING [org.netbeans.core.startup.InstalledFileLocatorImpl]: no code name base passed when looking up modules/dict/dictionary_en_US.description
started to appear in my log. My build is from changeset 2eaa1d322ee2. The javadoc for InstalledFileLocator.locate says, that codeNameBase parameter may be null if unknown, and the spellchecker (AFAIK) does not have any cnb to pass there. So the warning is wrong, IMO.
Comment 1 Jesse Glick 2010-08-09 17:30:38 UTC
Optional but strongly recommended. "org.netbeans.modules.spellchecker.dictionary_en" in this case. Note that warnings are displayed only in dev builds (i.e. with -ea).
Comment 2 Jan Lahoda 2010-08-10 18:26:50 UTC
Well, using "org.netbeans.modules.spellchecker.dictionary_en" will work in case of this particular file. But as soon as another module with dictionary for different locale is installed, "org.netbeans.modules.spellchecker.dictionary_en" will cease to work, AFAIK. So this does not seem to be the proper way to solve this problem. Probably the cleanest solution is to simply give up on IFL completelly and place the dictionaries into the system filesystem.
Comment 3 Jesse Glick 2010-08-11 12:16:36 UTC
Can either do nothing and ignore the warning in dev builds, or an exception can be added for spellchecker, or use SFS. Not sure if SFS is appropriate from a performance point of view for this but may be fine.