Netbeans Support for Tcl

View Ticket
Login
Ticket Hash: be337549e3594bc5dfe288547fbc96af869a1e33
Title: Tcl plugin doesn´t work on Windows, it aborts with '% % wrong # args: should be "cd ?dirName?"'
Status: Open Type: Code_Defect
Severity: Critical Priority: Immediate
Subsystem: Resolution: Open
Last Modified: 2019-08-21 05:19:37
Version Found In: 1.0
User Comments:
anonymous added on 2015-06-27 17:04:21:
*** Summary ***
On Windows 7 and 8.1, the tcl plugin 1.0 doesn´t work both with NetBeans 8.02 and NetBeans 7.4, with "ActiveTcl8.6.4.0.298892-win32-ix86-threaded.exe".

it aborts with '% % wrong # args: should be "cd ?dirName?"'.

Probably it's not my configuration fault, but a never-resolved problem to run the plugin with NetBeans on a Windows system. Any help is appreciated.

*** Situation with Windows, Setup for Windows ***
I installed "ActiveTcl8.6.4.0.298892-win32-ix86-threaded.exe" on Win7/32-bit and Win8.1/32-bit, plus NetBeans 8.02 and the Tcl plugin.

At "Options / Tcl", the tclsh path is set for Linux ”/user/bin/tclsh”.
If you try to execute a Tcl script of a Tcl project, there is a modal error window with the message “Please set correct Tclsh path using Tools → Options Tcl tab.".

The Tcl shell "Tclsh.exe" is installed on Windows at e.g "c:\ProgramFiles\tcl\bin\Tclsh.exe".

If you change this path to the location of the Tclsh.exe on Windows "c:/ProgramFiles/tcl/bin/Tclsh.exe", Netbeans may execute Tclsh.exe.

*** Critical Error ***
But Tclsh aborts with the error message, when executing the default project with the default tcl file "Start.tcl", which just contains a comment line:

++++++++++++++++++++++++++++++++++++++++
>>> c:/ProgramFiles/tcl/bin/tclsh.exe
1
% set ::tcl_interactive 1
% % wrong # args: should be "cd ?dirName?"
++++++++++++++++++++++++++++++++++++++++

On both Windows 7 & 8.1, there is no problem with Tcl/Tk, all is properly installed and runs properly.

*** For Comparison, the tcl plugin 1.0 works properly on Ubuntu 14.04, with NetBeans 8.02 ***

On Linux, Tclsh runs properly and print the messages, when executing the default project with the default tcl file "Start.tcl":

++++++++++++++++++++++++++++++++++++++++
>>> /usr/bin/tclsh
1
% set ::tcl_interactive 1
% % /usr/bin/tcls process exited with 0 status.
Output window INACTIVE.
++++++++++++++++++++++++++++++++++++++++

anonymous added on 2018-08-31 15:46:17:
Hi:

I get the same problem on Linux with netbeans 8.2, below is the output from my output window, when I try to execute a script:

>>> /usr/bin/tclsh
1
% set ::tcl_interactive 1
% % /usr/bin/tclsh process exited with 0 status.
Output window INACTIVE.

Thanks

anonymous added on 2019-08-21 05:19:37:
In windows 10 ,Netbeans 8.0.1 Tcl plugin is not working if we run the default start.tcl file we get error pop up displaying message like 
"please set correct tclsh path using Tools->options->Tcl tab".

tclshpath:/usr/bin/tclsh is set in my netbeans Tools->Options->Tcl tab

if i try to change the path it displays error pop continuosly which is not able to close and 
need to kill the netbeans application from task manager is the only way to stop ,since the pop up is not responding.