# Error when trying to use Kanvas

**URL:** https://d.strumenta.community/t/error-when-trying-to-use-kanvas/1412
**Category:** Language Workbenches
**Created:** [November 14, 2021, 7:14am UTC](https://d.strumenta.community/t/error-when-trying-to-use-kanvas/1412 "2021-11-14T07:14:21Z")
**Posts on this page:** 1
**Page:** 1

<div class="post-metadata">

### Author: ![david.benn](https://d.strumenta.community/user_avatar/d.strumenta.community/david.benn/32/692_2.png) [@david.benn](https://d.strumenta.community/u/david.benn)
#### Post date: [November 14, 2021, 7:14am UTC](https://d.strumenta.community/t/error-when-trying-to-use-kanvas/1412/1 "2021-11-14T07:14:21Z")

</div>

Hi all

I’m experimenting with [Kanvas](https://tomassetti.me/kanvas-generating-simple-ide-antlr-grammar/).

The following Kotlin (from [the article](https://tomassetti.me/kanvas-generating-simple-ide-antlr-grammar/) linked above):

`object langSupport : BaseLanguageSupport() {`

yields a type argument error:

 ![image](https://community.strumenta-ops.com/uploads/default/original/1X/798c288b0e178e1453c9243273b984a5cbafced9.png)

I’ve cloned from GitHub and built what I think are the relevant libraries (note the versions):

- kanvas-core-0.2.4.jar
- kolasu-core-1.3.11.jar
- rsyntaxtextarea-3.1.3.jar

Advice welcome. Thanks.

**EDIT** : I resolved that error, possibly incorrectly, by using the type parameter `Node`:

```auto
object langSupport : BaseLanguageSupport<Node>() {

```

The next error is:

> Object ‘langSupport’ is not abstract and does not implement abstract base class member public abstract val parser: Parser defined in me.tomassetti.kanvas.BaseLanguageSupport

Note that with the following in Java:

```auto
class MyLanguageSupport extends BaseLanguageSupport<Node> {	
}

```

I see a slightly different `Parser` related error:

> The type com.strumenta.kolasu.parsing.Parser cannot be resolved. It is indirectly referenced from required .class files

Am I simply missing a jar file or import? I built the .jar files above via Gradle.

A minimal complete example including imports and dependencies would be useful here.

Apologies for what feels like a newbie error. I am only just beginning to work with Kotlin and gradle, and tend to work with Java and Ant mostly.

David
