Incompatible with MSSQL 2008

MS SQL Server 2008 doesn't have the SQLPS PowerShell module. Instead, one needs to explicitly add two snap-ins to the PowerShell session in the beginning of the script:
Add-PSSnapin SqlServerCmdletSnapin100
Add-PSSnapin SqlServerProviderSnapin100

As a result, none of the SQLToolkit tasks work on a SQL 2008 server.

Hi there,
I've not been able to test this but...

Log on to the server running your build agent as the domain account that runs that service.

Create a PowerShell profile that loads these modules on startup.

Click here for example

Or you can conditionally load the snapins if the required cmdlet is not available. I did just that, see pull request #4.

Hi there,
I've uploaded that as a new version. Let me know if it works please

Tested "Run a query" and "Run a single script" on a SQL 2008 R2 instance. Works as expected. Since the inserted snippet is identical in all files, didn't test the rest.
I've discovered a new bug, though - decent error diagnostics is lacking. A script tried to violate a unique constraint, it errored out, but there was no sensible error message release execution logs, as if the exception object is not populated. I'll investigate further, then file a bug.

Did you upload it to the VS gallery? Which is the new version? I still see the old script executing on my servers. How can one refresh gallery extensions in TFS RM, please?

Yes I uploaded the new version this afternoon. After downloading the new version, you need to go to the collection admin page on your TFS server and then the extension tab. You can select and upload local extensions from there.

Hm, I've deleted the extension from my team collection, then added (from local, not from gallery) again - the version of the script file on the server didn't change. I even deleted it from the working folder on the server, then rerun the release - it's still the version of the script that came with 1.6.0. Even the folder name is 1.6.0. Maybe you need to bump the version number not just on the extension, but on all scripts too.

Did you update the extension to the latest version?

I'll increase the version number and release

Did you update the extension to the latest version?
How and where? On collection level, I clicked "Uninstall", then Find extensions/Local, found SQL Toolkit (version 1.7.0), and so forth.

Looks like TFS maintains a local cache of gallery extensions that needs to be refreshed somehow. I could not find the means to do so in server-level admin settings.


Execution of the function take-element-screenshot fails.

The cause is being investigated.

I have confirmed that the command "take-element-screenshot" works fine when targeting the element BrowserRootView in Microsoft Edge.
It seems to be implemented, so I will close the issue.


Regular Expression support

As follow up for #290 I would love to see regular expression support as a binding. My use case is binding [0-6]{6} to an event from a barcode reader.

I know that is an old request but i´ve done it.
https://jsfiddle.net/roremeol/j7qgL49n/
P.S.: I have not tested it yet
I hope that it can help.


Count and filter seems gives strange count

Bug description
Unclear whether this is just me not understanding filter but I've read this documentation.
StudySchedule and ScheduleDay have a many-to-many relation.
Actual count: Some number in the thousands (like 4600)
Expected count: 35
Code:
    const numDays = await prisma.scheduleDay.count({
  1       where: {
  2         StudySchedule: {
  3           every: {
  4             id: schedule.id,
  5           },
  6         },
  7       },
  8     });
 12     console.log(`num days on schedule: ${numDays}`);
 13

prisma=> select count(*) from "_ScheduleDays" where "B" = 'ck9q2t6ddoxfe0726h0q5804c';
 count
-------
    35
(1 row)

Prisma is running this query:
prisma:query SELECT COUNT(*) FROM (SELECT "default$default"."ScheduleDay"."id" FROM "default$default"."ScheduleDay" WHERE ("default$default"."ScheduleDay"."id") NOT IN (SELECT "t0"."A" FROM "default$default"."_ScheduleDays" AS "t0" INNER JOIN "default$default"."StudySchedule" AS "j0" ON ("j0"."id") = ("t0"."B") WHERE (NOT "j0"."id" = $1)) OFFSET $2) AS "sub" LIMIT $3

I'm looking at this documentation, by the way.
From the docs:
const result = await prisma.user.findMany({
    where: {
      post: {
          every: {
            published: true
          }

In English: Retrieve all User records where all posts are published
And so thus, I would assume that my query means:
"Count all schedule days where [all the] schedule IDs are equal to the provided ID"
Could you please clarify if I'm interpreting the documentation wrong or this is a bug?
How to reproduce
Not sure, I haven't done a small test case.
Expected behavior
I expected it to yield the result corresponding to the English description I provided above.
Prisma information
postgres, latest prisma
Environment & setup
latest prisma, postgres 11

Every key in the conditional works like Javascript every methods on Arrays. It makes sure that every subrecord will fulfills the condition and then it returns desired record.

So in your case, it will return only if there is one sub record of ScheduleDay which has the given id as I am assuming you can't connect in the database level.

select count(*) from "_ScheduleDays" where "B" = 'ck9q2t6ddoxfe0726h0q5804c';

The query that is fetching all the records connected which are connected with given id. It does now consider that we are fetching only if one record if the given id is present.


Download subtitle files

The editor already handles WebVTT files (receiving them from Opencast and sending them back). It would be great if users could download them. This would, for example, allow them to edit/process them in professional tools for subtitling. The download button could be part of the subtitle editor view like this:

EDIT(@lkiesow): I added the missing description for this issue

Hi! I am interested in solving this issue, may I get assigned to it?

Sure. Thanks for taking this on.

Hi, can i take this issue and solve it?

Looks like @Pavol-Beskid is already assigned. How about https://github.com/opencast/opencast-editor/issues/999#issuecomment-1737895055?

Solved by #1185


[matplotplusplus] build failure

Operating system
Windows 11
Compiler
MSVC vc143,CUDA 12.1
Steps to reproduce the behavior
`./vcpkg install matplotplusplus[core,blas,fftw,jpeg,lapack,opencv,opengl,zlib]:x64-windows --clean-after-build`

Failure logs
Installing 1/1 matplotplusplus:x64-windows...
Building matplotplusplus[blas,core,fftw,jpeg,lapack,opencv,opengl,zlib]:x64-windows...
--  matplotplusplus's gnuplot backend currently requires Gnuplot 5.2.6+.
Windows users may get a pre-built binary installer from http://www.gnuplot.info/download.html.
Linux and MacOS users may install it from the system package manager.
Please visit https://alandefreitas.github.io/matplotplusplus/ for more information.
-- Note: matplotplusplus only supports static library linkage. Building static library.
-- Using cached alandefreitas-matplotplusplus-v1.2.0.tar.gz.
-- Extracting source C:/vcpkg/downloads/alandefreitas-matplotplusplus-v1.2.0.tar.gz
-- Applying patch fix-dependencies.patch
-- Using source at C:/vcpkg/buildtrees/matplotplusplus/src/v1.2.0-b6c461fd66.clean
-- Configuring x64-windows
CMake Error at scripts/cmake/vcpkg_execute_required_process.cmake:112 (message):
Command failed: C:/vcpkg/downloads/tools/ninja/1.10.2-windows/ninja.exe -v
Working Directory: C:/vcpkg/buildtrees/matplotplusplus/x64-windows-rel/vcpkg-parallel-configure
Error code: 1
See logs for more information:
C:\vcpkg\buildtrees\matplotplusplus\config-x64-windows-dbg-CMakeCache.txt.log
C:\vcpkg\buildtrees\matplotplusplus\config-x64-windows-rel-CMakeCache.txt.log
C:\vcpkg\buildtrees\matplotplusplus\config-x64-windows-out.log
Call Stack (most recent call first):
installed/x64-windows/share/vcpkg-cmake/vcpkg_cmake_configure.cmake:252 (vcpkg_execute_required_process)
ports/matplotplusplus/portfile.cmake:32 (vcpkg_cmake_configure)
scripts/ports.cmake:147 (include)
Additional context
config-x64-windows-dbg-CMakeCache.txt.log
config-x64-windows-out.log
config-x64-windows-rel-CMakeCache.txt.log

Fixed by #32227.

This issue has been fixed by https://github.com/microsoft/vcpkg/pull/32227


Fix adaptive height lag

Connects to #184

@tnrich I don't want to extra options to disable dots since it is not a part of original slick api.
Can you separate fix for adaptive height bug  and submit a new PR

I assume this is here to somewhat help with this?
https://github.com/akiran/react-slick/issues/429


Ari Storage Error

Could anyone help me with this error? I have set all the necessary permissions for the storage and automation account
System.Management.Automation.RuntimeException: You cannot call a method on a null-valued expression.
at CallSite.Target(Closure , CallSite , Object , String )
at System.Dynamic.UpdateDelegates.UpdateAndExecute2[T0,T1,TRet](CallSite site, T0 arg0, T1 arg1)
at System.Management.Automation.Interpreter.DynamicInstruction3.Run(InterpretedFrame frame)    at System.Management.Automation.Interpreter.EnterTryCatchFinallyInstruction.Run(InterpretedFrame frame) Uploading Excel File to Storage Account System.Management.Automation.CommandNotFoundException: The 'Set-AzStorageBlobContent' command was found in the module 'Az.Storage', but the module could not be loaded. For more information, run 'Import-Module Az.Storage'.    at System.Management.Automation.CommandDiscovery.TryModuleAutoDiscovery(String commandName, ExecutionContext context, String originalCommandName, CommandOrigin commandOrigin, SearchResolutionOptions searchResolutionOptions, CommandTypes commandTypes, Exception& lastError)    at System.Management.Automation.CommandDiscovery.LookupCommandInfo(String commandName, CommandTypes commandTypes, SearchResolutionOptions searchResolutionOptions, CommandOrigin commandOrigin, ExecutionContext context)    at System.Management.Automation.ExecutionContext.CreateCommand(String command, Boolean dotSource)    at System.Management.Automation.PipelineOps.AddCommand(PipelineProcessor pipe, CommandParameterInternal[] commandElements, CommandBaseAst commandBaseAst, CommandRedirection[] redirections, ExecutionContext context)    at System.Management.Automation.PipelineOps.InvokePipeline(Object input, Boolean ignoreInput, CommandParameterInternal[][] pipeElements, CommandBaseAst[] pipeElementAsts, CommandRedirection[][] commandRedirections, FunctionContext funcContext)    at System.Management.Automation.Interpreter.ActionCallInstruction6.Run(InterpretedFrame frame)
at System.Management.Automation.Interpreter.EnterTryCatchFinallyInstruction.Run(InterpretedFrame frame)
Completed

Hello @Claudio-Merola, It is also installed with the requested version

Hi @Claudio-Merola, would there be any update? Do I need to change something?

I downgraded the Az version to 8.0.0 and the script worked!


Change normalize_dbname semantic add dbname_suffix

normalize_dbname used to return last componenent of the shard path. But
it was doing so only if argument was passed as a binary. We change the
semantic of normalize_dbname so it does following:

expects either type binary or list
expect any kind of database name

plain database name
plain database name with '.couch' extension
shard name with suffix (creation time)
shard name with suffix (creation time) and .couch extension

always returns a binary containing all components of a database name
removes information about shard
removes shard's suffix

For cases we need last component of the path (old behaviour) we
intoroduce dbname_suffix/1
COUCHDB-2983

+1

+1


Unify date/time value parsing in connectors

This PR unifies the date/time-parsing code in the PostgreSQL, MySQL and SQLite3 connectors using the code in the PostgreSQL connector as basis for the new common functions.
Essentially I moved the PostgreSQL date/time-parsing code into several common functions in the sqlpp::detail namespace, placed them in include/sqlpp11/detail/parse_date_time.h and then replaced the custom date/time-parsing code in the MySQL and SQLite3 connectors with calls to these common functions. The SQLite3 connector still has one custom date/time parsing function because its date_time data fields are a bit special in that they can hold either date_time fields or date fields.
@rbock I am not sure if include/sqlpp11/detail/parse_date_time.h is the proper location for these common functions, so if you think that there is a better place for them, then I can adjust the PR.
This PR was built and tested with
cmake -B build -DBUILD_POSTGRESQL_CONNECTOR=ON -DBUILD_SQLITE3_CONNECTOR=ON -DBUILD_MYSQL_CONNECTOR=ON -DBUILD_TESTING=ON -DUSE_SYSTEM_DATE=ON -DDEPENDENCY_CHECK=ON
cmake --build build -- VERBOSE=1
cd build
ctest

All tests passed successfully

Thanks for unifying the date/time parsing. LGTM.


Prefer to trigger user_role questions instead of directly asking defendants/respondents.gather() and plaintiffs/petitioners.gather()

In our old code, we triggered defendants and plaintiffs by just mentioning those variables. Those would run the code blocks that evaluated user_role. Now we have defendants.gather() it will use the objects block instead, which is not our intent.
We could decide not to use .gather() for those 4 variables. That is probably the solution that will work best, given how Docassemble uses intrinsic names...we can't safely use defendants and plaintiffs interchangeably. It will only ever work as an alias where we set the values of users and other_parties.

I'm investigating this more closely and it might be fixable on the AssemblyLine repo instead. So we should hold off on any code changes here for now.

Narrowed this down. The problem is NOT the .gather(); .gather() actually gives much better behavior than just mentioning the name. The problem is our custom objects block that gives an alternate way to define plaintiffs and defendants.
We should never include those 4 variables in the custom objects block, only users and other_parties

Fixed in in develop branch


chore: jx-demo-2 to 0.0.3

chore: Promote jx-demo-2 to version 0.0.3

[APPROVALNOTIFIER] This PR is NOT APPROVED
This pull-request has been approved by:
To fully approve this pull request, please assign additional approvers.
We suggest the following additional approvers:
If they are not already assigned, you can assign the PR to them by writing /assign  in a comment when ready.
The full list of commands accepted by this bot can be found here.
The pull request process is described here

Needs approval from an approver in each of these files:

OWNERS

Approvers can indicate their approval by writing /approve in a comment
Approvers can cancel approval by writing /approve cancel in a comment


Implemented notifications for application submission

[!WARNING]
This pull request is not mergeable via GitHub because a downstack PR is open. Once all requirements are satisfied, merge this PR as a stack on Graphite.
Learn more

#2361  👈
#2360
#2359
#2358
#2347 : 1 other dependent PR (#2348 )
main

This stack of pull requests is managed by Graphite. Learn more about stacking.

Join @tommylau523 and the rest of your teammates on  Graphite

[!WARNING]
This pull request is not mergeable via GitHub because a downstack PR is open. Once all requirements are satisfied, merge this PR as a stack on Graphite.
Learn more

#2361  👈
#2360
#2359
#2358
#2347 : 1 other dependent PR (#2348 )
main

This stack of pull requests is managed by Graphite. Learn more about stacking.

Join @tommylau523 and the rest of your teammates on  Graphite

[!WARNING]
This pull request is not mergeable via GitHub because a downstack PR is open. Once all requirements are satisfied, merge this PR as a stack on Graphite.
Learn more

#2361  👈
#2360
#2359
#2358
#2347 : 1 other dependent PR (#2348 )
main

This stack of pull requests is managed by Graphite. Learn more about stacking.

Join @tommylau523 and the rest of your teammates on  Graphite

Not sure how that happened. Maybe something with kfmt. Let me try to revert some of these.

Merge activity

Sep 3, 8:41 PM EDT: @tommylau523 started a stack merge that includes this pull request via Graphite.


navbar items not visible on mobile view [desktop view]

I’m using bootstrap 4 and when I do desktop view in mobile. navbar items does not appear. I’m using chrome browser in mobile.

Bug reports must include a live demo of the problem. Per our contributing guidelines, please create a reduced test case via CodePen or JS Bin and report back with your link, Bootstrap version, and specific browser and OS details.

Closing out given lack of demo.


Sqrt root question

Sorry, I've found some method to solve my problem, Thank you so much~

I'm glad you got it fixed. Good luck with your hardware designs.


Add multiple from support in Api#send_assets.

This fix is added multiple from addresses support in Api#send_assets.

thanks.


Example from the README fails: No module named 'dwave.samplers.greedy.descent'

$ cat x.py
from dwave.samplers import RandomSampler
sampler = RandomSampler()

$ python3.9 x.py
Traceback (most recent call last):
  File "/disk-samsung/freebsd-ports/science/py-dwave-samplers/x.py", line 1, in <module>
    from dwave.samplers import RandomSampler
  File "/usr/local/lib/python3.9/site-packages/dwave/samplers/__init__.py", line 17, in <module>
    from dwave.samplers.greedy import *
  File "/usr/local/lib/python3.9/site-packages/dwave/samplers/greedy/__init__.py", line 15, in <module>
    from dwave.samplers.greedy.sampler import *
  File "/usr/local/lib/python3.9/site-packages/dwave/samplers/greedy/sampler.py", line 25, in <module>
    from dwave.samplers.greedy.descent import steepest_gradient_descent
ModuleNotFoundError: No module named 'dwave.samplers.greedy.descent'

Version: 1.0.0.dev1

Hi @yurivict you need to install the package first. This can be done with
pip install dwave-samplers

to install from pypi.
Or, if you want to build locally and intend to run the code from the top-level directory of the repo.
python setup.py build_ext --inplace

Or, finally if you want to build locally and want to run from a different directory
pip install .

The package is installed:
$ pkg info -l py39-dwave-samplers
py39-dwave-samplers-1.0.0.d1:
	/usr/local/lib/python3.9/site-packages/dwave/samplers/__init__.py
	/usr/local/lib/python3.9/site-packages/dwave/samplers/__pycache__/__init__.cpython-39.opt-1.pyc
	/usr/local/lib/python3.9/site-packages/dwave/samplers/__pycache__/__init__.cpython-39.pyc
	/usr/local/lib/python3.9/site-packages/dwave/samplers/greedy/__init__.py
	/usr/local/lib/python3.9/site-packages/dwave/samplers/greedy/__pycache__/__init__.cpython-39.opt-1.pyc
	/usr/local/lib/python3.9/site-packages/dwave/samplers/greedy/__pycache__/__init__.cpython-39.pyc
	/usr/local/lib/python3.9/site-packages/dwave/samplers/greedy/__pycache__/composite.cpython-39.opt-1.pyc
	/usr/local/lib/python3.9/site-packages/dwave/samplers/greedy/__pycache__/composite.cpython-39.pyc
	/usr/local/lib/python3.9/site-packages/dwave/samplers/greedy/__pycache__/sampler.cpython-39.opt-1.pyc
	/usr/local/lib/python3.9/site-packages/dwave/samplers/greedy/__pycache__/sampler.cpython-39.pyc
	/usr/local/lib/python3.9/site-packages/dwave/samplers/greedy/composite.py
	/usr/local/lib/python3.9/site-packages/dwave/samplers/greedy/decl.pxd
	/usr/local/lib/python3.9/site-packages/dwave/samplers/greedy/descent.cpp
	/usr/local/lib/python3.9/site-packages/dwave/samplers/greedy/descent.pyx
	/usr/local/lib/python3.9/site-packages/dwave/samplers/greedy/sampler.py
	/usr/local/lib/python3.9/site-packages/dwave/samplers/greedy/src/descent.cpp
	/usr/local/lib/python3.9/site-packages/dwave/samplers/greedy/src/descent.h
	/usr/local/lib/python3.9/site-packages/dwave/samplers/random/__init__.py
	/usr/local/lib/python3.9/site-packages/dwave/samplers/random/__pycache__/__init__.cpython-39.opt-1.pyc
	/usr/local/lib/python3.9/site-packages/dwave/samplers/random/__pycache__/__init__.cpython-39.pyc
	/usr/local/lib/python3.9/site-packages/dwave/samplers/random/__pycache__/sampler.cpython-39.opt-1.pyc
	/usr/local/lib/python3.9/site-packages/dwave/samplers/random/__pycache__/sampler.cpython-39.pyc
	/usr/local/lib/python3.9/site-packages/dwave/samplers/random/cyrandom.cpp
	/usr/local/lib/python3.9/site-packages/dwave/samplers/random/cyrandom.pyx
	/usr/local/lib/python3.9/site-packages/dwave/samplers/random/sampler.py
	/usr/local/lib/python3.9/site-packages/dwave/samplers/sa/__init__.py
	/usr/local/lib/python3.9/site-packages/dwave/samplers/sa/__pycache__/__init__.cpython-39.opt-1.pyc
	/usr/local/lib/python3.9/site-packages/dwave/samplers/sa/__pycache__/__init__.cpython-39.pyc
	/usr/local/lib/python3.9/site-packages/dwave/samplers/sa/__pycache__/sampler.cpython-39.opt-1.pyc
	/usr/local/lib/python3.9/site-packages/dwave/samplers/sa/__pycache__/sampler.cpython-39.pyc
	/usr/local/lib/python3.9/site-packages/dwave/samplers/sa/sampler.py
	/usr/local/lib/python3.9/site-packages/dwave/samplers/sa/simulated_annealing.cpp
	/usr/local/lib/python3.9/site-packages/dwave/samplers/sa/simulated_annealing.pyx
	/usr/local/lib/python3.9/site-packages/dwave/samplers/sa/src/cpu_sa.cpp
	/usr/local/lib/python3.9/site-packages/dwave/samplers/sa/src/cpu_sa.h
	/usr/local/lib/python3.9/site-packages/dwave/samplers/tabu/__init__.py
	/usr/local/lib/python3.9/site-packages/dwave/samplers/tabu/__pycache__/__init__.cpython-39.opt-1.pyc
	/usr/local/lib/python3.9/site-packages/dwave/samplers/tabu/__pycache__/__init__.cpython-39.pyc
	/usr/local/lib/python3.9/site-packages/dwave/samplers/tabu/__pycache__/sampler.cpython-39.opt-1.pyc
	/usr/local/lib/python3.9/site-packages/dwave/samplers/tabu/__pycache__/sampler.cpython-39.pyc
	/usr/local/lib/python3.9/site-packages/dwave/samplers/tabu/__pycache__/utils.cpython-39.opt-1.pyc
	/usr/local/lib/python3.9/site-packages/dwave/samplers/tabu/__pycache__/utils.cpython-39.pyc
	/usr/local/lib/python3.9/site-packages/dwave/samplers/tabu/sampler.py
	/usr/local/lib/python3.9/site-packages/dwave/samplers/tabu/src/bqp.cpp
	/usr/local/lib/python3.9/site-packages/dwave/samplers/tabu/src/bqp.h
	/usr/local/lib/python3.9/site-packages/dwave/samplers/tabu/src/common.h
	/usr/local/lib/python3.9/site-packages/dwave/samplers/tabu/src/tabu_search.cpp
	/usr/local/lib/python3.9/site-packages/dwave/samplers/tabu/src/tabu_search.h
	/usr/local/lib/python3.9/site-packages/dwave/samplers/tabu/src/tabu_utils.cpp
	/usr/local/lib/python3.9/site-packages/dwave/samplers/tabu/src/tabu_utils.h
	/usr/local/lib/python3.9/site-packages/dwave/samplers/tabu/tabu.pxd
	/usr/local/lib/python3.9/site-packages/dwave/samplers/tabu/tabu_search.cpp
	/usr/local/lib/python3.9/site-packages/dwave/samplers/tabu/tabu_search.pyx
	/usr/local/lib/python3.9/site-packages/dwave/samplers/tabu/utils.py
	/usr/local/lib/python3.9/site-packages/dwave/samplers/tree/__init__.py
	/usr/local/lib/python3.9/site-packages/dwave/samplers/tree/__pycache__/__init__.cpython-39.opt-1.pyc
	/usr/local/lib/python3.9/site-packages/dwave/samplers/tree/__pycache__/__init__.cpython-39.pyc
	/usr/local/lib/python3.9/site-packages/dwave/samplers/tree/__pycache__/samplers.cpython-39.opt-1.pyc
	/usr/local/lib/python3.9/site-packages/dwave/samplers/tree/__pycache__/samplers.cpython-39.pyc
	/usr/local/lib/python3.9/site-packages/dwave/samplers/tree/orang.pxd
	/usr/local/lib/python3.9/site-packages/dwave/samplers/tree/sample.cpp
	/usr/local/lib/python3.9/site-packages/dwave/samplers/tree/sample.pyx
	/usr/local/lib/python3.9/site-packages/dwave/samplers/tree/samplers.py
	/usr/local/lib/python3.9/site-packages/dwave/samplers/tree/solve.cpp
	/usr/local/lib/python3.9/site-packages/dwave/samplers/tree/solve.pyx
	/usr/local/lib/python3.9/site-packages/dwave/samplers/tree/src/include/base.h
	/usr/local/lib/python3.9/site-packages/dwave/samplers/tree/src/include/buckettree.h
	/usr/local/lib/python3.9/site-packages/dwave/samplers/tree/src/include/combine.h
	/usr/local/lib/python3.9/site-packages/dwave/samplers/tree/src/include/exception.h
	/usr/local/lib/python3.9/site-packages/dwave/samplers/tree/src/include/graph.h
	/usr/local/lib/python3.9/site-packages/dwave/samplers/tree/src/include/marginalizer.h
	/usr/local/lib/python3.9/site-packages/dwave/samplers/tree/src/include/merger.h
	/usr/local/lib/python3.9/site-packages/dwave/samplers/tree/src/include/operations/count.h
	/usr/local/lib/python3.9/site-packages/dwave/samplers/tree/src/include/operations/dummy.h
	/usr/local/lib/python3.9/site-packages/dwave/samplers/tree/src/include/operations/logsumprod.h
	/usr/local/lib/python3.9/site-packages/dwave/samplers/tree/src/include/operations/min.h
	/usr/local/lib/python3.9/site-packages/dwave/samplers/tree/src/include/orang.h
	/usr/local/lib/python3.9/site-packages/dwave/samplers/tree/src/include/sample.hpp
	/usr/local/lib/python3.9/site-packages/dwave/samplers/tree/src/include/solve.hpp
	/usr/local/lib/python3.9/site-packages/dwave/samplers/tree/src/include/table.h
	/usr/local/lib/python3.9/site-packages/dwave/samplers/tree/src/include/task.h
	/usr/local/lib/python3.9/site-packages/dwave/samplers/tree/src/include/treedecomp.h
	/usr/local/lib/python3.9/site-packages/dwave/samplers/tree/src/include/utils.hpp
	/usr/local/lib/python3.9/site-packages/dwave/samplers/tree/src/include/varorder.h
	/usr/local/lib/python3.9/site-packages/dwave/samplers/tree/utilities.cpp
	/usr/local/lib/python3.9/site-packages/dwave/samplers/tree/utilities.pyx
	/usr/local/lib/python3.9/site-packages/dwave_samplers-1.0.0.dev1-py3.9.egg-info/PKG-INFO
	/usr/local/lib/python3.9/site-packages/dwave_samplers-1.0.0.dev1-py3.9.egg-info/SOURCES.txt
	/usr/local/lib/python3.9/site-packages/dwave_samplers-1.0.0.dev1-py3.9.egg-info/dependency_links.txt
	/usr/local/lib/python3.9/site-packages/dwave_samplers-1.0.0.dev1-py3.9.egg-info/not-zip-safe
	/usr/local/lib/python3.9/site-packages/dwave_samplers-1.0.0.dev1-py3.9.egg-info/requires.txt
	/usr/local/lib/python3.9/site-packages/dwave_samplers-1.0.0.dev1-py3.9.egg-info/top_level.txt
	/usr/local/lib/python3.9/site-packages/samplers/greedy/descent.cpython-39.so
	/usr/local/lib/python3.9/site-packages/samplers/random/cyrandom.cpython-39.so
	/usr/local/lib/python3.9/site-packages/samplers/sa/simulated_annealing.cpython-39.so
	/usr/local/lib/python3.9/site-packages/samplers/tabu/tabu_search.cpython-39.so
	/usr/local/lib/python3.9/site-packages/samplers/tree/sample.cpython-39.so
	/usr/local/lib/python3.9/site-packages/samplers/tree/solve.cpython-39.so
	/usr/local/lib/python3.9/site-packages/samplers/tree/utilities.cpython-39.so

If your current working directory is the repo root, then Python will try to use the local version rather than the one in site-packages. I would try navigating to a different directory if you want to use the version in site-packages.

No, my work directory isn't repo root.

How did you install the package?

setup.py build
setup.py install

This was done within the FreeBSD ports framework.

Try running
python setup.py build_ext --inplace
python setup.py install

I am not 100% sure that just build will do the Cython/C++ step.

This way build fails:
c++ -shared -fstack-protector-strong -O2 -pipe -fno-omit-frame-pointer -fstack-protector-strong -fno-strict-aliasing -fno-omit-frame-pointer build/temp.freebsd-13.1-STABLE-amd64-cpython-39/dwave/samplers/tree/utilities.o -L/usr/local/lib -o build/lib.freebsd-13.1-STABLE-amd64-cpython-39/samplers/tree/utilities.cpython-39.so
copying build/lib.freebsd-13.1-STABLE-amd64-cpython-39/samplers/greedy/descent.cpython-39.so -> samplers/greedy
error: could not create 'samplers/greedy/descent.cpython-39.so': No such file or directory
*** Error code 1

And what about
pip install .

preferably after updating pip and setuptools
pip install pip setuptools -U

I am trying to create the FreeBSD port for dwave-samplers.
pip is never involved in port's build process. setuptools is already installed from the package.

I have not been able to reproduce locally. The only clue I have is that it looks like the .so files are being put in the wrong directory, /usr/local/lib/python3.9/site-packages/samplers/ rather than /usr/local/lib/python3.9/site-packages/dwave/samplers/.
You could try moving the manually to confirm.

Yes, it looks like directories are messed up.
I also tried to build w/out distutils - using build/installer modules. build/installer install the package with the same problem.
This looks to me like a bug in the project.

I suppose that is possible. But the only places such paths are specified are here which is the standard Python/Cython build pattern.
Also, running
python setup.py build_ext --inplace
python setup.py install

puts everything in the correct place on my local system.
I am using setuptools 58.1.0, Cython 0.29.28 for what it's worth.

Have you, by chance, added an __init__.py to the top level? i.e.
$ ls
build  docs   dwave_samplers.egg-info  LICENSE      pyproject.toml  releasenotes      setup.cfg  tests
dist   dwave  __init__.py              MANIFEST.in  README.rst      requirements.txt  setup.py   venv39

if that's the case, you may be running into https://github.com/pypa/setuptools/issues/3343. I was able to get an error similar to yours by adding that file.

No, I didn't add any files.
I use setuptools-63.1.0, cython-0.29.32.
Your setuptools and cython packages are outdated.

Updating both does not change the behavior - still works fine locally.

Correcting paths fixes the problem.


Fix typo in README.md

Description
Fix a type in README.md
Motivation and Context

Screenshots

Checklist:

[x] My pull request is properly named
[x] The changes respect the code style of the project ($ npm run lint)
[x] I tested/previewed my changes locally

@graves501 thank you


run  vitest ui Error

Describe the bug
When running the vitest --ui command, open the http://localhost:51205  the browser and throw an error
Uncaught SyntaxError: The requested module '/node_modules/react/index.js' does not provide an export named 'default' (at useCounter .ts:1:1)
This error even appears in the examples of this project
Reproduction
this project examples
https://github.com/vitest-dev/vitest/tree/main/examples/react-testing-lib
System Info
System:
    OS: Windows 10 10.0.19044
    CPU: (4) x64 Intel(R) Core(TM) i5-7300HQ CPU @ 2.50GHz
    Memory: 2.32 GB / 7.87 GB
  Binaries:
    Node: 16.14.0 - D:\nodejs\node.EXE
    Yarn: 1.22.15 - ~\AppData\Roaming\npm\yarn.CMD
    npm: 8.3.1 - D:\nodejs\npm.CMD
  Browsers:
    Edge: Spartan (44.19041.1266.0), Chromium (102.0.1245.44)
    Internet Explorer: 11.0.19041.1566
  npmPackages:
    @vitejs/plugin-react: ^1.3.2 => 1.3.2
    vite: ^2.9.9 => 2.9.12
    vitest: latest => 0.16.0

Used Package Manager
yarn
Validations

[X] Follow our Code of Conduct
[X] Read the Contributing Guidelines.
[X] Read the docs.
[X] Check that there isn't already an issue that reports the same bug to avoid creating a duplicate.
[X] Check that this is a concrete bug. For Q&A open a GitHub Discussion or join our Discord Chat Server.
[X] The provided reproduction is a minimal reproducible example of the bug.

Why would you open http://localhost:51205/? Vitest UI is located at http://localhost:51205/vitest
Our example is working fine: https://stackblitz.com/edit/vitest-dev-vitest-2vanl8?initialPath=vitest

I guess we need to fix the path:

Do you mean that?

yes  i just click here。Thank you for your answer @sheremet-va

The Stackblitz example is throwing errors

Any progress on this? I just encountered this issue again. the stackblitz example is throwing the same error


Refactor: move bubble from home page to analytics

moves Bubble view from Homepage / - to -> Analytics /analytics view

Please check the other PR's for my feedback before merge.

I´ve checked and resolved the discussion is it ok to merge after https://github.com/trustbit/Contexture/pull/141 is merged?

Linting fails: https://github.com/trustbit/Contexture/actions/runs/7015471100/job/19084846328?pr=142
Rest is fine 👍

let me lint fix and push


No video formats found!  Facebook reels error

DO NOT REMOVE OR SKIP THE ISSUE TEMPLATE

[X] I understand that I will be blocked if I intentionally remove or skip any mandatory* field

Checklist

[X] I'm requesting a feature unrelated to a specific site
[X] I've looked through the README
[X] I've verified that I'm running yt-dlp version 2023.07.06 (update instructions) or later (specify commit)
[X] I've searched known issues and the bugtracker for similar issues including closed ones. DO NOT post duplicates
[X] I've read the guidelines for opening an issue

Provide a description that is worded well enough to be understood
I was using yt-dlp to extract the meta data of the facebook reels and videos. Suddenly the package started throwing the error format not found for facebook reels only.
the output (error is pasted clearly). someone please help through this.
Provide verbose output that clearly demonstrates the problem

[X] Run your yt-dlp command with -vU flag added (yt-dlp -vU <your command line>)
[ ] If using API, add 'verbose': True to YoutubeDL params instead
[X] Copy the WHOLE output (starting with [debug] Command-line config) and insert it below

Complete Verbose Output
[facebook:reel] Extracting URL: https://www.facebook.com/reel/792307819122376
[facebook] Extracting URL: https://m.facebook.com/watch/?v=792307819122376&_rdr
[facebook]<PHONE_NUMBER>22376: Downloading webpage
ERROR: [facebook]<PHONE_NUMBER>22376: No video formats found!; please report this issue on  https://github.com/yt-dlp/yt-dlp/issues?q= , filling out the appropriate issue template. Confirm you are on the latest version using  yt-dlp -U
Traceback (most recent call last):
  File "/home/ubuntu/.local/lib/python3.10/site-packages/yt_dlp/YoutubeDL.py", line 1560, in wrapper
    return func(self, *args, **kwargs)
  File "/home/ubuntu/.local/lib/python3.10/site-packages/yt_dlp/YoutubeDL.py", line 1709, in __extract_info
    return self.process_ie_result(ie_result, download, extra_info)
  File "/home/ubuntu/.local/lib/python3.10/site-packages/yt_dlp/YoutubeDL.py", line 1768, in process_ie_result
    ie_result = self.process_video_result(ie_result, download=download)
  File "/home/ubuntu/.local/lib/python3.10/site-packages/yt_dlp/YoutubeDL.py", line 2732, in process_video_result
    self.raise_no_formats(info_dict)
  File "/home/ubuntu/.local/lib/python3.10/site-packages/yt_dlp/YoutubeDL.py", line 1073, in raise_no_formats
    raise ExtractorError(msg, video_id=info['id'], ie=info['extractor'],
yt_dlp.utils.ExtractorError: [facebook]<PHONE_NUMBER>22376: No video formats found!; please report this issue on  https://github.com/yt-dlp/yt-dlp/issues?q= , filling out the appropriate issue template. Confirm you are on the latest version using  yt-dlp -U

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/ubuntu/Jayadeep/fb_to_images/url1.py", line 59, in <module>
    info_dict = ydl.extract_info(youtube_url, download=False)
  File "/home/ubuntu/.local/lib/python3.10/site-packages/yt_dlp/YoutubeDL.py", line 1549, in extract_info
    return self.__extract_info(url, self.get_info_extractor(key), download, extra_info, process)
  File "/home/ubuntu/.local/lib/python3.10/site-packages/yt_dlp/YoutubeDL.py", line 1560, in wrapper
    return func(self, *args, **kwargs)
  File "/home/ubuntu/.local/lib/python3.10/site-packages/yt_dlp/YoutubeDL.py", line 1709, in __extract_info
    return self.process_ie_result(ie_result, download, extra_info)
  File "/home/ubuntu/.local/lib/python3.10/site-packages/yt_dlp/YoutubeDL.py", line 1788, in process_ie_result
    return self.extract_info(
  File "/home/ubuntu/.local/lib/python3.10/site-packages/yt_dlp/YoutubeDL.py", line 1549, in extract_info
    return self.__extract_info(url, self.get_info_extractor(key), download, extra_info, process)
  File "/home/ubuntu/.local/lib/python3.10/site-packages/yt_dlp/YoutubeDL.py", line 1578, in wrapper
    self.report_error(str(e), e.format_traceback())
  File "/home/ubuntu/.local/lib/python3.10/site-packages/yt_dlp/YoutubeDL.py", line 1042, in report_error
    self.trouble(f'{self._format_err("ERROR:", self.Styles.ERROR)} {message}', *args, **kwargs)
  File "/home/ubuntu/.local/lib/python3.10/site-packages/yt_dlp/YoutubeDL.py", line 981, in trouble
    raise DownloadError(message, exc_info)
yt_dlp.utils.DownloadError: ERROR: [facebook]<PHONE_NUMBER>22376: No video formats found!; please report this issue on  https://github.com/yt-dlp/yt-dlp/issues?q= , filling out the appropriate issue template. Confirm you are on the latest version using  yt-dlp -U

 yt-dlp -U
Available version<EMAIL_ADDRESS>Current version<EMAIL_ADDRESS>yt-dlp is up to date<EMAIL_ADDRESS>

 yt-dlp -vU
[debug] Command-line config: ['-vU']
[debug] Encodings: locale UTF-8, fs utf-8, pref UTF-8, out utf-8, error utf-8, screen utf-8
[debug] yt-dlp version<EMAIL_ADDRESS>[b532a3481] (pip)
[debug] Python 3.10.6 (CPython x86_64 64bit) - Linux-5.19.0-1028-aws-x86_64-with-glibc2.35 (OpenSSL 3.0.2 15 Mar 2022, glibc 2.35)
[debug] exe versions: ffmpeg 4.4.2 (setts), ffprobe 4.4.2
[debug] Optional libraries: Cryptodome-3.18.0, brotli-1.0.9, certifi-2020.06.20, mutagen-1.46.0, secretstorage-3.3.1, sqlite3-2.6.0, websockets-11.0.3
[debug] Proxy map: {}
[debug] Loaded 1855 extractors
[debug] Fetching release info: https://api.github.com/repos/yt-dlp/yt-dlp/releases/latest
Available version<EMAIL_ADDRESS>Current version<EMAIL_ADDRESS>yt-dlp is up to date<EMAIL_ADDRESS>

Duplicate of #7469


fix: use 'target_arch' for node-pre-gyp

The arguments provided to node-pre-gyp are incomplete, resulting in prebuilt binaries not downloading the correct architecture. From the readme, --target_arch and --target_platform are both used for downloading the prebuilt binaries. The --arch option seems to only be used when falling back to the node-gyp local build.
Also, if the binary already exists, --update-binary is required to redownload in the case of changing the targeted architecture.
Follow up to https://github.com/electron/rebuild/pull/1095

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

Comparison is base (ee3eb00) 76.30% compared to head (a89649f) 73.00%.

Additional details and impacted files
@@            Coverage Diff             @@
##             main    #1115      +/-   ##
==========================================
- Coverage   76.30%   73.00%   -3.31%
==========================================
  Files          21       21
  Lines         726      726
  Branches      136      136
==========================================
- Hits          554      530      -24
- Misses        121      146      +25
+ Partials       51       50       -1

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

aea4654 will unfortunately cause the binaries to be redownloaded each time a rebuild occurs. node-pre-gyp doesn't update the binary without the --update-binary option even if the architecture changes.

@samuelmaddock is there a way that we can be smarter here for them? E.g. detect a .node file with the wrong arch and nuke it
Not super fussed but would be nice if it's not too hard


Performance: My test takes 100s to run, console.time around the test entire is 100ms

🐛 Bug Report
I have a test, and the entire body is wrapped in a console.time pair. The time records about 100ms for just this single test. However, jest is spending 100s on this.
Removing this test (and running other very similar tests) makes it significantly faster (12s for the other tests—but they too take 100ms with console.time)

Link to repl or repo (highly encouraged)
This test specifically causes issues. However, nothing in the test is particularly slow
https://github.com/jacobp100/react-image-export/blob/8f29787da857bc9fd8a692a0333f5edd2c9dedd2/packages/system-components-js/__tests__/tabbarios.js#L46-L103
Run npx envinfo --preset jest
Paste the results here:
npx: installed 1 in 2.612s

  System:
    OS: macOS High Sierra 10.13.4
    CPU: x64 Intel(R) Core(TM) i5-4278U CPU @ 2.60GHz
  Binaries:
    Node: 10.3.0 - /usr/local/bin/node
    Yarn: 1.7.0 - /usr/local/bin/yarn
    npm: 6.1.0 - /usr/local/bin/npm
  npmPackages:
    jest: ^23.0.0 => 23.1.0

We buffer the console output at the end of the test run, so using it for performance testing is not a best idea, at least with default settings. Try with --verbose flag on.

I just did Date.now() at the top and bottom, and it seems to give the right results. Digging in deeper, I think I've found a V8 perf bug. There's probably still an issue with console.time, but closing, as the original issue is no longer valid :)


Use C-c D for docker

It's been introduced recently with #197, but it clashes with duplicate-line-or-region. Let's go back to original behaviour and use something similar, albeit slightly more difficult to type.

LGTM too


Reduce notifications due to car rejecting start of the charging session

Is your feature request related to a problem? Please describe.
I'm getting a notification message every time when the automation tries to start charging, but car is rejecting due to battery has reached the target charge threshold.
I got over last night 1300 messages about it, while I'm running the automation every 20 seconds.
Describe the solution you'd like
I'd like to not receive notifications in such's cases or to have those notifications configurable, so that everyone can decide if they like them or not.
Describe alternatives you've considered
Alternative solution would be to poll the car battery charge % often enough to allow the automation to back off. Unfortunately I can't utilize it due to Hyundai Bluelink/Kia UVO API has limitation on daily polling. Plus the cars have issues with 12v battery depletion.
Additional context
Adding a screenshot example of the notifications:

Why are you needing to poll the car every 20s to start charging? You should be able to use sensor.charger_status_connector state to start a charge when the car plugs into the charger. Also to determine whether a charge is stopped by the EV which can be used as a condition to stop further script executions.

Car starts to automatically charging after plugging it in. I'm polling every 20s to be able to stop the charging, in case the other requirements are not met.
The other poll is executed to start charging when the electricity price is low.
The events noise comes in the moments when the car battery reaches the charging threshold during charging time. I'm unable to get the battery % from car in real time. I can ping car only ~10 times a day.
We have in here hourly pricing for electricity where the price for every hour can differentiate vastly, in some cases the difference can be more than 10 times.
This means that you want to have the car to charge on the cheapest time of the day.

Have you checked whether you can disable notifications from the integration in the configuration.yaml like you can with history and logging?


Lockfile

@lfrank @edeno How should we handle locking of the files? Where should the lockfiles live, i.e. where should NWB_LOCK_FILE and ANALYSIS_LOCK_FILE env vars point to?

export ANALYSIS_LOCK_FILE="/home/lorenlab/nwb_datajoint_lock/.lockfile”
should work.
I’m not yet running the code to actually put things in the lock, but perhaps that’s something you could look into when you have time.

On Jun 21, 2021, at 10:41 PM, Kyu Hyun Lee @.***> wrote:
@lfrank https://github.com/lfrank @edeno https://github.com/edeno How should we handle locking of the files? Where should the lockfiles live, i.e. where should NWB_LOCK_FILE and ANALYSIS_LOCK_FILE env vars point to?
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub https://github.com/LorenFrankLab/nwb_datajoint/issues/45, or unsubscribe https://github.com/notifications/unsubscribe-auth/ABV4PSKALCJ7X77UOOVROQ3TUAO75ANCNFSM47C6AEAQ.

but that lockfile doesn't actually exist yet right? is there a reason why it's in lorenlab rather than /stelmo/nwb?

It doesn’t yet exist, and if you’d prefer for it to be in stelmo that’s fine; pick a location (and make the directory) and then we can try it out by hand. Assuming it works, we can add a crontab job on hippo to check it every minute or so.
--

On Jun 22, 2021, at 10:01 AM, Kyu Hyun Lee @.***> wrote:
but that lockfile doesn't actually exist yet right? is there a reason why it's in lorenlab rather than /stelmo/nwb?
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub https://github.com/LorenFrankLab/nwb_datajoint/issues/45#issuecomment-866165709, or unsubscribe https://github.com/notifications/unsubscribe-auth/ABV4PSMPTIFU2OVX5O433UDTUC6XBANCNFSM47C6AEAQ.


cli: add --file

This patch adds a --file=up.json flag to the CLI. Closes #186.

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

changed my mind, it might make more sense to just add a "dir":  (or similar) option to up.json, up -C build --config ../up.json is a little wonky

cool, ok
my thought here was uploading all of ./build and pointing to up.json at the project's root anyway. something like:
.
├── build
│   ├── bundle.css
│   ├── bundle.js
│   └── index.html
├── src
│   ├── bar.css
│   ├── bar.js
│   ├── foo.css
│   ├── foo.js
│   ├── index.html
│   └── index.js
└── up.json

totally, I'll open an issue for that

In this case, wouldn't static.dir be the correct config key?

I know it's just an example, but looks like a static site.

yeah true, for strictly static sites that's fine, maybe we don't need this actually

I missed static.dir! should be exactly what I need


wasm-mutator-fuzz: make compilers overridable

eg.
cmake .. \
-DCMAKE_C_COMPILER=/usr/local/opt/llvm@15/bin/clang \
-DCMAKE_CXX_COMPILER=/usr/local/opt/llvm@15/bin/clang++

✋  there will be a problem if both CC and CXX have been set to gcc and g++ which usually happens in linux because use GCC as the default compiler and CMAKE_<LANG>_COMPILER always point to CC and CXX.
After the PR, it requires

Either use clang/clang++ as the default compiler by setting CC and CXX.
Or always switch to clang manually, like CC=$(which clang) CXX=$(which clang++) cmake -S . -B build

Anyway, the previous, simplest command cmake -S . -B build && cmake --build build may lead to
cc: error: unrecognized argument to ‘-fsanitize=’ option: ‘fuzzer’
cc: error: unrecognized argument to ‘-fsanitize=’ option: ‘unsigned-integer-overflow’; did you mean ‘signed-integer-overflow’?
cc: error: unrecognized argument to ‘-fsanitize=’ option: ‘local-bounds’
cc: error: unrecognized argument to ‘-fsanitize=’ option: ‘nullability’
cc: error: unrecognized command-line option ‘-fprofile-instr-generate’; did you mean ‘-fprofile-generate’?
cc: error: unrecognized command-line option ‘-fcoverage-mapping’

✋ there will be a problem if both CC and CXX have been set to gcc and g++ which usually happens in linux because use GCC as the default compiler and CMAKE_<LANG>_COMPILER always point to CC and CXX.

do you mean environment variables CC and CXX are set system-wide by default?
are you sure it "usually happens in linux"?
i don't remember such distributions.

Maybe "usually" is a strong word(depends on how to setup the machine. Personal habits). But I found two available machines around me sharing the same problem because using the GCC as default compiler and ENV(CC) points to /usr/bin/cc points to gcc

if a user sets CC explicitly and it broke things, i feel it's his problem.
besides that, even clang doesn't always come with libfuzzer.
i suspect there is no magic which works on every environment.
maybe the best thing we can do here is to document the requirement.

I am thinking about following the original intention, forcing Clang compiler. It may like:
# STREQUAL or MATCH
if (CMAKE_CXX_COMPILER_ID STREQUAL "GNU")
  set(CMAKE_CXX_COMPILER "clang")
endif ()

I am thinking about following the original intention, forcing Clang compiler. It may like:
# STREQUAL or MATCH
if (CMAKE_CXX_COMPILER_ID STREQUAL "GNU")
  set(CMAKE_CXX_COMPILER "clang")
endif ()

it doesn't work if your clang doesn't ship with libfuzzer.
unfortunately it isn't too uncommon.

The problem is if not defined values(of CMAKE_C_COMPILER and CMAKE_CXX_COMPILER) in command line options, if (NOT DEFINED) ... set ... will not work. It will use values of ENV(CC) and ENV(C++).
It means the modification actually won't be executed. It's not make options overridable. It requires users always give compiler info explicitly.

The problem is if not defined values(of CMAKE_C_COMPILER and CMAKE_CXX_COMPILER) in command line options, if (NOT DEFINED) ... set ... will not work. It will use values of ENV(CC) and ENV(C++).
It means the modification actually won't be executed. It's not make options overridable. It requires users always give compiler info explicitly.

i feel we are talking past each other.
if a user specified a compiler explicitly (either via CMAKE_C_COMPILER or CC) it should be used.
if a user didn't specify a compiler explicitly, "clang" is used.

if a user didn't specify a compiler explicitly, "clang" is used.

It won't. if (NOT DEFINED CMAKE_C_COMPILER) seems always return FALSE. CMake will detect compilers at the very beginning of.

if a user didn't specify a compiler explicitly, "clang" is used.

It won't. if (NOT DEFINED CMAKE_C_COMPILER) seems always return FALSE. CMake will detect compilers at the very beginning of.

good point.
my suggested fix: https://github.com/bytecodealliance/wasm-micro-runtime/pull/3585


Update scripts.js

Closes #
📑 Description

✅ Checks

[x] My pull request adheres to the code style of this project
[x] My code requires changes to the documentation
[x] I have updated the documentation as required
[x] All the tests have passed

☢ Does this introduce a breaking change?

[ ] Yes
[x] No

ℹ Additional Information

Description by Korbit AI
What change is being made?
Update the properties label and value in the usageData mapping function by replacing label with item.description and parsing item.usage as a float.
Why are these changes being made?
The change ensures that the label field now uses the description attribute for better clarity and provides more accurate numerical representation by parsing item.usage as a float. This revision likely addresses an issue where the prior data representation was insufficient or incorrect.

Is this description stale? Ask me to generate a new description by commenting /korbit-generate-pr-description

@coderabbit review


Fix HNSW graph visitation limit bug

We have some weird behavior in HNSW searcher when finding the candidate entry point for the zeroth layer.
While trying to find the best entry point to gather the full candidate set, we don't filter based on the acceptableOrds bitset. Consequently, if we exit the search early (before hitting the zeroth layer), the results that are returned may contain documents NOT within that bitset.
Luckily since the results are marked as incomplete, the *VectorQuery logic switches back to an exact scan and throws away the results.
However, if any user called the leaf searcher directly, bypassing the query, they could run into this bug.
I ran performance tests and there were no significant latency increases. There do seem to be observable latency decreases though at higher maxConn levels.
I am getting slightly different recall. Usually better by 0.001, but worse by 0.001 on glove 100 with
nDoc	fanout	maxConn	beamWidth
100000	20	96	500	120

so I am digging into why that may be. Any help there is appreciated.
Data (lucene util knnPerf):
   dim = 100
    doc_vectors = constants.GLOVE_VECTOR_DOCS_FILE
    query_vectors = '%s/util/tasks/vector-task-100d.vec' % constants.BASE_DIR

Settings ran:
VALUES = {
    'ndoc': (100000,),
    'maxConn': (32, 96),
    'beamWidthIndex': (250, 500,),
    'fanout': (20, 100,),
}

Intuitively, it sounds like a good approach to me to not take live docs into account to find good entry points, as there could be nodes that are good entry points even though they might be marked as deleted or not match the filter? Should we consider never exiting before hitting the zero-th level instead?

Should we consider never exiting before hitting the zero-th level instead?

🤔
The idea is that if we cannot even get to the zeroth level before hitting the visitation limit, we shouldn't even bother going through the graph structure anymore as it will likely be slower than an exact match.
I think exiting with nothing and indicating incomplete makes the most sense to me as it gives clear indication that searching the graph structure shouldn't be done. If we end early on the zeroth lauer we could give a "knn" that is nowhere near the actual kNN because we exited early on the zero-th layer.
I don't know why that would be any better than exiting before reaching that layer.

Sorry, I commented too quickly, before understanding what your change was doing, I thought it was ignoring filtered out ords on levels > 0 at first. Your change makes sense to me now.

OK, I reverted my minor optimizations and moved the method to be more inline with what Lucene did before.
Now I am getting exactly the same recall and the weird bug is fixed where we return partial results that may or may not contain documents not within the acceptableOrd set.
I still kept it a unique method to be perfectly clear what this method is doing.
@jpountz

@msokolov found my bug 🤦 in the simplified version. I updated, removed the need for tracking candidates & results since we only care about the best found entry point.

I don't know what bug I found, but this LGTM

Commas are important! Just meant to tell you I found my own bug.


Add support for ordinal block offsets in Direction enum

Getting relative blocks with cardinal directions works fine because the vectors have unit length on x, y, or z, which displaces by exactly one block. This is not the case with ordinal directions because they do not displace by a full block on each axis, which when floored causes no changes on positive offsets.
For cardinals: new Location<World>(world, 1, 2, 3).getRelative(Direction.SOUTH).getBlock() is equivalent to world.getBlock(new Vector3d(1, 2, 3).add(0, 0, 1).toInt()). toInt() is equivalent to floor() but also returns the results as a Vector3i. So the final call is world.getBlock(new Vector3i(1, 2, 4)). This is correct.
But for ordinals, when using Direction.SOUTHEAST, we obtain world.getBlock(new Vector3d(1, 2, 3).add(0.70710678118655, 0, 0.70710678118655).toInt()), which is equivalent to world.getBlock(new Vector3i(1, 2, 3)). While this can be seen as correct, it is not very useful.
I propose adding a asBlockOffset() method to Direction that returns a non-normalized vector, and renaming toVector3i to asOffset(). The Location class will also gain a new method getBlockRelative(), which will use the block offset instead.
Furthermore, other incorrect usages of ordinals might exist in the API and need to be located and corrected.
Secondary ordinals are not affected here since they cannot be used as block offsets. They will be considered as invalid arguments.
See also: https://forums.spongepowered.org/t/southeast-direction-incorrect/13392

I support asBlockOffset() as it implies that it is going to be non normalized.
but asOffset instead of toInt? I believe this will cause people to get it confused with asBlockOffset more readily.

It's not toInt()...

On Jul 1, 2016, at 10:17 PM, Ryan Leach<EMAIL_ADDRESS>wrote:
I support asBlockOffset() as it implies that it is going to be non normalized.
but asOffset instead of toInt? I believe this will cause people to get it confused with asBlockOffset more readily.
—
You are receiving this because you were assigned.
Reply to this email directly, view it on GitHub, or mute the thread.

I edited the post but it didn't come through on email. I was meaning toVector3i.

asOffset is Vector3d. I'm just keeping the naming scheme consistent.

On Jul 1, 2016, at 11:40 PM, Ryan Leach<EMAIL_ADDRESS>wrote:
I edited the post but it didn't come through on email. I was meaning toVector3i.
—
You are receiving this because you were assigned.
Reply to this email directly, view it on GitHub, or mute the thread.


scripts and functions for standard brain

changed saving path in findoutlier script
changed regression script to calculate t vals, save beta and t values.
add regression functions and scripts for standard data. (We don't need linear and quadratic drift for standard data.)
add plot heatmap script for plotting heatmaps for beta and t values.
Jiang might have updated the scripts, since he has been running all the script on standard data. So please check, @pigriver123

Oh, I added a new function script for standard data, but the test should be similar. I don't know if you want to add another test, or if we want to somehow combine the two cases... Let me know your idea, @BenjaminHsieh

Can you upload the final heatmaps image?

ok let me take a look, I will probabily combine the two cases, will make a pull request later today

I only have the heatmaps for the original data. Jiang has the heatmaps for the preprocessed data.
Also, do you want all heatmaps? That's 32 heatmaps for beta values and 32 heatmaps for the t values.

Also missing calc_t module @pigriver123

Ok yeah should be good (although I havent run the script yet)

Not sure how jiang is approaching the standard heatmaps but heres a thought:
at the last for-loop of regressions_script_standard we can check if the t-value is significant. If it is we then find apply the affine to that voxel to find the mm, and then save the mm coordinates of all significant voxels for the subject.
Then we can overlay a plot of that on the standard brain template


Dataset and model download is not working.

Hi, both the dataset and pre-trained model links opens the google drive, but clicking on download gives a 403 error.
Error on the page is about revoked access "We're sorry, but you do not have access to this page."

Hi, I have tested the links and the download is ok. Can you download them now?


Kubectx shuffle config content

For example "kind: Config" moved from head to middle of config

@koluchiy please provide if this is Go implementation or Bash implementation + which version.

@ahmetb kubectx: stable 0.9.3, HEAD, installed from brew

@koluchiy that installs the bash implementation which calls into kubectl.
so it's actually kubectl who's reordering your fields. kubectl doesn't offer to keep your file cosmetics intact IIRC, so as far as kubectl is concerned, it's the same file.
if you download our Go implementation manually (soon to be stable), it will preserve the file structure.


Feature: Navigation with  and

Have you RTFM'd?

[X] I have done proper research

Feature Request
I'm trying to navigate my fzf windows with <C-d> and <C-u> but they don't appear to do anything.

This isn’t a feature request, not even sure what you mean… read the docs/wiki and you’ll figure it out.

It's a normal vim motion to us  and  to navigate. I can map them like this but it would be nice to have them as default behavior.
require("fzf-lua").setup({
    keymap = {
        fzf = {
            ["ctrl-d"] = "half-page-down",
            ["ctrl-u"] = "half-page-up",
        },
    },
})

Fzf uses deadline defaults, for example, ctrl-e goes to end of line, I have no intentions to change the defaults after almost 3 years that the plug-in exists, the configuration options are there for a reason.


Surya/nil/swap paper test flake

(test failure is flake)

i'm guessing that this test failed at some point because the two words that were swapped were the same?


[release-1.5] enable istiod for remote component

This is an automated cherry-pick of #21489

@googlebot I consent.


Stream hls error?

I am currently using VLC 2.1.3 and Livestreamer 1.7.5 and I am getting the following error while trying to watch streams on VLC.
C:\Users\Mick>livestreamer http://www.twitch.tv/esltv_lol high
[cli][info] Found matching plugin twitch for URL http://www.twitch.tv/esltv_lol
[cli][info] Opening stream: high
[cli][info] Starting player: 'C:\Program Files\VideoLAN\VLC\vlc.exe'
[stream.hls][error] Failed to open sequence 1345: Unable to open URL: http://vid
eo25.sfo01.hls.twitch.tv/hls9/esltv_lol_8876584288_74424189/high/index1345.ts (H
TTPConnectionPool(host='video25.sfo01.hls.twitch.tv', port=80): Read timed out.
(read timeout=<object object at 0x011B1498>))
[stream.hls][error] Failed to open sequence 1345: Unable to open URL: http://vid
eo25.sfo01.hls.twitch.tv/hls9/esltv_lol_8876584288_74424189/high/index1345.ts (H
TTPConnectionPool(host='video25.sfo01.hls.twitch.tv', port=80): Read timed out.
(read timeout=<object object at 0x011B1498>))
[stream.hls][error] Failed to open sequence 1345: Unable to open URL: http://vid
eo25.sfo01.hls.twitch.tv/hls9/esltv_lol_8876584288_74424189/high/index1345.ts (H
TTPConnectionPool(host='video25.sfo01.hls.twitch.tv', port=80): Read timed out.
(read timeout=<object object at 0x011B1498>))
[stream.hls][error] Failed to open sequence 1364: Unable to open URL: http://vid
eo25.sfo01.hls.twitch.tv/hls9/esltv_lol_8876584288_74424189/high/index1364.ts (H
TTPConnectionPool(host='video25.sfo01.hls.twitch.tv', port=80): Read timed out.
(read timeout=<object object at 0x011B1498>))
[stream.hls][error] Failed to open sequence 1364: Unable to open URL: http://vid
eo25.sfo01.hls.twitch.tv/hls9/esltv_lol_8876584288_74424189/high/index1364.ts (H
TTPConnectionPool(host='video25.sfo01.hls.twitch.tv', port=80): Read timed out.
(read timeout=<object object at 0x011B1498>))
[stream.hls][error] Failed to open sequence 1364: Unable to open URL: http://vid
eo25.sfo01.hls.twitch.tv/hls9/esltv_lol_8876584288_74424189/high/index1364.ts (H
TTPConnectionPool(host='video25.sfo01.hls.twitch.tv', port=80): Read timed out.
(read timeout=<object object at 0x011B1498>))
[stream.hls][error] Failed to open sequence 1365: Unable to open URL: http://vid
eo25.sfo01.hls.twitch.tv/hls9/esltv_lol_8876584288_74424189/high/index1365.ts (4
04 Client Error: Not Found)
[stream.hls][error] Failed to open sequence 1365: Unable to open URL: http://vid
eo25.sfo01.hls.twitch.tv/hls9/esltv_lol_8876584288_74424189/high/index1365.ts (4
04 Client Error: Not Found)
[stream.hls][error] Failed to open sequence 1365: Unable to open URL: http://vid
eo25.sfo01.hls.twitch.tv/hls9/esltv_lol_8876584288_74424189/high/index1365.ts (4
04 Client Error: Not Found)
[stream.hls][error] Failed to open sequence 1367: Unable to open URL: http://vid
eo25.sfo01.hls.twitch.tv/hls9/esltv_lol_8876584288_74424189/high/index1367.ts (4
04 Client Error: Not Found)
[stream.hls][error] Failed to open sequence 1367: Unable to open URL: http://vid
eo25.sfo01.hls.twitch.tv/hls9/esltv_lol_8876584288_74424189/high/index1367.ts (4
04 Client Error: Not Found)
[stream.hls][error] Failed to open sequence 1367: Unable to open URL: http://vid
eo25.sfo01.hls.twitch.tv/hls9/esltv_lol_8876584288_74424189/high/index1367.ts (4
04 Client Error: Not Found)
[stream.hls][error] Failed to open sequence 1368: Unable to open URL: http://vid
eo25.sfo01.hls.twitch.tv/hls9/esltv_lol_8876584288_74424189/high/index1368.ts (4
04 Client Error: Not Found)
[stream.hls][error] Failed to open sequence 1368: Unable to open URL: http://vid
eo25.sfo01.hls.twitch.tv/hls9/esltv_lol_8876584288_74424189/high/index1368.ts (4
04 Client Error: Not Found)
[stream.hls][error] Failed to open sequence 1368: Unable to open URL: http://vid
eo25.sfo01.hls.twitch.tv/hls9/esltv_lol_8876584288_74424189/high/index1368.ts (4
04 Client Error: Not Found)
[stream.hls][error] Failed to open sequence 1369: Unable to open URL: http://vid
eo25.sfo01.hls.twitch.tv/hls9/esltv_lol_8876584288_74424189/high/index1369.ts (4
04 Client Error: Not Found)
[stream.hls][error] Failed to open sequence 1369: Unable to open URL: http://vid
eo25.sfo01.hls.twitch.tv/hls9/esltv_lol_8876584288_74424189/high/index1369.ts (4
04 Client Error: Not Found)
[stream.hls][error] Failed to open sequence 1369: Unable to open URL: http://vid
eo25.sfo01.hls.twitch.tv/hls9/esltv_lol_8876584288_74424189/high/index1369.ts (4
04 Client Error: Not Found)
[stream.hls][error] Failed to open sequence 1370: Unable to open URL: http://vid
eo25.sfo01.hls.twitch.tv/hls9/esltv_lol_8876584288_74424189/high/index1370.ts (4
04 Client Error: Not Found)
[stream.hls][error] Failed to open sequence 1370: Unable to open URL: http://vid
eo25.sfo01.hls.twitch.tv/hls9/esltv_lol_8876584288_74424189/high/index1370.ts (4
04 Client Error: Not Found)
[stream.hls][error] Failed to open sequence 1370: Unable to open URL: http://vid
eo25.sfo01.hls.twitch.tv/hls9/esltv_lol_8876584288_74424189/high/index1370.ts (4
04 Client Error: Not Found)
[stream.hls][error] Failed to open sequence 1371: Unable to open URL: http://vid
eo25.sfo01.hls.twitch.tv/hls9/esltv_lol_8876584288_74424189/high/index1371.ts (H
TTPConnectionPool(host='video25.sfo01.hls.twitch.tv', port=80): Read timed out.
(read timeout=<object object at 0x011B1498>))
[stream.hls][error] Failed to open sequence 1371: Unable to open URL: http://vid
eo25.sfo01.hls.twitch.tv/hls9/esltv_lol_8876584288_74424189/high/index1371.ts (H
TTPConnectionPool(host='video25.sfo01.hls.twitch.tv', port=80): Read timed out.
(read timeout=<object object at 0x011B1498>))
[cli][error] Error when reading from stream: Read timeout
[stream.hls][error] Failed to open sequence 1371: Unable to open URL: http://vid
eo25.sfo01.hls.twitch.tv/hls9/esltv_lol_8876584288_74424189/high/index1371.ts (H
TTPConnectionPool(host='video25.sfo01.hls.twitch.tv', port=80): Read timed out.
(read timeout=<object object at 0x011B1498>))
[cli][info] Stream ended
On the last line, VLC closes by itself.
What happens during this is, stream plays normally for a few seconds, starts stuttering, video freezes but audio still can be heard, stream will be normal for a couple of seconds and it repeats. If the stream freezes too many time, VLC will close by itself

Since this is the only place I could find help relating to this error. The m3u8 file plays fine in certain versions of VLC, however it drops during the .ts exchange in other players and eventually locks up in VLC. Now to try and avoid this I tried using combinations in livestreamer but to no avail. You can try the 24/7 m3u8 right here and see if you get the same error:
 ([Errno 1] _ssl.c:504: error:14077410:SSL routines:SSL23_GET_SERVER_HELLO:sslv3 alert handshake failure)
livestreamer hls://https://cams.cdn-surfline.com/wsc-west/wc-elportocam.stream/chunklist.m3u8 best


[Suggestion/Request] Git Cleanup

This isn't a common issue or bug report like the other ones opened here, but a suggestion as a flutter user:
This issues list need a cleanup.
We have some from the end of 2015, beggining of 2016 - 5 years ago - and as users we don't know if or have a expectation of them being solved. Some of them might be already fixed on the new updates (or don't), some may contain great ideas for new features that aren't on the code till today.
The list is already passing 8k opened issues - and growing - and at least for me, i can't easily see what the flutter team is fixing/creating. I know that there is the milestones for the month releases but they don't come close to covering everything (and this is normal). The team's custommer service speed for reading the problems and labeling them is awesome, but the core point is acting on them, and like i said there are labeled issues from 2015 that don't seem to be working on.
Like i started saying, this isn't a crticism to your job guys, you and what you are doing here is amazing! It's just a wish as an user to know what will be done, and that if our requests/problems will be solved.

Hi @Macacoazul01

It's just a wish as an user to know what will be done, and that if our requests/problems will be solved.

You can see issues being worked in the milestones as you said: https://github.com/flutter/flutter/projects. If you want the "big picture"about what is being worked on you can check the Flutter Roadmap: https://github.com/flutter/flutter/wiki/Roadmap.

Some of them might be already fixed on the new updates (or don't), some may contain great ideas for new features that aren't on the code till today.

The triage team is checking old issues to verify if they are still valid issues (or already-implemented feature proposal) and acting on them from time to time to make sure old issues don't last for ever. I know Flutter has lots of issues so it may take some time to check every issues.

and as users we don't know if or have a expectation of them being solved.

The Flutter team has its own priority and you can check this by the P labels that are applied on issues and PRs. I understand that those priorities does not mean that they will be worked on by a Flutter member as they may not be aligned with the priorities of the Flutter team lead.

Flutter leave issues open because it is a open source project so even if a team member does not work on a specific issue, anyone interested on that issue can contribute by issues that are blockers for his project.

FWIW I literally just landed patches for two 3-digit bugs, for example https://github.com/flutter/flutter/pull/74798 fixed #505, and https://github.com/flutter/flutter/pull/74972 fixed #125. I wouldn't have done so if we'd just closed those bugs. :-)
Anyway, you're welcome to participate in triage and fixing and so forth. Check out our contributing docs, join our discord (the link in those contributing docs). We would love to get more help in going through old issues!

I'm wasn't saying to close old issues randomly, just asking if the team was looking to old issues that were already solved. But as @pedromassangocode said, they are.

Yup, we definitely do. If you do notice any that should be closed though, don't hesitate to let us know in the #hackers-triage  channel on our Discord and we will close it!


Migrate to Reviewdog

By still using golangci-lint as a linter.

I close this PR since action doesn't work as intended.


More tests4

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

Project coverage is 91.77%. Comparing base (2cad82f) to head (9a946c0).

Additional details and impacted files

@@            Coverage Diff             @@
##             main      #11      +/-   ##
==========================================
+ Coverage   86.55%   91.77%   +5.22%
==========================================
  Files          19       19
  Lines        1822     1812      -10
  Branches      247      244       -3
==========================================
+ Hits         1577     1663      +86
+ Misses        201      108      -93
+ Partials       44       41       -3

Files
Coverage Δ

behavioral_control/behavioral_control/settings.py
100.00% <ø> (+4.41%)
:arrow_up:

behavioral_control/my_router/utils.py
90.19% <ø> (+5.01%)
:arrow_up:

behavioral_control/my_router/views.py
89.67% <100.00%> (+16.69%)
:arrow_up:

... and 1 file with indirect coverage changes

Continue to review full report in Codecov by Sentry.

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


How to check if a user denied to receive push notifications on iOS?

I've implemented the following method in AppDelegate.cs and the variable registered is always TRUE even when I deny the app receiving Push Notifications on the initial permission dialog.
public override void RegisteredForRemoteNotifications(UIApplication application, NSData deviceToken)
{
	var registered = UIApplication.SharedApplication.IsRegisteredForRemoteNotifications;

#if DEBUG
	FirebasePushNotificationManager.DidRegisterRemoteNotifications(deviceToken, FirebaseTokenType.Sandbox);
#else
	FirebasePushNotificationManager.DidRegisterRemoteNotifications(deviceToken, FirebaseTokenType.Production);
#endif

}

Also, I implemented the FailedToRegisterForRemoteNotifications method to check for errors and it is not fired when a user denies receiving push notifications. I'm not sure if this is the right place to check.

Released on the latest version: 2.3.0.
Now OnNotificationError event indicates the type of error on  Type property:
 public enum PushNotificationErrorType
    {
        Unknown,
        PermissionDenied,
        RegistrationFailed, //This when registration fails
        UnregistrationFailed
    }


Webview search prompt list: highlighted element poorly visible

When searching for tag/context/project using webview search box highlighted element in the list is poorly visible because of using similar (if not the same) colors for highlight matching part of text and highlight of the list row:

.

I think it uses colors from the active theme - --vscode-editorSuggestWidget-highlightForeground for match and --vscode-editorSuggestWidget-selectedBackground to look similar to the editor suggest widget.
Is it default light color theme? Does suggest widget in editor also look that bad?

Actually, there's another variable --vscode-editorSuggestWidget-focusHighlightForeground for this case.


update the README.md to include that app.name is mandatory

Hi
I got the same error as discussed here. At least for me, it wasn't clear enough that I'd need the app.name in the translation file/s.
Given that I haven't changed my android manifest file, which references the @string/title_activity_kimera, I guess a few people might experience the same issue.

It should definitely be documented that app.name is a mandatory field.
As a funny side note: Having this problem now. Looking into issues: nothing. Looking into PRs: just one PR regarding some readme issue, clearly not what I'm struggling with ... ignoring. 😓

Good point. I edited the title.

Turns out it's mandatory for all translations when you build the app with tns build android --release, otherwise you'll get the following error:
Error: "_app_name_1k3Sbz" is n
ot translated in "es" (Spanish), "fr" (French) [MissingTranslation]
  <string name="_app_name_1k3Sbz">"AppName"</string>
          ~~~~~~~~~~~~~~~~~~~~~~~

Just published a new version that should resolve this issue


Add OpenGL 3 core context creation support

Add support for creating an OpenGL core context.
The default would still be a compatibility context, but there should be a way to create a core context, if explicitly wanted.
If you do this, you cannot use SFML Graphics (which still uses a compatibility context). It should be straightforward to add support for this (see for example http://en.sfml-dev.org/forums/index.php?topic=7903.msg53363#msg53363).
This gives users the option of using all the rest of SFML (save Graphics) and still get an OpenGL Core context.

Will be added as part of #779.

Hs been fixed through #779


Combined intellisense for cross targeting projects

Types added:

ActiveConfiguredProjectsIgnoringTargetFrameworkProvider: Provides set of active configured projects whose ProjectConfiguration has all dimensions (ignoring the TargetFramework) matching the active VS configuration.
AggregateWorkspaceProjectContext: A set of IWorkspaceProjectContext" instances for all the active configured projects (ignoring TF) for a given cross targeting project.
AggregateWorkspaceProjectContextProvider: Handles creation and release of AggregateWorkspaceProjectContext
IConfiguredProjectHostObject: Language service host object wrapper for configured projects.
IUnconfiguredProjectHostObject: Language service host object wrapper for unconfigured projects - handles tracking of active intellisense context project.
ConfiguredProjectReadyToBuild: Enables design time builds for all active configured projects.

Functionality:

Hookup an aggregate project context with inner workspace project contexts for all active configured projects in the UnconfiguredProjectContextProvider.
Change handlers to explicitly take in the workspace project context to update.
Hookup subscriptions for both design time builds and evaluations for all active configured projects instead of just a single active configured project in LanguageServiceHost.
Ensure aggregate project context is refreshed when TargetFrameworks is changed.
Wrap the unconfigured project and configured project host objects with a wrapper host object (to mimic shared projects functionality).

Tagging @dotnet/project-system for review.

I have updated the PR with the following changes:

Fixed subscriptions for active configured projects (ignoring target framework) - now we receive evaluations for changes to any of these configurations.
Fix setting LastDesignTimeBuildSucceeded:
We were setting context.LastDesignTimeBuildSucceeded = designTimeBuildFailed :-)
CPS sometimes generates project updates with no project changes when design time build fails - we handle this case and LastDesignTimeBuildSucceeded = false in LanguageServiceHost
Even with the above changes, we are still getting errors/squiggles for projects with LastDesignTimeBuildSucceeded = false. This seems to be due to a Roslyn bug has this flag seems to be scanned only at project load time - I'll file a Roslyn bug for it.

Filed https://github.com/dotnet/roslyn/issues/14306: AbstractProject.LastDesignTimeBuildSucceeded is not always respected

👍 for the ActiveConfiguredProjectsIgnoringTargetFrameworkProvider, and its uses in LanguageServiceHost

@davkean @srivatsn - given that we have now fixed the design time builds and have a hold of the issue causing misc files issue, do we have any reason to hold back this PR? Otherwise, can you take a look?

This PR is now ready for review. Few things to note:

Unit tests are failing on Jenkins as we need to move to a newer MSBuild (CPS moved to 15.1). Basically, the Jenkins machines need to be upgraded to newer VS build - all tests are passing locally on my box.
There is an additional CPS change (which is expected to be merged in today) to unblock design time builds for all active configured projects.
With the above CPS change and this PR, I can get combined intellisense, errors from all active configured projects, switch active document context when it is added for more than one TF, etc.

Can we pull some of these self-contained changes out such as the ActiveConfiguredProjectsIgnoringTargetFrameworkProvider? This is a massive code review.

@dotnet-bot test this please

@dotnet-bot test this please

@dotnet retest this please

@dotnet retest this please


HTTP Get Request errors out certificate error

Current Behavior
I get the following error while sending get request to https://city.imd.gov.in/citywx/city_weather.php?id=43295BENGALURU&submit=Go
RequestError: unable to verify the first certificate
Same open up fine with browser
Expected Behavior
Should return payload without erroring out
Steps To Reproduce
Create HTTP Request node and set it to fetch https://city.imd.gov.in/citywx/city_weather.php?id=43295BENGALURU&submit=Go
Run this flow
Example flow
[
    {
        "id": "9ee6a5a61a4871c3",
        "type": "tab",
        "label": "Flow 4",
        "disabled": false,
        "info": ""
    },
    {
        "id": "ca1a2f94a2d5a16a",
        "type": "http request",
        "z": "9ee6a5a61a4871c3",
        "name": "",
        "method": "GET",
        "ret": "txt",
        "paytoqs": false,
        "url": "https://city.imd.gov.in/citywx/city_weather.php?id=43295BENGALURU&submit=Go",
        "tls": "",
        "persist": false,
        "proxy": "",
        "authType": "",
        "x": 410,
        "y": 320,
        "wires": [
            [
                "fdbfb1b2ec40fe26"
            ]
        ]
    },
    {
        "id": "3a997921a211c1c4",
        "type": "inject",
        "z": "9ee6a5a61a4871c3",
        "name": "",
        "props": [
            {
                "p": "payload"
            },
            {
                "p": "topic",
                "vt": "str"
            }
        ],
        "repeat": "",
        "crontab": "",
        "once": false,
        "onceDelay": 0.1,
        "topic": "",
        "payload": "",
        "payloadType": "date",
        "x": 150,
        "y": 360,
        "wires": [
            [
                "ca1a2f94a2d5a16a"
            ]
        ]
    },
    {
        "id": "fdbfb1b2ec40fe26",
        "type": "debug",
        "z": "9ee6a5a61a4871c3",
        "name": "",
        "active": true,
        "tosidebar": true,
        "console": false,
        "tostatus": false,
        "complete": "false",
        "statusVal": "",
        "statusType": "auto",
        "x": 840,
        "y": 160,
        "wires": []
    }
]

Environment

Node-RED version: 2.06
Node.js version: as  per docker nodered/node-red
npm version: as  per docker nodered/node-red
Platform/OS: as  per docker nodered/node-red on RPi
Browser: Firefox

The reason it works in your browser is that they have either bundled all the intermediate certificates into their baked in Trust Store are using the x509v3 Authority Information Access extension in the certificate to retrieve the intermediate CA cert.
Either way this is still a problem with the HTTPS server not returning the full chain.


Show the actual activation code on the screen as well

next to the icons, it would be good to show the activation code as well, just to be sure in case there is doubt about the icon.

@Drjoachim  : can you take this up - normally it is in my PR #86


Extra commas inserted in struct initialization in Visual style

rustfmt 0.99.5-nightly (4c1b0c22 2018-09-28)
fn main() {
    // Correct.
    Struct { field: aaaaaaaaaaa };

    // Contents longer than threshold, rustfmt wants to insert a comma (bug).
    Struct { field: aaaaaaaaaaaa };

    // More than one line, rustfmt wants to insert a comma (bug).
    Struct { field: value,
             field2: value2 };
}

Diff in /home/yalter/Source/rust/rustfmt_bug/src/main.rs at line 3:
     Struct { field: aaaaaaaaaaa };

     // Contents longer than threshold, rustfmt wants to insert a comma (bug).
-    Struct { field: aaaaaaaaaaaa };
+    Struct { field: aaaaaaaaaaaa, };

     // More than one line, rustfmt wants to insert a comma (bug).
      I'd like a confirmation on this. It does seem weird to me to have the extra commas here.

I think the behaviour is incorrect.


chore(refactor): prefer typing.Any to 'object' for type hints

Contributes to #87.
Proposes changing type hints using object to typing.Any.
This fixes 10 errors from mypy.
full list (click me)
src/rapids_dependency_file_generator/_config.py:171: error: Argument 1 to "_parse_outputs" has incompatible type "object"; expected "Union[str, list[str]]"  [arg-type]
src/rapids_dependency_file_generator/_config.py:173: error: No overload variant of "list" matches argument type "object"  [call-overload]
src/rapids_dependency_file_generator/_config.py:173: note: Possible overload variants:
src/rapids_dependency_file_generator/_config.py:173: note:     def [_T] list(self) -> list[_T]
src/rapids_dependency_file_generator/_config.py:173: note:     def [_T] list(self, Iterable[_T], /) -> list[_T]
src/rapids_dependency_file_generator/_config.py:174: error: "object" has no attribute "items"  [attr-defined]
src/rapids_dependency_file_generator/_config.py:175: error: Argument 1 to "Path" has incompatible type "object"; expected "Union[str, PathLike[str]]"  [arg-type]
src/rapids_dependency_file_generator/_config.py:176: error: Argument 1 to "Path" has incompatible type "object"; expected "Union[str, PathLike[str]]"  [arg-type]
src/rapids_dependency_file_generator/_config.py:177: error: Argument 1 to "Path" has incompatible type "object"; expected "Union[str, PathLike[str]]"  [arg-type]
src/rapids_dependency_file_generator/_config.py:195: error: "object" has no attribute "__iter__"; maybe "__dir__" or "__str__"? (not iterable)  [attr-defined]
src/rapids_dependency_file_generator/_config.py:208: error: "object" has no attribute "__iter__"; maybe "__dir__" or "__str__"? (not iterable)  [attr-defined]
src/rapids_dependency_file_generator/_config.py:244: error: "object" has no attribute "items"  [attr-defined]
src/rapids_dependency_file_generator/_config.py:246: error: "object" has no attribute "items"  [attr-defined]

Notes for Reviewers
What's the difference between object and typing.Any?
I'll let the typing docs explain:

This behavior allows Any to be used as an escape hatch when you need to mix dynamically and statically typed code.
Contrast the behavior of Any with the behavior of object. Similar to Any, every type is a subtype of object.
However, unlike Any ... object is not a subtype of every other type.

(docs link)
This is why with a type hint like object you get errors like this:
_config.py:244: error: "object" has no attribute "items"

typing.Any tells the type checker "just ignore this object from this point on in the stack".
Shouldn't we use a more specific type than typing.Any?
I don't think so.
These hints with typing.Any are only in the parts of the codebase taking in mostly-unstructured data read in with yaml.load(). Those functions (parse_config() and the things it calls) are taking on the responsibility of imposing structure and are the only place working with the raw dictionary representation of the YAML.
I think it's fairly low-risk to use typing.Any in that situation and simpler than, say, creating a type alias with a union of all the types that yaml.load() could produce in its dictionary representation of the YAML.
pyyaml's own type stubs use typing.Any for the return value of safe_load(): https://github.com/python/typeshed/blob/a9d7e861f7a46ae7acd56569326adef302e10f29/stubs/PyYAML/yaml/init.pyi#L38.

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

GitHub release
PyPI release
Conda release - rapidsai
Conda release - rapidsai-nightly

Your semantic-release bot :package::rocket:


Segmentation fault when running rviz on wsl in Windows10

Describe your issue here and explain how to reproduce it:
I am trying to use ROS on wsl in Windows10 while I met the segmentation fault (core dumped) error when running rviz. I have searched a lot about the segmentation fault when running rviz but I have not found the solution for my case.
Your environment

OS Version: wsl(Ubuntu 18.04) on Windows10
ROS Distro: Melodic
RViz, Qt, OGRE, OpenGl version as printed by rviz: ~ rosrun rviz rviz
 QStandardPaths: XDG_RUNTIME_DIR not set, defaulting to '/tmp/runtime-benik'
 [ INFO] [1571763679.870059200]: rviz version 1.13.4
 [ INFO] [1571763679.871324300]: compiled against Qt version 5.9.5
 [ INFO] [1571763679.872056300]: compiled against OGRE version 1.9.0 (Ghadamon)
 [ INFO] [1571763679.897642600]: Forcing OpenGl version 0.
 [1]    21077 segmentation fault (core dumped)  rosrun rviz rviz

I use VcXsrv as X11 server and glxgears and other ROS gui programs(like rqt_graph) works fine in current settings.
Here are some other console logs that I think may be helpful:
~ glxinfo | grep "version string"
server glx version string: 1.4
client glx version string: 1.4
OpenGL version string: 1.4 (2.1 Mesa 19.2.0-devel (git-cdf42f5eaa))
~ env | grep LIBGL
LIBGL_ALWAYS_INDIRECT=1
LIBGL_ALWAYS_SOFTWARE=1

The gdb backtrace output is as follows:
Thread 1 "rviz" received signal SIGSEGV, Segmentation fault.
0x0000000000000000 in ?? ()
(gdb) bt
#0  0x0000000000000000 in ?? ()
#1  0x00007fffc8b978af in ?? () from /usr/lib/x86_64-linux-gnu/OGRE-1.9.0/RenderSystem_GL.so.1.9.0
#2  0x00007fffc8b715ca in Ogre::GLStateCacheManager::switchContext(long) ()
   from /usr/lib/x86_64-linux-gnu/OGRE-1.9.0/RenderSystem_GL.so.1.9.0
#3  0x00007fffc8b64c9d in Ogre::GLRenderSystem::initialiseContext(Ogre::RenderWindow*) ()
   from /usr/lib/x86_64-linux-gnu/OGRE-1.9.0/RenderSystem_GL.so.1.9.0
#4  0x00007fffc8b6c754 in Ogre::GLRenderSystem::_createRenderWindow(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > const&, unsigned int, unsigned int, bool, std::map<std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >, std::less<std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > >, Ogre::STLAllocator<std::pair<std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > const, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > >, Ogre::CategorisedAllocPolicy<(Ogre::MemoryCategory)0> > > const*)
    () from /usr/lib/x86_64-linux-gnu/OGRE-1.9.0/RenderSystem_GL.so.1.9.0
#5  0x00007ffffa6f3347 in Ogre::Root::createRenderWindow(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > const&, unsigned int, unsigned int, bool, std::map<std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >, std::less<std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > >, Ogre::STLAllocator<std::pair<std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > const, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > >, Ogre::CategorisedAllocPolicy<(Ogre::MemoryCategory)0> > > const*) ()
   from /usr/lib/x86_64-linux-gnu/libOgreMain.so.1.9.0
#6  0x00007fffff0fc47b in rviz::RenderSystem::tryMakeRenderWindow(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > const&, unsigned int, unsigned int, std::map<std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >, std::less<std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > >, Ogre::STLAllocator<std::pair<std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > const, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > >, Ogre::CategorisedAllocPolicy<(Ogre::MemoryCategory)0> > > const*, int) ()
   from /opt/ros/melodic/lib/librviz.so
#7  0x00007fffff0fe142 in rviz::RenderSystem::makeRenderWindow(unsigned long, unsigned int, unsigned int, double) ()
   from /opt/ros/melodic/lib/librviz.so
#8  0x00007fffff100804 in rviz::RenderSystem::RenderSystem() () from /opt/ros/melodic/lib/librviz.so
#9  0x00007fffff100965 in rviz::RenderSystem::get() () from /opt/ros/melodic/lib/librviz.so
#10 0x00007fffff0fb491 in rviz::QtOgreRenderWindow::QtOgreRenderWindow(QWidget*) ()
   from /opt/ros/melodic/lib/librviz.so
#11 0x00007fffff122e29 in rviz::RenderPanel::RenderPanel(QWidget*) () from /opt/ros/melodic/lib/librviz.so
#12 0x00007fffff16cdeb in rviz::VisualizationFrame::initialize(QString const&) () from /opt/ros/melodic/lib/librviz.so
#13 0x00007fffff176ed6 in rviz::VisualizerApp::init(int, char**) () from /opt/ros/melodic/lib/librviz.so
#14 0x0000000008000dc0 in main ()

Unfortunately, I cannot help with Windows, but according to the backtrace, the problem is related to creating the GL context in Ogre. As Ogre 1.9.0 shipped with Ubuntu is rather old, you might want to try building a more recent Ogre version from source and then building rviz' noetic-devel branch, which is compatible with newer Ogre versions.

Had this issue, for the next traveler, what solved it for me was making unsetting the environment variable like so:
LIBGL_ALWAYS_INDIRECT=

Thank you, this solved my issue

@

Had this issue, for the next traveler, what solved it for me was making unsetting the environment variable like so:
LIBGL_ALWAYS_INDIRECT=

solved my problem thank you

Had this issue, for the next traveler, what solved it for me was making unsetting the environment variable like so:
LIBGL_ALWAYS_INDIRECT=

works for me, thank you very much!

To solve this bug in wsl ubuntu 20.04 on windows 10 use this command
$ echo "export DISPLAY=:0" >> ~/.bashrc
$ source ~/.bashrc
$ echo 'export LIBGL_ALWAYS_INDIRECT=0' >> ~/.bashrc

To solve this bug in wsl ubuntu 20.04 on windows 10 use this command $ echo "export DISPLAY=:0" >> ~/.bashrc $ source ~/.bashrc $ echo 'export LIBGL_ALWAYS_INDIRECT=0' >> ~/.bashrc

Solved for me, thanks!

I still have the segmentation error even though I followed the above setting. Any other solutions?

No, no more ideas for now. Sorry.


Connect Riscof to SweRV EH2 core

How would I use riscof to validate the SweRV RH2 core from Western Digital?
https://github.com/chipsalliance/Cores-SweRV-EH2
I expect that I have to use an EDA tool, like Cadence Xcelium, but I have no idea how to connect riscof to it.
Maybe I am blind, but the documentation mentions the ability to validate RTL code many times but does never state how to do it.
Currently, I have a working Riscof setup with spike and sail_model.

Anything which can be run via the command line and doesn't need a GUI to be used can be used with riscof. The plugins for SAIL and SPIKE write out Makefiles at riscof-work/Makefile.<name> which are then used to actually run the tests on the core and generate signatures. Something similar can be done for any RTL/simulator.
The readme in the SweRV repository shows that there is support for generating a verilator simulator of the core. Verilator is a free to use tool and can generate a binary for the RTL, which can be used to run programs. You will have to write a custom plugin for the same. This guide documents the architecture of the plugins and what each function in the plugin should do. You can find a few example plugins here. You will also need to define the DUT specific macros in a custom header file and a custom linker script based on the RTL. The plugin for the cClass core from SHAKTI, IITM can be found here and can be used for inspiration. Please note that the plugin was for an older version of riscof and has not been updated to accommodate the recent changes. Hence it might not work with the latest version of riscof.

You can also refer to the chromite-core plugin here which should work with the latest riscof version. It has a readme and the plugin files are also well commented. It should provide a decent starting point.

I am integrating SweRV-el2 to run with riscof environment taking chromite as reference. I created a directory in riscof-plugins with all the files creating according to SweRV-el2 like config.ini, env, isa, platform and python file too and in core I was also able to create executable but when run core with riscof environment I get error that some memory file is missing. I also looked into chromite and see that there is boot.mem file too which I don't see in SweRV directory and I don't know how to generate boot.mem file in case of SweRV. As in case of chromite there is .dts file which is used to generate boot.mem but I don't see any in case of SweRV. What should I do now?

I am integrating SweRV-el2 to run with riscof environment taking chromite as reference. I created a directory in riscof-plugins with all the files creating according to SweRV-el2 like config.ini, env, isa, platform and python file too and in core I was also able to create executable but when run core with riscof environment I get error that some memory file is missing. I also looked into chromite and see that there is boot.mem file too which I don't see in SweRV directory and I don't know how to generate boot.mem file in case of SweRV. As in case of chromite there is .dts file which is used to generate boot.mem but I don't see any in case of SweRV. What should I do now?

The SweRV repo might be a better to place to ask this question. I had a quick glance over at the makefile in the repository and looks like the SweRV core does not require a boot.mem file. The compiled binary can be directly executed on the core.