Smalltalk Windows 8中的Cincom VIsualWorks 7.9.1中缺少源代码

Smalltalk Windows 8中的Cincom VIsualWorks 7.9.1中缺少源代码,smalltalk,visualworks,Smalltalk,Visualworks,我正在Windows 8中运行Cincom VisualWorks 7.9.1版。当我打开类浏览器并查看库类时,它无法显示源,而是显示如下错误注释: " ***This is decompiled code.*** This may reflect a problem with the configuration of your image and its sources and changes files. Please refer to the documen

我正在Windows 8中运行Cincom VisualWorks 7.9.1版。当我打开类浏览器并查看库类时,它无法显示源,而是显示如下错误注释:

    "   ***This is decompiled code.*** 
    This may reflect a problem with the configuration of your image and its sources and changes files. 
    Please refer to the documentation and the settings tool for help in setting up the proper source 
    code files."

我已确认主路径指向正确的目录。如何修复此问题?

此问题的答案取决于您正在查看的代码。在VisualWorks中,源代码可以存储在许多不同的地方。对于干净的VisualWorks映像中没有加载其他代码的类,源代码位于安装目录的映像目录中名为visual.sou的文件中。正如您提到的,您需要确保主路径指向正确的目录。它不指向映像目录本身,而是指向上面的目录-例如,它将是C:\Program Files(x86)\Cincom\vw7.9.1,而不是C:\Program Files(x86)\Cincom\vw7.9.1\image

对于已加载的地块,源代码位于与地块关联的.pst文件中。对于从存储区加载或自己编写的任何代码,源代码都位于.cha文件中,该文件与.im文件位于同一目录下,并且具有相同的名称。如果图像是visual.im,则代码存储在visual.cha中

您需要非常小心使用的文件版本。visual.im文件与visual.sou文件紧密耦合,并包含到.sou文件中的偏移量。如果您使用的是另一版本VisualWorks中的visual.im,则.sou文件中的偏移量可能不正确,可能会产生此问题

我希望这有帮助