Scala Programming Language
  1. Scala Programming Language
  2. SI-5239

Manually created toolbox does not respect passed in settings

    Details

    • Type: Bug Bug
    • Status: Closed
    • Priority: Major Major
    • Resolution: Fixed
    • Affects Version/s: Scala 2.10.0
    • Fix Version/s: None
    • Component/s: Misc Compiler
    • Labels:
      None

      Description

      Given this code, the type checker won't print the typings, even though we explicitly ask it to do so:

      val settings = new Settings
      settings.Ytyperdebug.value = true
      
      val reporter = new ConsoleReporter(settings)
      val toolbox = new ToolBox(reporter)
      val ttree = toolbox.typeCheck(code.tree)
      

        Activity

        Hide
        Commit Message Bot added a comment -

        (burmako in r26081) Reflection toolboxes now respect settings that are provided to them.

        Before the fix CompilerCommand lacked the (args, settings, errorFn) ctor.
        I added it and provided means to augment passed settings with custom errorFn.

        Closes SI-5239. Review by odersky.

        Show
        Commit Message Bot added a comment - (burmako in r26081 ) Reflection toolboxes now respect settings that are provided to them. Before the fix CompilerCommand lacked the (args, settings, errorFn) ctor. I added it and provided means to augment passed settings with custom errorFn. Closes SI-5239 . Review by odersky.

          People

          • Assignee:
            Eugene Burmako
            Reporter:
            Eugene Burmako
          • Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved:

              Development