core
core copied to clipboard
WebSharper - Full-stack, functional, reactive web apps and microservices in F# and C#
When using enum values in code for JS translation analyzer gives an error: > Type not found in JavaScript compilation: ClientServer10.Flags ```csharp [Flags] public enum Flags { empty = 0x0,...
WebSharper has support for using some kinds of types that have no `JavaScript` attribute (these can be even from assemblies that are not compiled with WebSharper). These are: * Delegates...
This would allow deserializing optional JSON fields to something else than an `option` type. For example: ```fsharp type MyRecord = { [] x: int y: string } Json.Deserialize """{"x": 1,...
Environment: Ubuntu 16.04 x86_64 ``` mono --version Mono JIT compiler version 5.14.0.177 (tarball Mon Aug 6 09:13:43 UTC 2018) Copyright (C) 2002-2014 Novell, Inc, Xamarin Inc and Contributors. www.mono-project.com TLS:...
The prototype chain is not set correctly. The following code: ```fsharp [] type ParentClass() = class end [] type ComponentClass() = inherit ParentClass() ``` should generate this: ```js ComponentClass=Runtime.Class({},ParentClass,ComponentClass); ComponentClass.New=Runtime.Ctor(function()...
* ArchLinux * Mono 5.12.0 * dotnet SDK 2.1.300 * command run: `./build.sh` Error: ``` /home/tarmil/.nuget/packages/microsoft.net.compilers/2.8.2/tools/Microsoft.CSharp.Core.targets(52,5): error MSB3883: Unexpected exception: [/home/tarmil/websharper/tests/WebSharper.CSharp.Sitelets.Tests/WebSharper.CSharp.Sitelets.Tests.csproj] /home/tarmil/.nuget/packages/microsoft.net.compilers/2.8.2/tools/Microsoft.CSharp.Core.targets(52,5): error : System.ComponentModel.Win32Exception (13): Permission denied [/home/tarmil/websharper/tests/WebSharper.CSharp.Sitelets.Tests/WebSharper.CSharp.Sitelets.Tests.csproj] /home/tarmil/.nuget/packages/microsoft.net.compilers/2.8.2/tools/Microsoft.CSharp.Core.targets(52,5):...
WebSharper fails to serialize Dictionary as a result of the remote method: ``` [Remote] public static Task TestSerialization(string input) { var dict = new Dictionary(); dict.Add("key", input); return Task.FromResult(dict); }...
When `Sitelet.Infer` encounters a request that contains a %2F encoded slash, it should treat this as part of the path segment. But it does not; it treats it as an...
If a user writes something like this in their runtime configuration: ```json { "websharper": { "WebSharper.JQuery.Resources.JQuery": "https://code.jquery.com/jquery-3.2.1.min.js", "UseDownloadedResources": true } } ``` then the expected behavior would be: download jQuery...