## Where communities thrive

• Join over 1.5M+ people
• Join over 100K+ communities
• Free without limits
##### Activity
• 03:50
open-collective-bot[bot] commented #1487
• 03:50
Happypig375 opened #1487
• 03:41
Happypig375 commented #1486
• 03:41
Happypig375 closed #1486
• 03:38
open-collective-bot[bot] commented #1486
• 03:38
Happypig375 opened #1486
• Jan 24 22:52
Degubi commented #1485
• Jan 24 22:51
Degubi closed #1485
• Jan 24 22:51
Degubi commented #1485
• Jan 24 22:48
open-collective-bot[bot] commented #1485
• Jan 24 22:48
Degubi opened #1485
• Jan 24 12:41
• Jan 24 11:43
• Jan 24 11:32
• Jan 24 11:05
• Jan 24 10:16
• Jan 24 09:41
• Jan 24 09:38
• Jan 24 09:38
• Jan 24 09:34
Andreas Vilinski
@vilinski
what is a way to fix the problem fsi can't load arbitrary nuget packages? 'System.ComponentModel.Composition' or 'Mono.Posix' ? I'm generating scripts with paket and trying to send lines to fsi. it's never successful. Ionide doesn't show any errors in the script, so it may be not ionide's or fsac problem. And I also cannot run it after it, failing with the same error. But if I do the same with the FAKE there is no problem at all - not in ionide, not by running. Makes the FAKE something better than paket itself?
captainkout
@captainkout
Hi folks. I am tyring to add jwt to a F# giraffe web server. I added a reference to the project with "paket add Microsoft.AspNetCore.Authentication.JwtBearer --project Server" and it was added without errors, as far as I can tell. But I am still getting a namespace not defined error and the project does not build. What can I do to solve this?
captainkout
@captainkout
So I successfully added the reference now. However now I'm getting both the intellisense(good) and a compiler error saying

namespace JwtBearer
Full name: JwtBearer

Assembly: Microsoft.AspNetCore.Authentication.JwtBearer

The namespace 'JwtBearer' is not defined. a:\repos\fern\src\Server\Server.fsproj

What can I do to refresh intellisense? Close re-open resolved this issue. Is there a command to refresh?
Edgar Rodriguez
@codingedgar
Hello everybody :wave: i'm new to Ionide (and F#), but i've been loving it ! I asked a question here How to add Format config file to VSCode workspace using Ionide, if anyone knows the answer I would really appreciate it, i don't know where's the best place to put questions because the Github Issues are more about features/errors. Sorry for bothering :pray:
Morten Maxild
@maxild
The list seems empty. Does anybody know the command for setting up a shortcurt like ctrl+shift+a to view f# solution explorer?

I found this

{
"key": "ctrl+shift+a",
"command": "fsharp.revealInSolutionExplorer"
}

almost the same thing...

Morten Maxild
@maxild

Using R# in vs for years, I also have this shortcut in my keybindings

{
"key": "shift+alt+l",
"command": "workbench.files.action.showActiveFileInExplorer"
}

Does anybody know if you can add "when": .... syntax to figure out if you are viewning fs|fsx file?

Paolo
@pviotti
Hi there! Has anyone managed to have a debugger working on Linux (either vsdbg or netcoredbg)? If so, could you post a link to your VS Code configuration files (e.g. launch.json)? Thanks in advance!
Pieter Bryon
@pbryon

Hi everyone! For some reason, the Info Panel doesn't work in my VSCode: it shows up, but it's always blank. I'm using the latest versions of both VSCode and Ionide-fsharp.

I've tried:

• adjusting both workspace and user settings
• with and without hover
• in all update modes
• switching to update mode "none" and back
• reinstalling Ionide

What might be wrong with my settings?

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.