« first day (574 days earlier)   

12:01 AM
@Downgoat That seems to have broken it.
  unwrap = d => d[0].value, rewrap = d => [d[0]], mid = d => d[0][0], importMark = Symbol('import'); // custom errors for error prods.

ReferenceError: unwrap is not defined
    at /opt/vsl/lib/vsl/parser/parser.js:67:10
    at Object.<anonymous> (/opt/vsl/lib/vsl/parser/parser.js:454:3)
    at Module._compile (module.js:643:30)
    at Object.Module._extensions..js (module.js:654:10)
    at Module.load (module.js:556:32)
    at tryModuleLoad (module.js:499:12)
@Dennis what commands did you use to pull
@Dennis can you post all of /opt/vsl/lib/vsl/parser/parser.js
"use strict";

// Generated automatically by nearley
// github.com/Hardmath123/nearley
(function () {
  function id(x) {
    return x[0];

  "use strict";

  let t = require('./nodes').default;

  let VSLTokenizer = require('./vsltokenizer').default;

  let ParserError = require('./parserError').default;

  let lexer = new VSLTokenizer();

  const NodeTypes = require('./vsltokentype').default,
        freeze = Object.freeze,
        integer = freeze({
    test: x => x[1] === NodeTypes.Integer
@Dennis could you try now
12:09 AM
@Downgoat Pulled and synced.
4 hours later…
4:09 AM
@Dennis Please pull broccoli
Microsoft (R) Build Engine version 15.3.409.57025 for .NET Core
Copyright (C) Microsoft Corporation. All rights reserved.

Program.cs(33,74): error CS1503: Argument 1: cannot convert from 'System.Collections.Generic.IEnumerable<string>' to 'Broccoli.ValueList' [/opt/broccoli/Broccoli/Broccoli.csproj]
@Pavel ^
Oh right forgot about that
Give me 30 seconds
@Dennis Should work now
Wait nevermind
Now it should
Pulled and synced.
@Dennis And again. Because ASCII nuked argument parsing again.
2 hours later…
6 hours later…
12:02 PM
@Dennis Could you add the Data.Random for Haskell?
12:21 PM
@Pavel Done.
@flawr Do you happen to know what the package is called? data-random doesn't exist, and random is already installed.
oh sorry
@Dennis it is random-fu-
(for ghc: cabal update then cabal install random-fu-
12:36 PM
@flawr Do you need in particular or can I just install the latest version (which is afaict)?
@Dennis no just the latest
I asked because (from what I've read) Data.Random is the random generator package that currently should be used while System.Random should apparently not be used anymore.
oh, you can omit the version numbers to get the newest version, TIL!
12:54 PM
@flawr Should be installed.
@cairdcoinheringaahing Also, why is there a literal '.code.tio' in your source code? Does Add++ only work on TIO? Does it behave differently on TIO than on other computers?
@Dennis thank you!
1:09 PM
@Dennis Yeah, it uses a different directory to access old versions for some reason
2 hours later…
3:22 PM
@Dennis For some reason, the --version flag doesn't work on TIO, but does when run locally. For example this should output 0 (and does when run on both my home machines), but fails on TIO due to it's file structure
3:52 PM
@cairdcoinheringaahing What does it have to do with TIO's file structure?
I'm not quite sure. For some reason it can't access the vers folder, despite this saying i should be able to
Your interpreter assumes it's being run from the repo folder, right?
Well, that's a serious limitation, not a TIO issue. The cleanest solution would be to perform a relative import, but os.path.dirname(os. path.realpath(__file__)) to determine the directory of add++.py would also work.
I'm currently trying the other import suggestion on SO, which is to have a blank __init__.py file in the folder, rather than modifying the path, which is what it does now
4:45 PM
Yes, a relative import. Dodos does that.
Ok, I believe I have fixed it (it works locally, and no longer changes its behaviour dependant on TIO running it or not). Give me a second to commit to GitHub
@Dennis Ok, wasn't sure if they were the same thing
I'll pull when I get back home.
5 hours later…
9:28 PM
@cairdcoinheringaahing Add++'s Hello World now fails saying list index out of range.
10:10 PM
@Dennis Could you run it with the -e flag and post the full error? (I'll fix the bug in the morning, I have to go sleep)
Traceback (most recent call last):
  File "/opt/addpp/add++.py", line 1233, in <module>
    executor(code, settings.input, settings.implicit, settings.tokens)
  File "/opt/addpp/add++.py", line 986, in __init__
    value = func(*args)
  File "/opt/addpp/add++.py", line 832, in __call__
    script = StackScript(self.code, args, self.outerf, self.stack, self.line, self.gen, self.tkns)
  File "/opt/addpp/add++.py", line 172, in __init__
    if cmd[0] == '"':
IndexError: list index out of range
Hmm, that's a new one. I'll fix it ASAP, thanks!

« first day (574 days earlier)