Error processing request

Parameters

CONTENT_LENGTH0
REQUEST_METHODGET
REQUEST_URI/revision/Example+of+a+Tcl+extension+in+Terra?V=7
QUERY_STRINGV=7
CONTENT_TYPE
DOCUMENT_URI/revision/Example+of+a+Tcl+extension+in+Terra
DOCUMENT_ROOT/var/www/nikit/nikit/nginx/../docroot
SCGI1
SERVER_PROTOCOLHTTP/1.1
HTTPSon
REMOTE_ADDR172.69.59.9
REMOTE_PORT63486
SERVER_PORT4443
SERVER_NAMEwiki.tcl-lang.org
HTTP_HOSTwiki.tcl-lang.org
HTTP_CONNECTIONKeep-Alive
HTTP_ACCEPT_ENCODINGgzip, br
HTTP_X_FORWARDED_FOR3.142.40.43
HTTP_CF_RAY87fe2de0debd123d-ORD
HTTP_X_FORWARDED_PROTOhttps
HTTP_CF_VISITOR{"scheme":"https"}
HTTP_ACCEPT*/*
HTTP_USER_AGENTMozilla/5.0 AppleWebKit/537.36 (KHTML, like Gecko; compatible; ClaudeBot/1.0; [email protected])
HTTP_CF_CONNECTING_IP3.142.40.43
HTTP_CDN_LOOPcloudflare
HTTP_CF_IPCOUNTRYUS

Body


Error

Unknow state transition: LINE -> END

-code

1

-level

0

-errorstack

INNER {returnImm {Unknow state transition: LINE -> END} {}} CALL {my render_wikit {Example of a Tcl extension in Terra} \[dbohdan\]\ 2016-09-21:\ This\ is\ a\ simple\ \[extension%|%Tcl\ extension\]\ written\ in\ http://terralang.org%|%Terra%|%,\ a\ new\ statically\ typed\ language\ related\ to\ and\ meta-programmed\ with\ \[Lua\].\ It\ is\ impressively\ easy\ to\ interface\ with\ C\ libraries.\n\nThis\ code\ has\ been\ tested\ with\ Terra\ release-2016-03-25\ (`terra-Linux-x86_64-332a506`).\ Compile\ and\ test\ using\ the\ command\n======none\nterra\ tclterraexample.t\ \\\n&&\ gcc\ -fPIC\ tclterraexample.o\ -shared\ -o\ tclterraexample.so\ \\\n&&\ echo\ 'load\ tclterraexample.so\;\ puts\ \[hello\]\;\ puts\ \[square\ 5\]'\ |\ tclsh\n======\n\n**\ tclterraexample.t\ **\n\nlocal\ tcl\ =\ terralib.includec(\"tcl.h\")\n\nterra\ Hello_Cmd(cdata:\ tcl.ClientData,\ interp:\ &tcl.Tcl_Interp,\ objc:\ int,\n\ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ objv:\ &&tcl.Tcl_Obj):\ int\n\ \ if\ objc\ ~=\ 1\ then\n\ \ \ \ tcl.Tcl_WrongNumArgs(interp,\ 1,\ objv,\ nil)\n\ \ \ \ return\ tcl.TCL_ERROR\n\ \ end\n\ \ tcl.Tcl_SetObjResult(interp,\ tcl.Tcl_NewStringObj(\"Hello,\ World!\",\ -1))\n\ \ return\ tcl.TCL_OK\nend\n\nterra\ Square_Cmd(cdata:\ tcl.ClientData,\ interp:\ &tcl.Tcl_Interp,\ objc:\ int,\n\ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ objv:\ &&tcl.Tcl_Obj):\ int\n\ \ if\ objc\ ~=\ 2\ then\n\ \ \ \ tcl.Tcl_WrongNumArgs(interp,\ 1,\ objv,\ \"value\")\n\ \ \ \ return\ tcl.TCL_ERROR\n\ \ end\n\ \ var\ i:\ int\ =\ 0\n\ \ if\ tcl.Tcl_GetIntFromObj(interp,\ objv\[1\],\ &i)\ ~=\ tcl.TCL_OK\ then\n\ \ \ \ return\ tcl.TCL_ERROR\n\ \ end\n\ \ tcl.Tcl_SetObjResult(interp,\ tcl.Tcl_NewIntObj(i*i))\ \n\ \ return\ tcl.TCL_OK\nend\n\nterra\ Tclterraexample_Init(interp:\ &tcl.Tcl_Interp):\ int\n\ \ tcl.Tcl_CreateObjCommand(interp,\ \"::hello\",\ Hello_Cmd,\ nil,\ nil)\n\ \ tcl.Tcl_CreateObjCommand(interp,\ \"::square\",\ Square_Cmd,\ nil,\ nil)\n\ \ return\ tcl.TCL_OK\nend\n\nterralib.saveobj(\"tclterraexample.o\",\ \{\n\ \ Tclterraexample_Init\ =\ Tclterraexample_Init\n\})\n\n======\n\n<<categories>>\ Foreign\ Interfaces\ |\ Example regexp2} CALL {my render {Example of a Tcl extension in Terra} \[dbohdan\]\ 2016-09-21:\ This\ is\ a\ simple\ \[extension%|%Tcl\ extension\]\ written\ in\ http://terralang.org%|%Terra%|%,\ a\ new\ statically\ typed\ language\ related\ to\ and\ meta-programmed\ with\ \[Lua\].\ It\ is\ impressively\ easy\ to\ interface\ with\ C\ libraries.\n\nThis\ code\ has\ been\ tested\ with\ Terra\ release-2016-03-25\ (`terra-Linux-x86_64-332a506`).\ Compile\ and\ test\ using\ the\ command\n======none\nterra\ tclterraexample.t\ \\\n&&\ gcc\ -fPIC\ tclterraexample.o\ -shared\ -o\ tclterraexample.so\ \\\n&&\ echo\ 'load\ tclterraexample.so\;\ puts\ \[hello\]\;\ puts\ \[square\ 5\]'\ |\ tclsh\n======\n\n**\ tclterraexample.t\ **\n\nlocal\ tcl\ =\ terralib.includec(\"tcl.h\")\n\nterra\ Hello_Cmd(cdata:\ tcl.ClientData,\ interp:\ &tcl.Tcl_Interp,\ objc:\ int,\n\ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ objv:\ &&tcl.Tcl_Obj):\ int\n\ \ if\ objc\ ~=\ 1\ then\n\ \ \ \ tcl.Tcl_WrongNumArgs(interp,\ 1,\ objv,\ nil)\n\ \ \ \ return\ tcl.TCL_ERROR\n\ \ end\n\ \ tcl.Tcl_SetObjResult(interp,\ tcl.Tcl_NewStringObj(\"Hello,\ World!\",\ -1))\n\ \ return\ tcl.TCL_OK\nend\n\nterra\ Square_Cmd(cdata:\ tcl.ClientData,\ interp:\ &tcl.Tcl_Interp,\ objc:\ int,\n\ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ objv:\ &&tcl.Tcl_Obj):\ int\n\ \ if\ objc\ ~=\ 2\ then\n\ \ \ \ tcl.Tcl_WrongNumArgs(interp,\ 1,\ objv,\ \"value\")\n\ \ \ \ return\ tcl.TCL_ERROR\n\ \ end\n\ \ var\ i:\ int\ =\ 0\n\ \ if\ tcl.Tcl_GetIntFromObj(interp,\ objv\[1\],\ &i)\ ~=\ tcl.TCL_OK\ then\n\ \ \ \ return\ tcl.TCL_ERROR\n\ \ end\n\ \ tcl.Tcl_SetObjResult(interp,\ tcl.Tcl_NewIntObj(i*i))\ \n\ \ return\ tcl.TCL_OK\nend\n\nterra\ Tclterraexample_Init(interp:\ &tcl.Tcl_Interp):\ int\n\ \ tcl.Tcl_CreateObjCommand(interp,\ \"::hello\",\ Hello_Cmd,\ nil,\ nil)\n\ \ tcl.Tcl_CreateObjCommand(interp,\ \"::square\",\ Square_Cmd,\ nil,\ nil)\n\ \ return\ tcl.TCL_OK\nend\n\nterralib.saveobj(\"tclterraexample.o\",\ \{\n\ \ Tclterraexample_Init\ =\ Tclterraexample_Init\n\})\n\n======\n\n<<categories>>\ Foreign\ Interfaces\ |\ Example} CALL {my revision {Example of a Tcl extension in Terra}} CALL {::oo::Obj7076843 process revision/Example+of+a+Tcl+extension+in+Terra} CALL {::oo::Obj7076841 process}

-errorcode

NONE

-errorinfo

Unknow state transition: LINE -> END
    while executing
"error $msg"
    (class "::Wiki" method "render_wikit" line 6)
    invoked from within
"my render_$default_markup $N $C $mkup_rendering_engine"
    (class "::Wiki" method "render" line 8)
    invoked from within
"my render $name $C"
    (class "::Wiki" method "revision" line 31)
    invoked from within
"my revision $page"
    (class "::Wiki" method "process" line 56)
    invoked from within
"$server process [string trim $uri /]"

-errorline

4