System.IO.IOException: kqueue() error at init, error code = '24'

Issue Description
Throws System.IO.IOException when opening a C# solution on a Mac
Steps to Reproduce
Open https://github.com/dotnet/docfx with vscode on Mac
Expected Behavior
Code compiles
Actual Behavior
System.IO.IOException
Logs
OmniSharp log

Starting OmniSharp server at 5/3/2019, 1:56:32 PM
Target: /Users/yufeih/docfx/docfx.sln
OmniSharp server started with Mono 5.10.1.
Path: /Users/yufeih/.vscode/extensions/ms-vscode.csharp-1.19.0/.omnisharp/1.32.18/omnisharp/OmniSharp.exe
PID: 572
    Starting OmniSharp on MacOS 10.14 (x64)

    DotNetPath set to dotnet

    Located 2 MSBuild instance(s)
        1: Mono 15.0 - "/Library/Frameworks/Mono.framework/Versions/5.10.1/lib/mono/msbuild/15.0/bin"
        2: StandAlone 15.0 - "/Users/yufeih/.vscode/extensions/ms-vscode.csharp-1.19.0/.omnisharp/1.32.18/omnisharp/.msbuild/Current/Bin"

    Registered MSBuild instance: Mono 15.0 - "/Library/Frameworks/Mono.framework/Versions/5.10.1/lib/mono/msbuild/15.0/bin"
        CscToolPath = /Users/yufeih/.vscode/extensions/ms-vscode.csharp-1.19.0/.omnisharp/1.32.18/omnisharp/.msbuild/Current/Bin/Roslyn
        CscToolExe = csc.exe

    Detecting Cake files in '/Users/yufeih/docfx'.

    Could not find any Cake files

    Project system 'OmniSharp.DotNet.DotNetProjectSystem' is disabled in the configuration.

    Detecting projects in '/Users/yufeih/docfx/docfx.sln'.

    Queue project update for '/Users/yufeih/docfx/src/docfx/docfx.csproj'

    Queue project update for '/Users/yufeih/docfx/test/docfx.Test/docfx.Test.csproj'

    Queue project update for '/Users/yufeih/docfx/src/Microsoft.Docs.Template/Microsoft.Docs.Template.csproj'

    Detecting CSX files in '/Users/yufeih/docfx'.

    Could not find any CSX files

    Invoking Workspace Options Provider: OmniSharp.Roslyn.CSharp.Services.CSharpWorkspaceOptionsProvider

    Loading project: /Users/yufeih/docfx/src/docfx/docfx.csproj

    Configuration finished.

    Omnisharp server running using Stdio at location '/Users/yufeih/docfx' on host 542.

    Successfully loaded project file '/Users/yufeih/docfx/src/docfx/docfx.csproj'.

    Adding project '/Users/yufeih/docfx/src/docfx/docfx.csproj'

    Skipping code fix provider 'Microsoft.CodeAnalysis.Analyzers.MetaAnalyzers.CodeFixes.ApplyDiagnosticAnalyzerAttributeFix' because it's language doesn't match 'C#'.

    Skipping code fix provider 'Microsoft.CodeQuality.Analyzers.QualityGuidelines.MarkMembersAsStaticFixer' because it's language doesn't match 'C#'.

    Skipping code fix provider 'Microsoft.CodeQuality.Analyzers.QualityGuidelines.PreferJaggedArraysOverMultidimensionalFixer' because it's language doesn't match 'C#'.

    Skipping code fix provider 'Microsoft.CodeQuality.Analyzers.QualityGuidelines.ReviewVisibleEventHandlersFixer' because it's language doesn't match 'C#'.

    Skipping code fix provider 'Microsoft.CodeQuality.Analyzers.QualityGuidelines.UseLiteralsWhereAppropriateFixer' because it's language doesn't match 'C#'.

    Skipping code fix provider 'Microsoft.CodeQuality.Analyzers.Maintainability.AvoidUninstantiatedInternalClassesFixer' because it's language doesn't match 'C#'.

    Skipping code fix provider 'Microsoft.CodeQuality.Analyzers.Maintainability.ReviewUnusedParametersFixer' because it's language doesn't match 'C#'.

    Skipping code fix provider 'Microsoft.CodeQuality.Analyzers.Maintainability.UseNameOfInPlaceOfStringFixer' because it's language doesn't match 'C#'.

    Skipping code fix provider 'Microsoft.CodeQuality.Analyzers.Maintainability.VariableNamesShouldNotMatchFieldNamesFixer' because it's language doesn't match 'C#'.

    Skipping code fix provider 'Microsoft.CodeQuality.Analyzers.Documentation.AvoidUsingCrefTagsWithAPrefixFixer' because it's language doesn't match 'C#'.

    Skipping code fix provider 'Microsoft.CodeQuality.Analyzers.ApiReview.AvoidCallingProblematicMethodsFixer' because it's language doesn't match 'C#'.

    Skipping code fix provider 'Microsoft.CodeQuality.Analyzers.ApiDesignGuidelines.AsyncMethodNamesShouldEndInAsyncFixer' because it's language doesn't match 'C#'.

    Skipping code fix provider 'Microsoft.CodeQuality.Analyzers.ApiDesignGuidelines.AvoidAsyncVoidFixer' because it's language doesn't match 'C#'.

    Skipping code fix provider 'Microsoft.CodeQuality.Analyzers.ApiDesignGuidelines.AvoidEmptyInterfacesFixer' because it's language doesn't match 'C#'.

    Skipping code fix provider 'Microsoft.CodeQuality.Analyzers.ApiDesignGuidelines.CollectionsShouldImplementGenericInterfaceFixer' because it's language doesn't match 'C#'.

    Skipping code fix provider 'Microsoft.CodeQuality.Analyzers.ApiDesignGuidelines.DeclareTypesInNamespacesFixer' because it's language doesn't match 'C#'.

    Skipping code fix provider 'Microsoft.CodeQuality.Analyzers.ApiDesignGuidelines.DoNotHideBaseClassMethodsFixer' because it's language doesn't match 'C#'.

    Skipping code fix provider 'Microsoft.CodeQuality.Analyzers.ApiDesignGuidelines.DoNotMixBlockingAndAsyncFixer' because it's language doesn't match 'C#'.

    Skipping code fix provider 'Microsoft.CodeQuality.Analyzers.ApiDesignGuidelines.DoNotPassAsyncLambdasAsVoidReturningDelegateTypesFixer' because it's language doesn't match 'C#'.

    Skipping code fix provider 'Microsoft.CodeQuality.Analyzers.ApiDesignGuidelines.DoNotStoreAsyncLambdasAsVoidReturningDelegateTypesFixer' because it's language doesn't match 'C#'.

    Skipping code fix provider 'Microsoft.CodeQuality.Analyzers.ApiDesignGuidelines.EnumsShouldHavePluralNamesFixer' because it's language doesn't match 'C#'.

    Skipping code fix provider 'Microsoft.CodeQuality.Analyzers.ApiDesignGuidelines.EnumsShouldHaveZeroValueFixer' because it's language doesn't match 'C#'.

    Skipping code fix provider 'Microsoft.CodeQuality.Analyzers.ApiDesignGuidelines.EnumStorageShouldBeInt32Fixer' because it's language doesn't match 'C#'.

    Skipping code fix provider 'Microsoft.CodeQuality.Analyzers.ApiDesignGuidelines.IdentifiersShouldHaveCorrectPrefixFixer' because it's language doesn't match 'C#'.

    Skipping code fix provider 'Microsoft.CodeQuality.Analyzers.ApiDesignGuidelines.IdentifiersShouldHaveCorrectSuffixFixer' because it's language doesn't match 'C#'.

    Skipping code fix provider 'Microsoft.CodeQuality.Analyzers.ApiDesignGuidelines.IdentifiersShouldNotContainUnderscoresFixer' because it's language doesn't match 'C#'.

    Skipping code fix provider 'Microsoft.CodeQuality.Analyzers.ApiDesignGuidelines.IdentifiersShouldNotHaveIncorrectSuffixFixer' because it's language doesn't match 'C#'.

    Skipping code fix provider 'Microsoft.CodeQuality.Analyzers.ApiDesignGuidelines.IdentifiersShouldNotMatchKeywordsFixer' because it's language doesn't match 'C#'.

    Skipping code fix provider 'Microsoft.CodeQuality.Analyzers.ApiDesignGuidelines.ImplementIDisposableCorrectlyFixer' because it's language doesn't match 'C#'.

    Skipping code fix provider 'Microsoft.CodeQuality.Analyzers.ApiDesignGuidelines.MarkAssembliesWithAssemblyVersionFixer' because it's language doesn't match 'C#'.

    Skipping code fix provider 'Microsoft.CodeQuality.Analyzers.ApiDesignGuidelines.MarkAssembliesWithClsCompliantFixer' because it's language doesn't match 'C#'.

    Skipping code fix provider 'Microsoft.CodeQuality.Analyzers.ApiDesignGuidelines.MarkAssembliesWithComVisibleFixer' because it's language doesn't match 'C#'.

    Skipping code fix provider 'Microsoft.CodeQuality.Analyzers.ApiDesignGuidelines.MovePInvokesToNativeMethodsClassFixer' because it's language doesn't match 'C#'.

    Skipping code fix provider 'Microsoft.CodeQuality.Analyzers.ApiDesignGuidelines.NonConstantFieldsShouldNotBeVisibleFixer' because it's language doesn't match 'C#'.

    Skipping code fix provider 'Microsoft.CodeQuality.Analyzers.ApiDesignGuidelines.OverrideEqualsAndOperatorEqualsOnValueTypesFixer' because it's language doesn't match 'C#'.

    Skipping code fix provider 'Microsoft.CodeQuality.Analyzers.ApiDesignGuidelines.OverrideEqualsOnOverloadingOperatorEqualsFixer' because it's language doesn't match 'C#'.

    Skipping code fix provider 'Microsoft.CodeQuality.Analyzers.ApiDesignGuidelines.OverrideGetHashCodeOnOverridingEqualsFixer' because it's language doesn't match 'C#'.

    Skipping code fix provider 'Microsoft.CodeQuality.Analyzers.ApiDesignGuidelines.PropagateCancellationTokensWhenPossibleFixer' because it's language doesn't match 'C#'.

    Skipping code fix provider 'Microsoft.CodeQuality.Analyzers.ApiDesignGuidelines.PropertiesShouldNotBeWriteOnlyFixer' because it's language doesn't match 'C#'.

    Skipping code fix provider 'Microsoft.CodeQuality.Analyzers.ApiDesignGuidelines.PropertyNamesShouldNotMatchGetMethodsFixer' because it's language doesn't match 'C#'.

    Skipping code fix provider 'Microsoft.CodeQuality.Analyzers.ApiDesignGuidelines.TypeNamesShouldNotMatchNamespacesFixer' because it's language doesn't match 'C#'.

    Skipping code fix provider 'Microsoft.CodeQuality.Analyzers.ApiDesignGuidelines.UseEventsWhereAppropriateFixer' because it's language doesn't match 'C#'.

    Skipping code fix provider 'Microsoft.CodeQuality.Analyzers.ApiDesignGuidelines.UseGenericEventHandlerInstancesFixer' because it's language doesn't match 'C#'.

    Skipping code fix provider 'Microsoft.CodeQuality.Analyzers.ApiDesignGuidelines.UsePreferredTermsFixer' because it's language doesn't match 'C#'.

    Skipping code fix provider 'Microsoft.CodeQuality.Analyzers.ApiDesignGuidelines.UsePropertiesWhereAppropriateFixer' because it's language doesn't match 'C#'.

    Skipping code fix provider 'Microsoft.NetCore.Analyzers.Tasks.DoNotCreateTasksWithoutPassingATaskSchedulerFixer' because it's language doesn't match 'C#'.

    Skipping code fix provider 'Microsoft.NetCore.Analyzers.Runtime.CallGCSuppressFinalizeCorrectlyFixer' because it's language doesn't match 'C#'.

    Skipping code fix provider 'Microsoft.NetCore.Analyzers.Runtime.DisposableTypesShouldDeclareFinalizerFixer' because it's language doesn't match 'C#'.

    Skipping code fix provider 'Microsoft.NetCore.Analyzers.Runtime.DisposeMethodsShouldCallBaseClassDisposeFixer' because it's language doesn't match 'C#'.

    Skipping code fix provider 'Microsoft.NetCore.Analyzers.Runtime.DoNotLockOnObjectsWithWeakIdentityFixer' because it's language doesn't match 'C#'.

    Skipping code fix provider 'Microsoft.NetCore.Analyzers.Runtime.DoNotUseEnumerableMethodsOnIndexableCollectionsInsteadUseTheCollectionDirectlyFixer' because it's language doesn't match 'C#'.

    Skipping code fix provider 'Microsoft.NetCore.Analyzers.Runtime.DoNotUseTimersThatPreventPowerStateChangesFixer' because it's language doesn't match 'C#'.

    Skipping code fix provider 'Microsoft.NetCore.Analyzers.Runtime.InitializeStaticFieldsInlineFixer`1[TLanguageKindEnum]' because it's language doesn't match 'C#'.

    Skipping code fix provider 'Microsoft.NetCore.Analyzers.Runtime.InstantiateArgumentExceptionsCorrectlyFixer' because it's language doesn't match 'C#'.

    Skipping code fix provider 'Microsoft.NetCore.Analyzers.Runtime.NormalizeStringsToUppercaseFixer' because it's language doesn't match 'C#'.

    Skipping code fix provider 'Microsoft.NetCore.Analyzers.Runtime.SpecifyCultureInfoFixer' because it's language doesn't match 'C#'.

    Skipping code fix provider 'Microsoft.NetCore.Analyzers.Runtime.SpecifyIFormatProviderFixer' because it's language doesn't match 'C#'.

    Skipping code fix provider 'Microsoft.NetCore.Analyzers.Runtime.SpecifyStringComparisonFixer' because it's language doesn't match 'C#'.

    Skipping code fix provider 'Microsoft.NetCore.Analyzers.Runtime.TestForEmptyStringsUsingStringLengthFixer' because it's language doesn't match 'C#'.

    Skipping code fix provider 'Microsoft.NetCore.Analyzers.Runtime.TestForNaNCorrectlyFixer' because it's language doesn't match 'C#'.

    Skipping code fix provider 'Microsoft.NetCore.Analyzers.Runtime.UseOrdinalStringComparisonFixerBase' because it's language doesn't match 'C#'.

    Skipping code fix provider 'Microsoft.NetCore.Analyzers.InteropServices.MarkBooleanPInvokeArgumentsWithMarshalAsFixer' because it's language doesn't match 'C#'.

    Skipping code fix provider 'Microsoft.NetCore.Analyzers.InteropServices.SpecifyMarshalingForPInvokeStringArgumentsFixer' because it's language doesn't match 'C#'.

    Skipping code fix provider 'Microsoft.NetCore.Analyzers.InteropServices.UseManagedEquivalentsOfWin32ApiFixer' because it's language doesn't match 'C#'.

    Skipping code fix provider 'Microsoft.NetCore.Analyzers.ImmutableCollections.DoNotCallToImmutableCollectionOnAnImmutableCollectionValueFixer' because it's language doesn't match 'C#'.

    Skipping code fix provider 'Microsoft.NetFramework.Analyzers.AvoidDuplicateAcceleratorsFixer' because it's language doesn't match 'C#'.

    Skipping code fix provider 'Microsoft.NetFramework.Analyzers.CallBaseClassMethodsOnISerializableTypesFixer' because it's language doesn't match 'C#'.

    Skipping code fix provider 'Microsoft.NetFramework.Analyzers.DoNotMarkServicedComponentsWithWebMethodFixer' because it's language doesn't match 'C#'.

    Skipping code fix provider 'Microsoft.NetFramework.Analyzers.ImplementISerializableCorrectlyFixer' because it's language doesn't match 'C#'.

    Skipping code fix provider 'Microsoft.NetFramework.Analyzers.ImplementSerializationMethodsCorrectlyFixer' because it's language doesn't match 'C#'.

    Skipping code fix provider 'Microsoft.NetFramework.Analyzers.MarkAllNonSerializableFieldsFixer' because it's language doesn't match 'C#'.

    Skipping code fix provider 'Microsoft.NetFramework.Analyzers.MarkWindowsFormsEntryPointsWithStaThreadFixer' because it's language doesn't match 'C#'.

    Skipping code fix provider 'Microsoft.NetFramework.Analyzers.ProvideDeserializationMethodsForOptionalFieldsFixer' because it's language doesn't match 'C#'.

    Skipping code fix provider 'Microsoft.NetFramework.Analyzers.SetLocaleForDataTypesFixer' because it's language doesn't match 'C#'.

    Skipping code fix provider 'Microsoft.NetFramework.Analyzers.SpecifyMessageBoxOptionsFixer' because it's language doesn't match 'C#'.

    Skipping code fix provider 'Microsoft.NetFramework.Analyzers.TypesShouldNotExtendCertainBaseTypesFixer' because it's language doesn't match 'C#'.

    Skipping code fix provider 'StyleCop.Analyzers.OrderingRules.ElementOrderCodeFixProvider' because it's language doesn't match 'C#'.

    Skipping code fix provider 'Text.Analyzers.IdentifiersShouldBeSpelledCorrectlyFixer' because it's language doesn't match 'C#'.

    Loading project: /Users/yufeih/docfx/test/docfx.Test/docfx.Test.csproj

    Successfully loaded project file '/Users/yufeih/docfx/test/docfx.Test/docfx.Test.csproj'.

    Adding project '/Users/yufeih/docfx/test/docfx.Test/docfx.Test.csproj'

    Skipping code fix provider 'Microsoft.CodeAnalysis.Analyzers.MetaAnalyzers.CodeFixes.ApplyDiagnosticAnalyzerAttributeFix' because it's language doesn't match 'C#'.

    Skipping code fix provider 'Xunit.Analyzers.FixProviders.MemberFixBase' because it's language doesn't match 'C#'.

    Loading project: /Users/yufeih/docfx/src/Microsoft.Docs.Template/Microsoft.Docs.Template.csproj

    Successfully loaded project file '/Users/yufeih/docfx/src/Microsoft.Docs.Template/Microsoft.Docs.Template.csproj'.

    Adding project '/Users/yufeih/docfx/src/Microsoft.Docs.Template/Microsoft.Docs.Template.csproj'

    Skipping code fix provider 'Microsoft.CodeAnalysis.Analyzers.MetaAnalyzers.CodeFixes.ApplyDiagnosticAnalyzerAttributeFix' because it's language doesn't match 'C#'.

    Update project: docfx

    Update project: docfx.Test

    Exception thrown while calling event sinks

System.IO.IOException: kqueue() error at init, error code = '24'
at System.IO.KqueueMonitor.Start () [0x00046] in :0
at System.IO.KeventWatcher.StartDispatching (System.IO.FileSystemWatcher fsw) [0x00033] in :0
at System.IO.FileSystemWatcher.Start () [0x00000] in :0
at System.IO.FileSystemWatcher.set_EnableRaisingEvents (System.Boolean value) [0x00014] in :0
at (wrapper remoting-invoke-with-check) System.IO.FileSystemWatcher.set_EnableRaisingEvents(bool)
at Microsoft.AspNetCore.Razor.OmniSharpPlugin.MSBuildProjectDocumentChangeDetector.ProjectLoaded (OmniSharp.MSBuild.Notification.ProjectLoadedEventArgs loadedArgs) [0x0026e] in <093cbf5c963a4aedba1c75ce31b806d6>:0
at OmniSharp.MSBuild.ProjectManager.ProcessQueue (System.Threading.CancellationToken cancellationToken) [0x00198] in :0
info: OmniSharp.MSBuild.ProjectManager
Update project: Microsoft.Docs.Template

Environment information
VSCode version: 1.33.1
C# Extension: 1.19.0
Mono Information
        OmniSharp using global mono :5.10.1
Dotnet Information
.NET Core SDK (reflecting any global.json):
 Version:   2.2.104
 Commit:    73f036d4ac
Runtime Environment:
OS Name:     Mac OS X
OS Version:  10.14
OS Platform: Darwin
RID:         osx.10.14-x64
Base Path:   /usr/local/share/dotnet/sdk/2.2.104/
Host (useful for support):
Version: 2.2.2
Commit:  a4fd7b2c84
.NET Core SDKs installed:
2.1.101 [/usr/local/share/dotnet/sdk]
2.1.300 [/usr/local/share/dotnet/sdk]
2.2.101 [/usr/local/share/dotnet/sdk]
2.2.103 [/usr/local/share/dotnet/sdk]
2.2.104 [/usr/local/share/dotnet/sdk]
.NET Core runtimes installed:
Microsoft.AspNetCore.All 2.1.0 [/usr/local/share/dotnet/shared/Microsoft.AspNetCore.All]
Microsoft.AspNetCore.All 2.2.0 [/usr/local/share/dotnet/shared/Microsoft.AspNetCore.All]
Microsoft.AspNetCore.All 2.2.1 [/usr/local/share/dotnet/shared/Microsoft.AspNetCore.All]
Microsoft.AspNetCore.All 2.2.2 [/usr/local/share/dotnet/shared/Microsoft.AspNetCore.All]
Microsoft.AspNetCore.App 2.1.0 [/usr/local/share/dotnet/shared/Microsoft.AspNetCore.App]
Microsoft.AspNetCore.App 2.2.0 [/usr/local/share/dotnet/shared/Microsoft.AspNetCore.App]
Microsoft.AspNetCore.App 2.2.1 [/usr/local/share/dotnet/shared/Microsoft.AspNetCore.App]
Microsoft.AspNetCore.App 2.2.2 [/usr/local/share/dotnet/shared/Microsoft.AspNetCore.App]
Microsoft.NETCore.App 2.0.6 [/usr/local/share/dotnet/shared/Microsoft.NETCore.App]
Microsoft.NETCore.App 2.1.0 [/usr/local/share/dotnet/shared/Microsoft.NETCore.App]
Microsoft.NETCore.App 2.2.0 [/usr/local/share/dotnet/shared/Microsoft.NETCore.App]
Microsoft.NETCore.App 2.2.1 [/usr/local/share/dotnet/shared/Microsoft.NETCore.App]
Microsoft.NETCore.App 2.2.2 [/usr/local/share/dotnet/shared/Microsoft.NETCore.App]
To install additional .NET Core runtimes or SDKs:
https://aka.ms/dotnet-download

Visual Studio Code Extensions

Extension
Author
Version

cpptools
ms-vscode
0.22.1

csharp
ms-vscode
1.19.0

markdown-all-in-one
yzhang
2.3.1

mustache
dawhite
1.1.1

vetur
octref
0.19.4

vscode-eslint
dbaeumer
1.8.2

vscode-npm-script
eg2
0.3.5

vscode-proto3
zxh404
0.2.2

vscode-yaml
redhat
0.4.0

vscodeintellicode
VisualStudioExptTeam
1.1.5

vsliveshare
ms-vsliveshare
1.0.125

According to the log, OmniSharp picks your global Mono which is 5.10.1 - however since 1.19.0 version of the extension, Mono 5.18.1 is the minimum required (#3000)
Could you please update to the latest Mono from here https://www.mono-project.com/download/stable/ (there is 5.20.1 already) - and see if it helps?
This looks like the same problem as in #3034

I had the same problem. After installation Mono 5.18.1 (Visual Studio channel*) from the page above, like filipw commented all works.

Thank you @filipw , this is resolved.


What about create helm chart for beyla?

I'd like to try installing Beyla in my environment but don't want to create a new chart completely from scratch, any plans to create an official chart?

Hi @batazor it's in our roadmap but still we don't have a release date.
If it helps, in the meanwhile you could copy the deployment examples of this tutorial: https://grafana.com/docs/beyla/latest/tutorial/k8s-walkthrough/

Hi @khushijain21 of course

This is now available https://github.com/grafana/beyla/tree/main/deployments/helm.

Appears to have been moved to https://github.com/grafana/beyla/tree/main/charts/beyla


[TASK] Filters should be stored in the URL

Estimated story points: 8
Description

All filter parameters should be stored in the url. It should be possible to share a link of the current filtered view.

Acceptance criteria

All filter parameters are stored in the url. On page load the filter parameters are set in the filter inputs and the table is filtered accordingly. If you update any filter input the query parameters are updated in real time.

time: 5h


Aqara Vibration Sensor DJT11LM False Trigger[BUG]

Describe the bug
I have 10 of this sensor and sometimes have random trigger without anyone touch the sensors
To Reproduce
Steps to reproduce the behavior:
Pair the sensors
Check the log
Expected behavior
No trigger if there isn't vibration or motion

Post debug logs that show this happening without a message from the device.

Thanks for your reply, where can i take the logs?

In the log i have seen this error:
Logger: zigpy_znp.uart
Source: deps/lib/python3.8/site-packages/zigpy_znp/types/commands.py:419
First occurred: 17 dicembre 2020, 12:20:48 (18 occurrences)
Last logged: 8:22:15

Received an exception while passing frame to API
Traceback (most recent call last):
  File "/config/deps/lib/python3.8/site-packages/zigpy_znp/types/commands.py", line 412, in from_frame
    params[param.name], data = param.type.deserialize(data)
  File "/usr/local/lib/python3.8/site-packages/zigpy/types/struct.py", line 178, in deserialize
    value, data = field.type.deserialize(data)
  File "/usr/local/lib/python3.8/site-packages/zigpy/types/basic.py", line 53, in deserialize
    raise ValueError(f"Data is too short to contain {cls._size} bytes")
ValueError: Data is too short to contain 1 bytes

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/config/deps/lib/python3.8/site-packages/zigpy_znp/uart.py", line 77, in data_received
    self._api.frame_received(frame.payload)
  File "/config/deps/lib/python3.8/site-packages/zigpy_znp/api.py", line 334, in frame_received
    command = command_cls.from_frame(frame)
  File "/config/deps/lib/python3.8/site-packages/zigpy_znp/types/commands.py", line 419, in from_frame
    raise ValueError(
ValueError: Frame data is truncated (parsed {'Src': 0xFB6B, 'Status': <Status.NOT_SUPPORTED: 132>}), required parameter remains: Param(name='Neighbors', type=<class 'zigpy.zdo.types.Neighbors'>, description='Neighbors', optional=False)

Effetuando un'analisi specifica su un solo sensore vedo questo:
2020-12-18 11:32:05 DEBUG (MainThread) [zigpy.zcl] [0xf1b4:1:0x0101] ZCL deserialize: <ZCLHeader frame_control=<FrameControl frame_type=GLOBAL_COMMAND manufacturer_specific=False is_reply=False disable_default_response=True> manufacturer=None tsn=94 command_id=Command.Report_Attributes>
2020-12-18 11:32:05 DEBUG (MainThread) [zigpy.zcl] [0xf1b4:1:0x0101] ZCL request 0x000a: [[Attribute(attrid=1285, value=<TypeValue type=uint32_t, value=196608>)]]
2020-12-18 11:32:05 DEBUG (MainThread) [zigpy.zcl] [0xf1b4:1:0x0101] Attribute report received: 1285=196608
2020-12-18 11:32:06 DEBUG (MainThread) [zigpy.zcl] [0xf1b4:1:0x0000] ZCL deserialize: <ZCLHeader frame_control=<FrameControl frame_type=GLOBAL_COMMAND manufacturer_specific=True is_reply=False disable_default_response=True> manufacturer=4447 tsn=95 command_id=Command.Report_Attributes>
2020-12-18 11:32:06 DEBUG (MainThread) [zigpy.zcl] [0xf1b4:1:0x0000] ZCL request 0x000a: [[Attribute(attrid=65281, value=<TypeValue type=CharacterString, value=!�
                                                                                (!�!�>)]]
2020-12-18 11:32:06 DEBUG (MainThread) [zigpy.zcl] [0xf1b4:1:0x0000] Attribute report received: 65281=!�
                                                                                (!�!�

2020-12-18 11:37:06 DEBUG (MainThread) [zigpy.zcl] [0xf1b4:1:0x0101] ZCL deserialize: <ZCLHeader frame_control=<FrameControl frame_type=GLOBAL_COMMAND manufacturer_specific=False is_reply=False disable_default_response=True> manufacturer=None tsn=96 command_id=Command.Report_Attributes>
2020-12-18 11:37:06 DEBUG (MainThread) [zigpy.zcl] [0xf1b4:1:0x0101] ZCL request 0x000a: [[Attribute(attrid=1285, value=<TypeValue type=uint32_t, value=196608>)]]
2020-12-18 11:37:06 DEBUG (MainThread) [zigpy.zcl] [0xf1b4:1:0x0101] Attribute report received: 1285=196608

UPDATE!!
I have fixed this issue by commeting this string:
before
            elif attrid == RECENT_ACTIVITY_LEVEL_ATTR:
                # these seem to be sent every minute when vibration is active
                self.endpoint.device.motion_bus.listener_event(MOTION_EVENT)

after:
#            elif attrid == RECENT_ACTIVITY_LEVEL_ATTR:
#                # these seem to be sent every minute when vibration is active
#                self.endpoint.device.motion_bus.listener_event(MOTION_EVENT)

In this file:
/usr/local/lib/python3.8/site-packages/zhaquirks/xiaomi/aqara/vibration_aq1.py
Best Regards
Stefano


Color always changes to red

Hi,
most of the time, when I switch the color in Home App, it automatically switches the color to red.
Same issues with WLED v12 and V11.1 and I have SK6812 LEDs
This is the log output:
[7/27/2021, 2:41:14 PM] [WLED] Changed color to 255,0,68 on host <IP_ADDRESS> <-- Set white [7/27/2021, 2:41:15 PM] [WLED] Updating WLED in HomeKIT (Because of Polling) <IP_ADDRESS> <-- Switches to red

Hello,
Do you mean, that after changing the color to "white" the color changes after some time to red?

Can you show us your config.json section of the LEDs?

Hi, this is the code. I have two WLED setups, one for my printer, the other for an Ambilight. I just checked the Ambilight and get the same behavior: As soon as I change the color in the Home App it switches to red just a second later.
Brightness and toggling without issues. I can change the color with my WLED App without issues and it even shows the color in the Home App
 {             "platform": "WLED",             "wleds": [                 {                     "name": "AmbilightTV",                     "host": "<IP_ADDRESS>",                     "effects": [                         "Rainbow Runner",                         "Circus",                         "Merry Christmas",                         "Fireworks"                     ],                     "log": false                 },                 {                     "name": "Druckerlicht",                     "host": "<IP_ADDRESS>",                     "effects": [                         "Rainbow Runner",                         "Circus",                         "Merry Christmas",                         "Fireworks"                     ],                     "log": true                 }             ]         },

I have the same issue. Any color selection is red. Selecting blue stays red, insert color... red

Same problem here, sometimes for a second it will go to another color but then it snaps back to red.

Ok thats a weird behaviour, i use WS2812B LEDs and i do not have this issue. I copied your config and used this in my Homebridge, but it works perfect for me.
@gitengstrom @matthewbabcock @seppelicous Which LEDs do you use and how do you control the LEDs?

I sie SK6812 RGBNW LEDs in both wled installations. And I have the issue with both. One is on 11.1 and the runs 12.x

I'm having issues with ws2813 and ws2812Bs.
I'm on Node 14.7.4 if that helps? And I've been having this problem
controlling them inside of Home and just noticed they don't even show up in
Home+.
I also figured out a sort of work around. In the home app, if I edit a
color and quickly change to a different preset that one will become red and
the one I set will retain it's color.
Matthew Babcock
813-298-5455
On Wed, Aug 18, 2021 at 6:02 AM seppelicous @.***>
wrote:

I use SK6812 RGBNW LEDs in both wled installations. And I have the issue
with both. One is on 11.1 and the runs 12.x
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
https://github.com/jstrausd/homebridge-simple-wled/issues/24#issuecomment-900985481,
or unsubscribe
https://github.com/notifications/unsubscribe-auth/AAWYWUP2H4IQUEWQ3EUIZULT5OAKLANCNFSM5BCFLVCQ
.
Triage notifications on the go with GitHub Mobile for iOS
https://apps.apple.com/app/apple-store/id1477376905?ct=notification-email&mt=8&pt=524675
or Android
https://play.google.com/store/apps/details?id=com.github.android&utm_campaign=notification-email
.

I am using the WS2812B as well. The effects work fine either in WLED or in HomeKit. But when selecting any individual color in HomeKit it defaults to red. Though the color selection dot is selected with the correct color the color slider shows red and the lights themselves are red.

Is there anything in information I can share? Any detailed log?

same issue here - i use alexa plugin and when I talk to alexa or homped Siri, its mostly set to red after asking both girls to switch to blue or green or other colors ... I have issue with sk neopixels and also with ws2812. I have this issue since the begin of the homekit plugin release. when i set them in home or eve manual to a color it works without issue - issue is just by if you talk to the both Voices - Alexa with homekit alexa plugin and Siri native.
I was thinking its a timeout in WLAn witch causes to set default color - but a technicial analyse from the developer will be nice

The first two times are me setting it to magenta and then it switching to red on it's own.  I changed the color back to magenta by switching to red, which wasn't registered and then back to magenta. Then I switched to magenta and then to white and was able to get white to stick. But it will switch to red if I switch off of it and back.
[31/08/2021, 17:43:47] [WLED] Changed color to 140,0,131 on host <IP_ADDRESS>
[31/08/2021, 17:43:48] [WLED] Updating WLED in HomeKIT (Because of Polling) <IP_ADDRESS>
[31/08/2021, 17:44:09] [WLED] Changed color to 140,0,131 on host <IP_ADDRESS>
[31/08/2021, 17:44:11] [WLED] Updating WLED in HomeKIT (Because of Polling) <IP_ADDRESS>
[31/08/2021, 17:44:18] [WLED] Changed color to 140,0,0 on host <IP_ADDRESS>
[31/08/2021, 17:44:20] [WLED] Changed color to 0,23,140 on host <IP_ADDRESS>
[31/08/2021, 17:44:20] [WLED] Updating WLED in HomeKIT (Because of Polling) <IP_ADDRESS>

Oh, is it also connected to this issue? Stop Effect Automatic change color #14. I'm running my wled's off of ESP32's for more info.

Still buggy.

I am not an expert, but does has to do with the initial definition  private colorArray = [255, 0, 0];? Actually that is red ;)

I update one of mine to WLED beta version 0.13.0-b2 and it seems to be working fine now. I'm going to start updating the rest now.

Okay, not 100% fixed, still having some problems setting colors. They get stuck but if I just drag the brightness slider up and down they go to the correct color. so not perfect but usable again.

okay, not as fixed as a thought but an improvement. really walking this one back bit by bit.

I'm looking forward to fix this bug. I try to fix this bug, when i have enough time.
But for faster help, it would be nice to know, which microcontroller and which LEDs you all are using.

I'm using a Wemos D1 mini V3 with 183 x WS2812B addressable LEDs

I am using a AZDelivery D1 Mini NodeMcu with ESP8266

ESP-32S Development Board
And I was able to flash back down from the beta to current wled and it's working fine still. Well mostly fine. Automations turn my strips red if I don't use a scene.

I'm running NodeMCU ESP8266 with WS2812B.  I have several of these devices.

I have the same issue. Is there now a way to fix it?

My experience has been that some combination of flashing forward to the
beta or sometimes then back to current software worked for me.
On Tue, Nov 23, 2021 at 3:06 PM Smartchris404 @.***>
wrote:

I have the same issue. Is there now a way to fix it?
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
https://github.com/jstrausd/homebridge-simple-wled/issues/24#issuecomment-977112131,
or unsubscribe
https://github.com/notifications/unsubscribe-auth/AAWYWUIUOFVRALVPYGIP23DUNPX3PANCNFSM5BCFLVCQ
.
Triage notifications on the go with GitHub Mobile for iOS
https://apps.apple.com/app/apple-store/id1477376905?ct=notification-email&mt=8&pt=524675
or Android
https://play.google.com/store/apps/details?id=com.github.android&referrer=utm_campaign%3Dnotification-email%26utm_medium%3Demail%26utm_source%3Dgithub.

--
Matthew Babcock
813-298-5455

@Smartchris404 After which time does the color change to red?

I have updated several of my devices to the latest beta (0.13.0-b5)and still have the same issue. Any color picked results in immediately changing to red.

@jstrausd when i aktivate the stripe whith a hue dimmer switch over Himekit i turns to red. When i activate it with a automation also.
Only with the homekit app i can change to a different color.

I’m also having this red light problem. Is there a fix?

https://github.com/jstrausd/homebridge-simple-wled/issues/21#issuecomment-1023949286

I guess there is a conflict with naming each WLED-Controller and also naming it probably in the HomeKit-App.
I tried to give both the same name, sometimes it might work setting the correct color -- even on iPhone with Siri (iOS15.4.1), but sometimes it does not responds after a specific time, so I have to change the naming again for each - config.json and in the HomeKit-App.
What name-schema are you guys using for your controller in the config.json, and in the HomeKit-App ?

Anyone still has this Problem? I came up with that issue today...

I am as far as I know but a couple of weeks ago I started using Node Red to
run my automations and using the wled palette in there i don't have the
issue. Oh yeah and I noticed when I was using it via homebridge in node red
rather than directly it would return Hue 0 when it was in the red state if
that helps.
Matt Babcock
On Thu, Jan 12, 2023 at 4:10 PM pascalbrennich @.***>
wrote:

Anyone still has this Problem? I came up with that issue today...
—
Reply to this email directly, view it on GitHub
https://github.com/jstrausd/homebridge-simple-wled/issues/24#issuecomment-1380996857,
or unsubscribe
https://github.com/notifications/unsubscribe-auth/AAWYWUOQL75TMMSANQ3KNT3WSBXMDANCNFSM5BCFLVCQ
.
You are receiving this because you were mentioned.Message ID:
@.***>

I have three sets of W2812B lights that were connected to three separate ESP 8266 in my kitchen.  I've used the plug-in to get them all into HomeKit, but I am having the issue with them defaulting to red.  My wife wants the lights to be white, so I set up a scene using a smart button in the kitchen to flip them white and for some reason they turn red almost as a default. When I tell Siri to turn them another color, most of the time it ends up turning them off.  I made the mistake last night of turning on the rainbow effect and today my scene button kept reverting them to rainbow instead of white.  I'm very confused and I don't know enough about the plugin to even begin understanding how to troubleshoot.  I should add, I barely know anything about the WLED lights setup, because they were left by the previous owner when I bought the house, so I'm really at a disadvantage there.

It took me a bit to learn it but the change to node red for automation
completely fixed my wled color issues.
Matt Babcock
On Sat, Jan 28, 2023 at 6:03 PM bor9455 @.***> wrote:

I have three sets of W2812B lights that were connected to three separate
ESP 8266 in my kitchen. I've used the plug-in to get them all into HomeKit,
but I am having the issue with them defaulting to red. My wife wants the
lights to be white, so I set up a scene using a smart button in the kitchen
to flip them white and for some reason they turn red almost as a default.
When I tell Siri to turn them another color, most of the time it ends up
turning them off. I made the mistake last night of turning on the rainbow
effect and today my scene button kept reverting them to rainbow instead of
white. I'm very confused and I don't know enough about the plugin to even
begin understanding how to troubleshoot. I should add, I barely know
anything about the WLED lights setup, because they were left by the
previous owner when I bought the house, so I'm really at a disadvantage
there.
—
Reply to this email directly, view it on GitHub
https://github.com/jstrausd/homebridge-simple-wled/issues/24#issuecomment-1407507074,
or unsubscribe
https://github.com/notifications/unsubscribe-auth/AAWYWUI5RPPV5XUXEZGO7TTWUWQVZANCNFSM5BCFLVCQ
.
You are receiving this because you were mentioned.Message ID:
@.***>

I am not well versed in this to know what that means. Can you spell out what that means. I’ve never heard of node red. I’ve learned just a tiny bit about the WLED lights I inherited when I bought a house. Previous owner was a diehard techie and I’m not. #

Node Red is a visual coding interface. And you can add a homebridge
palette and wled palette to it.   I use the homebridge plugin just to
expose them to homekit, if you open my Home app there are only like 6
automations in it and all the rest I built manually in Node Red.
Matt Babcock
On Sun, Jan 29, 2023 at 11:00 AM bor9455 @.***> wrote:

I am not well versed in this to know what that means. Can you spell out
what that means. I’ve never heard of node red. I’ve learned just a tiny bit
about the WLED lights I inherited when I bought a house. Previous owner was
a diehard techie and I’m not. #
—
Reply to this email directly, view it on GitHub
https://github.com/jstrausd/homebridge-simple-wled/issues/24#issuecomment-1407701239,
or unsubscribe
https://github.com/notifications/unsubscribe-auth/AAWYWUPGTA3PP5FFIIAXHNTWU2HYFANCNFSM5BCFLVCQ
.
You are receiving this because you were mentioned.Message ID:
@.***>

I haven't tested this cause having a busy day but didn't want to forget the
idea. I have a theory it's a malfunction in homekit automations related to
sending color temp instead of an rgb value to lights that can't accept
color temp? The Govee plugin has a setting to prevent sending color temp so
I wonder if that's why they did it/what's causing the issue here. Try doing
your automation again, but use the color wheel not color temperature to set
it up?
Matt Babcock
On Sun, Jan 29, 2023 at 12:32 PM Matt Babcock @.***>
wrote:

Node Red is a visual coding interface. And you can add a homebridge
palette and wled palette to it.   I use the homebridge plugin just to
expose them to homekit, if you open my Home app there are only like 6
automations in it and all the rest I built manually in Node Red.
Matt Babcock
On Sun, Jan 29, 2023 at 11:00 AM bor9455 @.***> wrote:

I am not well versed in this to know what that means. Can you spell out
what that means. I’ve never heard of node red. I’ve learned just a tiny bit
about the WLED lights I inherited when I bought a house. Previous owner was
a diehard techie and I’m not. #
—
Reply to this email directly, view it on GitHub
https://github.com/jstrausd/homebridge-simple-wled/issues/24#issuecomment-1407701239,
or unsubscribe
https://github.com/notifications/unsubscribe-auth/AAWYWUPGTA3PP5FFIIAXHNTWU2HYFANCNFSM5BCFLVCQ
.
You are receiving this because you were mentioned.Message ID:
@.***>

I sat down on my office MacBook and created a new scene where I selected the white color from the almost dead center of the color wheel.  The funny thing is when I hit test this scene, the lights come on red.  So somewhere between HomeKit and the WLED that white is coming over as a red.  If I try controlling the lights with the WLED App, I don't have this issue.  Also strange, if I go to HomeKit and manually change the color on the wheel of a turned on light, it will change.  If I ask Siri to change that light a color, it just turns it off, it cannot change the color of the lights, but in the past it was able to do so.  I'm so flummoxed and I have no idea how to get Node Red working.

I tried several things. I updated all my WLED devices, i updated Homebridge and every plugin an i reseted everything and build it completely from scratch but nothing solves the Problem with the red color. Anyone has a solution for this beside installing NodeRed and build everything there. i use WS2815 RGBW LED Stripes for my kitchen and WS2812B for my desk setup.

I am seeing the same issue with WLED 0.14.0-b1. Sometimes automated lights-on events come on red despite the automation being set to white. Sometimes when the LEDs are turned on via Siri they come on red, and sometimes when turned on via the home app. Int he latter two cases changing the colour manually fixes it.

I took all of my esp8266s (I had 5) back to 10.4 because that is the version I know was working. I don’t know if we can pinpoint exactly which version of the software made a change that now when HomeKit communicates color values from scenes/voice it doesn’t seem to work. I mean, of course there have been a lot of Homeskit Updates, but if I can roll back WLED a couple of years and it works, seems to be isolated to WLED update. Maybe something that wasn’t supposed to be a change or it’s using AWS color definitions like a Govee plugin I was having issues with. Short of going version by version until you find when it happened, I feel like Aircookie or someone who understands the code there.
I don’t mind the old WLED interface, but things aren’t as smooth when you roll back to 10.4. I’d love to be able to use scenes with segments and effects as well as the effect controls in HomeKit. They are literally the only smart home tech I can’t do what I want always from HomeKit. Otherwise other apps like Nest, hue, govee, Lutron, never get used.

Hey everyone,
I have a quite similar issue that's why I post it in this issue and didn't open another one. I pinned it down to the following:
When I tell Siri to set any color it only transfers the red-value. So any color not containing red will turn black. Setting it to any color with red (orange, violet, whatsoever) it will just display the red part.
The colors are transferred correctly to the homebridge
[12/3/2023, 11:48:32 PM] [WLED] Changed color to 0,0,255 on host <IP_ADDRESS>
[12/3/2023, 11:48:33 PM] [WLED] Updating WLED in HomeKIT (Because of Polling) <IP_ADDRESS>
[12/3/2023, 11:48:39 PM] [WLED] Changed color to 255,255,255 on host <IP_ADDRESS>
[12/3/2023, 11:48:42 PM] [WLED] Updating WLED in HomeKIT (Because of Polling) <IP_ADDRESS>
[12/3/2023, 11:49:41 PM] [WLED] Changed color to 255,166,0 on host <IP_ADDRESS>
[12/3/2023, 11:49:41 PM] [WLED] Updating WLED in HomeKIT (Because of Polling) <IP_ADDRESS>
[12/3/2023, 11:49:48 PM] [WLED] Changed color to 0,255,0 on host <IP_ADDRESS>

but only the red part seems to be sent to the WLED-Device.
Now the fun part:
When I use the color-selector in the HomeApp it will select the correct values and send it to the Homebridge:
[12/3/2023, 11:49:56 PM] [WLED] Changed color to 138,255,212 on host <IP_ADDRESS>
[12/3/2023, 11:49:57 PM] [WLED] Changed color to 0,255,0 on host <IP_ADDRESS>
[12/3/2023, 11:49:59 PM] [WLED] Changed color to 26,255,0 on host <IP_ADDRESS>
[12/3/2023, 11:49:59 PM] [WLED] Changed color to 255,0,0 on host <IP_ADDRESS>
[12/3/2023, 11:50:00 PM] [WLED] Changed color to 255,0,38 on host <IP_ADDRESS>
[12/3/2023, 11:50:00 PM] [WLED] Changed color to 186,198,255 on host <IP_ADDRESS>

My knowledge with the HomeBride Plugins is far to small to pinpoint which method is called and even if there is a different method for voice activated color or the color palette.
It seems that the Homebridge is correctly getting the values from Siri/HomeApp but is not always transferring it to the WLED-Device.
My Setup:

Odroid N2+with Homebridge v1.7.0 - UI v4.53.0 - node.js v18.18.2
Homebridge Simple Wled v1.4.0
ESP8266 (NodeMCU v3) with WLED v0.14.0 (using Pin 3)
iPhone 11 with iOS 17.1.2

Any help would be great. If you could tell me where to check I can try to debug myself. I am just to lazy at the moment to get into the plugin-coding of Homebridge.


Message History not working with LLMSingleActionAgent

System Info
My systeminfo:
langchain 0.0.294
Python 3.11
Who can help?
Im not sure, maybe @hwchase17 and @agola11 can help
Information

[X] The official example notebooks/scripts
[ ] My own modified scripts

Related Components

[ ] LLMs/Chat Models
[ ] Embedding Models
[ ] Prompts / Prompt Templates / Prompt Selectors
[ ] Output Parsers
[ ] Document Loaders
[ ] Vector Stores / Retrievers
[X] Memory
[X] Agents / Agent Executors
[ ] Tools / Toolkits
[ ] Chains
[ ] Callbacks/Tracing
[ ] Async

Reproduction
That is my code:
    openai.api_key = config.openai_api_key

    llm = ChatOpenAI(temperature=1, model="gpt-3.5-turbo-16k", max_tokens=1024)

    used_tools = []

    for tool in tools_to_use:
        vector_store = get_vector_store(tool.get("collection"))
        index = VectorStoreIndex.from_vector_store(vector_store=vector_store, service_context=service_context)

        vector_store_info = VectorStoreInfo(
            content_info=tool.get("description"),
            metadata_info=[]
        )
        retriever = VectorIndexAutoRetriever(index, vector_store_info=vector_store_info)

        used_tools.append(
            Tool(
                name=tool.get("name"),
                description=tool.get("description"),
                func=lambda q: str(retriever.retrieve(q)),
            )
        )

    message_history = PostgresChatMessageHistory(
        connection_string=f"postgresql://postgres:{postgres_str}", session_id=session_id, table_name="chat_history",
    )

    prompt = CustomPromptTemplate(template=get_prompt_template(), tools=used_tools,
                                  input_variables=["input", "intermediate_steps", "chat_history"])

    output_parser = CustomOutputParser()

    memory = ConversationBufferMemory(
        memory_key="chat_history", chat_memory=message_history
    )

    llm_chain = LLMChain(llm=llm, prompt=prompt)

    tool_names = [tool.name for tool in used_tools]

    agent = LLMSingleActionAgent(
        llm_chain=llm_chain,
        output_parser=output_parser,
        stop=["\nFinal Answer:"],  # Observation
        allowed_tools=tool_names,
        handle_parsing_errors=True,
    )

    agent_executor = AgentExecutor.from_agent_and_tools(agent=agent, tools=used_tools, verbose=debug,
                                                        memory=memory, return_intermediate_steps=True)

    response = agent_executor(user_prompt)

Expected behavior
If i print the params, it shows my chat history (so it's successfully loaded into code and into the agent).
{'intermediate_steps': [], 'stop': ['\nFinal Answer:'], 'input': 'What was the last thing I said?', 'chat_history': 'Human: ....?\nAI:....']

It should also process the chat history correctly.
But I always get this answer to my prompt:
Since the previous chat history is not available, I can't tell what you said last. Please give me more information or ask your question again so I can help you further.

@dosu-bot
I checked the input and output keys and printed it out. Also the Postgres DB saved all messages like it should.
Thats the suffix of my prompt template:
Start.

Previous chat history:

{chat_history}

End of the previous chat history

Question: {input}

{agent_scratchpad}

So I think that distinguishes between my other parts and the chat history too.
Do you have other solutions or do you know how can I test if the LLMSingleActionAgent really exchanged the chat_history variable with the chat history?

@dosu-bot
I printed the agent_scratchpad how you suggested and checked the methods and everything works as expected. The agent also remembers last topics if asked indirectly but if I ask directly tell me about my last message or smth like that.
He always tells me that he can not tell me about it, bc he doesnt have access to the chat history.
Maybe the error is at my prompt template:
So here is a part of it:
To get more information, you have access to the following tools:

{tools}

Use the following format:

Question: the input question you need to answer.

Thought: Begin with an assessment of the question or task.

Action: the name of the tool to be used. Must be one of [{tool_names}]. Nothing else. If no action is required and none of the existing tools are eligible, then simply enter a 'None' here.

Action Input: Specific keywords to search the tool with to get the desired information.

Observation: The result of the action.... Check if the required information is available, if not repeat it. Keep in mind that each answer should be as detailed as possible across all topics. (This Thought/Action/Action Input/Observation cycle can be repeated as needed).

Thought: Summarize the key findings. Ensure that the input selection is accurate and factual. Evaluate both advantages and disadvantages of the solution or answer. Inform the user if speculated or predicted, and cite all sources cited.

Final Answer: Provide a final, well-organized, factual answer and is as comprehensive as possible with all information found. Always include the URL (if included) and other meta data of the source. Ask the user if further assessment is desired.

Begin.

Previous chat history consisting of messages between human and AI:

{chat_history}

End of previous chat history

Question: {input}

{agent_scratchpad}


Added vim.vim version 8.2.3060

[x] Have you signed the Contributor License Agreement?
[x] Have you checked that there aren't other open pull requests for the same manifest update/change?

[x] Does your manifest conform to the 1.0 schema?

Note: <path> is the name of the directory containing the manifest you're submitting.

Microsoft Reviewers: Open in CodeFlow

Whoops, thank you :)


(chrome:39371): Gtk-WARNING **: 13:26:01.895: cannot open display

Steps to reproduce
Tell us about your environment:

Puppeteer version<EMAIL_ADDRESS>Platform / OS version: CentOS Linux release 7.5.1804 (Core)
URLs (if applicable):ls
Node.js version: v8.16.0
pm2 : 3.0.3

What steps will reproduce the problem?
Please include code that reproduces the issue.
            const puppeteer = require('puppeteer');

            (async () => {
            const browser = await puppeteer.launch({
                headless: false,
                defaultViewport: {
                    width: 1000,
                    height: 920
                },
            userDataDir : '/tmp/puppeteer',
                args: ['--start-maximized', '--no-sandbox', '--disable-setuid-sandbox']
            })
            var  timeoutID = setTimeout(async function (){ logger.debug('TIME OUT'); clearTimeout(timeoutID); return {"status" : false, "comment" : "TIMEOUT 5 minutes"}},300000)
            const page = await browser.newPage();

            const userAgent = await page.evaluate('navigator.userAgent');
            console.log('userAgent : ' + userAgent);
			var siteURL = 'https://epaper.faz.net/';
			var selectorName = 'body > div.content-wrapper > div > div.row.newspapers-row > div:nth-child(1) > div.newspaper.main-issue.with-shadow > div > div.newspaper-cover-inner > a > img'
            const response = await page.goto(siteURL, {timeout: 0});
            console.log('wait loading page 1 seconds');
            await page.waitFor(1000);
            var statut = `${response['_status']}`;
            if (statut.substring(0,1) != "2") {
                console.log(`#check Change : ${response["_url"]} - ${response["_status"]} - ${response["_headers"]}`);
                clearTimeout(timeoutID);
				return;
            }
            if (await page.$(selectorName) == null) {
                console.log(`#check Change : selector (${selectorName}) NOT FOUND`);
                clearTimeout(timeoutID);
                return;
            }

            var res = await Promise.all([page.waitFor(selectorName,{timeout: 0,visible:true})]).then(async () => {
                const screenshotElement = await page.$(selectorName);
                await screenshotElement.screenshot({path: 'currentScreenShot.jpg'});
                await browser.close();
                clearTimeout(timeoutID);
				return null;
				}
			)
            })()

What is the expected result?
screenShot for the selector
What happens instead?
[2019-08-07T12:56:03.857] [DEBUG] default - LOG-606145--3.puppeteer.launch
[2019-08-07T12:56:03.947] [ERROR] default - Failed task execution
Failed to launch chrome!
(chrome:33933): Gtk-WARNING **: 12:56:03.941: cannot open display:
[0807/125603.945853:ERROR:nacl_helper_linux.cc(310)] NaCl helper process running without a sandbox!
Most likely you need to configure your SUID sandbox correctly
TROUBLESHOOTING: https://github.com/GoogleChrome/puppeteer/blob/master/docs/troubleshooting.md
[2019-08-07T12:56:03.947] [ERROR] default - An exception occurred in task executor 'Executor #1':
[2019-08-07T12:56:03.949] [ERROR] default - Error: Failed to launch chrome!
(chrome:33933): Gtk-WARNING **: 12:56:03.941: cannot open display:
[0807/125603.945853:ERROR:nacl_helper_linux.cc(310)] NaCl helper process running without a sandbox!
Most likely you need to configure your SUID sandbox correctly
TROUBLESHOOTING: https://github.com/GoogleChrome/puppeteer/blob/master/docs/troubleshooting.md
at onClose (/data01/batch/backend/app-task-handler/node_modules/puppeteer/lib/Launcher.js:349:14)
at Interface.helper.addEventListener (/data01/batch/backend/app-task-handler/node_modules/puppeteer/lib/Launcher.js:338:50)
at emitNone (events.js:111:20)
at Interface.emit (events.js:208:7)
at Interface.close (readline.js:368:8)
at Socket.onend (readline.js:147:10)
at emitNone (events.js:111:20)
at Socket.emit (events.js:208:7)
at endReadableNT (_stream_readable.js:1064:12)
at args.(anonymous function) (/usr/lib/node_modules/pm2/node_modules/event-loop-inspector/index.js:133:29)
at _combinedTickCallback (internal/process/next_tick.js:139:11)
at process._tickDomainCallback (internal/process/next_tick.js:219:9)

I run script with pm2

I think the problem here is the option: "headless: false" at browser = await puppeteer.launch.
You can try headless: true

@songiky facing same issue with pm2 and puppeteer

Same issue. Trying to get running with headless: false.

Use this as the run command:
xvfb-run -a --server-args='-screen 0 1280x800x24 -ac -nolisten tcp -dpi 96 +extension RANDR' node ./dist/index.js

See more here:
https://www.mattzeunert.com/2018/07/21/running-headful-chrome-on-ubuntu-server.html


Upgrade Ununifi to v3.2.2

Ununifi chain has been upgraded to v3.2.2 at block 7061394.
https://ununifi.io/explorer/blocks/7061394
Proposal: https://ununifi.io/explorer/proposals/18

ghcr.io/akash-network/cosmos-omnibus:v0.3.49-rc1-ununifi-v3.2.2


Implement Fast repodata.json filtering

Create a convenience function to filter a given repodata.json file and return all PackageCandidates matching the MatchSpec.

Partially done with the filter_package_list functions.


Add Infinit.app v0.9.43

Should probably squash your commits to keep things cleaner, fyi.

Thank you @adityadalal924 , that's exactly what I was looking for!

#11894
#12344
Is that fixed upstream, @digitalknk? If it is, please report back so we can reopen.

@vitorgalvao The dmg I am using applies the correct infinit.app and it does not have this issue. This dmg is directly from infinit as well. Thanks for bringing this up, I was wondering why infinit never was added to Cask.

Thank you. It still needs to use
version :latest
sha256 :no_check

though, since without it the cask would break on updates.

@vitorgalvao done and thank you again :-)

Thank you.


Basic tests for the TADA Geospatial Functions

Hey Katie!
Here are some basic tests for the functions that you made. The functions that you made should pass all of these, but none of these tests are especially adversarial. They mostly check to make sure that the basic functionality works and that expected errors are caught. If you want to feel better about these functions I would definitely recommend you make some tougher tests, but for now I think this is a great jumping off point. I figured I'd give these to you sooner rather than later since I will be in the field tomorrow, so these are not polished.
Notes:

L73-123: This test is commented out. This is the test that checks for equivalence between the input df and the output df sans the geometry column. I've included some lines that show when the test fails and when it passes. This should be a simple fix, just incorporating an index and sorting it at the end of MakeSpatial so that these data frames are actually identical.
L166: This test is a check to see if the function fails if the required columns are not present. As it is these columns are searched for in a global object. This test will always fail if that object is not present so I think that this needs to change to search for these columns in the input object for ViewATTAINS.
Generally I was not able to check for the error messages, but I was able to check for expected errors in the function.

@kathryn-willi When I ran a devtools::check() this PR actually failed but it's because I didn't use the package::function syntax. Incorporating that fixes that and the tests do not error out. If you want to I can close this PR and open another one with the updated syntax.

My thoughts on your comments -
L73-123: I like the idea of having the output in an identical order and agree that the indexing should address that! I'll work on that after we merge this PR.
L166: I'll fix the ViewATTAINS test to address your concerns there
Thanks for getting the ball rolling on these tests for me, Juan!

@kathryn-willi When I ran a devtools::check() this PR actually failed but it's because I didn't use the package::function syntax. Incorporating that fixes that and the tests do not error out. If you want to I can close this PR and open another one with the updated syntax.

I can do that for us - don't worry about submitting a new PR


Support default values for variables

Hi folks!
This is awesome library for work with env files!
But I need one enhancement.
In my case I use default values for variables
For example TEST=${URL:-http://test.com}
Test cases
TEST=${URL:-http://test.com}
TEST=${URL:+http://test.com}
TEST=${URL:=http://test.com}
If you approve this issue I can implement it mysels

I'm glad you appreciate it! :)
Can you elaborate on why you want a default in this context? What you should do is read env vars and, in your application, if they are missing, provide a default value there.

Hi. Now I work on solution which validate service configuration. I use .env files to create private(development) and production configuration. In case of production configuration I should use environment variable instead of values because production had several global settings.
The default values will be used to check service production configuration in pipe line and for documentation

Sure, though I do not promise it will get merged. But if you show me more clearly what you are trying to accomplish, that will help us figure it what you need.

Sure, though I do not promise it will get merged. But if you show me more clearly what you are trying to accomplish, that will help us figure out what you need.

Ok. I'll try prepare more detailed description why I need support default values

The easiest approach will be to write 1+ test cases that you want to have pass that do not currently. Then we can discuss what those cases demonstrate and how best to achieve them.

The easiest approach will be to write 1+ test cases that you want to have pass that do not currently. Then we can discuss what those cases demonstrate and how best to achieve them.

Hi @rogusdev! I add test cases in PR

Ok, your test cases are clear, thank you for that.
However, this goes back to what I said: why are you defining defaults in these .env files? As in, why is the default not in the application? Or separate config?
I hear you on your dev vs prod configs -- but as noted in the readme https://github.com/tonerdo/dotnet-env?tab=readme-ov-file#a-note-about-production-and-the-purpose-of-this-library I strongly discourage using .env files in prod. And if you are using them in dev, you should not need defaults because they should probably just be the same for everyone, and if you need any overrides, just add the env vars there.
As in, as a reminder, if you define an env var in the shell that is also in the .env file, by default loading the env file will use the system env var rather than the env file one. (This behavior can be changed with clobberExistingVars to force using the .env file and not any system env var.)
I really need a clearer, specific example of why you need this specific approach, and not any of the ones I pointed out, to support such changes, please.

Hi.
We try to achive 2 main goals

Validate fullness of configuration
For that we remove all defalts from code. And want to have defalts in .env file. How we do that se below

        builder.Configuration
#if DEBUG
            .AddDotNetEnvMulti([".env", "private.env"], LoadOptions.TraversePath().NoEnvVars().NoClobber())
#else
            .AddDotNetEnvMulti([".env"], LoadOptions.TraversePath().NoEnvVars().NoClobber())
#endif
            .AddEnvironmentVariables();

Working in dev mode we use private.env with sensitive data. To build in pipeline we use .env to validate fullness of configuration and if .env have no defaults value we should customize pipeline for evry service ((.
2. Reuse .env configuration for deploy. We ofcourse read the readme

As you can see we do not use .env file in prod. We generate configmap from .env and partialy overlap from Global ConfigMap.
I hope I gave enought information. If not I'll try to give more in aspect you interested for.
Thanks!

Thank you again for your thorough responses. Your example clarifies things. I still suspect that there is a better way to work your architecture without this feature.
So to further clarify, can you explain how much, if any, overlap there is between private env and regular .env? And you use .env to generate your k8s config map, which I can understand, but then I'm not following how defaults fit into that. Are you saying that private.env has the values that need to be customized and .env has the values that are consistently shared?
Also, a broader question: are you planning on these .env defaults being included in config map generation somehow? Is that a feature already present in that process?

Sorry forget 3 aspect
3. Generate documentation. We want to generate documentation from .env files to markdown use comments to describe variable and default value to show default in documentation.
Return to your last comment

I still suspect that there is a better way to work your architecture without this feature.
If you have any idea hot to do it explain please

So to further clarify, can you explain how much, if any, overlap there is between private env and regular .env?
About 80% this used only on developer workstation. private.env NEVER go out from developer workstation now.

Config map generated from .env
apiVersion: v1
data:
  POSTGRES_HOST: ${POSTGRES_HOST:-localhost}
  POSTGRES_PORT: ${POSTGRES_PORT:-5432}
  POSTGRES_DATABASE: ${POSTGRES_DATABASE:-service-name}
  POSTGRES_USER: ${POSTGRES_USER:-service-name}
kind: ConfigMap
metadata:
  labels:
    app.kubernetes.io/managed-by: kustomize-(devel)
    app.kubernetes.io/name: service-name
  name: service-name-b5t66t6thb
  namespace: namespace-name

Global config map
apiVersion: v1
data:
  POSTGRES_HOST: test.organization.com
  POSTGRES_PORT: 5437
kind: ConfigMap
metadata:
  name: global-config
  namespace: namespace-name

When all config maps will apply to container. Data will be executed as environment variables. Execution order will be first global config, second service config. This need provide fair overlapping because service config have more priority than global. And envirinment will have following state
  POSTGRES_HOST: test.organization.com
  POSTGRES_PORT: 5437
  POSTGRES_DATABASE: service-name
  POSTGRES_USER: service-name

If no default in service config envirinment will have following state
  POSTGRES_HOST: test.organization.com
  POSTGRES_PORT: 5437

If I change load order it will be less clear for understand an have no effect because envirinment will have following state
  POSTGRES_HOST: test.organization.com
  POSTGRES_PORT: 5437

Ok. I can provide another service configuration
apiVersion: v1
data:
  POSTGRES_HOST: localhost
  POSTGRES_PORT: 5432
  POSTGRES_DATABASE: service-name
  POSTGRES_USER: service-name
kind: ConfigMap
metadata:
  labels:
    app.kubernetes.io/managed-by: kustomize-(devel)
    app.kubernetes.io/name: service-name
  name: service-name-b5t66t6thb
  namespace: namespace-name

With changed order (load service config first) it will be work. But in that case any one who whant to change for example POSTGRES_DATABASE should create full copy of service config to change 1 variable  look dirty for me.

Ah, I am very sorry, I forgot to reply!
Are you actually resolved regarding this at this point? I'd love to know what you are doing at this point: did you fork and add, or get swayed by my suggestions, or find a different library that has this feature?

Hi!
That's ok
We found solution out of the library.
As I wrote before it is awesome. We using it now and plan to to use it in future


tagged memory mappings

in addition to marking mmap'd files, tag stack, heap, interp, bin, etc

kinda done as of 507c3fc13d94a88273df7ae8a9323e1ed8a20087

kinda done as of 507c3fc13d94a88273df7ae8a9323e1ed8a20087

basically done


Drop page not working

waiting more than 5 minutes
nothing visible on profile
https://canary.kodadot.xyz/stmn/drops/free-drop

close if it is turned off on purpose

I just made a test. The free drop still works for me.

hmm, weird, still nothing for me

it maybe bc of old deployment and you have cached one bundle my bet as we had micro outage on canary few hours back and your drops ran through cache and maybe missed something new, just my few cents

@exezbcz clear cache try again

@yangwao cleared cache, tried again, works


Update nomad

The Problem

The Solution

Checklist

[ ] Test manually on test-ui using remote chains.
[ ] Run load tests.
[ ] Update documentation if needed.
[ ] Update CHANGELOG.md.

closed as this is handled in https://github.com/connext/nxtp/pull/965


Alternative to the obsolete 'Select' function for selecting default items in SelectionPrompt

Is default selection of SelectionPrompt items supported? It looks like a feature was added in this PR https://github.com/spectreconsole/spectre.console/pull/236
However Select is now flagged as obsolete. Is there an alternative ?

@stevenknox Good point. I removed it for now since it didn't make sense anymore (items can't be retrieved by indexed). We should really add something that brings back this functionality. Sorry for the inconvenience!

@stevenknox Added a PR that solves this for you and should be available in the next version. When fixing this, I realized that you can select items when you add them.
prompt.AddChoice("Foo").Select();

Fantastic @patriksvensson ! Very much appreciated, the tool im building has a lot of defaults so really helps improve the UX


Google sign in error: statusCode=CANCELLED, resolution=null

At first thank you so much for sharing this application. It will be very helpful for newcomer who are interested building social networking apps.
I have added SHA-1 fingerprint into the firebase and added google-services.json in app folder. Also added the Web client ID in /app/src/main/res/values/constants.xml to “google_web_client_id” property. successfully initializes firebase but could not access google sign in. Please Help :(
GoogleSignInResult result = Auth.GoogleSignInApi.getSignInResultFromIntent(data);
Status{statusCode=CANCELED, resolution=null}
and I got the following log in the console
D/FA: Logging event (FE): user_engagement(_e), Bundle[{firebase_event_origin(_o)=auto, engagement_time_msec(_et)=68534, firebase_screen_class(_sc)=LoginActivity, firebase_screen_id(_si)=-3453596755936333125}]
I/FirebasePerformance: Session ID - e8c212a9859c44daa1d0f1ec28cb964e
V/FA: Connection attempt already in progress
D/FA: Logging event (FE): screen_view(_vs), Bundle[{firebase_event_origin(_o)=auto, firebase_previous_class(_pc)=LoginActivity, firebase_previous_id(_pi)=-3453596755936333125, firebase_screen_class(_sc)=SignInHubActivity, firebase_screen_id(_si)=-3453596755936333123}]
V/FA: Connection attempt already in progress
V/FA: Connection attempt already in progress
V/FA: Activity resumed, time: 2186067
V/FA: Screen exposed for less than 1000 ms. Event not sent. time: 286
V/FA: Connection attempt already in progress
V/FA: Activity paused, time: 2186095
D/EGL_emulation: eglMakeCurrent: 0xd1d4c700: ver 3 0 (tinfo 0xe4a318d0)
D/FA: Connected to remote service
V/FA: Processing queued up service tasks: 5
D/LoginPresenter: SIGN_IN_GOOGLE failed :com.google.android.gms.auth.api.signin.GoogleSignInResult@63ee3e5
D/EGL_emulation: eglMakeCurrent: 0xd1d4c700: ver 3 0 (tinfo 0xe4a318d0)
D/FA: Logging event (FE): screen_view(_vs), Bundle[{firebase_event_origin(_o)=auto, firebase_previous_class(_pc)=SignInHubActivity, firebase_previous_id(_pi)=-3453596755936333123, firebase_screen_class(_sc)=LoginActivity, firebase_screen_id(_si)=-3453596755936333125}]

After trying a lot I deleted the app from firebase, google cloud and started from the beginning. This time the app successfully run.
Thanks everyone who are working in this project.


Add NOT NULL constraint

Closes https://github.com/KarnerTh/mermerd/issues/42
This also fixes a small spacing issue in the output file:
erDiagram
    person {
        bigint id PK"id of person"
    }

will now render as
erDiagram
    person {
        bigint id PK "id of person"
    }

Thanks, nice work 👍🏼


Machinery didn't do 2nd non-demand effect (Ultimate)

Machinery executed the demand effect and then the first non-demand effect, but then the log said "You have to execute the 2nd non-demand effect." but it didn't allow me to splay my reds left.

there is no second effect:
        case "31N1_4E":
            $has_card_with_tower = false;
            foreach (self::getCardsInLocation($player_id, 'hand') as $card) {
                if (self::hasRessource($card, 4 /* tower */)) {
                    $has_card_with_tower = true;
                    break;
                }
            }
            if ($has_card_with_tower) {
                $step_max = 1;
            } else {
                self::revealHand($player_id);
                self::notifyPlayer($player_id, 'log', clienttranslate('${You} have no cards with a ${tower} in your hand.'), array('You' => 'You', 'tower' => $tower));
                self::notifyAllPlayersBut($player_id, 'log', clienttranslate('${player_name} has no cards with a ${tower} in his hand.'), array('player_name' => self::getColoredPlayerName($player_id), 'tower' => $tower));
            }
            break;

        // id 32, age 3: Medicine
        case "32D1":
            $step_max = 2;
            break;


[BUG] Unhandled Exception: Both Content-Length and Transfer-Encoding are specified, at most one is allowed?

build_runner: ^2.3.3
chopper_generator: ^6.0.0
json_serializable: ^6.6.1
swagger_dart_code_generator: ^2.10.4

It should be a problem with http, but I don't know how to solve it


Updated to use Microsoft.Azure.Cosmos and .net core 3.1

Thanks for contribution. I see this PR is interface incompatible which means that it will break all existing applications. I'll suggest you just keep focus on underlying problem and do not make changes to application interfaces. If it's absolutely required and compatibility can not be maintained, there are other ways to solve this issue.

I have created and tested a new repository to support new cosmos sdk and provided support for PartitionKeys. in addition I found the problem and fixed it my repo. how can I contribute that to the serilog official repositories? here is the link
https://github.com/mahdighorbanpour/serilog-sinks-azurecosmosdb


Remap remote buttons, eg. use color buttons for media controls

Hi, this is really great plug.
The magic remote lacks media buttons, more specifically media buttons like play/pause.
I would be great if we could remap the colored buttons (red, green, yellow, blue) in a way that they can perform specific actions.
The problem with the wheel click is that it does not perform the same action in every context/app/input, for example

on AppleTV+ - it toggles play/pause
on YouTube - it shows the app's media controls
on my TV service provider's app (EON) - it shows the media controls

I would really like to have single click play/pause, instead of 2+ clicks like on YouTube and EON
What i've tried so far:

ccRemoteRemap - lacks the color buttons and also i'm not sure how this is supposed to work

For example - none of these does nothing.
"ccRemoteRemap": {
    "playpause": "YELLOW"
}

"ccRemoteRemap": {
    "information": "PAUSE"
}

Using remoteControlButtons as triggers via automations

When defining any remote control button, eg.
"remoteControlButtons": [
    "RED",
    "GREEN",
    "YELLOW",
    "BLUE",
    "PLAY",
    "PAUSE"
]

The buttons appear in the Home app, tapping on them from the Home app works, however clicking the button on the remote - does not toggle the state of the Home app.
My idea here was to write automation in the Home app, for example where the yellow button is on - to pause.
But it appears that these are one way controls - from Home App to the TV and can't be used as event triggers.
Is there some other way to achieve my goal or this is something that currently does not exist as plugin feature?

Hi, thanks for the suggestion, but unfortunately from what i understand is that what you are requesting is not possible. So there is no feedback from tv which remote control button was pressed and it is not possible react to those or even remap the functionality of those.

Ok, thanks for the info. Hopefully, someday, this could be possible.


Fix ORCID ID font size

Description
The change of font caused the original defined font-size to be too small, increased font size by a bit to match prod.
Issue
DOCK-2146
Please make sure that you've checked the following before submitting your pull request. Thanks!

[ ] Check that your code compiles by running npm run build
[ ] If this is the first time you're submitting a PR or even if you just need a refresher, consider reviewing our style guide
[ ] Do not bypass Angular sanitization (bypassSecurityTrustHtml, etc.), or justify why you need to do so
[ ] If displaying markdown, use the markdown-wrapper component, which does extra sanitization
[ ] Do not use cookies, although this may change in the future
[ ] Run npm audit and ensure you are not introducing new vulnerabilities
[ ] Do due diligence on new 3rd party libraries, checking for CVEs
[ ] Don't allow user-uploaded images to be served from the Dockstore domain

Previously:

Production:

Now:


[usbdev] Test operation at frequency corners

Description
With the chip-level usb suspend-resume test the DPI model has ended up operating on a separate clock in order that it remains operable whilst the chip is powered down. (Local branch at present)
This permits us to try quickly a simple experiment with the usbdev and host (DPI) at opposite frequency extremes to see whether the device can still correctly receive maximum-length packets, and perhaps whether calibrating the 48MHz usbclk operates as intended using SOF packets.
@a-will for awareness; you have often mentioned this, and the chip-level suspend-resume is not yet ready to create a PR
Estimation: 4 for the initial experiment at frequency extremes; 12 for both that and oscillator calibration (reading, learning and experimentation required)
@johngt

estimate 12
remaining 2023-06-26 4

@alees24 @johngt  is this something you still planned to do for M2.5.2, or is it ok from your end if we do this at a later point?

I'd still like to try this experiment this week, and there should be time. Perhaps not for the calibration component, but at least some quick manual experiments with different clock frequencies.

Thus far: test bench modified to present usbdpi model with a clock of different frequency to that which usbdev receives, and asynchronous to it. The DPI model has been modified to observe line transitions away from Idle at the start of a packet being transmitted by the device, and to resynchronized its behavior accordingly.
Two new top levels have been created with the usbdev at frequencies above and below that of the DPI model. These both employ the existing LFSR-based streaming test but - crucially - with maximum length packets to achieve maximal drift and thus the greatest chance of failure. With a 30kHz offset the test is observed to complete, and with a 60kHz offset the test will fail with CRC errors and data corruption etc.
A simple estimate gives an idea of the maximum frequency delta that we cant tolerate without relying upon the USB clock calibration:
SYNC DATA <> 2CRC + 2 EOP bits
34 bits overhead + (64 x 8 bits payload) *6/5 for worst case bit stuffing = 649 bit intervals in max length packet
Aim to drift by no more than half a bit interval over the entire packet duration 0.083us/2 = 0.041us
41ns out of 54us
about 9.1kHz difference on 12MHz clock....36.4kHz variation on 48MHz clock

It would be good to be able to test usb_clk calibration within a top-level test and observe the clock drifting into line with the received Start Of Frame 'heartbeat' messages from the DPI host, but this is presently not possible since the current open source usb_osc is a placeholder/model.
@jdonjdon, @a-will Is there any way that I can test/model this more completely?
Draft PR to follow, once cleaved from the suspend-resume work upon which it is currently built.

@alees24 is there something specific that does not work correctly with the open-source model?
according to Nuvoton, the open-source model may not be fully accurate, but it should capture the functionality.

estimate 4

Moved to V3 / M2.5 backlog since the USB device DV is best effort for ES.

Draft PR https://github.com/lowRISC/opentitan/pull/19093 includes work so far.

Moved to M2 until we can confirm observed behaviour via SIVAL. Depending on results this can then move back.

@pamaury - for reference

As mentioned previously - there is a draft PR in play - https://github.com/lowRISC/opentitan/pull/19093
Leaving as one day of effort remaining for now

@johngt to update after discussion next Monday

Discussed in triage: de-prioritized to M5.

@sha-ron: assigning you from Nuvoton's DV team; to be discussed at our next sync

Thus far: usbdev synchronizes to host if +/-18.5kHz, fails somewhere between 18.5kHz and 30kHz...the specification requires +/-240kHz but usb_clk calibration not yet possible in simulation.
Test bench modified to present usbdpi model with a clock of different frequency to that which usbdev receives, and asynchronous to it. The DPI model has been modified to observe line transitions away from Idle at the start of a packet being transmitted by the device, and to resynchronize its behavior accordingly.

I'll just note that at this point, the DPI model isn't quite as sophisticated as usbdev, which adapts the sampling point on every transition. I'm not sure we can get away without it, if we're going to test the limits.
At the 48 MHz sampling clock and for 64 raw bytes without bitstuffing (64 bytes * 8 bits / byte * 4 clocks / bit), we end up sampling 1 clock early for the next bit with only a 24 kHz offset (0.049%, 488 ppm). USB guarantees a transition at least every 7 bits, and in usbdev, we make use of that for keeping in sync with the incoming data.
It's kind of an awkward problem for simulation, though: I feel like the monitor will have to implement effectively the same logic we are testing.

The DPI model could just wait for a deviation from Idle, and then implement a DPLL by having more logic in usbdpi.sv.
I must remark that USBDEV itself, even with its transition detection and phase adjustment, does not cope with the maximum permitted frequency delta between host and device; in fact as noted we were able only to accommodate +/-18kHz deviation rather than the +/-240kHz ultimately, so we are reliant upon the 'usb_ref_pulse_o' timing reference pulse, oscillator adjustment and the >= 10ms 'reset recovery' time during which only SOF packets are transmitted to the DUT.
This top-level tests has been somewhat superseded, at least for now, by the block level DV testing; open PR at #23836

@alees24 Now that PR #23836 is merged and covers this issue in a block-level test, is there any need for keeping this chip-level test issue open? If not, suggestion is to close as not planned.

Adrian and I just discussed this out of band: this can be deprioritized out of M5. Moving to M7 as part of V3 efforts


Rename the OpenSearch Dashboards category

Describe the enhancement
Replace the OpenSearch Dashboards app category removing the branding name.

Out of scope


get_order_book() does not work

I always get this error when trying get_order_book(ETH_ICX)
idex.exceptions.IdexAPIException: IdexAPIException: Market ETH_ICX not found
**not only ICX, I tried every possible token, all returning same error.
**edit
I found they use another URL and path to get orderbook, here's my simple python script to get orderbook:
url = 'https://ns5qa7zsuj.execute-api.ca-central-1.amazonaws.com/prod/returnOrderBookForMarket'
payload = {"selectedMarket":"ETH","tradeForMarket":"AION"}
r = requests.post(url, data=json.dumps(payload))
js = json.loads(r.content.decode('utf-8'))

How did you find that URL? That seems to be what the idex docs call the 'returnOpenOrders' endpoint, do you know the URL for the 'returnOrderBook' endpoint (as described in the idex docs)?

Yes I know its /returnOrderBook?market=AION_ETH
I found out the function works fine, the problem was IDEX server not active (in maintenance mode) during the moment.
Thanks!

Oh, maybe thats the issue I was having too. thanks for your help!

The Amazon URL above was found by sniffing from Cloudflare.

May I ask you a question? I know how to BUY using this API, but how to SELL? I tried once but my order did not matched with the existing top orderbook even I have matched the volume of 'ETH' (amount of buy_token)

This code doesn't work now, sad, result is internal server error

code is fine, the problem is IDEX server does not response rightly

Closing because of server issue


[admin_handler] create gflag for allowing global seqno

the default case (false) is more common

sure, I was suggesting that the comment is inaccurate now because allowing overlapping keys is now determined by a gflag.


proposal: net: add FlagRunning to the Flags of struct Interface, to exactly reflect the states of an interface or NIC

Hi, team,
What version of Go are you using (go version)?

$ go version
go version go1.18.3 linux/amd64

Does this issue reproduce with the latest release?
Yes, it is.
What operating system and processor architecture are you using (go env)?
Ubuntu 20.04
What did you do?
I inspect the flags of an Interface object to check if this NIC is up and in running state.
	intfs, _ := net.Interfaces()
	for _, intf := range intfs {
		log.Printf("NIC name: %s, flags: %s\n", intf.Name, intf.Flags)
		if intf.Flags & net.FlagUp != 0 {
			// I expect this interface 'intf' is up and in running state, but it is not.
		}
	}

But, althought some NIC(s) have the FlagUp flag, when I check again by ip addr | grep state, I found they are in DOWN state actually.
The situation is: there is no fiber or twisted-pair cable plugged in the NIC, and I run ip link set XXX up to set it up administratively and manually.
Environment:

I manually set the NICs(ens1f0/eno1/ens1f1/eno2/eno3) up for administrative purpose, leave the NICs(ens2f0,ens2f1) down without any operation. And, there is no cable/fiber plugged in them.
The NIC(eno4) is plugged, and it is automatically up.

The output of ip addr | grep state, please pay attention to the state DOWN words:
XXX@XXX:~# ip addr | grep state
1: lo: <LOOPBACK,UP,LOWER_UP> mtu 65536 qdisc noqueue state UNKNOWN group default qlen 1000
2: ens1f0: <NO-CARRIER,BROADCAST,MULTICAST,UP> mtu 1500 qdisc mq state DOWN group default qlen 1000
3: eno1: <NO-CARRIER,BROADCAST,MULTICAST,UP> mtu 1500 qdisc mq state DOWN group default qlen 1000
4: ens1f1: <NO-CARRIER,BROADCAST,MULTICAST,UP> mtu 1500 qdisc mq state DOWN group default qlen 1000
5: eno2: <NO-CARRIER,BROADCAST,MULTICAST,UP> mtu 1500 qdisc mq state DOWN group default qlen 1000
6: eno3: <NO-CARRIER,BROADCAST,MULTICAST,UP> mtu 1500 qdisc mq state DOWN group default qlen 1000
7: eno4: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc mq state UP group default qlen 1000
8: ens2f0: <BROADCAST,MULTICAST> mtu 1500 qdisc mq state DOWN group default qlen 1000
9: ens2f1: <BROADCAST,MULTICAST> mtu 1500 qdisc mq state DOWN group default qlen 1000
10: docker0: <NO-CARRIER,BROADCAST,MULTICAST,UP> mtu 1500 qdisc noqueue state DOWN group default

What did you expect to see?
I expect to see NICs(ens1f0/eno1/ens1f1/eno2/eno3) and NICs(ens2f0,ens2f1) are all down, and only NIC(eno4) is up.
What did you see instead?
I actually see NICs(ens1f0/eno1/ens1f1/eno2/eno3) and NIC(eno4) are up, and NICs(ens2f0,ens2f1) are down, the output of the above snippet program is as follow:
Please pay attention to the flags: up words.
2022/06/21 20:56:49 NIC name: lo, flags: up|loopback
2022/06/21 20:56:49 NIC name: ens1f0, flags: up|broadcast|multicast
2022/06/21 20:56:49 NIC name: eno1, flags: up|broadcast|multicast
2022/06/21 20:56:49 NIC name: ens1f1, flags: up|broadcast|multicast
2022/06/21 20:56:49 NIC name: eno2, flags: up|broadcast|multicast
2022/06/21 20:56:49 NIC name: eno3, flags: up|broadcast|multicast
2022/06/21 20:56:49 NIC name: eno4, flags: up|broadcast|multicast
2022/06/21 20:56:49 NIC name: ens2f0, flags: broadcast|multicast
2022/06/21 20:56:49 NIC name: ens2f1, flags: broadcast|multicast
2022/06/21 20:56:49 NIC name: docker0, flags: up|broadcast|multicast

In conclusion
We can't distinguish the state of a NIC through only the FlagUp flag in the following situations:

interface is plugged, automatically up, and in running(UP) state
interface is not plugged, administratively or manually set to up, but in DOWN state

I have fixed this bug, and will send a pull request soon :)
I add a new flag to exactly reflect the states of an interface or NIC, as the title says.
And I get the right and exact report as the follow output, you can see only NIC(lo/eno4) are reported in running state:
Please pay attention to the tailing running word.
2022/06/21 21:01:52 NIC name: lo, flags: up|loopback|running
2022/06/21 21:01:52 NIC name: ens1f0, flags: up|broadcast|multicast
2022/06/21 21:01:52 NIC name: eno1, flags: up|broadcast|multicast
2022/06/21 21:01:52 NIC name: ens1f1, flags: up|broadcast|multicast
2022/06/21 21:01:52 NIC name: eno2, flags: up|broadcast|multicast
2022/06/21 21:01:52 NIC name: eno3, flags: up|broadcast|multicast
2022/06/21 21:01:52 NIC name: eno4, flags: up|broadcast|multicast|running
2022/06/21 21:01:52 NIC name: ens2f0, flags: broadcast|multicast
2022/06/21 21:01:52 NIC name: ens2f1, flags: broadcast|multicast
2022/06/21 21:01:52 NIC name: docker0, flags: up|broadcast|multicast

In another words, the NIC(s) which only have up flag but no running flag, are set up administratively or manually.
Thanks,
Mao

I see you have marked the issue as a proposal, thanks @ianlancetaylor .
What do I need to do, or just need to wait for weekly proposal review meetings to pick it to be active proposal? :)

Hi, @rsc ,
You get the core problem correctly, thanks :)
There are three reasons to choose the 'RUNNING' name:

The flag of an interface for its real state is parsed from the syscall result, that is corresponding to the $go/src/net/interface_linux.go: linkFlags() function and the $go/src/syscall/zerrors_linux_amd64.go: const IFF_RUNNING flag. In other words, the existed constant flag was named 'IFF_RUNNING', so I just inherit the 'RUNNING' name here in this proposal.
The flag of an interface for the administrative UP is already named 'FlagUp', so in order to distinguish with it, I choose the 'FlagRunning' name.
the linkFlags() function and the 'IFF_RUNNING' are adopted by several systems and architectures, not only linux, as follow:

linkFlags() function:
$go/src/net/interface_linux.go
$go/src/net/interface_aix.go
$go/src/net/interface_bsd.go
$go/src/net/interface_solaris.go
$go/src/net/interface_linux.go

'IFF_RUNNING' flag, constant:
$go/src/syscall/zerrors_linux_amd64.go
$go/src/syscall/zerrors_openbsd_arm64.go
$go/src/syscall/zerrors_linux_riscv64.go
$go/src/syscall/zerrors_linux_s390x.go
$go/src/syscall/zerrors_netbsd_386.go
$go/src/syscall/zerrors_aix_ppc64.go
... ...

This flag is defined in more than 30+ *.go file. We can easily check out this situation by double-press shift in the Goland IDE and search it.

'IFF_DRV_RUNNING' flag, the meaning is same as 'IFF_RUNNING':
$go/src/syscall/zerrors_freebsd_amd64.go
$go/src/syscall/zerrors_freebsd_arm64.go
$go/src/syscall/zerrors_freebsd_arm.go
$go/src/syscall/zerrors_freebsd_386.go

Thanks,
Mao

Just to confirm: it sounds like the ip addr program is reporting the kernel IFF_RUNNING bit when it prints 'state UP' (bit is set) or 'state DOWN' (bit is clear). Is that correct? (Certainly weird if so.)
What bit is it reporting when it says 'state UNKNOWN' like in the very first comment's:
1: lo: <LOOPBACK,UP,LOWER_UP> mtu 65536 qdisc noqueue state UNKNOWN group default qlen 1000

?
Also, looking at PR #53484, does Windows ever distinguish UP from RUNNING? Do we need to do something more precise there?

This proposal has been added to the active column of the proposals project
and will now be reviewed at the weekly proposal review meetings.
— rsc for the proposal review group

Sounds like the bit exists and is called Running, so adding it here should be uncontroversial.

Based on the discussion above, this proposal seems like a likely accept.
— rsc for the proposal review group

Sounds like the bit exists and is called Running, so adding it here should be uncontroversial.

Yes, the bit is right here, and we want to provide it to everyone for using :)
Mao

No change in consensus, so accepted. 🎉
This issue now tracks the work of implementing the proposal.
— rsc for the proposal review group

Many thanks, wish the code can be reviewed successively :)
@ianlancetaylor @neild @rsc
https://go-review.googlesource.com/c/go/+/413454

Hi, @ianlancetaylor and @rsc , many thanks for your help, this PR has finally merged :)
Will this commit be automatically released in Go 1.20 ?
It was merged into the master branch, but has not marked with Go1.20 Milestone yet.
Cheers,
Mao

yes, everything in master goes into the next release

Thanks, @seankhliao :)


ReferenceError: tx is not defined

Hello! Used your script for my game and found a bug. In this code line you are using the reference to variable, but you never declared it.
Also check this line.
Happy coding 😉

thank you for your feedback


Fix code scanning alert - Unvalidated dynamic method call

Tracking issue for:

[ ] https://github.com/mcantu-cloudinabox/calculator/security/code-scanning/1

test comment 1


Raise CycleDetectedException

Hi,
I am getting a errror "scipy.sparse.linalg.eigen.arpack.arpack.ArpackNoConvergence: ARPACK error -1: No convergence (77651 iterations, 66/100 eigenvectors converged)" when I rerun a one cluster after it failed in batch processing of bin.
I also got an error "CYCLE detected through simple_cycles! Raise CycleDetectedException!" when I was running a failed reconstruction (i used genome there).  I followed the recommendations to fix failed runs. tried different k-mers. After a certain increase, I started to get the above error.
I am using cogent 8.0.0.
any idea how to fix this problem.

Hi @shri1984 ,
This probably means the input is just too repetitive - even with increasing K mer sizes, it's still blowing up the graph.
I can give it a shot if you are willing to share just that cluster but no guarantees it can be resolved.
-Liz

Hi,
Thanks for your reply.  You are right. It is from an organism with the highly repetitive genome, I tried a few times now. It did not budge.  I just wonder if I don't manage to fix those clusters is there any other way out to move forward?

Hi @shri1984 ,
Depends on what the goal is - What is the goal of using Cogent here? is it to do gene detection/annotation or create a mock reference genome?

Thanks again,
We are building a transcriptome database covering as many genes as possible. I have a genome with lot of contigs (chromosome level as well as unplaced). Annotation is bad. So the plan is to use  "annotated transcripts" to re annotate the genome and use that for other RNA seq projects.
I found quite a few unmapped transcripts when mapped my HQ transcripts to that genome. That was surprising. So I started to look into those unmapped transcriptomes. That's how I started to use Cogent.
Also, another objective was to identify unique transcriptome models (denovo) and then get functional annotation and build pseudo genome to use as a reference (testing) and compare to the existing annotation.

Hi @shri1984 ,
Thanks for the response. That helps.
Is it just this one cluster that had an issue? How many transcripts are in it?
Some idea for what to do if reconstruction fails - just use the transcripts as is. The downside is if you have a lot of transcripts in that partition/cluster it blows up the database size a bit.
If you are willing to share just this partition confidentially i can give it a try too.
-Liz


brew update broke php artisan.

php artisan was working fine.
I did a brew update and now I get:
php artisan serve
-bash: /usr/local/bin/php: No such file or directory
Why did Brew move php? What's going on? None of the commands are working.

From the issue template:

Please note we will close your issue without comment if you delete, do not read or do not fill out the issue checklist below and provide ALL the requested information. If you do not read fill out the issue template repeatedly you will be blocked from ever submitting issues to Homebrew again.

If you add the necessary information to this issue (don't create a new one, please) then this issue may be reopened.