Skip to content

No runnable code produced / missing unsupported syntax information #274

@dragmz

Description

@dragmz

I've got a project initialized with:

algokit init --template tealscript

boxes.algo.ts:

import { Contract } from '@algorandfoundation/tealscript';

// eslint-disable-next-line no-unused-vars
class TestContract extends Contract {
  items = BoxMap<bytes, bytes>();

  notOkay(): void {
    const item = this.items('test');
    if (!item.exists) {
      item.create(128);
    }
  }

  allOkay(): void {
    if (!this.items('test').exists) {
      this.items('test').create(128);
    }
  }
}
> tealscript boxes.algo.ts

The code produced for notOkay is (all commented out):

// /*
// notOkay(): void {
// const item = this.items('test');
// if (!item.exists) {
// item.create(128);
// }
// }

I'm guessing the syntax isn't supported but there's no information about it in the IDE (VS Code) / the tealscript cmd.

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    Status

    TODO

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions