Comments (5)
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.
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.
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.
@mads379 Could you move this ticket as well
from scala-search.
Please, follow updates on this issue here. I'm closing this ticket.
from scala-search.
Related Issues (20)
- Plugin slows down Eclipse to a crawl HOT 1
- Find References shortcut is difficult to use
- Hook the PR validator HOT 1
- Create an empty Search View panel using Eclipse extension point
- Find occurrences of methods misses cases HOT 4
- Create an empty Search Result panel using Eclipse extension point
- File not found errors HOT 2
- Include Lucene in the project
- Wrong hit for overloaded polymorphic method definition HOT 1
- NPE in SearchPresentationCompiler HOT 6
- Group hits by project HOT 7
- Source indexer crashes with File Not Found HOT 4
- Indexing methods using Lucene API
- scheduled jobs result in flickering UI HOT 2
- Don't lock the workspace when indexing HOT 1
- Select a method in the source file and use the index to find all occurrences HOT 6
- Use the Search Result view to display the found methods' occurrences
- Publish nightlies HOT 1
- Improve TypeHierarchyTreeLabelProvider
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from scala-search.