Wolfram Workbench 2.0 中的影子消息
我正在为 WB 2.0 的包编写文档。 很多时候,当我使用文档工具选项板创建链接或插入单元格时,我会收到以下消息:
GlobalStyleNames::shdw: Symbol StyleNames comes in multiple context {Global
,System}; Global 上下文中的定义可能会遮盖其他定义或被其他定义遮盖。 >>>
即使在我启动 Workbench - Mathematica 的新会话后,也会出现此消息。
除了这一点之外,其他一切似乎都运行良好。文档页面看起来不错,尽管我还没有进行“构建”。例如,链接按预期工作。
您能解释一下为什么我收到此消息以及如何解决它吗? 我应该预料到构建阶段会出现问题吗?
我可以给出的唯一“提示”(可能不相关)是,第一次创建符号页面(自动从使用消息中),WB 以某种方式“困惑”,并包含了我从下载的数值示例包的页面。 Wolfram 工作台网站。我删除了这些符号页面,并消除了与此数字包相关的任何链接/连接/扩展,从那时起,除了上述消息之外,一切似乎都正常。
我只是对这个问题做了进一步的实验,这正是发生的情况:
- 启动 WB 2.0
- 在包资源管理器中,双击 .nb 文件,以便 MMA 作为默认编辑器自动启动(我在 CardDeck 示例中使用 CardDeck.nb 文件在 Workbench 站点上找到的软件包)
- 在 MMA 中时,打开 DocumentationTools 选项板
- 单击示例教程页面按钮(或大多数其他与此相关的按钮)
Bang!我收到消息: GlobalStyleNames::shdw:Symbol StyleNames 出现在多个上下文中 {Global
,System}; Global 上下文中的定义可能会遮盖其他定义或被其他定义遮盖。 >>>
在消息窗口中。 所以看来这个问题与我的包文件无关,但以某种方式链接到 DocumentationTools 选项板。 还有其他人有这个问题吗? 这是一个损坏的安装吗?
感谢您的帮助
I am writing documentation for a package with WB 2.0.
Very often, when I create links or insert cells using the documentation tools palette, I get the following message:
GlobalStyleNames::shdw: Symbol StyleNames appears in multiple contexts {Global
,System}; definitions in context Global
may shadow or be shadowed by other definitions. >>
This message appears even after I start a new session of Workbench - Mathematica.
Except for this, everything else seems to work fine. The documentation pages seem ok, although I have not yet made a "Build". Links, for ex, work as expected.
Can you explain why I get this message and how to fix it?
Should I expect problems at the Build stage?
The only "hint" I can give (maybe irrelevant) is that the first time I created the symbol pages (automatically from the usage messages), WB got "confused" somehow and included the pages for the Numerical sample package which I downloaded from the Wolfram Workbench web site. I erased these symbol pages and eliminated any link/connection/extension relating to this Numerical package and since then everything seems ok, except for the above message.
I just experimented a little further with this problem and this is exactly what happens:
- Start WB 2.0
- In package explorer, doubleclick on a .nb file so that MMA is automatically started as default editor (I use the CardDeck.nb file in the CardDeck sample package found on Workbench site)
- When in MMA, open the DocumentationTools palette
- Click on the sample tutorial page button (or most other buttons for that matter)
Bang! I get the message:
GlobalStyleNames::shdw: Symbol StyleNames appears in multiple contexts {Global
,System}; definitions in context Global
may shadow or be shadowed by other definitions. >>
in the message window.
So it seems that this problem is not related specifically to my package files, but is somehow linked to the DocumentationTools palette.
Does anybody else have this problem?
Is it a corrupted installation?
Thank you for any help
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
您可以尝试通过“属性”、“笔记本属性”关闭特定笔记本的自动源加载。
You could try switching off the automatic source loading for specific notebooks via Properties, Notebook Properties.