Scala errors "value toInt is not a member of String" and "not found: type" -


i've set scala project using maven. not compile however. strange errors basic missing. of them are:

[error] /home/victor/work/projects/own/scraper/src/main/scala/me/crawler/node.scala:17: error: not found: type map [info]   var attributes: map[string, string] = null [info]                   ^ [error] /home/victor/work/projects/own/scraper/src/main/scala/me/crawler/companysiteemailcrawlercontroller.scala:137: error: not found: type set [info]   private def addemailtocompanylist(harvestedrecordscompanylist: list[company], company: company, emailset: set[string],[info]                                                                                                             ^ [error] /home/victor/work/projects/own/scraper/src/main/scala/me/crawler/companysiteemailcrawlercontroller.scala:186: error: value toint not member of string [info]       linefrom = args(3).toint [info]                          ^ [error] /home/victor/work/projects/own/scraper/src/main/scala/me/crawler/crawler4j/crawler4jadaptee.scala:25: error: not found: value classof [info]   private val log: logger = logger.getlogger(classof[crawler4jadaptee]) [info]                                              ^ [error] /home/victor/work/projects/own/scraper/src/main/scala/me/crawler/crawler4j/crawler4jadaptee.scala:126: error: not found: type map [info]       val attributesmap: map[string, string] = attributes.map(a => (a.getkey, a.getvalue)).tomap [info]                          ^ 

so map , set collections not fount , toint method doesn't work strings. in pom.xml have:

<dependencies>     <dependency>         <groupid>org.scala-lang</groupid>         <artifactid>scala-library</artifactid>         <version>2.10.2</version>     </dependency> </dependencies>  <build>     <sourcedirectory>src/main/scala</sourcedirectory>     <plugins>         <plugin>             <groupid>org.scala-tools</groupid>             <artifactid>maven-scala-plugin</artifactid>             <version>2.15.2</version>             <executions>                 <execution>                     <goals>                         <goal>compile</goal>                         <goal>testcompile</goal>                     </goals>                 </execution>             </executions>         </plugin>     </plugins> </build>  <repositories>     <repository>         <id>scala</id>         <name>scala tools</name>         <url>http://scala-tools.org/repo-releases/</url>         <releases>             <enabled>true</enabled>         </releases>         <snapshots>             <enabled>false</enabled>         </snapshots>     </repository> </repositories> <pluginrepositories>     <pluginrepository>         <id>scala</id>         <name>scala tools</name>         <url>http://scala-tools.org/repo-releases/</url>         <releases>             <enabled>true</enabled>         </releases>         <snapshots>             <enabled>false</enabled>         </snapshots>     </pluginrepository> </pluginrepositories> 

the same errors when run in idea, although ide not complain code, compiler does. quite new scala. can please me out here?

importing scala.collection.immutable solved problems collections, classof problem found workaround - using getclass instead. toint problem remains unsolved. there workaround though - using exact code definition: java.lang.integer.parseint. have feeling problem imports.


Comments