Skip to content
This repository was archived by the owner on Oct 4, 2023. It is now read-only.
This repository was archived by the owner on Oct 4, 2023. It is now read-only.

Does not work on Windows #20

@kvnloughead

Description

@kvnloughead

I am using WSL, but it seems like this issue is more general for Windows. Installation works, and the first run of locus appears to work fine as well. However, after exiting, all subsequent calls to locus produce something like this

File : /home/kloughead/projects/API_demo/app.js @ line: 12

     6: const request = require('request');
     7: require('locus');
     8: 
     9: 
    10: request('https://jsonplaceholder.typicode.com/users/1', function(error, response, body) {
    11:     if (!error && response.statusCode == 200) {
 => 12:         eval(locus)
    13:         var parsedData = JSON.parse(body);
    14:         console.log(parsedData);
    15:     }

internal/fs/streams.js:59
    throw new ERR_OUT_OF_RANGE(name, '>= 0 and <= 2 ** 53 - 1', pos);
    ^

RangeError [ERR_OUT_OF_RANGE]: The value of "start" is out of range. It must be >= 0 and <= 2 ** 53 - 1. Received -25580
    at checkPosition (internal/fs/streams.js:59:11)
    at new ReadStream (internal/fs/streams.js:115:5)
    at Object.createReadStream (fs.js:1835:10)
    at onLoad (/home/kloughead/projects/API_demo/node_modules/readline-history/readline-history.js:55:25)
    at ReadStream.onend (/home/kloughead/projects/API_demo/node_modules/readline-history/readline-history.js:48:21)
    at ReadStream.emit (events.js:333:22)
    at endReadableNT (_stream_readable.js:1201:12)
    at processTicksAndRejections (internal/process/task_queues.js:84:21)
    at process.runNextTicks [as _tickCallback] (internal/process/task_queues.js:66:3)
    at Function.module.exports.loopWhile (/home/kloughead/projects/API_demo/node_modules/deasync/index.js:70:11) {
  code: 'ERR_OUT_OF_RANGE'
}

I am taking a course on Udemy and there are others having similar issues. We were told by the teaching assistant to try installing version 2.0.0, but that fails also. Installation works, all calls stop just for the interactive portion. That is, you see something like this:

     6: const request = require('request');
     7: require('locus');
     8: 
     9: 
    10: request('https://jsonplaceholder.typicode.com/users/1', function(error, response, body) {
    11:     if (!error && response.statusCode == 200) {
 => 12:         eval(locus)
    13:         var parsedData = JSON.parse(body);
    14:         console.log(parsedData);
    15:     }

$

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions