Where communities thrive

• Join over 1.5M+ people
• Join over 100K+ communities
• Free without limits
Activity
• 08:03
bytesource commented #1585
• 01:57
open-collective-bot[bot] commented #1586
• 01:57
carere opened #1586
• Sep 16 08:07
bytesource commented #1585
• Sep 16 07:49
bytesource commented #1585
• Sep 16 07:48
bytesource commented #1585
• Sep 16 07:38
bytesource commented #1585
• Sep 16 04:33
open-collective-bot[bot] commented #1585
• Sep 16 04:33
bytesource opened #1585
• Sep 16 00:00
baronfel commented #1568
• Sep 15 23:56
graydon commented #1568
• Sep 15 21:04
baronfel commented #1568
• Sep 15 20:59
baronfel commented #1568
• Sep 15 20:58
baronfel commented #1568
• Sep 15 20:56
graydon commented #1568
• Sep 15 20:54
baronfel commented #1568
• Sep 15 20:52
graydon commented #1568
• Sep 14 18:33
baronfel commented #1584
• Sep 14 18:33
baronfel edited #1584
• Sep 14 18:33
baronfel pinned #1584
Andreas Vilinski
@vilinski

Is somebody else experiencing the same problem? I'm using script.fsx in the root of solution to make interactive development, doing paket generate-load-script and adding #I and #r to the project dll. It has worked a couple weeks ago. Now I'm getting red underscores everywhere. But sending to fsi brings no issues - everthing is good. What can be a problem with vscode+ionide then?

I must switch to Rider because of it, where i have anoter problem - compared to ionide it can't autorefresh on project code changes. What a pity ))

Gerhard
@smibe
My vscode Ionide plugin (on Windows) does not have file completion. I would like to do a live fsharp demo today and without file completions things are getting more difficult. Anyone has a solution for this?
mpchean
@mpchean
For some reason I'm not getting auto indent in VSCode F# using ionide - Am I missing some setting?
Ronald Munodawafa
@RonaldTinashe
Hi everybody! There appears to be an issue with unnecessary closing brackets being added with when typing attributes for example. Has anyone found a workaround for this?
can someone please help me? I have installed ionide on vscode and used F#: new roject command but paket and fake are not initialized by themselves for me as they are done in a tutorial I am fllowing.
Or could someone please recommend a suitable tutorial for using F# with Ionide on vscode.
Andreas Vilinski
@vilinski
not sure which tutorial you use, but maybe dotnet tool restore helps
Ronald Munodawafa
@RonaldTinashe
@muhammadHuzaifaSalman According to fsharp.org Ionide works best using the dotnet toolchain
so I should just use the cli instead?
@RonaldTinashe is that what you eant?
Ronald Munodawafa
@RonaldTinashe
Yes xD
Daniel Hegner
@da9l
Hi! I'm having problems with ionide and SwaggerProvider. When referencing a swagger.yaml file ionide want to get the file from the repo root folder while dotnet build want to fetch it from the source folder of the project src\client
Unless there is a solution for this I'm thinking I could work around this with a compiler directive that distinguishes dotnet build from ionide. Any idea what compiler value I should check for?
Or even better, is there a solution to make it work? I currently have to set fsac to net in order to make ionide intellisensing the SwaggerProvider.
Daniel Hegner
@da9l
Ok, I'm asking more directly again
Does Ionide define a unique symbol that can be checked with the preprocessor directive #if ?
Daniel Hegner
@da9l
Never mind. I underrated the usefulness of __SOURCE_DIRECTORY__.
Avery Morin
@Schmavery
Is there any troubleshooting I can do when the ionide is showing errors but dotnet build is working (on Mac)? Tried restarting vscode, trying to clean and build, but didn't help.
Per Arneng
@PerArneng
hi
is ionide compatible with .NET 5 ?
when running 'printfn "hi"' in an fsx file it clomplains about it missing the type WebClient on the first row of the file
Per Arneng
@PerArneng
never mind it just started working out of the blue
ShalokShalom
@ShalokShalom
The Readme page does not mention debugging as part of the features
And I can not send some pull request because Krzysztof decided couple of years to block me from all his projects, since I suggested to use another platform to chat other than Slack 😁
Ryan Mullin
@rmullin7286_gitlab
Hi, I'm trying to setup a new project with the ionide fake extension. The instructions say to create a .ionide config file in the root directory but it seems like ionide already creates a folder with the same name so I can't. Has anyone else run into this issue?
Tomas Jansson
@mastoj
Is there a way to sort of force a refresh or something to get intellisense and such working? I have code that compiles, but a lot of the time I need to reload the window to get that to work.
@pandemonium
Ionide started crashing out of the blue and I don't even know how to debug it
Where are the logs?
It gives me the: crashed five times in three minutes, message. Tried deleting .ionide but that made no difference
Chet Husk
@baronfel
If it's ionide 5, make sure you have the dotnet sdk 5.0 installed and available. Ionide 5 (as announced for a few months now) requires .net 5.0 in order to run.
@pandemonium
I see, so that updated just the other day or what?
Mr. Johnson
@Kuroiyatsu
Anyone have an issue where creating a project with say: dotnet new console -lang "F#" -o ProjectName, the Program.fs has an error saying "No .fsproj or .fsx file references Program.fs"? Creating the same thing using Visual Studio 2019 doesn't have the issue.
Mr. Johnson
@Kuroiyatsu
The project builds and debugs just fine, but no intellisense due to this issue, it just reports an error.
Kit Eason
@misterspeedy

Hey everybody, I'm getting the dreaded "The F# server has crashed 5 times in the past 3 minutes" error.

Ionide 5.1.0
dotnet --info

Host (useful for support):
Version: 5.0.1
Commit: b02e13abab

.NET SDKs installed:
1.0.0-preview4-004233 [C:\Program Files\dotnet\sdk]
2.0.3 [C:\Program Files\dotnet\sdk]
...
5.0.100 [C:\Program Files\dotnet\sdk]
5.0.101 [C:\Program Files\dotnet\sdk]

.NET runtimes installed:
Microsoft.AspNetCore.All 2.1.3 [C:\Program Files\dotnet\shared\Microsoft.AspNetCore.All]
...
Microsoft.WindowsDesktop.App 5.0.0 [C:\Program Files\dotnet\shared\Microsoft.WindowsDesktop.App]
Microsoft.WindowsDesktop.App 5.0.1 [C:\Program Files\dotnet\shared\Microsoft.WindowsDesktop.App]

Any ideas?

Ionide logs: Command 'F#: Get Ionide logs' resulted in an error (command 'fsharp.diagnostics.getIonideLogs' not found)
Ionide diagnostics: Command 'F#: Get info for diagnostics' resulted in an error (command 'fsharp.diagnostics.getInfos' not found)
Kit Eason
@misterspeedy
Looks like it might be something to do with this machine not having the dotnet 3.1 SDK installed.
I'm sure it used to. Does... does... installing .NET 5 blat the 3.1 SDK. Please tell me that isn't the case.
Kit Eason
@misterspeedy
Ok, well I solved the diagnostics/log file issue. It seems that something in the tool chain requires .NET Core 3.1 AND .NET 5 SDKs to be installed. How I ended up without having 3.1 is a mystery. I spent much of 2020 recording a course using 3.1 so pretty sure it was there then! I'd really like to believe installing 5 doesn't blat it but that is the last major thing I did to this PC.
The log file is empty tho.
Kit Eason
@misterspeedy
TLDR; It seems from my experience that Ionide requires .NET 5 and .NET Core 3.1 SDKs to be present.
vrescobar
@vrescobar
hi all, is there info pointer on how to get working vscode with nix and ionide? (from windows WSL) all I find is @countoren cmments from 2018. ATM I can get sharp compile and run, just missing ionide which sadly doesn't even seem to start or show any log anywhere
vrescobar
@vrescobar
@misterspeedy where did you exactly get the logs? what else does ionide needs, things such as paths, binaries, etc?
ImaginaryDevelopment
@ImaginaryDevelopment

hi all, is there info pointer on how to get working vscode with nix and ionide? (from windows WSL) all I find is @countoren cmments from 2018. ATM I can get sharp compile and run, just missing ionide which sadly doesn't even seem to start or show any log anywhere

I use it at work daily now for almost 2 years. what's sharp compile? you should be able to install ionide like any other vscode extension. are you having a problem or just aren't seeing how to install extensions?

I'm on mac at work, but that's fairly linux-y
Juri
@2mol
same here, it worked, but only after I installed an extension that made vscode aware of the nix PATH
debugging is trickier, I had to manually specify the path to dotnet in the launchSettings.json, very annoying
seanamosw
@seanamosw

Has anyone experienced this? Since Ionide-fsharp updated to v5.4.0, the intellisense in my build.fsx files is broken. If I roll the plugin back to v5.3.2 intellisense in the build.fsx files works again.

It breaks on the first line:

#r "paket: groupref fake //"
Package manager key 'paket' was not registered in [/home/seanamos/.vscode/extensions/ionide.ionide-fsharp-5.4.0/bin; /home/seanamos/.vscode/extensions/ionide.ionide-fsharp-5.4.0/bin/], []. Currently registered: nugetF# Compiler(3400)
seanamosw
@seanamosw
Ok, installing dotnet sdk 5.0.4 and doing a F# clear cache + window reload resolves the entire file getting covered in red squiggles, just the the paket groupref line gets squiggled now
Daniel Hegner
@da9l

I don't know if this is a problem with Ionide or not but I'm looking for a solution for it.
Whenever I have XUnit tests with spaces in their names

let My Unit Test() = ...

when I try to edit the name of the test VSCode is blocked and eventually pops up a "The window is no longer responding - Reopen, Keep Waiting, Close"
Does anyone else have experience with this and have any ideas how it can be avoided?

Rebin
@rebiiin
Hi there, I am pretty beginner with F# and I have a problem in VS code the Intellisense not working in (.fsx) files ! how do I fixe that issue ?
Kyle Johnson
@negcx
Any easy fixes for VS Code, SAFE, macos issues where ionide seems to lose track of external dependencies? i.e. starts to say things like Namespace or module Expecto is not defined etc