FSAC Runtime = netcore does not work with fsx

Switching to netcore for FSAC Runtime (as suggested by Ionide) does not work - I get no intellisense, no tooltips etc..
F# Language Service says stuff like the following:
[19:55:49 ERROR] Cannot execute lint, File 'c:\Users\Isaac\Source\Repos\fsharp-demo\FSharpDemo\Scripts\foo.fsx' not parsed
[19:55:49 ERROR] Cannot execute unusedOpens, File 'c:\Users\Isaac\Source\Repos\fsharp-demo\FSharpDemo\Scripts\foo.fsx' not parsed
[19:55:49 ERROR] Cannot execute unusedDeclarations, File 'c:\Users\Isaac\Source\Repos\fsharp-demo\FSharpDemo\Scripts\foo.fsx' not parsed
[19:55:49 ERROR] Cannot execute simplifiedNames, File 'c:\Users\Isaac\Source\Repos\fsharp-demo\FSharpDemo\Scripts\foo.fsx' not parsed

Anything I need to do e.g. specific version of netcore?

Since I can see .fsx file - it's probably duplicate of https://github.com/ionide/ionide-vscode-fsharp/issues/656.
Please check, if it's working fine with any project, clearing cache / removing obj may be required

I am having the same problem.  What is meant by "clearing cache"?  I tried removing the obj directory of my projects but that had no impact.

I tried clearing the cache (by pressing CTRL + SHIFT + P and then typing F#: Clear Cache) in VSCode .  I've experienced the problem with old/new projects on different computers as well as new single file fsx files.  Clearing the cache didn't affect anything.

I've just been through the reinstall dance too; ionide, mono, dotnet 😞

Ran into this with fsx files. I ended up uninstalling VS Code and deleting %userprofile%\AppData\Roaming\Code and %userprofile%\.vscode
I was experiencing this with net and netcore.
Clear cache didnt help.
2 things that happened around the time it stopped working. I was switching between .net and core in the workspace settings and I updated VS.

Uninstalling vscode per @dburriss  suggestion worked well for me now. I decided to stay on "FSharp.fsacRuntime": "net" tho.
I'm guessing that this problem maybe is related with #938 and #949.

On a Mac, this worked
sudo rm -rf $HOME/Library/Application\ Support/Code

// if you're using insider*
sudo rm -rf $HOME/Library/Application\ Support/Code\ -\ Insiders/

Could reproduce this with the following:
Clean VSCode install, Ionide installed and following user settings:
{
    "FSharp.fsacRuntime": "netcore",
    "FSharp.logLanguageServiceRequestsOutputWindowLevel": "DEBUG"
}

Install fake templates dotnet new -i "fake-template::*"

Create new directory and run dotnet new fake inside

Load directory in Code and open build.fsx

Look at output of F# Language Service
    [14:54:15 INFO ] Netcore runtime specified
    [14:54:16 INFO ] finding FSAC for
        runtime: NetcoreFdd
        mono: mono
        dotnet: C:\Program Files\dotnet\dotnet.exe
    [14:54:17 INFO ] listening notification on /notify started
    [14:54:17 INFO ] listening notification on /notifyWorkspace started
    [14:54:17 INFO ] listening notification on /notifyAnalyzer started
    [14:54:17 DEBUG] REQ (001) -> {compilerlocation}
    Data=""
    [14:54:17 DEBUG] REQ (002) -> {lint}, File = "~\build.fsx"
    Data={"FileName":"c:\\source\\ionide-repo\\build.fsx"}
    [14:54:17 DEBUG] REQ (003) -> {unusedOpens}, File = "~\build.fsx"
    Data={"FileName":"c:\\source\\ionide-repo\\build.fsx"}
    [14:54:17 DEBUG] REQ (004) -> {unusedDeclarations}, File = "~\build.fsx"
    Data={"FileName":"c:\\source\\ionide-repo\\build.fsx"}
    [14:54:17 DEBUG] REQ (005) -> {simplifiedNames}, File = "~\build.fsx"
    Data={"FileName":"c:\\source\\ionide-repo\\build.fsx"}
    [14:54:17 DEBUG] REQ (006) -> {workspacePeek}
    Data={"Directory":"c:\\source\\ionide-repo","Deep":2,"ExcludedDirs":[".git","paket-files",".fable"]}
    [14:54:17 DEBUG] REQ (007) -> {declarations}, File = "~\build.fsx"
    Data={"FileName":"c:\\source\\ionide-repo\\build.fsx","Lines":["#load \".fake/build.fsx/intellisense.fsx\"\r","open Fake.Core\r","open Fake.DotNet\r","open Fake.IO\r","open Fake.IO.FileSystemOperators\r","open Fake.IO.Globbing.Operators\r","open Fake.Core.TargetOperators\r","\r","Target.create \"Clean\" (fun _ ->\r","    !! \"src/**/bin\"\r","    ++ \"src/**/obj\"\r","    |> Shell.cleanDirs \r",")\r","\r","Target.create \"Build\" (fun _ ->\r","    !! \"src/**/*.*proj\"\r","    |> Seq.iter (DotNet.build id)\r",")\r","\r","Target.create \"All\" ignore\r","\r","\"Clean\"\r","  ==> \"Build\"\r","  ==> \"All\"\r","\r","Target.runOrDefault \"All\"\r",""],"Version":0}
    [14:54:17 DEBUG] RES (004) <- {unusedDeclarations} in 293 ms: Kind={"error"}
    Data={"Code":1,"Message":"File 'c:\\source\\ionide-repo\\build.fsx' not parsed","AdditionalData":{}}
    [14:54:17 ERROR] Cannot execute unusedDeclarations, File 'c:\source\ionide-repo\build.fsx' not parsed
    [14:54:17 DEBUG] RES (002) <- {lint} in 298 ms: Kind={"error"}
    Data={"Code":1,"Message":"File 'c:\\source\\ionide-repo\\build.fsx' not parsed","AdditionalData":{}}
    [14:54:17 ERROR] Cannot execute lint, File 'c:\source\ionide-repo\build.fsx' not parsed
    [14:54:17 DEBUG] RES (003) <- {unusedOpens} in 298 ms: Kind={"error"}
    Data={"Code":1,"Message":"File 'c:\\source\\ionide-repo\\build.fsx' not parsed","AdditionalData":{}}
    [14:54:17 ERROR] Cannot execute unusedOpens, File 'c:\source\ionide-repo\build.fsx' not parsed
    [14:54:17 DEBUG] RES (005) <- {simplifiedNames} in 298 ms: Kind={"error"}
    Data={"Code":1,"Message":"File 'c:\\source\\ionide-repo\\build.fsx' not parsed","AdditionalData":{}}
    [14:54:17 ERROR] Cannot execute simplifiedNames, File 'c:\source\ionide-repo\build.fsx' not parsed
    [14:54:17 DEBUG] RES (001) <- {compilerlocation} in 305 ms: Kind={"compilerlocation"}
    Data={"Fsc":"C:\\Program Files (x86)\\Microsoft Visual Studio\\2017\\Enterprise\\Common7\\IDE\\CommonExtensions\\Microsoft\\FSharp\\fsc.exe","Fsi":"C:\\Program Files (x86)\\Microsoft Visual Studio\\2017\\Enterprise\\Common7\\IDE\\CommonExtensions\\Microsoft\\FSharp\\fsi.exe","MSBuild":"C:\\Program Files (x86)\\Microsoft Visual Studio\\2017\\Enterprise\\MSBuild\\15.0\\bin\\MsBuild.exe"}
    [14:54:17 DEBUG] RES (006) <- {workspacePeek} in 320 ms: Kind={"workspacePeek"}
    Data={"Found":[{"Type":"directory","Data":{"Directory":"c:\\source\\ionide-repo","Fsprojs":[]}}]}
    [14:54:17 DEBUG] REQ (008) -> {workspaceLoad}
    Data={"Files":[],"DisableInMemoryProjectReferences":false}
    [14:54:17 DEBUG] RES (008) <- {workspaceLoad} in 31 ms: Kind={"workspaceLoad"}
    Data={"Status":"finished"}
    [14:54:17 DEBUG] REQ (009) -> {parse}, File = "~\build.fsx"
    Data={"FileName":"c:\\source\\ionide-repo\\build.fsx","IsAsync":true,"Lines":["#load \".fake/build.fsx/intellisense.fsx\"\r","open Fake.Core\r","open Fake.DotNet\r","open Fake.IO\r","open Fake.IO.FileSystemOperators\r","open Fake.IO.Globbing.Operators\r","open Fake.Core.TargetOperators\r","\r","Target.create \"Clean\" (fun _ ->\r","    !! \"src/**/bin\"\r","    ++ \"src/**/obj\"\r","    |> Shell.cleanDirs \r",")\r","\r","Target.create \"Build\" (fun _ ->\r","    !! \"src/**/*.*proj\"\r","    |> Seq.iter (DotNet.build id)\r",")\r","\r","Target.create \"All\" ignore\r","\r","\"Clean\"\r","  ==> \"Build\"\r","  ==> \"All\"\r","\r","Target.runOrDefault \"All\"\r",""],"Version":1}
    [14:54:17 DEBUG] WebSocket message: '{"Kind":"workspaceLoad","Data":{"Status":"started"}}'
    [14:54:17 DEBUG] WebSocket message: '{"Kind":"workspaceLoad","Data":{"Status":"finished"}}'
    [14:54:17 DEBUG] RES (009) <- {parse} in 171 ms: Kind={"info"}
    Data="Request cancelled (exn was System.ComponentModel.Win32Exception (2): The system cannot find the file specified
        at System.Diagnostics.Process.StartWithCreateProcess(ProcessStartInfo startInfo)
        at System.Diagnostics.Process.Start()
        at FsAutoComplete.Utils.runProcess(FSharpFunc`2 log, String workingDir, String exePath, String args) in D:\\Programowanie\\ionide\\paket-files\\github.com\\fsharp\\FsAutoComplete\\src\\FsAutoComplete.Core\\Utils.fs:line 532
        at Dotnet.ProjInfo.Inspect.msbuild[a](MSBuildExePath msbuildExe, FSharpFunc`2 run, String project, FSharpList`1 args)
        at Dotnet.ProjInfo.Inspect.getProjectInfoOldSdk[a,b,c,d](FSharpFunc`2 log, FSharpFunc`2 msbuildExec, FSharpFunc`2 getArgs, FSharpList`1 additionalArgs, a projPath)
        at FsAutoComplete.NETFrameworkInfoProvider.getInfoFromMsbuild[a](FSharpFunc`2 getArgs, FSharpList`1 additionalProps) in D:\\Programowanie\\ionide\\paket-files\\github.com\\fsharp\\FsAutoComplete\\src\\FsAutoComplete.Core\\NETFrameworkInfoProvider.fs:line 46
        at FsAutoComplete.NETFrameworkInfoProvider.getInstalledNETVersions() in D:\\Programowanie\\ionide\\paket-files\\github.com\\fsharp\\FsAutoComplete\\src\\FsAutoComplete.Core\\NETFrameworkInfoProvider.fs:line 90
        at System.Lazy`1.ViaFactory(LazyThreadSafetyMode mode)
        at System.Lazy`1.ExecutionAndPublication(LazyHelper executionAndPublication, Boolean useDefaultConstructor)
        at System.Lazy`1.CreateValue()
        at FsAutoComplete.Environment.netReferecesAssembliesTFMLatest() in D:\\Programowanie\\ionide\\paket-files\\github.com\\fsharp\\FsAutoComplete\\src\\FsAutoComplete.Core\\Environment.fs:line 144
        at <StartupCode$FsAutoComplete-Core>.$CompilerServiceInterface.GetProjectOptionsFromScript@510.Invoke(Unit unitVar) in D:\\Programowanie\\ionide\\paket-files\\github.com\\fsharp\\FsAutoComplete\\src\\FsAutoComplete.Core\\CompilerServiceInterface.fs:line 510
        at Microsoft.FSharp.Control.AsyncPrimitives.CallThenInvoke[T,TResult](AsyncActivation`1 ctxt, TResult result1, FSharpFunc`2 part2)
        at Microsoft.FSharp.Control.Trampoline.Execute(FSharpFunc`2 firstAction))"
    [14:54:17 DEBUG] REQ (010) -> {declarations}, File = "~\build.fsx"
    Data={"FileName":"c:\\source\\ionide-repo\\build.fsx","Lines":["#load \".fake/build.fsx/intellisense.fsx\"\r","open Fake.Core\r","open Fake.DotNet\r","open Fake.IO\r","open Fake.IO.FileSystemOperators\r","open Fake.IO.Globbing.Operators\r","open Fake.Core.TargetOperators\r","\r","Target.create \"Clean\" (fun _ ->\r","    !! \"src/**/bin\"\r","    ++ \"src/**/obj\"\r","    |> Shell.cleanDirs \r",")\r","\r","Target.create \"Build\" (fun _ ->\r","    !! \"src/**/*.*proj\"\r","    |> Seq.iter (DotNet.build id)\r",")\r","\r","Target.create \"All\" ignore\r","\r","\"Clean\"\r","  ==> \"Build\"\r","  ==> \"All\"\r","\r","Target.runOrDefault \"All\"\r",""],"Version":1}
    [14:54:17 DEBUG] RES (010) <- {declarations} in 188 ms: Kind={"declarations"}
    Data=[{"Declaration":{"UniqueName":"Build_1_of_1","Name":"Build","Glyph":"Module","GlyphChar":"N","IsTopLevel":true,"Range":{"StartColumn":1,"StartLine":1,"EndColumn":26,"EndLine":26},"BodyRange":{"StartColumn":1,"StartLine":1,"EndColumn":1,"EndLine":1},"File":"c:\\source\\ionide-repo\\build.fsx","EnclosingEntity":"M","IsAbstract":false},"Nested":[]}]
    [14:54:17 DEBUG] RES (007) <- {declarations} in 473 ms: Kind={"declarations"}
    Data=[{"Declaration":{"UniqueName":"Build_1_of_1","Name":"Build","Glyph":"Module","GlyphChar":"N","IsTopLevel":true,"Range":{"StartColumn":1,"StartLine":1,"EndColumn":26,"EndLine":26},"BodyRange":{"StartColumn":1,"StartLine":1,"EndColumn":1,"EndLine":1},"File":"c:\\source\\ionide-repo\\build.fsx","EnclosingEntity":"M","IsAbstract":false},"Nested":[]}]

Workaround is:
Changing fsac setting back to net and restarting Code

I have the same problem on Windows. I noticed that if netcore is used then files are prefixed with ~\.
    [14:54:17 DEBUG] REQ (002) -> {lint}, File = "~\build.fsx"
    Data={"FileName":"c:\\source\\ionide-repo\\build.fsx"}
    Data={"Code":1,"Message":"File 'c:\\source\\ionide-repo\\build.fsx' not parsed","AdditionalData":{}}

But when net is used - standard path conventions are applied.

This issue is still happening in Windows with Ionide 3.38.0. I have to switch to net to make it work for fsx

@isaacabraham try open vscode from a VS Command prompt.
if the msbuild is in PATH (like in VS command prompt) it should work.
That's the limitation to load fsx and old fsproj atm with FSAC .net core, because use msbuild to resolve system assemblu references (like System etc)

Also, the error message isn't very helpful, but I quickly figured it out the problem after I turned on verbose logging FSharp.verboseLogging.
Message: File 'b:\extern\workbench\fullstack\build.fsx' not parsed
  Code: -32603

Negative codes smell of integration errors (from the old COM days).
The real error is more helpful.

LSP output
[LSP] Notify - Canceled
(InfoRes
    "Request cancelled (exn was System.Exception: error getting msbuild info: unexpected MSBuildFailed
(1,
("C:\Users\LuizMonad\AppData\Local\Temp\tmp28AD.tmp",
    "C:\Program Files (x86)\Microsoft Visual Studio\2017\BuildTools\MSBuild\15.0\bin\MsBuild.exe",
    "C:\Users\LuizMonad\AppData\Local\Temp\tmp28AD.tmp\EnvironmentInfo.proj /t:_Inspect_GetProperties /p:_Inspect_GetProperties_OutFile=C:\Users\LuizMonad\AppData\Local\Temp\tmp28AE.tmp.GetProperties.txt /p:CustomAfterMicrosoftCommonTargets=C:\Users\LuizMonad\AppData\Local\Temp\tmp28AF.tmp.proj-info.hook.targets /nologo /verbosity:quiet"))
at Microsoft.FSharp.Core.PrintfModule.PrintFormatToStringThenFail@1647.Invoke(String message)
at System.Lazy`1.ViaFactory(LazyThreadSafetyMode mode)
at System.Lazy`1.ExecutionAndPublication(LazyHelper executionAndPublication, Boolean useDefaultConstructor)
at System.Lazy`1.CreateValue()
at Dotnet.ProjInfo.Workspace.NetFWInfo.LatestVersion()
at <StartupCode$FsAutoComplete-Core>.$CompilerServiceInterface.GetProjectOptionsFromScript@462.Invoke(Unit unitVar) in /Users/chris/Programming/ionide-vscode-fsharp/paket-files/github.com/fsharp/FsAutoComplete/src/FsAutoComplete.Core/CompilerServiceInterface.fs:line 462
at Microsoft.FSharp.Control.AsyncPrimitives.CallThenInvoke[T,TResult](AsyncActivation`1 ctxt, TResult result1, FSharpFunc`2 part2)
at Microsoft.FSharp.Control.Trampoline.Execute(FSharpFunc`2 firstAction))")

Msbuild output
PS C:\> invoke-expression ((h)[0].CommandLine)
Microsoft (R) Build Engine version 15.9.21+g9802d43bc3 for .NET Framework
Copyright (C) Microsoft Corporation. All rights reserved.

Build started 7/14/2019 6:51:49 PM.
Project "C:\Users\LuizMonad\AppData\Local\Temp\tmp9021.tmp\EnvironmentInfo.proj" on node 1 (_Inspect_GetProperties target(s)).
C:\Program Files (x86)\Microsoft Visual Studio\2017\BuildTools\MSBuild\15.0\bin\Microsoft.Common.CurrentVersion.targets(1179,5): error MSB3644: The reference assemblies for framework ".NETFramework,Version=v4.0" were not found. To resolve
this, install the SDK or Targeting Pack for this framework version or retarget your application to a version of the framework for which you have the SDK or Targeting Pack installed. Note that assemblies will be resolved from the Global Ass
embly Cache (GAC) and will be used in place of reference assemblies. Therefore your assembly may not be correctly targeted for the framework you intend. [C:\Users\LuizMonad\AppData\Local\Temp\tmp9021.tmp\EnvironmentInfo.proj]
Done Building Project "C:\Users\LuizMonad\AppData\Local\Temp\tmp9021.tmp\EnvironmentInfo.proj" (_Inspect_GetProperties target(s)) -- FAILED.

Build FAILED.

"C:\Users\LuizMonad\AppData\Local\Temp\tmp9021.tmp\EnvironmentInfo.proj" (_Inspect_GetProperties target) (1) ->
(GetReferenceAssemblyPaths target) ->
  C:\Program Files (x86)\Microsoft Visual Studio\2017\BuildTools\MSBuild\15.0\bin\Microsoft.Common.CurrentVersion.targets(1179,5): error MSB3644: The reference assemblies for framework ".NETFramework,Version=v4.0" were not found. To resolv
e this, install the SDK or Targeting Pack for this framework version or retarget your application to a version of the framework for which you have the SDK or Targeting Pack installed. Note that assemblies will be resolved from the Global A
ssembly Cache (GAC) and will be used in place of reference assemblies. Therefore your assembly may not be correctly targeted for the framework you intend. [C:\Users\LuizMonad\AppData\Local\Temp\tmp9021.tmp\EnvironmentInfo.proj]

    0 Warning(s)
    1 Error(s)

Time Elapsed 00:00:00.64

Which one of them should be in the path?
PS C:\> ls -Recurse -Include @("msbuild.exe"; "msbuild.dll") -ErrorAction SilentlyContinue | select -expand fullname
C:\Program Files\dotnet\sdk\2.2.301\ref\MSBuild.dll
C:\Program Files\dotnet\sdk\2.2.301\MSBuild.dll
C:\Program Files (x86)\Microsoft Visual Studio\2017\BuildTools\MSBuild\15.0\Bin\amd64\MSBuild.exe
C:\Program Files (x86)\Microsoft Visual Studio\2017\BuildTools\MSBuild\15.0\Bin\MSBuild.exe
C:\Program Files (x86)\Microsoft Visual Studio\2019\BuildTools\MSBuild\Current\Bin\amd64\MSBuild.exe
C:\Program Files (x86)\Microsoft Visual Studio\2019\BuildTools\MSBuild\Current\Bin\MSBuild.exe
C:\Program Files (x86)\MSBuild\12.0\Bin\MSBuild.exe
C:\Users\LuizMonad\.vscode\extensions\ms-vscode.csharp-1.20.0\.omnisharp\1.32.20\.msbuild\Current\Bin\MSBuild.exe
C:\Windows\assembly\GAC_32\MSBuild\<IP_ADDRESS>__b03f5f7f11d50a3a\MSBuild.exe
C:\Windows\assembly\GAC_64\MSBuild\<IP_ADDRESS>__b03f5f7f11d50a3a\MSBuild.exe
C:\Windows\Microsoft.NET\assembly\GAC_32\MSBuild\v4.0_<IP_ADDRESS>__b03f5f7f11d50a3a\MSBuild.exe
C:\Windows\Microsoft.NET\assembly\GAC_32\MSBuild\v4.0_<IP_ADDRESS>__b03f5f7f11d50a3a\MSBuild.exe
C:\Windows\Microsoft.NET\assembly\GAC_64\MSBuild\v4.0_<IP_ADDRESS>__b03f5f7f11d50a3a\MSBuild.exe
C:\Windows\Microsoft.NET\Framework\v2.0.50727\MSBuild.exe
C:\Windows\Microsoft.NET\Framework\v3.5\MSBuild.exe
C:\Windows\Microsoft.NET\Framework\v4.0.30319\MSBuild.exe
C:\Windows\Microsoft.NET\Framework64\v2.0.50727\MSBuild.exe
C:\Windows\Microsoft.NET\Framework64\v3.5\MSBuild.exe
C:\Windows\Microsoft.NET\Framework64\v4.0.30319\MSBuild.exe
C:\Windows\WinSxS\amd64_msbuild_b03f5f7f11d50a3a_10.0.17763.1_none_f5a7250c35a55a6e\MSBuild.exe
C:\Windows\WinSxS\amd64_msbuild_b03f5f7f11d50a3a_3.5.17763.1_none_e1dfb46a1ccf92e8\MSBuild.exe
C:\Windows\WinSxS\amd64_msbuild_b03f5f7f11d50a3a_4.0.15713.0_none_da500ddf9f3ce843\MSBuild.exe
C:\Windows\WinSxS\x86_msbuild_b03f5f7f11d50a3a_10.0.17763.1_none_3d545be34a218374\MSBuild.exe
C:\Windows\WinSxS\x86_msbuild_b03f5f7f11d50a3a_3.5.17763.1_none_85c118e6647221b2\MSBuild.exe
C:\Windows\WinSxS\x86_msbuild_b03f5f7f11d50a3a_4.0.15713.0_none_21fd44b6b3b91149\MSBuild.exe
C:\Windows.old\Program Files\dotnet\sdk\2.2.301\ref\MSBuild.dll
C:\Windows.old\Program Files\dotnet\sdk\2.2.301\MSBuild.dll
C:\Windows.old\Program Files\dotnet\sdk\NuGetFallbackFolder\microsoft.build.runtime\15.3.409\contentFiles\any\net46\MSBuild.exe
C:\Windows.old\Program Files\dotnet\sdk\NuGetFallbackFolder\microsoft.build.runtime\15.3.409\contentFiles\any\netcoreapp1.0\MSBuild.dll
C:\Windows.old\Program Files (x86)\Microsoft Visual Studio\2017\BuildTools\MSBuild\15.0\Bin\amd64\MSBuild.exe
C:\Windows.old\Program Files (x86)\Microsoft Visual Studio\2017\BuildTools\MSBuild\15.0\Bin\MSBuild.exe
C:\Windows.old\Program Files (x86)\Microsoft Visual Studio\2019\BuildTools\MSBuild\Current\Bin\amd64\MSBuild.exe
C:\Windows.old\Program Files (x86)\Microsoft Visual Studio\2019\BuildTools\MSBuild\Current\Bin\MSBuild.exe
C:\Windows.old\Program Files (x86)\MSBuild\12.0\Bin\MSBuild.exe
C:\Windows.old\WINDOWS\assembly\GAC_32\MSBuild\<IP_ADDRESS>__b03f5f7f11d50a3a\MSBuild.exe
C:\Windows.old\WINDOWS\assembly\GAC_64\MSBuild\<IP_ADDRESS>__b03f5f7f11d50a3a\MSBuild.exe
C:\Windows.old\WINDOWS\Microsoft.NET\assembly\GAC_32\MSBuild\v4.0_<IP_ADDRESS>__b03f5f7f11d50a3a\MSBuild.exe
C:\Windows.old\WINDOWS\Microsoft.NET\assembly\GAC_32\MSBuild\v4.0_<IP_ADDRESS>__b03f5f7f11d50a3a\MSBuild.exe
C:\Windows.old\WINDOWS\Microsoft.NET\assembly\GAC_64\MSBuild\v4.0_<IP_ADDRESS>__b03f5f7f11d50a3a\MSBuild.exe
C:\Windows.old\WINDOWS\Microsoft.NET\Framework\v2.0.50727\MSBuild.exe
C:\Windows.old\WINDOWS\Microsoft.NET\Framework\v3.5\MSBuild.exe
C:\Windows.old\WINDOWS\Microsoft.NET\Framework\v4.0.30319\MSBuild.exe
C:\Windows.old\WINDOWS\Microsoft.NET\Framework64\v2.0.50727\MSBuild.exe
C:\Windows.old\WINDOWS\Microsoft.NET\Framework64\v3.5\MSBuild.exe
C:\Windows.old\WINDOWS\Microsoft.NET\Framework64\v4.0.30319\MSBuild.exe

I guess any, or the latest.
I'm think that >

@isaacabraham try open vscode from a VS Command prompt.
if the msbuild is in PATH (like in VS command prompt) it should work.
That's the limitation to load fsx and old fsproj atm with FSAC .net core, because use msbuild to resolve system assemblu references (like System etc)

Also, the error message isn't very helpful, but I quickly figured it out the problem after I turned on verbose logging FSharp.verboseLogging.
Message: File 'b:\extern\workbench\fullstack\build.fsx' not parsed
  Code: -32603

Negative codes smell of integration errors (from the old COM days).
The real error is more helpful.

LSP output
[LSP] Notify - Canceled
(InfoRes
    "Request cancelled (exn was System.Exception: error getting msbuild info: unexpected MSBuildFailed
(1,
("C:\Users\LuizMonad\AppData\Local\Temp\tmp28AD.tmp",
    "C:\Program Files (x86)\Microsoft Visual Studio\2017\BuildTools\MSBuild\15.0\bin\MsBuild.exe",
    "C:\Users\LuizMonad\AppData\Local\Temp\tmp28AD.tmp\EnvironmentInfo.proj /t:_Inspect_GetProperties /p:_Inspect_GetProperties_OutFile=C:\Users\LuizMonad\AppData\Local\Temp\tmp28AE.tmp.GetProperties.txt /p:CustomAfterMicrosoftCommonTargets=C:\Users\LuizMonad\AppData\Local\Temp\tmp28AF.tmp.proj-info.hook.targets /nologo /verbosity:quiet"))
at Microsoft.FSharp.Core.PrintfModule.PrintFormatToStringThenFail@1647.Invoke(String message)
at System.Lazy`1.ViaFactory(LazyThreadSafetyMode mode)
at System.Lazy`1.ExecutionAndPublication(LazyHelper executionAndPublication, Boolean useDefaultConstructor)
at System.Lazy`1.CreateValue()
at Dotnet.ProjInfo.Workspace.NetFWInfo.LatestVersion()
at <StartupCode$FsAutoComplete-Core>.$CompilerServiceInterface.GetProjectOptionsFromScript@462.Invoke(Unit unitVar) in /Users/chris/Programming/ionide-vscode-fsharp/paket-files/github.com/fsharp/FsAutoComplete/src/FsAutoComplete.Core/CompilerServiceInterface.fs:line 462
at Microsoft.FSharp.Control.AsyncPrimitives.CallThenInvoke[T,TResult](AsyncActivation`1 ctxt, TResult result1, FSharpFunc`2 part2)
at Microsoft.FSharp.Control.Trampoline.Execute(FSharpFunc`2 firstAction))")

Msbuild output
PS C:\> invoke-expression ((h)[0].CommandLine)
Microsoft (R) Build Engine version 15.9.21+g9802d43bc3 for .NET Framework
Copyright (C) Microsoft Corporation. All rights reserved.

Build started 7/14/2019 6:51:49 PM.
Project "C:\Users\LuizMonad\AppData\Local\Temp\tmp9021.tmp\EnvironmentInfo.proj" on node 1 (_Inspect_GetProperties target(s)).
C:\Program Files (x86)\Microsoft Visual Studio\2017\BuildTools\MSBuild\15.0\bin\Microsoft.Common.CurrentVersion.targets(1179,5): error MSB3644: The reference assemblies for framework ".NETFramework,Version=v4.0" were not found. To resolve
this, install the SDK or Targeting Pack for this framework version or retarget your application to a version of the framework for which you have the SDK or Targeting Pack installed. Note that assemblies will be resolved from the Global Ass
embly Cache (GAC) and will be used in place of reference assemblies. Therefore your assembly may not be correctly targeted for the framework you intend. [C:\Users\LuizMonad\AppData\Local\Temp\tmp9021.tmp\EnvironmentInfo.proj]
Done Building Project "C:\Users\LuizMonad\AppData\Local\Temp\tmp9021.tmp\EnvironmentInfo.proj" (_Inspect_GetProperties target(s)) -- FAILED.

Build FAILED.

"C:\Users\LuizMonad\AppData\Local\Temp\tmp9021.tmp\EnvironmentInfo.proj" (_Inspect_GetProperties target) (1) ->
(GetReferenceAssemblyPaths target) ->
  C:\Program Files (x86)\Microsoft Visual Studio\2017\BuildTools\MSBuild\15.0\bin\Microsoft.Common.CurrentVersion.targets(1179,5): error MSB3644: The reference assemblies for framework ".NETFramework,Version=v4.0" were not found. To resolv
e this, install the SDK or Targeting Pack for this framework version or retarget your application to a version of the framework for which you have the SDK or Targeting Pack installed. Note that assemblies will be resolved from the Global A
ssembly Cache (GAC) and will be used in place of reference assemblies. Therefore your assembly may not be correctly targeted for the framework you intend. [C:\Users\LuizMonad\AppData\Local\Temp\tmp9021.tmp\EnvironmentInfo.proj]

    0 Warning(s)
    1 Error(s)

Time Elapsed 00:00:00.64

Which one of them should be in the path?
PS C:\> ls -Recurse -Include @("msbuild.exe"; "msbuild.dll") -ErrorAction SilentlyContinue | select -expand fullname
C:\Program Files\dotnet\sdk\2.2.301\ref\MSBuild.dll
C:\Program Files\dotnet\sdk\2.2.301\MSBuild.dll
C:\Program Files (x86)\Microsoft Visual Studio\2017\BuildTools\MSBuild\15.0\Bin\amd64\MSBuild.exe
C:\Program Files (x86)\Microsoft Visual Studio\2017\BuildTools\MSBuild\15.0\Bin\MSBuild.exe
C:\Program Files (x86)\Microsoft Visual Studio\2019\BuildTools\MSBuild\Current\Bin\amd64\MSBuild.exe
C:\Program Files (x86)\Microsoft Visual Studio\2019\BuildTools\MSBuild\Current\Bin\MSBuild.exe
C:\Program Files (x86)\MSBuild\12.0\Bin\MSBuild.exe
C:\Users\LuizMonad\.vscode\extensions\ms-vscode.csharp-1.20.0\.omnisharp\1.32.20\.msbuild\Current\Bin\MSBuild.exe
C:\Windows\assembly\GAC_32\MSBuild\<IP_ADDRESS>__b03f5f7f11d50a3a\MSBuild.exe
C:\Windows\assembly\GAC_64\MSBuild\<IP_ADDRESS>__b03f5f7f11d50a3a\MSBuild.exe
C:\Windows\Microsoft.NET\assembly\GAC_32\MSBuild\v4.0_<IP_ADDRESS>__b03f5f7f11d50a3a\MSBuild.exe
C:\Windows\Microsoft.NET\assembly\GAC_32\MSBuild\v4.0_<IP_ADDRESS>__b03f5f7f11d50a3a\MSBuild.exe
C:\Windows\Microsoft.NET\assembly\GAC_64\MSBuild\v4.0_<IP_ADDRESS>__b03f5f7f11d50a3a\MSBuild.exe
C:\Windows\Microsoft.NET\Framework\v2.0.50727\MSBuild.exe
C:\Windows\Microsoft.NET\Framework\v3.5\MSBuild.exe
C:\Windows\Microsoft.NET\Framework\v4.0.30319\MSBuild.exe
C:\Windows\Microsoft.NET\Framework64\v2.0.50727\MSBuild.exe
C:\Windows\Microsoft.NET\Framework64\v3.5\MSBuild.exe
C:\Windows\Microsoft.NET\Framework64\v4.0.30319\MSBuild.exe
C:\Windows\WinSxS\amd64_msbuild_b03f5f7f11d50a3a_10.0.17763.1_none_f5a7250c35a55a6e\MSBuild.exe
C:\Windows\WinSxS\amd64_msbuild_b03f5f7f11d50a3a_3.5.17763.1_none_e1dfb46a1ccf92e8\MSBuild.exe
C:\Windows\WinSxS\amd64_msbuild_b03f5f7f11d50a3a_4.0.15713.0_none_da500ddf9f3ce843\MSBuild.exe
C:\Windows\WinSxS\x86_msbuild_b03f5f7f11d50a3a_10.0.17763.1_none_3d545be34a218374\MSBuild.exe
C:\Windows\WinSxS\x86_msbuild_b03f5f7f11d50a3a_3.5.17763.1_none_85c118e6647221b2\MSBuild.exe
C:\Windows\WinSxS\x86_msbuild_b03f5f7f11d50a3a_4.0.15713.0_none_21fd44b6b3b91149\MSBuild.exe
C:\Windows.old\Program Files\dotnet\sdk\2.2.301\ref\MSBuild.dll
C:\Windows.old\Program Files\dotnet\sdk\2.2.301\MSBuild.dll
C:\Windows.old\Program Files\dotnet\sdk\NuGetFallbackFolder\microsoft.build.runtime\15.3.409\contentFiles\any\net46\MSBuild.exe
C:\Windows.old\Program Files\dotnet\sdk\NuGetFallbackFolder\microsoft.build.runtime\15.3.409\contentFiles\any\netcoreapp1.0\MSBuild.dll
C:\Windows.old\Program Files (x86)\Microsoft Visual Studio\2017\BuildTools\MSBuild\15.0\Bin\amd64\MSBuild.exe
C:\Windows.old\Program Files (x86)\Microsoft Visual Studio\2017\BuildTools\MSBuild\15.0\Bin\MSBuild.exe
C:\Windows.old\Program Files (x86)\Microsoft Visual Studio\2019\BuildTools\MSBuild\Current\Bin\amd64\MSBuild.exe
C:\Windows.old\Program Files (x86)\Microsoft Visual Studio\2019\BuildTools\MSBuild\Current\Bin\MSBuild.exe
C:\Windows.old\Program Files (x86)\MSBuild\12.0\Bin\MSBuild.exe
C:\Windows.old\WINDOWS\assembly\GAC_32\MSBuild\<IP_ADDRESS>__b03f5f7f11d50a3a\MSBuild.exe
C:\Windows.old\WINDOWS\assembly\GAC_64\MSBuild\<IP_ADDRESS>__b03f5f7f11d50a3a\MSBuild.exe
C:\Windows.old\WINDOWS\Microsoft.NET\assembly\GAC_32\MSBuild\v4.0_<IP_ADDRESS>__b03f5f7f11d50a3a\MSBuild.exe
C:\Windows.old\WINDOWS\Microsoft.NET\assembly\GAC_32\MSBuild\v4.0_<IP_ADDRESS>__b03f5f7f11d50a3a\MSBuild.exe
C:\Windows.old\WINDOWS\Microsoft.NET\assembly\GAC_64\MSBuild\v4.0_<IP_ADDRESS>__b03f5f7f11d50a3a\MSBuild.exe
C:\Windows.old\WINDOWS\Microsoft.NET\Framework\v2.0.50727\MSBuild.exe
C:\Windows.old\WINDOWS\Microsoft.NET\Framework\v3.5\MSBuild.exe
C:\Windows.old\WINDOWS\Microsoft.NET\Framework\v4.0.30319\MSBuild.exe
C:\Windows.old\WINDOWS\Microsoft.NET\Framework64\v2.0.50727\MSBuild.exe
C:\Windows.old\WINDOWS\Microsoft.NET\Framework64\v3.5\MSBuild.exe
C:\Windows.old\WINDOWS\Microsoft.NET\Framework64\v4.0.30319\MSBuild.exe

I guess any, or the latest.
How can I change to use the new project if FSX doesn't have project system?
Is that a FAKE problem?

I've encountered a similar issue. While using an anonymous record in a dependency project, I was unable to put any breakpoints. Refactoring away from anon records fixed the issue.
I couldn't figure out what was going on until I found the issue reported here.

I'm having the same issue with .NET core. I'm running on Linux (Ubuntu 18.04), Ionide 4.0.6
Repro steps:

Create a fresh folder, create a main.fsx file
Populate that fsx file with information. Open it in ionide
Relevant logs in the Fsharp debug output:

[LSP] Notify - Workspace (WorkspaceLoad true)
[LSP call] TextDocumentDidOpen - workspace ready
[LSP] Notify - Canceled
  (InfoRes
     "Request cancelled (exn was System.ComponentModel.Win32Exception (2): No such file or directory
   at System.Diagnostics.Process.StartCore(ProcessStartInfo startInfo)
   at System.Diagnostics.Process.Start()
   at Dotnet.ProjInfo.Workspace.Utils.runProcess(FSharpFunc`2 log, String workingDir, String exePath, String args)
   at Dotnet.ProjInfo.Inspect.msbuild[a](MSBuildExePath msbuildExe, FSharpFunc`2 run, String project, FSharpList`1 args)
   at Dotnet.ProjInfo.Inspect.getProjectInfo[a,b,c](FSharpFunc`2 log, FSharpFunc`2 msbuildExec, FSharpFunc`2 getArgs, FSharpList`1 additionalArgs, String projPath)
   at Dotnet.ProjInfo.Workspace.NETFrameworkInfoProvider.getInstalledNETVersions(MSBuildExePath msbuildHost)
   at System.Lazy`1.ViaFactory(LazyThreadSafetyMode mode)
   at System.Lazy`1.ExecutionAndPublication(LazyHelper executionAndPublication, Boolean useDefaultConstructor)
   at System.Lazy`1.CreateValue()
   at Dotnet.ProjInfo.Workspace.NetFWInfo.LatestVersion()
   at <StartupCode$FsAutoComplete-Core>.$CompilerServiceInterface.GetProjectOptionsFromScript@462.Invoke(Unit unitVar) in /Users/chris/Programming/ionide-vscode-fsharp/paket-files/github.com/fsharp/FsAutoComplete/src/FsAutoComplete.Core/CompilerServiceInterface.fs:line 462
   at Microsoft.FSharp.Control.AsyncPrimitives.CallThenInvoke[T,TResult](AsyncActivation`1 ctxt, TResult result1, FSharpFunc`2 part2)
   at Microsoft.FSharp.Control.Trampoline.Execute(FSharpFunc`2 firstAction))

@enricosada how do I change my PATH to point to msbuild? I cannot open from VS command prompt as I'm running on linux. I don't even know where msbuild is on my linux box... is that the dotnet executable?

Hey @thomastay,
I'm having the exact same issue, both with .net and .netcore, I'm on Windows 10.
Have you found a solution for this since then?
(If I open an actual project with an fsproj, then it works without any issues.)

I also struggle with netcore, but it does work when I changed it to net. Any idea of what I can do? How can I help debug this?

@mastoj did you set the useSdkScripts setting to true as well? And are you on .net core 3.0.100 at minimum?

@baronfel thanks, that solved it for me.


test #10 - want not changing milestone 2

want v0.0.4 not v0.0.3

OK
https://github.com/Code-Hex/auto-milestone-binder/runs/803838599?check_suite_focus=true


AA0214 - The record XXX should be modified before saving to the database.

Not sure about what warning AA0214 means. I've this part of code, resulting in error AA0214. What's wrong with this function?

 local procedure ProcessMessage(precMessage: Record "NVT b-Alert Read Message")
    var
        lrecObcIntegration: Record "NVT OBC Integration";
        ldatPrevMessage: DateTime;
    begin
        //     Processes a b-Alert message and imports it into the OBC integration table

        ldatPrevMessage := 0DT;

        lrecObcIntegration.Reset;
        lrecObcIntegration.SetCurrentkey(Trailer, "From DateTime");
        lrecObcIntegration.SetRange(Trailer, precMessage.Trailer);
        lrecObcIntegration.SetRange(Vehicle, '');
        if lrecObcIntegration.FindLast then begin
            if lrecObcIntegration."From DateTime" < precMessage."Time Stamp" then begin
                ldatPrevMessage := lrecObcIntegration."From DateTime";
                lrecObcIntegration.Validate("To DateTime", precMessage."Time Stamp");
                lrecObcIntegration.Modify;
            end
        end;

I also have this warning in procedures without Insert/Modify/Delete/Rename: these procedures are just reading the database.
Quite strange...

Same for me, even in the newest  AL Language extension (5.0.232930) this warning occurs. Sometimes twice for the same variable.

I have disabled AA0214 for now. I like the idea, but the current implementation is broken.
I checked about 100 AA0214 warnings a not a single one of them was anything to warn about.

@MarcHansenMicrosoft

same here:

The record Customer should be modified before saving to the database.AL(AA0214)
But I'm only reading it, not modifying.
P.S. sorry the useless code

Also merely using a function with a var parameter triggers a warning. Independent of its contents.

If this can't be fixed it would be practical to be able to individually ignore the "var" check, not lose to the other (then fixed) functionality as well while ignoring AA0214.

Not just reading, even when the local variable is modified, it still tells me to modify it

I don't get the message to begin with, what are you trying to catch here?

Nice variant here: Four copies (On the two variable definitions) of:
The record Field should be modified before saving to the database.
The record TempField should be modified before saving to the database.

A Filtered list of the 'Field' table is copied to 'TempField' and then "processed".

You can add line in settings.json
"al.ruleSetPath": "_BC.ruleset.json"
An put this _BC.ruleset.json in root directory to ignore this warnings.
This will not help solving the bug of course, and the risk is you can forget them once bug is solved

The record Rec2 should be modified before saving to the database.AL(AA0214)
Here is another one.
My I suggest running these rules on the base code before releasing them.
        trigger OnValidate()
        var
            Rec2: Record "ITF Template Setup";
        begin
            Rec2.SetRange(Usage, Rec.Usage);
            if Rec2.FindFirst() then
                Error(OnlyOneTxt, Rec2.Name);
        end;

Rule should be junked.

The fix in latest master branch version.

The fix in latest master branch version.

What exactly did you change? Just deleted the rule?
Btw, is the master branch available for public? This repo's master branch was updated in february ;)

@AndreasGloeckner You cannot use the published repo code for testing, but you must pull the latest bc insider docker container (bcsandbox-master). Only this docker container contains the latest VSIX version.

@AndreasGloeckner You cannot use the published repo code for testing, but you must pull the latest bc insider docker container (bcsandbox-master). Only this docker container contains the latest VSIX version.

Didn't want to use it for testing, just wanted to have a look in the source ;) But thanks for your feedback.

We did not removed the rule.
The rules had issues detecting the proper use of a variable this has been improved.

The reports of this issue being fixed have been greatly exaggerated. This is still an issue.
This code…
“    procedure ShowAssemblyRecords(OrderRequisition: Record "WC GAP07 Order Requisition")
var
AssemblyHeader: Record "Assembly Header";
PageManagement: Codeunit "Page Management";
RecordRef: RecordRef;
begin
with OrderRequisition do begin
Clear(AssemblyHeader);
AssemblyHeader.SetRange("WC GAP07 Ord. Req. No.", "No.");
if AssemblyHeader.IsEmpty then exit;
AssemblyHeader.FindFirst();
RecordRef.GetTable(AssemblyHeader);
”
Resulted in this error message…
The record AssemblyHeader should be modified before saving to the database.
{
"resource": "/c:/Repo/Bioworld/GAP07-Contract Print and Kit Types/src/codeunit/WCGAP07CreateAOs.Codeunit.al",
"owner": "generated_diagnostic_collection_name#0",
"code": "AA0214",
"severity": 4,
"message": "The record AssemblyHeader should be modified before saving to the database.",
"source": "AL",
"startLineNumber": 99,
"startColumn": 9,
"endLineNumber": 99,
"endColumn": 23
}
Only when I comment out the AssemblyHeader.SetRange("WC GAP07 Ord. Req. No.", "No."); does the error go away.

@ElmarFV I would recommend disabling that warning. It's not actually useful to begin with imo. Also, you are identifying your client with the resource folder.

if AssemblyHeader.IsEmpty then exit;
AssemblyHeader.FindFirst();

Personally I would simplify this to
if not AssemblyHeader.FindFirst() then exit;
Though I don't know what optimizations BC does under the hood for each statement, or what caching, so realistically, it may not matter.

If you have a more specific bug that hasn't been fixed, open a new issue for it, or it won't be.
Agreed that if not FindFirst() makes more sense. Also, the Clear() is totally redundant, since being a new local variable that hasn't been used yet, it's already clear by definition.


Avoid unnecessary heap allocs in actor invocation

Description
After profiling dapr runtime under high load invocation, we found two unnecessary memory allocations:

Do not create busy channel per invocation: actor busy channel is used to signal for draining actor. we create channel during lock() and close channel to signal to draining logic. Creating channel per invocation will create unnecessary channel allocations. Instead, we can use one channel to signal for draining actor. Original test, actor_test.go, can cover this scenario.

https://github.com/dapr/dapr/blob/9e87443bb625674489e046fe3eb96ebc9d86f74b/pkg/actors/actor_test.go#L52-L71

Do not alloc actor object per invocation: newActor will alloc unnecessary actor whenever actor is called.

        val, _ := a.actorsTable.LoadOrStore(key, newActor(actorTypeID.GetActorType(), actorTypeID.GetActorId()))
	act := val.(*actor)

New way will try to load first and allocate actors. But there is a chance to allocate multiple actor instance when actor does not exist. This allocated memory when activating actor will be trivial so we do not need lock for it.
Issue reference
We strive to have all PR being opened based on an issue, where the problem or feature have been discussed prior to implementation.
Please reference the issue this PR will close: #2093
Checklist
Please make sure you've  completed the relevant tasks for this PR, out of the following list:

[x] Code compiles correctly
[x] Created/updated tests
[x] Unit tests passing
[ ] End-to-end tests passing
[ ] Extended the documentation / Created issue in the https://github.com/dapr/docs/ repo: dapr/docs#[issue number]
[ ] Specification has been updated / Created issue in the https://github.com/dapr/docs/ repo: dapr/docs#[issue number]
[ ] Provided sample for the feature / Created issue in the https://github.com/dapr/docs/ repo: dapr/docs#[issue number]

fixing unit-test :)


Rv32 typo

7.33. KHMBB, KHMBT, KHMTT Operations block contains the following:
Rd = SE32(Mres32.H[0]); // Rv32
Rv32 should be replaced with RV32 for consistency.

Thanks. We will fix this in the next release.


[Bug] Users who has hotmail or yahoo will not receive email confirmation

since launch, we've received signup issues from server users. When checking our db we realized that they all either have hotmail or yahoo email addresses. we created our own hotmail and yahoo email inbox and we did not receive email confirmations.
mailgun doesn't seem to work well with hotmail and yahoo. Please evaluate other email services to see if we can resolve this issue.

Found a StackOverflow on an issue that sounds pretty similar https://stackoverflow.com/questions/52452138/delivery-issue-hotmail-and-yahoo#:~:text=The solution was on the,again later because it works.

superseeded by this issue: https://github.com/garageScript/c0d3-app/issues/807


support grape 0.16.2

stop using deprecated route APIs. fixes these warnings
/Users/sumeet/remind/grape-swagger/lib/grape-swagger.rb:20: The route_xxx methods such as route_path have been deprecated, please use path.
/Users/sumeet/remind/grape-swagger/lib/grape-swagger.rb:20: The route_xxx methods such as route_prefix have been deprecated, please use prefix.
/Users/sumeet/remind/grape-swagger/lib/grape-swagger.rb:20: The route_xxx methods such as route_path have been deprecated, please use path.
/Users/sumeet/remind/grape-swagger/lib/grape-swagger.rb:20: The route_xxx methods such as route_prefix have been deprecated, please use prefix.
/Users/sumeet/remind/grape-swagger/lib/grape-swagger.rb:20: The route_xxx methods such as route_path have been deprecated, please use path.
/Users/sumeet/remind/grape-swagger/lib/grape-swagger.rb:20: The route_xxx methods such as route_prefix have been deprecated, please use prefix.
/Users/sumeet/remind/grape-swagger/lib/grape-swagger.rb:20: The route_xxx methods such as route_path have been deprecated, please use path.
/Users/sumeet/remind/grape-swagger/lib/grape-swagger.rb:20: The route_xxx methods such as route_prefix have been deprecated, please use prefix.

Seems ok. Why are we using a fork do you know?

@bmarini yeah, mostly because of this: https://github.com/remind101/grape-swagger/pull/3 (which i'm pretty sure we can reimplement with the lamda syntax here: https://github.com/ruby-grape/grape-swagger#hiding-an-endpoint
there's also something josh wiseman added around hidden attributes, but we're not using em so we can probably get rid of that feature.
latest grape-swagger also uses an updated version of swagger and swagger-ui, so i'm gonna see if we can get on those


How to wrap code blocks with custom HTML?

Am trying to get the code block to have some styling using the div with those classes, but it seems the block is being created empty! Any ideas?
const exampleOne = `
# Hello

I am trying to work with React & markdown!

\`Hello\`

    This blockquote will change based on the HTML settings above.

\`\`\`js
var React = require('react');
var Markdown = require('react-markdown');

React.render(
    <Markdown source="# Your markdown here" />,
    document.getElementById('content')
);
\`\`\`

`

export default exampleOne

Yes, unfortunately the HTML support is basically broken in this regard.
You could instead override the code renderer:
const React = require('react')
const ReactDOM = require('react-dom')
const Markdown  = require('react-markdown')

const exampleOne = `
# Hello

I am trying to work with React & markdown!

\`Hello\`

    This blockquote will change based on the HTML settings above.

\`\`\`js
var React = require('react');
var Markdown = require('react-markdown');

React.render(
    <Markdown source="# Your markdown here" />,
    document.getElementById('content')
);
\`\`\`
`

const DefaultCodeRenderer = Markdown.renderers.code

const CodeRenderer = props => {
  return
<DefaultCodeRenderer {...props} />

}

ReactDOM.render(
  <Markdown source={exampleOne} renderers={{code: CodeRenderer}} />,
  document.getElementById('root')
)

Thanks, but where can I find a list of all renderers?

It's in the readme; https://github.com/rexxars/react-markdown/#node-types

Wow, I missed that! Sorry to bother!


[Hacktoberfest]: Update Content for GitHub Universe

🆕🐥☝ Beginners Only:
This issue is reserved for people who are new to Open Source. We know that the process of creating a pull request is the biggest barrier for new contributors. This issue is for you 💝
To do:
The README for this project has some repeat/placeholder comments. If you look at the look at the Readme you will see resources, articles, webpages, videos etc that have the same generic comment to describe them. We'd like the specific information to replace those placeholder texts
📋 Step by Step
Step by Step

🙋 Claim this issue by commenting on it.
Create a New Branch How to branch, Commit, Pull, Merge - start at step2
Make your change - I use Github Desktop and Visual Studio Code so I don't have to do anything via the command-line, but if you like the command-line git on with it ;-)

The change I suggest is go to the Conferences Table, starts around line 164. Edit the GitHub Universe line so that it reads:
| [GitHub Universe](https://githubuniverse.com/) | GitHub | 10 | Explore the future of software development |

Commit it Make it a good one
Make a Pull Request Tell us what you did
We'll review it and merge it in
Add yourself as a Contributor to the bottom of the Readme.md using the same formatting as the others in the list

Remember to observe the Code of Conduct - by which we mean, in short - Be Kind, Be Positive, Be Helpful

Hey @msandfor can I work on this?

Of course @punitaojha - go right ahead

Hey @msandfor can I work on this?

Sure, whoever pulls first gets it :-)

Hey @msandfor can I work on this issue?

Hello this issue is already fixed. I did work on this and it is merged as well.

I think we can close this.

Oops Yes, so you did


GH Actioin unit test test-annoations version upgrade

Version upgrade for GH action. From v0.1 to v0.6
https://github.com/marketplace/actions/golang-test-annotations
Fail https://github.com/lf-edge/eve/actions/runs/3412402713/jobs/5696560081
Signed-off-by: Ruslan Dautov<EMAIL_ADDRESS>

unittest fails with
Error: Unable to resolve action<EMAIL_ADDRESS>unable to find version v0.6


Squelch a 3.7+ Decprecation warning (and breakage in 3.9)

I really like this package! When I use it from 3.7+ I get the Decprecation message:
 ...site-packages/pqdict/__init__.py:37: DeprecationWarning: Using or importing the ABCs from 'collections' instead of from 'collections.abc' is deprecated since Python 3.3,and in 3.9 it will stop working
    from collections import MutableMapping as _MutableMapping

I'll put in a PR for this soon.

Wonderful! Thank you!


Forth: Problem with "ttester.fs with extension for Codewars"

About a function "buddy" that returns two numbers on the stack.
In each case input is: 23 4669. Correct answer is: 48 75.
test: <{ 23 4669 buddy -> 48 75 }> (expected is correct)
function returns: 48 75 (correct result)
test answer: test passed

test : <{ 23 4669 buddy -> 48 750 }> (expected is wrong)
function returns: 48 75 (correct result)
test answer: Expected 750 48 , got 75 48 (numbers are swapped)

test: <{ 23 4669 buddy -> 75 48 }> (expected is wrong)
function returns: 48 75 (correct result)
test answer: Expected 48 75 , got 75 48 (expected and actual are swapped)

test: test : <{ 23 4669 buddy -> 48 75 }> (expected is correct)
function returns: 75 48 (wrong result)
test answer: Expected 75 48 , got 48 75 (expected and actual are swapped)

Stack order in testcase has bottom of stack to the left, and top of stack to the right, as is customary in Forth. In the reporting, the top of the stack is reported first, then below items are shown. This might confuse some people. Therefore change the reporting such that the bottom of the stack is reported first, then items above it are shown. The result will be that the order of reporting is the same as the left-right order of the test case.

Will that enhancement correct the swap of actual and expected when result or test are wrong?

Yes, it will display them "swapped" as you say.

Thanks ! I will try.

I'll close this when #11 is deployed.

Deployed

Replying to comment of @g964

Seems correct.
Nevertheless when I ".s" at the end of my function that returns only two values (48 and 75 for example in this case) I get 6 values:
<6><PHONE_NUMBER>519787 0<PHONE_NUMBER>519787 0 48 75

Where "1566368372519787 0<PHONE_NUMBER>519787 0" comes from? These numbers change from one run to another one.
Besides at the end appears:
Completed in<PHONE_NUMBER>24445438007248728644284340.624 ms

(or something else of the same kind) which seems a bit strange...

That can happen in case there's a stack depth mismatch, i.e. a mismatch in the number of arguments. In that case the user has a lot more to worry about than knowing the time it took the code to run to completion...

It happens even if there is no stack mismatch and the test succeeds.

I don't see that when running tests. If you experience an issue with timing info, please open a new issue for that.


Feature request: Prefix sub- and superscripts

This is a feature LaTeX has been lacking for a long time. It seems really basic. Would it be possible to implement this in Typst?

There are many ways of doing this in LaTeX
https://tex.stackexchange.com/questions/11542/left-and-right-subscript-superscript
Looking at the Typst source it would seemingly require a more flexible AttachElem

Actually this feature can be implemented in LaTeX: Left and right subscript / superscript - TeX - LaTeX Stack Exchange
That having said, these are some attempt to implement it in Typst:
#let presup(x) = [$#h(1pt)^(#x)#h(-1pt)$]
hello world $1+2^3 + presup(3) 2 + presup(3)(4/5)^3$

The attempt above does not take into account the height of the element itself. This is another attempt:
#let presup(script, body) = style(styles=>{
  let bodysize = measure(body, styles);
  let scriptsize = measure([$#h(0pt)^(script)$], styles);
  [$
  #h(scriptsize.width - 0.5pt)
  #body ^ (#h(-bodysize.width -scriptsize.width+0.5pt) #script )$]
})
hello world $1+2^3 + presup(3, 2) + presup(3, (4/5))^3 + presup(333, (sqrt(4)/5))$

hello world $1+2^3 + (4/5)^3 + (sqrt(4)/5)^3$

but for some reason this makes the placement of the superscript after the body incorrect.

I think it would be good to explain how spacing works in math mode exactly so it wouldn't be necessary to write fragile code that "guesses" the amount of spacing required like I did in the code above.

I came up with this solution:
#let zerowidth(x) = {
  style(styles => v(measure(x, styles).height))
};
#let fullattach(x, ptop: none, pbottom: none, top: none, bottom: none) = {
  let zw = zerowidth($ #x $);
  $ attach(#zw, top: ptop, bottom: pbottom) attach(#x, top: top, bottom: bottom) $
}

Example:
$
fullattach(x, ptop: 1, pbottom: 2, top: 3, bottom: 4)
fullattach(vec(1, 2, 3), ptop: 1, pbottom: 2, top: 3, bottom: 4)
$

"math style" (TeX term, not sure what the corresponding Typst term is) still doesn't seem to work too well though. Not sure what can be done about this.

#let zerowidth(x) = {
  style(styles => v(measure(x, styles).height))
};
#let fullattach(x, ptop: none, pbottom: none, top: none, bottom: none) = {
  let zw = zerowidth($ #x $);
  $ attach(#zw, top: ptop, bottom: pbottom) attach(#x, top: top, bottom: bottom) $
}

$
fullattach(x, ptop: 1, pbottom: 2, top: 3, bottom: 4)
fullattach(vec(1, 2, 3), ptop: 1, pbottom: 2, top: 3, bottom: 4)

+

2^(
fullattach(x, ptop: 1, pbottom: 2, top: 3, bottom: 4)
fullattach(vec(1, 2, 3), ptop: 1, pbottom: 2, top: 3, bottom: 4)
)
$

This has been implemented in typst 0.3.0.


"Re-using environment state in sub-helmfiles"

Operating system
NixOS
Helmfile Version
0.155.1
Helm Version
version.BuildInfo{Version:"v3.12.2", GitCommit:"v3.12.2", GitTreeState:"", GoVersion:"go1.20.6"}
Bug description
In Documentation describted "Re-using environment state in sub-helmfiles", which i found here:
Advanced Features > Best Practices Guide > Re-using environment state in sub-helmfiles
https://helmfile.readthedocs.io/en/stable/writing-helmfile/#re-using-environment-state-in-sub-helmfiles
Does not work:
Example helmfile.yaml
Here in a git: https://github.com/wrenix/helmfile-bugs/tree/948
helmfile.yaml
environments:
  stage:
    values:
    - env/stage.yaml
  prod:
    values:
    - env/prod.yaml

---

helmfiles:
 - path: sub-helmfile.yaml
   values:
    - {{ toYaml .Values | nindent 4 }}

sub-helmfile.yaml
releases:
  - name: "a"
    chart: "a/a"
    installed: {{ .Values.enabled }}

env/prod.yaml
enabled: true

env/stage.yaml
enabled: false

Error message you've seen (if any)
❯ helmfile -e prod list -f helmfile.yaml
in ./helmfile.yaml: failed to read helmfile.yaml: reading document at index 1: yaml: line 8: did not find expected '-' indicator

❯ helmfile -e stage list -f helmfile.yaml
in ./helmfile.yaml: failed to read helmfile.yaml: reading document at index 1: yaml: line 8: did not find expected '-' indicator

Expected:
❯ helmfile -e stage list
NAME	NAMESPACE	ENABLED	INSTALLED	LABELS	CHART	VERSION
a   	         	true   	false    	      	a/a

❯ helmfile -e prod list
NAME	NAMESPACE	ENABLED	INSTALLED	LABELS	CHART	VERSION
a   	         	true   	true     	      	a/a

Steps to reproduce
helmfile -e prod list
Working Helmfile Version
no-idea
Relevant discussion
No response

update sub-helmfile.yaml:
environments:
  prod: {}

---
releases:
  - name: "a"
    chart: "a/a"
    installed: {{ .Values.enabled }}

@wrenix docs need to be updated. PR is welcome.

@zach-hill please show your logs.

@yxxhero
In your example helmfile -e stage list -f helmfile.yaml should not work.
But mainly, i do not like to list every environment in every sub-helmfile.yaml.
I want to publish the sub-helmfile.yaml but not the helmfile.yaml with all my environments (and values) ....

@zach-hill yeah. I see. sub-helmfile is designed to run on its own, and so far this is as expected. Specific need to answer  @mumoshu

We also ran into this issue. Was hoping for this to be fixed as part of https://github.com/helmfile/helmfile/issues/913, as it's kind of related. It was working pre-v0.155.0, so with v0.155 this behavior changed, which is unfortunate.
We also want to keep our files DRY; so would highly appreciate if there is a way to have the previous behavior back.
As a workaround I have
bases:
  - ../bases/environments.yaml

at the start of my sub-helmfile, and then outsource these ...
environments:
  prod: {}

... statements to this file, while also defining the actual environment-spec in the root helmfile.yaml. So not really DRY :-)

nice workaround for current git solution, but in the future i like to fetch sub-helm fronm a different repo like: path: git::https://github.com/cloudposse/helmfiles.git@releases/kiam.yaml?ref=0.40.0 - this does not support bases and we did not like to references to your environment inside a public sub-helmfile

@sjentzsch please try to use v0.155.1.

@yxxhero I am on v0.155.1, https://github.com/helmfile/helmfile/issues/913 was released with v0.155.1, but neither this MR nor v0.155.1 does fix this issue.

@sjentzsch what's you issue?

This is the error, which only occurs since v0.155.0, when having sub-helmfiles and making use of https://helmfile.readthedocs.io/en/stable/writing-helmfile/#re-using-environment-state-in-sub-helmfiles:

err: no releases found that matches specified selector() and environment(wl-prepf01), in any helmfile

@sjentzsch Ok.  I will see what happend.

@sjentzsch https://github.com/helmfile/helmfile/tree/950-no-releases-found-that-matches-specified-selector-and-environment  could try to use this branch?

@yxxhero works perfectly, just tested with your branch!

yes it fixed it :)


Auto scroll sticky ToC with content

This is an enhancement or feature.
Summary
Make sticky ToC scroll with content. Uses window.getComputedStyle API to ensure scrolling only happens on wide screens.
Preview: My blog (I've had this snippet on my site for long)

Can you please tell me why the right sidebar does not use the styles that are default in the left sidebar?
.sidebar__right.sticky {
    overflow-y: auto;
    height: calc(100vh - 2em - 2em);
}

For all sticky sidebars to have scrolling?

@team-community That CSS only works for the left sidebar. If applied to the right sidebar the height will be wrong and it'll still overflow beyond the viewport.

This is because the table of contents sidebar isn't flush with the top of the main container like the left sidebar is. Because it's not flush at the top there's no easy way to determine the height unless some JavaScript is applied to figure that out.
Ideally the table of contents sidebar on the right would be flush at the top and align with the left sidebar, but there are some limitations due to where in the DOM it's placed. It's inside the page content container and comes after the h1 headline... which is where the extra space above it is from (causing it to push down).

@mmiss
it can no float and  no absolute to sticky.
sidebar__right {
position: sticky;
    top: 0px;
    right: unset;
    width: 200px;
    margin-left: 100%;
    margin-right: unset;
    padding-left: 1em;
    z-index: 10;
    height: 0px;
    overflow: visible;
  .toc{
    max-height: 60vh;
    overflow: auto;
}
}

if add javascript
it can
        document.addEventListener('scroll',e=>{
            let size = document.documentElement.getBoundingClientRect();
            let size2 = document.querySelector('.initial-content').getBoundingClientRect().y;
            let size3 = document.querySelector('.page__content').getBoundingClientRect().y;
            Object.entries(
                {
                    '--scroll-height':size.height+'px',
                    '--scroll-top':0-size.y+'px',
                    '--scroll-top2':size.y+'px',
                    '--scroll-innerheight':window.innerHeight+'px',
                    '--scroll-bottom':window.innerHeight-size.y+'px',
                    '--scroll-y':0-size.y>200?window.innerHeight-size.y+'px':false,
                    '--initial-content-y':size2+'px',
                    '--page-content-y':size3+'px',
                    '--page-content-py':size3>0?size2-size3+'px':'0px',
                }).forEach(entry=>{
                    document.documentElement.style.setProperty(entry[0],entry[1]);
                });
        })

.sidebar__right {
    position: sticky;
    top: 0px;
    right: unset;
    width: 200px;
    margin-left: 100%;
    margin-right: unset;
    padding-left: 1em;
    z-index: 10;
    height: 0px;
    overflow: visible;
    transform: translateY(var(--page-content-py,0px));
    transition: all .3s;
}

Well, review was definitely needed. Proof bce2b505563c422145a2306151c879e717932b00.
Now I have no idea how my code "worked" for years.


POST /test-run, 500 Error: Internal Server Error ReferenceError: it is not defined

After installing the docker container, I tried to call POST /test-run through the swagger, got the following error in response: 500 Error: Internal Server Error ReferenceError: it is not defined.
Request body:
{
  "name": "Image name",
  "os": "Mac",
  "browser": "Chrome",
  "viewport": "800x600",
  "device": "PC",
  "branchName": "master",
  "diffTollerancePercent": 1,
  "ignoreAreas": [
    {
      "x": 10,
      "y": 20,
      "width": 300,
      "height": 400
    }
  ],
  "imageBase64": "123"
}

Responses:
500 Error: Internal Server Error
{
  "path": "/test-runs",
  "name": "ReferenceError",
  "message": "it is not defined",
  "exception": {},
  "stack": "
	ReferenceError: it is not defined
	at Object.transformFn (/dist/test-runs/dto/create-test-request.dto.js:59:13)
	at /node_modules/class-transformer/cjs/TransformOperationExecutor.js:358:30
	at Array.forEach (<anonymous>)
	at TransformOperationExecutor.applyCustomTransformations (/node_modules/class-transformer/cjs/TransformOperationExecutor.js:357:19)
	at TransformOperationExecutor.transform (/node_modules/class-transformer/cjs/TransformOperationExecutor.js:300:47)
	at ClassTransformer.plainToInstance (/node_modules/class-transformer/cjs/ClassTransformer.js:27:25)
	at Object.plainToClass (/node_modules/class-transformer/cjs/index.js:34:29)
	at ValidationPipe.transform (/node_modules/@nestjs/common/pipes/validation.pipe.js:51:39)
	at /node_modules/@nestjs/core/pipes/pipes-consumer.js:16:33
	at processTicksAndRejections (internal/process/task_queues.js:97:5)"
}

@alexstepanyuk thank for reporting
could you check with proper imageBase64 value?
need to know whether it's general issue or just validation message to fix

ImageBase64 value was checked, error occurs for any value. Also dotnet code with real screen also returned this error.
We also tested POST /test-runs/multipart. With valid values, it throws the following error:
{
  "path": "/test-runs/multipart",
  "name": "SyntaxError",
  "message": "Unexpected end of JSON input",
  "exception": {},
  "stack": "SyntaxError: Unexpected end of JSON input
        at JSON.parse (<anonymous>)
        at Object.transformFn (/dist/test-runs/dto/create-test-request.dto.js:61:21)
        at /node_modules/class-transformer/cjs/TransformOperationExecutor.js:358:30
        at Array.forEach (<anonymous>)
        at TransformOperationExecutor.applyCustomTransformations (/node_modules/class-transformer/cjs/TransformOperationExecutor.js:357:19)
        at TransformOperationExecutor.transform (/node_modules/class-transformer/cjs/TransformOperationExecutor.js:300:47)
        at ClassTransformer.plainToInstance (/node_modules/class-transformer/cjs/ClassTransformer.js:27:25)
        at Object.plainToClass (/node_modules/class-transformer/cjs/index.js:34:29)
        at ValidationPipe.transform (/node_modules/@nestjs/common/pipes/validation.pipe.js:51:39)
        at /node_modules/@nestjs/core/pipes/pipes-consumer.js:16:33"
}

I am also facing the same issue with dotnet sdk -
Responses: 500 Error: Internal Server Error,
Working fine when called the same api(with same values) with postman.

Do you know what could be the issue with dotnet sdk?

could you reproduce the same issue with dotnet sdk with example from here?
https://github.com/Visual-Regression-Tracker/examples-dotnet

could you reproduce the same issue with dotnet sdk with example from here? https://github.com/Visual-Regression-Tracker/examples-dotnet

yes

The Issue is with the merge field inside CreateTestRequestDto, even if we pass the value it is failing, without pass it is taking default value.
After removing the merge field it is working as expected.

@arvindgh, please, can you tell me, how to make it work properly at the moment? Where to remove the merge field?

@alexstepanyuk Remove the field from APIClient.cs in the obj folder
Also move this file to your project folder and remove the swagger dependency, so that it wont create this file on each build.

Got this error when I try to add ignoreAreas object. Without this object it works.
With ignoreAreas request:
https://gist.github.com/wasder/e6107122ac8e7f4b643e9dcef8197a8e
Response:
[Nest] 22  - 08/05/2022, 5:02:32 PM     LOG [TestRunsService] Try AutoApproveByNewBaselines testRun: e95486f9-09ba-4def-bb3c-8e6192ec536b
[Nest] 22  - 08/05/2022, 5:10:25 PM   ERROR [ReferenceError: it is not defined
    at Object.transformFn (/dist/test-runs/dto/create-test-request.dto.js:59:13)
    at /node_modules/class-transformer/cjs/TransformOperationExecutor.js:358:30
    at Array.forEach (<anonymous>)
    at TransformOperationExecutor.applyCustomTransformations (/node_modules/class-transformer/cjs/TransformOperationExecutor.js:357:19)
    at TransformOperationExecutor.transform (/node_modules/class-transformer/cjs/TransformOperationExecutor.js:300:47)
    at ClassTransformer.plainToInstance (/node_modules/class-transformer/cjs/ClassTransformer.js:27:25)
    at Object.plainToClass (/node_modules/class-transformer/cjs/index.js:34:29)
    at ValidationPipe.transform (/node_modules/@nestjs/common/pipes/validation.pipe.js:51:39)
    at /node_modules/@nestjs/core/pipes/pipes-consumer.js:16:33
    at processTicksAndRejections (internal/process/task_queues.js:97:5)] ReferenceError: it is not defined

Without:
https://gist.github.com/wasder/cc8e8dcff896164c1800cab766b2846a
API ver 4.20.2

So does this need fixing in the dotnet sdk, or in the api package?

Reproduced the same issue with our wrapper for swift, so looks like need to fix on the backend

@polyvisual @nGervasyuk right, it should be fixed on backend
this line refers no not defined variable it
https://github.com/Visual-Regression-Tracker/backend/blob/0a3edf80c4170e3aecaa74dc9ff32674ef2c4f91/src/test-runs/dto/create-test-request.dto.ts#L42

@pashidlos
any information on this issue?

@pashidlos is there any chance this will be fixed?

@pashidlos I have created a PR at https://github.com/Visual-Regression-Tracker/backend/pull/199
It took a bit of work to get the postgres docker, vrt backend and vrt frontend running, but I managed to successfully create a test in vrt.

@polyvisual thanks for contribution!
gonna make a release for it af ter merged


Fix a problem of p[k]

The code of line 70 missed a [k]

 Thank you for your submission! We really appreciate it. Like many open source projects, we ask that you sign our Contributor License Agreement before we can accept your contribution.You have signed the CLA already but the status is still pending? Let us recheck it.

Thanks!

And I want to know when will cvxpy website be updated? Thank you!

Done.

Yeah, really appreciated!


installcredprovider.ps1 script fails to install in Windows NanoServer container

Repro
Dockerfile:
FROM mcr.microsoft.com/dotnet/core/sdk AS build

SHELL ["pwsh", "-Command", "$ErrorActionPreference = 'Stop'; $ProgressPreference = 'SilentlyContinue';"]

RUN Invoke-WebRequest https://raw.githubusercontent.com/microsoft/artifacts-credprovider/master/helpers/installcredprovider.ps1 -OutFile installcredprovider.ps1; \
    .\installcredprovider.ps1; \
    del installcredprovider.ps1

When attempting to build this Dockerfile in a Docker environment that is configured to target Windows containers, it produces the following output:
Step 1/3 : FROM mcr.microsoft.com/dotnet/core/sdk AS build
 ---> f59dc59fcbf8
Step 2/3 : SHELL ["pwsh", "-Command", "$ErrorActionPreference = 'Stop'; $ProgressPreference = 'SilentlyContinue';"]
 ---> Running in 589409fe2e51
Removing intermediate container 589409fe2e51
 ---> 4d6dfec94325
Step 3/3 : RUN Invoke-WebRequest https://raw.githubusercontent.com/microsoft/artifacts-credprovider/master/helpers/installcredprovider.ps1 -OutFile installcredprovider.ps1;     .\installcredprovider.ps1;     del installcredprovider.ps1
 ---> Running in 9313d908f220
Fetching release https://api.github.com/repos/Microsoft/artifacts-credprovider/releases/latest

    Directory: C:\Windows\TEMP

Mode                 LastWriteTime         Length Name
----                 -------------         ------ ----
d----           7/10/2020  8:33 AM                CredProviderZip
Downloading https://github.com/microsoft/artifacts-credprovider/releases/download/v0.1.24/Microsoft.NetCore2.NuGet.CredentialProvider.zip to C:\Windows\TEMP\CredProviderZip\Microsoft.NetCore2.NuGet.CredentialProvider.zip
Extracting zip to the Credential Provider temp directory C:\Windows\TEMP\CredProviderZip
Copy-Item : Cannot find path 'C:\Windows\TEMP\CredProviderZip\plugins\netcore\CredentialProvider.Microsoft' because it does not exist.
At C:\installcredprovider.ps1:129 char:1
+ Copy-Item $tempNetcorePath -Destination $fullNetcoreCredProviderPath  ...
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
+ CategoryInfo          : ObjectNotFound: (C:\Windows\TEMP\Cre…lProvider.Microsoft:String) [Copy-Item], ItemNotFoundException
+ FullyQualifiedErrorId : PathNotFound,Microsoft.PowerShell.Commands.CopyItemCommand

The command 'pwsh -Command $ErrorActionPreference = 'Stop'; $ProgressPreference = 'SilentlyContinue'; Invoke-WebRequest https://raw.githubusercontent.com/microsoft/artifacts-credprovider/master/helpers/installcredprovider.ps1 -OutFile installcredprovider.ps1;     .\installcredprovider.ps1;     del installcredprovider.ps1' returned a non-zero code: 1

The underlying reason for this is identified by https://github.com/PowerShell/PowerShell-Docker/issues/188 which demonstrates that the TEMP directory cannot be read from.
The suggestion is to update the script to not make use of the TEMP directory.

I should note that this is specific to Windows Nano Server, version 1809 and newer.  The TEMP directory issue doesn't exist in earlier versions.

It looks like a regression bug in Windows Nano Server. The install script is doing the right thing using the temp folder. To workaround the issue you can manually edit the script and hard code a path you have access to write the CredProvider

The install script isn't doing the right thing if it doesn't work in the environment.  Why not change the script so that it can work in all environments?

Workaround (USER ContainerAdministrator) not working for me in local Docker (Docker Desktop 4.4.4)...
It was working a few months ago...
Step 1/14 : FROM mcr.microsoft.com/dotnet/framework/sdk:4.8 AS build
4.8: Pulling from dotnet/framework/sdk
Digest: sha256:77744689f61e4813ec84f34ef9cdbe518434f3ce9b55dda3cb27e6ab4cd3d813
Status: Image is up to date for mcr.microsoft.com/dotnet/framework/sdk:4.8
 ---> 11cf867ecf65
Step 2/14 : USER ContainerAdministrator
 ---> Running in 945298d14dbe
Removing intermediate container 945298d14dbe
 ---> 135e9f2510ff
Step 3/14 : RUN powershell Invoke-WebRequest https://raw.githubusercontent.com/microsoft/artifacts-credprovider/master/helpers/installcredprovider.ps1 -OutFile installcredprovider.ps1;     .\installcredprovider.ps1;     del installcredprovider.ps1
 ---> Running in 60c5c7d0845f
container 60c5c7d0845f506328ab668410328104952624f42e7cacaeb6d1f8f989efbe82 encountered an error during hcsshim::System::CreateProcess: failure in a Windows system call: The user name or password is incorrect. (0x52e)
[Event Detail:  Provider: 00000000-0000-0000-0000-000000000000]

But for Azure DevOps on windows-2019 agent, it is working...

Fixed it by modifying Dockerfile:
FROM mcr.microsoft.com/dotnet/framework/sdk:4.8 AS build

# Change user to workaround https://github.com/microsoft/artifacts-credprovider/issues/201
#USER ContainerAdministrator
# Install the cred provider (https://github.com/Microsoft/artifacts-credprovider)
SHELL ["powershell", "-Command", "$ErrorActionPreference = 'Stop'; $ProgressPreference = 'SilentlyContinue';"]
RUN [Net.ServicePointManager]::SecurityProtocol = [Net.SecurityProtocolType]::Tls12; \
	Invoke-WebRequest http://aka.ms/install-artifacts-credprovider.ps1 -OutFile installcredprovider.ps1; \
	.\installcredprovider.ps1; \
	del installcredprovider.ps1

See:

commented USER change
added SHELL command
added [Net.ServicePointManager]::SecurityProtocol = [Net.SecurityProtocolType]::Tls12; to enable TLS 1.2

RUN [Net.ServicePointManager]::SecurityProtocol = [Net.SecurityProtocolType]::Tls12;
Invoke-WebRequest http://aka.ms/install-artifacts-credprovider.ps1 -OutFile installcredprovider.ps1;
.\installcredprovider.ps1;
del installcredprovider.ps1

I did this change @Saibamen , but facing this issue.
##[error]failed to create shim task: OCI runtime create failed: runc create failed: unable to start container process: exec: "pwsh": executable file not found in $PATH: unknown
##[error]The process '/usr/bin/docker' failed with exit code 1

use powershell instead of pwsh


Add pretty print button

Perhaps we could get @FPtje's help in using glualint-web
Falco did it on his glualint-web site

What you would need for both linting and pretty printing is an API into the Haskell code that does all this stuff. Note that the javascript code for these two things would get pretty big.

My plan:

Follow these steps to expose the Haskell to JS
Stick the compiled output + the call to the Haskell's main() in a single file, while following these steps to keep the exposed functions around when I:
Shove it into Closure Compiler to hopefully drastically reduce the filesize
Use the optimized output in the extension

I finally got my Haskell -> JS compilation environment set up. It only took 4.75 hours.
For future me, here's the steps.

sudo add-apt-repository ppa:hvr/ghc; sudo apt-get update
sudo apt-get install ghc-7.10.2
export PATH="/opt/ghc/7.10.2/bin:$PATH"
sudo apt-get install cabal-install
cabal update
cabal install http://ghcjs.luite.com/master.tar.gz
export PATH="$HOME/.cabal/bin:$PATH"
ghcjs-boot
git clone https://github.com/FPtje/GLuaFixer; cd GLuaFixer
cabal sandbox init
echo "compiler: ghcjs" >> cabal.config
cabal install --ghcjs --only-dependencies
sudo apt-get install uuagc
./AGGenerator.sh
cabal build glualint

Now I can finally start hacking on glualint-web.

Progress!

Well, I've got the lint function pretty much done.

(I'm not sure what took longer - learning enough Haskell to get that working or getting my compilation environment set up...)
I also ran the compiled output through the Closure Compiler (I had to use the application because the file was too large for the API):
java -jar closure-compiler-v20170218.jar --js all.js --js_output_file compiled.js --compilat ion_level ADVANCED
The file went from ~3.7MB to ~1.0MB which I would still say is too large but closer to acceptable (a typical Facepunch thread loads about 1.5MB of content, skyrocketing up if the thread contains embeds for twitter/youtube etc.)
I'm happy enough to work on adding the linting functionality to the extension tonight though 👍

!!!


Autofill and verify

Hi, have you looked into whether it is possible to autofill the digits and click verify, automatically? It seems you cant directly do it through some basic JS but I wonder if it is in theory possible

@mizlan hey I did try but the login box was an iframe. not sure there's anyway around

Alright, i will try. Also, isn't putting secret/count directly into localStorage a security vulnerability?

https://github.com/AvikRao/duo-extension Looks similar to the Duo UI I see in the chrome web store demo video. They seem to support autofilling, maybe you can take a look?

On the other hand, my institution's Duo looks like this:

Are you familiar with the latter UI? I don't see an  element anywhere but I still cannot select/input/send Events

I found a way to do it on my end. It needs the use of .dispatchEvent to correctly trigger JavaScript event callbacks:
let a = document.getElementById('passcode-input')
a.value = '193374'

// important - you can look in the DOM for the [event] tag next to certain
// HTML tags, expand that and see what events should be triggered. in this
// case, for example, the event is needed to un-disable the "Verify" button
// which begins greyed out
a.dispatchEvent(new Event('input', {bubbles:true}));

// "Verify" button
let b = document.querySelector('button')
b.click()

// GG

Alright, i will try. Also, isn't putting secret/count directly into localStorage a security vulnerability? Edit: I guess it's not any worse than not using 2fa at all

Yea it's pretty big security risk. Maybe can send the secrets to backend or something

https://github.com/AvikRao/duo-extension Looks similar to the Duo UI I see in the chrome web store demo video. They seem to support autofilling, maybe you can take a look?
On the other hand, my institution's Duo looks like this:
Are you familiar with the latter UI? I don't see an  element anywhere but I still cannot select/input/send Events

hmm interesting.. lemme check my school's login page

I found a way to do it on my end. It needs the use of .dispatchEvent to correctly trigger JavaScript event callbacks:
let a = document.getElementById('passcode-input')
a.value = '193374'

// important - you can look in the DOM for the [event] tag next to certain
// HTML tags, expand that and see what events should be triggered. in this
// case, for example, the event is needed to un-disable the "Verify" button
// which begins greyed out
a.dispatchEvent(new Event('input', {bubbles:true}));

// "Verify" button
let b = document.querySelector('button')
b.click()

// GG

oh damn this is really cool. def easier

Nevermind. Yours works differently (the Traditional Prompt is the one with the iframe).
The way to access the iframe is by using the manifest option content_scripts "all_frames": true which allows it to inject the script into the Duo iframe.
Used here: https://github.com/AvikRao/duo-extension/blob/a50d40197ef17784c3d2dc8d73cf34c2a760040d/manifest.json#L12
And in my own extension here (I did some testing with someone who used the Traditional Prompt yesterday): https://github.com/mizlan/AutofillDuo/blob/273de829738ac356f345ffc278c5eb40c089676d/manifest.json#L19

As for the actual HTML elements, it's just #passcode, .passcode-input, and #passcode again. (see https://github.com/AvikRao/duo-extension/blob/master/content.js)


Question about sending data during an "update" check

Got a weird question maybe. Either using the update server or with the plugin updater code. (would prefer from within the server updater for old plugin users)
For example when a plugin automatically checks for updates and its passing along a license key. Would it be possible to send a "message" back that gets displayed to the user like an admin notice ?
For example on an update check and the users license is expired to send them back a message to let them know its expired and that they need to renew ?

There's no built-in way to do that, but it shouldn't be too hard to implement it by extending the server and update checker. I've done it for one of my plugins.
The basic idea is this: on the server, override the filterMetadata method and include your message in the update metadata. In your plugin, use the puc_request_info_result-$slug filter to extract the message and save it somewhere. Then display it as an admin notice.

Hello @misulicus
I am not sure if you implemented this, I just did for one of my plugins. Thanks to the outline from the author.

In the update server I overrode filterMetadata and added license validation based on the general idea here: http://w-shadow.com/blog/2013/03/19/plugin-updates-securing-download-links
Along with unset($meta['download_url']); I added a $meta['upgrade_notice']
On the WordPress plugin end, I used the requestInfo() function to get all the meta data as an object.
Using the action hook in_plugin_update_message-{$file} I added a notice in the plugins page - https://developer.wordpress.org/reference/hooks/in_plugin_update_message-file/
For the notice part, you can find more info here: https://wordpress.stackexchange.com/a/33529/90061

Hope that helps someone in their journey. Thanks @YahnisElsts for all your hard work!

That sounds like a pretty good solution. The only thing that I would add is that it would probably be a good idea to cache the requestInfo() return value somewhere because you probably don't want to slow down the site by making a new HTTP request every time someone opens the "Plugins" page.
The original post is quite old now, so I'm going to close this issue. If you have any further comments, feel free to re-open.

Thanks for the validation @YahnisElsts, caching / saving requestInfo() sounds like a plan, I will add that :)


[FLINK-4686] [table] Add possibility to get column names

Thanks for contributing to Apache Flink. Before you open your pull request, please take the following check list into consideration.
If your changes take all of the items into account, feel free to open your pull request. For more information and/or questions please refer to the How To Contribute guide.
In addition to going through the list, please provide a meaningful description of your changes.

[ x] General

The pull request references the related JIRA issue ("[FLINK-XXX] Jira title text")
The pull request addresses only one issue
Each commit in the PR has a meaningful commit message (including the JIRA id)

[x ] Documentation

Documentation has been added for new functionality
Old documentation affected by the pull request has been updated
JavaDoc for public methods has been added

[x ] Tests & Build

Functionality added by the pull request is covered by tests
mvn clean verify has been executed successfully locally or a Travis build has passed

This PR introduces Schema to allow us get column names and types.
Schema s = table.schema();
TypeInformation<?> type = s.getType(1);
TypeInformation<?> type = s.getType("col");
String s = s.getColumnName(1);
String[] s = s.getColumnNames();

Hi @twalthr , I addressed the comments. Thank you for your suggestion. I add some tests that getting schema from tables in existing ITCases.

Thanks @wuchong. I think we can convert the modified ITCases to TableTestBase tests. I will try it and merge this.


FT.SEARCH WITHSCORES not implemented

#97's thread indicates that WITHSCORES is implemented as of v4. However upon inspection of the code, it's been commented out. Could I get an explanation as to why it's been removed and if its planned to be re-implemented anytime soon?
Cheers

What has been commented out? WITHSCORES in what command? can you please elaborate more?

When using the command FT.SEARCH from RedisSearch, there are various commands you can use. These are listed in packages/search/lib/commands/SEARCH.ts..
On line 13, WITHSCORESs' implementation is commented out. In the previously mentioned issue #97 it was said that it was implemented as of v4.
Sorry if I wasn't clear, its my first issue! Hope that clears it up.

any update on implementing WITHSCORES in FT.SEARCH and FT.AGGREGATE. any update on this will be helpful.


Go Live Option is not eanbled

Hi ,
Thanks for such a wonderful plugin. It is very useful and I have couple questions around it
1.I am not getting Go Live option with the 6.2.4 version.
2.What is the difference between Now and Go live?
3.Is there a way to change the time zone to server time than browser time of display_timezone , and if we change the time zone we need to change seek to functionality as well to refer the server time?
I am using the Chrome of Version 68.0.3440.106 (Official Build) (64-bit)
These info will help me a lot in my current project

Thanks.

You mean you can't see the button? Can you share a screenshot?
Selecting Now allows to specify any time you want to seek to. GO Live will always take you to latest current view. Its like Live tail.
You cannot change to server time, but you can set the same timezone as server in display_timezone property. e.g Asia/Kolkata. Seek time always work with client time.

Please find the Screenshot

So , with Now button Can we search for a particular time range with from and to?
I am looking for a Download option to be enabled .. Do you suggest will that work?

Can I customize this plugin to enable the download option of the logs we get , What would be your suggestion before I proceed with this option?  As people are facing problem in getting the data to local system.

Collapsing the left side kibana panel should make the Go Live button
visible.
You cannot search with from and to ranges
Download option to download the logs shown in the view? You can you Kibana
export for that?
On Fri, Aug 17, 2018 at 21:07 vpandi<EMAIL_ADDRESS>wrote:

Please find the Screenshot
[image: kibana]
https://user-images.githubusercontent.com/22392651/44274984-3df82480-a261-11e8-9768-a23392bcc0a4.png
So , with Now button Can we search for a particular time range with from
and to?
I am looking for a Download option to be enabled .. Do you suggest will
that work?
—
You are receiving this because you commented.
Reply to this email directly, view it on GitHub
https://github.com/sivasamyk/logtrail/issues/306#issuecomment-413904583,
or mute the thread
https://github.com/notifications/unsubscribe-auth/ABZXepULVcFYzF_J1HcRUroHvOcma3Ofks5uRuM9gaJpZM4WBlun
.

Thanks .. I can see the Go Live button.
When I give some date in Now field , It is the data from the given time to the current time is it? I mean the Now will pick the current time and pass?

You cannot search with from and to ranges : Can I enhance the tool with this requirement and use it for my need ? Do you foresee any issue here?
Downloading the log from Logtrail is much meaningful than exporting it Kibana ? ANy thoughts with this please?

Hi,
I Collapsed the left side kibana panel,and still can not see the Go live button

@alantany The bottom right button in the screenshot is the Live Status button. In your screenshot, you see Pause ||  option. The Live Status button changes based on which event you are looking at.

@vpandi Sure you can enhance the tool to show events based on from & to since Elastic range API supports from & to. You need to disable live tail when using from & to.
Re: export - Logtrail event viewer has a limit to the number of events it holds in the viewer (it's like a window to see the events in the time range). Logtrail does not have all events in the client and does not send all event fields to the browser (only the mapped fields). If required you can add an export button to execute ES query and export events.

@sivasamyk Thank you so much for your valuable inputs , let me try from my side . Though I am new Anguar.js :) 👍

i have added logtrail plugging in kibana. and its showing me logs but after 2-3 times of auto refreshing . it stop refreshing and i had to manually refresh the index pattern to see logs. i am not understanding what the issue with it. btw kibana working on EFK stack and i have 20-30 different type of  index patterns.
so, my issue is that i am not getting live logs.

i have added logtrail plugging in kibana. and its showing me logs but after 2-3 times of auto refreshing . it stop refreshing and i had to manually refresh the index pattern to see logs. i am not understanding what the issue with it. btw kibana working on EFK stack and i have 20-30 different type of index patterns.
so, my issue is that i am not getting live logs in logtrail.

i have added logtrail plugging in kibana. and its showing me logs but after 2-3 times of auto refreshing . it stop refreshing and i had to manually refresh the index pattern to see logs. i am not understanding what the issue with it. btw kibana working on EFK stack and i have 20-30 different type of index patterns.
so, my issue is that i am not getting live logs in logtrail.


Step095-emscripten Webassembly Issue

Hello,
I downloaded the code from the following GitHub repository: LearnWebGPU-Code (step095-emscripten) https://github.com/eliemichel/LearnWebGPU-Code/tree/step095-emscripten.
int main(int, char**) {
	Application app;
	app.onInit();
	std::cout<<"After onInit function :: "<<std::endl;

#ifdef __EMSCRIPTEN__
	std::cout<<"Inside emcripten condition :: "<<std::endl;
	emscripten_set_main_loop_arg(
		[](void *userData) {
			Application& app = *reinterpret_cast<Application*>(userData);
			std::cout<<"Before calling onFrame function :: "<<std::endl;
			app.onFrame();
			std::cout<<"After calling onFrame function :: "<<std::endl;
		},
		(void*)&app,
		0, true
	);
	std::cout<<"After emscripten_set_main_loop_arg function :: "<<std::endl;
#endif

	return 0;
}

After building the WebGPU project in WebAssembly, I encountered an error after printing “After calling onFrame function” cout message from the above code, as shown on the screen while browsing to http://localhost:8000/App.html. How can I fix this error? Could anyone please help me with this?

Hi, could you give more information about the error message that you are getting?


use HTTPS protocol always

Its better to use https protocol always, from the security standpoint

:+1:


Change social media links advice text

What

On pages such as the social media feeds “Sharing will open the page in the new tab” is confusing and not accurate. Suggestion that the copy should be something like “The following links open in a new tab" to be clearer.
Why

To help users understand what happens on their browse when sharing and it shouldn’t be confusing.
Trello ticket
Visual Changes

The screenshots below reflect the old proposed wording. After some discussion, the new wording is "The following links open in a new tab". I have not remade the screenshots.
Before

After

The change looks good to me overall.
There are a couple of other things that we may want to consider further.

There is also a Welsh translation of the text here - https://github.com/alphagov/govuk_publishing_components/blob/main/config/locales/cy.yml#L185. So with this change we would be out of sync with the Welsh translation.
From looking at the visual changes in Percy, the change in text may not be ideal when an "Email" link is used, for example:

We could consider using the text "The following links open in a new tab" instead, this is taken from the Design System guidance page.

Wording changed (and approved by @hannako) as per @MartinJJones's suggestion.

Changes look good to me 👍
non-blocking, but we usually try to keep the name of the PR and the change log entry the same, could either update the PR name or Changelog entry.

Fixed.


[Master] Add SYSTEM_RESERVED_ES value to node sizing env

Looks like in case of 4.12 setting SYSTEM_RESERVED_ES is mandatory, otherwise kubelet start with --system-reserved=cpu=200m,memory=350Mi,ephemeral-storage= and failed with error.
command failed" err="failed to run Kubelet: quantities must match the regular expression '^([+-]?[0-9.]+)([eEinumkKMGTP][-+]?[0-9])$'"

This will fix https://issues.redhat.com/browse/OCPBUGS-3758 from crc side.
MCO change: https://github.com/openshift/machine-config-operator/commit/28f062ba1815c622ed17718baf3194ecd75d4194

openshift/machine-config-operator#3381 this change is now part of 4.11 also.

Have you experienced the failure no 4.11? Or only noticed that this was cherry-picked? Can you add this comment to the commit log?
Apart from this
/lgtm

Have you experienced the failure no 4.11? Or only noticed that this was cherry-picked?

@cfergeau  Yes, I have experienced a failure for 4.11 and then cherry picked.

I wonder if we should look into using https://github.com/openshift/machine-config-operator/blob/cbd7d9514d6a03c84192058edae7a6ff4f9d6941/pkg/controller/kubelet-config/helpers.go#L435-L480
and https://github.com/openshift/machine-config-operator/blob/cbd7d9514d6a03c84192058edae7a6ff4f9d6941/vendor/k8s.io/kubelet/config/v1beta1/types.go#L596-L602
The end result seems similar to what we want, but there is a fallback when SYSTEM_RESERVED_ES is not specified. Probably more future-proof than the approach we are taking right now.


Add Jenkins Hosts to the Build Agents

What would you like to be added:
Static Jenkins agents for prow jobs that cannot be containerized.
Why is this needed:
For prow jobs that cannot be containerized... yet

/sig test-infra
/area jenkins

Complete


webP格式的图片无法下载

New Issue Checklist

[x] I have read and understood the CONTRIBUTING guide
[x] I have read the Documentation
[ ] I have searched for a similar issue in the project and found none

Issue Info

Info
Value

Platform Name
. ios

Platform Version
12

SDWebImage Version
4.2.0

Integration Method     cocoapods

Xcode Version
Xcode 9

Repro rate
e.g. all the time (100%) / sometimes x% / only once

Repro with our demo prj
e.g. does it happen with our demo project?

Demo project link
e.g. link to a demo project that highlights the issue

Issue Description and Steps
Please fill in the detailed description of the issue (full output of any stack trace, compiler error, ...) and the steps to reproduce the issue.

Duplicated for #2347 . And it's already been fixed in 4.4.1 version


Documentation is Unclear

I'm a wiz at everything who's been programming computers for 32 years, and I am struggling with jstree, only because the documentation is horrific.  It looks good at first, but a million things are implied without either being spelled out, or providing easy-to-sort-out examples.  This is further complicated by the older version of jstree that seems to have had major differences, so examples with that only lend more confusion.
For example, in the Types plugin you explain how to define the types, but not how to assign a type to a node (which I got working by setting an attr.rel attribute to the type).
In the JSON plugin you give two completely different examples with the same data distributed among different attributes (metadata, attr, title, id) with no rhyme, reason, or explanation.
In the UI plugin you demonstrate how to do things like the "create" operation, but that name is not the same as the create_node function, yet I can nowhere find a mapping of operation names to function names, or even a list of the valid operations.
The most obvious things one would want to do are to programmatically create and select nodes, and yet it's taken me hours to figure this all out.
I would strongly suggest:

A clearly defined list of all options (e.g. data elements and what they actually mean) for everything

Consistency among simple examples (don't load the tree in the HTML in the page itself for one plugin, then JSON in the tree creation for another, etc.).  It's good to have a variety of things, but when there are too many all intermixed it's impossible for a beginner to sort out the reasons for the differences (i.e .what is relevant and what is not).

A "recipes" page with the things people might most often do -- but isolated to just the subject under discussion, without complicating it with other techniques at the same time

I agree - I suggest to define a clear structure for every Plugin / Component (this is already done):
I woul like to see the following structure, although I am open to any other suggestions

Introduction / Purpose of the plugin/component
Configuration to be used in the jstree-Startup (including the naming, possibly a short definition in backus-naur-form to clearify the use of nested structures if applicable
a) one section per attribute (key) in the config-array, giving information about possible values, special values and default values
public api
a) one description per function, may a simple example if it helps
internal api
a) one description per internal api (I think it is good style to document all possible functions)
data-structures used (stating if they are public or private)
Examples
Q&A/Comment function (like eg the tphp or mysql website offers it)


Pay with Vaulted Card

In V2 how do we pay with a vaulted card once it is stored? I cannot for the life of me get it to work! It keeps giving me ORDER_NOT_APPROVED

Ok I was adding token info into the Create ORder. When I remove it, I now get a 500 error when doing a Capture

Ok after speaking with Paypal, apparently Vaulted cards for V2 isnt out yet and we have to use the V1 endpoint for this. Can you make the necessary update for this? Or should I do a PR?

@plutov

Hi @Fyb3roptik it would be nice if you can do a PR for this.

I have same problem

`req, err := c.NewRequest("POST", fmt.Sprintf("%s%s", c.APIBase, "/v2/checkout/orders/"+orderID+"/capture"), nil)
if err != nil {
return capture, err
}
if err = c.SendWithAuth(req, capture); err != nil {
	capture, err
}`

after change this code , this is work.
":"https://api.sandbox.paypal.com/v2/checkout/orders/9HJ48641AL856994W","rel":"up","method":"GET"}],"create_time":"2019-07-21T01:13:09Z","update_time":"2019-07-21T01:13:09Z"}]}}],"payer":{"name":{"given_name":"x","surname":"x"},"email_address":"xxxxxxxx","payer_id":"xxxxxxxxxxx","address":{"country_code":"C2"}},"links":[{"href":"https://api.sandbox.paypal.com/v2/checkout/orders/9HJ48641AL856994W","rel":"self","method":"GET"}],"status":"COMPLETED"

Sorry I got pulled off of this after PayPal wouldn't let us do vaulted cards


Performance Issue on Cart Page

On the cart page, you do some API calls, which can be slow. In our case, these calls slowed down the page by almost 700ms:

Could you please check and fix this?

Dear sprankhub
The request time for the wallee API, by loading the iframe, is about 1.2 seconds (reproduced in our showcase):

Overall in our showcase the loading time of a selected payment method (with Magento 2 code) is about 3.6 seconds:

And the wallee API part is only a fraction of those 3.6 seconds.
I assume this is a normal timeframe we can expect in online shops.
The main part is probably about, how your checkout is programmed (other checkout integrations, your shop theme etc.).
Please let us know if we misunderstood your issue.
Best regards

You understood the issue correctly. 1.2 seconds of 3.6 seconds is 33 %, right? I consider this too much for any external integration / any payment method.

Dear sprankhub
We did already some speed optimizations in the past.
We will check how it can be possible to improve it more.
Best regards


Review deployments scripts

Add new Upgrade tag to upgrade existing contracts
Add new DeployFromScratch tag to deploy on a network that Bridge does not exists yet
Tidy up and clean scripts as there where some that where only created for testing purposes and shouldn't be here

Coverage remained the same at 95.565% when pulling e5dcdeecff5036aedeb8aa95458fd58054810993 on review-deployments into d1e06115961c38b648898ea83edd25116195c4e7 on nftbridge-rebased.


Allow duplicate samples matching last 4

When using remote-write, it may happen that a write request is received, but the sender does not receive the acknowledgement and re-sends it.
Currently Prometheus checks if a sample duplicates the last one received, and silently discards the duplicate (returns nil) in that case:
https://github.com/prometheus/prometheus/blob/bb05485c79084fecd3602eceafca3d554ab88987/tsdb/head_append.go#L296-L301
However a remote-write sender may lag several scrapes behind, and include multiple samples in each send.
So we may receive a duplicate of the second-last sample received, or earlier.
I think it requires some coincidences, because to get a duplicate in the default-size send of 500 samples implies that only 250 series are being sent on that shard, but with high numbers of shards, much bigger send size, or just some luck with the hashing, it would happen.
Proposal
We have the last 4 samples in s.sampleBuf, so we could check all of them for a match.

I think I am not clear what we are trying to achieve. Duplicate sample means the value changes while timestamp is same, and Prometheus remote writing won't cause that, it will be the same value. It will mostly have out of order samples from what you just described.

I mean to return nil if the timestamp and value are an exact match of one of the last four received.

So basically do not send "out of order" if it is within the last 4 samples. I have seen out of order messages regularly with remote write because of the issue that you mentioned, so this check for last 4 samples should be acceptable iff it is a exact match.

I have seen out of order messages regularly with remote write

Yeah, me too; I'm trying to figure out how they come about.

because of the issue that you mentioned

I still struggle to believe this particular cause is common.  Maybe I got the math wrong?

I have removed help wanted and low hanging fruit as it turns out it might not be that straighforward.