-
Notifications
You must be signed in to change notification settings - Fork 62
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Script files(.fsx) not working #231
Comments
Thanks for the detailed report. I can confirm. It's most likely related to this ionide issue: FSAC Runtime = netcore does not work with fsx |
4.2.0 - No auto complete or typechecking in FSX files
|
Documented a workaround in the troubleshooting section: https://github.com/fsharp/emacs-fsharp-mode/#no-autocompletion-in-fsx-files |
…around-doc Add .fsx completion issue workaround to README.org. Refs fsharp#231 (try 2)
Thanks for the reply. The workaround recommended did not work for me, so I tried referencing mscorlib as well and it worked.
When I don't reference mscorlib, nothing works with errors like "[...]Cached typecheck results not yet available[...]" and timeouts When I include mscorlib without netstandard.dll then it goes bonkers: let x = "hello world"
let y = 1
A few attempts❌ does not work: #r "/home/me/.dotnet/sdk/3.1.100/ref/netstandard.dll" ❌ does not work: #r "mscorlib.dll"
#r "netstandard.dll" ✔️ works: #r "/home/me/.dotnet/sdk/3.1.100/ref/mscorlib.dll"
#r "/home/me/.dotnet/sdk/3.1.100/ref/netstandard.dll" ✔️ works: #r "/home/me/.dotnet/sdk/3.1.100/ref/mscorlib.dll"
#r "netstandard.dll" ✔️ works: #I "/home/me/.dotnet/sdk/3.1.100/ref/"
#r "mscorlib.dll"
#r "netstandard.dll" ✔️ works with older sdk(2.1.801) as well: #I "/home/me/.dotnet/sdk/2.1.801/ref/"
#r "mscorlib.dll"
#r "netstandard.dll" I think I will use paket load-scripts and prepend this snippet manually. Generated load scripts are not going to the repo anyway. Also, i think the README.md has a typo, it should be (require 'eglot-fsharp) |
Same here
|
Description
No completion, type signature on F# script files(.fsx).
Code files(.fs) works as expected.
Repro steps
open a simple script file, Foo.fsx:
Expected behavior
Actual behavior
"flymake:Wait" on mode line never goes away.
And Error:
Known workarounds
Stick with .fs and never touch .fsx? :(
Related information
Ubuntu 19.10
melpa version fsharp-mode-20191130.1857
GNU Emacs 26.3
.net core 3.0.101
The text was updated successfully, but these errors were encountered: