Error processing request
Parameters
CONTENT_LENGTH | 0 |
REQUEST_METHOD | GET |
REQUEST_URI | /revision/TCLLIBPATH?V=20 |
QUERY_STRING | V=20 |
CONTENT_TYPE | |
DOCUMENT_URI | /revision/TCLLIBPATH |
DOCUMENT_ROOT | /var/www/nikit/nikit/nginx/../docroot |
SCGI | 1 |
SERVER_PROTOCOL | HTTP/1.1 |
HTTPS | on |
REMOTE_ADDR | 172.71.190.154 |
REMOTE_PORT | 51120 |
SERVER_PORT | 4443 |
SERVER_NAME | wiki.tcl-lang.org |
HTTP_HOST | wiki.tcl-lang.org |
HTTP_CONNECTION | Keep-Alive |
HTTP_ACCEPT_ENCODING | gzip, br |
HTTP_X_FORWARDED_FOR | 35.175.212.5 |
HTTP_CF_RAY | 86b7f4df5f1b883c-IAD |
HTTP_X_FORWARDED_PROTO | https |
HTTP_CF_VISITOR | {"scheme":"https"} |
HTTP_ACCEPT | */* |
HTTP_USER_AGENT | claudebot |
HTTP_CF_CONNECTING_IP | 35.175.212.5 |
HTTP_CDN_LOOP | cloudflare |
HTTP_CF_IPCOUNTRY | US |
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?
[david@localhost david]% puts $::env(HOME)
/home/david
[david@localhost 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!
----
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?
[david@localhost david]% puts $::env(HOME)
/home/david
[david@localhost 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!
----
See also [TCL_LIBRARY], [auto_path].
----
!!!!!!
%| [Category Tutorial] | [Category Internals] |%
!!!!!!}} CALL {my revision TCLLIBPATH} CALL {::oo::Obj859004 process revision/TCLLIBPATH} CALL {::oo::Obj859002 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