Skip to content
Commits on Nov 21, 2011
  1. @skyluc

    Tweaks for Re #1000757

    skyluc committed Nov 21, 2011
    - configured the new marker ids as extensions, so they are visible in the UI.
    - recursively removed all marker in the projects with invalid classpath, and fixed the test.
    (cherry-picked commit 7ab0683)
  2. @dragos

    Better build error management, and cleaned up interactions between bu…

    dragos committed Nov 15, 2011
    …ild, compiler settings,
    
    and class path validation errors.
    
    1. The class path validator deletes all Java and Scala error markers *only* when there is an
       class path error.
    2. Build errors, settings errors and class path errors have different marker IDs.
    3. Invalid setting errors are now reported. Until now they went unreported.
    4. Fixed #1000757.(cherry picked from commit 55ae84c)
    (cherry picked from commit e28c174)
Commits on Nov 16, 2011
  1. @dotta

    Replaced all calls to ScalaPlugin.check and ScalaPlugin.checkOrElse w…

    dotta committed Nov 16, 2011
    …ith Utils.tryExecute.
    
    I believe the latter better describes the method's intention.
    
    (cherry picked from commit 4a1c311)
Commits on Nov 7, 2011
  1. @skyluc

    Merge branch 'issue/classpath-validator-vs-sbt-vs-m2eclipse-1000728' …

    skyluc committed Nov 7, 2011
    …into release/scala-ide-2.0.x
  2. @skyluc

    Fixed #1000728. Modified classpath validator to accept multiple scala…

    skyluc committed Nov 7, 2011
    … library jars of compatible version.
    
    Extended tests for the new cases.
  3. @dragos

    Copy resources to the output directory. This runs the JDT Java builde…

    dragos committed Nov 7, 2011
    …r for this purpose, even when there are no modified Java files.
    
    Fixed #1000636.
Commits on Nov 4, 2011
  1. @dragos

    Integrated reviews.

    dragos committed with Iulian Dragos Nov 1, 2011
  2. @dragos

    Reworked the way the presentation compiler is restarted when projects…

    dragos committed with Iulian Dragos Oct 31, 2011
    … change.
    
    - A project resets the presentation compiler of all projects that depend on it after a successful build.
    - A project resets its own presentation compiler when one of the projects it depends on has changes (such as a class path change)
    - A class path change, or an added source file, restarts the PC
    
    Fixed #1000699. Test #1000645.
Commits on Nov 1, 2011
  1. @skyluc

    Fixed #1000631. It is somehow link to inter-project dependency.

    skyluc committed Nov 1, 2011
    Added check so markers are modified in the project is closed.
  2. @dragos
Commits on Oct 28, 2011
  1. @skyluc

    Re #1000631. Modified so the compilers are not reset when the classpa…

    skyluc committed Oct 28, 2011
    …th is invalid.
    
    The reset in this case is useless, generates log and was making the tests fail on trully
    headless systems.
  2. @dragos

    Make 'resetPresentationCompiler' do nothing on reset, if the presenta…

    dragos committed Oct 28, 2011
    …tion compiler
    
    was not yet initialized. This avoids waking up the compiler just to tell it to shutdown,
    and also eliminates a source of deadlocks or recursive initializations (for instance, if
    reset is called while initializing the presentation compiler). Fixed #1000704.
Commits on Oct 24, 2011
  1. @skyluc

    Re #1000631. Improvements from the review comments.

    skyluc committed Oct 21, 2011
    - Added a asScalaProject() method to ScalaPlugin, to return only 'valid' scala projects
    - Fix case when more than one project classpath is changed at once (+ test)
  2. @skyluc

    Re #1000631. Changed from thread to job for the error marker creations

    skyluc committed Oct 19, 2011
    A Job is more Eclipse-like, avoids creation of a new
    thread and manages lock on resources.
    Added comment as recommanded
  3. @skyluc
  4. @skyluc

    re #1000631. Adding a classpath validator. Initial commit. Breaks Sbt…

    skyluc committed Oct 11, 2011
    …BuilderTest@dependencyTest.
    
    Added validator methods to ScalaProject.
    Added link for Java Model listener to validator when classpath is modified in ScalaPlugin.
    Added check if project classpath is valid in ScalaBuilder.
    Added set of tests for different configuration of the classpath.
Commits on Oct 21, 2011
  1. @dragos

    Integrated reviewers comments.

    dragos committed Oct 20, 2011
  2. @dragos

    Completely evicted NameEnvironment use from ScalaProject.

    dragos committed Oct 18, 2011
    Reworked allSourceFiles() and sourceOutputFolders() to use the new method. This does not lock the workspace, nor
    creates output folders as a side-effect, leading to one less deadlock. Fixed #1000662.
  3. @dragos

    Don't rely on NameEnvironment for retrieving source folders and their…

    dragos committed Oct 12, 2011
    … output directories.
    
    Additionally, cleaned up some duplicated code between 'outputFolders' and 'sourceOutputFolders'.
    This changeset introduces a slight behavioral change, in that output directories are not created
    if they don't exist. This does not seem to pose any problems. Creating such folders locks the
    workspace, and if this happens during a build, it may lead to deadlocks.
    
    Fixed #1000662.
  4. @dragos

    General hardening of Scala compilation units.

    dragos committed with Iulian Dragos Oct 20, 2011
    Indexing, override indicators and the structure builder
    are going to report a crash in the compiler only once, then silently ignore it until the file is
    re-open. Certain exceptions, such as StackOverflowError, are reported by Eclipse in a dialog, and that
    can make editing impossible if the presentation compiler keeps crashing (because of a bug, of course).
    
    Disabled indexing and override indicators for Scala files in projects without the Scala nature (because
    that means there's no Scala library on the class path).
    
    Fixed #1000535 *again*.
Commits on Oct 12, 2011
  1. @skyluc

    Fixed #1000613. Modified code to handle this special case.

    skyluc committed Oct 12, 2011
    To be able to handle files which are not part of the workspace (like a
    previous version from source control), Eclipse uses a non-existing
    project. This one has to be handle correctly.
Commits on Oct 10, 2011
  1. @dragos

    Integrated Mirco's review and rebased on the latest changes.

    Iulian Dragos committed with dragos Oct 7, 2011
Commits on Oct 7, 2011
  1. @dotta

    Unified logging under a single component Re #1000649. As part of this…

    dotta committed Oct 7, 2011
    … commit I have replaced all calls to println with logger.debug or logger.info. This is much cleaner, IMO.
    
    There were mainly two reasons for refacting and unify the logger:
    
    1) Testing. It was previously impossible to mock the logger, which is a problem because I couldn't create a functional test for Re #1000531.
    
    2) Eventually we want to use Log4J (or similar) as a back-end logger (which ideally could be easily configured by customers). This is something we yet didn't explore and it will likely be tackled after releasing 2.0.
Commits on Oct 6, 2011
  1. @dragos

    Better presentation compiler initialization sequence:

    dragos committed with Iulian Dragos Oct 5, 2011
      - don't reset compilers during presentation compiler initialization (may lead to another 
    	attempt to initialize the same presentation compiler, leading to deadlocks in Cached)
      - reconcile calls are done after the presentation compiler is reset, passing again
    	the existing compilation units. Most importantly, this is not scheduled on the
    	UI thread. This allows calls to 'builder.clean' in non-UI environments (think 
    	tests and Jenkins).
Commits on Sep 28, 2011
  1. @dragos

    Switched to SBT builder by default. Moved IDESettings from package un…

    dragos committed Sep 28, 2011
    …til to 'properties', to be together with
    
    the other Scala compiler settings.
  2. @dragos
Commits on Sep 12, 2011
  1. @dragos

    Additional compiler options (no warn, explain types). Added an edit b…

    dragos committed Sep 12, 2011
    …ox (with completion) for additional command line arguments (since they vary across compiler versions).
    
    Fixed #1000547. Fixed #1000529.
Commits on Aug 31, 2011
  1. @dragos
Commits on Aug 24, 2011
  1. @hubertp

    Closes #1000566 and #1000565. Unlike SBT, which for compiling Java fi…

    hubertp committed Aug 24, 2011
    …les uses straight java batch compiler, we will use eclipse's java builder (similarly to what we were doing in the past) and then run sbt's classfile analyzer to pick up dependencies correctly. sbt's sources were updated accordingly to allow for multiple output directories.
Commits on Aug 10, 2011
  1. @hubertp

    Merge sbt integration into our main branch. Sbt builder available by …

    hubertp committed Aug 10, 2011
    …choosing it in the Scala -> Build Manager -> sbt. Have fun! Error reporting in mixed Scala/Java projects for Java files needs more work (eg getting location from stdout java compiler error messages) but other than that multi- and mixed-project integration works fine.
Commits on Jul 14, 2011
  1. @dragos

    Added utility method for running 'Runnable' in a workspace from a clo…

    dragos committed Jul 14, 2011
    …sure, and switched to using it in all the 5 places where anonymous classes were created for it.
Commits on Jul 13, 2011
  1. @dragos
Commits on Jun 30, 2011
  1. @lindydonna

    Add toolbar button to repl console view to support replaying interpre…

    lindydonna committed Jun 30, 2011
    …ter transcript when project is successfully rebuilt.
Commits on Apr 27, 2011
  1. @dragos @lindydonna
Commits on Apr 13, 2011
  1. @dragos

    Better handling of presentation compiler settings. Honors most settin…

    dragos committed Apr 13, 2011
    …gs now, including compiler plugins. Fixed #1000367.
Something went wrong with that request. Please try again.