Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.
Comment: Add step for correcting "macro definition needs to be enabled by making the implicit value scala.language.experimental.macros visible" error.

...

  1. Follow the directions above in 'Build Daffodil Using SBT'.  This needs to happen to generate the 'generated' code.
  2. Open Eclipse.
  3. From the Menu select Window → Preferences
  4. In Preferences select Scala → Compiler
    1. Under "Additional command line parameters" add the following without quotes: "-language:experimental.macros"
  5. In the Package Explorer select all of the daffodil projects (click the first project, hold SHIFT, click the last project).  Right-click the first project -> Refresh.
    1. If there are still XML Errors after this you may have to select all daffodil-projects, right click -> Validate.
  6. From the top menu click Project -> Build Project or just check Project -> Build Automatically.
  7. Once the project is built you can test by opening 'daffodil-core/src/test/scala/' from the Package Explorer.
  8. Expand the dsom package and select the TestDsomCompiler.scala file.  Right-click the file -> Run As -> JUnit Test
  9. At this point, all of the tests should have run successfully.  If so, you are good to go.

...