This page is no longer maintained — Please continue to the home page at www.scala-lang.org

Re: [netbeans] Find Usage

4 replies
anli
Joined: 2008-08-19,
User offline. Last seen 1 day 2 hours ago.

On Friday 13 November 2009 06:49:18 Caoyuan wrote:
> BTW, have you tried my latest NetBeans commits? I tried to fixed
> something these days.

Yes, I have rebuilt NB and the plugin from current trunks state.

Caoyuan
Joined: 2009-01-18,
User offline. Last seen 42 years 45 weeks ago.
Re: [netbeans] Find Usage
anli
Joined: 2008-08-19,
User offline. Last seen 1 day 2 hours ago.
Re: [netbeans] Find Usage

On Friday 13 November 2009 06:58:01 you wrote:
> If so, can you give me an example that Find-Usages doesn't work? Thanks.

For standalone project:

- FU for vars founds declaration only (all vars I have tried in that project I have sent you)
- FU for lazy vals (say, HSess:34 in that project) - the same, or this error:

java.util.MissingResourceException: Can't find resource for bundle org.openide.util.NbBundle$PBundle, key ERR_CannotFindUsages
at java.util.ResourceBundle.getObject(ResourceBundle.java:384)
at java.util.ResourceBundle.getString(ResourceBundle.java:344)
at org.openide.util.NbBundle.getMessage(NbBundle.java:634)
at org.netbeans.modules.scala.refactoring.ui.RefactoringActionsProvider$TextComponentTask.run(RefactoringActionsProvider.scala:340)
at org.netbeans.modules.scala.refactoring.ui.RefactoringActionsProvider.doFindUsages(RefactoringActionsProvider.scala:250)
at org.netbeans.modules.refactoring.api.impl.ActionsImplementationFactory.doFindUsages(ActionsImplementationFactory.java:108)
at org.netbeans.modules.refactoring.spi.impl.WhereUsedAction.performAction(WhereUsedAction.java:62)
at org.netbeans.modules.refactoring.spi.impl.RefactoringGlobalAction$ContextAction.actionPerformed(RefactoringGlobalAction.java:178)
at org.openide.windows.TopComponent.processKeyBinding(TopComponent.java:1052)

Caoyuan
Joined: 2009-01-18,
User offline. Last seen 42 years 45 weeks ago.
Re: [netbeans] Find Usage

On Fri, Nov 13, 2009 at 12:37 PM, Andrew Gaydenko wrote:
> On Friday 13 November 2009 06:58:01 you wrote:
>> If so, can you give me an example that Find-Usages doesn't work? Thanks.
>
> For standalone project:
>
> - FU for vars founds declaration only (all vars I have tried in that project I have sent you)
> - FU for lazy vals (say, HSess:34 in that project) - the same, or this error:

Just committed fix for FU of vars
Lazy vals are bit different, may need more works.

--Caoyuan

>
> java.util.MissingResourceException: Can't find resource for bundle org.openide.util.NbBundle$PBundle, key ERR_CannotFindUsages
>        at java.util.ResourceBundle.getObject(ResourceBundle.java:384)
>        at java.util.ResourceBundle.getString(ResourceBundle.java:344)
>        at org.openide.util.NbBundle.getMessage(NbBundle.java:634)
>        at org.netbeans.modules.scala.refactoring.ui.RefactoringActionsProvider$TextComponentTask.run(RefactoringActionsProvider.scala:340)
>        at org.netbeans.modules.scala.refactoring.ui.RefactoringActionsProvider.doFindUsages(RefactoringActionsProvider.scala:250)
>        at org.netbeans.modules.refactoring.api.impl.ActionsImplementationFactory.doFindUsages(ActionsImplementationFactory.java:108)
>        at org.netbeans.modules.refactoring.spi.impl.WhereUsedAction.performAction(WhereUsedAction.java:62)
>        at org.netbeans.modules.refactoring.spi.impl.RefactoringGlobalAction$ContextAction.actionPerformed(RefactoringGlobalAction.java:178)
>        at org.openide.windows.TopComponent.processKeyBinding(TopComponent.java:1052)
>
>

anli
Joined: 2008-08-19,
User offline. Last seen 1 day 2 hours ago.
Re: [netbeans] Find Usage

On Friday 13 November 2009 10:25:57 Caoyuan wrote:
> Just committed fix for FU of vars

Thanks, just verified!

Andrew

Copyright © 2012 École Polytechnique Fédérale de Lausanne (EPFL), Lausanne, Switzerland