TCL Interpreter minimum version ? [message #520721] |
Sun, 14 March 2010 17:42  |
Eclipse User |
|
|
|
Hi All,
I'm pretty new with DLTK Tcl and I have an issue using Galileo (Eclipse 3.5) with dltk-tcl-S-2.0M5 and also tried with Ganymede (Eclipse 3.4) with dltk-tcl-R-0.95.1.
When I search for Tcl interpreters, there are two versions found : 8.3.15 and 8.4.19. Eclipse recognize the 8.4 version and propose as interpreter name "Tcl 8.4.19", but gives the name "tclsh.exe" for the 8.3 version. This is the one I need to use.
So when I edit this last entry, I get the message "No interpreter executables found" at the bottom of the window.
I call my friend google to help me finding any information about this, but nothing in wiki's or newsgroups.
Is there any minimal Tcl interpreter version to be used with DLTK Tcl ?
Thanks a lot
regards,
|
|
|
|
|
|
Re: TCL Interpreter minimum version ? [message #542366 is a reply to message #526817] |
Thu, 24 June 2010 11:57  |
Eclipse User |
|
|
|
Hi Alex,
Sorry, I just read your answer today (I worked with 8.4.19 since march)
So I tried your test and got the following error :
couldn't open "C:/TCL_8_3_5": permission denied
while executing
"open $fname w"
(procedure "print-pkg-info" line 130)
invoked from within
"print-pkg-info $output"
(procedure "main" line 89)
invoked from within
"main $argv"
(file "C:\dltk.tcl" line 729)
So, after investigation I found that the get-canonical-path proc does not return empty string when path parameter is empty for tcl_version less than 8.4.
I changed at line 179
} elseif {[string equal [file pathtype $path] "relative"]} {
set retVal [file join [pwd] $path]
} ;# End of if stmt
by
} elseif {[string equal [file pathtype $path] "relative"]} {
if { $path != "" } {
set retVal [file join [pwd] $path]
}
} ;# End of if stmt
because [file join [pwd] $path] returns the current path rather than nothing.
I have tested it in org.eclipse.dltk.tcl.core_2.0.0.v20091103-1812.jar and now tcl 8.3.5 is well detected through preference/Tcl/Interpreters/Search.
If it could help for old tcl versions usage ...
Thanks for your support
regards,
Martial
|
|
|
Powered by
FUDForum. Page generated in 0.11525 seconds