Skip to content
#

F#

fsharp logo

F# (pronounced "F sharp") is a cross-platform, open source, functional programming language for .NET. It also includes object-oriented and imperative programming.

Here are 1,360 public repositories matching this topic...

migueloller
migueloller commented Feb 6, 2020

Running Pulumi CLI commands in CI is failing with the following error:

error: could not get cloud url: unmarshalling credentials file: unexpected end of JSON input

The following scripts are representative of what was running when the error happened:

# prepare.sh

curl https://sdk.cloud.google.com | bash > /dev/null
export PATH=$PATH:/root/google-cloud-sdk/bin
KEY_FI
xenophilios
xenophilios commented Feb 21, 2020

Great article. Thank you.
I would like to suggest that you add some explanation on the use of "in" and "out" as modifiers of generic type parameters. For example, the generic form of IComparable is given as IComparable<in T> and the generic form of IEnumerable as IEnumerable<out T>. If explanations are already available in other documents, perhaps you could let us know where to find th

fsharp
NinoFloris
NinoFloris commented Apr 16, 2020

C# has the possibility to mark types and members as readonly on structs to signal to roslyn no defensive copies have to be performed. F# with its immutable by default semantics should take advantage of this to gain end users some automatic perf improvements.

Relevant language feature docs:
https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/struct#readonly-struct

ericjohannsen
ericjohannsen commented Apr 6, 2020

Environment

N/A

Details

This code:

Environment.SetEnvironmentVariable("PYTHONPATH", $"{pathToVirtualEnv}\\Lib\\site-packages;{pythonPath}\\Lib", EnvironmentVariableTarget.Process);

from the wiki references a variable pythonPath that isn't defined. Is that supposed to be `pathToV

forki
forki commented Apr 29, 2020

Description

On our CI system we see strange flaky compile errors when building our electron app:

C:\WORK\fdgC2beP\0\products\msu.projectmanagement\electron\node_modules\fable-compiler\dist\index.js:80
                resolve(JSON.parse(data.substr(pattern[0].length)));
                            ^
SyntaxError: Unexpected end of JSON input
    at JSON.parse (<anon
vshapenko
vshapenko commented Apr 20, 2020

Description

Paket lacks support of props and targets files in build folder of nuget package. According to nuspec documentation here , .props and .targets file with names similar to package name should be included into target project. However, paket does not support suc

imback82
imback82 commented Mar 19, 2019

We create multiple jars during our builds to accommodate multiple versions of Apache Spark. In the current approach, the implementation is copied from one version to another and then necessary changes are made.

An ideal approach could create a common directory and extract common classes from duplicate code. Note that even if class/code is exactly the same, you cannot pull out to a common clas

flotrek
flotrek commented Sep 26, 2019

I'm trying to gracefully exit the webServer with a GET or POST to the the webServer itself.

Is there a way to execute code after a HTTP response has been given to the client to help me do that properly ?

Is there a nicer way to handle shutting down suave server from a CD pipeline ?

let app = 
    choose [
        path "/gracefulExit" >=> 
            request(fun r -> 
     
andrewjw1995
andrewjw1995 commented May 16, 2018

The documentation file appears to have been generated with no space between the hashes and the header text. This is causing the headers to not display correctly, and is difficult to read. See below for an example of with and without the space:

##

Mobius API Documentation


###Microsoft.Spark.CSharp.Core.Accumulator</

ScottHutchinson
ScottHutchinson commented Jan 23, 2020

Is your feature request related to a problem? Please describe.

  1. With the regular Explorer pane selected, NOT the F# Solution Explorer, selecting F#: Add Project Reference from the Command Palette fails with command 'fsharp.AddProjectReference' not found.
  2. Even though a project is selected in the F# Solution Explorer pane, the F#: Add Project Reference command still prompts the user to
daxian-dbw
daxian-dbw commented Mar 2, 2020

More tests should be added to validate all the interactive scenarios enabled by the new PS kernel host.
The validation tests should cover all the override methods in PSKernelHostUserInterface implementation, including the following:

  • public override PSCredential PromptForCredential(string caption, string message, string userName, string targetName)
  • `public override PSCredential
ghost
ghost commented Jan 19, 2018

It is me again. It would also be nice to have some guidance on how to configure that webpack.config.js thing so that you can compile css from scss (I am using Bulma and that would be a great thing for re-theming ... of basically any css framework)

thosomers
thosomers commented Aug 30, 2019

Description

executeDeleteQueryAsync in SqlRuntime.Linq.fs doesn't return deleted row count.

Repro steps

Seq.delete all items from single table always returns 0.

Expected behavior

Seq.delete all items from single table should return the number of rows deleted.

Known workarounds

Use cmd.ExecuteNonQueryAsync instead of cmd.ExecuteScalarAsync

Created by Don Syme

Released May 2005

Organization
fsharp
Website
dotnet.microsoft.com/languages/fsharp
Wikipedia
Wikipedia

Related Topics

dotnet language
You can’t perform that action at this time.