fsharp / emacs-fsharp-mode

F# Emacs mode
Apache License 2.0
208 stars 62 forks source link

Integration Tests are failing #216

Open MiyamotoAkira opened 5 years ago

MiyamotoAkira commented 5 years ago

Description

all the integration tests fail

Repro steps

  1. Download repo

  2. make integration-test

Expected behavior

Tests pass

Actual behavior

Tests fail with:

Test check-completion condition:
    (search-failed "X.func")

Part of the backtrace:

search-forward("X.func")
  apply(search-forward "X.func")
  (setq value-16 (apply fn-14 args-15))

Message provided:

No completion found

The following error/messages are being provided (could be a red herring):

Company backend ’company-bbdb’ could not be initialized:
Cannot open load file: No such file or directory, company-bbdb
Company backend ’company-eclim’ could not be initialized:
Symbol’s function definition is void: company-eclim
Company backend ’company-semantic’ could not be initialized:
Cannot open load file: No such file or directory, company-semantic
Company backend ’company-clang’ could not be initialized:
Symbol’s function definition is void: company-clang
Company backend ’company-xcode’ could not be initialized:
Cannot open load file: No such file or directory, company-xcode
Company backend ’company-cmake’ could not be initialized:
Symbol’s function definition is void: company-cmake
Company backend ’company-capf’ could not be initialized:
Symbol’s function definition is void: company-capf
Company backend ’company-files’ could not be initialized:
Cannot open load file: No such file or directory, company-files
Company backend ’company-dabbrev-code’ could not be initialized:
Cannot open load file: No such file or directory, company-dabbrev-code
Company backend ’company-gtags’ could not be initialized:
Cannot open load file: No such file or directory, company-gtags
Company backend ’company-etags’ could not be initialized:
Cannot open load file: No such file or directory, company-etags
Company backend ’company-keywords’ could not be initialized:
Cannot open load file: No such file or directory, company-keywords
Company backend ’company-oddmuse’ could not be initialized:
Cannot open load file: No such file or directory, company-oddmuse
Company backend ’company-dabbrev’ could not be initialized:
Cannot open load file: No such file or directory, company-dabbrev
Cannot find output argument (-o, --out) in project ’/home/akira/code/externals/emacs-fsharp-mode/test/Test1/Test1.fsproj’ with args {ProjectFileName =
  "/home/akira/code/externals/emacs-fsharp-mode/test/Test1/Test1.fsproj";
 ProjectId = None;
 SourceFiles =
  [|"/home/akira/code/externals/emacs-fsharp-mode/test/Test1/FileTwo.fs";
    "/home/akira/code/externals/emacs-fsharp-mode/test/Test1/Program.fs"|];
 OtherOptions =
  [|"-r:/home/akira/code/externals/emacs-fsharp-mode/bin/FSharp.Core.dll";
    "--simpleresolution"; "--noframework";
    "--doc:/home/akira/code/externals/emacs-fsharp-mode/test/Test1/bin/Debug/Test1.XML";
    "--fullpaths"; "--flaterrors"; "--target:exe"; "--define:DEBUG";
    "--define:TRACE"; "--debug+"; "--optimize-"; "--tailcalls-"; "--debug:full";
    "--platform:x86"|];
 ReferencedProjects = [||];
 IsIncompleteTypeCheckEnvironment = false;
 UseScriptResolutionRules = false;
 LoadTime = 31/12/9999 23:59:59;
 UnresolvedReferences = None;
 OriginalLoadReferences = [];
 ExtraProjectInfo = None;
 Stamp = None;}

Known workarounds

None so far, I'm trying to see what is going on

Related information

MiyamotoAkira commented 5 years ago

So, I was able to investigate a bit further. I added

(print "PROJECT FILES")
  (print fsharp-ac--project-files)
  (print "ENDED")

at the end of find-file-and-wait-for-project-load result is

"PROJECT FILES"

#s(hash-table size 65 test equal rehash-size 1.5 rehash-threshold 0.8125 data ())

"ENDED"
juergenhoetzel commented 5 years ago

Sorry for the late reply. I'm currently in the process of Move to LSP (WIP)

The old fsautocomplete protocol will be deptrecated: Future of old stdio protocol So the old tests will also be deprecated. I hope I can push the new (LSP-based) tests soon.

MiyamotoAkira commented 5 years ago

Ok, I will not keep looking into it. Probably we can either close this or close it when the LSP one is done.