Skip to content
This repository was archived by the owner on Dec 29, 2022. It is now read-only.
This repository was archived by the owner on Dec 29, 2022. It is now read-only.

Consistent crash under VSCode, multiplatform #372

@NoraCodes

Description

@NoraCodes

I have been getting an RLS crash consistently, after entering between five and ten keystrokes, with either the message:

thread '<unnamed>' panicked at 'called Result::unwrap()on anErrvalue: InternalError("Out of bounds access inbyte_in_str")', /checkout/src/libcore/result.rs:860

or a message like:

Missing change, aborting. Found 126, expected Some(132) [Error - 8:14:01 PM] Connection to server got closed. Server will not be restarted.

The numbers change, but aside from that everything is consistent.

My code is:

#[macro_use] extern crate diesel_codegen;
#[macro_use] extern crate diesel;
extern crate dotenv;

pub mod schema;
pub mod models;

use diesel::prelude::*;
use diesel::pg::PgConnection;
use dotenv::dotenv;
use std::env;

pub fn establish_connection() -> PgConnection {
    dotenv().ok();

    let database_url = env::ver("DATABASE_URL")
        .expect("DATABASE_URL must be set");

    PgConnection::establish(&data)
}

Version info:

20:15:40: leo [~/Projects/vvs/vvs-server]
$ cargo -V
cargo 0.19.0 (28d1d60d4 2017-05-16)

20:15:43: leo [~/Projects/vvs/vvs-server]
$ rustc -V
rustc 1.18.0 (03fc9d622 2017-06-06)

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions