UPGRADE YOUR BROWSER

We have detected your current browser version is not the latest one. Xilinx.com uses the latest web technologies to bring you the best online experience possible. Please upgrade to a Xilinx.com supported browser:Chrome, Firefox, Internet Explorer 11, Safari. Thank you!

AR# 22831

8.1i ISE - Migrating an ISE 7.1i project to ISE 8.1i gives: ERROR:ProjectMgmt - TOE: ITclInterp::ExecuteCmd gave Tcl result 'couldn't compile regular expression pattern: invalid escape \ sequence'.

Description

Keywords: convert, open migrate, project, library, path, regular, expression

The following error message occurs when I try to open (and migrate) an ISE 7.1i design within Project Navigator 8.1i:

ERROR:ProjectMgmt - TOE: ITclInterp::ExecuteCmd gave Tcl result 'couldn't compile regular expression pattern: invalid escape \ sequence'.
Tcl_ErrnoId: unknown error
Tcl_ErrnoMsg: No error
_cmd: source "C:/Xilinx81/data/projnav/scripts/dpm_migrateTasks.tcl"; ::xilinx::Dpm::migrateProject {C:\project_directory\proj_name.ise}
errorInfo: couldn't compile regular expression pattern: invalid escape \ sequence
while executing
"regexp $_fileName $fullFile"
(procedure "::xilinx::Dpm::PjrKinda::AddSourceToLibrary" line 36)
invoked from within
"::xilinx::Dpm::PjrKinda::AddSourceToLibrary $libfile $libName"
(procedure "AddSources" line 22)
invoked from within
"AddSources"
(procedure "_MigrateNpl" line 75)
invoked from within
"_MigrateNpl $_HaliteNpl"
(procedure "h2i" line 7)
invoked from within
"h2i $_nplPath"
("H" arm line 2)
invoked from within
"switch -- $ver {
"F" {
::xilinx::Dpm::f2g::migrate $_nplPath
::xilinx::Dpm::g2h::migrate $_nplPath
..."
(procedure "migrateNpl" line 17)
invoked from within
"migrateNpl $sensiblePath $_projectFileToMigrate"
(procedure "::xilinx::Dpm::migrateProject" line 65)
invoked from within
"::xilinx::Dpm::migrateProject {C:\project_directory\proj_name.ise}"


Solution

The tcl migration routine which handles adding a file to a library does not deal correctly with relative paths. In particular, relative paths with backslashes on NT cause failures in a regular expression used to find the source in the project.

This problem has been fixed in the latest 8.1i Service Pack available at:
<http://www.xilinx.com/xlnx/xil_sw_updates_home.jsp>
The first service pack containing the fix is 8.1i Service Pack 2.
AR# 22831
Date Created 09/04/2007
Last Updated 03/26/2008
Status Archive
Type General Article