Skip to content

Commit 3e59173

Browse files
authored
Add Scala-IDE setup info
1 parent de7e0e6 commit 3e59173

File tree

1 file changed

+22
-1
lines changed

1 file changed

+22
-1
lines changed

documentation/development.md

+22-1
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,23 @@
11

2-
### Eclipse
2+
## Build
3+
Meerkat is a [Scala SBT](http://www.scala-sbt.org) project. To build Meerkat from command line run:
4+
5+
```
6+
sbt compile
7+
```
8+
9+
## IDE Support
10+
Meerkat uses [Scala Macros](http://scalamacros.org), and IDE support for Scala Macros is not at the moment very satisfactory.
11+
12+
### Eclipse
13+
[Scala IDE](http://scala-ide.org), which is based on Eclipse, is the best choice for developing Meerkat, as it can recognize Macros (with some effort). To use Scala IDE for developing Meerkat, do the following steps:
14+
15+
- In the Meerkat directory, run `sbt eclipse`. This command will generate `.project` and `.classpath` files, which are necessary for Eclipse projects.
16+
- Open Eclipse, and import the Meerkat directory as an existing Eclipse project.
17+
- Make sure that the following Scala Compiler settings (Preferences > Scala > Compiler > Build Manager) are set:
18+
- recompileOnMacroDef
19+
- useScopesCompiler
20+
- Comment the content of the file `src/macros/scala/org/meerkat/Syntax.scala` and save. This will trigger building of non-macro files.
21+
- Uncomment the content of `Syntax.scala` and save. This will trigger the compiliation of macros.
22+
23+
Now, syntax errors should disapear from the files.

0 commit comments

Comments
 (0)