Error processing request

Parameters

CONTENT_LENGTH0
REQUEST_METHODGET
REQUEST_URI/revision/TCLLIBPATH?V=21
QUERY_STRINGV=21
CONTENT_TYPE
DOCUMENT_URI/revision/TCLLIBPATH
DOCUMENT_ROOT/var/www/nikit/nikit/nginx/../docroot
SCGI1
SERVER_PROTOCOLHTTP/1.1
HTTPSon
REMOTE_ADDR172.70.135.161
REMOTE_PORT43796
SERVER_PORT4443
SERVER_NAMEwiki.tcl-lang.org
HTTP_HOSTwiki.tcl-lang.org
HTTP_CONNECTIONKeep-Alive
HTTP_ACCEPT_ENCODINGgzip
HTTP_CF_IPCOUNTRYUS
HTTP_X_FORWARDED_FOR34.231.247.88
HTTP_CF_RAY70e30f021f2d9c6a-IAD
HTTP_X_FORWARDED_PROTOhttps
HTTP_CF_VISITOR{"scheme":"https"}
HTTP_USER_AGENTCCBot/2.0 (https://commoncrawl.org/faq/)
HTTP_ACCEPTtext/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8
HTTP_ACCEPT_LANGUAGEen-US,en;q=0.5
HTTP_CF_CONNECTING_IP34.231.247.88
HTTP_CDN_LOOPcloudflare

Body


Error

Unknow state transition: LINE -> END

-code

1

-level

0

-errorstack

INNER {returnImm {Unknow state transition: LINE -> END} {}} CALL {my render_wikit TCLLIBPATH {Purpose: to document the use of another of the [magic names]
in Tcl. More formally, TCLLIBPATH is an ''environment'' variable; inside Tcl you can retrieve it with $::env(TCLLIBPATH).

**What is its purpose?**

To provide user specified locations to add to the package search path.

**What is the relationship between TCLLIBPATH and Tcl's ::[auto_path] variable?**

**What is its format?**

A tcl [list] of directory paths (unix-style paths for Win32 users). e.g: 
======
set TCLLIBPATH [list /opt/tcl/site-lib /users/pat/working]
======

**What are some good reasons to set it?**

   * site specific packages

[PT] 20-Jul-2004: 
I like to keep all my local packages separate from the ActiveTcl installation that I use as a 
base. So I install all additional packages to a ''site-lib'' directory and then set TCLLIBPATH
to this directory path. With this in place a [[package require XYZ]] command will search ActiveTcl 
'''and''' my ''site-lib'' directory for the most recent version of XYZ.

   * test a package without installing. 


**Questions relating to TCLLIBPATH**

***Why don't I see TCLLIBPATH set in my program?***

[D. McC] 08-Nov-2004:
Well ... what about this?

 [[email protected] david]% puts $::env(HOME)

/home/david

 [[email protected] david]% puts $::env(TCLLIBPATH)

can't read "::env(TCLLIBPATH)": no such variable

This happens on my Mandrake linux 10.0 system, running Tcl 8.4 from the tcl-8.4.5-3mdk RPM package. Why no TCLLIBPATH, I wonder?

[RS]: Because nobody has set it? :-) Normally it's best to use as few env variables as possible - it should only be used to override some default behavior, which for finding libs is: 
 [file dir [info nameofexe]]/../lib
and similar variations.

[LV] David, environmental variables are ones that someone external to Tcl set.
In many cases, they are set by a user.  In a few cases, a shell command or some other
utility (such as [Modules] for instance), may set the environment variables.
So many times, one won't find them set.  This is different than ''magic names'' like
the $argc variable, etc.

*** What specific path goes into the TCLLIBPATH? ***

[LV] 2009-Jun-29

I download a package onto my machine. The package has a README, a demo directory, a lib directory, etc. Within the lib directory I see 3 sub-directories, and within the sub-directories are the [pkgIndex.tcl] file, etc. 

So the basic layout is:
===
Installation directory/
 README.txt
 demos/
 lib/
  package1/
    pkgIndex.tcl 
  package2/
    pkgIndex.tcl
  package3/
    pkgIndex.tcl
 src/
 tests/
======

So, what path(s) go into TCLLIBPATH? the path to the lib/ , or each of the individual packages?

Thanks!

[PT]: the lib directory.
----

See also [TCL_LIBRARY], [auto_path].

----
!!!!!!
%| [Category Tutorial] | [Category Internals] |%
!!!!!!} regexp2} CALL {my render TCLLIBPATH {Purpose: to document the use of another of the [magic names]
in Tcl. More formally, TCLLIBPATH is an ''environment'' variable; inside Tcl you can retrieve it with $::env(TCLLIBPATH).

**What is its purpose?**

To provide user specified locations to add to the package search path.

**What is the relationship between TCLLIBPATH and Tcl's ::[auto_path] variable?**

**What is its format?**

A tcl [list] of directory paths (unix-style paths for Win32 users). e.g: 
======
set TCLLIBPATH [list /opt/tcl/site-lib /users/pat/working]
======

**What are some good reasons to set it?**

   * site specific packages

[PT] 20-Jul-2004: 
I like to keep all my local packages separate from the ActiveTcl installation that I use as a 
base. So I install all additional packages to a ''site-lib'' directory and then set TCLLIBPATH
to this directory path. With this in place a [[package require XYZ]] command will search ActiveTcl 
'''and''' my ''site-lib'' directory for the most recent version of XYZ.

   * test a package without installing. 


**Questions relating to TCLLIBPATH**

***Why don't I see TCLLIBPATH set in my program?***

[D. McC] 08-Nov-2004:
Well ... what about this?

 [[email protected] david]% puts $::env(HOME)

/home/david

 [[email protected] david]% puts $::env(TCLLIBPATH)

can't read "::env(TCLLIBPATH)": no such variable

This happens on my Mandrake linux 10.0 system, running Tcl 8.4 from the tcl-8.4.5-3mdk RPM package. Why no TCLLIBPATH, I wonder?

[RS]: Because nobody has set it? :-) Normally it's best to use as few env variables as possible - it should only be used to override some default behavior, which for finding libs is: 
 [file dir [info nameofexe]]/../lib
and similar variations.

[LV] David, environmental variables are ones that someone external to Tcl set.
In many cases, they are set by a user.  In a few cases, a shell command or some other
utility (such as [Modules] for instance), may set the environment variables.
So many times, one won't find them set.  This is different than ''magic names'' like
the $argc variable, etc.

*** What specific path goes into the TCLLIBPATH? ***

[LV] 2009-Jun-29

I download a package onto my machine. The package has a README, a demo directory, a lib directory, etc. Within the lib directory I see 3 sub-directories, and within the sub-directories are the [pkgIndex.tcl] file, etc. 

So the basic layout is:
===
Installation directory/
 README.txt
 demos/
 lib/
  package1/
    pkgIndex.tcl 
  package2/
    pkgIndex.tcl
  package3/
    pkgIndex.tcl
 src/
 tests/
======

So, what path(s) go into TCLLIBPATH? the path to the lib/ , or each of the individual packages?

Thanks!

[PT]: the lib directory.
----

See also [TCL_LIBRARY], [auto_path].

----
!!!!!!
%| [Category Tutorial] | [Category Internals] |%
!!!!!!}} CALL {my revision TCLLIBPATH} CALL {::oo::Obj2704442 process revision/TCLLIBPATH} CALL {::oo::Obj2704440 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 51)
    invoked from within
"$server process [string trim $uri /]"

-errorline

4