[Question]: Multi MetadataFilters using Chroma

Question Validation

[X] I have searched both the documentation and discord for an answer.

Question
I'm trying to apply multiple ExactMatchFilters inside my VectorIndexRetriever using Chroma. I found an example of this using Redis here: https://docs.llamaindex.ai/en/latest/examples/vector_stores/RedisIndexDemo.html#. The syntax shown there looks like this:
query_engine = index.as_query_engine(
similarity_top_k=3,
filters=MetadataFilters(
filters=[
ExactMatchFilter(key="user_id", value="12345"),
ExactMatchFilter(key="favorite_color", value="blue"),
]
),
)
However, when I try the same sort of thing on my Chroma index I get the error:
raise ValueError(f"Expected where to have exactly one operator, got {where}")

ValueError: Expected where to have exactly one operator, got {'key1': 'val1', 'key2': 'val2'}
That's using the same format for the retriever as shown in the example. Is there a different syntax needed for multi-filters using Chroma?

This is my retriever:
        retriever = VectorIndexRetriever(             index=index,             similarity_top_k=10,             filters=MetadataFilters(                 filters=[                     ExactMatchFilter(key="key1", value="value1"),                     ExactMatchFilter(key="key2", value="value2"),                 ]             ),
If I remove either of the ExactMatchFilters it works with the single filter. Using multi-filters causes this error from Chroma:
llama_index/indices/vector_store/retrievers/retriever.py", line 86, in _retrieve     return self._get_nodes_with_embeddings(query_bundle) llama_index/indices/vector_store/retrievers/retriever.py", line 164, in _get_nodes_with_embeddings     query_result = self._vector_store.query(query, **self._kwargs) llama_index/vector_stores/chroma.py", line 236, in query     results = self._collection.query( chromadb/api/models/Collection.py", line 283, in query     valid_where = validate_where(where) if where else {} /chromadb/api/types.py", line 318, in validate_where     raise ValueError(f"Expected where to have exactly one operator, got {where}") ValueError: Expected where to have exactly one operator, got {'Client': 'Exxon', 'Month': 'April'}
Any help here greatly appreciated

@mphipps2 can you show us the full code maybe in colab.
Want to understand how you init Chroma vector index

I too am having the same issue trying to use multiple filters for the Chroma vector store.
Looking into chroma.py, it seems that _to_chroma_filter is not properly handling multiple filters. According to the Chroma docs this is how one needs to handle multiple exact match filters (or the "$eq" operator in Chroma) assuming just the simplest case of all and operators only and not even considering mixing in or operators:
{
    "$and": [
        {
            "metadata_field": {
                "$eq": <Value>
            }
        },
        {
            "metadata_field": {
                "$eq": <Value>
            }
        }
    ]
}

which can simplify to:
{
    "$and": [
        {
            "metadata_field": <Value>
        },
        {
            "metadata_field": <Value>
        }
    ]
}

Clearly, _to_chroma_filter is not properly converting multiple filter dictionary keys into the most straightforward case of an and operator for Chroma.
I understand there is a caveat that only ExactMatchFilters are supported and supporting more advanced expressions is still a todo, but defining the filters property as List[ExactMatchFilter] in the MetadataFilters class is giving the false signal that at the very least the most likely use case of all and operators is supported if you provide a list containing more than 1 ExactMatchFilter. It might work for other vector stores, but apparently not for Chroma.
We also can't even try to construct our own advanced filter expression to pass to the filters: List[ExactMatchFilter] property in MetadataFilters for our vector store of choice (in this case Chroma) because of the strict pydantic typing accepting only int, float or str for the value of ExactMatchFilter - so we can't even do:
ExactMatchFilter(key="$and", value=[{"metadata_1": "value_1"}, {"metadata_2": "value_2"}]}

So it would seem that the only workaround for now would be to directly modify _to_chroma_filter in chroma.py?

@chunyat that is great advice.
Different vector store would have different syntax for supporting different filters. Our current filters supporting is pretty trieval.
For this case, we should modify it directly in _to_chroma_filter if number of filters > 1.
So that Chroma can get ```ExactMatchFilter(key="$and", value=[{"metadata_1": "value_1"}, {"metadata_2": "value_2"}]}

For more complicated filter cases, our side need more desing

@hatianzhang I agree that there would be too many different syntax to consider if we try to support all the more complicated filter cases for each vector store.
I am not sure how feasible it would be, but perhaps the MetadataFilters class could be modified to allow users to construct and add their own advanced filtering syntax?
This is so that it would be up to each user to learn the filter syntax of their own chosen vector store and the MetadataFilters class only needs to pass the whole where filter constructed by the user directly to the vector store object.

pls check out https://github.com/run-llama/llama_index/pull/9194
put a quick fix

This is great, guys. Thank you! That patch works well on my end.
Also think @chunyat's suggestion to somehow allow users to provide advanced filtering syntax is a good one, as long as it doesn't break things elsewhere. Not having that advanced filtering is a significant constraint at the moment

check out https://github.com/run-llama/llama_index/pull/9216
which refactor MetadataFilter

Reopening this to ask about support for multi-filter, single-key.
eg: key="Month", value=["March", "October"] with an OR filter condition and an IN operator
or another case:
eg: key="Day", value=[7, 14] with an AND filter and operators [GTE, LTE]
I don't believe the updated solution allows for something.
Using Chroma, I have a solution for the first case working by:

vector_stores/types.py
class MetadataFilter(BaseModel):  key: str  value: Union[StrictInt, StrictFloat, StrictStr, List[Union[StrictInt, StrictFloat, StrictStr]]]  operator: FilterOperator = FilterOperator.EQ

vector_stores/chroma.py
def _transform_chroma_filter_operator(operator: str) -> str:  """Translate standard metadata filter operator to Chroma specific spec."""  if operator == "!=":      return "$ne"  elif operator == "==":      return "$eq"  elif operator == ">":      return "$gt"  elif operator == "<":      return "$lt"  elif operator == ">=":      return "$gte"  elif operator == "<=":      return "$lte"  elif operator == "in":      return "$in"  else:      raise ValueError(f"Filter operator {operator} not supported")

vector_stores/chroma.py
`
def _to_chroma_filter(
standard_filters: MetadataFilters,
) -> dict:
"""Translate standard metadata filters to Chroma specific spec."""
filters = {}
filters_list = []
condition = standard_filters.condition or "and"
condition = _transform_chroma_filter_condition(condition)
if standard_filters.filters:
for filter in standard_filters.filters:
if filter.operator:
operator = _transform_chroma_filter_operator(filter.operator)
# Handle list values for 'in' operator
if filter.operator == FilterOperator.IN and isinstance(filter.value, list):
filters_list.append({filter.key: {"$in": filter.value}})
else:
filters_list.append({filter.key: {operator: filter.value}})
else:
# Assuming default behavior for filters without an explicit operator
filters_list.append({filter.key: filter.value})
if len(filters_list) == 1:
# If there is only one filter, return it directly
return filters_list[0]
elif len(filters_list) > 1:
# Combine multiple filters based on the specified condition
filters[condition] = filters_list
return filters
`

And then this gets initialized like this:
metadata_filters = MetadataFilters(     filters=[         MetadataFilter(key="Month", value=["September", "October"], operator=FilterOperator.IN)     ],     condition=FilterCondition.OR )
Can we implement support for something like this? This case looks easy to add. I'd really like a way to handle something like this as well but may take more effort:
eg: key="Day", value=[7, 14] with an AND filter and operators [GTE, LTE]


UnitOfWorkCommandHandlerDecorator in UserAccess Module Doesn't Get Called.

Hello Kamil,
I thought I have figured the project architecture from end to end and decided to try it out on a side project. I am almost sure I followed your example thoroughly and didn't miss out anything. But when I tested it by trying out the RegisterUser endpoint, It returns 200 but the user isn't found at least in the database.
I tried to step through the process and realized that all through the process of the step-through, UnitOfWorkCommandHandlerDecorator and ValidationCommandHandlerDecorator were never called. When this line from CommandsExecutor.cs runs - return await mediator.Send(command); , Dispose() of SqlConnectionFactory.cs gets called next. I don't know why this happens.. At some point, the debug was stuck in between Quartz and SerilogLogProvider. I don't know what I'm missing, and I've been on this for days.
I was hoping you would point me to the right direction because my frustration is building up.
Please help.

Hello @kgrzybek I am still struggling with this challenge. I am in dire need of some assistance.

Hi @kacey90
I checked my solution and it works - you can check this by running integration test: RegisterNewUserCommand_Test
I don't see your code so it is hard to give you an answer but I can guess that your decorators are not registered correctly. Remember, that if you have

commands without result (inherits from CommandBase)
commands with the result (inherits from CommandBase<TResult>)

you must create and register two sets of decorators for each of them. Maybe this is the issue?
In fact, I wonder whether to give up the command without result in the future and always return some kind of result for all commands.

Hi @kgrzybek ,
Thanks for your response. I have both decorators created and registered. But I am currently doing comparative checks with your code base to see if I'm missing something. My last resort may be to make a fork of your project and refactor it to my specifications.
Based on your suggestion on the command decorators, we may ditch the one without the "Result" since it's mostly unused throughout the project.

@kacey90 I had a similar problem with the decorator and in my situation, there are a couple of problems.
The first problem is related to missing registrations of command handlers which are implements ICommandHandler<>. Thereby, MediatR resolved the IRequestHandler<,> service from the container and my handlers were skipped.
Another problem was in registering the decorator itself. You no need to set serviceType as typeof(ICommandHandler<>), just change it to the typeof(IRequestHandler<>).
builder.RegisterGenericDecorator(typeof(UnitOfWorkCommandHandlerDecorator<>), typeof(IRequestHandler<>));
That new behavior in the Autofac was introduced starting from the v5.
Kamil's infrastructure project uses Autofac v4.9.2 where it's still while working fine.
See details here
cc @kgrzybek FYI

This work with Autofac v6.1 See details
builder.RegisterGenericDecorator(
typeof(UnitOfWorkCommandHandlerWithResultDecorator<,>),
typeof(ICommandHandler<,>),
context => !context.AppliedDecorators.Any());

This work with Autofac v6.1 See details
builder.RegisterGenericDecorator(
typeof(UnitOfWorkCommandHandlerWithResultDecorator<,>),
typeof(ICommandHandler<,>),
context => !context.AppliedDecorators.Any());

Hi, I'm trying to decorate IRequestHandler , but it doesn't work (without result). The LoggingDecorator and DiagnosticDecorator decorators are never invoked
I have no problem decorating IRequestHandler <TCommand, TResult> (with result)
`
Exe
net5.0

`
`class Program
{
static IContainer container;
    static async Task Main(string[] args)
    {

       await Setup();

        using (var scope = container.BeginLifetimeScope())
        {
            var mediatr = scope.Resolve<IMediator>();
            await mediatr.Send(new CreatePersonCommand() { x = 1, y = 2 });
        }
    }

    public static async Task Setup()
    {
        var builder = new ContainerBuilder();

        builder.RegisterMediatR(typeof(Program).Assembly);
        builder.RegisterGenericDecorator(typeof(DiagnosticDecorator<>), typeof(IRequestHandler<>));
        builder.RegisterGenericDecorator(typeof(LoggingDecorator<>), typeof(IRequestHandler<>));
        container = builder.Build();
    }
}

public class LoggingDecorator<TCommand> : IRequestHandler<TCommand>
   where TCommand : IRequest
{

    private readonly IRequestHandler<TCommand> commandHandler;

    public LoggingDecorator(IRequestHandler<TCommand> commandHandler)
    {
        this.commandHandler = commandHandler;
    }
    public async Task<Unit> Handle(TCommand request, CancellationToken cancellationToken)
    {
        Console.WriteLine("executing...");
        return await this.commandHandler.Handle(request, cancellationToken);
    }
}

public class DiagnosticDecorator<TCommand> : IRequestHandler<TCommand>
    where TCommand : IRequest
{

    private readonly IRequestHandler<TCommand> commandHandler;

    public DiagnosticDecorator(IRequestHandler<TCommand> commandHandler)
    {
        this.commandHandler = commandHandler;
    }
    public async Task<Unit> Handle(TCommand request, CancellationToken cancellationToken)
    {

        var r = await commandHandler.Handle(request, cancellationToken);

        return r;
    }
}

public class CreatePersonCommand : IRequest
{
    public int x { get; set; }

    public int y { get; set; }
}

public class CreatePersonCommandHandler : IRequestHandler<CreatePersonCommand>
{
    public async Task<Unit> Handle(CreatePersonCommand request, CancellationToken cancellationToken)
    {
        return Unit.Value;
    }
}`

also try registering the decorators like this, but it doesn't work
builder.RegisterGenericDecorator(typeof(DiagnosticDecorator<>), typeof(IRequestHandler<>), context=> !context.AppliedDecorators.Any());             builder.RegisterGenericDecorator(typeof(LoggingDecorator<>), typeof(IRequestHandler<>), context =>!context.AppliedDecorators.Any());
thanks for your help

@ghuarcayam  downgrade autofac version thesame with project currenly using.

I've managed to do it like this (Autofac 6.2.0):
builder.RegisterGenericDecorator(
    typeof(UnitOfWorkCommandHandlerDecorator<>),
    typeof(IRequestHandler<>),
    context => context.ImplementationType.FullName.EndsWith("CommandHandler"));

builder.RegisterGenericDecorator(
    typeof(UnitOfWorkCommandHandlerWithResultDecorator<,>),
    typeof(IRequestHandler<,>),
    context => context.ImplementationType.FullName.EndsWith("CommandHandler"));


Add X-blocks and X-blocks headers

Thank you!

Just looking into the APIs for hypercore/hyperdrive and it's all changed.
Mind elaborating on what the use case you have for this is? Is it just to see what percentage of the content has been downloaded?

Since for now we're not going to take advantage of sparse replication in hyperdrive.el, we can just use Content-Length.

Beyond X-blocks and X-blocks-downloaded headers, is it possible to send a HEAD request to determine whether a file has been downloaded already?

Some thoughts:
This would add a non-trivial amount of overhead to each request since we would need to 1. get the stat for the file, 2. get the block ranges from the stat, 3. query the blobs hypercore for how much of the data is present (which might end up touching the disk), and 4. send that back serialized.
It might be good to add a header in there to opt-into getting this extra info. Maybe something like X-Show-Downloaded: true in the request headers

IIUC, we could use drive.blobs.core.contiguousLength once it's implemented (see https://github.com/holepunchto/hypercore/pull/378)

Add in https://git.sr.ht/~ushin/hypercore-fetch-ushin/commit/5ae6edc.  Thank you!


ORC-640: [C++] Support consumption as CMake submodule

Consuming Apache ORC in a C++ project as CMake submodule (via add_subdirectory) currently causes two issues:

A warning about CMake policy CMP0048 not being set, which cannot be suppressed from the outside:

CMake Warning (dev) at third_party/orc/CMakeLists.txt:15 (project):
  Policy CMP0048 is not set: project() command manages VERSION variables.
  Run "cmake --help-policy CMP0048" for policy details.  Use the cmake_policy
  command to set the policy and suppress this warning.

  The following variable(s) would be set to empty:

    PROJECT_VERSION
    PROJECT_VERSION_MAJOR
    PROJECT_VERSION_MINOR
    PROJECT_VERSION_PATCH
This warning is for project developers.  Use -Wno-dev to suppress it.

Errors about CMake modules not being found:

CMake Error at third_party/orc/CMakeLists.txt:116 (INCLUDE):
  INCLUDE could not find load file:

    CheckSourceCompiles

CMake Error at third_party/orc/CMakeLists.txt:117 (INCLUDE):
  INCLUDE could not find load file:

    ThirdpartyToolchain

This PR fixes the above.

@tobodner


Add Remote Desktop Manager Free Latest

After making all changes to the cask:

[x] brew cask audit --download {{cask_file}} is error-free.
[x] brew cask style --fix {{cask_file}} reports no offenses.
[x] The commit message includes the cask’s name and version.

Additionally, if adding a new cask:

[x] Named the cask according to the token reference.
[x] brew cask install {{cask_file}} worked successfully.
[x] brew cask uninstall {{cask_file}} worked successfully.
[x] Checked there are no open pull requests for the same cask.
[x] Checked the cask was not already refused in closed issues.
[x] Checked the cask is submitted to the correct repo.

Running script.sh...

>>> brew cask _audit_modified_casks f372172e74eaa13f06161f0c6db2381e22341e45...6f94e6c63140cae5426f6096a1f5dcd562cb9c98
==> 1 modified cask: remote-desktop-manager-free
==> Downloading http://cdn.devolutions.net/download/Mac/Devolutions.RemoteDesktopManager.Free.Mac.<IP_ADDRESS>.dmg
==> Verifying checksum for Cask remote-desktop-manager-free
audit for remote-desktop-manager-free: passed

>>> brew cask style Casks/remote-desktop-manager-free.rb
== Casks/remote-desktop-manager-free.rb ==
C: 19:  1: Layout/TrailingBlankLines: 1 trailing blank lines detected.

1 file inspected, 1 offense detected
Error: style check failed


Create: Search-TssMetadata

Endpoint: GET /metadata
Version: 10.9.000064
https://thycotic-ps.github.io/secretserver-apidoc/#get-/metadata

Pending bug fixes on API endpoint to complete this.

Parameters are very specific on how you can search:

Item and Type
FieldId (does not seem to work in my testing)

Bug card filed for the Field ID issue, will go ahead and release this command though in v0.48.0.
e25470a


chore: speed up CI workflows

What changes were proposed in this pull request?

Split unit test and integration test
Enable maven parallel build (-T1C)
Do not use matrix in deploy/kubernetes workflow
Delay some secondary workflows

Why are the changes needed?
#580
Make CI faster.
In case of failure, rerun the failed part only.
Does this PR introduce any user-facing change?
No.
How was this patch tested?
https://github.com/kaijchen/incubator-uniffle/actions/runs/4180474332

Codecov Report

Merging #602 (6605cda) into master (56145c2) will increase coverage by 1.47%.
The diff coverage is n/a.

@@             Coverage Diff              @@
##             master     #602      +/-   ##
============================================
+ Coverage     61.67%   63.15%   +1.47%
- Complexity     1668     1801     +133
============================================
  Files           201      200       -1
  Lines         11111    10416     -695
  Branches        922     1044     +122
============================================
- Hits           6853     6578     -275
+ Misses         3883     3494     -389
+ Partials        375      344      -31

Impacted Files
Coverage Δ

...tor/pkg/controller/sync/coordinator/coordinator.go

...y/kubernetes/operator/pkg/webhook/inspector/pod.go

...y/kubernetes/operator/pkg/webhook/inspector/rss.go

deploy/kubernetes/operator/pkg/utils/certs.go

...pkg/controller/sync/shuffleserver/shuffleserver.go

...rnetes/operator/pkg/webhook/inspector/inspector.go

deploy/kubernetes/operator/pkg/utils/util.go

...eploy/kubernetes/operator/pkg/utils/coordinator.go

deploy/kubernetes/operator/pkg/utils/config.go

deploy/kubernetes/operator/pkg/webhook/manager.go

... and 18 more

:mega: We’re building smart automated test selection to slash your CI/CD build times. Learn more

run integration tests run with unit test disabled?

UT is already excluded, some integration tests are too slow. We should improve the speed of them. And we can also split integration tests to multiple packages, to further break down and improve parallelism.

some common integration tests are run multiple times. is it possible to skip integration test of common and spark-common when running spark3 integration test?

I'm not sure, maybe some tests need and some tests don't.
Please check and split them into different packages.

Ah, I didn't see that coming since you don't specify -DskipIT..

Because integration tests are executed by the maven-surefire-plugin also.
maven-surefire-plugin is designed to run UT, and controlled by -DskipUT.
I tried to run integration tests by maven-failsafe-plugin in #598, but it was too slow.

Thanks @advancedxy for the review.


org: prepare release v0.1.0

https://github.com/octomation/maintainer/releases/tag/untagged-b3dd1d314e99b98d5cdf

good examples:

https://github.com/golang/tools/releases/tag/gopls/v0.8.4
https://github.com/gohugoio/hugo/releases/tag/v0.99.0
https://github.com/evanw/esbuild/releases/tag/v0.14.39


Multiple Subscriptions

Whilst it is possible to connect multiple AS Servers to the one gateway, they must all be in the same subscription as the gateway resource. Documentation should mention this
It would be even better if I could either create multiple gateway resources for the same on-prem gateway, or connect to a gateway resource in another subscription, but that's a product issue, not documentation.

Document Details
⚠ Do not edit this section. It is required for docs.microsoft.com ➟ GitHub issue linking.

ID: 2b6e437d-7325-8f97-7d23-27f82cb1113b
Version Independent ID: 02e16c34-93d2-fe96-c724-33b2b62f0393
Content: On-premises data gateway
Content Source: articles/analysis-services/analysis-services-gateway.md
Service: azure-analysis-services
GitHub Login: @Minewiskan
Microsoft Alias: owend

@marknettle Thanks for the feedback! I have assigned the issue to the content author to evaluate and update as appropriate.

#in-progress

@marknettle I added something in two places in the opening section. Thanks for your suggestion.
#please-close

Hey @marknettle We will now proceed to close this thread. If there are further questions regarding this matter, please reopen it and we will gladly continue the discussion.


Update regex in Service.anchor_id

Update regex in Service.anchor_id to account for the possibility of multiple bad characters

Coverage remained the same at 100.0% when pulling 691873c8b50f3e6b39e477e451306b595edf7c4c on ryankaiser:dev into 2f59a85e1776653a62a76b7cbb3e31e25d69725a on alphageek-xyz:master.


chore: add FUNDING.md

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

npm package (@latest dist-tag)
GitHub release

Your semantic-release bot :package::rocket:


Add RMS curvature to "Roughness Parameters" for line scans

This should be support for line scans within SurfaceTopography - or is there any issue on the backend that is unresolved?

Yes, do both directions


[Bug]: libunity.so stripping breaking games

All of the following criteria must be met

[ ] Full Latest.log file included. If no file exists then leave this unchecked and state so.

All of the following are optional to answer

[ ] Tried reinstalling the game.
[ ] Tried reinstalling LemonLoader.
[ ] Tried restarting device.

Describe the issue.
Replacing libunity.so with the one from the Unity deps repo can sometimes lead to stripping errors that break the game. Not replacing the file leads to constant errors.
Honestly, I have no idea how this part works and what I would need to do to solve it, so I wouldn't expect anything anytime soon.
Known Effected Games:

Diversion

Did you attach your log file?

[ ] Yes, I attached my log file to the text box above.
[ ] No, I could not find a log file at /storage/emulated/0/Android/data/<package name>/files/melonloader/etc/Latest.log

another game that does this is worldcraft, it looks like most unity 2020~ games have this issue

the same issue happens with Gods of gravity on the quest 2 on and before v51, these logs are a bit old becuase i've deleted my newer ones but its still the same issue.  No Generation Needed. [17:52:03.510] Return Value = 0 [17:52:03.510] [17:52:03.510] Starting Base Assembly... [17:52:03.510] [17:52:03.512] Loading Support Module... [17:52:03.563] Game Version: 0.0.0 [17:52:03.849] SceneManager.sceneLoaded override failed: System.ArgumentException: Base class Il2CppSystem.Object is value type and can't be inherited from [17:52:03.849]   at UnhollowerRuntimeLib.ClassInjector.RHelper (System.Type type, System.Boolean logSuccess) [0x000a8] in <1e40badca4c74d7daa6622acccdcb4a4>:0 [17:52:03.849]   at UnhollowerRuntimeLib.ClassInjector.RegisterTypeInIl2Cpp[T] (System.Boolean logSuccess) [0x00000] in <1e40badca4c74d7daa6622acccdcb4a4>:0 [17:52:03.849]   at UnhollowerRuntimeLib.DelegateSupport.ConvertDelegate[TIl2Cpp] (System.Delegate delegate) [0x0012c] in <1e40badca4c74d7daa6622acccdcb4a4>:0 [17:52:03.849]   at UnityEngine.Events.UnityAction2[T0,T1].op_Implicit (System.Action2[T1,T2] ) [0x00000] in <b7edf1ae3d2f4a7198e172f75817a1c7>:0 [17:52:03.849]   at MelonLoader.Support.Main.Initialize (MelonLoader.ISupportModule_From interface_from) [0x000e4] in <226d96984d284b0db320123678c0a453>:0 [17:52:03.852] SceneManager.sceneUnloaded override failed: System.ArgumentException: Base class Il2CppSystem.Object is value type and can't be inherited from [17:52:03.852]   at UnhollowerRuntimeLib.ClassInjector.RHelper (System.Type type, System.Boolean logSuccess) [0x000a8] in <1e40badca4c74d7daa6622acccdcb4a4>:0 [17:52:03.852]   at UnhollowerRuntimeLib.ClassInjector.RegisterTypeInIl2Cpp[T] (System.Boolean logSuccess) [0x00000] in <1e40badca4c74d7daa6622acccdcb4a4>:0 [17:52:03.852]   at UnhollowerRuntimeLib.DelegateSupport.ConvertDelegate[TIl2Cpp] (System.Delegate delegate) [0x0012c] in <1e40badca4c74d7daa6622acccdcb4a4>:0 [17:52:03.852]   at UnityEngine.Events.UnityAction1[T0].op_Implicit (System.Action1[T] ) [0x00000] in <b7edf1ae3d2f4a7198e172f75817a1c7>:0 [17:52:03.852]   at MelonLoader.Support.Main.Initialize (MelonLoader.ISupportModule_From interface_from) [0x00141] in <226d96984d284b0db320123678c0a453>:0 [17:52:03.909] Camera.onPostRender override failed: System.ArgumentException: Base class Il2CppSystem.Object is value type and can't be inherited from [17:52:03.909]   at UnhollowerRuntimeLib.ClassInjector.RHelper (System.Type type, System.Boolean logSuccess) [0x000a8] in <1e40badca4c74d7daa6622acccdcb4a4>:0 [17:52:03.909]   at UnhollowerRuntimeLib.ClassInjector.RegisterTypeInIl2Cpp[T] (System.Boolean logSuccess) [0x00000] in <1e40badca4c74d7daa6622acccdcb4a4>:0 [17:52:03.909]   at UnhollowerRuntimeLib.DelegateSupport.ConvertDelegate[TIl2Cpp] (System.Delegate delegate) [0x0012c] in <1e40badca4c74d7daa6622acccdcb4a4>:0 [17:52:03.909]   at UnityEngine.Camera+CameraCallback.op_Implicit (System.Action1[T] ) [0x00000] in :0
[17:52:03.909]   at MelonLoader.Support.Main.Initialize (MelonLoader.ISupportModule_From interface_from) [0x0019e] in <226d96984d284b0db320123678c0a453>:0
[17:52:03.915] System.Reflection.TargetInvocationException: Exception has been thrown by the target of an invocation. ---> System.ArgumentException: Base class UnityEngine.MonoBehaviour is value type and can't be inherited from
[17:52:03.915]   at UnhollowerRuntimeLib.ClassInjector.RHelper (System.Type type, System.Boolean logSuccess) [0x000a8] in <1e40badca4c74d7daa6622acccdcb4a4>:0
[17:52:03.915]   at UnhollowerRuntimeLib.ClassInjector.RegisterTypeInIl2Cpp[T] (System.Boolean logSuccess) [0x00000] in <1e40badca4c74d7daa6622acccdcb4a4>:0
[17:52:03.915]   at MelonLoader.Support.Main.Initialize (MelonLoader.ISupportModule_From interface_from) [0x001d0] in <226d96984d284b0db320123678c0a453>:0
[17:52:03.915]   at (wrapper managed-to-native) System.Reflection.RuntimeMethodInfo.InternalInvoke(System.Reflection.RuntimeMethodInfo,object,object[],System.Exception&)
[17:52:03.915]   at System.Reflection.RuntimeMethodInfo.Invoke (System.Object obj, System.Reflection.BindingFlags invokeAttr, System.Reflection.Binder binder, System.Object[] parameters, System.Globalization.CultureInfo culture) [0x0006a] in
[17:52:03.915] Return Value = 0
[17:52:03.915]`

this does work on versions of the game that were compilied with no stripping though


New Feature/Edit: User Badge - Increase or allow for size personalization

Make the size of the badge changable. It is too small at the moment.

For context, here's Dribbble's

I increased the size of the badges and added the "smallSize" Prop to adjust the size of the small badges as needed.


Screen Capture : phantomjs-2.0.0 does not  convert webpage to png/jpg  correctly

I am using phantomjs-2.0.0-windows to convert wepage file to jpg file. For some file it generate image with black color background. I am using following cmd
phantomjs.exe rasterize.js "index.html" output.jpg 1920px.
I have output File and view of input file. Pleas help me.

@jagadale1 you can change the background by evaluating the following code before you call render:
page.evaluate(function() {
    document.body.bgColor = 'white';
});

Check out our FAQ

thank you very much for reply. I have add this code but got following Issue
TypeError: null is not an object (evaluating 'document.body.bgColor =  'white'')
phantomjs://webpage.evaluate():2
phantomjs://webpage.evaluate():3

try document.body.style.backgroundColor = 'white'

I have mention issue details  on
http://stackoverflow.com/questions/29563612/phantomjs-2-0-0-does-not-convert-webpage-to-png-jpg-correctly

Thank you for the bug report.  Is there any chance you can provide us with a self-contained, minimal HTML page that shows the issue?  Also, note that PhantomJS does not and probably never will support Flash objects.

Same as this issue, for which I posted a workaround:
https://github.com/ariya/phantomjs/issues/12724#issuecomment-139381271

Yeah, duplicate of #12724.  Thanks for finding that, @ryanohoro.


Push crashes app when using WKWebViewEngine

Hi, i was upgrading the plugins for our app and came across a conflict between WKWebViewEngine and PushNotification. When i get a push using both plugins, the app crashes with an illegal memory access every time. If i comment our the WK plugin the notifications come through fine. I'm not sure in which plugin there is a problem, so I'm posting this for both plugins. For now, i have stopped using the WK web engine to get the app running again, but that has some side effects.

Hi, can you please link to the other issue here, as well as provice the stacktrace of the error you're seeing?

Hi there, actually found no way to submit issues on the WK plugin, but it's this one https://github.com/apache/cordova-plugins.git#master:wkwebview-engine-localhost
So this is the only issue created so far. The stack trace for our app called Alarm is:
2016-04-18 11:48:39.389 Alarm[1693:1508133] active
2016-04-18 11:49:20.889 Alarm[1693:1508133] didReceiveNotification
2016-04-18 11:49:20.890 Alarm[1693:1508133] Notification received
2016-04-18 11:49:20.890 Alarm[1693:1508133] -[WKWebView stringByEvaluatingJavaScriptFromString:]: unrecognized selector sent to instance 0x144571200
2016-04-18 11:49:20.892 Alarm[1693:1508133] *** Terminating app due to uncaught exception 'NSInvalidArgumentException', reason: '-[WKWebView stringByEvaluatingJavaScriptFromString:]: unrecognized selector sent to instance 0x144571200'
*** First throw call stack:
(0x182146e38 0x1817abf80 0x18214dccc 0x18214ac74 0x182048d1c 0x182b1bffc 0x1820fd124 0x1820fcb38 0x1820fa8b8 0x182024d10 0x18390c088 0x1872f9f70 0x1000d1514 0x181bc28b8)
libc++abi.dylib: terminating with uncaught exception of type NSException
(lldb)

Can you try using the latest version of this plugin from master (instead of a release)? I've fixed this recently.

Hmm, the master branch seems not to be working, no config.xml - see below. Anyway, it seems the native iOS interface is woking much better now with the ios9 support in cordova, so i'm thinking i will try to avoid the WK plugin. Thanks for now.
cordova plugin add https://github.com/apache/cordova-plugins.git
Fetching plugin "https://github.com/apache/cordova-plugins.git" via git clone
Repository "https://github.com/apache/cordova-plugins.git" checked out to git ref "master".
Error: Failed to fetch plugin https://github.com/apache/cordova-plugins.git via git.
Either there is a connection problems, or plugin spec is incorrect:
Cannot find plugin.xml for plugin '1460976418492'. Please try adding it again.

I'll try to work without the WK plugin

I meant the master branch of THIS plugin - PushNotification. That one should work fine with WKWebView.

Yes, well i tried that all along, as the NPM version is quite old. Anyway, i was using the lab version of WK with an embedded webserver, so that might also have been the reason.


teamspeak-server package & module maintenance

Things done

[ ] Tested using sandboxing
(nix.useSandbox on NixOS,
or option build-use-sandbox in nix.conf
on non-NixOS)
Built on platform(s)

[x] NixOS
[ ] OS X
[ ] Linux

[ ] Tested compilation of all pkgs that depend on this change using nix-shell -p nox --run "nox-review wip"
[x] Tested execution of all binary files (usually in ./result/bin/)
[x] Fits CONTRIBUTING.md.

First commit updates the teamspeak-server package and makes the tsdnsserver binary available in its output. I might later submit a NixOS module for TSDNS, as it looks like I'd have to use it to avoid a long-standing race condition in the client's DNS SRV resolution algorithm.
Second commit is some housekeeping on the NixOS module, should be essentially transparent to any users.

LGTM, added a few notes you may want to consider if yoǘ're doing cleanup anyway.

@joachifm Figured I might as well while I'm at it, so I've amended the commit with that further cleanup :).

Thank you


Fix condition in Kotlin project

The condition for the configuration and device descriptors in the Kotlin project was reversed (see Java project).

I signed it 😆


Avoid overflow problem in math.is_non_decreasing

The API tf.math.is_non_decreasing returns True with unsigned input dtypes even though the input have decreasing values. This is because of the overflow that happens at this line of code.
https://github.com/tensorflow/tensorflow/blob/4dacf3f368eb7965e9b5c3bbdd5193986081c3b2/tensorflow/python/ops/check_ops.py#L1947
Hence proposing to cast the input to signed dtype in case if it is unsigned.This will potentially avoid overflow error.
Fixes #62072.

I fix the bug in another PR #62112

Closing the PR as it is fixed in another PR mentioned here.


Updating to Terraform SDK 0.12.16

Lint offences, due to not setting a specific golangci-lint version.
Newer versions turn on new linters that we don't want.
We can ignore this and release a new version.


Update Setup Instructions

Include more detailed instructions for maven to include failsafe plugin, and testng setup

Wrote a blog post which details the setup for Maven and TestNG. Do we want to move some of those instructions to the README? @msaperst

once it's published, and added to the wiki, i think that solves this
[image: Max Saperstone]
[image: Website] https://www.coveros.com/ [image: LinkedIn]
https://www.linkedin.com/in/maxsaperstone [image: Twitter]
https://twitter.com/Automate_Tests [image: Email]
<EMAIL_ADDRESS>*Mobile: *(571) 245-3351 <5712453351>
On Tue, May 22, 2018 at 9:08 AM, HammidFunsho<EMAIL_ADDRESS>wrote:

Wrote a blog post which details the setup for Maven and TestNG. Do we want
to move some of those instructions to the README? @msaperst
https://github.com/msaperst
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
https://github.com/Coveros/selenified/issues/57#issuecomment-390983341,
or mute the thread
https://github.com/notifications/unsubscribe-auth/ACkUrZv_KC_X8qr2rGY1eJwRIpheQEIJks5t1A3YgaJpZM4Q8Prk
.

Blog post has been published, moving this to closed
https://www.coveros.com/setting-selenified-using-maven/


[$500] Android - An error message appears after coming back online

If you haven’t already, check out our contributing guidelines for onboarding and email<EMAIL_ADDRESS>to request to join our Slack channel!

**Version Number:**<IP_ADDRESS>
**Reproducible in staging?:**Y
**Reproducible in production?:**Y
If this was caught during regression testing, add the test name, ID and link from TestRail:
Email or phone of affected tester (no customers):
Logs: https://stackoverflow.com/c/expensify/questions/4856
Expensify/Expensify Issue URL:
**Issue reported by:**Applause - Internal Team
Slack conversation:
Action Performed:

Log in with any account
Turn off internet connection
Click on the avatar - click on "Profile" in the panel/modal that appears.
Click on "Contact method" and then click on the green pill button at the bottom that says "New contact method".
Enter a valid email e.g. another test account you have access to, and then click on the green pill button at the bottom that says "Add". You'll be redirected to the previous screen.
You can add a contact method while offline, but you won't be able to click it (step 11) to navigate to the screen with the green dot and light-greyish green text.
Turn ON internet connection

Expected Result:
NO error message appears after coming back online
Actual Result:
An error message appears after coming back online
Workaround:
Unknown
Platforms:

Which of our officially supported platforms is this issue occurring on?

[ ] Android: Native
[ ] Android: mWeb Chrome
[ ] iOS: Native
[ ] iOS: mWeb Safari
[ ] MacOS: Chrome / Safari
[ ] MacOS: Desktop

Screenshots/Videos
Add any screenshot/video evidence

https://github.com/Expensify/App/assets/78819774/235c2c11-141e-4ada-be0d-4484b84b2a9c
View all open jobs on GitHub
Upwork Automation - Do Not Edit

Upwork Job URL: https://www.upwork.com/jobs/~018e3d3034acb2c160
Upwork Job ID:<PHONE_NUMBER>416238080
Last Price Increase: 2023-11-04

I think this is not issue. That error message is shown because you have account already.
If you add new email, then that error message will not be shown.

That's helpful perspective, thank you. Will close this out then!


Add

Description: Add "streaming" parameter to ChatFireworks client.
Dependencies: none.

Functionality is similar to that in ChatOpenAI and several other chat models.  If "streaming=True" is set, then calls to _generate are forwarded to _stream, and wrapped with _generate_from_stream.
Integration tests added and pass.

believe this was resolved in #17694


How to use events

I've noticed, that many Widgets have an events parameter.
I'm assuming that it's a mask, that allows you to filter the events that the view will or will not ignore.
But now I don't know how to implement that.
Does it have something to do with the connect macro?

Yes it's a mask of the values here https://gtk-rs.org/docs/gdk/struct.EventMask.html to enable emission/handling of those windowing system events.
You get notified about those events via the connect_XXX_event() signals.

Closing then!

Ok, but how would I go about adding a BUTTON_RELEASED or even just clicked on a Label?
Is that even possible, or would a workaround have to be used?

You have to create a subclass of gtk::Widget and make use of the button_press_event() virtual method, for example. There are no signals for all events unfortunately.


How does setTextAlignment work?

Describe your problem here.
I am making my own HUD and I need infos to get aligned with the center of the screen, I managed to set the text in the middle but aligning the text with the middle of the screen doesn't work, it always aligns on the left
Here is what I tried: 	setTextAlignment("message", 'center')
It really doesn't work and I don't know why, if any of you have got the solution?
Are you modding a build from source or with Lua?
Lua
What is your build target?
Windows x64
Did you edit anything in this build? If so, mention or summarize your changes.
I am using my version of Psych Engine that I translated in French

You have to set a width for the text alignment to work


Create directory for VG_28xx Documents, add Python scripts

The viewmaster/documents folder should have a VG_28xx subfolder, and documents should be selected to go into that folder.

When this folder is created, it might also include Python scripts as mentioned at https://github.com/SETI/rms-user-queries/issues/1

This task is not currently assigned, but interested parties include @markshowalter, @mace-space, and @mseritan.

This repo is about software development of Viewmaster as an application.
This, this is the wrong place for this action item, which is about Viewmaster content.
This action item is now rms-data-projects #76.


[BACKLOG-31152] Make shim driver dir parameter visible to other

projects.

:white_check_mark: Build finished in 15m 17s
Build command:
mvn clean verify -B -e -Daudit -amd -pl core

:ok_hand: All tests passed!
Tests run: 4741, Failures: 0, Skipped: 7    Test Results

:information_source:  This is an automatic message


Whilst installing on MacOS, I noticed that the install commands for the pecl dependencies use sudo.

The Homebrew project recommend against using sudo for build tools, and since pecl was installed by Homebrew, this fits into the same category.
See https://github.com/Homebrew/brew/blob/master/docs/FAQ.md#why-does-homebrew-say-sudo-is-bad for further info.

This seems like a small (but important) contribution, so no Contribution License Agreement is required at this point. We will now review your pull request.
Thanks,
Microsoft Pull Request Bot

Coverage remained the same at 75.365% when pulling ff64ed1a16d651d1a813219fb8ad4eba64f86c59 on andrewnicols:macos_pecl into 868baaa2e1d3239e35502e5fe401f34ac6e93b1e on Microsoft:master.

@david-puglielli Could you review this?

@andrewnicols thanks for your contribution. Could you send your PR to dev branch? Master branch is updated with each release, and active dev work is done on dev branch

Closing this, it is resend to dev branch in #502


ExecuteSqlCommand not returning an int

I would like to have the ExecuteSqlCommand() method return an int indicating the numbers of rows affected by the query. This is simular to the ADO.NET ExecuteNonQuery() method of the IDbCommand. It currently returns a void.

This is fixed in RC2: https://github.com/aspnet/EntityFramework/issues/3598


Enhancement request for Support anomaly-detection rules for Infra/DB/etc....

It will be great to be able to automate also anomaly detection rules for other items like Infra, DB, applications, etc....

Hi @JACONDE, thanks for creating this request. As Dynatrace Monitoring as Code is an open source project, we would be very happy to have external contributors, and I would like to encourage you to implement this. Adding new API support is as simple as adding it's definition to /pkg/api/api.go and defining additional test for it in /cmd/monaco/test-resources/integration-all-configs/project. We would be very happy to get your PR.

Hi @JACONDE. From version 1.8.0 upwards nearly all anomaly detection metric APIs - with the exception of Process Groups - are supported by monaco.
For details are https://dynatrace-oss.github.io/dynatrace-monitoring-as-code/configuration/configTypes_tokenPermissions


updated IMD.c and IMD.h

TODO:
tests
getting data from CANN

Please write comments like this
/**
 * @brief Populates can message based on input data
 *
 * @param canMsg The structure that will be populated.
 * @param fn The file name
 * @return Weather or not the data was parsed
 */
int parseCanData(CanMessage* canMsg, const char* fn);


Generalize interface between tool and rust-based checks, and add two new checks that read the build logs.

Cleaned up version of #56

I have merged the first four commits for now.

Other than these small nits, it looks good to merge.

Just fixed some formatting to minimize diff and reduce black complaining.
Thanks for the great work.


Enabled hackernews

Latest version of hackernews works with servant 0.10

But the bounds still want only servant 0.9.
servant-0.10 (Haskell Servant<EMAIL_ADDRESS>is out of bounds for:

[ ] hackernews-<IP_ADDRESS> (==0.9.*). David Johnson<EMAIL_ADDRESS>@dmjio. @dmjio. Used by: library

servant-client-0.10 (Haskell Servant<EMAIL_ADDRESS>is out of bounds for:

[ ] hackernews-<IP_ADDRESS> (==0.9.*). David Johnson<EMAIL_ADDRESS>@dmjio. @dmjio. Used by: library

Sorry, I was too fast. Now the new version <IP_ADDRESS> is on hackage.

Thanks

Thanks for the info, bad timing ... I'll test with 0.11 ...


Introduce a common parameter pattern for requesting undecorated / not-wrapped-in-helper-types output objects

Follow-up from #7715; related to #7713, #7537, and #5797.
A pattern is emerging for asking cmdlets to output "bare" objects, which means output objects that:

are not decorated with NoteProperty members, the way lines read from a file with Get-Content are, for instance.

are not wrapped in instances of a helper type, the way that Select-String or Compare-Object output is, for instance.

There are three, not mutually exclusive motivations for requesting such "bare" output:

Improved performance (see #7537)
Getting output objects of the desired type directly (see #7713)
Getting "untainted" output objects, without NoteProperty members that subsequent processing may act on in an undesired fashion (see #5797)

There are probably more existing cmdlets that could benefit from the pattern, as would future ones.
In line with PowerShell's commitment to consistency, a common (shared) parameter name should be used in all these cases.
-Bare makes the most sense to me.
To avoid confusion with -Raw as implemented in Get-Content - which simply reads the whole file while still decorating the resulting string - #7715 proposed deprecating -Raw in favor of a more descriptive name such as -Whole. (Note that by deprecating I don't mean to imply removing support for -Raw, just documenting -Whole first and mentioning -Raw as a legacy name).
Environment data
Written as of:
PowerShell Core 6.1.0

@mklement0 Could you please list all affected cmdlets (from the repo) in the description?

@iSazonov: Do you mean additional cmdlets that could benefit from this pattern?

Yes, it will help PowerShell Committee to review and approve if they see the full list.

@BrucePay: #7715 was focused on paving the way for the pattern proposed here - and the feedback suggested that the larger pattern and benefit perhaps wasn't fully considered in the decision.
Hence, this issue was opened, which focuses on the bigger picture.

Adding a new, largely indistinguishable parameter

The pattern proposed is here is clearly distinguishable in intent from what the - unfortunately named - -Raw currently does in the context of Get-Content, as described.
With the proposed deprecation (without removal) of -Raw, the distinction problem goes away (not for legacy code, but going forward).

while providing no tangible benefit.

The benefit is the pattern described in the initial post, for which we have concrete uses already.
I'm sure there are more, and, once the pattern is established, future cmdlets can take advantage too.

And, just to give a dying horse another wack:

the existing pattern -Raw as the parameter to indicate that an object should be returned unadorned.

Get-Content's -Raw doesn't return anything unadorned (undecorated), it just changes the output partitioning and still adorns.
In a very loose sense you can consider that reading the input "raw", but this loose sense:

gets in the way of a meaningful, reusable pattern, given that  we now want Get-Content to output truly undecorated lines as well (#7537; i.e., without changing the output partitioning) - and I think retaining the existing -Raw while introducing something -RawLines isn't a great solution in and of itself, let alone impeding the establishment of a well-defined general pattern.

is in itself poorly descriptive of the very specific action performed by Get-Content -Raw (hence the suggested alias -Whole).

OK, one more for the road:
Note: The premise is that there is value in establishing a general pattern using a shared parameter name and in applying it to #7713 and perhaps #5797, among others.

What exactly that [-Rare] means is up to the cmdlet author.

It is an option to live with the loose definition of -Raw, but:

we'd then have to live with the -Raw -RawLines confusion within Get-Content, and the general confusion over the distinctly different Get-Content -Raw behavior.

-Raw, especially in the context of file I/O has a distinct connotation of raw bytes, which is inapplicable.

By contrast:

-Bare better connotes "lack of decoration".

With Get-Content's -Raw deprecated, the specific function it performs can be given a more descriptive name, such as -Whole (and -Whole in itself could become a standardized name for read-everything-at-once, but at this time I'm unaware of other cmdlets that could use it).

@mklement0

and the feedback suggested that the larger pattern and benefit perhaps wasn't fully considered in the decision.

It was. Sorry if that was unclear.

Thanks, @BrucePay, but further clarification is needed:
To quote @SteveL-MSFT's summary:

The current use of -Raw is acceptable and therefore no reason to make the proposed change. We would support a proposal to add a type parameter for streaming line-by-line w/o annotations although we did not come to agreement on the naming. -Bare is not different enough from -Raw to communicate functional differences.

This tells me that the decision was entirely focused on rejecting the proposal to deprecate -Raw as currently used with Get-Content, and what to name the new parameter that fits the pattern described in this issue in the context of Get-Content.
Aside from my obvious preference for this deprecation (without removal - I'll stop saying that now, consider it implied; "deemphasizing" is just too clunky), this proposal's gist is to introduce a general parameter pattern with a shared name - while my naming preference is clearly -Bare, that is just one suggestion.
Committing to this pattern means the newly agreed-upon name should be used in  #7713, #7537, and perhaps #5797, as well as going forward.
By your own reasoning,

"Raw" in this context means, "undecorated", "not cooked", etc.
In PowerShell we try to choose a single term and apply it consistently so that, even if it does not seem intuitive to a person, they only have to learn it once. Sometimes we choose a sub-optimal term but we live with it because you should only have to learn something once.
[...] use the existing pattern -Raw as the parameter to indicate that an object should be returned unadorned.

In other words, this issue:

just asks more formally for defining and establishing the use of a -Raw-like parameter pattern.

and to you -Raw is an acceptable name for this general pattern, because what Get-Content -Raw currently does fits in as well, correct?

If so, and everyone's happy with this -Raw deal (if you will), then that leaves just one, incidental question:
What to name the new streaming line-by-line w/o annotations parameter for Get-Content, given that -Raw is already taken there.
Given the -Raw deal, the name -RawLines, which you yourself have pondered, sounds just fine to me.

Y'know, thinking on that a bit, @mklement0, although it would be a more significant change... I would consider simply replacing the -Raw parameter with your proposed -RawLines parameter.
There's no need for an extra parameter; as has been noted in the associated issues at least once, -ReadCount can already be used to read the file in one go. Additionally, use of that is backwards compatible.
So while old code would need to be updated to work properly with the new version (thus a breaking change, I suppose), new code would be relatively backwards compatible, if the read-all-at-once was all that it was being used for. And if the undecorated output was required, it would be restricted to the newer versions.

@vexx32:
I think removing -Raw would be too drastic a change (and with my proposal it wouldn't go away, we'd just tell people to use its new alias, -Whole, from now on).
Actually, what -Raw does (read the entire file as a single string) can not be done with -ReadCount: the latter is a chunking mechanism that is still array-based; -ReadCount 0 reads all lines at once, but puts them into an array.
There's no functional problem with naming the new parameter for reading line by line -RawLines, but undecorated, -RawLines, but it will cause confusion, because what "raw" means in -Raw vs. -RawLines is then quite distinct.

As an aside:
Somewhat ironically, the only parameter that ever deserved to be called -Raw - the undocumented Format-Hex -Raw, which asked for a raw byte representation in certain contexts - is now obsolete.
With my proposal, there would be no more (non-obsolete, non-deprecated) -Raw parameter - for now.
That said, there's no reason not to revive it where appropriate, given that,  despite -Raw and -Bare have substantial semantic overlap, the following distinction can be useful:

-Raw ... ask for uninterpreted data (typically, raw bytes)

-Bare ... ask for undecorated data (without NoteProperties and, in a wider sense, not wrapped in a helper type that provides metadata)

There, I feel better now, although you could ask: hasn't that poor equine suffered enough?

If this proposal or some variant of it were to go ahead then I would suggest this as a general pattern:
[-OutputMode {Raw | RawLines | ...}]
It would make it clear at a glance to the casual user that there are options to affect the output of the cmdlet and that there is a choice between a set of distinct modes.
If I came across a future Get-Content cmdlet that had -Bare or -RawLines in the parameters then I would have to read further on into the documentation before I realised they merely configured the output. Also, I don't think it would be obvious that they were mutually exclusive until stated.

@dgc:
While -Raw and -Bare could be separate switches with distinct meanings, they'd be mutually exclusive.
Note that there's no need to distinguish between Raw and RawLines, because the aspect of partitioning the output has nothing to do with the semantics of the -Bare switch proposed here (undecorated/non-wrapped objects) - and is worth keeping separate.
The partitioning aspect, which is not common, is covered in Get-Content as follows:

The unfortunately named -Raw (get the whole file, as a single string).  As stated, if Get-Content's -Raw were aliased to, say, -Whole, any confusion would go away.

-ReadCount (get groups of lines as arrays) has more of a potential to be generically useful under that name (or at least a different one), namely for partitioning the stream of input objects into arrays of fixed size - see #8270

I went exploring, and maybe irrelevant but for the record, found a few other more things which, if you squint a bit, fit this issue's described pattern of asking a cmdlet to return a more basic output, or switch to another commonly desired output, or do less work for improved performance. Not all related to "undecorated" output, exactly:

Get-Date returns a [DateTime], and -Format 'yyyy-mm-dd' returns [string].
Test-Connection returns Win32_PingStatus, and -Quiet returns [bool].
ConvertTo-Xml returns [XmlDocument], and -As String makes it return a [string].
Get-Variable returns [PSVariable] but with -ValueOnly it returns just the variable value.
Get-CimInstance has -KeyOnly and -Shallow to ask it to get less information (KeyOnly is documented as "[returns key parameters only ..] reduces the amount of data transferred over the network." - presumably that's a performance reason).
Get-ComputerInfo -Property BiosCaption asks it to return less information, just like feeding it through | select BiosCaption would .. but apparently still makes you wait as long as it takes to get all the information, so it doesn't seem to be a performance reason. Help says it "Specifies, as a string array, the computer properties in which this cmdlet displays." as if it's intended to be an output display option for a user.
Measure-Command returns [GenericMeasureInfo] but with -Lines it switches to [TextMeasureInfo] (to try and behave like the wc utility?).

and existing in Windows PowerShell, but not PS 6.1:

Get-Clipboard has a -Raw parameter which ignores newlines.
Get-EventLog has -AsBaseObject which "Indicates that this cmdlet returns a standard System.Diagnostics.EventLogEntry object for each event. Without this parameter, Get-EventLog returns an extended PSObject object with additional EventLogName, Source, and InstanceId properties."

Test-Connection returns Win32_PingStatus, and -Quiet returns [bool].

Currently we don't use Win32_PingStatus - please update your message.

@iSazonov updated.

Thanks, @HumanEquivalentUnit.
The  patterns I see in your examples is to ask for an alternative output data type or only part of the usual output objects.
With respect to an alternative data type, it is what the -As<type> switches in some of the examples do.
You could argue that -ValueOnly should therefore be -AsValue, and -Quiet (which isn't really quiet, only quieter) should be -AsBoolean, and, though a less clear-cut case, perhaps -KeyOnly should be -AsKey.
Similarly, Get-ChildItem's -Name could be -AsName, and it is an example of how the reasonable expectation that asking for something simpler or for less also results in better performance doesn't always hold: see #9119 - just like you found with Get-ComputerInfo -Property in #9234.
Get-Clipboard's  use of -Raw is just as unfortunate as Get-Content's - I've previously proposed
-Whole in  #7715, but, based on the above, -AsString could work too (though, while more consistent, it is a tad more obscure in this specific case).
Get-EventLog's -AsBaseObject is a good example of what this issue calls for: requesting the usual output object, but undecorated (without tacked-on ETS properties); thus, it should be -Raw (though I wonder if I've expressed my preference for -Bare before).
Measure-Object's  -Line, -Word and -Character switches are interesting, because they only not only result in a different type of output object, but also change the input processing to count inside of the input objects, i.e., the lines, words, and characters inside multi-line strings. TextMeasureInfo is derived from the abstract MeasureInfo class,  just like the default GenericMeasureInfo output type (as such it inherits the .Property property, even though it serves no purpose there - see #9237).


Add cte_name option in the test macro

Summary (feature request)
Add the option cte_name to the test macro which will return the results of the given CTE from the model's SQL, rather than the final results of the model
This is implemented by creating a new macro, select_from_cte, which is explicitly called in the build_model_complete_sql macro (all inside the sql_builders.sql file)
Why?
Most dbt models will have some "logical" CTEs that do some work before the final select statement
Without extracting these CTEs into their own models, we can't write a unit test to validate that the CTE itself is doing what we intend it to do -- this change would add this feature
Requirements (of the user)
The implementation assumes that the users follow the dbt-labs style guide and end their model with the select * from final line (the implementation just replaces the select * from final with select * from {{ cte_name }})
To use the cte_name argument, the user needs to provide it in the options dictionary in the test call:
{% call dbt_unit_testing.test(
    "dummy_model",
    "A CTE unit test",
    {"cte_name": "some_cte_in_the_model"}
) %}
    ...
{% endcall %}

Some Error Handling
If the select * from final text can't be found, then the following compile error is raised:
Compilation Error in test  <test name and path>
   Unable to find `select * from final` in the model SQL

The pattern matching is quite forgiving -- Python's re module is used to do a case-insensitive and space-insensitive replacement
If the CTE name can't be found, the usual database error will be thrown instead
Worked Example
Consider the following dummy model, dummy_model:
WITH

SRC_MODEL AS (
    SELECT *
    FROM {{ ref("some_model") }}
),

CTE_1 AS (
    SELECT 1 AS ID
),
CTE_2 AS (
    SELECT 2 AS ID
),

FINAL AS (
    SELECT SUM(ID) AS ID
    FROM (
              SELECT ID FROM CTE_1
        UNION SELECT ID FROM CTE_2
        UNION SELECT ID FROM SRC_MODEL
    )
)

SELECT * FROM FINAL

With this model in mind, we can put together tests that can mock the results of the different CTEs:

The tests above test the output (the FINAL CTE) like normal when no cte_name is provided, plus each of the other 'building-block' CTEs when the cte_name is provided
In practice, I'd avoid the tests on the "import" CTEs and would give the tests better names that reference the model that they're testing
Tests
I haven't added any since I'm not really too sure where to fit them in -- if you can point me in the right direction, I can throw some in
Changes
For clarity, I've only changed 2 files:

macros/sql_builders.sql
README.md

For the README.md, I only edited the Available Options table but I'm seeing a massive git diff, and I don't know why

Hi @Bilbottom,
Thank you for your contribution and well-articulated pull request.
We appreciate the effort you put into basing your approach on the dbt labs style guide, although we have encountered several projects that have their own style guides. We aim to keep the framework as flexible as possible to accommodate different styling preferences.
Furthermore, we would like to highlight that our framework supports ephemeral models, which can be useful when dealing with complex common table expressions (CTEs) and when testing different parts of the final model. This feature enhances the testability and simplifies the complexity of the models.
Thank you again for your input and collaboration. However, we have decided not to proceed with your suggestion as our existing features, such as ephemeral models, can effectively address the issues you raised.

Hi @Bilbottom,
Thank you for your contribution and well-articulated pull request.
We appreciate the effort you put into basing your approach on the dbt labs style guide, although we have encountered several projects that have their own style guides. We aim to keep the framework as flexible as possible to accommodate different styling preferences.
Furthermore, we would like to highlight that our framework supports ephemeral models, which can be useful when dealing with complex common table expressions (CTEs) and when testing different parts of the final model. This feature enhances the testability and simplifies the complexity of the models.
Thank you again for your input and collaboration. However, we have decided not to proceed with your suggestion as our existing features, such as ephemeral models, can effectively address the issues you raised.

Thanks for coming back so quickly, @cdiniz! 😄
I understand your reasons for the rejection
The use of ephemeral models is actually what I'm trying to avoid by introducing this feature -- I have friends that work with projects that have used that approach (making all logical CTEs ephemeral), and their experience is that it unhelpfully inflates the number of models in the projects and makes the projects harder to understand
I totally agree with the point about different style guides though, and I was expecting to get this response 😋 I'll have a think about alternative implementations
If I can find an approach that doesn't require the use of the select * from final line, would you re-consider this PR? (I won't try if the answer is "no" 😝)

Thank you all for your feedback. @gnilrets, I agree with your point that private methods are implementation details and should not be tested directly. As you mentioned, we should focus on testing the public interface and its behaviour, and the effects of private 'methods' on the interface.
However, we are open to considering different perspectives and feedback. If you have any further thoughts or suggestions on this matter, please let us know. Thank you again for your input.

hello, my team are converting our jobs over from DBT to python - we love this library because of the ability to transfer our unit tests.  However, within python we get much more autonomy to take decisions over the granularity of our testing - soemtimes we want to be able to thoroughly interrogate individual functions (at the expense of time to refactor if implementation changes).
it's my belief that the engineer should be empowered to take that call, rather than the language enforcing it.  it would be strange for a typical language to prevent people from testing individual functions if they choose.  If we apply that here, i would be highly supportive of having a mechanism to also test our individual CTEs so long as it does not break backwards compatibility.

I am inclined to agree with @darkdreamingdan
If this new feature doesn't break backwards compatibility, tests that don't use this flag, or models that aren't using the dbt-labs style guide, is it really such a problem for the far greater testability and flexibility the feature can bring? You give engineers far more power to test each step of their models at the cost of ~30 characters per model. And in some sense it is less restrictive - currently a logic block has to be an ephemeral model of it's own to be tested, while this feature would give developers more choice in how they want to build their models, without sacrificing testability
And personally, I don't see that having a (very small) style convention being a requirement for using a certain feature is that restrictive. Certainly to my mind it's no less restrictive than for example pytest requiring files and functions to be named in certain ways?

Can we get this merged? The complexity of the typical model means the unit of testing is massive. It feels like the equivalent of being able to test an entire python module (model) vs each individual method (CTE). It makes writing test cases more complicated, and resolving issues.


Route Testing Example

Added an example that lets you test how a <Route>'s props match against a URL
Edit: Updated gif for updated example

Cool! I'd add some descriptive text at the top to explain what's going on with this. It might be a little opaque as to what's going on. Also, linking back to this in other parts of the docs would be useful.
Does the URL bar update as you type, or only after an Enter/blur?

If you're typing in the URL, it only updates after you hit Enter. It would be pretty easy to add a text input to continuously push new locations.
I was mostly tired of testing things out in the live demo that path-to-regexp links to, which is non-configurable and seems to be glitchy half the time I use it.

This is a cool example, but feels kinda different from most of the others. I think the difference is that the others are focused on real use cases, but this one is a route path tester. I'd rather not have an example like that.

That's fine. As I mentioned above, I had just been tired of messing with the one linked to in the path-to-regexp repo, which didn't even seem to always work. The examples section was the only place that made sense to stick it on the site, but I can just host it on a github.io page.

Barebones, but it works.

It would be cool if this was inline with <Route>'s documentation.


KubernetesLocalProcessConfig.yaml won't work

Describe the bug
KubernetesLocalProcessConfig.yaml won't work. The env in this file is not really applied to the program.
Mention the platform you are using
vscode, macos.
To Reproduce
Steps to reproduce the behavior:

create KubernetesLocalProcessConfig.yaml in project root.
Add

version: 0.1
env:
  - name: MONGODB_CONNECTION_STRING
    value: mongodb://<IP_ADDRESS>:27017

Launch debug

Expected behavior
The MONGODB_CONNECTION_STRING env var replace to "mongodb://<IP_ADDRESS>:27017", instead of env value in the k8s' pod.
Screenshots
Desktop (please complete the following information):

OS: Macos
Browser chrome
Version: June 2023 (version 1.80)

Additional context
task.json:
{
	"version": "2.0.0",
	"tasks": [
		{
			"label": "bridge-to-kubernetes.resource",
			"type": "bridge-to-kubernetes.resource",
			"resource": "aslan",
			"resourceType": "service",
			"ports": [
				25000
			],
			"targetCluster": "cls-0xb0d3j1",
			"targetNamespace": "zadig-ee-env-dev1",
			"useKubernetesServiceEnvironmentVariables": false,
		}
	]
}

lanuch.json:
{
    "configurations": [
        {
            "name": "Launch Aslan with Kubernetes",
            "type": "go",
            "request": "launch",
            "mode": "debug",
            "program": "${workspaceFolder}/cmd/aslan/main.go",
            "preLaunchTask": "bridge-to-kubernetes.resource",
        },
        {
            "name": "Launch Aslan",
            "type": "go",
            "request": "launch",
            "mode": "debug",
            "program": "${workspaceFolder}/cmd/aslan/main.go"
        }
    ]
}

@PetrusZ Thanks for raising this issue. Can you share the logs from output window --> Bridge to Kubernetes ? There are more documentation here which can be referred - https://learn.microsoft.com/en-us/visualstudio/bridge/configure-bridge-to-kubernetes#add-a-service-dependency.

Hi @hsubramanianaks , sorry for the late relply, alway busy recently.
This issue can't reproduce, maybe it's because I didn't disconnect current session after changed the KubernetesLocalProcessConfig.yaml .
But I have another issue now, I have an env variable in my pod, MYSQL_HOST=<IP_ADDRESS>:3306, and bridge-to-kubernetes forward the mysql pod address to my local machine, like Service 'kr-mysql' is available on <IP_ADDRESS>:55066. How can I override this MYSQL_HOST environment variable to the kr-mysql service's address <IP_ADDRESS>:55066?
I tried to use the KubernetesLocalProcessConfig.yaml file, but seems this file can only use service ip address as varaible. I also tried to use environment variables, but there is no variable only combines the ip and port address.
Can you provide some help? Thank you!

@PetrusZ Apologies for late response. Totally missed this, are you still facing this issue or did you find a workaround for this ? If so please share it with us.

Nop, I didn't find a workaround.


Add custom-cards/spotify-card

Conforms to the guidelines it has both the file in /dist as well as a GH release.

Anything under the custom-cards org does not need to be included, they are there by default 👌

Aha!


ISPN-10517 fixing asciidoc errors with broken include statements

https://issues.jboss.org/browse/ISPN-10517

Merged, thanks


[pulsar-client-tools] Remove redundant command usage when authentication exception

Motivation
It is redundant to print command usage when auth failed throwing UnsupportedAuthenticationException since the script usage may be correct.

run java8 tests


Event convolution

I have no idea what I'm doing :(   These changes were in the last pull request, but didn't go through (or they kinda did on another branch maybe).

in the last pull it didn't update the only files that were important (maybe because it was an update to the branch not the master) either way, here are the new updates

Since I promise I didn't change anything from the last pull request, I'm going to merge it now


Allow user to set shard length

It seems like we used to have this feature, but now it's gone?  100,000bp is sometimes too small a length per shard.  Each request may end up getting a very small response.

Hi Sam,
I think you might have meant to post this in the following location - under utils-java - since the Contig class provides that setting:
https://github.com/googlegenomics/utils-java
Paul

Paul,
Yes, I saw Contig has that setting, but there is no way to set it from the command-line AFAICT.  It seems when we run a dataflow we're always calling Contig's getShard() method with no arguments, which uses the default of 100,000bp per shard.

Hi Sam,
You are right, and you are free to always change the code with more features via a pull-request.  It will then be merged by Google after signing the CLA.
Hope it helps,
Paul

Hi Sam,
As you figured out, all you would need to do is change line 43 in Contig.java to the following, by omitting the final keyword:
public static long DEFAULT_NUMBER_OF_BASES_PER_SHARD = 100000;

Unfortunately I am not able to sign the CLA, so any changes I would make would not go through.
Hope it helps,
Paul

Added as --basesPerShard=#


Fix critical bug

How many patterns did you use?

I didn't use any pattern, but I used strategy tyap-lyap and to prod.

I can see that.

Oh, sorry, I forgot, that pattern Presenter-Interactor-Decorator-Object-Router was used.


Report of Application Versions -> Environments

Create a table report showing Applications Versions to Environments

Repo is located here

I am working on the following:
Deploying APIs with Python and Docker
I have a basic container running in Google Cloud.
I used the Google SDK to login and push my container to the Google Cloud registry.
I used Google Cloud Build to publish the container on the internet.
The container allows you to list, delete and add places.
You can use Postman to test the api to list, delete and add places.
I am working on getting the port exposure working with Waitress.

This is complete I just need to create a PR!

Ok, do a PR so we can get this shared with everyone.  Then we will do the next part of adding in the DB calls.  Lets go with pyodbc for the database driver.

Will be addressed in Rocinante milestone.


MahApps Datepicker Control allowing special Characters and Alphabets

What steps will reproduce this issue?
MahApps Datepicker Control allowing special Characters and Alphabets
Expected outcome
It should not allow special characters and Alphabets other than numbers
--
Environment

MahApps.Metro 2.0
Windows  7
Visual Studio  2013
.NET Framework 4.5

@akshithrajesh290 I think you mean DateTimePicker/TimePicker. This is because also the original DatePicker allows entering any character.


Completion (singular) vs Completions (plural) cause invalid endpoint on LM Studio

Hello,
I am wondering if the following code would not be the cause of my issue when trying to use CodeGPT Remote server (localhost) with LM Studio, which give me the following error (last line) :
https://github.com/carlrobertoh/llm-client/blob/487d7dd6428e6df0e1976eb463430ee4ae0eb74a/src/main/java/ee/carlrobert/llm/client/llama/LlamaClient.java#L74
[2024-03-29 10:12:29.205] [INFO] [LM STUDIO SERVER] Verbose server logs are ENABLED
[2024-03-29 10:12:29.208] [INFO] [LM STUDIO SERVER] Success! HTTP server listening on port 1234
[2024-03-29 10:12:29.208] [INFO] [LM STUDIO SERVER] Supported endpoints:
[2024-03-29 10:12:29.208] [INFO] [LM STUDIO SERVER] ->	GET  http://localhost:1234/v1/models
[2024-03-29 10:12:29.209] [INFO] [LM STUDIO SERVER] ->	POST http://localhost:1234/v1/chat/completions
[2024-03-29 10:12:29.209] [INFO] [LM STUDIO SERVER] ->	POST http://localhost:1234/v1/completions
[2024-03-29 10:12:46.517] [ERROR] Unexpected endpoint or method. (POST /v1/completion). Returning 200 anyway
The other API does use completions (plural), so I am wondering with which server completion (singular) is used ?
Thank you

I confirm it works with Llama.cpp local server, it might be a confusion on LM Studio between LLama and OpenAI interfaces.


Reset function would remember the state in which the container was stopped

Issue
The reset function would remember the state in which the container was stopped.

make docker_up
. create a Pod. (an operation)
make docker_down
make docker_up
create a Pod. (there are two Pods.)
reset on the webUI.
there is still the Pod which is made in step 2. (recover to the state of step3)

/kind bug

Probably make docker_down should remove the persistent data of etcd, instead of just letting etcd container down.

/area simulator

I also found this problem. Is it modified to modify the makefile and delete Volume to solve this? I want to fix this.

@Lan-ce-lot Feel free to tackle this. You can assign the issue to yourself by commenting /assign.
Yes, I guess that'll solve the issue. If not, we may need to change the implementation though, it's the best if we could solve it without changing the implementaiton.

/assign


CI for this repo does not support Shift Objects

currently the gh actions uses this repo which uses a kind k8s cluster to install and verify the k8s objects. It barfs at OCP specific ones such as BuildConfig etc.
https://github.com/helm/chart-testing-action
Perhaps we could create our own test bed in s43 or something like that to create a proj, apply and see if there are errors. then delete when done

Looks like the Chart testing tool and releaser action have been bumped. There are some breaking changes coming this way according to their docs. Before we decide to use ct or go a different way, we should probs test this stuff out.
https://github.com/helm/chart-testing-action

I came across this repo, might be useful...https://github.com/redhat-certification/chart-verifier


build 99 support

I tried and failed

I'm taking a look - and I know trainthrasher is - I also really want this working so I can make some custom gadgets I have in mind.

Looking further at this, it appears that a second prefab is needed - one which represents the item on the shelf.  For now I'm adapting to reuse the main item prefab - not sure what might break with that...


[doc] Add “Cleaning up stage files” section for dependencies

The cleaning up of tests with dependent tests was not explained in the documentation, so I added a small section.

Codecov Report

Merging #1358 into master will not change coverage.
The diff coverage is n/a.

@@           Coverage Diff           @@
##           master    #1358   +/-   ##
=======================================
  Coverage   91.65%   91.65%
=======================================
  Files          83       83
  Lines       12599    12599
=======================================
  Hits        11548    11548
  Misses       1051     1051

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 24eae1c...1fcf550. Read the comment docs.


DomParticle props vs state isn't clear for new developers

Just that - there's a convention but one that isn't clear to new developers.

That might entirely satisfy this issue - I'll close this one out for now in favor of #405.


[FEATURE REQUEST] both gdk_pixbuf::{PixbufAnimation,PixbufAnimationIter} are missing a IsSubclassable trait implementation

To write a Gdk Pixbuf loader with animation support in Rust one needs to subclass GdkPixbufAnimation and GdkPixbufAnimationIter. Without the IsSubclassavble trait implementation this is not possible.

Exciting :partying_face:

@aruiz Do you want this backported to the 0.16 release?

Wow, that was fast! @bilelmoussaoui thanks for working on this!
If you can backport it that'd be great. In the meantime I'll use the git path in cargo.
Thank you too @sdroege

Already backported and will be in the next 0.16 bugfix release, probably tomorrow

Awesome, thanks @sdroege!!!!


Move documentation platform to Docusaurus

Move the documentation platform from mkdocs to Docusaurus.
We have some issues, missing features, or having some out of the box like:

better ability to manage complex documentation
better search integration using Algolia
better plugins ecosystem
better templating/modern look right out of the box
broken links detection
Google Analytics support will be removed from mkdocs
code snippet title

In progress

done, but not in production yet


[wallet] Witness should be null not an empty string

If a witness is not required on the proof it should be null not an empty string. This is causing deserialization to fail in CDK.

https://github.com/cashubtc/nutshell/blob/75987beaf19897175f2be98151cb3c8cfba839ce/cashu/core/base.py#L109

Thanks for noticinf.


how to fix npm run build blank display

when npm run dev display correctly, but all link like css, or js build by webpack load completly
and i found error "ReferenceError: webpackJsonp is not defined"
this my index html:
look
and this main js :
import Vue from 'vue'
import store from './store'
import router from './router'
import { sync } from 'vuex-router-sync'
import App from './App'
sync(store, router)
/* eslint-disable no-new */
new Vue({
el: '#app',
router,
store,
render: h => h(App)
})
i use standalone type

Does this also happen for you on a freshly-generated project?

yes this happen, i try with apache and nginx, and i try to copy paste code to other file still same.
only npm run dev  display correctly

I have the same problem,

Are you sure you're actually serving the compiled files dist directory?

just tried a blank out of the box project and run: npm run dev
there is a problem with .vue files

just tried a blank out of the box project and run: npm run dev
there is a problem with .vue files

The issue that you commented on is not about problems with npm run dev, it's about the production build.
If you have a problem with that, please open a separate issue.

I just generated a new project, ran npm run build and started http-server in /dist/
Default page shows without any problems.

I will close this now. If you can provide a reproduction, we can re-open.

I encounter the same issue from time to time as well, where the manifest gets transferred, but app or other component (by vue-router) js files get "stuck", and leads to a forever blank screen.
Not sure exactly why though

I think I am also having the same issue as @woozyking is encountering.
The only difference is that the dist files after building, I am serving via Windows IIS (Internet Information Services).
I do have a valid and working web.config file in the dist folder.
The project I have tries to call Authentication (via Auth0) and then after checking the authentication, nothing is happening. It seems that the router is not routing or serving the correct routes as required.

Hey,
Same problem as @woozyking here. Does anyone understand what could be happening ?

@AngeloAnolin @abotsi
started http-server and visit <IP_ADDRESS> is OK,but <IP_ADDRESS>/index.html is blank.
i think the problem is related to vue-router,‘index.html’ must be omitted

In dist/index.html change every /static/ to  static/

It's just like flickyiyo said, all the url's are absolute and should be relative. Someone at VueJS has made a huge mistake making all the url's absolute. In my case I have Ubuntu on my computer and when I open the index.html the url's to the Javascript files start with / meaning the browser wants to look for the Javascript files on the root of my harddisk. Someone at VueJS really needs to wake up and fix this. Relative url's and nothing else.

Guys, I think you are missing that SPA is not server side rendering. At least for the majority. So, when you access /anything your web server won't redirect it to index.html. However, if you click on any vuejs router link, it will work due to the fact that the javascript got in action, but not the server side.
To solve this, use .htaccess and redirect all requests to index.html like so
<ifModule mod_rewrite.c>
    RewriteEngine On
  RewriteBase /
  RewriteRule ^index\.html$ - [L]
  RewriteCond %{REQUEST_FILENAME} !-f
  RewriteCond %{REQUEST_FILENAME} !-d
  RewriteRule . /index.html [L]
</ifModule>

Hope it helps someone!

im having the same issue, please help this is frustrating

@IvanRusli777 have you set up the rewrite rule?

After I run "npm run build", I got this tip in the console:
Build complete.
Tip: built files are meant to be served over an HTTP server. Opening index.html over file:// won't work.
In my local server, npm run dev works fine, but after upload the project on Apache server, installed node_modules (npm install) and I run "npm run build", I got the tip in the console and a blank page, no errors in dev console in my browser
The path on the server (Apache) is: /mydomainproject/public/projects files:
build
config
dist
node_modules
src
static
.babelrc
.editorconfig
.postcssrc.js
index.html
package.json
package-lock.json
This is my public/config/index.js
build: {
// Template for index.html
index: path.resolve(__dirname, '../dist/index.html'),
// Paths
assetsRoot: path.resolve(__dirname, '../dist'),
assetsSubDirectory: 'static',
assetsPublicPath: '/',

I've changed assetsPublicPath: '/' to assetsPublicPath: './', also I tried assetsPublicPath: './public', but still not work.
Please, someone can help me?
Thanks!

I'm really scared, I'm building a web app using VueJs on local server and everything working fine after run "npm run dev", but after run build on production server (Apache) I got blank page... nobody knows about this problem... I've changed config/index.js, adding relative paths, ./, /, even absolute path (I never work with absolute paths), I've asked in Stackoverflow, no answers... Also, there are no errors in the console log browser.

Hi,
I am having the same problem as wixys. Can anyone help?

I tried with a Vue fresh installation, I got the same blank page and tip in the console after run "npm run build" on a production server.
Tip: built files are meant to be served over an HTTP server.
Opening index.html over file:// won't work.

@tiagomatosweb yes, its all working now. my case is solved by changing my nginx server config and directing it to dist folder, so stupid of me

works fine too

I have the same issue, I work on this for 2 days it's very frustrating

@Severin-THIRIOT  Did you find cause of this issue?

The best solution I could come up with was to copy the content from dist/index.html to index.html from the root project and then just changed the /static/... path to your_main_folder/static, your_main_folder being the subdirectory from you deployment server. Or if you have it in your root you just have to stick with static/...

Similarly, I am experimenting with vue on an ubuntu ec2 micro i set up (empty except for empty node project skeleton and nginx). I have an express node server that is going to serve up the final index.html. i run vue init webpack-simple project-name and then npm install to get the dependencies. Then I run npm run build inside the folder vue-cli created, it completes successfully with no warnings or errors.
The Node express server serves up the index.html just fine, but the index.html file is empty. Furthermore the dist folder is missing, thus dist/build.js is 404.
Am I missing a step here? New to vue, so apologies if its something obvious! Thanks in advance for any help!
Screenshots:

Versions:
vue-cli: 2.9.3
node: v9.6.1
npm: 5.6.0

hey guys, i had the same issue. Blank page for production build even though all files were properly served from the dist folder (including index.html) by nginx. Turns out i was using wrong Vue build for my production build.
I had "vue.runtime.min.js" set as an alias to vue$ in webpack config. Switching it to "vue.min.js" resolved my problem.

Under config folder, index.js. update the path to assets. From default "/" to "./"
works for me!

If anyone else is having this problem.
I fixed mine by removing the "/" from the assetsPublicPath in config/index.js

Any other solution besides adding a dot or clearing out build.assetsPublicPath? .. because those two don't work for me either

My problem was that the webserver was configured wrongly.
put that in your nginx.conf::
`http {
...
other configuration
server {
listen 80;
    server_name yourservername.com;
    root html/path_to_your_project;

    index index.php index.html;

    location / {
        try_files $uri $uri/ /index.html;
    }
}

}`

OK, I found two reason may cause blank display when use build.
I have tested so many time, and finally found them, it cost me one day! unbelievable!!!

assetsPublicPath,like @schiu-choice said.
your Router use history mode. disable this feature will works. but I don't know why, wish team member can fix it. I am not familiar with Vue.

I found a solution for build prodction ver. outside server root folder with history mode:

in assetsPublicPath add dot like @schiu-choice said;
in your vue-router add your specific root folder in all routes.
Example:
your vue production version host in http://test.test/mainVue
so, your main route:

routes: [
    {
      path: '/mainVue/',
      name: 'mainVue',
      component: mainComponent,
    }

HI
one note for the people putting the dist in a local apache server Xampp/Wampp
you need to put your index.html as index.php
and put your files in the root of you vhost.
Then all will run well...

@KazakoffJunior...thank you! Your solution resolved the same issue I was having. :)

Pointing the location to /dist folder in nginx config worked for me.

إذا كان أي شخص آخر لديه هذه المشكلة.
أصلحت الألغام عن طريق إزالة "/" من الموجوداتالعامةالعامةconfig/index.js

Thank you it works well

If anyone else is having this problem.
I fixed mine by removing the "/" from the assetsPublicPath in config/index.js

Thank you it works well

Anyone who uses wamp server you can create virtualhost for the project like these configs and run your lcoalhost http://vueapp.local
<VirtualHost *:80>     DocumentRoot "E:\wamp\www\vueapp\dist"     ServerName vueapp.local     <directory "E:\wamp64\www\vueapp\dist">         DirectoryIndex index.html         AllowOverride all         Order Allow,Deny         Allow from all     </directory> </VirtualHost>

http-server wasn't working, but the following worked for me:
npm install -g serve
# -s flag means serve it in Single-Page Application mode
# which deals with the routing problem below
serve -s dist

Details here:
Preview Locally @ vuejs.org

Invalid options in vue.config.js: "assetsPublicPath" is not allowed
disabling history didn't help either
any other solutions?

@vdraceil mentioned:

However, removing mode: 'history' from the VueRouter initialization works, but I do not want hashtags in my URL..

From VueJs documentation:

Not to worry: To fix the issue, all you need to do is add a simple catch-all fallback route to your server. If the URL doesn't match any static assets, it should serve the same index.html page that your app lives in. (https://router.vuejs.org/guide/essentials/history-mode.html#html5-history-mode)

So, all you need to do to enable history mode is add a catch-all route:
{
   path: '*',
   name: 'catchAll',
   component: Home
}

NOTE: this catch-all route should go at the bottom -- after all other routes (otherwise, all requests will go to it).

i using vue cli v3.4.0 with history mode.
in my case, it was resolved by to set empty publicPath on vue.config.js
module.exports = {
  publicPath: ''
}

Try this,
Open --> config > index.js file
there will be many configuration, but our aim is to change only the assetsPublicPath in build object from assetsPublicPath: '/' to assetsPublicPath: '',
dev: {
    assetsPublicPath: '/',
  },

  build: {
    assetsPublicPath: '',
  }

NOTE: do not change anything inside dev object let it be as it is.

i using vue cli v3.4.0 with history mode.
in my case, it was resolved by to set empty publicPath on vue.config.js
module.exports = {
  publicPath: ''
}

After hours of struggle. This worked for me.

Hey, I'm using Vue as a SPA in a Laravel project. Does anyone know how to fix it in that case?

i using vue cli v3.4.0 with history mode.
in my case, it was resolved by to set empty publicPath on vue.config.js
module.exports = {
  publicPath: ''
}

After hours of struggle. This worked for me.

Where is vue.config.js? I don't see this file.

So I have had this error for a while, I tried all the proposed solutions above but none seemed to work.
Then I noticed that in development, there was a "you may have an infinite update loop in a component render function" warning, which I had been ignoring, after fixing the component, npm run build started to work well.
I hope this helps somebody

In dist/index.html change every /static/ to static/

Great, your advice is a real lifesaver! However, there's also a need to fix paths for images. I found the following way just by intuition, and it works well: in the file /dist/js/app.a4b721c1.js, replace c.p = "/" by c.p = "". If not to do this, img elements (pictures) will not be displayed.

cannot solve for me imade devedencies like this :
"@babel/core": "^7.12.10",
"@vue/cli-plugin-babel": "^4.5.9",
"@vue/cli-plugin-e2e-nightwatch": "^4.5.9",
"@vue/cli-plugin-eslint": "^4.5.9",
"@vue/cli-plugin-unit-jest": "^4.5.9",
"@vue/cli-service": "^4.5.9",
my mode like this :                                                                                export default new Router({
mode: 'history', // https://router.vuejs.org/api/#mode
linkActiveClass: 'active',
scrollBehavior: () => ({ y: 0 }),
routes: configRoutes()
}),
On vue.config.js like this
publicPath: process.env.NODE_ENV === 'production'
? './dist/'
: '/'
please help this my problem in situasion ......

For future reference of others:
As the things these guys said became old, if you have the same problem, look here and here.

i using vue cli v3.4.0 with history mode.
in my case, it was resolved by to set empty publicPath on vue.config.js
module.exports = {
  publicPath: ''
}

After hours of struggle. This worked for me.

Where is vue.config.js? I don't see this file.

I know it's too late, but see my comment

I fixed this problem by adding dots to every path of linked files in index.html in dist folder.
    <link href="/css/app.7094705d.css" rel="preload" as="style" />     <link href="/js/app.f0dc6036.js" rel="preload" as="script" />     <link href="/js/chunk-vendors.df638b66.js" rel="preload" as="script" />     <link href="/css/app.7094705d.css" rel="stylesheet" />

Does this also happen for you on a freshly-generated project?

yes

Guys, I think you are missing that SPA is not server side rendering. At least for the majority. So, when you access /anything your web server won't redirect it to index.html. However, if you click on any vuejs router link, it will work due to the fact that the javascript got in action, but not the server side.
To solve this, use .htaccess and redirect all requests to index.html like so
<ifModule mod_rewrite.c>
    RewriteEngine On
  RewriteBase /
  RewriteRule ^index\.html$ - [L]
  RewriteCond %{REQUEST_FILENAME} !-f
  RewriteCond %{REQUEST_FILENAME} !-d
  RewriteRule . /index.html [L]
</ifModule>

Hope it helps someone!
This helped actually

Try this, Open --> config > index.js file there will be many configuration, but our aim is to change only the assetsPublicPath in build object from assetsPublicPath: '/' to assetsPublicPath: '',
dev: {
    assetsPublicPath: '/',
  },

  build: {
    assetsPublicPath: '',
  }

NOTE: do not change anything inside dev object let it be as it is.

Hi it's really worked for me thanks

not work for me. ,sad

"## Solution
When using the dist directory
add base: ‘./’ into vite.config.js (or vite.config.ts)
import { defineConfig } from 'vite'
import vue from '@vitejs/plugin-vue'
export default defineConfig({
plugins: [vue()],
base: './', // added
})
Build in this state"
https://medium.com/geekculture/2022-vite-vue-screen-goes-white-when-deploying-9dcb9fc5b987


Client socket.disconnect does not stop reconnection attempts

Scenario one:
. client gets 401 response from server when connecting
. connect_error handler (mostly) gets called
(Firefox console usually does not show console.log output on first page load - reload and it's fine, so assuming "always" but saying "mostly" jic)
. connect_error handler calls socket.disconnect();
. client attempts to reconnect shortly thereafter
Scenario two:
. server (netty-socketio) gets connection attempt
. server rejects based on authorisation (401 response)
. server disconnects client
. client connect_error handler fires
. client attempts reconnect shortly thereafter
I'm not too worried about scenario two (because it uses the probably unsupported netty-socketio), it's just there to point out the problem is the continuous reconnection.
The main problem is that there appears to be no way to have the client code stop reconnection attempts.
This is leading to much frustration as I don't want users spamming my logs with unauthorised connection messages every ~5 seconds. (Just one message is fine though :) )
Any ideas, please?

There is a problem after disconnect(). When you call connect() again the reconnection is not working anymore. The main problems are that in the method "Manager.prototype.reconnect" a variable "this.reconnecting" is tested to be true. This is set when i call socket.disconnect(). But after a socket.connect() it is never be reseted. Imho this should be initialized when a socket is opened or connect() is called because this is undefined in the first run.
What makes it tick again:
socket.disconnect();
socket.io.reconnecting = undefined; <- false should be the initial value
socket.io._reconnection = true;
socket.connect();


A Request (make page numbers an option) and a Bug (12&12 isn't showing up)

I love what you have done to this plugin...  PDF Generator. 🕺
Request:  Make the Page the Numbers (Start #) be an option.  I import the generator meeting schedule into a InDesign document, so it would make things a bit easier on my end.
Bug:  Meeting mark with "12 Steps and 12 Traditions" aren't showing on the generator Meeting Guide... Meeting Types Legend and next to the meeting...
Here is example.
https://markuphero.com/share/CczYpmOeD1RUPVWjzufD
https://markuphero.com/share/sRePLUp1YhZf34NG2Ecc

Ah, thanks for the bug report.
So the page numbers request, if you leave Start # blank the page numbers shouldn't show up at all?

I tried that... :)
https://markuphero.com/share/Q8qYjkPG56KD58NGRxFU

sorry i was just confirming that's what you wanted. i can make it work

ok you should be good to go now 👍

YES! you rock! 🕺


Fix typo in service_credential_bindings docs

Spotted a small typo

[x] I have reviewed the contributing guide

[x] I have viewed, signed, and submitted the Contributor License Agreement

[x] I have made this pull request to the main branch

[ ] I have run all the unit tests using bundle exec rake

[ ] I have run CF Acceptance Tests

Looks good, thanks for catching this @andy-paine!


Add play for provisioning of bare metal hosts.

Setup requirements for bare metal host.
Append bare metal hostnames to nodes group and
create variable for generated inventory file name.
Also inventory file name to all.local.generated
because it now includes bare metal host(s)
Signed-off-by: Thomas F Herbert<EMAIL_ADDRESS>

Closed due to updated PR is merged.