You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When I add a #load directive in order to reference an .fs file from an .fsx script file, it appears that communication with the fsautocomplete process stalls. This happens with the simplest possible files I can make, and reliably happens upon completing the line.
Repro steps
Create 'Simple.fs' as
moduleSimplelettimes2 x = x *2
Create 'test.fsx' as
lety=2
Observe that type hints show in the minibuffer and help is available. Completion and tooltips appear if you continue adding to the file.
3. Add a line to 'test.fsx': #load "./Simple.fs"
4. Upon completing the line in (3), the FlyCheck modeline indicator gains an asterisk, indicating it is active
There's no big CPU or RAM consumption. Leaving it for up to 10 minutes does nothing. All FSAC functionality is gone.
Expected behavior
At the very least, I should still get FSAC functionality within the .fsx file.
Ideally, we'd get FSAC functionality for the functions in the .fs file.
Actual behavior
Hanging FlyCheck and broken intellisense.
Known workarounds
Don't use #load directives in .fsx scripts.
Related information
Running on WSL v1, Ubuntu 18.04
I have below:
A debug log with (setq fsharp-ac-debug 20)
Output of report-emacs-bug
Output of $ mono --version
Output of $ dotnet --info (though I don't use this for emacs development)
FSAC debug log
06:38:28.084582 (fsharp-ac-parse-current-buffer): Parsing "/mnt/c/Users/g/OneDrive/code/antifound.com/test2.fsx"
06:38:28.186749 (fsharp-ac-send-pos-request): typesig "/mnt/c/Users/g/OneDrive/code/antifound.com/test2.fsx" "let x = 2" 1 1 400
06:38:28.188132 (fsharp-ac-send-pos-request): symboluse "/mnt/c/Users/g/OneDrive/code/antifound.com/test2.fsx" "let x = 2" 1 1 400
06:38:31.039346 (fsharp-ac--get-msg): {"Kind":"info","Data":"Background parsing started"}
06:38:31.039437 (fsharp-ac-filter-output): Received ’info’ message of length 2
06:38:31.039465 (fsharp-ac--get-msg): {"Kind":"errors","Data":{"File":"/mnt/c/Users/g/OneDrive/code/antifound.com/test2.fsx","Errors":[]}}
06:38:31.039533 (fsharp-ac-filter-output): Received ’errors’ message of length 2
06:38:31.041385 (fsharp-ac-send-pos-request): lint "/mnt/c/Users/g/OneDrive/code/antifound.com/test2.fsx" "let x = 2" 1 1 400
06:38:31.385100 (fsharp-ac--get-msg): {"Kind":"typesig","Data":"let"}
06:38:31.385167 (fsharp-ac-filter-output): Received ’typesig’ message of length 2
06:38:31.412734 (fsharp-ac--get-msg): {"Kind":"info","Data":"No symbol information found"}
06:38:31.412858 (fsharp-ac-filter-output): Received ’info’ message of length 2
06:38:31.822889 (fsharp-ac--get-msg): {"Kind":"lint","Data":[]}
06:38:31.823048 (fsharp-ac-filter-output): Received ’lint’ message of length 2
06:38:33.663749 (fsharp-ac-parse-current-buffer): Parsing "/mnt/c/Users/g/OneDrive/code/antifound.com/test2.fsx"
06:38:33.702962 (fsharp-ac--get-msg): {"Kind":"info","Data":"Background parsing started"}
06:38:33.703044 (fsharp-ac-filter-output): Received ’info’ message of length 2
06:38:33.703068 (fsharp-ac--get-msg): {"Kind":"errors","Data":{"File":"/mnt/c/Users/g/OneDrive/code/antifound.com/test2.fsx","Errors":[]}}
06:38:33.703137 (fsharp-ac-filter-output): Received ’errors’ message of length 2
06:38:33.704817 (fsharp-ac-send-pos-request): lint "/mnt/c/Users/g/OneDrive/code/antifound.com/test2.fsx" "" 1 1 400
06:38:33.708815 (fsharp-ac--get-msg): {"Kind":"lint","Data":[]}
06:38:33.708908 (fsharp-ac-filter-output): Received ’lint’ message of length 2
06:38:34.840693 (fsharp-ac-send-pos-request): typesig "/mnt/c/Users/g/OneDrive/code/antifound.com/test2.fsx" "#" 1 2 400
06:38:34.842295 (fsharp-ac-send-pos-request): symboluse "/mnt/c/Users/g/OneDrive/code/antifound.com/test2.fsx" "#" 1 2 400
06:38:34.845597 (fsharp-ac--get-msg): {"Kind":"info","Data":"Cannot find ident for tooltip"}
06:38:34.845719 (fsharp-ac-filter-output): Received ’info’ message of length 2
06:38:34.857528 (fsharp-ac--get-msg): {"Kind":"info","Data":"No ident at this location"}
06:38:34.857601 (fsharp-ac-filter-output): Received ’info’ message of length 2
06:38:34.961887 (fsharp-ac-parse-current-buffer): Parsing "/mnt/c/Users/g/OneDrive/code/antifound.com/test2.fsx"
06:38:34.962797 (fsharp-ac-send-pos-request): completion "/mnt/c/Users/g/OneDrive/code/antifound.com/test2.fsx" "#l" 1 3 400 filter=StartsWith
06:38:35.006898 (fsharp-ac--get-msg): {"Kind":"info","Data":"Background parsing started"}
06:38:35.006989 (fsharp-ac-filter-output): Received ’info’ message of length 2
06:38:35.007013 (fsharp-ac--get-msg): {"Kind":"errors","Data":{"File":"/mnt/c/Users/g/OneDrive/code/antifound.com/test2.fsx","Errors":[]}}
06:38:35.007078 (fsharp-ac-filter-output): Received ’errors’ message of length 2
06:38:35.076259 (fsharp-ac--get-msg): {"Kind":"completion","Data":[]}
06:38:35.076328 (fsharp-ac-filter-output): Received ’completion’ message of length 2
06:38:35.141957 (fsharp-ac-send-pos-request): completion "/mnt/c/Users/g/OneDrive/code/antifound.com/test2.fsx" "#lo" 1 4 400 filter=StartsWith
06:38:35.144461 (fsharp-ac--get-msg): {"Kind":"completion","Data":[]}
06:38:35.144525 (fsharp-ac-filter-output): Received ’completion’ message of length 2
06:38:35.231184 (fsharp-ac-send-pos-request): typesig "/mnt/c/Users/g/OneDrive/code/antifound.com/test2.fsx" "#lo" 1 4 400
06:38:35.232580 (fsharp-ac-send-pos-request): symboluse "/mnt/c/Users/g/OneDrive/code/antifound.com/test2.fsx" "#lo" 1 4 400
06:38:35.235396 (fsharp-ac--get-msg): {"Kind":"info","Data":"Cannot find ident for tooltip"}
06:38:35.235579 (fsharp-ac-filter-output): Received ’info’ message of length 2
06:38:35.238238 (fsharp-ac--get-msg): {"Kind":"info","Data":"No ident at this location"}
06:38:35.238327 (fsharp-ac-filter-output): Received ’info’ message of length 2
06:38:35.249234 (fsharp-ac-send-pos-request): completion "/mnt/c/Users/g/OneDrive/code/antifound.com/test2.fsx" "#loa" 1 5 400 filter=StartsWith
06:38:35.251938 (fsharp-ac--get-msg): {"Kind":"completion","Data":[]}
06:38:35.252020 (fsharp-ac-filter-output): Received ’completion’ message of length 2
06:38:35.338925 (fsharp-ac-send-pos-request): typesig "/mnt/c/Users/g/OneDrive/code/antifound.com/test2.fsx" "#loa" 1 5 400
06:38:35.340748 (fsharp-ac-send-pos-request): symboluse "/mnt/c/Users/g/OneDrive/code/antifound.com/test2.fsx" "#loa" 1 5 400
06:38:35.343140 (fsharp-ac--get-msg): {"Kind":"info","Data":"Cannot find ident for tooltip"}
06:38:35.343212 (fsharp-ac-filter-output): Received ’info’ message of length 2
06:38:35.356092 (fsharp-ac--get-msg): {"Kind":"info","Data":"No ident at this location"}
06:38:35.356188 (fsharp-ac-filter-output): Received ’info’ message of length 2
06:38:35.406385 (fsharp-ac-send-pos-request): completion "/mnt/c/Users/g/OneDrive/code/antifound.com/test2.fsx" "#load" 1 6 400 filter=StartsWith
06:38:35.408671 (fsharp-ac--get-msg): {"Kind":"completion","Data":[]}
06:38:35.408738 (fsharp-ac-filter-output): Received ’completion’ message of length 2
06:38:35.496985 (fsharp-ac-send-pos-request): typesig "/mnt/c/Users/g/OneDrive/code/antifound.com/test2.fsx" "#load" 1 6 400
06:38:35.498416 (fsharp-ac-send-pos-request): symboluse "/mnt/c/Users/g/OneDrive/code/antifound.com/test2.fsx" "#load" 1 6 400
06:38:35.500435 (fsharp-ac--get-msg): {"Kind":"info","Data":"Cannot find ident for tooltip"}
06:38:35.500527 (fsharp-ac-filter-output): Received ’info’ message of length 2
06:38:35.521382 (fsharp-ac--get-msg): {"Kind":"info","Data":"No ident at this location"}
06:38:35.521471 (fsharp-ac-filter-output): Received ’info’ message of length 2
06:38:35.896975 (fsharp-ac-parse-current-buffer): Parsing "/mnt/c/Users/g/OneDrive/code/antifound.com/test2.fsx"
06:38:36.030698 (fsharp-ac--get-msg): {"Kind":"info","Data":"Background parsing started"}
06:38:36.030833 (fsharp-ac-filter-output): Received ’info’ message of length 2
06:38:36.030918 (fsharp-ac--get-msg): {"Kind":"errors","Data":{"File":"/mnt/c/Users/g/OneDrive/code/antifound.com/test2.fsx","Errors":[{"FileName":"/mnt/c/Users/g/OneDrive/code/antifound.com/test2.fsx","StartLine":1,"EndLine":2,"StartColumn":1,"EndColumn":1,"Severity":"Error","Message":"Invalid directive. Expected '#load "" ... ""'.","Subcategory":"parse"},{"FileName":"/mnt/c/Users/g/OneDrive/code/antifound.com/test2.fsx","StartLine":1,"EndLine":2,"StartColumn":1,"EndColumn":1,"Severity":"Error","Message":"Invalid directive. Expected '#load "" ... ""'.","Subcategory":"parse"}]}}
06:38:36.031822 (fsharp-ac-filter-output): Received ’errors’ message of length 2
06:38:42.054124 (fsharp-ac-parse-current-buffer): Parsing "/mnt/c/Users/g/OneDrive/code/antifound.com/test2.fsx"
06:38:42.291198 (fsharp-ac--get-msg): {"Kind":"info","Data":"Background parsing started"}
06:38:42.291321 (fsharp-ac-filter-output): Received ’info’ message of length 2
06:38:42.291346 (fsharp-ac--get-msg): {"Kind":"errors","Data":{"File":"/mnt/c/Users/g/OneDrive/code/antifound.com/test2.fsx","Errors":[]}}
06:38:42.291439 (fsharp-ac-filter-output): Received ’errors’ message of length 2
06:38:42.293685 (fsharp-ac-send-pos-request): lint "/mnt/c/Users/g/OneDrive/code/antifound.com/test2.fsx" "#load "./Simple.fs"" 1 20 400
06:38:42.295485 (fsharp-ac--get-msg): {"Kind":"info","Data":"Cached typecheck results not yet available"}
06:38:42.295555 (fsharp-ac-filter-output): Received ’info’ message of length 2
report-emacs-bug
In GNU Emacs 25.2.2 (x86_64-pc-linux-gnu, GTK+ Version 3.22.21)
of 2017-09-22, modified by Debian built on lgw01-amd64-050
Windowing system distributor 'HC-Consult', version 11.0.12005001
System Description: Ubuntu 18.04.3 LTS
Important settings:
value of $LANG: C.UTF-8
locale-coding-system: utf-8-unix
Major mode: Lisp Interaction
Minor modes in effect:
elisp-slime-nav-mode: t
global-company-mode: t
company-mode: t
global-magit-file-mode: t
diff-auto-refine-mode: t
magit-auto-revert-mode: t
global-git-commit-mode: t
async-bytecomp-package-mode: t
ido-everywhere: t
evil-leader-mode: t
global-undo-tree-mode: t
undo-tree-mode: t
shell-dirtrack-mode: t
evil-mode: t
evil-local-mode: t
override-global-mode: t
tooltip-mode: t
global-eldoc-mode: t
eldoc-mode: t
electric-indent-mode: t
mouse-wheel-mode: t
file-name-shadow-mode: t
global-font-lock-mode: t
font-lock-mode: t
auto-composition-mode: t
auto-encryption-mode: t
auto-compression-mode: t
line-number-mode: t
transient-mark-mode: t
Recent messages:
, r is undefined
let
Auto-saving...done
Mark set
Replaced 29 occurrences [2 times]
Mark set
Making completion list... [2 times]
Description
When I add a
#load
directive in order to reference an .fs file from an .fsx script file, it appears that communication with the fsautocomplete process stalls. This happens with the simplest possible files I can make, and reliably happens upon completing the line.Repro steps
Observe that type hints show in the minibuffer and help is available. Completion and tooltips appear if you continue adding to the file.
3. Add a line to 'test.fsx':
#load "./Simple.fs"
4. Upon completing the line in (3), the FlyCheck modeline indicator gains an asterisk, indicating it is active
There's no big CPU or RAM consumption. Leaving it for up to 10 minutes does nothing. All FSAC functionality is gone.
Expected behavior
At the very least, I should still get FSAC functionality within the .fsx file.
Ideally, we'd get FSAC functionality for the functions in the .fs file.
Actual behavior
Hanging FlyCheck and broken intellisense.
Known workarounds
Don't use
#load
directives in .fsx scripts.Related information
Running on WSL v1, Ubuntu 18.04
I have below:
(setq fsharp-ac-debug 20)
report-emacs-bug
$ mono --version
$ dotnet --info
(though I don't use this for emacs development)FSAC debug log
report-emacs-bug
Mono version
dotnet core version
The text was updated successfully, but these errors were encountered: