Skip to content

Rojo crashing while using Bat script to install packages #1210

@Sjdinsd

Description

@Sjdinsd

I made a .bat file that would call the three commands below in order:

wally install
rojo sourcemap -o sourcemap.json
wally-package-types --sourcemap sourcemap.json Packages

This installs/updates packages, updates the sourcemap, and then the wally-package-types crate will update the requires of each package to match any types in the _index module.

The issue I think here is the speed, it crashes maybe with too quick of updates. Below is the error message gotten:

[ERROR rojo] Rojo crashed!
[ERROR rojo] This is probably a Rojo bug.
[ERROR rojo] 
[ERROR rojo] Please consider filing an issue: https://github.com/rojo-rbx/rojo/issues
[ERROR rojo] 
[ERROR rojo] Details: called `Option::unwrap()` on a `None` value
[ERROR rojo] in file src\web\interface.rs on line 44
note: run with `RUST_BACKTRACE=1` environment variable to display a backtrace.

THERE WAS NO LASTING ISSUES
This bug only happens when doing such tasks in quick succession, but restarting fixes this.

Edits:
1: Updated bat file that fixes the crashing by waiting 1 second:

wally install
rojo sourcemap -o sourcemap.json
TIMEOUT /T 1 /NOBREAK
wally-package-types --sourcemap sourcemap.json Packages

2: formatting

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions