Giter Site home page Giter Site logo

Comments (5)

mads-hartmann avatar mads-hartmann commented on July 21, 2024

I don't understand this, because my call to the importers is already wrapped in an askOption https://github.com/mads379/scala-search/blob/1001686-integrate-with-eclipse/org.scala.tools.eclipse.search/src/org/scala/tools/eclipse/search/searching/SearchPresentationCompiler.scala#L77

from scala-search.

dragos avatar dragos commented on July 21, 2024

I just had this one, with the latest nightly (June 7):

java.lang.AssertionError: assertion failed: Race condition detected: You are running a presentation compiler method outside the PC thread.[phase: <no phase>] Please file a ticket with the current stack trace at https://www.assembla.com/spaces/scala-ide/support/tickets
    at scala.tools.nsc.interactive.Global.assertCorrectThread(Global.scala:452)
    at scala.reflect.internal.Symbols$Symbol.rawInfo(Symbols.scala:1298)
    at scala.reflect.internal.Symbols$Symbol.isCoDefinedWith(Symbols.scala:1931)
    at scala.reflect.internal.Symbols$ClassSymbol$$anonfun$companionModule0$1.apply(Symbols.scala:2980)
    at scala.reflect.internal.Symbols$ClassSymbol$$anonfun$companionModule0$1.apply(Symbols.scala:2980)
    at scala.reflect.internal.Symbols$Symbol.filter(Symbols.scala:1664)
    at scala.reflect.internal.Symbols$Symbol.suchThat(Symbols.scala:1668)
    at scala.reflect.internal.Symbols$ClassSymbol.companionModule0(Symbols.scala:2979)
    at scala.reflect.internal.Symbols$ClassSymbol.companionModule(Symbols.scala:2982)
    at scala.reflect.internal.Symbols$PackageClassSymbol.sourceModule(Symbols.scala:3130)
    at scala.reflect.internal.Importers$StandardImporter.importOrRelink$1(Importers.scala:152)
    at scala.reflect.internal.Importers$StandardImporter.importSymbol(Importers.scala:202)
    at scala.reflect.internal.Importers$StandardImporter.importOrRelink$1(Importers.scala:148)
    at scala.reflect.internal.Importers$StandardImporter.importSymbol(Importers.scala:202)
    at scala.reflect.internal.Importers$StandardImporter.importOrRelink$1(Importers.scala:148)
    at scala.reflect.internal.Importers$StandardImporter.importSymbol(Importers.scala:202)
    at scala.reflect.internal.Importers$StandardImporter.importOrRelink$1(Importers.scala:148)
    at scala.reflect.internal.Importers$StandardImporter.importSymbol(Importers.scala:202)
    at scala.reflect.internal.Importers$StandardImporter.importOrRelink$1(Importers.scala:148)
    at scala.reflect.internal.Importers$StandardImporter.importSymbol(Importers.scala:202)
    at scala.reflect.internal.Importers$StandardImporter.importSymbol(Importers.scala:27)
    at org.scala.tools.eclipse.search.searching.SearchPresentationCompiler$$anonfun$org$scala$tools$eclipse$search$searching$SearchPresentationCompiler$$importSymbol$4.apply(SearchPresentationCompiler.scala:296)
    at org.scala.tools.eclipse.search.searching.SearchPresentationCompiler$$anonfun$org$scala$tools$eclipse$search$searching$SearchPresentationCompiler$$importSymbol$4.apply(SearchPresentationCompiler.scala:295)
    at scala.tools.nsc.util.InterruptReq.execute(InterruptReq.scala:26)
    at scala.tools.nsc.interactive.Global.pollForWork(Global.scala:339)
    at scala.tools.nsc.interactive.PresentationCompilerThread.run(PresentationCompilerThread.scala:22)

from scala-search.

mads-hartmann avatar mads-hartmann commented on July 21, 2024

Oh damn, really hoped we had solved that one. Do you remember what kind of symbol you were searching for?

From the docs:

/** In the current universe, locates or creates a symbol that corresponds to the provided symbol in the source universe.
 *  If necessary imports the owner chain, companions, type signature, annotations and attachments.
 */

Currently we only initialise the symbol and all the symbols in the owner chain, i.e. we don't do anything with the companion objects, type signature, annotations and attachments. Should we just go "all in" and load everything?

from scala-search.

dotta avatar dotta commented on July 21, 2024

@mads379 Could you move this ticket as well

from scala-search.

dotta avatar dotta commented on July 21, 2024

Please, follow updates on this issue here. I'm closing this ticket.

from scala-search.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.