emacs-fsharp-mode icon indicating copy to clipboard operation
emacs-fsharp-mode copied to clipboard

fsharp-mode cannot displays type signatures and tooltips for input fsx files

Open JackismyShephard opened this issue 7 years ago • 6 comments

Description

fsharp-mode cannot displays type signatures and tooltips for input fsx files. also fsharp interactive and run through sfsharp seems to not work. it is possibly connected

Repro steps

Please provide the steps required to reproduce the problem

  1. open an .fsx file in emacs causing to it go into f sharp mode

  2. highlight symbol in code

Expected behavior

fsharp mode should display type signature in the minibuffer

Actual behavior

instead the minibuffer displays File 'c:\path\file' not parsed

Known workarounds

none

Related information

  • Operating system windows 7

  • Branch

  • Emacs version 25.3

  • .NET Runtime, CoreCLR or Mono Version mono version 5.10.0.140

  • Performance information, links to performance testing scripts

debug.txt

JackismyShephard avatar Mar 23 '18 12:03 JackismyShephard

.NET Runtime, CoreCLR or Mono Version mono version 5.10.0.140

You use Mono on Windows ?

13:35:04.606002: {"Kind":"error","Data":{"Code":1,"Message":"Unexpected internal error. Please report at https://git ...

Would you mind setting

(setq fsharp-ac-debug 20)

to prevent truncation in the debug-log?

juergenhoetzel avatar Mar 30 '18 19:03 juergenhoetzel

i did as jurgenhoetzel suggested and uploaded the new debug log

JackismyShephard avatar Apr 02 '18 15:04 JackismyShephard

i did as jurgenhoetzel suggested and uploaded the new debug log

Thanks, but the debug log doesn't seem to be complete. It should start with

.... (fsharp-ac/load-project):  project "PATH_TO_YOUR_FSPROJ" verbose

Maybe you forget to set the debug level before opening the F# file?

juergenhoetzel avatar Apr 03 '18 18:04 juergenhoetzel

I didnt forget. I dont get that message you referenced. Also, i dont load projects. I load just a single fsx file. i will attach my emacs file as a txt. init - Copy.txt

JackismyShephard avatar Apr 03 '18 20:04 JackismyShephard

. Also, i dont load projects. I load just a single fsx file.

Sorry, I may have missed this. We need to investigate the:

{"Kind":"error","Data":{"Code":1,"Message":"Unexpected internal error. Please report at https://github.com/fsharp/FsAutoComplete/issues, attaching the exception information:\nSystem.ArgumentException: The input sequence was empty.\r\nParameter name: source\r\n   at Microsoft.FSharp.Collections.SeqModule.Head[T](IEnumerable`1 source)\r\n   at FsAutoComplete.FSharpCompilerServiceChecker.ensureCorrectVersions(String[] options)\r\n   at <StartupCode$FsAutoComplete-Core>.$CompilerServiceInterface.GetProjectOptionsFromScript@263-1.Invoke(Tuple`2 _arg1)\r\n   at [email protected](a a)","AdditionalData":{}}}

Root cause:

The input sequence was empty.
Parameter name: source

juergenhoetzel avatar Apr 04 '18 03:04 juergenhoetzel

atjuergenhoetzel

sorry ive been so late to reply.

so what exactly is the solution to my problem?

JackismyShephard avatar Apr 23 '18 09:04 JackismyShephard