Skip to content
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

[Fable 4.3.0][F# 7.0] String interpolation shows error (but compiles fine) #3694

Closed
OkayX6 opened this issue Jan 9, 2024 · 2 comments
Closed

Comments

@OkayX6
Copy link

OkayX6 commented Jan 9, 2024

Description

Hi,

I don't know why but I am getting this error everywhere in my Fable project in VS Code:
image

It used to work before upgrading either Dotnet or Fable.

The compilation works though with npm start

Repro code

My fsproj is configured like this:

<Project Sdk="Microsoft.NET.Sdk">
  <PropertyGroup>
    <TargetFramework>net6.0</TargetFramework>
    <LangVersion>7.0</LangVersion>
  </PropertyGroup>
  <ItemGroup>

Expected and actual results

Should not appear.

Related information

  • Fable version: dotnet fable --version: 4.3.0
  • Operating system: Windows 11
@MangelMaxime
Copy link
Member

Hello @OkayX6,

You seems to report an IDE errors and not a Fable error here.

Beside the LangVersion you also needs to checks which version of FSharp.Core you are using I believe string interpolation was introduce in version 5.0.0 or 5.0.2

@OkayX6
Copy link
Author

OkayX6 commented Jan 9, 2024

Thanks @MangelMaxime
It appears it is Ionide that keeps referencing version 4.7.2, Rider fixed it automatically...

@OkayX6 OkayX6 closed this as completed Jan 9, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants