Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 6790635
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 26, 20262026-05-26T17:44:54+00:00 2026-05-26T17:44:54+00:00

I am compiling a project with Scala 2.9.1 and getting java.lang.AssertionError: assertion failed at

  • 0

I am compiling a project with Scala 2.9.1 and getting

java.lang.AssertionError: assertion failed
    at scala.Predef$.assert(Predef.scala:89)
    at scala.tools.nsc.symtab.Symbols$Symbol.accessed(Symbols.scala:1142)
    at scala.tools.nsc.symtab.Symbols$Symbol.accessed(Symbols.scala:1138)
    at scala.tools.nsc.transform.Mixin$MixinTransformer$$anonfun$buildFieldPositions$1$1.apply(Mixin.scala:1006)

I guess it’s a bug, but I don’t really have time to fix it or wait for someone else to fix it, so I’d like to just change whatever I’m doing so I don’t hit the bug.

But I’m having a hard time because I get no clue about what part of my code caused the problem. Are there any strategies I can use to isolate the problem?

To make things easier for those investigating, here are the links to the source code:

  • Symbols.scala:1142
  • Symbols.scala:1138
  • Mixin.scala:1006
  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-26T17:44:54+00:00Added an answer on May 26, 2026 at 5:44 pm

    I haven’t worked around Scala compiler crashes, in specific, but I have worked around other compiler crashes. What you want to do is to try narrowing down what’s causing the problem. The easiest way to do this in most projects is to do a binary search via commenting. That is, comment out about half of the code and see if the bug still happens. If not, uncomment that half and comment the other half and see if the bug still happens. Then, assuming that this works and you find which half it’s occurring in, break that in half via comments. Repeat this process until you’re down to the smallest segment of code which you can find which still breaks things. (Obviously, you may not always be able to do even halves due to code dependencies, but find ways to break it, at least, into big chunks).

    When you get there, you may find, by inspection, that there is a bug in that code because compiler crashes, in my experience, are more likely to be caused by incorrectly formed code which is incorrectly formed in a manner that the compiler author didn’t expect. For example, my own intellisense-like Java module that I wrote for work would crash on foo(super).bar because I’d never imagined anyone not following super with a period or open paren but it could slip through the parser due to how the grammar was designed. And Adobe’s Actionscript compiler would crash when you wrote var x:int : 10; rather than var x:int = 10; (they may have fixed that now, but it would crash there last time I used it). So, if you do find a bug in your code, fix it. If not, just try to rewrite that code so that it’s different. Hopefully you’ll be able to find a version which doesn’t cause a compiler crash.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I've been hitting a java.lang.OutOfMemoryError: PermGen error when compiling a project with ant under
I'm getting an error compiling my VSTO (Visual Studio Tools for Office) project in
Possible Duplicate: compiling project with jdk1.5 using maven2 I am trying to build java
THIS is the error i am getting when i am compiling my project Parser
I'm getting error while compiling qt project which #include's < qvaluelist.h > that this
When compiling my project with gcc and the -Wall option, I get a warning
I have the ActiveMQ-CPP 2.2.1 Visual Studio 2005 project compiling and running. In the
I'm compiling a NAnt project on linux with TeamCity Continuous Integration server. I have
After compiling a simple C++ project using Visual Studio 2008 on vista, everything runs
I'm running my first project that I'm compiling with flex builder. Before I used

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.