HSEARCH-2207 Treat BooleanQuery as an immutable Query

BooleanQuery has been used traditionally like this:

BooleanQuery q = new BooleanQuery();
q.add( otherQuery, Occur.SOMETHING );

But now the no-arguments constructor is deprecated, and adding clauses to the instance is deprecated too.
All our code needs to be updated to use `org.apache.lucene.search.BooleanQuery.Builder` instead, as in Lucene 6 all queries become immutable. `BooleanQuery` is used in many areas, including tests.

This merge contains most of the classes in which `BooleanQuery` is used, except the following :
* [engine/src/main/java/org/hibernate/search/query/dsl/impl/ConnectedMultiFieldsRangeQueryBuilder.java](https://github.com/hibernate/hibernate-search/blob/master/engine/src/main/java/org/hibernate/search/query/dsl/impl/ConnectedMultiFieldsPhraseQueryBuilder.java)
* [engine/src/main/java/org/hibernate/search/query/dsl/impl/MoreLikeThisBuilder.java](https://github.com/hibernate/hibernate-search/blob/master/engine/src/main/java/org/hibernate/search/query/dsl/impl/MoreLikeThisBuilder.java)

Because I don't know how to modify them correctly.

Can one of the admins add this person to the trusted builders? (reply with: "add to whitelist" or "ok to test")

ok to test

This merge contains most of the classes in which BooleanQuery is used, except the following :

Well done, I like that you opted for a safe patch first!
We will still need a fix for the remaining cases though. We can break it up into a follow-up task, to keep the focus now on the process of merging your first patch.

@mincong-h, if you haven't done so, can you "sign" the JBoss contributor license agreement, please. It's a small web app living at https://cla.jboss.org/. We need that in order to merge your changes. Thanks!

@gunnarmorling thanks for your notice, I've signed it. Please check.
By the way, I only signed for issue HSEARCH-2207 in Step 3 What do you want to contribute ?. I don't know if I should sign again for a higher scope.
@Sanne, thanks. I'll keep looking into the remaining.

By the way, I only signed for issue HSEARCH-2207

Thanks, that's enough for all contributions. You're signing for the whole project, the question in step3 is just to give the approvers some context.

@mincong-h what's your issue with ConnectedMultiFieldsRangeQueryBuilder exactly?
As for MoreLikeThisBuilder, I suppose your problem is with https://github.com/hibernate/hibernate-search/blob/master/engine/src/main/java/org/hibernate/search/query/dsl/impl/MoreLikeThisBuilder.java#L186 ? If so, I think you should simply remove the optimization and always create a new BooleanQuery with the builder.

@gsmet, I fixed the problem of MoreLikeThisBuilder by following your advice. The problem was maybe due to BooleanQuery's mutability. Queries built by default constructor are mutable, but those built by builder aren't. I can't remember much detail about it, but essential is the error got fixed. By the way, should BooleanQuery.TooManyClauses be used during query building, e.g. line 194?

@mincong-h, looks very good, great start!
Are any usages of the deprecated constructor fixed with that? Or is there anything remaining?

Everything should be fixed and nothing remaining. BooleanQuery is used in 26 classes, in which

20 classes have been changed
6 classes hava not been changed, because they're not concerned.

Here're the entire list of those 6 classes :

engine/src/main/java/org/hibernate/search/query/dsl/impl/BooleanQueryBuilder.java
elasticsearch/src/main/java/org/hibernate/search/backend/elasticsearch/impl/ToElasticsearch.java
engine/src/main/java/org/hibernate/search/query/engine/impl/LuceneHSQuery.java
orm/src/test/java/org/hibernate/search/test/configuration/ProgrammaticMappingTest.java
orm/src/test/java/org/hibernate/search/test/query/dsl/MoreLikeThisTest.java
engine/src/main/java/org/hibernate/search/util/logging/impl/Log.java

@gunnarmorling As this is my first commit, it would be better to check again theses 6 classes by you.

Will do. Thanks!

@mincong-h just a quick tip: you'd better keep your master in sync with upstream master and create branches to do your work.
Typically with a clean master:
git checkout master
git pull --rebase upstream master
git checkout -b HSEARCH-XXX

then do your work in this branch and commit, then:
git push origin HSEARCH-XXX

and build your PR from this branch.
This way, it will be easier for you to keep in sync with upstream.

@mincong-h I made a few additional fixes and squashed the commits.
Merged! Thanks for your first contribution.


Enable editing of linkifier entry

Currently, if there's a mistake in the linkifier entry (either the pattern, the URL, or both) it's necessary to delete the entry and create it a new one. With a lot of linkifiers and complex patterns, this creates a lot of cognitive load. Being able to edit an existing entry in place would make managing them a lot easier.
I envision having an edit button next to the delete button that turns the read-only values into input fields. In this mode, a save button would appear to accept the changes and change the row back to read-only values. (It would work a lot like the custom profile fields currently do).

See also - #10830 and #17045.

Thanks for pointing that out. This is clearly a duplicate, then. I had searched for "linkifier", but the existing issue uses the term linkification. That's probably why the search couldn't find it. Perhaps the title of issue #10830 should be updated to use the correct term.

Closing as a duplicate, but yeah, we're hoping to merge #17045 soon.


*: move to bats-core/bats-core

Signed-off-by: Antonio Murdaca<EMAIL_ADDRESS>
- What I did
changed bats from sstephenson to bats-core cause the latter is basically not maintained anymore.
- How I did it
vim
- How to verify it
testz
- Description for the changelog

/test all

/test all

LGTM

/test e2e

/test e2e_rhel

/test e2e


String Lights 2 - H70C7

Which model is this? Need the Hxxxx number.
H70C7
Which type of device is this? Light, heater, leak sensor, etc.
Lights
Which connection methods does this device have? Wifi? Bluetooth? LAN mode? All?
All
Anything else?

Do you use (1) Homebridge UI-X (2) Homebridge CLI or (3) HOOBS?
Homebridge UI-X
Which version of Homebridge/HOOBS do you have?
v1.8.5
Which platform do you run Homebridge/HOOBS on (e.g. Raspberry Pi/Windows/HOOBS Box)? Please also mention your version of Node.js/NPM if known.
OS | Ubuntu Jammy (22.04.3 LTS)
Node.js Version | v22.12.0
Which version of this plugin (homebridge-govee) do you have? Has the issue started since upgrading from a previous version?
v10.12.1
Which Govee devices do you have that are causing issues? Please include product models if applicable.
String Lights 2 - H70C4 and H70C7
Cone Tree - H6840
Flood Lights 2 - H7057

[12/3/2024, 10:56:22 PM] [Govee] [House Lights] is not currently supported, do create a Github issue with the following info:
{"ip":"<IP_ADDRESS>","device":"9A:D6:C5:75:BE:0E:08:40","sku":"H70C7","bleVersionHard":"3.06.01","bleVersionSoft":"1.01.02","wifiVersionHard":"1.04.02","wifiVersionSoft":"1.03.01","httpInfo":{"groupId":23051832,"device":"9A:D6:C5:75:BE:0E:08:40","sku":"H70C7","spec":"","versionHard":"3.06.01","versionSoft":"1.01.02","deviceName":"House Lights","deviceExt":{"deviceSettings":"{"wifiName":"MAFAM-(IOT)","address":"C5:75:BE:0E:08:40","bleName":"Govee_H70C7_0840","topic":"GD/c7550da64829a535cfc5fa3adc86458d","wifiMac":"D0:C9:07:7B:94:8E","pactType":1,"pactCode":1,"wifiSoftVersion":"1.03.01","wifiHardVersion":"1.04.02","ic":500,"secretCode":"9Ck6ikHx978=","boilWaterCompletedNotiOnOff":1,"completionNotiOnOff":1,"autoShutDownOnOff":1,"sku":"H70C7","device":"9A:D6:C5:75:BE:0E:08:40","deviceName":"House Lights","versionHard":"3.06.01","versionSoft":"1.01.02","playState":false}","lastDeviceData":"{"online":false}","extResources":"{"skuUrl":"https://d1f2504ijhdyjw.cloudfront.net/sku-img/80b3cf0aec313bfddf1aa26fee26a4fd-add_list_type_device_70c5.png\",\"headOnImg\":\"\",\"headOnImgNew\":\"https://d1f2504ijhdyjw.cloudfront.net/sku-img/d2916562b23349dbf66513bdc76f0fef-light_pics_70c4c5_on.png\",\"headOffImg\":\"\",\"headOffImgNew\":\"https://d1f2504ijhdyjw.cloudfront.net/sku-img/73088b7bf72c6e2defdd14c614e7778c-light_pics_70c4c5_off.png\",\"ext\":\"\",\"ic\":500}"},"pactType":1,"pactCode":1,"share":0,"deviceId":26438777,"gidConfirmed":true,"goodsType":260,"attributesId":126,"supportScene":0},"model":"H70C7","deviceName":"House Lights","isLANDevice":true}


Set up the development environment

As a developer
I want a streamlined and documented process to set up the development environment for the customer accounts microservice
So that I can efficiently work on the service without setup hurdles

Details: Ensure clear instructions are provided for setting up the development environment.
Acceptance Criteria: Define what constitutes a fully functional development environment setup.


libsqlcipher.so not generated for mips architecture

java.lang.UnsatisfiedLinkError: dalvik.system.PathClassLoader[DexPathList[[zip file "/data/app/com.my.project-ylDVYPJ077aLjRbuP05fyQ==/base.apk"],nativeLibraryDirectories=[/data/app/com.my.project-ylDVYPJ077aLjRbuP05fyQ==/lib/arm, /system/lib, /vendor/lib]]] couldn't find "libsqlcipher.so"
Crashed on the device: TCL 8082
OS version: Android 8.1.0
ABI:armeabi-v7a, armeabi
I have analyzed the apk and libsqlcipher.so is not found in MIPS lib.
But libsqlcipher.so have generated for these configurartions:
x86_64
x86
arm64-v8a
armeabi
armeabi-v7a

I have analyzed the apk and libsqlcipher.so is not found in MIPS lib.

Zetetic does not distribute SQLCipher for Android for the MIPS architecture.
SafeRoom itself is not involved with native libraries for any architecture. SafeRoom depends upon SQLCipher for Android, and so your problem lies with with SQLCipher for Android. Zetetic offers a support board for SQLCipher questions — they may be able to give you some debugging advice there.

dalvik.system.PathClassLoader[DexPathList[[zip file "/data/app/com.charm.ehr.chartnote_india_android-1/base.apk"],nativeLibraryDirectories=[/data/app/com.charm.ehr.chartnote_india_android-1/lib/x86, /vendor/lib, /system/lib]]] couldn't find "libsqlcipher.so"
Device: Vivo X9
Os: Android 6.0.1
I am currently using "com.commonsware.cwac:saferoom:1.0.2"
Does arm64 and x86_64 are supported in this version?
Using abiFilters for arm64 and x86_64 will solve the problem or do you have any solution for it

Does arm64 and x86_64 are supported in this version?

That is a question for Zetetic. The native libraries are from SQLCipher, not SafeRoom.

Using abiFilters for arm64 and x86_64 will solve the problem or do you have any solution for it

SafeRoom itself is not involved with native libraries for any architecture. SafeRoom depends upon SQLCipher for Android, and so your problem lies with with SQLCipher for Android. Zetetic offers a support board for SQLCipher questions — they may be able to give you some debugging advice there.


[Event Modification] Codeunit 80 Sales.-Post - OnBeforePostBalancingEntry

Hi, would it be possible to modify the event OnBeforePostBalancingEntry in codeunit 80 SalesPost to insert a SalesHeader parameter, like this :

Thanks

You help us implementing the requests faster when your request contains AL code copied from VSCode instead of screenshots.
The current signature already includes SalesHeader.
[IntegrationEvent(false, false)]
local procedure OnBeforePostBalancingEntry(var GenJnlLine: Record "Gen. Journal Line"; SalesHeader: Record "Sales Header"; var TotalSalesLine: Record "Sales Line"; var TotalSalesLineLCY: Record "Sales Line"; CommitIsSuppressed: Boolean; PreviewMode: Boolean)

You help us implementing the requests faster when your request contains AL code copied from VSCode instead of screenshots.
The current signature already includes SalesHeader.
[IntegrationEvent(false, false)]
local procedure OnBeforePostBalancingEntry(var GenJnlLine: Record "Gen. Journal Line"; SalesHeader: Record "Sales Header"; var TotalSalesLine: Record "Sales Line"; var TotalSalesLineLCY: Record "Sales Line"; CommitIsSuppressed: Boolean; PreviewMode: Boolean)


feat: add ignore_commits regex

Description
Not sure about the naming ignore_commits, filter_commits is already taken.
This also adds #[serde(deny_unknown_fields)] to protect users for typos.
Motivation and Context
I'm using the tool with the other group. There are many irrelevant commits
    { message = ".*", group = "Other", default_scope = "other"},

How Has This Been Tested?
tested locally
Types of Changes

[ ] Bug fix (non-breaking change which fixes an issue)
[x] New feature (non-breaking change which adds functionality)
[x] Breaking change (fix or feature that would cause existing functionality to change)
[ ] Documentation (no code change)
[ ] Refactor (refactoring production code)
[ ] Other

Checklist:

[ ] My code follows the code style of this project.
[x] I have updated the documentation accordingly.
[x] I have formatted the code with rustfmt.
[x] I checked the lints with clippy.
[ ] I have added tests to cover my changes.
[ ] All new and existing tests passed.

Just saw this can be solved already with a skip group
    { message = "(?i)clippy", skip = true},


use res['title'] to as a new filename

closes #74

Do we need to be worried about the test failure or is it just a side effect of using the dev API?
Expected:
    'xml_header(\'<?xml version="1.0" encoding="utf-8"?><meta><fits><SIMPLE>1</SIMPLE><BITPIX>16</BITPIX>...')'
Got:
    '{"error":"Unable to process XML Header for \\/mnt\\/data\\/jp2\\/: Unable to locate image dimensions in header tags!","errno":13}'

Do we need to be worried about the test failure or is it just a side effect of using the dev API?
Expected:
    'xml_header(\'<?xml version="1.0" encoding="utf-8"?><meta><fits><SIMPLE>1</SIMPLE><BITPIX>16</BITPIX>...')'
Got:
    '{"error":"Unable to process XML Header for \\/mnt\\/data\\/jp2\\/: Unable to locate image dimensions in header tags!","errno":13}'

That's beta being  beta. The image with that ID was deleted. I put a new one there and modified it so it won't get deleted again. Rerunning the job, should pass now.

There is now a windows failure:
    def _opener(self, name, flags, mode=0o666):
        # A stub for the opener argument to built-in open()
>       return self._accessor.open(self, flags, mode)
E       OSError: [Errno 22] Invalid argument: 'SDO AIA 171 (2022-09-22 17:52:21 - 17:56:33 UTC).mp4'

I wonder if we need to sanitize the title?

There is now a windows failure:
    def _opener(self, name, flags, mode=0o666):
        # A stub for the opener argument to built-in open()
>       return self._accessor.open(self, flags, mode)
E       OSError: [Errno 22] Invalid argument: 'SDO AIA 171 (2022-09-22 17:52:21 - 17:56:33 UTC).mp4'

I wonder if we need to sanitize the title?

sanitize the title?

Yes, I wonder if the windows error is due to the fact the filesystem does not support all of those characters.
If that is the case, the title needs to be cleaned of bad characters.

You can do something like this:
import re
clean_filename = re.sub(r"[^\w\-_\. ]", "_", title)

I am going to merge this and update the change and the other issue on a new PR


Automatic/manual subcommand alias

If I register the subcommand create automatically create the alias c

also provide a way to set alias example here crt

idea: change subcommand name attribute by a string array

find a way to see if a alias is already defined: cf set https://github.com/deckarep/golang-set

Try with command name as emoji

Put some colors for help message

Automatic


chore: allow unstable/type commit types

This PR allows the commit types of unstable/feat, unstable/BREAKING, etc in PR titles

closing in favor of #5474


Bundle Calyptia service related gems and plugins

Calyptia is planned to publish service for monitoring.
Currently, our created gems are as follows:

cmetrics-ruby (cmetrics as actual gem name): https://github.com/calyptia/cmetrics-ruby
fluent-plugin-metrics-cmetrics: https://github.com/calyptia/fluent-plugin-metrics-cmetrics
fluent-plugin-calyptia-monitoring: https://github.com/calyptia/fluent-plugin-calyptia-monitoring

They are used for our new Calyptia Monitoring service.
Two of Fluentd plugins are ordinary Fluentd plugins.
But, cmetrics-ruby requests to use cmake 3.13 or later for TARGETS in subdirectories feature.
It had been supported in cmake 3.13 or later.
ref: https://cmake.org/cmake/help/v3.13/command/install.html#targets
This could be headache for old platforms including Ubuntu 16.04, Ubuntu 18.04, CentOS 7, and CentOS 6(Not tested yet).
For Ubuntu, using kitware apt repository can solve this headache and, for CentOS 7, using EPEL repository can solve it.
But, for CentOS 6, there is no cmake3 3.13 or later package is provided even if in EPEL.
So, if we bundle these Calyptia related gems on CentOS 6 platform, we might ought to create 3rd party package for cmake 3.13 or later....
CMake 3 compilation requests to use C++11 ready gcc compiler toolchain.
So, we also ought to build 3rd party package for CentOS 6 to build cmake 3 package if we proceed to bundle calyptia related gems. Or, Only for CentOS 6, nothing bundling for Calyptia related gems is also reasonable for us because CentOS 6 is already EOL.
FYI: fluent-plugin-calyptia-monitoring has a configuration generator command which is calyptia-config-generator: https://github.com/calyptia/fluent-plugin-calyptia-monitoring#calyptia-monitoring-api-config-generator

RHEL, CentOS, and Amazon Linux provide cmake 3.x as cmake3 command.
But current mini_portile gem does not handle user-defined cmake command.
I've sent a PR to this fix issue: https://github.com/flavorjones/mini_portile/pull/107

Only for CentOS 6, nothing bundling for Calyptia related gems is also reasonable

:+1: for it.


Visual Studio 2019 & .Net Core 3.1: paket.lock failed with invalid parameter 'netcoreapp3.1'

Hello,
I have been using Paket in Visual Studio 2015, for maybe 2 years, and I am fairly familiar with it, and I like it -thanks! :smiley:
Here is my problem:
Description
Did a Build within Visual Studio 2019, and it fails with:
Error List:
Severity	Code	Description	Project	File	Line	Suppression State
Error	MSB3073	The command ""paket.exe" restore" exited with code 1.	LRDaily	C:\SOURCE_CONTROL\S1\LRDaily\.paket\Paket.Restore.targets	120

Output:
1>------ Rebuild All started: Project: LRDaily, Configuration: Debug Any CPU ------
1>Checking Paket version (downloading latest stable)...
1>Paket.exe 5.243.0 is up to date.
1>Paket version 5.206.0
1>Performance:
1> - Runtime: 381 milliseconds
1>Paket failed with
1>-> Error during parsing of 'C:\SOURCE_CONTROL\S1\LRDaily\paket.lock'.
1>-> invalid parameter 'netcoreapp3.1' after >= or < in '== netcoreapp3.1'
1>C:\SOURCE_CONTROL\PrimaryIT2\S1\LRDaily\.paket\Paket.Restore.targets(120,5): error MSB3073: The command ""paket.exe" restore" exited with code 1.
1>Done building project "LRDaily.csproj" -- FAILED.
========== Rebuild All: 0 succeeded, 1 failed, 0 skipped ==========

Repro steps

Visual Studio 2019: create a new c# "Hello World" project with .Net Core 3.1.  I created a class/library DLL, but I'm guessing it will also fail with a Console project, etc.

I then simply created my normal:

paket.dependencies (at solution level):
source https://www.nuget.org/api/v2

framework: auto-detect

nuget System.Diagnostics.EventLog

paket.references (at project level):
System.Diagnostics.EventLog

I then did (at solution level) at the DOS prompt (to install the libraries -also tried a "-f" force, made no difference):
.paket\paket.exe install

I observed that my lock file was created, as per (at solution level):
paket.lock

RESTRICTION: == netcoreapp3.1
NUGET
  remote: https://www.nuget.org/api/v2
    Microsoft.NETCore.Platforms (3.1)
    Microsoft.Win32.Registry (4.7)
      System.Security.AccessControl (>= 4.7)
      System.Security.Principal.Windows (>= 4.7)
    System.Diagnostics.EventLog (4.7)
      Microsoft.NETCore.Platforms (>= 3.1)
      Microsoft.Win32.Registry (>= 4.7)
      System.Security.Principal.Windows (>= 4.7)
    System.Security.AccessControl (4.7)
      Microsoft.NETCore.Platforms (>= 3.1)
      System.Security.Principal.Windows (>= 4.7)
    System.Security.Principal.Windows (4.7)

-and the install in (3) seemed to work fine, no errors.

I then went back to Visual Studio 2019, and did a "Build", and then I got the error indicated (in the Description).

Expected behavior
Project should have built.
Actual behavior
Project build failed.
Known workarounds
Go back to NuGet? :worried:
Related information

Operating system: Windows 10

Thanks,
George H.
04/10/2020 5:42pm ET

Somehow it seems that you have multiple pakets running. Looking at the build output, there are two version numbers going on:
1>Paket.exe 5.243.0 is up to date.
1>Paket version 5.206.0

Is it possible, that you have paket locally (paket.exe) and as a dotnet global tool?
Can you try to run dotnet tool update -g paket ?

Hi ChrSteinert,
I only refer to the .\.paket\paket.exe in each Solution dir.,and I wasn't aware of "dotnet global tool" -until just reading about it now.  I don't recall ever doing anything to "install" paket.exe a a global tool, but regardless, I executed the command as you indicated, as per:
Microsoft Windows [Version 10.0.18363.720]
(c) 2019 Microsoft Corporation. All rights reserved.

C:\WINDOWS\system32>dotnet tool update -g paket
You can invoke the tool using the following command: paket
Tool 'paket' (version '5.243.0') was successfully installed.

C:\WINDOWS\system32>

Right after doing the above, I did a "paket install", and this seemingly ran ok:
C:\PROJECTS\MISC\VS_2019_PAKET_TEST\ConsoleApp1>.\.paket\paket.exe install
Paket version 5.243.0
Resolving packages for group Main:
 - S.U.LRD 2.0.2
 - System.Diagnostics.EventLog 4.7.0
 - Microsoft.Win32.Registry 4.7.0
 - System.Security.Principal.Windows 4.7.0
 - Microsoft.NETCore.Platforms 3.1.0
 - System.Security.AccessControl 4.7.0
Locked version resolution written to C:\PROJECTS\MISC\VS_2019_PAKET_TEST\ConsoleApp1\paket.lock
Installing into projects:
 - Creating model and downloading packages.
 - Installing for projects
   - ConsoleApp1/paket.references -> ConsoleApp1/ConsoleApp1.csproj
Extracted Paket.Restore.targets to: C:\PROJECTS\MISC\VS_2019_PAKET_TEST\ConsoleApp1\.paket\Paket.Restore.targets (Can be disabled with PAKET_SKIP_RESTORE_TARGETS=true)
Performance:
 - Resolver: 1 second (1 runs)
    - Runtime: 525 milliseconds
    - Blocked (retrieving package details): 209 milliseconds (6 times)
    - Blocked (retrieving package versions): 1 second (4 times)
    - Not Blocked (retrieving package versions): 2 times
 - Disk IO: 9 milliseconds
 - Average Request Time: 60 milliseconds
 - Number of Requests: 13
 - Runtime: 3 seconds

C:\PROJECTS\MISC\VS_2019_PAKET_TEST\ConsoleApp1>

I then went to Visual Studio, and attempted a "Build", and it failed (same error as I originally posted):
> 1>------ Rebuild All started: Project: ConsoleApp1, Configuration: Debug Any CPU ------
> 1>Checking Paket version (downloading latest stable)...
> 1>Paket.exe 5.243.0 is up to date.
> 1>Paket version 5.206.0
> 1>Performance:
> 1> - Runtime: 453 milliseconds
> 1>Paket failed with
> 1>-> Error during parsing of 'C:\PROJECTS\MISC\VS_2019_PAKET_TEST\ConsoleApp1\paket.lock'.
> 1>-> invalid parameter 'netcoreapp3.1' after >= or < in '== netcoreapp3.1'
> 1>C:\PROJECTS\MISC\VS_2019_PAKET_TEST\ConsoleApp1\.paket\Paket.Restore.targets(120,5): error MSB3073: The command ""paket.exe" restore" exited with code 1.
> 1>Done building project "ConsoleApp1.csproj" -- FAILED.
> ========== Rebuild All: 0 succeeded, 1 failed, 0 skipped ==========

I also noticed in my Visual Studio settings I had set:

-but I really don't want this, so I changed them to:

I also did a "Clear All NuGet Cache(s)", for what ever that is worth.
I also did "paket clear-cache" if that makes any difference, as per:
C:\PROJECTS\MISC\VS_2019_PAKET_TEST\ConsoleApp1>
C:\PROJECTS\MISC\VS_2019_PAKET_TEST\ConsoleApp1>.\.paket\paket.exe clear-cache
Paket version 5.243.0
  - C:\Users\gh\.nuget\packages
  - C:\Users\gh\AppData\Local\Nuget\Cache
  - C:\Users\gh\.paket\git\db
Performance:
 - Runtime: 813 milliseconds

C:\PROJECTS\MISC\VS_2019_PAKET_TEST\ConsoleApp1>

I then tried another Build (in Visual Studio), but it still fails the same way, as per:
1>------ Rebuild All started: Project: ConsoleApp1, Configuration: Debug Any CPU ------
1>Checking Paket version (downloading latest stable)...
1>Paket.exe 5.243.0 is up to date.
1>Paket version 5.206.0
1>Performance:
1> - Runtime: 502 milliseconds
1>Paket failed with
1>-> Error during parsing of 'C:\PROJECTS\MISC\VS_2019_PAKET_TEST\ConsoleApp1\paket.lock'.
...

One question I have is why Paket tries to automatically update itself, and seemingly attempt a "restore" every time I compile -I don't want this, and how do I turn this off?
In my *.csproj file, I noticed "Import Project":
<?xml version="1.0" encoding="utf-8"?>
<Project Sdk="Microsoft.NET.Sdk">
  <PropertyGroup>
    <OutputType>Exe</OutputType>
    <TargetFramework>netcoreapp3.1</TargetFramework>
  </PropertyGroup>
  <Import Project="..\.paket\Paket.Restore.targets" />
</Project>

How/why is this in my project file...?

I'm noticing that things don't seem to work "the same" as in say Visual Studio 2015 vs. 2019.
With Visual Studio 2015, my Paket NuGet packages never automatically restored when I did a build.

Ok, I re-read the output from the paket install, and I see a reference to PAKET_SKIP_RESTORE_TARGETS, so I did set this environment variable, as per:

I then completely created a new Visual Studio 2019 console project, and did a "paket install", as per:
C:\PROJECTS\MISC\VS_2019_PAKET_TEST\ConsoleApp1>.\.paket\paket.exe install
Paket version 5.243.0
Resolving packages for group Main:
 - S.U.LRD 2.0.2
 - System.Diagnostics.EventLog 4.7.0
 - Microsoft.Win32.Registry 4.7.0
 - System.Security.Principal.Windows 4.7.0
 - Microsoft.NETCore.Platforms 3.1.0
 - System.Security.AccessControl 4.7.0
Locked version resolution written to C:\PROJECTS\MISC\VS_2019_PAKET_TEST\ConsoleApp1\paket.lock
Installing into projects:
 - Creating model and downloading packages.
 - Installing for projects
Performance:
 - Resolver: 1 second (1 runs)
    - Runtime: 439 milliseconds
    - Blocked (retrieving package details): 299 milliseconds (6 times)
    - Blocked (retrieving package versions): 1 second (4 times)
    - Not Blocked (retrieving package versions): 2 times
 - Disk IO: 443 milliseconds
 - Average Request Time: 77 milliseconds
 - Number of Requests: 13
 - Runtime: 2 seconds

C:\PROJECTS\MISC\VS_2019_PAKET_TEST\ConsoleApp1>

I then attempted a Build in Visual Studio, and now I get the errors:
Output:
1>------ Rebuild All started: Project: ConsoleApp1, Configuration: Debug Any CPU ------
1>C:\Program Files\dotnet\sdk\3.1.101\Sdks\Microsoft.NET.Sdk\targets\Microsoft.PackageDependencyResolution.targets(234,5): error NETSDK1004: Assets file 'C:\PROJECTS\MISC\VS_2019_PAKET_TEST\ConsoleApp1\ConsoleApp1\obj\project.assets.json' not found. Run a NuGet package restore to generate this file.
1>Done building project "ConsoleApp1.csproj" -- FAILED.
========== Rebuild All: 0 succeeded, 1 failed, 0 skipped ==========

Error List:
Severity	Code	Description	Project	File	Line	Suppression State
Error	NETSDK1004	Assets file 'C:\PROJECTS\MISC\VS_2019_PAKET_TEST\ConsoleApp1\ConsoleApp1\obj\project.assets.json' not found. Run a NuGet package restore to generate this file.	ConsoleApp1	C:\Program Files\dotnet\sdk\3.1.101\Sdks\Microsoft.NET.Sdk\targets\Microsoft.PackageDependencyResolution.targets	234

At this point I can't think of anything else to try, any ideas?
There is still also the strange reference of the two different paket versions, as well:
> 1>Paket.exe 5.243.0 is up to date.
> 1>Paket version 5.206.0

Thanks,
George H.
04/14/2020 9:00pm ET

Hi ChrSteinert,
I did some more digging about the different Paket versions:
> 1>Paket.exe 5.243.0 is up to date.
> 1>Paket version 5.206.0

I have Cygwin installed and executed a "whereis", and sure enough a "global" Paket was installed here:
C:\WINDOWS\system32>whereis paket.exe
paket: /cygdrive/c/ProgramData/chocolatey/bin/paket.exe

C:\WINDOWS\system32>

I then did (which solves the mystery of 5.206.0):
C:\ProgramData\chocolatey\bin>.\paket.exe --version
Paket version 5.206.0

C:\ProgramData\chocolatey\bin>

so I uninstalled it (choco uninstall paket), and I also uninstalled the "dotnet global paket", as per:
C:\WINDOWS\system32>dotnet tool uninstall -g paket
Tool 'paket' (version '5.243.0') was successfully uninstalled.

I then completely created a new Visual Studio console project, did the "paket install" (no problems), and then I did a Build (within Visual Studio) that failed with a new error:
Ouput:
1>------ Rebuild All started: Project: ConsoleApp1, Configuration: Debug Any CPU ------
========== Rebuild All: 0 succeeded, 1 failed, 0 skipped ==========

Error List:
Severity	Code	Description	Project	File	Line	Suppression State
Error		Project "C:\PROJECTS\MISC\VS_2019_PAKET_TEST\ConsoleApp1\.paket\Paket.Restore.targets" was not imported by "C:\PROJECTS\MISC\VS_2019_PAKET_TEST\ConsoleApp1\ConsoleApp1\ConsoleApp1.csproj" at (7,3), due to the file not existing.	ConsoleApp1	C:\PROJECTS\MISC\VS_2019_PAKET_TEST\ConsoleApp1\.paket\Paket.Restore.targets	7
Error	MSB4019	The imported project "C:\PROJECTS\MISC\VS_2019_PAKET_TEST\ConsoleApp1\.paket\Paket.Restore.targets" was not found. Confirm that the expression in the Import declaration "..\.paket\Paket.Restore.targets" is correct, and that the file exists on disk.	ConsoleApp1	C:\PROJECTS\MISC\VS_2019_PAKET_TEST\ConsoleApp1\ConsoleApp1\ConsoleApp1.csproj	7

It should be noted I did not change my environment variable, so this was/is still in effect:
PAKET_SKIP_RESTORE_TARGETS=true
-so why is paket trying to still do an "automatic restore when compiling"...?
Thanks,
George H.
04/14/2020 9:36pm ET

Good find with the chocolatey paket version! :)
So the Paket.Restore.targets file is needed as it is needed for dotnet restore to use paket.
It seems you are missing an initial paket install and/or paket restore before you can build you solution in VS.
Can you try running both commands and then attempt a build again?

Hi ChrSteinert,
ok, I just executed both paket install & restore, as per:
C:\PROJECTS\MISC\VS_2019_PAKET_TEST\ConsoleApp1>.\.paket\paket.exe install
Paket version 5.243.0
Skipping resolver for group Main since it is already up-to-date
C:\PROJECTS\MISC\VS_2019_PAKET_TEST\ConsoleApp1\paket.lock is already up-to-date
Installing into projects:
 - Creating model and downloading packages.
 - Installing for projects
   - ConsoleApp1/paket.references -> ConsoleApp1/ConsoleApp1.csproj
Performance:
 - Disk IO: 5 milliseconds
 - Runtime: 1 second

C:\PROJECTS\MISC\VS_2019_PAKET_TEST\ConsoleApp1>
C:\PROJECTS\MISC\VS_2019_PAKET_TEST\ConsoleApp1>.\.paket\paket.exe restore
Paket version 5.243.0
The last restore is still up to date. Nothing left to do.
Performance:
 - Runtime: 220 milliseconds

C:\PROJECTS\MISC\VS_2019_PAKET_TEST\ConsoleApp1>

-as I expected, it had nothing to do, since I already did a seemingly successful "paket install".

I will now delete:
C:\PROJECTS\MISC\VS_2019_PAKET_TEST\ConsoleApp1\paket.lock
C:\PROJECTS\MISC\VS_2019_PAKET_TEST\ConsoleApp1\packages
-and then do "paket install" again, as per:
C:\PROJECTS\MISC\VS_2019_PAKET_TEST\ConsoleApp1>rm -rf packages

C:\PROJECTS\MISC\VS_2019_PAKET_TEST\ConsoleApp1>rm paket.lock

C:\PROJECTS\MISC\VS_2019_PAKET_TEST\ConsoleApp1>
C:\PROJECTS\MISC\VS_2019_PAKET_TEST\ConsoleApp1>.\.paket\paket.exe install
Paket version 5.243.0
Resolving packages for group Main:
 - S.U.LRD 2.0.2
 - System.Diagnostics.EventLog 4.7.0
 - Microsoft.Win32.Registry 4.7.0
 - System.Security.Principal.Windows 4.7.0
 - Microsoft.NETCore.Platforms 3.1.0
 - System.Security.AccessControl 4.7.0
Locked version resolution written to C:\PROJECTS\MISC\VS_2019_PAKET_TEST\ConsoleApp1\paket.lock
Installing into projects:
 - Creating model and downloading packages.
 - Installing for projects
   - ConsoleApp1/paket.references -> ConsoleApp1/ConsoleApp1.csproj
Performance:
 - Resolver: 1 second (1 runs)
    - Runtime: 528 milliseconds
    - Blocked (retrieving package details): 193 milliseconds (6 times)
    - Blocked (retrieving package versions): 1 second (5 times)
    - Not Blocked (retrieving package versions): 1 times
 - Disk IO: 428 milliseconds
 - Average Request Time: 87 milliseconds
 - Number of Requests: 13
 - Runtime: 3 seconds

C:\PROJECTS\MISC\VS_2019_PAKET_TEST\ConsoleApp1>

-as can be seen above, all seems well.

I will now do a "paket restore", but first, I will delete
C:\PROJECTS\MISC\VS_2019_PAKET_TEST\ConsoleApp1\packages
C:\PROJECTS\MISC\VS_2019_PAKET_TEST\ConsoleApp1>rm -rf packages

C:\PROJECTS\MISC\VS_2019_PAKET_TEST\ConsoleApp1>.\.paket\paket.exe restore
Paket version 5.243.0
The last restore is still up to date. Nothing left to do.
Performance:
 - Runtime: 213 milliseconds

C:\PROJECTS\MISC\VS_2019_PAKET_TEST\ConsoleApp1>

Hmmmmm, that seems strange, why did paket "think" the current state of things is "good", and not do a restore...?  I deleted the entire packages dir. (along with all the packages/libraries).
I guess because nuget caches on...?:
C:\Users\georgeh\.nuget\packages
-ok, so now I do the following:
C:\PROJECTS\MISC\VS_2019_PAKET_TEST\ConsoleApp1>rm -rf C:\Users\georgeh\.nuget\packages

C:\PROJECTS\MISC\VS_2019_PAKET_TEST\ConsoleApp1>rm -rf packages

C:\PROJECTS\MISC\VS_2019_PAKET_TEST\ConsoleApp1>.\.paket\paket.exe restore
Paket version 5.243.0
The last restore is still up to date. Nothing left to do.
Performance:
 - Runtime: 212 milliseconds

-so to me the above seems wrong, as clearly I have deleted all my packages/DLLs...? Shouldn't paket detect something is "wrong", and attempt to "fix things" by doing a restore?
Ok, so now I will do a restore force, as per:
C:\PROJECTS\MISC\VS_2019_PAKET_TEST\ConsoleApp1>.\.paket\paket.exe restore -f
Paket version 5.243.0
Starting restore process.
Downloading S.U.LRD 2.0.2
Downloading System.Security.AccessControl 4.7
Downloading Microsoft.NETCore.Platforms 3.1
Downloading System.Diagnostics.EventLog 4.7
Downloading System.Security.Principal.Windows 4.7
Download of Microsoft.NETCore.Platforms 3.1 done in 887 milliseconds. (268 kbit/s, 0 MB)
Download of SynQor.UTILS.LoggerRotateDaily 2.0.2 done in 916 milliseconds. (287 kbit/s, 0 MB)
Downloading Microsoft.Win32.Registry 4.7
Download of System.Diagnostics.EventLog 4.7 done in 1 second. (2017 kbit/s, 0 MB)
Download of System.Security.Principal.Windows 4.7 done in 1 second. (3875 kbit/s, 0 MB)
Download of System.Security.AccessControl 4.7 done in 1 second. (3943 kbit/s, 0 MB)
Download of Microsoft.Win32.Registry 4.7 done in 490 milliseconds. (6177 kbit/s, 0 MB)
Performance:
 - Disk IO: 1 second
 - Average Download Time: 138 milliseconds
 - Number of downloads: 6
 - Average Request Time: 65 milliseconds
 - Number of Requests: 7
 - Runtime: 3 seconds

C:\PROJECTS\MISC\VS_2019_PAKET_TEST\ConsoleApp1>

-ok, that seems like it worked.

Now I will go into Visual Studio 2019, and do a Build -here are the results (failed):
Ouput:
1>------ Build started: Project: ConsoleApp1, Configuration: Debug Any CPU ------
1>C:\PROJECTS\MISC\VS_2019_PAKET_TEST\ConsoleApp1\ConsoleApp1\ConsoleApp1.csproj(7,3): error MSB4019: The imported project "C:\PROJECTS\MISC\VS_2019_PAKET_TEST\ConsoleApp1\.paket\Paket.Restore.targets" was not found. Confirm that the expression in the Import declaration "..\.paket\Paket.Restore.targets" is correct, and that the file exists on disk.
1>Done building project "ConsoleApp1.csproj" -- FAILED.
========== Build: 0 succeeded, 1 failed, 0 up-to-date, 0 skipped ==========

Error List:
Severity	Code	Description	Project	File	Line	Suppression State
Error	MSB4019	The imported project "C:\PROJECTS\MISC\VS_2019_PAKET_TEST\ConsoleApp1\.paket\Paket.Restore.targets" was not found. Confirm that the expression in the Import declaration "..\.paket\Paket.Restore.targets" is correct, and that the file exists on disk.	ConsoleApp1	C:\PROJECTS\MISC\VS_2019_PAKET_TEST\ConsoleApp1\ConsoleApp1\ConsoleApp1.csproj	7
Error		Project "C:\PROJECTS\MISC\VS_2019_PAKET_TEST\ConsoleApp1\.paket\Paket.Restore.targets" was not imported by "C:\PROJECTS\MISC\VS_2019_PAKET_TEST\ConsoleApp1\ConsoleApp1\ConsoleApp1.csproj" at (7,3), due to the file not existing.	ConsoleApp1	C:\PROJECTS\MISC\VS_2019_PAKET_TEST\ConsoleApp1\.paket\Paket.Restore.targets	7

It seems I continue to have the same error.

Here is more info for you:
C:\PROJECTS\MISC\VS_2019_PAKET_TEST\ConsoleApp1\ConsoleApp1>cat ConsoleApp1.csproj
<?xml version="1.0" encoding="utf-8"?>
<Project Sdk="Microsoft.NET.Sdk">
  <PropertyGroup>
    <OutputType>Exe</OutputType>
    <TargetFramework>netcoreapp3.1</TargetFramework>
  </PropertyGroup>
  <Import Project="..\.paket\Paket.Restore.targets" />
</Project>
C:\PROJECTS\MISC\VS_2019_PAKET_TEST\ConsoleApp1\ConsoleApp1>

C:\PROJECTS\MISC\VS_2019_PAKET_TEST\ConsoleApp1\ConsoleApp1>cd ..

C:\PROJECTS\MISC\VS_2019_PAKET_TEST\ConsoleApp1>cd .paket

C:\PROJECTS\MISC\VS_2019_PAKET_TEST\ConsoleApp1\.paket>dir
 Volume in drive C is Local Disk
 Volume Serial Number is 78C4-F86B

 Directory of C:\PROJECTS\MISC\VS_2019_PAKET_TEST\ConsoleApp1\.paket

04/14/2020  09:49 PM    <DIR>          .
04/14/2020  09:49 PM    <DIR>          ..
12/03/2018  07:00 PM            69,928 paket.bootstrapper.exe
04/14/2020  07:44 PM         8,711,936 paket.exe
               2 File(s)      8,781,864 bytes
               2 Dir(s)  95,857,336,320 bytes free

C:\PROJECTS\MISC\VS_2019_PAKET_TEST\ConsoleApp1\.paket>

-so the Paket.Restore.targets is being referenced in my C# project file (ConsoleApp1.csproj), but it doesn't exist in the .paket dir...?

Thanks for continuing to try to help me troubleshoot this issue.
As I've indicated I've used paket many times w/ Win7 & Visual Studio 2015, and never had any of these issues.
It is only since I moved to Win10 & Visual Studio 2019 that I can't seemingly get packet to work.
Thanks,
George H.
04/15/2020 5:00pm ET

So I tried to rebuild your problem.
I think your problem is, that on one hand you tell paket to not have the restore targets, but on the other hand you had the old version during project setup which included the targets file.
I would suggest, that you try to set up the project from scrach again. Going really from nothing to
paket init
dotnet new ...
paket install
paket restore
dotnet build (or VS build)

Hope this helps.
Or, if you feel like it you could also remove the <Import Project="..\.paket\Paket.Restore.targets" /> part from the *.csproj files yourself.

Hi ChrSteinert,
I still have the same issue, seemingly no matter what I do w/Visual Studio 2019...?
Thanks for having patience with me -I'm really trying to get this working.

Trying a different way, example:

Create a C# .Net Core 3.1 console application:

dotnet new tool-manifest

dotnet tool install Paket

dotnet paket init

Here is my dir. tree now:
C:\PROJECTS\MISC\VS_2019_PAKET_TEST\TEST_20200427_000>tree /f
Folder PATH listing for volume Local Disk
Volume serial number is 00540045 78C4:F86B
C:.
└───ConsoleApp1
    │   ConsoleApp1.sln
    │   paket.dependencies
    │
    ├───.config
    │       dotnet-tools.json
    │
    ├───ConsoleApp1
    │   │   ConsoleApp1.csproj
    │   │   Program.cs
    │   │
    │   ├───bin
    │   │   └───Debug
    │   │       └───netcoreapp3.1
    │   └───obj
    │       └───Debug
    │           └───netcoreapp3.1
    │                   ConsoleApp1.AssemblyInfo.cs
    │                   ConsoleApp1.AssemblyInfoInputs.cache
    │                   ConsoleApp1.csprojAssemblyReference.cache
    │
    └───paket-files

C:\PROJECTS\MISC\VS_2019_PAKET_TEST\TEST_20200427_000>

I added the following (highlighted):

I create the paket.references:

dotnet paket install

Here is my paket.lock file:

dotnet build

Here is my dir. tree now:
C:\PROJECTS\MISC\VS_2019_PAKET_TEST\TEST_20200427_000>tree /f
Folder PATH listing for volume Local Disk
Volume serial number is 00540045 78C4:F86B
C:.
└───ConsoleApp1
    │   ConsoleApp1.sln
    │   paket.dependencies
    │   paket.lock
    │
    ├───.config
    │       dotnet-tools.json
    │
    ├───ConsoleApp1
    │   │   ConsoleApp1.csproj
    │   │   paket.references
    │   │   Program.cs
    │   │
    │   ├───bin
    │   │   └───Debug
    │   │       └───netcoreapp3.1
    │   │               ConsoleApp1.deps.json
    │   │               ConsoleApp1.dll
    │   │               ConsoleApp1.exe
    │   │               ConsoleApp1.pdb
    │   │               ConsoleApp1.runtimeconfig.dev.json
    │   │               ConsoleApp1.runtimeconfig.json
    │   │
    │   └───obj
    │       │   ConsoleApp1.csproj.nuget.dgspec.json
    │       │   ConsoleApp1.csproj.nuget.g.props
    │       │   ConsoleApp1.csproj.nuget.g.targets
    │       │   project.assets.json
    │       │   project.nuget.cache
    │       │
    │       └───Debug
    │           └───netcoreapp3.1
    │                   ConsoleApp1.AssemblyInfo.cs
    │                   ConsoleApp1.AssemblyInfoInputs.cache
    │                   ConsoleApp1.assets.cache
    │                   ConsoleApp1.csproj.CoreCompileInputs.cache
    │                   ConsoleApp1.csproj.FileListAbsolute.txt
    │                   ConsoleApp1.csprojAssemblyReference.cache
    │                   ConsoleApp1.dll
    │                   ConsoleApp1.exe
    │                   ConsoleApp1.genruntimeconfig.cache
    │                   ConsoleApp1.pdb
    │
    └───paket-files
            paket.restore.cached

Notice how the above failed because it could not find:
C:\PROJECTS\MISC\VS_2019_PAKET_TEST\TEST_20200427_000\ConsoleApp1\.paket\Paket.Restore.targets
I understand why -because the .paket dir. was never created.
What am I doing wrong...?
Thanks,
George H.
04/27/2020 6:53pm ET

I suspect that you have mixed a global tool, and a per solution tool.
Can you try setting up the project again, but without creating a tool manifest and installing paket for the solution, but rather use the globally installed (dotnet tool install -g paket) Paket?

Hi,
I tried that (dotnet tool install -g paket), still the same issue.
I have tried to simplify the reproducibility of this issue as much as possible, so I created a new ticket (#3863 ) yesterday (06/10/2020).
I'm closing this ticket, and can you take a look/comment on the simplified ticket I created?
Thank you for taking a look at this, as I really want to use paket with .Net Core!
Thanks,
George H.
06/11/2020 3:49pm ET


Erro

[05-03-2016 7:36] System.Exception: Downloading stash for Hardcore Perandus, details logged to DebugInfo.log, please open a ticket at https://github.com/Stickymaddness/Procurement/issues
at POEApi.Model.POEModel.GetStash(String league, String accountName)
at Procurement.ViewModel.LoginWindowViewModel.LoadStashItems(Character character)
at Procurement.ViewModel.LoginWindowViewModel.d__6.MoveNext()
at System.Collections.Generic.List1..ctor(IEnumerable1 collection)
at System.Linq.Enumerable.ToList[TSource](IEnumerable`1 source)
at Procurement.ViewModel.LoginWindowViewModel.<>c__DisplayClass2.b__1()
at System.Threading.Tasks.Task.InnerInvoke()
at System.Threading.Tasks.Task.Execute()

Have you tried logging in with Procurement 1.9.8-RC1?
https://github.com/Stickymaddness/Procurement/releases/tag/1.9.8-RC1

Yes, same erro.
[05-03-2016 8:01] System.InvalidOperationException: Sequence contains no matching element
at System.Linq.Enumerable.First[TSource](IEnumerable1 source, Func2 predicate)
at POEApi.Model.ProxyMapper.GetOrbType(String name)
[05-03-2016 8:01] ProxyMapper.GetOrbType Failed! ItemType = Perandus Coin
[05-03-2016 8:01] System.Exception: ProxyMapper.GetOrbType Failed! ItemType = Perandus Coin
at POEApi.Model.ProxyMapper.GetOrbType(String name)
at POEApi.Model.Currency..ctor(Item item)
at POEApi.Model.ItemFactory.Get(Item item)
[05-03-2016 8:01] ItemFactory unable to instanciate type : Perandus Coin
[05-03-2016 8:01] Error downloading stash for Hardcore Perandus, exception details: System.Exception: ItemFactory unable to instanciate type : Perandus Coin
at POEApi.Model.ItemFactory.Get(Item item)
at POEApi.Model.Stash.<.ctor>b__0(Item item)
at System.Linq.Enumerable.WhereSelectListIterator2.MoveNext()    at System.Collections.Generic.List1..ctor(IEnumerable1 collection)    at System.Linq.Enumerable.ToList[TSource](IEnumerable1 source)
at POEApi.Model.Stash..ctor(Stash proxy)
at POEApi.Model.POEModel.GetStash(Int32 index, String league, String accountName, Boolean forceRefresh)
at POEApi.Model.POEModel.GetStash(String league, String accountName)
[05-03-2016 8:01] System.Exception: Downloading stash for Hardcore Perandus, details logged to DebugInfo.log, please open a ticket at https://github.com/Stickymaddness/Procurement/issues and include your DebugInfo.log
at POEApi.Model.POEModel.GetStash(String league, String accountName)
at Procurement.ViewModel.LoginWindowViewModel.LoadStashItems(Character character)
at Procurement.ViewModel.LoginWindowViewModel.d__6.MoveNext()
at System.Collections.Generic.List1..ctor(IEnumerable1 collection)
at System.Linq.Enumerable.ToList[TSource](IEnumerable`1 source)
at Procurement.ViewModel.LoginWindowViewModel.<>c__DisplayClass2.b__1()
at System.Threading.Tasks.Task.InnerInvoke()
at System.Threading.Tasks.Task.Execute()

Thanks for the second log, you can see the error is related to "Perandus Coin" which Procurement currently does not support.
I need to add support and release a new version which unfortunately may take a lot longer than the usual releases.
While not ideal, the best you can do until then if you want to use Procurement is to put your perandus coins in a separate tab and not download that tab with Procurement.

OK, Ty;


MSDKUI-2010 and MSDKUI-2055

Upgrade project to use Android Studio 3.4.2
Migrate to AndroidX
Fix of unit tests after gradle upgrade

Codecov Report

Merging #136 into master will increase coverage by 0.56%.
The diff coverage is n/a.

@@             Coverage Diff              @@
##             master     #136      +/-   ##
============================================
+ Coverage     73.08%   73.65%   +0.56%
+ Complexity     1644      986     -658
============================================
  Files           129       69      -60
  Lines          5674     3951    -1723
  Branches        874      440     -434
============================================
- Hits           4147     2910    -1237
+ Misses          859      797      -62
+ Partials        668      244     -424

Impacted Files
Coverage Δ
Complexity Δ

.../com/here/msdkui/routing/RouteDescriptionItem.java
89.68% <ø> (ø)
37 <0> (ø)
:arrow_down:

...a/com/here/msdkui/routing/TrafficOptionsPanel.java
79.16% <ø> (ø)
12 <0> (ø)
:arrow_down:

...va/com/here/msdkui/guidance/GuidanceSpeedData.java
90.24% <ø> (ø)
20 <0> (ø)
:arrow_down:

...sdkui/routing/SimpleTransportModePanelAdapter.java
79.48% <ø> (ø)
10 <0> (ø)
:arrow_down:

...a/com/here/msdkui/routing/RoutingOptionsPanel.java
0% <ø> (ø)
0 <0> (ø)
:arrow_down:

...ava/com/here/msdkui/routing/RouteOptionsPanel.java
86.84% <ø> (ø)
28 <0> (ø)
:arrow_down:

...m/here/msdkui/routing/RouteDescriptionHandler.java
0% <ø> (ø)
0 <0> (ø)
:arrow_down:

...com/here/msdkui/guidance/GuidanceManeuverUtil.java
62.12% <ø> (ø)
22 <0> (ø)
:arrow_down:

...here/msdkui/routing/TransportModePanelAdapter.java
100% <ø> (ø)
9 <0> (ø)
:arrow_down:

...src/main/java/com/here/msdkui/common/BaseView.java
81.25% <ø> (-12.5%)
5 <0> (-1)

... and 69 more

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 751ab29...5e2ce63. Read the comment docs.


Please add "release" to the manpage

The release command is not covered in the manpage.

Yes, this is intentional. release is still in "beta" and will be documented once we finalize its parameters. Thanks for asking us about this!


PHP 8 Attributes

It would be cool if we could use PHP 8 Attributes for defining the schema

In progress - https://github.com/spiral/attributes

P.S. Current state and roadmap: https://github.com/spiral/framework/issues/351

Done in https://github.com/cycle/annotated/pull/17


use some null propagation

Hi @SimonCropp thanks for all your contributions in a row!
For this one though, I'm not that positive, let me explain.
I use that same pattern a lot, for both mca (MemoryCacheAccessor), dca (DistributedCacheAccessor) and bpa (BackplaneAccessor), and I like that the same code pattern is used for all of them and all is uniform.
And I cannot use ?. because it cannot be used with multiple lines, since it cannot be coalesced into a simple ?.. The alternative is that I would have to repeat it for every line.
For example with dca I commonly have multi-lines code, like this:
if (dca is not null)
{
	var dcaSuccess = false;
	try
	{
		if (dca.IsCurrentlyUsable(operationId, key))
		{
			dcaSuccess = await distributedCacheAction(dca, isBackground, ct1).ConfigureAwait(false);
		}
	// ...

Same thing for bpa:
if (bpa is not null)
{
	var bpaSuccess = false;
	try
	{
		if (bpa.IsCurrentlyUsable(operationId, key))
		{
			bpaSuccess = await backplaneAction(bpa, isBackplaneBackground, ct2).ConfigureAwait(false);
		}
	}
	// ...

So I think I prefer to keep the codebase as uniform as possible.
Also in this case there are no perf gains, since the lowered code is identical.
But I'm open to a discussion, what do you think?

fair enough. lets close this one


Adding GC stats to runmetrics plugin

Solves (hopefully): https://github.com/census-instrumentation/opencensus-go/issues/1188

@googlebot I signed it!

@googlebot I fixed it

@TrevinTeacutter would you mind updating this branch one more time, so that Github Actions can run CI? Thanks again for your patience!

@punya np and done!


NETCDF - Resource temporarily unavailable

I'm trying to use dask to load a NetCDF file from ECMWF*. However, I get a RuntimeError: Resource temporarily unavailable exception thrown when I run this script:
from dask import array as da
from netCDF4 import Dataset

ds = Dataset('_grib2netcdf-atls01-a562cefde8a29a7288fa0b8b7f9413f7-Bbb1Q9.nc')
a = da.from_array(ds.variables['swh'], chunks=(50, 50, 50))
r = a.mean().compute()
ds.close()

I've tried googling around but not been successful in finding a solution.
I'm using netCDF4 1.2.9 and dask 0.15.2.
Here's the stack trace:
Traceback (most recent call last):
  File "/path/to/file.py", line 7, in <module>
    r = a.mean().compute()
  File "~/.pyenv/versions/3.6.2/lib/python3.6/site-packages/dask/base.py", line 99, in compute
Error 11: Resource temporarily unavailable
Error 11: Resource temporarily unavailable
Error 11: Resource temporarily unavailable
    (result,) = compute(self, traverse=False, **kwargs)
  File "~/.pyenv/versions/3.6.2/lib/python3.6/site-packages/dask/base.py", line 206, in compute
    results = get(dsk, keys, **kwargs)
  File "~/.pyenv/versions/3.6.2/lib/python3.6/site-packages/dask/threaded.py", line 75, in get
    pack_exception=pack_exception, **kwargs)
  File "~/.pyenv/versions/3.6.2/lib/python3.6/site-packages/dask/local.py", line 521, in get_async
    raise_exception(exc, tb)
  File "~/.pyenv/versions/3.6.2/lib/python3.6/site-packages/dask/compatibility.py", line 60, in reraise
    raise exc
  File "~/.pyenv/versions/3.6.2/lib/python3.6/site-packages/dask/local.py", line 290, in execute_task
    result = _execute_task(task, data)
  File "~/.pyenv/versions/3.6.2/lib/python3.6/site-packages/dask/local.py", line 271, in _execute_task
    return func(*args2)
  File "~/.pyenv/versions/3.6.2/lib/python3.6/site-packages/dask/array/core.py", line 54, in getter
    c = a[b]
  File "netCDF4/_netCDF4.pyx", line 3823, in netCDF4._netCDF4.Variable.__getitem__ (netCDF4/_netCDF4.c:40266)
  File "netCDF4/_netCDF4.pyx", line 4649, in netCDF4._netCDF4.Variable._get (netCDF4/_netCDF4.c:52088)
RuntimeError: Resource temporarily unavailable

Looks like a problem with multiple processes/threads accessing the *.nc file simultaneously - but unsure how to go about resolving that - as I assume that would be handled on the library level.
Thanks.

* you do need to make an account to download this file.

Try from_array(..., lock=True) to add a lock into the mix.
You might also want to try the XArray project, which has already thought deeply about many of these issues and uses Dask array internally.

@mrocklin Thanks for the quick response. Feel kind of silly that it was a missing parameter; should have done a better job looking. The XArray project also looks quite nice, so thanks for the suggestion.


sugar feature: string length

🚀 Feature Proposal
Add a .length(24) method as a shortcut for min + max length.
Motivation
Right now to add a check for a string I need to write:
S.string().minLength(24).maxLength(24)

Example
S.string().length(24)

WDYT?

I like the idea of having shortcuts. However, diverging from the JSON Schema API could bring issues in the future.
What if length would be added in the spec with a different meaning?
As well the saving or the productivity boost isn't that much.
Maybe you could have a shortcut definition for your usecase
const sLenght = (length) => S.string().minLength(length).maxLength(length)
S.object().prop('foo', sLenght(24))


Gather production data

Related: #21, #4

I’d like to gather production, i.e. any and all information of the current production on a particular machine.
It could include the following information:

number of produced pieces:

Something like this? I don't remember if these parameters are global or if each execution path has their own counts (TODO). If each path holds their own counts then it would become fanuc/{machine}/numberOfPieces/1, fanuc/{machine}/numberOfPieces/2, ...
await Peel("numberOfPieces",
    await SetNative("produced", await platform.RdParamDoubleWordNoAxisAsync(6711)),
    await SetNative("producedLife", await platform.RdParamDoubleWordNoAxisAsync(6712)),
    await SetNative("remaining", await platform.RdParamDoubleWordNoAxisAsync(6713)));

we can already gather the following data, but it would be nice to publish them in a single packet:

fanuc/{machine}/6711/{path} (number of pieces produced);
fanuc/{machine}/6713/{path} (number of pieces to be produced)
fanuc/{machine}/6712/{path} (total number of pieces produced);

note that on the only 2-path machine I have access to, on path 2, all three values (6711-6713) are equal to 0, therefore I only need the values of path 1, but I cannot speak of all machines;,

currently executed program name (cnc_rdprgnum and cnc_exeprgname):

it might be a good idea to provide the times when a program is loaded (into memory), unloaded, started (run), stopped (error or waiting operators input), ended (finished the production of all pieces to be produced [6713]), but that all could be calculated outside of fanuc-driver);

and possible any data related to the production (like program execution progress, etc).

The ThreeWay collector accomplishes this.


Replaced postgres with mongodb

Mongo C# Driver doesn't fully support Native AOT, co close the PR but keep the branch for now


u2f-api script should be moved to npm/webpack

Feature Description
There is a unversioned copy of what I think is a minified version of u2f-api that came in https://github.com/go-gitea/gitea/pull/3971. It should be moved to npm/webpack to become maintainable.
Maybe @jonasfranz can point out the source/version of this script.

I believe the code comes from https://github.com/github/u2f-api/blob/master/u2f-api-polyfill.js
Some fingerprints:
"U2F isn't supported over http, only https"
"U2F not supported"
ensureSupport
isSupported
formatRegisterRequest_

And most u2f-api we can find in npm they are all copied and modified from that one, they share same API interfaces, like:

https://www.npmjs.com/package/u2f
https://www.npmjs.com/package/u2f-api

As reported in

https://github.com/go-gitea/gitea/issues/17754

Maybe we should refactor this module too.

I think it needs to be changed to use webauthn, see https://github.com/go-gitea/gitea/issues/6892.

@silverwind So maybe we could close this one and just continue in #6892, we could remove u2f-api and introduce webauthn in the same PR.

Yes, u2f removal can come with the webauthn addition.


Error : Help to solve it

Instance created. Preparing to start...
Instance is starting. Propagating network configuration...
Network configuration propagated
2024-04-28 14:03:33 INFO     BypassFlare 2024.04
2024-04-28 14:03:33 INFO     Testing web browser installation...
2024-04-28 14:03:33 INFO     Platform: Linux-5.10.184-x86_64-with-glibc2.31
2024-04-28 14:03:33 INFO     Chrome / Chromium path: /usr/bin/chromium
2024-04-28 14:03:33 INFO     Chrome / Chromium major version: 120
2024-04-28 14:03:33 INFO     Launching web browser...
2024-04-28 14:03:35 INFO     BypassFlare User-Agent: Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/<IP_ADDRESS> Safari/537.36
2024-04-28 14:03:35 INFO     Test successful!
2024-04-28 14:03:35 INFO     Serving on http://<IP_ADDRESS>:5000
Instance is healthy. All health checks are passing.
2024-04-28 14:06:28 INFO     2402:8100:25cb:5951::b5cc:b4fd GET https://dirty-agneta-studentworks3.koyeb.app/ 200 OK
2024-04-28 14:08:40 INFO     Incoming request => POST /v1 body: {'cmd': 'request.get', 'url': 'https://olamovies.life/generate/?id=32994', 'maxTimeout': 60000}
2024-04-28 14:08:42 INFO     Challenge detected. Title found: Just a moment...
2024-04-28 14:09:45 ERROR    Error: Error solving the challenge. Timeout after 60.0 seconds.
2024-04-28 14:09:45 ERROR    module 'utils' has no attribute 'get_flaresolverr_version'
2024-04-28 14:09:45 INFO     <IP_ADDRESS> POST https://dirty-agneta-studentworks3.koyeb.app/v1 500 Internal Server Error

I will fix it later


Negative-value window handles not supported

Describe the bug
When using "win:" as source, the targeted application is not recorded if its handle is a negative number. In case anyone is wondering, yes, negative window handles are valid.
To Reproduce
Start a Windows GUI application and hope it has a negative winhandle. Then try initiating a recording with captura-cli -s-ource win:${hWnd}
Expected behavior
A recording should start, but it doesn't.
Desktop (please complete the following information):

OS: Windows 10

Additional context
Looking at the code, looks like a small regex change will fix this. Replacing ^win:\d+$ with ^win:-?\d+$ should do the trick.

Thank you for reporting the issue. A fix has been done.


Make a design to contain caption on top of photo as an overlay

Given a photo album of 15 or more images, design a gallery view to showcase them on landing page.

Captions would not be more than 1 line.
You have freedom to pick your color palette on dark / bright images.
Captions are preferred in the bottom, on top of the image, below image show for representation:

##Steps to contribute

Fork this repo.
Add your images and designs in a new folder (with your name preferably) under assets folder.
Also create a README.md file for your folder describing why your design will best suit for gallery view according to you.
Submit your PR

Thank you.

Hi @anushas-dev, could you assign me this issue and give me more details about the requirements.

Hi @anushas-dev, could you assign me this issue and give me more details about the requirements.

@william-monroy thank you for your interest, I've updated the details to the issue. Feel free to design something of your interest, no strict requirements.

Great work @william-monroy, thank you for your contribution!

Thanks @anushas-dev, could you add the hacktoberfest-accepted label please?


Handling of Constraints - Max/Mix Value Instead

Hi,
Thank you for always being so prompt with responses in the past. I have a quick question about using constraints.
I can see in the examples that you can set a constraint to a specific number - for example:
solution.constraints[0] = 1.0 - (x1 * x1 + x2 * x2) / 225.0
However, in my problem I have a maximum value (0.15) that my x1 can be as a constraint:
solution.constraints[0] = x1 <= 0.15
I was not sure how to implement that and if it is possible. From what I read from the documentation for JMetalPy you are using the implementation proposed in 'A fast and elitist multiobjective genetic algorithm' for the handling constraints which supports such a scenario.
Could you please give me some guidance on how to achieve using a max value as a constraint if possible? Thanks in advance for your input.
Kind regards,
Mila

I have the same question and look forward to your reply.

Sorry @milagoranova for not responding before.
Every constraint must be expressed as an unequality of type "expression >=0.0". This way, when "expression < 0.0" then it is considered as a constraint violation, and the overall constraint violation degree of a solution can be computed with this function:
def overall_constraint_violation_degree(solution: Solution) -> float:
    """
    Returns the constraint violation degree of a solution, which is the sum of the constraint values that are not zero
    :param solution:
    :return:
    """
    return sum([value for value in solution.constraints if value < 0])

This function is used in the DominanceComparator class according to the scheme for constraint handling defined in Deb et al. paper (http://www.iitk.ac.in/kangal/Deb_NSGA-II.pdf), Section IV.A. You can see some examples of constrained problems in Table V and how they are implemented in jMetalPy (problem SRN and TNK in the table are named Srinivas and Tanaka in jMetalPy).

Thank you, but I find that sometimes the final solution still violates the constraints. Why? Can we abandon the infeasible solution.

That happens when the metaheuristic is unable to find feasible solutions, and the reason may be due to the problem (the constraints make the feasible search space very difficult to find) or to the algorithm (it is not properly configured). If have found some cases where a minimum of 100000 function evaluations have been needed to find the first feasible solution.
When all the solutions in the population violates some constraint then the problem becomes single-objective, as the metaheuristic will try to find the solutions having the smallest overall constraint violation degree. For that reason the infeasible solutions cannot be removed.
Which algorithm are you using?

Thanks for the detailed responses ajnebro. I implemented my constraints using NSGA-II with two objectives and dominance_comparator= DominanceComparator() and worked as expected.
I was wondering if there is an implementation for constraints handling for the single objective Evolutionary Strategy algorithm. I've successfully implemented an experiment with NSGA-II with a single objective, but I wanted to compare the solutions with ones from the Evolutionary Strategy algorithm.

The issue is that the evolution strategy uses a sort in the replacement() method that does not take into account the constraints:
81        population_pool.sort(key=lambda s: (s.objectives[0]))

Just try to change the sentence by:
81        population_pool.sort(key=lambda s: (-overall_constraint_violation_degree(s), s.objectives[0]))

You should include this import to make it working:
from jmetal.util.constraint_handling import overall_constraint_violation_degree

Feel free to try to see whether it works. I haven't tested it because currently we don't have any constrained single objective problem in jMetalPy.


Added possibility for assigning RazorPagesRootDirectory through BreadcrumbOptions

In reference to issue #56 , one use case that results to changing the default razor pages root directory if a project is utilizing FeatureFolders  and then the razor pages root directory is also changed to use Features folder.
services.AddRazorPages(options =>
{
    options.RootDirectory = "/Features";
});

Now we can set which root directory SmartBreadcrumbs is used through BreadcrumbOptions
services.AddBreadcrumbs(Assembly.GetExecutingAssembly(), options =>
{
    options.RazorPagesRootDirectory = "Features";
});

Hello, thank you for the PR!
Can you please fix the failing unit test?

Hello @zHaytam ... all good to go! It is worth mentioning that I moved the test case I created for this change to a separate class to ensure having a self-contained context for unit tests when default RazorPagesRootDirectory is modified.

Thank you @ahmedatia !
I will create update NuGet today.

Version 3.4 is online!


Dependency issue with npm v2.14

root@karl:/var/www/html/laravel5-angular-material-starter# npm install -g gulp bower
^Croot@karl:/var/www/html/laravel5-angular-material-starter# npm install
npm WARN package.json @ No repository field.
npm WARN package.json @ No license field.
npm WARN unmet dependency /var/www/html/laravel5-angular-material-starter/node_modules/laravel-elixir requires<EMAIL_ADDRESS>but will load
npm WARN unmet dependency /var/www/html/laravel5-angular-material-starter/node_modules/gulp-minify-css,
npm WARN unmet dependency which is version 0.3.13

Hi @applecrusher
Thanks for reporting this.
Did your npm install command crash? or these were simple warnings that were thrown out on the screen?
Because it's fine to get warnings when running npm install.

Feel free to re-open if this if it's still having issues
Thanks!


fix: bundle "set- cookie-parser" to prevent module resolution issues

fixes #62
Instead of externalizing set-cookie-parser which has no esm shipped code, this bundles it into headers-polyfill - which should alleviate issues with non-esm environments and esm environments

Released: v3.2.2 🎉
This has been released in v3.2.2!

📄 Release notes
📦 npm package

Make sure to always update to the latest version (npm i headers-polyfill@latest) to get the newest features and bug fixes.

Predictable release automation by @ossjs/release.


Bug in roledb use of repository_name in get_role_paths and get_delegated_rolenames

Here and here, there are calls from roledb functions to _check_rolename() that do not employ the repository_name argument, even though the functions they are being called from accept a repository_name argument and are thus intended to operate with support for multiple repositories.
The immediate effect is that get_delegated_rolenames and get_role_paths do not correctly function when using multiple repositories: they will always pull from the default repository instead.
I'm fixing this in awwad/tuf:pinning (just this and this commit), along with the other fixes for full TUF support of multiple repositories. You may want to fix it here as well, since it's easy and it may be a little while before my TUF fork is merged.

Thanks for reporting this issue.
Fix provided here: https://github.com/theupdateframework/tuf/pull/415/files?w=1


[BUG, Crash] Browser crash on trying to view PDF file in "--single-process" mode

Bug Description:
Browser crashes, if user try to open PDF file in --single-process mode.
Additional info:
This different from another known PDF issues.
Because in --process-per-site mode it opens successfully. On XP.
To Reproduce:

use --single-process cmdline switch
open example PDF:
https://mazda.co.id/media/15zgz2ia/mazda-indonesia-pricelist-jakarta-2024_with-color-chart.pdf

Screenshots:
crashdump callstack and related source code:

Config:

OS: XP 32-bit
Browser ver: v122-hf: https://github.com/win32ss/supermium/releases/tag/v122-hf
chrome.dll: latest available (17.03.2024) : https://github.com/win32ss/supermium/releases/download/v122-dbg/122_new_pdb_32.7z

UPD: Have seen small fix today in this commit:
https://github.com/win32ss/supermium/commit/aeb6ceca21496ce6e22b34759569d1a1285bd996

Unfortunately I found that there are still some memory allocation issues when viewing some PDFs in --single-process mode. Honestly, upstream has neglected this mode considerably and it will take some time to improve it.


Inline type desc parsed as a member access expression

Description:
type Student record {|
    int id;
|};

type StudentArr Student[];

public function foo(string inputFile) returns error? {
    json j = {};
    Student[] _ = check j.fromJsonWithType(Student[]); // @error invalid operation: type 'typedesc<Student>' does not support member access

    typedesc _ = typeof map<Student>;
    typedesc _ = typeof Student[];
}

parsed as
type Student record {|
    int id;
|};

type StudentArr Student[];

public function foo(string inputFile) returns error? {
    json j = {};
    Student[] _ = check j.fromJsonWithType(Student[ MISSING[]]);

    typedesc _ = typeof  MISSING[<]map<Student> MISSING[>] MISSING[];
    typedesc _ = typeof Student[ MISSING[]];
}

Steps to reproduce:
Affected Versions:
2201.1.0
OS, DB, other environment details and versions:
Related Issues (optional):

Suggested Labels (optional):

Suggested Assignees (optional):

Currently only the following simple types are allowed in the typeof-expression
https://github.com/ballerina-platform/ballerina-spec/issues/797#issuecomment-810917172

As per the spec https://ballerina.io/spec/lang/2022R1/#section_5.5.5;

Referencing an identifier defined by a type definition in an expression context will result in a type descriptor value.

It should be a type reference. Hence, closing.


run gulp and php unit test failed

Hi i got a fresh new install of your repo
why is your test failing? Sorry but i need to know why
[17:58:39] Starting 'phpUnit'...

Fetching PhpUnit Source Files...
   - tests/**/*Test.php

[17:58:39]

       *** Debug Cmd: .\vendor\bin\phpunit --colors --debug -c phpunit.xml ***

210
[17:58:39] '.\vendor\bin\phpunit' is not recognized as an internal or external command,
operable program or batch file.

[17:58:39] { [Error: Command failed: C:\Windows\system32\cmd.exe /s /c ".\vendor\bin\phpunit --colors --debug -c phpunit.xml"
'.\vendor\bin\phpunit' is not recognized as an internal or external command,
operable program or batch file.
]
  killed: false,
  code: 1,
  signal: null,
  cmd: 'C:\\Windows\\system32\\cmd.exe /s /c ".\\vendor\\bin\\phpunit --colors --debug -c phpunit.xml"' }
[17:58:39] gulp-notify: [Red!] Your phpUnit tests failed!
[17:58:39] Finished 'phpUnit' after 57 ms

Hi @masterpowers
Sure thing.
From this error log fragment: '.\vendor\bin\phpunit' is not recognized as an internal or external command, operable program or batch file. it seems that you don't have local phpunit installed..
Are you running composer install --no-dev?
Also please paste in your composer.json

this is my composer.json file
{
	"name": "jadjoubran/laravel5-angular-material-starter",
	"description": "Laravel 5 angular material starter project with elixir setup",
	"keywords": ["laravel", "angular", "material", "starter", "ui-router", "api"],
	"license": "MIT",
	"type": "project",
	"require": {
        "php": ">=5.5.9",
		"laravel/framework": "5.1.*",
		"barryvdh/laravel-debugbar": "~2.0",
	    "tymon/jwt-auth": "0.5.*",
		"dingo/api": "1.0.x@dev"
	},
	"require-dev": {
        "fzaninotto/faker": "~1.4",
        "mockery/mockery": "0.9.*",
        "phpunit/phpunit": "~4.0",
        "phpspec/phpspec": "~2.1"
	},
	"autoload": {
		"classmap": [
			"database"
		],
		"psr-4": {
			"App\\": "app/"
		}
	},
	"autoload-dev": {
		"classmap": [
			"tests/TestCase.php"
		]
	},
	"scripts": {
		"post-install-cmd": [
			"php artisan clear-compiled",
			"php artisan optimize"
		],
		"post-update-cmd": [
			"php artisan clear-compiled",
			"php artisan optimize"
		],
		"post-create-project-cmd": [
			"php -r \"copy('.env.example', '.env');\"",
 			"php -r \"unlink('code_of_conduct.md');\"",
 			"php -r \"unlink('CHANGELOG.md');\"",
 			"php -r \"unlink('.codeclimate.yml');\"",
 			"php -r \"unlink('.travis.yml');\"",
			"php artisan key:generate",
			"php artisan jwt:generate"
		]
	}
}

im not running composer install --no dev
im just using the normal composer install

i try to run php unit and got this Ok , but for Gulp still failing
C:\Users\Andrew Galang\Code\rfnbeta>phpunit
PHPUnit 4.8.10 by Sebastian Bergmann and contributors.

......

Time: 5.63 seconds, Memory: 15.75Mb

OK (6 tests, 17 assertions)

Maybe you can the fix described here
If it doesn't work, try installing php unit globally:
composer global require "phpunit/phpunit=4.0.*"

I just saw your comment.
So it means the first suggestion should fix it - npm cache clear and then npm install

still got the same results it failed

this is what is inside gulpfile.js
elixir(function(mix){
	mix
		.bower()
		.angular('./angular/')
		.less('./angular/**/*.less', 'public/css')
		.copy('./angular/app/**/*.html', 'public/views/app/')
		.copy('./angular/directives/**/*.html', 'public/views/directives/')
		.copy('./angular/dialogs/**/*.html', 'public/views/dialogs/')
		.livereload([
			'public/js/vendor.js',
			'public/js/app.js',
			'public/css/vendor.css',
			'public/css/app.css',
			'public/views/**/*.html'
		], {liveCSS: true})
		.phpUnit();
});

if i remove phpUnit(); is doesnt throw error, but with it when u test it failed
dont know why

Please check if this stackoverflow fixes it.
This is not a problem with this package. If you run a few installation for Laravel and add .phpUnit() to your gulpfile you're going to see the same error.
Please update this thread if you were able to solve it
Thanks!

what's the solution?I same issue.

@mzvast make sure you did the following:

fix your database credentials in your .env file (also make sure you have a test database)
run the migration php artisan migrate

then if you run the tests it should work


Entity Framework

Entity Framework Core has some serious limitations compared to Entity Framework 6.x, so people have been asking that both are included.
We'll have to do some research to determine the actual differences so that appropriate use cases can be created.

Open question: how should the entities be created? Are EDMX files still the right way to go for EF 6.x? Or is code-first preferable?

code first is preferable, see limitations: https://www.llblgen.com/Documentation/5.6/Entity Framework/V56/PresetsAvailable.htm#limitations-of-entity-framework-v6-on-.net-standard-2.1

Ref: https://docs.microsoft.com/en-us/ef/ef6/modeling/code-first/workflows/existing-database?redirectedfrom=MSDN#3-reverse-engineer-model


SyntaxError has undefined stack property

It would be useful if the SyntaxError thrown by pegjs had the stack property:
this.stack = new Error().stack;

Makes sense, custom errors should not be distinguishable from native ones in this regard. Some reference material:

Error.prototype.stack documentation
Inheriting from the Error object - where is the message property?

It would be great if you or anyone could create a patch. My requirements:

Works for both GrammarError (thrown by PEG.buildParser) and SyntaxError (thrown by generated parsers).
Works in environments where Error.prototype.stack is not supported (in particular, IE 8-9).
The stack trace looks exactly the same as if Error was thrown instead of SyntaxError/GrammarError.

I implemented a fix which adds the missing stack property. But I didn't pay attention to IE 8-9 so far. In my current implementation the property is set to undefined.
What is the expected behaviour if the browser doesn't support a feature?

What is the expected behaviour if a browser doesn't support a feature?

@mbaumgartl I’ll quote myself:

Makes sense, custom errors should not be distinguishable from native ones in this regard.

So if IE sets stack to "bananas" when new Error is called, PEG.js should do the same. If it doesn’t set it at all, PEG.js should do the same.


Ledger Nano S Support

Enable Ledger Nano S support by allow the Key Management interface to init with it, and implementing the signTransaction method.
Refer to Yoroi for an existing implementation.

Relevant bridge code: https://github.com/Emurgo/yoroi-extension-ledger-bridge
We won't need the u2f workaround, but we will need a node transport for server side


Nodes in qualified names should have better coverage [phab:T171]

Created by zarko at 2016-10-06 00:52:43:
class C {
 public:
  static void bar() { }
};

int foo() {
  //- C ref _
  C::bar();
}

salguarnieri wrote at 2016-12-09 01:51:53:
zarko is this still open?

revision #1465


Replaced "REP bond" with "Creation bond"

This is never called the creator bond, in the UI its called the "no-show" bond.WE neve

@pgebheim
Thank you for checking this pull request.
I still think the bond should be called ”creation bond”.
My understanding is that the bond, which is paid by REP when creating a market, is the maximum of the no-show bond and the designated reporter bond.
That is mentioned in this block of the whitepaper.

So, I don't think that "no-show bond" correctly express the meaning of the bond.
And the reason why I call the bond "creation bond" (not "creator bond"), because I heard that devs go with "creation bond".(Reference: https://discordapp.com/channels/378030344374583298/617739423920029779/752789093297160262)

You know, you're actually correct. I'll merge this.


Write guide articles for related events

(note: this story is just a placeholder for now and needs more definition)
Many events form closely related groups. For example:

transition events
animation events
clipboard events

In the event reference we have a docs page for each event, but we don't have a place to talk about how the different events fit together: for example, the order they go in and which events in a group fire in different situations.
We should have guide pages for groups of events that covers this kind of stuff, that we can link to from the event reference pages. They don't have to be super-detailed.

Also mouse events and touch events.


Progress notification when comparing folders

Currently the compare folders task is fairly silent sans the Output log. Can we get a spinner and/or [preferred] a progress indicator as an long-term VS Code notification? This would help me know that something is happening, it's not stuck somewhere, and how long it might be until it's done. I'd prefer a notification over yet-another menu bar indicator.

What do you think?
A
https://github.com/user-attachments/assets/fc4a26db-36f6-4008-a404-e7d698781e25
B
https://github.com/user-attachments/assets/4658bad1-5f68-499a-88c9-6d4a2d4d1efc

Either option works with me. I like option B better personally as it should be able to be stacked into the hidden notification area.


Loading lists (encounters, habitat-uses) takes a long time when offline

Bug description
When opening encounters or habitat uses it takes a long time to load when offline (10 seconds plus).
Expected behavior
Data should load very quickly from cache when offline.
Actual behavior
Data takes a long time to load or does not load at all.
Steps to Reproduce

Disable internet connection.
Load encounters or habitat-uses pages.

As the problem does not happen every time these pages are loaded you may need to switch between pages several times to reproduce the issue.
Device, OS and browser details
Observed on iPad and Chrome browser in Windows.
Additional notes
This may be a fix: https://github.com/invertase/react-native-firebase/issues/3491#issuecomment-658245828

 window.addEventListener("offline", (e) => {
          firestore.firestore.disableNetwork();
        });

        window.addEventListener("online", (e) => {
          firestore.firestore.enableNetwork();
        });

Adding the above code to the first useEffect in firebaseContext.js seems to fix the issue.

When loading the page offline the 'open in multiple tabs' error shows. This could be caused by the following part of the solution:
if (!window.navigator.onLine) {
  this.firestore.disableNetwork();
}

The purpose of this was to disable the network if the app starts offline however it seems to break enableOfflineStorage


Script for running generation

Is it possible to update generation.py such that it can run just by providing command line arguments, similar to how retrieval script works?
I am not sure what is the purpose of input_dir and model_name_or_path variables. If I defined a model_name in command line arguments I would expect that model name to be used to pull the model from HF.
Also, where can I get trec files that are supposed to be in results_root_dir dir? I cannot see them on HF collection.
Thank's for the answers in advance! :)

@cagey-squirrel Hey! We've updated generate.py to make its logic and guidance much clearer. Feel free to check it out and give it a try—hope it helps!


Unsound VM lifetime

VM has a lifetime 'a. This lifetime is arbitrary – it is chosen by the caller with no restrictions. This means it can outlive the VM, but other structs assume the VM is life for 'a. This is unsound.
Segfaulting example:
    let mut vm = create_base_vm(DEFAULT_MAX_MEMORY);
    let call_stack = vm.allocate_call_stack();
    let main_method = vm
        .resolve_class_method(
            call_stack,
            "rjvm/SimpleMain",
            "main",
            "([Ljava/lang/String;)V",
        )
        .expect("should find main method");
    drop(vm);
    println!("{main_method:?}");

Possible solutions:

Remove lifetime from VM. All methods that produce lifetimed objects take their lifetime from the reference to the VM.
Remove lifetime from VM. Keep VM in an Arc. Erase lifetimes internally. Don't hand out structs referencing VM memory directly, instead hand out a wrapper object that also contains a copy of the Arc (this can be transparent to the user).

I don't think I am going to fix this honestly, it sounds too much work and I consider the project "finished" (in the sense that I learnt what I had in mind initially and I want to move on to other things).
In any case, solution 1 is pretty clear to me.
I am a bit uncertain on solution 2: what do you mean with erase lifetimes internally? Can you point out to any example or just sketch a few lines of code?
Thanks a lot!


Clear Cached Device Token on Unregister

When unregistering the access token with Twilio, the cached device token should also be cleared so that the app can then re-register when reinitializing with a new token. In the event that the unregistration call results in an error, the cached token is restored

I suggest clearing it on successful unregistration instead of first clearing and then saving back on failure. Also, you can actually remove it with [[NSUserDefaults standardUserDefaults] removeObjectForKey:kCachedDeviceToken];

Thank you for the suggestion on the proper way to remove the token. I have updated the PR with that change in place. As for the approach, I originally had the token removed in the success callback but was encountering race conditions where I was trying to reinitialize before the unregister was completed which resulted in the registration logic not being executed inside if (![cachedDeviceToken isEqualToString:deviceTokenString]) {...}

@fabriziomoscon Can this Pr be merged into v3?


file upload to datasource with custom code

I have recently discovered the data manupiulation panel and  I'm very impressed about the abitlity of writing data directly to a datasource. Would it be possible to write file content base64  encoded (e.g. *.pdf douments) to a datasource directly from custom code. I didn't find any infomation in the documentation or code examples.  It would be great if someone could give me some support to make it work.

@pagules Thank you for opening the issue.
We will add an example in the upcoming blog post.

this is good news , I will watch the blog post entries for further information


What is the deal with wrapConsoleMethod() ?

I noticed recently that raven now wraps up all the console methods, but I do not see any documentation that describes why? or how it could possibly be useful? Has anyone come across this yet and could point me to some documentation on its use?
the issue I come across is I can no longer do simple debugging with console.log() .. the source becomes raven.js and i can no longer track where in my code it is eminating from?
Originally posted on the docs repo, then closed

@grapho – console statements are collected and passed as breadcrumbs.
I can see how it can be irritating that, as a result of instrumenting console.log, the URL in devtools will no longer take you to the original log statement in your source. We could make instrumenting console.log optional. Or alternatively, introduce Raven.log as an alternative API for recording your own breadcrumbs.

@benvinegar  I promise I am not irritated... if there is a way i can use the breadcrumbs or an equivilant api in a development setting..  place of console.log, i would love to know how?

i could get used to placing breakpoints and debugger statments instead.. if that is the perfered work around?

I guess I rarely actually used the link to the console statement and didn't even notice it was gone :) I personally use the Chrome debugger most of the time.

if there is a way i can use the breadcrumbs or an equivilant api in a development setting

You can use Raven.captureBreadcrumb today if you just want to set a breadcrumb. The API isn't really fleshed out though yet. This is still a new feature and we're still trying to work out some bits.
If this is not a serious blocker, I'd like to keep this issue open for a bit and see if we get any more feedback.

I think this is a major issue, especially that its not documented anywhere and can't be disabled.
There might be tons of console.log that we don't want sent to Sentry.
Its up to the developer to choose what to send and when

One more thing that I did not mention, is there some JS frameworks like Ember.js, tend to strip out console() methods from production builds.  I am not sure if that would be a problem for sentry per se, but it does kinda lessen the benefits of the feature (at least for production code).  Just food for consideration.

@benvinegar  this issue is not a serious blocker at all.
Here is my current solution.  I realized I can just not initialize the raven.js client when in development mode... raven/sentry reporting, is only really useful to most people (i imagine) in production apps anyway.
That being said. there might still be some use in introducing maybe a developmentMode config flag, which would allow messages and errors to pass through to the dev console.. while keeping the raven.js client quiet in the background, so we could still manually send error reports if we wish.
Let me know how you feel about that.  Otherwise I would not worry too much about it, as this issue was mostly caused by my inexperience with raven and how/when to be using it.

There might be tons of console.log that we don't want sent to Sentry.

Real talk – do you actually want to disable this? I'm not trying to sound passive aggressive here, I just want to know if this is a serious problem right now and you want to disable it.

I think this is a major issue, especially that its not documented anywhere and

It is documented in the Raven.js changelog. We also published a blog post on breadcrumbs that explains that console.log statements are now logged, which was broadcasted in-app to all hosted Sentry users. I'm sorry that we didn't manage to reach you, but I think a genuine effort was made to communicate this.
Note also that this is why Raven.js 3.0.x was a major version bump, because it introduced potentially breaking changes. I hope that people are reviewing the changelog before upgrading to a major version.

... can't be disabled.

In the meantime, you can still run Raven 2.x.

@benvinegar I appreciate you are willing to keep the ticket open, it might be worth investigating some more:)

I want to collect more feedback before rushing into a solution. Especially since 3.0.x has been live for a few weeks and most of the feedback we have gotten has been positive.

@benvinegar this issue is not a serious blocker at all.

Yeah, I had a feeling you were curious more than anything.

That being said. there might still be some use in introducing maybe a developmentMode config flag, which would allow messages and errors to pass through to the dev console (aka disabling some of the "global" handling).. while keeping the raven.js client quiet in the background, so we could still manually send error reports, by explicitly triggering the raven apis, if we wish.

Yeah, the problem with that is that there is an argument for wanting console statements in production for debugging too. I'd rather just make it configurable. And, we will. I just want to get more feedback / measure impact first.
Anwyays, appreciate both your comments here, really.

@benvinegar: 👍 for config option — ideally allowing to filter out unwanted entries by hand (or rather function)

This keeps coming up on the support tracker as well. I think we should add a method to disable it.

Please make the breadcrumbs feature optional, wrapping console methods is risky and prone to conflicts with many other libs and 3rd party scripts that try to.

 Is it intentional?
https://github.com/getsentry/raven-js/blob/master/typescript/raven.d.ts

We've been struggling with TypeScript declarations lately. Submissions welcome.


Adsk Contrib - Various misc. changes

Signed-off-by: Patrick Hodoul<EMAIL_ADDRESS>The pull request fixes various minor problems I faced while developing other features:

Once again I fixed some detected SonarCloud errors.
Following the review of #865, and Windows warnings on all app compilations I created a GetEnvVariable() & SetEnvVariable() to finally correctly support Windows environment variables.
I also fixed the vendor/nuke make files (but that's still not compiling).

Friendly reminder that this PR qualifies for single approver rule so it could be merged this week.


Drop :apollo-converters:moshi support

Apollo retrofit response converter based on Moshi library is no longer supported in favour of POJO converter. Drop module :apollo-converters:moshi and make POJO to be default one.
Rename module :apollo-converters:pojo -> :apollo-converter

you mean request converter? the Moshi converter plugin doesn't have response conversion
I was about to post an issue about a namespace / class labelling issue (Moshi converter being com.apollographql.android.ApolloConverterFactory while POJO being com.apollographql.android.converter.pojo.ApolloConverterFactory) but equally support dropping of the Moshi converter
In my opinion it would be nice to have the default converter support the previous format of
@POST("/") Observable<Response<FilmsData>> allFilms(@Body Films query);
that the Moshi plugin provided, as this current format
@POST("/") Observable<Response<Films.Data>> allFilms(@Body OperationRequest<Operation.Variables> query);
doesn't seem as presentable

@kassim you can always create own class that extends OperationRequest like FilmsRequest extends OperationRequest<Films.Variables> and then pass  allFilms(@Body FilmsRequest request)


Minify 2.1 adds line breaks breaking 'Page' output

Minify version:2.1
PHP version:5.2.4

What steps will reproduce the problem?
1. Make any long string in a page you're minifying that has a javascript
string with spaces in it, e.g  var blah=" asldf asf jasfl jasfl asfla
sflajflajflasjflafasdflasjf asdflasjf alsf jalfj aslfj asd";
2. Minify breaks it up for some reasons even though it wasn't broken up
before causing unterminated string

The previous version did not do this.

Also, it would be nice if you mentioned that you changed the function names
and option names (e.g. useServerCache is now  setCache()).

Love minify, keep up the good work and Thanks!

Original issue reported on code.google.com by<EMAIL_ADDRESS>on 25 Sep 2008 at 1:50

Original comment by<EMAIL_ADDRESS>on 7 Oct 2008 at 3:36

Added labels: Release-2.1.0

It looks like lines 95 and 96 should be moved before line 87.
http://code.google.com/p/minify/source/browse/tags/release_2.1.0/min/lib/Minify/
HTML.php#95
Can you see if this change fixes the problem?

Some of the unit tests might need some adjustments but it shouldn't break any
functionality.

Original comment by<EMAIL_ADDRESS>on 25 Sep 2008 at 3:12

Changed state: Accepted
Added labels: Priority-High
Removed labels: Priority-Medium

The debug mode is strictly for languages with C style comments (JS + CSS). I
guess
for HTML it should just turn all minification off. I'll have to check on that.

Extra newlines were added due to an option in YUI Compressor that mentioned
issues
with extreme line lengths (one Minify user had a single line over 50000
characters).
Opening tags with attributes seemed like the safest place to put them without
adding
any bytes.

Original comment by<EMAIL_ADDRESS>on 25 Sep 2008 at 11:34

Changed title: Minify 2.1 adds line breaks breaking 'Page' output
Changed state: Started

That resolves it on my test case; it seems like you've added an easy debug
mode, so
is there any reason to introduce newlines?

Original comment by<EMAIL_ADDRESS>on 25 Sep 2008 at 3:42

Fixed in R239

Original comment by<EMAIL_ADDRESS>on 27 Sep 2008 at 9:12

Changed state: Verified

Makes sense, thanks for your help.  You're welcome to add https://lastpass.com/
to
the list of sites using minify.

Original comment by<EMAIL_ADDRESS>on 25 Sep 2008 at 3:26


feat(debug): enable debug mode in development mode

Describe the changes you have made in this PR
A clear and concise description of what you want to happen
Link this PR to an issue [optional]
Fixes #ISSUE-NUMBER
Type of change
(Remove other not matching type)

fix: Bug fix (non-breaking change which fixes an issue)
feat: New feature (non-breaking change which adds functionality)
feat!: Breaking change (fix or feature that would cause existing functionality to not work as expected)
docs: Documentation update

Screenshots of the changes [optional]
Add screenshots to make your changes easier to understand. You can also add a video here.
How has this been tested?
Please describe the tests that you ran to verify your changes. Provide instructions so we can reproduce. Please also list any relevant details for your test configuration
Checklist

[ ] My code follows the style guidelines of this project and performed a self-review of my own code
[ ] New and existing tests pass locally with my changes
[ ] I checked if I need to make corresponding changes to the documentation (and made those changes if needed)

@bumi what happens to the old settings.debug field?

this is not really used, so we can delete it I guess?


Removing Nux

Hi! I used be the package maintainer of dt-shell-colorscripts  and am the code maintainer of the nux package. After I discovered the nix profile command I realised that there is no need for the nux command, so I stopped maintaining it and therefore it can be removed.
Kind regards,
Jakob

Yes, I might keep it. Its just I don't use it anymore, so I see no need in maintaining it.

Remove yourself as a maintainer, that's good enough.


Update to AsyncKeyedLock 5.0.4

No need to create PR's for such releases, dependabot will take care of this and I only update these libraries every few months.


Webpack preventing access to library global object but works fine though CDN

A lot of the encryption libraries I've been trying to bundle with webpack have been missing some of the global objects or modules.
For example, I've been working with cryptico and there should be a RSA object but it's undefined. Same with forgejs, jsrsasign and a few others. However, if I just include the files in my index through a CDN, it works fine. The CDN file and the node-module files are identical. So I'm not sure what's happening in webpack that's causing this.

It doesn't seem to use a module system at all... Try http://webpack.github.io/docs/shimming-modules.html

Thank you ill give it a shot.


Added building and pushing docker image for the lambda-extension

Closes #195

:broken_heart: Build Failed

the below badges are clickable and redirect to their specific view in the CI or DOCS

Expand to view the summary

Build stats

Start Time: 2022-05-30T14:20:37.408+0000

Duration: 3 min 20 sec

Steps errors
Expand to view the steps failures

Check out from version control

Took 0 min 10 sec . View more details here
Description: [2022-05-30T14:23:12.363Z] The recommended git tool is: NONE
[2022-05-30T14:23:20.329Z] using crede

Check out from version control

Took 0 min 2 sec . View more details here
Description: [2022-05-30T14:23:32.636Z] The recommended git tool is: NONE
[2022-05-30T14:23:32.649Z] using crede

Check out from version control

Took 0 min 2 sec . View more details here
Description: [2022-05-30T14:23:44.380Z] The recommended git tool is: NONE
[2022-05-30T14:23:44.394Z] using crede

:robot: GitHub comments
To re-run your PR in the CI, just comment with:

/test : Re-trigger the build.


v0.2.1

@JuliaRegistrator register

Registration pull request created: JuliaRegistries/General/78019
After the above pull request is merged, it is recommended that a tag is created on this repository for the registered package version.
This will be done automatically if the Julia TagBot GitHub Action is installed, or can be done manually through the github interface, or via:
git tag -a v0.2.1 -m "<description of version>" bcd2ea64a916f1b749984faf331bc8f8235a039b
git push origin v0.2.1


Players disappearing from voice channel

Players disappearing from voice channel after 12 + hours player connect to channel
when go that channel and play songs it says no player detected but i destory the players using player.destroy() it will destory
after usering commands it worked but its so annoying becase if user use command that guilch time it will not work at all
but in https://github.com/Deivu/Shoukaku  i see lot of music bot using it becase of player disappearing form vc this bug is original erela.js
but i try to convert erela code it shoukaku but its too deficalt for me  (i try this on sharded bot)
i see you building erela.js i suggest fix that players disappearing vc

so you are saying that the players.get(id) property will say no players?
and when u re-create it, it will?

so you are saying that the players.get(id) property will say no players? and when u re-create it, it will?

player.sget(id) say player connected but on discord player not connected if i go player disappeard channel and use player.destroy() it will destroy


Extract search logic from nfts part2

Related to YOMO-502

Rebase here https://github.com/Emurgo/yoroi-mobile/pull/2424


Standard settings using http url instead of https

That's why I can't connect to notifications and when I setted checkbox to custom server it works perfectly.

I'm still seeing this on android. Has the fix been pushed to the play store?