Monodevelop 中的 F#:打开 .fsx 文件时的堆栈跟踪
扩展名 .fsx 代表将被编译为可执行文件的 Fsharp 文件。
无法在 Monodevelop 中打开 .fsx 文件(来自 Ubuntu maverick 存储库)。 TargetIncationException , FileNameNotResolved
当我将文件重命名为 .fs 时(Fsharp脚本文件)然后就可以打开了。
实际上,我有三个问题:
- 为什么我会得到这个堆栈跟踪?我刚刚导入/添加了该文件,它确实位于解决方案文件夹中。
- 如何修复单一开发?
- 我怎样才能 将堆栈跟踪的文本放入 日志文件?
Extension .fsx stands for an Fsharp File that will be compiled to an executable.
Cannot open .fsx files in Monodevelop (from Ubuntu maverick repo).
TargetInvocationException , FileNameNotResolved
Please see screenshot on flickr
When I rename the file to .fs (Fsharp script file) then it can be opened.
Actually, I have three questions:
- Why am I getting this stack trace? I just imported/added the file and it is indeed in the solution folder.
- How to fix monodevelop?
- How can I
get the text of the stack trace into
a log file?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
旧版本的 F# 曾经发生过此错误。您是否使用 2010 年 11 月 F# 更新?
(提供更多详细信息 -
fsx
文件没有任何问题,但加载时语言服务失败。问题在于 MonoDevelop 中运行的 F# IntelliSense 服务无法找到某些引用的程序集。这是通过调用 F# 编译器来完成,F# 编译器包含错误(在 Mono 上的 IntelliSense 代码中),它尝试加载错误的文件,例如System
而不是System.dll
- 11 月2010 更新应该可以解决这个问题)。如果更新 F# 无法解决问题,您可以将重现发送到 F# 开源邮件列表: http://groups.google.com/group/fsharp-opensource?
This error used to happen with older versions of F#. Are you using November 2010 F# update?
(To give some more details - There is nothing wrong with the
fsx
file, but the language service fails when loading. The problem is that the F# IntelliSense service running in MonoDevelop cannot locate some referenced assembly. This is done by calling the F# compiler and F# compiler contained error (in IntelliSense code when on Mono) where it tries to load wrong file e.g.System
instead ofSystem.dll
- the November 2010 update should fix this).If updating F# doesn't resolve the problem, can you send a repro to the F# open source mailing list: http://groups.google.com/group/fsharp-opensource?
升级你的单声道。 Ubuntu 10.10 有一个旧版本的 Mono,似乎会导致
fsi.exe
出现很多问题。而且速度慢。至少考虑到 F#,Debian(上游)和 Ubuntu 需要尽快将 2.6.7 升级到 2.8.x 版本之一!我一直在玩这个版本 和我的程序的表现好多了。 (到目前为止,我还没有同步
cli
可执行文件和 MonoDevelop,只是运行/new/path/mono fsc.exe
或其他内容,但我快乐很多。)Upgrade your Mono. Ubuntu 10.10 has an old version of Mono that seems to cause a lot of problems with
fsi.exe
. And it is sloooow. Considering F#, at least, Debian (upstream) and Ubuntu need to upgrade 2.6.7 to one of the 2.8.x releases soon!I've been playing around with this version of Mono 2.8.2 and my programs are behaving much better. (I haven't synced up the
cli
executable and MonoDevelop yet, but just running/new/path/mono fsc.exe
or whatever, so far, but I'm a lot happier.)