windows

New to Go on Windows

Question: 

I'm new to Go. I've installed ActiveGo. How do I get started?

Answer: 

Start here:
http://docs.activestate.com/activego/1.8/doc/code.html
The introduction will explain how your workspace is arranged. In case you missed it, your $GOPATH has already been set by the ActiveGo installer.

If you don't use Git already, you should install it and learn how to use it. Git is an essential supporting tool for coding in Go.

There's a simple HelloWorld program in the Go introduction.

ActiveGo sets up local documentation on your system as a document server. On the local ActiveGo documentation start page, there is an interactive Sandbox window labelled "Try Go". You will see the source code before it compiles. When you click "Run" the code compiles and displays the result in the box below the source code. There's a pull-down with a small set of sample Go snippets.

Multiple versions of Go

Question: 

Can I have ActiveGo and another distribution of Go installed together?

Answer: 

The ActiveGo-beta will set GOROOT, GOPATH, and PATH variables. The Golang distribution will also set GOROOT and PATH.

-ActiveGo will always be the default version of Go if both are on the system due to the ways both Go versions set up PATH. Neither ActiveGo nor Golang Go will remove the other distribution from PATH.

-Any value in GOROOT will be overwritten by both versions of Go when they install. The last version to install will be set up as the root. If you remove a version of Go, you will need to re-install/repair the other one to ensure that GOROOT is correct before you start using it.

-GOPATH is your personal workspace. Your workspace should be usable with either version of Go.

Komodo IDE and Right-to-Left (RTL) Languages

Question: 

Will Komodo work with Farsi, Hebrew or some Asian languages that are read right to left?

Answer: 

Komodo unfortunately does not work with right-to-left languages, as mentioned in our Komodo IDE release notes, due to a limitation in the text editor component.

Node.js debugging just stopped in Komodo when it was working 5 minutes ago!

Question: 

Why won't my Node.js debugging work in Komodo any more?

Answer: 

Node.js was original designed with Posix systems in mind. It uses network calls not available on Windows systems. There was a port done in the open community which is not quite complete so sometimes processes are left running. The debugger thinks it has shut them down but it hasn't.

If you're node.js (or javascript) debugging stops working properly on your Windows machine your problem is most likely that some Node servers have been left behind. This will occur if you prematurely kill the debugger session.

Open your Task Manager and kill any node.js processes still running.

- Carey

Install error - "ActivePerl is not supported by my processor type"

Question: 

When I try to install ActivePerl on Windows, it says it is not supported by my processor type. My system meets the ActiveState requirements. Why is it not recognized?

Answer: 

This message isn't an ActiveState error message. It comes from within the Microsoft Installation tool, and it's rather misleading. The processor isn't in fact the problem.

What the message really indicates is that you are attempting to install a 64-bit binary on a 32-bit version of Windows. This won't work. A 64-bit processor will run either 32-bit or 64-bit Windows, but MSI installers for 64-bit software will only install on 64-bit Windows.

Most users solve this by using the 32-bit x86 ActivePerl installer with a 32-bit Windows, however in cases where a full 64-bit x86_64 ActivePerl is necessary there is no alternative except to first upgrade to a 64-bit version of Windows.

Dealing with Side by Side problems on Windows

Question: 

After a Windows update, Komodo no longer works, and the log files are untouched. I'm seeing three messages in the event viewer complaining about missing assemblies. What can I do?

Answer: 

These are the event messages the question refers to:

  • 1st: Dependent Assembly Microsoft.VC80.CRT could not be found and Last Error was The referenced assembly is not installed on your system.
  • 2nd: Resolve Partial Assembly failed for Microsoft.VC80.CRT. Reference error message: The referenced assembly is not installed on your system.
  • 3rd: Generate Activation Context failed for C:\Program Files\ActiveState Komodo Edit 5\lib\mozilla\komodo.exe. Reference error message: The operation completed successfully.

This is one of those problems that a small number of Komodo users have
reported in the last month, but we haven't been able to duplicate. A bit
of research found forums suggesting people delete directories in the
Windows/SxS area, but that sounded risky. One of our customers found
more success by downloading and installing the free-as-in-beer
Visual Basic Studio 8 Express Edition.

Until anyone finds a problem with that, it sounds good. In the meantime
I'm reading up on the problem and brushing up on MSI Merge Modules.

- Eric

How to prevent freeze-ups on dual-core Windows machines

Question: 

I run Komodo on a dual-core Windows machine. Occasionally after running a Perl program, either inside the debugger or outside, Komodo will freeze up. This seems to happen whether the CPU is Athlon or Pentium, it doesn't seem to matter.

Answer: 

The key is to open the task manager, select the komodo.exe process, right-click
it using the "set affinity" function.

Remove the checkmark from all but one CPU and komodo will work fine.

Thanks to community contributor JTa for working this out.

You can track this bug at
http://bugs.activestate.com/show_bug.cgi?id=53927

Perl IO redirection problems on Windows

Question: 

On Unix I can run commands like "foo.pl | bar.pl" and have the output of foo.pl be the input of bar.pl. This doesn't seem to work on Windows. How can I make this work?

Answer: 

The Windows command interpreter cmd.exe does not support IO redirection for programs started via shell associations, like those created for .pl files during the ActivePerl installation. It only works for .bat, .com, .cmd, and .exe files.

You need to write:

perl foo.pl | perl bar.pl

Or if the files are not in your current directory but are on the PATH:

perl -S foo.pl | perl -S bar.pl

Alternatively, you can wrap your .pl files into .bat scripts using pl2bat:

pl2bat foo.pl
pl2bat bar.pl

Then run them as:

a | b

This is also the case for > and <.

What is the best version of ActivePerl to use with Windows 7?

Question: 

What is the best version of ActivePerl to use with Windows 7?

Answer: 

The best version of ActivePerl to use on Windows 7 is always the most recent build of ActivePerl.

ActivePerl passes the same suite of tests on Windows 7 as they do on Windows XP or Vista and other supported versions of Windows.

ActivePerl's known issues on Windows Vista include:

  • PerlIS and PerlEx are installed but not automatically configured due to differences in the script extension mapping process for IIS
  • the OLE browser will not function with Internet Explorer 7

If you run into other issues, please report them at:

http://bugs.activestate.com

What version of Komodo should I use with Windows Vista?

Question: 

What version of Komodo should I use with Windows Vista?

Answer: 

Komodo 3.5 and earlier will not work with Vista. You will need to run Komodo 4.1.1 or later.

Should you run into any issues, please file a bug report at:

http://bugs.activestate.com/