[BUG] System.UnauthorizedAccessException: Access to the path 'RobloxCrashHandler.exe' is denied.

Acknowledgement of preliminary instructions

[X] I have read the preliminary instructions, and I am certain that my problem has not already been addressed.
[X] I have thoroughly looked through the available Wiki articles and could not find a solution to my problem.
[X] I am using the latest version of Bloxstrap.
[ ] I did not answer truthfully to all the above checkboxes.

Bloxstrap Version
2.8.0
What problem did you encounter?
I have read through the wiki, but I was unable to find something involving the crash logs of roblox. I am unsure what exactly is causing this, it did crash while play testing yesterday afternoon but I was able to start it again after. Hopefully the logs help.
Bloxstrap Log
2024-10-25T21:00:16Z [App::OnStartup] Starting Bloxstrap v2.8.0
2024-10-25T21:00:16Z [App::OnStartup] Compiled Wednesday, 16 October 2024 at 2:44:37 AM from commit 42ffec26cf2e080fe22210305a08fcb286aeb577 (tag/v2.8.0)
2024-10-25T21:00:16Z [App::OnStartup] Loaded from %UserProfile%\AppData\Local\Bloxstrap\Bloxstrap.exe
2024-10-25T21:00:16Z [App::OnStartup] Temp path is %UserProfile%\AppData\Local\Temp\Bloxstrap
2024-10-25T21:00:16Z [App::OnStartup] WindowsStartMenu path is %UserProfile%\AppData\Roaming\Microsoft\Windows\Start Menu\Programs
2024-10-25T21:00:16Z [Logger::Initialize] Initializing at %UserProfile%\AppData\Local\Bloxstrap\Logs\Bloxstrap_20241025T210016Z.log
2024-10-25T21:00:16Z [Logger::Initialize] Finished initializing!
2024-10-25T21:00:16Z [JsonManager<Settings>::Load] Loading from %UserProfile%\AppData\Local\Bloxstrap\Settings.json...
2024-10-25T21:00:16Z [JsonManager<Settings>::Load] Loaded successfully!
2024-10-25T21:00:16Z [JsonManager<State>::Load] Loading from %UserProfile%\AppData\Local\Bloxstrap\State.json...
2024-10-25T21:00:16Z [JsonManager<State>::Load] Loaded successfully!
2024-10-25T21:00:16Z [FastFlagManager::Load] Loading from %UserProfile%\AppData\Local\Bloxstrap\Modifications\ClientSettings\ClientAppSettings.json...
2024-10-25T21:00:16Z [FastFlagManager::Load] Loaded successfully!
2024-10-25T21:00:19Z [LaunchHandler::LaunchRoblox] Initializing bootstrapper
2024-10-25T21:00:19Z [LaunchHandler::LaunchRoblox] Initializing bootstrapper dialog
2024-10-25T21:00:19Z [Bootstrapper::Run] Running bootstrapper
2024-10-25T21:00:19Z [Bootstrapper::SetStatus] Connecting to Roblox...
2024-10-25T21:00:19Z [Deployment::TestConnection<https://setup.rbxcdn.com>] Connecting...
2024-10-25T21:00:19Z [HttpClientLoggingHandler::ProcessRequest] GET https://setup.rbxcdn.com/versionStudio
2024-10-25T21:00:19Z [Deployment::InitializeConnectivity] Testing connectivity...
2024-10-25T21:00:19Z [HttpClientLoggingHandler::ProcessResponse] 200 OK https://setup.rbxcdn.com/versionStudio
2024-10-25T21:00:19Z [Deployment::InitializeConnectivity] Got https://setup.rbxcdn.com as the optimal base URL
2024-10-25T21:00:19Z [Bootstrapper::Run] Connectivity check finished
2024-10-25T21:00:19Z [Bootstrapper::CheckForUpdates] Checking for updates...
2024-10-25T21:00:19Z [HttpClientLoggingHandler::ProcessRequest] GET https://api.github.com/repos/bloxstraplabs/bloxstrap/releases/latest
2024-10-25T21:00:19Z [HttpClientLoggingHandler::ProcessResponse] 200 OK https://api.github.com/repos/bloxstraplabs/bloxstrap/releases/latest
2024-10-25T21:00:19Z [Bootstrapper::CheckForUpdates] No updates found
2024-10-25T21:00:19Z [Bootstrapper::GetLatestVersionInfo] Got channel as production
2024-10-25T21:00:19Z [Deployment::GetInfo] Getting deploy info for channel production
2024-10-25T21:00:19Z [HttpClientLoggingHandler::ProcessRequest] GET https://clientsettingscdn.roblox.com/v2/client-version/WindowsPlayer
2024-10-25T21:00:19Z [HttpClientLoggingHandler::ProcessResponse] 200 OK https://clientsettingscdn.roblox.com/v2/client-version/WindowsPlayer
2024-10-25T21:00:19Z [RegistryKeyEx::SetValueSafe] Writing '' to HKEY_CURRENT_USER\SOFTWARE\ROBLOX Corporation\Environments\RobloxPlayer\Channel\www.roblox.com
2024-10-25T21:00:19Z [HttpClientLoggingHandler::ProcessRequest] GET https://setup.rbxcdn.com/version-4ffdeb3e393e469e-rbxPkgManifest.txt
2024-10-25T21:00:20Z [HttpClientLoggingHandler::ProcessResponse] 200 OK https://setup.rbxcdn.com/version-4ffdeb3e393e469e-rbxPkgManifest.txt
2024-10-25T21:00:20Z [Bootstrapper::SetStatus] Installing {product}...
2024-10-25T21:00:20Z [LaunchHandler::LaunchRoblox] Bootstrapper task has finished
2024-10-25T21:00:20Z [LaunchHandler::LaunchRoblox] An exception occurred when running the bootstrapper
2024-10-25T21:00:20Z [App::FinalizeExceptionHandling] System.UnauthorizedAccessException: Access to the path 'RobloxCrashHandler.exe' is denied.
   at System.IO.FileSystem.RemoveDirectoryRecursive(String fullPath, WIN32_FIND_DATA& findData, Boolean topLevel)
   at System.IO.FileSystem.RemoveDirectory(String fullPath, Boolean recursive)
   at Bloxstrap.Bootstrapper.UpgradeRoblox()
   at Bloxstrap.Bootstrapper.Run()
   at Bloxstrap.Bootstrapper.Run()
2024-10-25T21:06:12Z [App::Terminate] Terminating with exit code 1603 (ERROR_INSTALL_FAILURE)

2024-10-25T21:00:16Z [Logger::Initialize] Finished initializing!
2024-10-25T21:00:16Z [JsonManager<Settings>::Load] Loading from %UserProfile%\AppData\Local\Bloxstrap\Settings.json...
2024-10-25T21:00:16Z [JsonManager<Settings>::Load] Loaded successfully!
2024-10-25T21:00:16Z [JsonManager<State>::Load] Loading from %UserProfile%\AppData\Local\Bloxstrap\State.json...
2024-10-25T21:00:16Z [JsonManager<State>::Load] Loaded successfully!
2024-10-25T21:00:16Z [FastFlagManager::Load] Loading from %UserProfile%\AppData\Local\Bloxstrap\Modifications\ClientSettings\ClientAppSettings.json...
2024-10-25T21:00:16Z [FastFlagManager::Load] Loaded successfully!
2024-10-25T21:00:19Z [LaunchHandler::LaunchRoblox] Initializing bootstrapper
2024-10-25T21:00:19Z [LaunchHandler::LaunchRoblox] Initializing bootstrapper dialog
2024-10-25T21:00:19Z [Bootstrapper::Run] Running bootstrapper
2024-10-25T21:00:19Z [Bootstrapper::SetStatus] Connecting to Roblox...
2024-10-25T21:00:19Z [Deployment::TestConnection<https://setup.rbxcdn.com>] Connecting...
2024-10-25T21:00:19Z [HttpClientLoggingHandler::ProcessRequest] GET https://setup.rbxcdn.com/versionStudio
2024-10-25T21:00:19Z [Deployment::InitializeConnectivity] Testing connectivity...
2024-10-25T21:00:19Z [HttpClientLoggingHandler::ProcessResponse] 200 OK https://setup.rbxcdn.com/versionStudio
2024-10-25T21:00:19Z [Deployment::InitializeConnectivity] Got https://setup.rbxcdn.com as the optimal base URL
2024-10-25T21:00:19Z [Bootstrapper::Run] Connectivity check finished
2024-10-25T21:00:19Z [Bootstrapper::CheckForUpdates] Checking for updates...
2024-10-25T21:00:19Z [HttpClientLoggingHandler::ProcessRequest] GET https://api.github.com/repos/bloxstraplabs/bloxstrap/releases/latest
2024-10-25T21:00:19Z [HttpClientLoggingHandler::ProcessResponse] 200 OK https://api.github.com/repos/bloxstraplabs/bloxstrap/releases/latest
2024-10-25T21:00:19Z [Bootstrapper::CheckForUpdates] No updates found
2024-10-25T21:00:19Z [Bootstrapper::GetLatestVersionInfo] Got channel as production
2024-10-25T21:00:19Z [Deployment::GetInfo] Getting deploy info for channel production
2024-10-25T21:00:19Z [HttpClientLoggingHandler::ProcessRequest] GET https://clientsettingscdn.roblox.com/v2/client-version/WindowsPlayer
2024-10-25T21:00:19Z [HttpClientLoggingHandler::ProcessResponse] 200 OK https://clientsettingscdn.roblox.com/v2/client-version/WindowsPlayer
2024-10-25T21:00:19Z [RegistryKeyEx::SetValueSafe] Writing '' to HKEY_CURRENT_USER\SOFTWARE\ROBLOX Corporation\Environments\RobloxPlayer\Channel\www.roblox.com
2024-10-25T21:00:19Z [HttpClientLoggingHandler::ProcessRequest] GET https://setup.rbxcdn.com/version-4ffdeb3e393e469e-rbxPkgManifest.txt
2024-10-25T21:00:20Z [HttpClientLoggingHandler::ProcessResponse] 200 OK https://setup.rbxcdn.com/version-4ffdeb3e393e469e-rbxPkgManifest.txt
2024-10-25T21:00:20Z [Bootstrapper::SetStatus] Installing {product}...
2024-10-25T21:00:20Z [LaunchHandler::LaunchRoblox] Bootstrapper task has finished
2024-10-25T21:00:20Z [LaunchHandler::LaunchRoblox] An exception occurred when running the bootstrapper
2024-10-25T21:00:20Z [App::FinalizeExceptionHandling] System.UnauthorizedAccessException: Access to the path 'RobloxCrashHandler.exe' is denied.
   at System.IO.FileSystem.RemoveDirectoryRecursive(String fullPath, WIN32_FIND_DATA& findData, Boolean topLevel)
   at System.IO.FileSystem.RemoveDirectory(String fullPath, Boolean recursive)
   at Bloxstrap.Bootstrapper.UpgradeRoblox()
   at Bloxstrap.Bootstrapper.Run()
   at Bloxstrap.Bootstrapper.Run()

Duplicate of #3408


Can't parse es2018 (for await)

I want to use for-await syntax. Can you support es2018?

@falsandtru Sorry for my late response. I'll tackle with this issue after #107. Thanks!

Thanks. Can you also update unassert? I can't use es2017+ in my projects because that can't parse it.
https://github.com/unassert-js/unassert/issues/12

Will be fixed in forthcoming next minor release.

Just released as power-assert 1.6.0, thank you for reporting @falsandtru !


warning variables used before they are set in ssl_parse_server_key_exchange()

In ssl_cli.c, function ssl_parse_server_key_exchange(), the IAR compiler for ARM outputs a warning about 2 variables (p and end) being used before they are set:
((void) p);
((void) end);
it happens twice at lines 2207-2208 and 2226-2227.
it happens if MBEDTLS_KEY_EXCHANGE_RSA_ENABLED and MBEDTLS_KEY_EXCHANGE_ECDH_RSA_ENABLED are defined.
These lines can be either removed, or they can be moved after 'p' and 'end' variables are set (lines 2260-2261).

Thanks for raising the issue! We'll look into it.

ARM Internal Ref: IOTSSL-1340

Thanks for letting us know! I believe that PR #988 resolves the issue, and it has been merged into the development branch, therefore I am closing this issue.


[ITensors] Remove sort from sites(a::Union{Sum,Prod}).

Description
This removes a (hopefully) unnecessary call to sort on the output of sites(a::Union{Sum,Prod} in src/Ops/Ops.jl, related to OpSum and MPO construction.
Since ITensorNetworks.jl allows arbitrary vertex (i.e. site) names, a comparison isless of different sites may not be well defined and leads to errors due to that call.
Tests are passing except for one related to QN, which seems to be unrelated (and also occurs without the change), see below:
Running /mnt/home/bkloss/.julia/v1.9/dev/ITensors/test/base/test_qn.jl
QNVal Basics: Error During Test at /mnt/home/bkloss/.julia/v1.9/dev/ITensors/test/base/test_qn.jl:9
  Test threw exception
  Expression: qv == zero(ITensors.QNVal)
  MethodError: no method matching zero(::Type{ITensors.QNVal})

  Closest candidates are:
    zero(::Union{Type{P}, P}) where P<:Dates.Period
     @ Dates /mnt/sw/nix/store/fms6zspq4gnq3x8bps8i9wx4lhd6j8s3-julia-1.9.0/share/julia/stdlib/v1.9/Dates/src/periods.jl:51
    zero(::Union{VectorInterface.One, VectorInterface.Zero})
     @ VectorInterface ~/.julia/v1.9/packages/VectorInterface/TAlcJ/src/onezero.jl:65
    zero(::Union{Zeros.One, Zeros.Zero})
     @ Zeros ~/.julia/v1.9/packages/Zeros/eEqdd/src/Zeros.jl:48
    ...

  Stacktrace:
   [1] macro expansion
     @ /mnt/sw/nix/store/fms6zspq4gnq3x8bps8i9wx4lhd6j8s3-julia-1.9.0/share/julia/stdlib/v1.9/Test/src/Test.jl:478 [inlined]
   [2] macro expansion
     @ ~/.julia/v1.9/dev/ITensors/test/base/test_qn.jl:9 [inlined]
   [3] macro expansion
     @ /mnt/sw/nix/store/fms6zspq4gnq3x8bps8i9wx4lhd6j8s3-julia-1.9.0/share/julia/stdlib/v1.9/Test/src/Test.jl:1498 [inlined]
   [4] macro expansion
     @ ~/.julia/v1.9/dev/ITensors/test/base/test_qn.jl:7 [inlined]
   [5] macro expansion
     @ /mnt/sw/nix/store/fms6zspq4gnq3x8bps8i9wx4lhd6j8s3-julia-1.9.0/share/julia/stdlib/v1.9/Test/src/Test.jl:1498 [inlined]
   [6] top-level scope
     @ ~/.julia/v1.9/dev/ITensors/test/base/test_qn.jl:6
  1.610808 seconds (1.37 M allocations: 98.077 MiB, 81.36% compilation time)

Codecov Report
All modified and coverable lines are covered by tests :white_check_mark:

Project coverage is 53.69%.  Consider uploading reports for the commit b455650 to get more accurate results

:exclamation: Your organization needs to install the Codecov GitHub app to enable full functionality.
Additional details and impacted files
@@             Coverage Diff             @@
##             main    #1346       +/-   ##
===========================================
- Coverage   84.41%   53.69%   -30.73%
===========================================
  Files         100       99        -1
  Lines        8579     8526       -53
===========================================
- Hits         7242     4578     -2664
- Misses       1337     3948     +2611

:umbrella: View full report in Codecov by Sentry.
:loudspeaker: Have feedback on the report? Share it here.

CI isn't showing that error, is your local branch updated properly? That function was added in #1339.

[test ITensors mps]

I don't remember what the sorting was for. My guess is that it may have been used to check if operators were acting on the same sites, and group them based on that.
However, probably that grouping should be done with set comparison (issetequal) rather than comparing assuming it is sorted, which is fragile as you point out.


C# test timeout: tests.csharp.Grpc.Core.Tests.ClientServerTest

https://grpc-testing.appspot.com/job/gRPC_master/13751/config=opt,language=csharp,platform=windows/testReport/junit/(root)/tests/csharp_Grpc_Core_Tests_ClientServerTest/

https://grpc-testing.appspot.com/job/gRPC_master/13748/config=opt,language=csharp,platform=windows/testReport/junit/(root)/tests/csharp_Grpc_Core_Tests_ClientServerTest/

https://grpc-testing.appspot.com/job/gRPC_master/15409/config=dbg,language=csharp,platform=windows/testReport/junit/(root)/tests/csharp_Grpc_Core_Tests_ClientServerTest/

https://grpc-testing.appspot.com/job/gRPC_master/15640/config=opt,language=csharp,platform=linux/testReport/junit/(root)/tests/csharp_Grpc_Core_Tests_ClientServerTest/

This was seen before the fixit and I haven't seen this problem for a while, so I assume it has been fixed.


Add predicate trees; check that expected output strs are valid Datalog.

This commit adds the Predicate class and its various subclasses, which
allow expressing complex predicates upon the presence of tags. It also
adds a ToDatalogRuleBody method for this class which prints out the
predicate as the rule body for a check.
The expected output strings for these Predicates are pretty complex and
somewhat difficult to make into valid Souffle datalog, so this commit
also adds a tool that will, given a vector of Datalog strings provided
to it via linking magic, print those strings out to a datalog file and
run Souffle on them to ensure that they are valid datalog. Although it
currently only works on rule bodies, it could easily be extended for any
kind of snippet of Datalog.

Addressed most of the comments you left so far, and am ready for the next round when your workday starts again.


BootDPRO.cmd failing to create Dolphin Pro image

Error at:
https://github.com/dolphinsmalltalk/Dolphin/blob/master/Core/Object Arts/Dolphin/IDE/Community Edition/Dolphin Community Edition Tools.pax
Line 29 is:
version := ScintillaLibrary versionString.
But should be:
version := ScintillaLibrary default versionString.
The problem after this change is the script answer (line 34):
'http://www.scintilla.org/wscite3630.zip'
But this file does no exist anymore in Scitilla site.
The file wscite363.zip it does exist.

Changing the file name to wscite363.zip let BootDPRO.cmd finish its job.
But if you try to open a Dolphin imagen then:
10:26:45, viernes, 27 de enero de 2017: 'The specified procedure could not be found. (16r7F: No se encontró el proceso especificado.)'
ScintillaLibrary(ExternalLibrary)>>invalidCall
ScintillaLibrary>>directFunction:msg:wParam:lParam:
ScintillaView>>sendMessage:wParam:lParam:
ScintillaView(ControlView)>>setFont:
ScintillaView>>setFont:
ScintillaView(ControlView)>>onViewCreated
ScintillaView(ValueConvertingControlView)>>onViewCreated
ScintillaView(TextEdit)>>onViewCreated
ScintillaView>>onViewCreated
ScintillaView(View)>>createAt:extent:
MessageSend(MessageSendAbstract)>>value
[] in MessageSequenceAbstract>>value
OrderedCollection>>do:
MessageSequence>>messagesDo:
MessageSequence(MessageSequenceAbstract)>>value
ScintillaView(View)>>state:
ScintillaView(STBViewProxy)>>restoreView
ScintillaView(STBViewProxy)>>restoreTopView
[] in ScintillaView(STBViewProxy)>>stbFixup:at:
[] in STBInFiler>>evaluateDeferredActions
OrderedCollection>>do:
STLInFiler(STBInFiler)>>evaluateDeferredActions
STLInFiler(STBInFiler)>>next
ResourceIdentifier>>loadWithContext:forEdit:
ResourceIdentifier>>loadWithContext:
ReferenceView>>loadReferee
ReferenceView>>referee
ReferenceView>>createDelegate
ReferenceView(AbstractDelegatingView)>>onViewCreated
ReferenceView(View)>>createAt:extent:
MessageSend(MessageSendAbstract)>>value
[] in MessageSequenceAbstract>>value
OrderedCollection>>do:
MessageSequence>>messagesDo:
MessageSequence(MessageSequenceAbstract)>>value
ReferenceView(View)>>state:
ReferenceView(STBViewProxy)>>restoreView
[] in STBViewProxy>>restoreView
Array(ArrayedCollection)>>do:
Toolbar(STBViewProxy)>>restoreView
Toolbar(STBViewProxy)>>restoreTopView
[] in Toolbar(STBViewProxy)>>stbFixup:at:
[] in STBInFiler>>evaluateDeferredActions
OrderedCollection>>do:
STLInFiler(STBInFiler)>>evaluateDeferredActions
STLInFiler(STBInFiler)>>next
ResourceIdentifier>>loadWithContext:forEdit:
ResourceIdentifier>>loadWithContext:
ReferenceView>>loadReferee
ReferenceView>>referee

Workaround:
1- Remove the Post Install script from https://github.com/dolphinsmalltalk/Dolphin/blob/master/Core/Object Arts/Dolphin/IDE/Community Edition/Dolphin Community Edition Tools.pax
2- Execute BootDPRO.cmd or BootAll.cmd (to rebuild everything)
3- Copying by hand the SciLexer.dll version 372 to Dolphin directory.
Dolphihn runs without problem :)

Bruno, it is working fine on all the AppVeyor builds and locally for me. As you didn't post information about the original error, I'm not quite sure why it isn't working for you. The upgrade script could fail if the Scintilla site is down, or if the SciLexer.dll on disk is locked or read-only for some other reason. If you experience a problem with the Scintilla upgrade check in the boot, I'd recommend just deleting SciLexer.dll from the disk and trying again. This will replicate the clean build scenario (at lest for this bit) that applies for the AppVeyor build.
The script is correct as is - it uses a version number generated into the class to work out which version of the Scintilla DLL is needed, and then checks the version you have. If the versions do not match, it downloads the expected version from scintilla.org. If you change it to version := ScintillaLibrary default versionString, then it will attempt to load and use the version of the library on the disk. There is of course no point using the version number of the library you already have to check if you have the right version :-). The version number is not in the expected format anyway (hence the 3630). The result you see in your 2nd comment is one of those one might expect if the wrong version is present (which it will be, if you unzipped 363 as that is significantly out of date).

Blair,
This is the original error (still happening to me): (Error trying to download Scintilla)
Loading source package 'Dolphin Community Edition Tools' from: C:\Users\Usuario
Documents\GitHub\Dolphin\Core\Object Arts\Dolphin\IDE\Community Edition\Dolphin
Community Edition Tools.pax
----------------------------------------Unhandled exception - a HRESULTError('HR
ESULT Error: Error en la descarga del recurso solicitado. (Unknown facility)')
URLMonLibrary(ExternalLibrary)>>invalidCall
URLMonLibrary(InputState)>>isInputAvailable
URLMonLibrary>>urlDownloadToCacheFile:
Package>>{unbound}doIt
Compiler class>>evaluate:for:evaluationPools:logged:ifFail:
Compiler class>>evaluate:for:evaluationPools:logged:
Compiler class>>evaluate:for:logged:
[] in ChunkSourceFiler>>fileIn
ExceptionHandler(ExceptionHandlerAbstract)>>markAndTry
[] in ExceptionHandler(ExceptionHandlerAbstract)>>try:
BlockClosure>>ifCurtailed:
BlockClosure>>ensure:
ExceptionHandler(ExceptionHandlerAbstract)>>try:
BlockClosure>>on:do:
ChunkSourceFiler>>fileIn
[] in Package>>fileInScript:
ExceptionHandler(ExceptionHandlerAbstract)>>markAndTry
[] in ExceptionHandler(ExceptionHandlerAbstract)>>try:
BlockClosure>>ifCurtailed:
BlockClosure>>ensure:

@brunobuzzi FWIW, it also works fine for me on a fresh clone from Dolphin (using Windows 10 Pro 64-bit, v1511).
So it looks like something might funky with your local system. At the risk of stating the obvious, here are the exact steps I executed:

Use git bash shell to create a new directory, go to that directory and clone Dolphin into it ("git clone https://github.com/dolphinsmalltalk/Dolphin.git")
Open Windows PowerShell as Administrator to execute "Set-ExecutionPolicy remotesigned"
In git bash shell go to newly cloned Dolphin directory and execute "./FetchVM.cmd"
In Windows PowerShell (still in Admin mode) execute "Set-ExecutionPolicy undefined" (I prefer to turn that setting off, unless I need it)
In git bash shell execute "./BootDPRO.cmd"

I also analyzed the http traffic with Fiddler and during the BootDPRO script a request to www.scintilla.org/wscite371.zip is sent successfully. Initially I got a 304 response, because the file was already in my local IE cache, but even after clearing the IE cache I got the proper 200 status code, so the file is available.
Perhaps you could clear your IE cache and try it again on a clean git clone. If it still doesn't work, then trace the http traffic with Fiddler.

After uninstalling NotePad++, Dolphin 6.1 and others i get the correct Scintilla version.
But my machine fail with:
URLMonLibrary default urlDownloadToCacheFile: 'http://www.scintilla.org/wscite371.zip'.
18:01:53, martes, 31 de enero de 2017: 'HRESULT Error: Error en la descarga del recurso solicitado. (Error downloading requested resource)(Unknown facility)'
URLMonLibrary(ExternalLibrary)>>invalidCall
URLMonLibrary(InputState)>>isInputAvailable
URLMonLibrary>>urlDownloadToCacheFile:
UndefinedObject>>{unbound}doIt
If i put "http://www.scintilla.org/wscite371.zip" in any browser i can download the Zip file.
Event inside Dolphin (where the above fail) with the WebBrowserShell i can download the Zip file.
So something wrong with URLMonLibrary ? Still researching...

Are you by any chance behind a firewall that requires a proxy server?

Oh Yes.
It was the Avast antivirus causing the error.
D7 Pro image built without problems :)


feat(build, dockerfile, multiplatform): support automatic platform ARGs

Added support for automatic platform ARGs that can be used when configuring images in the Dockerfile.
Supported ARGs:

TARGETPLATFORM: platform of the build result. E.g., linux/amd64, linux/arm/v7, windows/amd64.
TARGETOS: OS component of TARGETPLATFORM.
TARGETARCH: architecture component of TARGETPLATFORM.
TARGETVARIANT: variant component of TARGETPLATFORM.
BUILDPLATFORM: platform of the node performing the build.
BUILDOS: OS component of BUILDPLATFORM.
BUILDARCH: architecture component of BUILDPLATFORM.
BUILDVARIANT: variant component of BUILDPLATFORM.

Reference: https://docs.docker.com/reference/dockerfile/#automatic-platform-args-in-the-global-scope
This allows the use of platform arguments in the global scope of the Dockerfile for enhanced multi-platform image building.

rel #2215


Document issues with subclasses

I did some testing around subclasses to find out what code changes are required.
A subclass that doesn't change the API is fairly easy. But subclasses that add custom methods will be more painful as chaining methods drop the custom subclass type.

Merged this one to main without a release. (Update to README, and not the types.)


Replace calls to Invoke-GitHubAPI.ps1 with calls to GH CLI

The gh CLI offers many of the features we use today (release creation, issue creation, PR creation, etc.) in a more convenient interface: https://cli.github.com/manual/
For authenticated calls that aren't directly supported by features there is [gh api](https://cli.github.com/manual/gh_api)
Authentication is transparent and can use GH_TOKEN environment variable.
The gh CLI is already present on Azure DevOps agents. Incomplete list of examples:

Windows 2022 -- https://github.com/actions/virtual-environments/blob/main/images/win/Windows2022-Readme.md#cli-tools
Windows 2019  -- https://github.com/actions/virtual-environments/blob/main/images/win/Windows2019-Readme.md#cli-tools
Ubuntu 20 -- https://github.com/actions/virtual-environments/blob/main/images/linux/Ubuntu2004-Readme.md#cli-tools
MacOS 11 -- https://github.com/actions/virtual-environments/blob/main/images/macos/macos-11-Readme.md#utilities

There is a larger topic to discuss on whether we want GH CLI as a dependency on our pipelines.  It handles errors differently than PowerShell too, so we'd want to be sure we get sufficient benefit for the added complexity of doing this.


Layout Refactoring,

refactor(docs): Experimented with a new Style to define layouts.
Description of changes:

Added Base Layout

No HTML
SEO Handling
No JavaScript Check it out!
TypeScript

Removed HeadCommon
Removed HeadSEO

Sorry, Prettier config is different for me.
Tag a reviewer: @ayoayco  @jmakhack @AllanSiqueira

AstroReactivity, https://github.com/sacarvy/astro-reactive

@ayoayco It's high time that we add some configuration for prettier that will be same for all the contributors because I can see that because of prettier configuration so many lines of code have been changed

I agree regarding the prettier config @Preet-Sojitra. Thanks!

Thanks for this PR @sacarvy!
I just need some time to check this locally, because we recently moved the repository and now the automatic Netlify previews are not working 😅

Let me try to setup Prettier Config, along with .editorconfig

Does anyone, have built some design for docs, I might need some help here, functionality is almost ready and working
like highlighting, the active section.
Thanks

making it not exactly, like one at tailwindcss.com has but similar to that is possible,
let me experiment with design.

Does anyone, have built some design for docs

@sacarvy We don't have design for the docs site, but we are indeed open to a design overhaul. What we have now is just the default styling we got from astro-docs. Let me know if you need some input as well. If you want you can join our discord -- we can have a channel ther for the docs site.

@sacarvy Can you resolve the merge conflicts so that Netlify preview will be triggered?

Yes, doing it

Still, in development. Don’t merge right now!

Still, in development. Don’t merge right now!

@sacarvy okay! I think you can also mark as Draft for this.

checkout new design, of TabelOfContent

Closing this for now as it will push a lot of changes we can't maintain moving forward.


"npm i puppeteer" is not working

Trying to add the package
npm i puppeteer
get the following result:

npm ERR! code 1
npm ERR! path /home/sza/Desktop/Projects/puppeteer/node_modules/puppeteer
npm ERR! command failed
npm ERR! command sh -c node install.js
npm ERR!


Can't get FromContent to work with payload

I have tryed for some time now to get the [FromContent] to work with a POST and a Json payload, but everytime i get a 400 Bad Request. I hope there is a log file, but i just cant seem to locate it :(
What i have is this method:
       [UriFormat("/gardenlight/activtime/save")]
        public IPostResponse SetActivTime([FromContent]string gardenLightStorage)
        {
           //Doing some stuff
           return new PostResponse(PostResponse.ResponseStatus.Created);
        }

With this call:
http://pi_dev01:20000/api/gardenlight/activtime/save as POST and Content-Type: application/json
and this json payload:
{
  "EndTime": "0001-01-01T00:00:00.0000001",
  "LuxTurnOn": 1
}

but the method is never hit - i have error somewhere, but i just cant find it!
BUT if i call the method with a empty body, then the method IS hit....
Best Regards
Bjarne Pedersen

Just a quick response. You ask for a string in your method, but send an object with two properties. You should create an type with those two properties and use that one as method parameter type.

I have been working with integration and rest api's for the last year - i should have known it!
It's working now and i have used that method everyday the last year.... talking about feeling like a noob now ;)
Thank you for your quick response.


RM-589 handle failure on fetching local stats

https://redmine.appscale.com/issues/589
This bug was found when haproxy process failed on one deployment at master node.
When /cluster/stats/proxies endpoint was queried master node attempted to get local stats and failed to get haproxy stats - it failed badly and returned 500 error.
Instead, it should report this failure as following:
"failures": {"<local_ip>": "Connection refused: ..."}
"stats": {"<active_lb_ip>": { ...<normal_stats>... }}
}```

https://ocd.appscale.com:8080/job/Daily Build/4780/

https://ocd.appscale.com:8080/job/Daily Build/4784/


package_list on package manager not ok

why this frontend in meta.toml
need to use package.toml & discuss with Kristof how we will do
I think should be using our registry not this frontend thing

75cb77493739e9e96e6f2bb8797cc163ce18738c
original issue: https://github.com/threefoldtech/jumpscale
I don't think it's related to Registery, it's about the packages we show their UI in the 3bot, the suggestion was all the packages that has frontend directory are frontend packages

1- Got a gedis client
2- Added registry package
3- Made sure i can list the packages
JSX> cl =  j.clients.gedis.get("hamada", port=8901)
JSX> cl.actors.package_manager.package_add(path="/sandbox/code/github/threefoldtech/jumpscaleX_threebot/ThreeBotPackages/tfgrid/registry")
^[[AHUP 29466
b'OK'

JSX> cl.actors.package_manager.packages_list()
## actors.zerobot.packagemanager.package_manager.packages_list.cfce8bcb494e152552a9b2dc31c273eb
 - packages            :


Telemetry: add WebView init failure errors

Summary of the new feature/enhancement
We have multiple issues with non-working Settings due to WebView initialization failure. To help better understand the statistics, we need a new dedicated telemetry event.

Fix available in 0.15.0 https://github.com/microsoft/PowerToys/releases


can't install nix-alien with flak

my flack is build success but can't install nix-alien and nix-alien-xx etc...

with cmd : fd "nix-alien" only get :

my flake.nix
{
  description = "NixOS Configuration";

  inputs = {
    nixpkgs.url = "github:nixos/nixpkgs/nixos-unstable";

    nix-alien.url = "github:thiagokokada/nix-alien";
    nix-ld = {
      url = "github:Mic92/nix-ld";
      inputs.nixpkgs.follows = "nixpkgs";
    };
  };

  outputs = inputs@ { self, nixpkgs, nix-alien, home-manager,hyprland, dedsec-grub-theme, ... }:
    let
      users = {
        username = {
          name = "username";
        };
      };
    in
    {
      nixosConfigurations = (
        import ./NixOS-Hosts {
          inherit (nixpkgs) lib;
          inherit inputs self nixpkgs nix-alien home-manager hyprland dedsec-grub-theme users; # Also inherit home-manager so it does not need to be defined here.
        }
      );
    };
}

my NixOS-Hosts/default.nix
{ self, lib, inputs, nixpkgs, nix-alien, home-manager, hyprland, dedsec-grub-theme, users, ... }:

let
  system = "x86_64-linux";                                  # System architecture
  pkgs = import nixpkgs {
    inherit system;
    config.allowUnfree = true;                              # Allow proprietary software
  };
  lib = nixpkgs.lib;
in
{
    laptop = lib.nixosSystem {                                # Laptop profile
    inherit system pkgs;
    specialArgs = { inherit inputs users self system; };
    modules = [
      hyprland.nixosModules.default
      dedsec-grub-theme.nixosModule
      ({ self, system, ... }: {
            imports = [
              # Optional, but this is needed for `nix-alien-ld` command
              self.inputs.nix-ld.nixosModules.nix-ld
            ];
            environment.systemPackages = with pkgs; with self.inputs.nix-alien.packages.${system}; [
              nix-alien
              nix-index # not necessary, but recommended
              nix-index-update
            ];
      })
      ./Laptop
    ];
  };
}

Without the errors, I don't know what the problem is.
Or do the build works, but the problem is you not adding the nix-alien in the environment.systemPackages or something similar?
See the docs: https://github.com/thiagokokada/nix-alien#nixos-installation-with-flakes

Without the errors, I don't know what the problem is.
Or do the build works, but the problem is you not adding the nix-alien in the environment.systemPackages or something similar?
See the docs: https://github.com/thiagokokada/nix-alien#nixos-installation-with-flakes

Sorry I don't know why I posted it without finishing it, I guess it's because of the wrong carriage return.

I'm having a similar issue: from what i saw i'm not doing anything wrong but nix-alien wont be installed... I cant call any of nix-alien or nix-ld
my flake:
https://pastebin.com/TcSfbsYF

I'm not sure why it wasn't working before (if you know why please tell me) but today i decided to organize my flake and it's working just fine now
flake output:
https://github.com/souxd/nixos-config/blob/master/outputs/nixos-conf.nix

I suspect what's commonly happening here is that nix-alien is already in the scope which results in the  with self.inputs.nix-alien.packages.${system}; not actually doing anything. Then instead of having the nix-alien packge in the systemPackages you end up with the module instead.
At least that's what happened to me when I had my specialArgs set to inputs. Perhaps the README.md could remove the with and prefix both packages (or set some other key in a let)?

i re try again now is work for me i don't very know why. here is the code.
flake.nix
# This can be built with nixos-rebuild --flake .#myhost build
{
  description = "NixOS Configuration";

  inputs = {
    nix-alien.url = "github:thiagokokada/nix-alien";
    nix-ld = {
      url = "github:Mic92/nix-ld";
      # build with your own instance of nixpkgs
      inputs.nixpkgs.follows = "nixpkgs";
    };
  };

  outputs = inputs@ { self, nixpkgs, nix-ld,  ... }:
    let
      users = {
        username = {
          name = "username";
        };
      };
    in
    {
      nixosConfigurations = (
        import ./NixOS-Hosts {
          inherit (nixpkgs) lib;
          inherit inputs nix-ld nixpkgs nix-alien home-manager hyprland dedsec-grub-theme users; # Also inherit home-manager so it does not need to be defined here.
        }
      );
    };
}

hosts.nix
{ lib, inputs, nix-ld, nix-alien, nixpkgs, home-manager, hyprland, dedsec-grub-theme, users, ... }:

let
  system = "x86_64-linux";                                  # System architecture
  pkgs = import nixpkgs {
    inherit system;
    config.allowUnfree = true;                              # Allow proprietary software
  };
  alien-pkgs = inputs.nix-alien.packages.${system};
  lib = nixpkgs.lib;
in
{
    laptop = lib.nixosSystem {                                # Laptop profile
    inherit system pkgs ;
    specialArgs = { inherit inputs alien-pkgs users; };
    modules = [
      nix-ld.nixosModules.nix-ld
      hyprland.nixosModules.default
      dedsec-grub-theme.nixosModule
      ./Laptop
    ];
  };
}

system.nix
{ config, pkgs, inputs, alien-pkgs, lib, ... }:
{
  environment.systemPackages = with pkgs; with alien-pkgs; [
      nix-alien
      nix-index # not necessary, but recommended
      nix-index-update
  ]
}


Dozer 5.5.1 is not compatible with JDK 1.5

cannot access org.dozer.Mapper
[ERROR] bad class file: C:\Users\vootan.m2\repository\net\sf\dozer\dozer\5.5.1\dozer-5.5.1.jar(org/dozer/Mapper.class)
[ERROR] class file has wrong version 50.0, should be 49.0
Dozer 5.5.1 is compatible with JDK 1.5 as per documentation. But the jar is built with JDK 7. I tried to compile the source code with JDK 1.5 but dozer dependencies are not JDK 1.5 compatible. Can you please publish dozer that can be included in projects built with JDK 5? Thank you.
Naresh Voota

@vootan ; Only JDK8 is supported going forward.


New topics: A guided tour of the Task Asynchronous Protocol (TAP)

Async programming is a complicated topic. While async, await and the Task based protocols do a lot to make it more approachable, as developers get beyond the basic scenarios. MicrosoftDocs/azure-docs#5963 has a lengthy discussion that surfaces many of the questions developers have about async and await:

The distinctions between a synchronous method that returns an awaitable object (like Task) and an async method is subtle. Developers can be confused about when the async modifier is needed. Developers have concerns about possible performance implications of the async state machine.
Asynchronous programming and multi-threaded programming are related concepts. The nuances cause confusion for developers. Task based asynchrony vs. TPL (Task Parallel Library) vs. Threads. Developers need more clarity on the distinction between these tools and the scenarios they target.
More on async vs. parallel: Developers need more guidance on how async can increase throughput and efficient use of the threadpool resources.
SynchronizationContext is not needed for basic scenarios, but surfaces in many intermediate and advanced uses. Developers need more tutorials that show how this is used.
While on the subject of SynchronizationContext, developers have questions on context affinity and when ConfigureAwait is needed.

We have a topic on async and await and another section on async concepts. Some of the above topics are covered there, but may not be surfaced as well as needed.
I've added the discussion label to this issue. What else regarding async isn't covered yet that should be?  As you comment, note that there are other issues related to async docs already created.

Awesome, thank you @BillWagner for creating this.  I will start out with my own list of identified grievances which have been captured in a (well-ignored :wink) UserVoice vote here.  This will save me a lot of typing here.  Yeah, I'm lazy, deal with it. 😆
My primary confusion at the moment is untangling the twine between TPL and async.  @Rick-Anderson demonstrates this for me perfectly with a quote from https://github.com/MicrosoftDocs/azure-docs/issues/5963#issuecomment-382923582:

I don't think you want to go the TPL route. AFAIK, for real web apps, the async/await approach is the most productive and highly preformant.

So, by "TPL" that means using the Task promises, I am assuming?  So if you use a simple Task, does that mean it is not as performant/magical as using an async/await keywords?  It is worth noting that going the TPL route happens regardless (if I understand correctly) as both approaches here involve a Task promise, which is found in the TPL.  Perhaps TPL means something other than Task Parallel Library?  ALL THESE QUESTIONS AND SO MUCH MORE!!! 😆
The other meaningful goal here is to ensure best practices and performant behavior as the first question suggests.  Consider the FunctionInvoker, which already has an async/await applied to it.  It, in turn, could also have an async/await applied to it with a call from upstream, and even further if a call to that also has async/await applied to it.
If the user also applies a async/await to their own custom code, that is at least three asynchronous state machines that are created magically in code, providing their own set of generated code and necessary overhead to complete them.  The question is: is that really necessary?  Shouldn't the default guidance and design pattern be:
Do NOT use the async/await keywords unless absolutely necessary?  Simply return a task instead if you can manage.
This is especially pertinent to framework code such as FunctionInvoker which will be called each and every time a request is made.
Consider that this not only reduces generated/necessary overhead necessary to execute the code (performance implications), but it also reduces the overall ceremony needed to write code, which makes the code more readable, which, incidentally, addresses one of my issues found above in the vote. (Yeah, I'm shameless, deal with it. 😄)

Actually @BillWagner I shouldn't be so weary of sharing that vote here.  In addition to the items listed in the vote, I have kept track within the comments a running tally of all the instances where I have found TAP-based confusion caused in the MSFT ecosystem... even by MSFT employees, themselves.

One clarification:
This issue is about the Task - based Asynchronous Pattern (TAP), not the Task Parallel Library (TPL).

Ah, right.  I think that speaks to items 2 and 3 in your list, @BillWagner. The Task is located in the System.Threading.Tasks namespace, and the first sentence out of TPL is "The Task Parallel Library (TPL) is a set of public types and APIs in the System.Threading and System.Threading.Tasks namespaces."
So it would seem that TAP is a subset of the TPL?  We are calling it a "pattern" but it seems more like an API.  I am not sure what makes this a pattern outside that we are using the API as designed, so again more confusion you will have to pardon here.
In any case, it does seem that the TPL is an older form of asynchronous/parallel functionality, of which Task is contained and considered part of it.  It would further seem that all the magic, focus, and energy has exclusively been around the Task promise object, especially for the past few years.  So my impression is that Task (or TAP) is the new TPL, or rather, the part of TPL that is worth learning and getting confused about. 😉
Speaking of which, I am not sure if you read the comments of that TAP link you just provided, but I am glad to see I am not the only one getting confused upsidedown over this whole matter. 😆

@Mike-EEE

Do NOT use the async/await keywords unless absolutely necessary? Simply return a task instead if you can manage.

Stephen Cleary wrote a whole blog post on this topic, where he argues the opposite. The performance gains from avoiding async-await are relatively small and don't outweigh the pitfalls in the common case.
And even if the conclusion was that avoiding async-await should be recommended, I think the wording should be much weaker than what you're proposing.

This is especially pertinent to framework code such as FunctionInvoker which will be called each and every time a request is made.

Performance-critical code often uses different patterns than code that's not performance-critical. But that doesn't mean such patterns should be generally recommended, especially in a guide to make asynchronous programming "more approachable" (i.e. one that's not aimed at framework developers).

BTW, the overhead of async-await improved in .Net Core 2.1, which I think decreases the importance of avoiding that overhead. For example consider this benchmark:
public class Bench
{
    static async Task M()
    {
        await Task.Yield();
    }

    [Benchmark]
    public async Task WithAwait()
    {
        await M();
    }

    [Benchmark]
    public Task WithoutAwait()
    {
        return M();
    }
}

The results are:

Method
Toolchain
Mean
Error
StdDev
Gen 0
Allocated

WithAwait
.NET Core 2.0
5.427 us
0.1600 us
0.4716 us
0.1488
472 B

WithoutAwait
.NET Core 2.0
4.931 us
0.1252 us
0.3571 us
0.0763
256 B

WithAwait
.NET Core 2.1
2.459 us
0.0487 us
0.0616 us
0.1030
329 B

WithoutAwait
.NET Core 2.1
1.840 us
0.0364 us
0.0618 us
0.0648
216 B

Notice how the version with one more await on .Net Core 2.1 (preview 2) is faster than the version without the await on .Net Core 2.0.

LOL @svick that article is awesome.  Thank you for sharing it in addition to the great information about .NET Core and benchmarks.  I laugh here because apparently I have already read that article, posting a comment under it while complaining about async then as much as I am now. 🤣
I hope everyone here can appreciate the sheer amount of documentation, discussion, dissent, and confusion this topic has caused.  We talk about pitfalls in approaches, but the biggest one of all in my view is the sheer amount of cost it consumes in learning it, followed by the sheer amount of subsequent cost in relearning it, as you learned that you didn't learn it correctly the first time (or second or third time as it is in my case).
Finding incredibly valuable and relevant information such as Mr. Cleary's excellent resource above proves to be challenging and sparse.  For instance, I had no idea that eliding was a word.  This is especially compounded by the fact that I have clearly already read about the subject (that reflects more on me, I know, but work with me here).  These articles and the articles they reference should be incorporated in this new documentation somehow, if possible.  I may be in the minority in feeling this way, of course.
For instance, eliding appears to be a topic to itself, demonstrating that there are two camps who favor the differing approaches: ones that prefer to elide (Toub), and ones that do not (Cleary).  Even Cleary admits to being in the former, but of course is now in the latter.  Or at least he was in 2016. 😉  There does seem to be a desire towards eliding to make code simpler and easier to read, but of course there are pitfalls.  The REAL answer to this problem it would seem is to provide framework intervention to mitigate these pitfalls so both camps can enjoy their approaches without these associated risks, but this of course is outside of the scope of this issue.
In any case, very valuable post, @svick.  It is very much appreciated from my point of view.
Since I have your incredibly knowledgeable mind here, perhaps you can answer one last outstanding question of mine in regards to eliding: is there anything magical about the async keyword that enlists a method into parallelism?  For instance, in an Azure Function (or ASP.NET Core) context, if the method does not contain async/await, does this keep it from participating in the renowned throughput gains and benefits that are within the ASP.NET Core runtime?  From what I understand it is the Task that really matters, not the async keyword.

@Mike-EEE

is there anything magical about the async keyword that enlists a method into parallelism?

No, async is not magic and it's not really related to parallelism either. If you have a framework like ASP.NET, that can execute your methods in parallel (e.g. because multiple requests arrive at the same time), then it usually supports parallelism whether you use async, Task, or neither. It's just that when you use async properly, the degree of parallelism can be higher, because async lets the framework reuse the thread that is executing your code.
In theory, the framework could find out if a method is async by detecting whether it has the AsyncStateMachine attribute applied. But I don't think frameworks do that.

For instance, in an Azure Function (or ASP.NET Core) context, if the method does not contain async/await, does this keep it from participating in the renowned throughput gains and benefits that are within the ASP.NET Core runtime? From what I understand it is the Task that really matters, not the async keyword.

To be completely accurate, it's not really about either. What matters is that you don't block the thread unnecessarily (e.g. when doing IO operations) and that your method returns a future that the framework you're using understands.
For example, ASP.NET Core MVC has a surprisingly (at least to me) robust system for working with controller action return types, which supports any awaitable type.
This means that the following two controller actions would both take advantage of the same "async" benefits, even though the second one doesn't use async or Task (full code):
public async Task<int> AsyncTask()
{
    var client = new WebClient();
    var content = await client.DownloadStringTaskAsync("http://google.com");

    return content.Length;
}

public CustomAwaitable<int> CustomAwaitable()
{
    var result = new CustomAwaitable<int>();

    var client = new WebClient();
    client.DownloadStringCompleted += (s, e) => result.SetResult(e.Result.Length);
    client.DownloadStringAsync(new Uri("http://google.com"));

    return result;
}

(Keep in mind that the above code is just an example to explain the concept, I'm not suggesting that you should write code like that.)
The big advantage of async-await is that it makes writing asynchronous code much simpler.
Of course, frameworks other than ASP.NET Core might have much more limited support for futures, like only supporting Task.

+1 for Cleary. Definitely "clearied" it up for me. 😀
Best explanation I've seen.

@svick

Of course, frameworks other than ASP.NET Core might have much more limited support for futures, like only supporting Task.

Naw, we support custom awaitable actually. We wrote this logic (https://github.com/aspnet/Common/blob/b31e410695210ea4144129f3243f2b114b144c13/shared/Microsoft.Extensions.ObjectMethodExecutor.Sources/ObjectMethodExecutor.cs) that basically mimics the C# compiler semantics WRT figuring out if something is awaitable (although extension methods don't wait, that's a bit too difficult to do at runtime). So from your MVC controller actions and your SignalR hub methods, you can return anything awaitable and it will be handled properly.

Wow, did the venerable @davidfowl just ghost this thread?  I thought what he provided was valuable.  FWIW, I am also interested in running ASP.NET Core performance metrics in regards to eliding at scale.  I would greatly appreciate any pointers in the right direction to start hunting this down.

Oh.  Then I meant formerly venerable @davidfowl. 🤣

Right way to do Async when database is involved synchronously (not all clients support async API) in a REST API.

You're kinda screwed there. There is no right way then, there are just trade offs of which is the least bad way.

@davidfowl I think a talk of the approaches and trade offs would be helpful; we have taken a variety of approaches over the life of our codebase. Uncontrolled parallelization+database client side connection pooling with long writes (Think data warehousing) has turned into a situation where our async message bus code causes database issues like connection pool exhaustion to the point that a temporary approach is to go sync (though that has outsized performance impacts).

Sounds like back pressure isn’t properly being applied. Unbounded parallel execution is bad in both cases but in the synchronous case you’re using the blocked thread as the thing stopping you from doing more work. The same can be done in the async case without burning a thread.

I followed this from the other issue about Azure Functions. I am commenting only on the aspect about when to use async and await versus Task (with or without async-await).
What I know is that if you're returning Task.FromResult(somethingToReturn) the method can simply return Task<TypeOfSomethingToReturn> without using async and await keywords. This is also because not all long-running operations inherently have Task somewhere being used. For example, a for loop that takes too long doesn't use Task.
So, you would ideally need async-await keywords when you have in use within the async-await method a method that returns a Task.


Prevent removal of MariaDB-compat for centos-7 #2

When mariadb is installed with a package at a version different than
the default os one, during removal of mysql-libs with yum multiple
matches can be found but chef could only use the first match:
MariaDB-compat. Therefore, because of dependencies, the removal of
MariaDB-compat triggers the one of MariaDB-server and several other
packages (MariaDB-shared, MariaDB-client, MariaDB-common, MariaDB-devel,
MySQL-python). To fix this issue we prevent the removal of mysql-libs
for centos-7 and later.
Signed-off-by: Jean-Francois Weber-Marx<EMAIL_ADDRESS>

Hello @shoekstra
I agree with your comment and I made changes accordingly.
Best Regards

Hi!
If you could just take a look at the failing spec test please.  Tested the rest of it locally and all passes, not sure why Travis is failing.

Hello @shoekstra
I have commented out my changes but Travis is still failing (https://travis-ci.org/sinfomicien/mariadb/jobs/219982942).
The error message (Error executing action install on resource 'gem_package[mysql2]') may somehow be related to https://github.com/sinfomicien/mariadb/pull/151 (It's a wild guess).

@jfwm2, it seems to be related to Chef 13, running the same tests locally against Chef 12 pass just fine.  I need to update the .travis.yml to only test against Chef 12 for now.  If you can push the original commit I will rebase when ready.
The ChefSpec needs some fixing, then should be good to merge 👍

Thanks @shoekstra!
I just pushed the original commit

Hi! Sorry for the delay in getting back to you...
So basically the tests now fail because ChefDK uses a newer Fauxhai and a newer Fauxhai has removed platform data for Fedora 19 which was EOLed aaages ago .
I want to get this change in, but it means a major version bump and dropping support/tests for old platforms.  I hope to have this ready soonest so we can indeed accept this PR.

It's almost there, chefspec still needs some fixing but will get to that later.

All good now, thanks for the contribution!

Thanks a lot @shoekstra !!
Great job on the Travis tests!


Unit Tests Next to Production Code - Relationships

Readiness checklist

[X] I added/updated unit tests.
[ ] I added/updated integration tests.
[X] I ensured that the PR title is good enough for the changelog.
[X] I labeled the PR.

@daniel-almeida-konkconsulting Did you compare the build times with the old structure compared to the new one?

@daniel-almeida-konkconsulting Why is there only one reviewer for this PR? According to our new workflow, there should be one for a code review and one for a manual test.

Switching branches (e.g. from this feature to main or the other way around) sometimes does not "gather" all the tests under the relevant production code file. It also gets fixed on its own, I am not really sure what is causing the problem and could not reproduce it reliably so it may be a local issue. They do show up at all times though.
The tests fail if the production code is commented out.


Open note after clicking always in same pane

Hi
I have just noticed another thing that worked fine, but no more. When you have more than one pane open with notes (and they are not pinned), and I click in a marker on the map, it opnes always in one of the panes, not in the pane I have selected. It worked fine before, but it has become "broken" at som eupdate, just as the follow selected note thing.
And if the pane used by Map View to send the note of the marker, is closed, then even if you have other panes, Map View will not open (do nothing) when you click a marker...
BTW, my suggestion here https://github.com/esm7/obsidian-map-view/issues/92#issuecomment-1145857042 is still valid (for me) and I think would make the use smoother.
Thanks

Thank you for that, I think it broke because of the big Obsidian 1.0.0 UI changes, and I need to rework the code that selects the pane to open Map View on. (And add support to open in a new tab, while we're at it.)
If all goes roughly according to plan, I should have some meaningful time to work on Map View this month :crossed_fingers:

Thanks for reply! Let's hope things go well and as expected!

Fixed in 2.3.0 (not released yet).


Frame index out of the range

First of all, thanks for the plugin. really help me in my current project.
I'm having this issue when following the steps shown in the documentation:

I cannot figure out what's going on.
Here is an example of the code: https://codesandbox.io/s/pjijs-gif-frnug

I've found the issue. It is in the static fromBuffer method. There is an iteration over the gifFrames, in which the frame delay is being used to make a time calculation. But in same cases, the delay value is undefined so the that the result is 'NaN'. Since I need this working asap for my project I copied the plugin code and added this line of  code:

If the issue ever get fixed, I will install the module again. By the way, thanks so much for the plugin, It has been a great help to me


unexpected output from go list command

What version of Go are you using (go version)?

$ go version
1.16

Does this issue reproduce with the latest release?
yes
What operating system and processor architecture are you using (go env)?
ubuntu 16.04.7
golang 1.16
go env Output
$ go env
GO111MODULE="off"
GOARCH="amd64"
GOBIN=""
GOCACHE="/root/.cache/go-build"
GOENV="/root/.config/go/env"
GOEXE=""
GOFLAGS=""
GOHOSTARCH="amd64"
GOHOSTOS="linux"
GOINSECURE=""
GOMODCACHE="/root/go/pkg/mod"
GONOPROXY=""
GONOSUMDB=""
GOOS="linux"
GOPATH="/root/go"
GOPRIVATE=""
GOPROXY="https://proxy.golang.org,direct"
GOROOT="/usr/local/go"
GOSUMDB="sum.golang.org"
GOTMPDIR=""
GOTOOLDIR="/usr/local/go/pkg/tool/linux_amd64"
GOVCS=""
GOVERSION="go1.16.4"
GCCGO="/usr/bin/gccgo"
AR="ar"
CC="gcc"
CXX="g++"
CGO_ENABLED="1"
GOMOD=""
CGO_CFLAGS="-g -O2"
CGO_CPPFLAGS=""
CGO_CXXFLAGS="-g -O2"
CGO_FFLAGS="-g -O2"
CGO_LDFLAGS="-g -O2"
PKG_CONFIG="pkg-config"
GOGCCFLAGS="-fPIC -m64 -pthread -fmessage-length=0 -fdebug-prefix-map=/tmp/go-build2928214481=/tmp/go-build -gno-record-gcc-switches"

What did you do?
trying to get the version details using go list command
go list all -m github.com/gomodule/redigo/redis
I forked redis into github.com/ManojKumarChauhan/redigo/redis and tried to run go list command but it's giving following error:
go.opentelemetry.io/otel/exporters/otlp/otlpmetric/internal/connection/connection.go:26:2: found import comments "go.opentelemetry.io/otel/exporters/otlp/internal/otlpconfig" (options.go) and "go.opentelemetry.io/otel/exporters/otlp/otlpmetric/internal/otlpconfig" (optiontypes.go) in /root/go/src/go.opentelemetry.io/otel/exporters/otlp/otlpmetric/internal/otlpconfig
cannot find package "-m" in any of:
/usr/local/go/src/-m (from $GOROOT)
/root/go/src/-m (from $GOPATH)
references
https://levelup.gitconnected.com/go-modules-replace-3ea6d0139c91
https://stackoverflow.com/questions/69748360/why-do-method-of-conn-interface-is-inlined/69748873#69748873
Without using -m option:
go.opentelemetry.io/otel/exporters/otlp/otlpmetric/internal/connection/connection.go:26:2: found import comments "go.opentelemetry.io/otel/exporters/otlp/internal/otlpconfig" (options.go) and "go.opentelemetry.io/otel/exporters/otlp/otlpmetric/internal/otlpconfig" (optiontypes.go) in /root/go/src/go.opentelemetry.io/otel/exporters/otlp/otlpmetric/internal/otlpconfig
no version information is displayed.
Same error for go1.17.1 & go1.17.2 versions
What did you expect to see?
go list -m command should print the version detail
What did you see instead?
go list -m command is failed

Unlike many projects, the Go project does not use GitHub Issues for general discussion or asking questions. GitHub Issues are used for tracking bugs and proposals only.
For questions please refer to https://github.com/golang/go/wiki/Questions

I created this issue because one function in redigo package is inlined. Expert suggested to use 'go list all -m' command to solve that. But this command is not working in any go version so I created this issue. You are suggesting to ask in other forums which I already did.


fix: remove DNS caching

Description
DNS caching was initially implemented to avoid too many DNS requests, as Node.js does not cache them. However, the cacheable-lookup library we used to implement this cache created more problems than it solved, as it caused many unresolved DNS request errors that weren't occurring before.
Screenshot (if UI-related)
To-Dos

[x] Successful build yarn build
[ ] Translation keys yarn i18n:extract
[ ] Database migration (if required)

Issues Fixed or Closed

Fixes #821

:tada: This PR is included in version 2.0.0 :tada:
The release is available on:

v2.0.0
GitHub release

Your semantic-release bot :package::rocket:


Installation failed

The command   sudo pip install ipython-d3-sankeyfailed with the following error:
Command python setup.py egg_info failed with error code 1 in /private/tmp/pip_build_root/ipython-d3-sankey
Storing debug log for failure in /Users/jmague/.pip/pip.log

Here is the log:
Downloading/unpacking ipython-d3-sankey
  Getting page https://pypi.python.org/simple/ipython-d3-sankey/
  URLs to search for versions for ipython-d3-sankey:
  * https://pypi.python.org/simple/ipython-d3-sankey/
  Analyzing links from page https://pypi.python.org/simple/ipython-d3-sankey/
    Found link https://pypi.python.org/packages/source/i/ipython-d3-sankey/ipython-d3-sankey-0.1.0.tar.gz#md5=1d3604c2d360bfc16c0b70890507cebe (from https://pypi.python.org/simple/ipython-d3-sankey/), version: 0.1.0
    Found link https://pypi.python.org/packages/source/i/ipython-d3-sankey/ipython-d3-sankey-0.1.1.tar.gz#md5=5c4c4d7a34844d1303c8417a75fa944d (from https://pypi.python.org/simple/ipython-d3-sankey/), version: 0.1.1
  Using version 0.1.1 (newest of versions: 0.1.1, 0.1.0)
  Downloading from URL https://pypi.python.org/packages/source/i/ipython-d3-sankey/ipython-d3-sankey-0.1.1.tar.gz#md5=5c4c4d7a34844d1303c8417a75fa944d (from https://pypi.python.org/simple/ipython-d3-sankey/)
  Running setup.py (path:/private/tmp/pip_build_root/ipython-d3-sankey/setup.py) egg_info for package ipython-d3-sankey
    Traceback (most recent call last):
      File "<string>", line 17, in <module>
      File "/private/tmp/pip_build_root/ipython-d3-sankey/setup.py", line 32, in <module>
        'ipythond3sankey.widgets']),
    TypeError: find_packages() got an unexpected keyword argument 'include'
    Complete output from command python setup.py egg_info:
    Traceback (most recent call last):

  File "<string>", line 17, in <module>

  File "/private/tmp/pip_build_root/ipython-d3-sankey/setup.py", line 32, in <module>

    'ipythond3sankey.widgets']),

TypeError: find_packages() got an unexpected keyword argument 'include'

----------------------------------------
Cleaning up...
  Removing temporary dir /private/tmp/pip_build_root...
Command python setup.py egg_info failed with error code 1 in /private/tmp/pip_build_root/ipython-d3-sankey
Exception information:
Traceback (most recent call last):
  File "/Users/jmague/anaconda/lib/python2.7/site-packages/pip/basecommand.py", line 122, in main
    status = self.run(options, args)
  File "/Users/jmague/anaconda/lib/python2.7/site-packages/pip/commands/install.py", line 278, in run
    requirement_set.prepare_files(finder, force_root_egg_info=self.bundle, bundle=self.bundle)
  File "/Users/jmague/anaconda/lib/python2.7/site-packages/pip/req.py", line 1229, in prepare_files
    req_to_install.run_egg_info()
  File "/Users/jmague/anaconda/lib/python2.7/site-packages/pip/req.py", line 325, in run_egg_info
    command_desc='python setup.py egg_info')
  File "/Users/jmague/anaconda/lib/python2.7/site-packages/pip/util.py", line 697, in call_subprocess
    % (command_desc, proc.returncode, cwd))
InstallationError: Command python setup.py egg_info failed with error code 1 in /private/tmp/pip_build_root/ipython-d3-sankey

I'm using Python 2.7.10 form anaconda and pip 1.5.6
$ pip --version
pip 1.5.6 from /Users/jmague/anaconda/lib/python2.7/site-packages (python 2.7)
$ python --version
Python 2.7.10 :: Anaconda 2.0.1 (x86_64)

Hi,
I think you have an old version of setuptools. Can you try
$ sudo pip install --upgrade setuptools
$ sudo pip install ipython-d3-sankey

I'll see if I can update this package to automatically require an up to date version of setuptools, but in the meantime I think that should work.

That was it! Thanks


BeamNG should allow for multiple connections

At the moment, only one BeamNGpy instance can be used to connect to a simulation. It would be ideal if, at least for vehicles, one can use multiple sockets/end-points, such that one BeamNG instance might be used to control the scenario while the others control the vehicles?

You are right, this would be neat. However the code is mostly written with the Python side acting as the server, BeamNG.drive as the client. In hindsight this was a mistake I made early on, but it's one I have to deal with now so it could take a bit to rework everything to allow multiple concurrent clients.

Added in v1.19.1: https://github.com/BeamNG/BeamNGpy/blob/master/CHANGELOG.rst
Example here: https://github.com/BeamNG/BeamNGpy/blob/master/examples/multi_client.ipynb


try fix: Docker with Conda & PT 1.8 [skip CI]

What does this PR do?
try to fix the failing Horovod build for PT 1.8
Before submitting

[ ] Was this discussed/approved via a GitHub issue? (not for typos and docs)
[ ] Did you read the contributor guideline, Pull Request section?
[ ] Did you make sure your PR does only one thing, instead of bundling different changes together?
[ ] Did you make sure to update the documentation with your changes? (if necessary)
[ ] Did you write any new necessary tests? (not for typos and docs)
[ ] Did you verify new and existing tests pass locally with your changes?
[ ] Did you update the CHANGELOG? (not for typos, docs, test updates, or internal minor changes/refactorings)

PR review
Anyone in the community is free to review the PR once the tests have passed.
Before you start reviewing make sure you have read Review guidelines. In short, see the following bullet-list:

[ ] Is this pull request ready for review? (if not, please submit in draft mode)
[ ] Check that all items from Before submitting are resolved
[ ] Make sure the title is self-explanatory and the description concisely explains the PR
[ ] Add labels and milestones (and optionally projects) to the PR so it can be classified
[ ] Check that target branch and milestone match!

Did you have fun?
Make sure you had fun coding 🙃

@tgaddair mind have look at the installation, there seems to be something wrong with parsing PT versions
when I list installed torched versions
$ pip list | grep torch
torch                     1.8.0.dev20210205
torchtext                 0.9.0.dev20210205
torchvision               0.9.0.dev20210205

but later in horovod installation, I get:
CMake Error at /usr/share/cmake-3.10/Modules/FindPackageHandleStandardArgs.cmake:137 (message):
Could NOT find Pytorch: Found unsuitable version "", but required is at least "1.2.0" (found )

ok, the problem is rather in PT itself - https://github.com/pytorch/pytorch/issues/51026

let's update conda too https://github.com/conda/conda/issues/8385#issuecomment-719466443


Exception Cannot read property 'colorWithAlphaComponent' of null thrown when using MDTabs

Make sure to check the demo app(s) for sample usage
Make sure to check the existing issues in this repository
If the demo apps cannot help and there is no issue for your problem, tell us about it
Please, ensure your title is less than 63 characters long and starts with a capital
letter.
Which platform(s) does your issue occur on?

iOS
iOS 13.6
Emulator or device: both

Please, provide the following version numbers that your issue occurs with:

CLI: 7.0.8
Cross-platform modules: 7.0.7
Runtime(s): 7.0.0
Plugin(s): 5.0.6

Please, tell us how to recreate the issue in as much detail as possible.
Describe the steps to reproduce it.
Is there any code involved?
This is similar to #183 but for MDTabs component. When using MDTabs in Angular, the following exception gets thrown:
TypeError: Cannot read property 'colorWithAlphaComponent' of null
The culprit seems to be the following when primaryColor of colorScheme could be null:
https://github.com/nativescript-community/ui-material-components/blob/e8c48d561f03c48e3819c6cda443588612be3841/src/tabs/tabs.ios.ts#L107
Will be more than happy to send a PR.

After updating to latest version I no longer get this error.


Compilation with Visual Studio 2013

Hi
I am looking for a python interface to the Cerebus system.
I have tried to compile Cerelink with Visual Studio 2013/Windows 7, and it failed. Here are the steps:
In the Visual Studio command line:

cmake .

which adds a lot of vcxproj files to the build folder.
The wiki then advises to run make all and make install, but this step does not work with the generated vcxproj files, so I followed the Visual Studio route, and run MSBUILD ALL_BUILD.vcxproj
This step fails, with the following error:

"C:\Users\master\Documents\CereLink-master\build\ALL_BUILD.vcxproj" (cible par
défaut) (1) ->
"C:\Users\master\Documents\CereLink-master\build\cbpy.vcxproj" (cible par défau
t) (3) ->
"C:\Users\master\Documents\CereLink-master\build\cbsdk_static.vcxproj" (cible p
ar défaut) (4) ->
(Lib cible) ->
LINK : warning LNK4068: /MACHINE not specified; defaulting to X86 [C:\Users\m
aster\Documents\CereLink-master\build\cbsdk_static.vcxproj]
"C:\Users\master\Documents\CereLink-master\build\ALL_BUILD.vcxproj" (cible par
défaut) (1) ->
"C:\Users\master\Documents\CereLink-master\build\cbpy.vcxproj" (cible par défau
t) (3) ->
(Link cible) ->
LINK : fatal error LNK1104: cannot open file 'C:\Users\master\Documents\CereL
ink-master\dist\lib\Debug..\cbsdk_staticd.lib' [C:\Users\master\Documents\Cere
Link-master\build\cbpy.vcxproj]

Do you know if this can be solved our would you advise to rather move to Linux ? (I want the same machine to host both Cerelink and the Cerebus standard GUI)
Thanks a lot for your help
Luc Estebanez
^^^^^^^^^^^^^^^^^^
Post-doctoral researcher,
CNRS, France

The visual studio build project may not work with other than exact version (never tested), but now we have a portable way to compile on different platforms using CMake. After you install CMake, open a Visual Studio 2013 Command Prompt (usually an option addd in command prompt, but also accessible through visual studio tools menu also), and the rest is like any CMake. Navigate to build do a cmake then make.

Thanks so much for your guidance. I thought I followed these steps, but I will try again back in the lab on Monday, and I will let you know the outcome...
All the best,
Luc

@lucestebanez I think I have to test this myself too, it has been some time I did not test with VS, and I can only test 2008 because that is free. Will test this weekend.

Thanks so much for that ! Actually I made the mistake of assuming that Visual Studio Express 2013 may have been sufficient  to compile the code. If you coud test and maybe write down the steps for the Visual Studio 2008 procedure, I would then download Visual Studio 2008 and follow your steps carefully !
Best wishes,
Luc

Ok I got Qt4 from here and am trying this in a XP VM in VS2008. After cmake . step, I opened the sln and tried to build, and yes I get error about lack of afxres.h which is some reminiscent of the time I had VS license and thus MFC. This is only for compiling the icon into binary, which is not that critical anyways, I will try to find a workaround and update you here.

Ok, in this commit fixed the build now I can open sln and build all. Please note that I took cbpy out of CMake build because the cbpy version in cerebus which is written in Cython is better tested, even though it does not have all the functionalities, most important ones are there. To get that cbpy after cbsdk_static is built and installed you can use setup.py to build the cbpy, I think the docs need update, so PR is welcome. Also let me know if it works in VS2013 now, even though the error in that case seems like the CMake build cannot produce correct sln from dependencies.

Thanks a lot. I could succesfully the package this time using Visual Studio Community edition 2013. However, the install failed because the file names in the cmake_install.cmake file were somehow wrong (there were /../ inserted in the paths).
I now have in C:\Program Files (x86)\CBSDK the following tree:
CBSDK

bin
cbsdkd.dll
testcbsdk
include
cbhwlib.h
cbsdk.h
lib
cbsdk_staticd.lib
cbsdkd.lib

Also, I ran in a command line testcbsdk and I got the following (with my cerebus connected):

C:\Program Files (x86)\CBSDK\bin>testcbsdk.exe
Initializing Cerebus real-time interface <IP_ADDRESS> (protocol cb3.09)...
Udp real-time interface to NSP (<IP_ADDRESS>) successfully initialized
testOpen succeeded
Interface closed successfully
testClose succeeded

So things look good there.
But then I tried to compile what I am interested in, which is the python interface by running on a command line (Annaconda installed) and I got an  error:

C:\Users\master\Documents\CereLink-master>python setup.py install
running install
running bdist_egg
running egg_info
writing cerelink.egg-info\PKG-INFO
writing top-level names to cerelink.egg-info\top_level.txt
writing dependency_links to cerelink.egg-info\dependency_links.txt
reading manifest file 'cerelink.egg-info\SOURCES.txt'
writing manifest file 'cerelink.egg-info\SOURCES.txt'
installing library code to build\bdist.win-amd64\egg
running install_lib
running build_py
running build_ext
skipping 'cerebus\cbpyw.cpp' Cython extension (up-to-date)
building 'cerebus.cbpy' extension
C:\Anaconda\Scripts\gcc.bat -DMS_WIN64 -mdll -O -Wall -IC:\Anaconda\lib\site-pac
kages\numpy\core\include -IC:\Anaconda\include -IC:\Anaconda\PC -c cerebus\cbpyw
.cpp -o build\temp.win-amd64-2.7\Release\cerebus\cbpyw.o
In file included from cerebus\cbpyw.cpp:230:0:
cerebus\cbpy.h:13:19: fatal error: cbsdk.h: No such file or directory
compilation terminated.
error: command 'C:\Anaconda\Scripts\gcc.bat' failed with exit status 1

It looks like the compiler cannot find the header files corresponding to the cbsdk library. I tried my luck and directly copied the .h files into the /cerebus directory, but this leads to other errors that are probably due to the need for other files than just the .h files...
I also tried to add the library to the PATH variable without success.
Thanks a lot for any advice you may have to finish this last step!
All the best,
Luc

Yes you are right, this is Windows, will get back to this soon

Hi Ehsan,
Just to tell you that I really look forward to your kind help, and if needed I would definitely try things on my system to debug the situation.
All the best,
Luc

setup.py does compile now (python setup.py build_ext, python setup.py install,...), will look at usual locations for static library (make sure to compile a Release version first), it also tries to find Qt install location reading the registry, but if QTDIR environment variable is set (export QTDIR=blahblah) it will be used instead. If Cython is installed it will rebuild the intermediate cpp file, otherwise it uses the one in the repo, I will have to make sure I keep it updated if anything changes.

Thanks a lot for these fix Ehsan.
Sadly, somehow things still don't work at the 'buid extension' stage. Basically, after I have compiled a Release version of the bpackage, I went to the ./CereLink-master level, and there I run python setup.py build_ext. The first lines of output are the following:

C:\Users\master\Documents\CereLink-master>python setup.py build_ext
running build_ext
skipping 'cerebus\cbpyw.cpp' Cython extension (up-to-date)
building 'cerebus.cbpy' extension
creating build\temp.win-amd64-2.7
creating build\temp.win-amd64-2.7\Release
creating build\temp.win-amd64-2.7\Release\cerebus
C:\Anaconda\Scripts\gcc.bat -DMS_WIN64 -mdll -O -Wall -IC:\Anaconda\lib\site-packages\numpy> \core\include -IC:\Users\master\Documents\CereLink-master\dist\include -IC:\Qt\4.8.6\include -IC:\Users\master\Documents\CereLink-master\compat -IC:\Anaconda\include -IC:\Anaconda\PC -c cerebus\cbpyw.cpp -o build\temp.win-amd64-2.7\Release\cerebus\cbpyw.o
In file included from c:\anaconda\mingw\bin../lib/gcc/x86_64-w64-mingw32/4.7.0/include/stddef.h:1:0,
from C:\Users\master\Documents\CereLink-master\compat/stdint.h:187,
from C:\Users\master\Documents\CereLink-master\compat/stdint.h:197,
from C:\Users\master\Documents\CereLink-master\compat/stdint.h:197,
from C:\Users\master\Documents\CereLink-master\compat/stdint.h:197,
from C:\Users\master\Documents\CereLink-master\compat/stdint.h:197,

The last lines are:

cerebus\cbpyw.cpp:1485:13: warning: 'void __pyx_insert_code_object(int, PyCodeObject*)' declared 'static' but never defined [-Wunused-function]
cerebus\cbpyw.cpp:1487:13: warning: 'void __Pyx_AddTraceback(const char*, int, int, const char*)' declared 'static' but never defined [-Wunused-function]
cerebus\cbpyw.cpp:1490:12: warning: 'int __Pyx_InitStrings(__Pyx_StringTabEntry*)' declared 'static' but never defined [-Wunused-function]
cerebus\cbpyw.cpp:9093:32: warning: '__pyx_array_obj* __pyx_array_new(PyObject*, Py_ssize_t, char*, char*, char*)' defined but not used [-Wunused-function]
cerebus\cbpyw.cpp:12775:18: warning: 'PyObject* __pyx_memoryview_new(PyObject*, int, int, __Pyx_TypeInfo*)' defined but not used [-Wunused-function]
cerebus\cbpyw.cpp:1568:23: warning: '__Pyx_TypeInfo_nn___pyx_t_5numpy_double_t' defined but not used [-Wunused-variable]
cerebus\cbpyw.cpp:1569:23: warning: '__Pyx_TypeInfo_nn___pyx_t_5numpy_uint32_t' defined but not used [-Wunused-variable]
cerebus\cbpyw.cpp:1570:23: warning: '__Pyx_TypeInfo_nn___pyx_t_5numpy_uint16_t' defined but not used [-Wunused-variable]
cerebus\cbpyw.cpp:1571:23: warning: '__Pyx_TypeInfo_nn___pyx_t_5numpy_int16_t' defined but not used [-Wunused-variable]
error: command 'C:\Anaconda\Scripts\gcc.bat' failed with exit status 1

I will try to get some local support to solve this issue, but obviously if you have any idea of what is going on, I would be happy to have your help...  I will make sure to write down the correct steps in the wiki one this issue is solved.
All the best,
Luc

Can you try the setup.py approach from within the Visual Studio command line? Since most of these libraries are built with VS, it makes sense to stick to it rather than mingwin even if you resolve the build issue you have with mingwin. If it is inside VS command line and still it is trying to use mingwin gcc, then you should look to find how to make sure VS toolchain. It seems the error you get is basically a crash in the build, it is not an error about the actual code, all the logs show is warnings. Another thing, I included stdint because VS2008 does not have it, but mingwin has its own version, you can delete the one in compat and try again with mingwin, again it is usually not a good idea to mix compilers though.

Did you figure out why gcc was used in your case?
Here are the binaries.

Dear Ehsan,
First thanks so much for these binaries. I will test them tomorrow, and for sure they are going to help me tremendously!
Regarding the compilation process, the reason MinG was triggered was that I did not have the correct setup tools (you need >6.0) and I missed also the adequate compiler from microsoft (there is a specific version of the VS 2008 compiler that is distributed specifically to compile python extensions). In the end, I read in several places that for compatibility reasons I should compile python 2.7 extensions with VS 2008. So in the end I installed VS 2008 at the end of last week and I started this morning to work on getting the compilation done... (one additional motivation is that you are successful in building the python module with VS 2008).
All the best,
Luc
Le Lundi, 16 Février, 2015 18:59 CET, Ehsan Azar<EMAIL_ADDRESS>a écrit:

Did you figure out why gcc was used in your case?
Here are the binaries.

Reply to this email directly or view it on GitHub:
https://github.com/dashesy/CereLink/issues/44#issuecomment-74548553

Dear Ehsan,
Thanks a lot again. I could connect to the Cerelink system, and I could have some basic interaction with it. Howevere, I start to understand that the interface does not offer a two-way communication with the hardware, and it is only able to read the stream of experimental data, Am I right ? In case when I need to write to a digital port, how would I accomplish this ? Should I directly write UDP packet using a python library ?
All the best,
Luc

Evrything that can be done by cbsdk (or cbmex) we should be able to do by cbpy, and that includes controlling digital channels,.., even controlling the custom extensions.
However I have not yet implemented all of them, and started with those that someone asked for first. I will add digital channels to it, but this weekend I will not be in town, so it will have to be at least in the weekend afterwards. If you are good in Python you can take a look at cbpyw.pyx to see how it wraps cbsdk, it is actually not hard.

This would be awesome ! I will have a look then, and let you know if I have made progress before the week after...
Best wishes,
Luc

I added the digital output command, here is for Windows. As can be seen in this commit using Cython it is mechanical to add all other commands.

Thanks so much for that! I will test it and try to contribute further as I use the system and have further needs.
Best wishes,  Luc


Synthesis failed for nodejs-storage

Hello! Autosynth couldn't regenerate nodejs-storage. :broken_heart:
Here's the output from running synth.py:
2020-05-14 06:37:07,085 autosynth [INFO] > logs will be written to: /tmpfs/src/github/synthtool/logs/googleapis/nodejs-storage
2020-05-14 06:37:07,088 synthtool [ERROR] > Failed executing git clone --single-branch https://github.com/googleapis/nodejs-storage.git /home/kbuilder/.cache/synthtool/nodejs-storage:

fatal: could not create work tree dir '/home/kbuilder/.cache/synthtool/nodejs-storage': No space left on device

Traceback (most recent call last):
  File "/home/kbuilder/.pyenv/versions/3.6.9/lib/python3.6/runpy.py", line 193, in _run_module_as_main
    "__main__", mod_spec)
  File "/home/kbuilder/.pyenv/versions/3.6.9/lib/python3.6/runpy.py", line 85, in _run_code
    exec(code, run_globals)
  File "/tmpfs/src/github/synthtool/autosynth/synth.py", line 600, in <module>
    main()
  File "/tmpfs/src/github/synthtool/autosynth/synth.py", line 472, in main
    return _inner_main(temp_dir)
  File "/tmpfs/src/github/synthtool/autosynth/synth.py", line 519, in _inner_main
    working_repo_path = synthtool_git.clone(f"https://github.com/{args.repository}.git")
  File "/tmpfs/src/github/synthtool/synthtool/sources/git.py", line 83, in clone
    shell.run(cmd, check=True)
  File "/tmpfs/src/github/synthtool/synthtool/shell.py", line 39, in run
    raise exc
  File "/tmpfs/src/github/synthtool/synthtool/shell.py", line 33, in run
    encoding="utf-8",
  File "/home/kbuilder/.pyenv/versions/3.6.9/lib/python3.6/subprocess.py", line 438, in run
    output=stdout, stderr=stderr)
subprocess.CalledProcessError: Command '['git', 'clone', '--single-branch', 'https://github.com/googleapis/nodejs-storage.git', PosixPath('/home/kbuilder/.cache/synthtool/nodejs-storage')]' returned non-zero exit status 128.

Google internal developers can see the full log here.

Autosynth is still having trouble generating nodejs-storage. :sob:
Here's the output from running synth.py:
2020-05-14 16:12:49,318 autosynth [INFO] > logs will be written to: /tmpfs/src/github/synthtool/logs/googleapis/nodejs-storage
2020-05-14 16:12:49,321 synthtool [ERROR] > Failed executing git clone --single-branch https://github.com/googleapis/nodejs-storage.git /home/kbuilder/.cache/synthtool/nodejs-storage:

fatal: could not create work tree dir '/home/kbuilder/.cache/synthtool/nodejs-storage': No space left on device

Traceback (most recent call last):
  File "/home/kbuilder/.pyenv/versions/3.6.9/lib/python3.6/runpy.py", line 193, in _run_module_as_main
    "__main__", mod_spec)
  File "/home/kbuilder/.pyenv/versions/3.6.9/lib/python3.6/runpy.py", line 85, in _run_code
    exec(code, run_globals)
  File "/tmpfs/src/github/synthtool/autosynth/synth.py", line 600, in <module>
    main()
  File "/tmpfs/src/github/synthtool/autosynth/synth.py", line 472, in main
    return _inner_main(temp_dir)
  File "/tmpfs/src/github/synthtool/autosynth/synth.py", line 519, in _inner_main
    working_repo_path = synthtool_git.clone(f"https://github.com/{args.repository}.git")
  File "/tmpfs/src/github/synthtool/synthtool/sources/git.py", line 83, in clone
    shell.run(cmd, check=True)
  File "/tmpfs/src/github/synthtool/synthtool/shell.py", line 39, in run
    raise exc
  File "/tmpfs/src/github/synthtool/synthtool/shell.py", line 33, in run
    encoding="utf-8",
  File "/home/kbuilder/.pyenv/versions/3.6.9/lib/python3.6/subprocess.py", line 438, in run
    output=stdout, stderr=stderr)
subprocess.CalledProcessError: Command '['git', 'clone', '--single-branch', 'https://github.com/googleapis/nodejs-storage.git', PosixPath('/home/kbuilder/.cache/synthtool/nodejs-storage')]' returned non-zero exit status 128.

Google internal developers can see the full log here.

Autosynth is still having trouble generating nodejs-storage. :sob:
Here's the output from running synth.py:
2020-05-14 19:39:05,045 autosynth [INFO] > logs will be written to: /tmpfs/src/github/synthtool/logs/googleapis/nodejs-storage
2020-05-14 19:39:05,050 synthtool [ERROR] > Failed executing git clone --single-branch https://github.com/googleapis/nodejs-storage.git /home/kbuilder/.cache/synthtool/nodejs-storage:

fatal: could not create work tree dir '/home/kbuilder/.cache/synthtool/nodejs-storage': No space left on device

Traceback (most recent call last):
  File "/home/kbuilder/.pyenv/versions/3.6.9/lib/python3.6/runpy.py", line 193, in _run_module_as_main
    "__main__", mod_spec)
  File "/home/kbuilder/.pyenv/versions/3.6.9/lib/python3.6/runpy.py", line 85, in _run_code
    exec(code, run_globals)
  File "/tmpfs/src/github/synthtool/autosynth/synth.py", line 601, in <module>
    main()
  File "/tmpfs/src/github/synthtool/autosynth/synth.py", line 473, in main
    return _inner_main(temp_dir)
  File "/tmpfs/src/github/synthtool/autosynth/synth.py", line 520, in _inner_main
    working_repo_path = synthtool_git.clone(f"https://github.com/{args.repository}.git")
  File "/tmpfs/src/github/synthtool/synthtool/sources/git.py", line 83, in clone
    shell.run(cmd, check=True)
  File "/tmpfs/src/github/synthtool/synthtool/shell.py", line 39, in run
    raise exc
  File "/tmpfs/src/github/synthtool/synthtool/shell.py", line 33, in run
    encoding="utf-8",
  File "/home/kbuilder/.pyenv/versions/3.6.9/lib/python3.6/subprocess.py", line 438, in run
    output=stdout, stderr=stderr)
subprocess.CalledProcessError: Command '['git', 'clone', '--single-branch', 'https://github.com/googleapis/nodejs-storage.git', PosixPath('/home/kbuilder/.cache/synthtool/nodejs-storage')]' returned non-zero exit status 128.

Google internal developers can see the full log here.

Autosynth is still having trouble generating nodejs-storage. :sob:
Here's the output from running synth.py:
2020-05-15 05:48:30,015 autosynth [INFO] > logs will be written to: /tmpfs/src/github/synthtool/logs/googleapis/nodejs-storage
2020-05-15 05:48:30,018 synthtool [ERROR] > Failed executing git clone --single-branch https://github.com/googleapis/nodejs-storage.git /home/kbuilder/.cache/synthtool/nodejs-storage:

fatal: could not create work tree dir '/home/kbuilder/.cache/synthtool/nodejs-storage': No space left on device

Traceback (most recent call last):
  File "/home/kbuilder/.pyenv/versions/3.6.9/lib/python3.6/runpy.py", line 193, in _run_module_as_main
    "__main__", mod_spec)
  File "/home/kbuilder/.pyenv/versions/3.6.9/lib/python3.6/runpy.py", line 85, in _run_code
    exec(code, run_globals)
  File "/tmpfs/src/github/synthtool/autosynth/synth.py", line 601, in <module>
    main()
  File "/tmpfs/src/github/synthtool/autosynth/synth.py", line 473, in main
    return _inner_main(temp_dir)
  File "/tmpfs/src/github/synthtool/autosynth/synth.py", line 520, in _inner_main
    working_repo_path = synthtool_git.clone(f"https://github.com/{args.repository}.git")
  File "/tmpfs/src/github/synthtool/synthtool/sources/git.py", line 83, in clone
    shell.run(cmd, check=True)
  File "/tmpfs/src/github/synthtool/synthtool/shell.py", line 39, in run
    raise exc
  File "/tmpfs/src/github/synthtool/synthtool/shell.py", line 33, in run
    encoding="utf-8",
  File "/home/kbuilder/.pyenv/versions/3.6.9/lib/python3.6/subprocess.py", line 438, in run
    output=stdout, stderr=stderr)
subprocess.CalledProcessError: Command '['git', 'clone', '--single-branch', 'https://github.com/googleapis/nodejs-storage.git', PosixPath('/home/kbuilder/.cache/synthtool/nodejs-storage')]' returned non-zero exit status 128.

Google internal developers can see the full log here.

Autosynth is still having trouble generating nodejs-storage. :sob:
Here's the output from running synth.py:
2020-05-15 13:38:28,250 autosynth [INFO] > logs will be written to: /tmpfs/src/github/synthtool/logs/googleapis/nodejs-storage
2020-05-15 13:38:33,795 synthtool [ERROR] > Failed executing git clone --single-branch https://github.com/googleapis/nodejs-storage.git /home/kbuilder/.cache/synthtool/nodejs-storage:

Cloning into '/home/kbuilder/.cache/synthtool/nodejs-storage'...
remote: Internal Server Error.
remote:
fatal: unable to access 'https://github.com/googleapis/nodejs-storage.git/': The requested URL returned error: 500

Traceback (most recent call last):
  File "/home/kbuilder/.pyenv/versions/3.6.9/lib/python3.6/runpy.py", line 193, in _run_module_as_main
    "__main__", mod_spec)
  File "/home/kbuilder/.pyenv/versions/3.6.9/lib/python3.6/runpy.py", line 85, in _run_code
    exec(code, run_globals)
  File "/tmpfs/src/github/synthtool/autosynth/synth.py", line 612, in <module>
    main()
  File "/tmpfs/src/github/synthtool/autosynth/synth.py", line 473, in main
    return _inner_main(temp_dir)
  File "/tmpfs/src/github/synthtool/autosynth/synth.py", line 520, in _inner_main
    working_repo_path = synthtool_git.clone(f"https://github.com/{args.repository}.git")
  File "/tmpfs/src/github/synthtool/synthtool/sources/git.py", line 83, in clone
    shell.run(cmd, check=True)
  File "/tmpfs/src/github/synthtool/synthtool/shell.py", line 39, in run
    raise exc
  File "/tmpfs/src/github/synthtool/synthtool/shell.py", line 33, in run
    encoding="utf-8",
  File "/home/kbuilder/.pyenv/versions/3.6.9/lib/python3.6/subprocess.py", line 438, in run
    output=stdout, stderr=stderr)
subprocess.CalledProcessError: Command '['git', 'clone', '--single-branch', 'https://github.com/googleapis/nodejs-storage.git', PosixPath('/home/kbuilder/.cache/synthtool/nodejs-storage')]' returned non-zero exit status 128.

Google internal developers can see the full log here.

Autosynth passed, closing! :green_heart:


Gradle build failed to produce an .apk file.

I am building an application with flavors and splits. The apks are generated at build/outputs/apk/flavor-name/debug/*.apk
The apk name is in this format.
I get an error
Gradle build failed to produce an .apk file. It's likely that this file was generated under /Users/sujith/<repo>/build,
but the tool couldn't find it.

#0      throwToolExit (package:flutter_tools/src/base/common.dart:28:3)
#1      _exitWithExpectedFileNotFound (package:flutter_tools/src/android/gradle.dart:827:3)
#2      findApkFiles (package:flutter_tools/src/android/gradle.dart:765:5)
#3      buildGradleApp (package:flutter_tools/src/android/gradle.dart:451:35)
#4      _asyncThenWrapperHelper.<anonymous closure> (dart:async-patch/async_patch.dart:73:64)
#5      _rootRunUnary (dart:async/zone.dart:1134:38)
#6      _CustomZone.runUnary (dart:async/zone.dart:1031:19)
#7      _FutureListener.handleValue (dart:async/future_impl.dart:139:18)
#8      Future._propagateToListeners.handleValueCallback (dart:async/future_impl.dart:680:45)
#9      Future._propagateToListeners (dart:async/future_impl.dart:709:32)
#10     Future._completeWithValue (dart:async/future_impl.dart:524:5)
#11     _AsyncAwaitCompleter.complete (dart:async-patch/async_patch.dart:32:15)
#12     _completeOnAsyncReturn (dart:async-patch/async_patch.dart:290:13)
#13     _DefaultProcessUtils.stream (package:flutter_tools/src/base/process.dart)
#14     _asyncThenWrapperHelper.<anonymous closure> (dart:async-patch/async_patch.dart:73:64)
#15     _rootRunUnary (dart:async/zone.dart:1134:38)
#16     _CustomZone.runUnary (dart:async/zone.dart:1031:19)
#17     _FutureListener.handleValue (dart:async/future_impl.dart:139:18)
#18     Future._propagateToListeners.handleValueCallback (dart:async/future_impl.dart:680:45)
#19     Future._propagateToListeners (dart:async/future_impl.dart:709:32)
#20     Future._completeWithValue (dart:async/future_impl.dart:524:5)
#21     Future._asyncComplete.<anonymous closure> (dart:async/future_impl.dart:554:7)
#22     _rootRun (dart:async/zone.dart:1126:13)
#23     _CustomZone.run (dart:async/zone.dart:1023:19)
#24     _CustomZone.runGuarded (dart:async/zone.dart:925:7)
#25     _CustomZone.bindCallbackGuarded.<anonymous closure> (dart:async/zone.dart:965:23)
#26     _microtaskLoop (dart:async/schedule_microtask.dart:43:21)
#27     _startMicrotaskLoop (dart:async/schedule_microtask.dart:52:5)
#28     _runPendingImmediateCallback (dart:isolate-patch/isolate_patch.dart:118:13)
#29     _RawReceivePortImpl._handleMessage (dart:isolate-patch/isolate_patch.dart:175:5)

I am able to see all the apks inside build/app/outputs/apk/flavor/release-type-debug/*.apk
The apks are exactly are in the same specified format.
Flutter analyze
No issues found! (ran in 3.9s)

Doctor summary (to see all details, run flutter doctor -v):
[✓] Flutter (Channel master, v1.12.15-pre.6, on Mac OS X 10.14.5 18F203, locale en-IN)

[✓] Android toolchain - develop for Android devices (Android SDK version 29.0.2)
[✓] Xcode - develop for iOS and macOS (Xcode 11.0)
[✓] Android Studio (version 3.5)
[✓] Connected device (1 available)

• No issues found!
Sujiths-MacBook-Pro% flutter doctor -v
[✓] Flutter (Channel master, v1.12.15-pre.6, on Mac OS X 10.14.5 18F203, locale en-IN)
    • Flutter version 1.12.15-pre.6 at /Users/sujith_tsr/flutter
    • Framework revision 92b0ceaaa6 (24 hours ago), 2019-11-26 01:19:51 -0500
    • Engine revision 05f8c8b24b
    • Dart version 2.7.0

[✓] Android toolchain - develop for Android devices (Android SDK version 29.0.2)
    • Android SDK at /Users/sujith_tsr/Library/Android/sdk
    • Android NDK location not configured (optional; useful for native profiling support)
    • Platform android-29, build-tools 29.0.2
    • ANDROID_HOME = /Users/sujith_tsr/Library/Android/sdk
    • Java binary at: /Applications/Android Studio.app/Contents/jre/jdk/Contents/Home/bin/java
    • Java version OpenJDK Runtime Environment (build 1.8.0_202-release-1483-b49-5587405)
    • All Android licenses accepted.

[✓] Xcode - develop for iOS and macOS (Xcode 11.0)
    • Xcode at /Applications/Xcode.app/Contents/Developer
    • Xcode 11.0, Build version 11A420a
    • CocoaPods version 1.7.5

[✓] Android Studio (version 3.5)
    • Android Studio at /Applications/Android Studio.app/Contents
    • Flutter plugin version 40.2.2
    • Dart plugin version 191.8580
    • Java version OpenJDK Runtime Environment (build 1.8.0_202-release-1483-b49-5587405)

[✓] Connected device (1 available)
    • Android SDK built for x86 • emulator-5554 • android-x86 • Android 8.1.0 (API 27) (emulator)

• No issues found!

Just a hunch.!
Why isn't the flavor and build type directory not considered here?
Maybe that might be the reason for the Iterable<File> apks being empty.

Hi,
I've realized that I was using splits to generate separate apks for "x86", "x86_64", "arm64-v8a", "armeabi-v7a"
By removing the splits, The build was running fine.
But I need to generate apks for all splits. Any help here ?

Okay.
Found a much convenient way.
Rather than having the target-platforms specifying in the build.gradle of android.
It is better to create separate apks for the target platforms while building the release apks.
flutter build apk --release --flavor=my_flavor --target-platform android-arm,android-arm64 --split-per-abi

Is there any real solution to this?  I am getting this error when I try to just run my perfectly working app on my device.
Here is how to recreate this issue:

Be in the stable channel
Have a perfectly functioning and working flutter app
Move to the master channel
Try to run the exact same app with 0 changes

That's it.   That's all it takes.   You might say the fix is simple, just stay in the stable channel, right?   Except I can't because that channel is also completely broken.   It has a known issue with the running app behaving totally differently to the app resulting from the appbundle.   The "stable" channel indeed.    Absolute morons.

1.12.13+hotfix.5  app/build.gradle  add buildDir = new File(rootProject.projectDir, "../build/host")


DSD-1871: Add item count to MultiSelect

Fixes JIRA ticket DSD-1871
This PR does the following:

Adds optional itemCount data property to the items prop of MultiSelect to render the item count for the associated option.

How has this been tested?

Locally on Storybook

Accessibility concerns or updates

N/A

Accessibility Checklist

[ ] Checked Storybook's "Accessibility" tab for color contrast and other issues.
[ ] The feature works with keyboard inputs including tabbing back and forward and pressing space, enter, arrow, and esc keys.
[ ] For hidden text or when aria-live is used, a screenreader was used to verify the text is read.
[ ] For features that involve UI updates and focusing on DOM refs, focus management was reviewed.
[ ] The feature works when the page is zoomed in to 200% and 400%.

Open Questions

Checklist:

[ ] I have updated the Storybook documentation and changelog accordingly.
[ ] I have added relevant accessibility documentation for this pull request.
[ ] All new and existing tests passed.

Front End Review:

[ ] Review the Vercel preview deployment once it is ready.

@EdwinGuzman I did not try the other approach. I think I misunderstood our conversation during planning. I implement the other approach for consistency.

@jackiequach no worries if you haven't already started doing so. This is a good approach and does make it easier (perhaps?) for consuming devs to pass in an additional property instead of managing the DOM themselves.