Beaker: Custom Webterm commands no longer work

Created on 12 Jul 2020  路  5Comments  路  Source: beakerbrowser/beaker

Describe the Bug

After upgrading to Release 6 my own custom Webterm command "Blogpost" no longer works at all.

The Webterm returns the error message: "TypeError: Cannot read property '0' of null".
I'm pretty sure this output is not coming from my own code.

To Reproduce

Install the custom blogpost command.

86fcde..67> help blogpost
blogpost   Creates a new post in /MicroBlog package: hyper://cda265..fb

Usage: blogpost [-f] [{filename}] [-p] [-g] [-v] [{content}]
    --filename, -f        The blog post file name (default: "")
    --reply, -r           Add the hyperdrive url of the post you would like to reply to (default: "")
    --profile, -p         Asks for the profile of user to post for (default: false)
    --goto, -g            This option will open the new file in the editor (default: false)
    --verbose, -v         Prints out more debug information (default: false)
86fcde..67> blogpost -v "test"
TypeError: Cannot read property '0' of null
86fcde..67>

Expected Behavior

Screenshots

Environment
1.0.0-prerelease.6

Electron: 10.0.0-beta.2
Chromium: 84.0.4129.0
Node: 12.16.3
Hyperdrive: 10.13.0
API: 0
Daemon: 1.14.3
Client: 1.16.0
Schema: 1.11.0
Fuse Native:
Fuse:

Additional Context

Annotation 2020-07-12 162318

I will try reinstalling the custom command.

bug

All 5 comments

@johanbove can you share the code for the webterm command?

Found the issue in this code: `drive = this.env.get('@').match(hyperRegExp)[0]
My code was relying on this: https://docs.beakerbrowser.com/advanced/webterm#environment-variables

Yeah, a victim of the loss of an "attached pane" concept. I'm going to fix those regressions by introducing controls and APIs to attach panes to each other, which webterm will then use to bring back the lost mechanisms like the @ env var.

Fixed in master

Was this page helpful?
0 / 5 - 0 ratings

Related issues

ShalokShalom picture ShalokShalom  路  4Comments

pmario picture pmario  路  4Comments

pmario picture pmario  路  3Comments

aaronshaf picture aaronshaf  路  3Comments

monteslu picture monteslu  路  3Comments