python search bug

Anonymous
2010-11-10
2013-03-15
  • Anonymous - 2010-11-10

    when I try and search for reference in workspace I get an error.  this is with the latest pydev 1.6.3  and eclipse 1.3.1.2 on win7 64bit

    the error message I see is as follows
    An internal error occurred during: "Python Search".
    org.eclipse.swt.SWTException: Invalid thread access

    eclipse.buildId=M20100909-0800
    java.version=1.6.0_20
    java.vendor=Sun Microsystems Inc.
    BootLoader constants: OS=win32, ARCH=x86_64, WS=win32, NL=en_GB
    Framework arguments:  -product org.eclipse.epp.package.java.product
    Command-line arguments:  -os win32 -ws win32 -arch x86_64 -product org.eclipse.epp.package.java.product

    Error
    Wed Nov 10 16:25:11 GMT 2010
    Error. Not currently with thread access (so, there is no activeWorkbenchWindow available)

    org.eclipse.core.runtime.CoreException: Error. Not currently with thread access (so, there is no activeWorkbenchWindow available)
    at org.python.pydev.plugin.PydevPlugin.log(PydevPlugin.java:427)
    at org.python.pydev.editor.actions.PyAction.getShell(PyAction.java:50)
    at com.python.pydev.refactoring.refactorer.RefactorerFindReferences.findPossibleReferences(RefactorerFindReferences.java:127)
    at com.python.pydev.refactoring.wizards.rename.AbstractRenameRefactorProcess.findFilesWithPossibleReferences(AbstractRenameRefactorProcess.java:275)
    at com.python.pydev.refactoring.wizards.rename.AbstractRenameWorkspaceRefactorProcess.doCheckInitialOnWorkspace(AbstractRenameWorkspaceRefactorProcess.java:143)
    at com.python.pydev.refactoring.wizards.rename.AbstractRenameWorkspaceRefactorProcess.findReferencesToRenameOnWorkspace(AbstractRenameWorkspaceRefactorProcess.java:125)
    at com.python.pydev.refactoring.wizards.rename.AbstractRenameRefactorProcess.findReferencesToRename(AbstractRenameRefactorProcess.java:174)
    at com.python.pydev.refactoring.wizards.rename.PyRenameEntryPoint.checkFinalConditions(PyRenameEntryPoint.java:246)
    at com.python.pydev.refactoring.refactorer.Refactorer.findAllOccurrences(Refactorer.java:88)
    at com.python.pydev.refactoring.search.FindOccurrencesSearchQuery.run(FindOccurrencesSearchQuery.java:52)
    at org.eclipse.search2.internal.ui.InternalSearchUI$InternalSearchJob.run(InternalSearchUI.java:91)
    at org.eclipse.core.internal.jobs.Worker.run(Worker.java:54)
    Caused by: java.lang.RuntimeException: Error. Not currently with thread access (so, there is no activeWorkbenchWindow available)
    at org.python.pydev.plugin.PydevPlugin.log(PydevPlugin.java:426)
    … 11 more

     
  • Anonymous - 2010-11-10

    .

     
  • Jan Persson

    Jan Persson - 2010-11-20

    Had the same error here on Ubuntu 10.04 64-bit.

    An internal error occurred during: "Python Search".
    org.eclipse.swt.SWTException: Invalid thread access

    When I looked in the log I saw the following message:

    Problems encountered during text search.
    Error
    Sat Nov 20 09:55:42 CET 2010
    File 'xxxxx' has been skipped, problem while reading: ('Resource is out of sync with the file system: 'xxxxx.py'.').

    and the problem went away when i did a refresh (F5) of that file.

     
  • Fabio Zadrozny

    Fabio Zadrozny - 2010-11-21

    Usually it's recommended that in window > preferences > general > workspace >  'refresh automatically' is checked (in which case you shouldn't have those errors. See: http://pydev.org/manual_101_eclipse.html

    Cheers,

    Fabio

     
  • Jan Persson

    Jan Persson - 2010-11-21

    Thanks for the tip (and the excellent Pydev). I did not know that.

    Cheers
        //Janne