musikinformatik / Steno

Concatenative little metalanguage for live coding
GNU General Public License v2.0
65 stars 7 forks source link

using non-default server in Steno results in "ERROR: server not running" #5

Closed LFSaw closed 7 years ago

LFSaw commented 7 years ago
g = Server(\lalala, NetAddr("localhost", 57111))
g.boot;

t = Steno.new(2, server: g)

t.diff.value("a")

results in

ERROR: server not running
CALL STACK:
    Exception:reportError
        arg this = <instance of Error>
    Nil:handleError
        arg this = nil
        arg error = <instance of Error>
    Thread:handleError
        arg this = <instance of Thread>
        arg error = <instance of Error>
    Object:throw
        arg this = <instance of Error>
    < FunctionDef in Method Steno:initDiff >  (no arguments or variables)
    DiffString:prParseDiff
        arg this = <instance of DiffString>
        arg diffString = "                                | a
"
        var i = 0
        var index = 0
        var res = nil
        var lines = [*1]
    DiffString:parse
        arg this = <instance of DiffString>
        arg newTokens = [*1]
        arg oldTokens = [*0]
        var diffString = "                                | a
"
        var returnValues = nil
    Interpreter:interpretPrintCmdLine
        arg this = <instance of Interpreter>
        var res = nil
        var func = <instance of Function>
        var code = "t.diff.value("a")"
        var doc = nil
        var ideClass = <instance of Meta_ScIDE>
    Process:interpretPrintCmdLine
        arg this = <instance of Main>
^^ The preceding error dump is for ERROR: server not running
telephon commented 7 years ago

interesting. g.serverRunning returns true?

LFSaw commented 7 years ago

yes

On 8. Aug 2017, at 18:21, Julian Rohrhuber notifications@github.com wrote:

interesting. g.serverRunning returns true?

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub, or mute the thread.

telephon commented 7 years ago

and t.value("a"), same same¿

LFSaw commented 7 years ago

yes.. i already isolated it :)

On 8. Aug 2017, at 22:42, Julian Rohrhuber notifications@github.com wrote:

and t.value("a"), same same¿

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub, or mute the thread.

LFSaw commented 7 years ago

found it!