簡體   English   中英

交互式中出現F#錯誤,但命令行REPL中沒有F#錯誤

[英]F# errors in Interactive but not in command line REPL

在Visual Studio F#交互式窗口中運行,但不在命令行F#REPL或Rider中運行時,這是錯誤的。

let numbers = [1..10]
let numberFilter number = number % 5 = 0 || number % 3 = 0
;;
error FS0193: internal error: Index not found. (Exception from HRESULT: 0x80131124)
  • 找不到什么索引
  • 為什么它只能在命令行REPL中工作?

答案是Visual Studio弄得一團糟。

右鍵單擊並在F#窗口上重置可解決該問題。 仍然不知道是什么原因造成的。

暫無
暫無

聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.

 
粵ICP備18138465號  © 2020-2024 STACKOOM.COM