injection unsuccessful & slow in advection2d

What program did you run?
#=
2D advection using higher order FV or structured or unstructured mesh
=#

### If the Finch package has already been added, use this line #########
using Finch # Note: to add the package, first do: ]add "https://github.com/paralab/Finch.git"

using Dates
using FloatTracker: TrackedFloat64, write_log_to_file, set_inject_nan, set_logger, set_exclude_stacktrace

set_exclude_stacktrace([:prop])
set_logger(filename="inj-adv2d", buffersize=20, cstg=true, cstgArgs=false, cstgLineNum=true)
fns = [] ##[FunctionRef(:run_simulation, Symbol("nbody_simulation_result.jl"))]
libs = [] ##["NBodySimulator", "OrdinaryDiffEq"]
now_str = Dates.format(now(), "yyyymmddHHMMss")
recording_file = "rand-adv2d-recording_$now_str"
println("Recording to $recording_file...")

### If not, use these four lines (working from the examples directory) ###
# if !@isdefined(Finch)
#     include("../Finch.jl");
#     using .Finch
# end
##########################################################################

initFinch("inj-adv2d", TrackedFloat64);

# Configuration setup
domain(2)
solverType(FV)

timeStepper(EULER_EXPLICIT,cfl=20000)
# NaN-making timestepper

########
set_inject_nan(true, 1000, 1, fns, libs, record=recording_file)
########

println("begin MESH")
# a uniform grid of quads on a 0.1 x 0.3 rectangle domain
mesh(QUADMESH, elsperdim=[15, 45], bids=4, interval=[0, 0.1, 0, 0.3])
println("end MESH")

# Variables and BCs
u = variable("u", location=CELL)
boundary(u, 1, FLUX, "(abs(y-0.06) < 0.033 && sin(3*pi*t)>0) ? 1 : 0") # x=0
boundary(u, 2, NO_BC) # x=0.1
boundary(u, 3, NO_BC) # y=0
boundary(u, 4, NO_BC) # y=0.3

# Time interval and initial condition
T = 1.3;
# T=10
timeInterval(T)
initial(u, "0")

# Coefficients
coefficient("a", ["0.1*cos(pi*x/2/0.1)","0.3*sin(pi*x/2/0.1)"], type=VECTOR) # advection velocity
coefficient("s", ["0.1 * sin(pi*x)^4 * sin(pi*y)^4"]) # source

# The "upwind" function applies upwinding to the term (a.n)*u with flow velocity a.
# The optional third parameter is for tuning. Default upwind = 0, central = 1. Choose something between these.
conservationForm(u, "s + surface(upwind(a,u))");

println("begin SOLVE")
solve(u)
println("end SOLVE")

finalizeFinch()

write_log_to_file()

With the following changes to FloatTracker.jl
diff --git a/src/Injector.jl b/src/Injector.jl
index 9a80490..b8c0172 100644
--- a/src/Injector.jl
+++ b/src/Injector.jl
@@ -101,6 +101,7 @@ function should_inject(i::Injector)::Bool
   end

   if i.active && i.ninject > 0 && rand(1:i.odds) == 1
+    println("inject: active, odds match, ctr $(i.place_counter)")
     st = stacktrace()
     if i.record !== ""
       # We're recording this
@@ -109,6 +110,8 @@ function should_inject(i::Injector)::Bool
         fh = open(i.record, "a")
         println(fh, "$(i.place_counter), $(frame_file(drop_ft_frames(st)[1]))")
         close(fh)
+      else
+        println("IFAIL place counter $(i.place_counter)")
       end
       return did_injectp
     else
@@ -188,9 +191,18 @@ function injectable_region(i::Injector, raw_frames::StackTraces.StackTrace)::Boo
   end

   # Default: don't inject
+  println("dont inject $(frame_library(frames[1]))")
+  pp_frames(frames)
+  println("")
   return false
 end

+function pp_frames(frames::StackTraces.StackTrace)
+  for f::StackTraces.StackFrame in frames
+    println("$(f.func) at $(f.file):$(f.line)")
+  end
+end
+
 getmodule(_) = nothing
 getmodule(x::Base.StackTraces.StackFrame) = getmodule(x.linfo)
 getmodule(x::Core.MethodInstance) = getmodule(x.def)

What did you expect to happen?

Injector quickly finds a place to add a NaN
Injector stops checking stack frames from that point onward
Something fun happens because of the NaN. (Output logs appear, program crashes, etc.)

What happened
Injector never succeeded.
It failed because frame_library(frames[1]) was always nothing
Here's the first stack trace that got pretty printed:
% julia inj-adv2d-fv.jl
Recording to rand-adv2d-recording_202304201600785...
begin MESH
inject: active, odds match, ctr 806
dont inject nothing
run_or_inject at /home/ben/code/uu/fpx/FloatTracker.jl/src/TrackedFloat.jl:38
* at /home/ben/code/uu/fpx/FloatTracker.jl/src/TrackedFloat.jl:113
_generic_matmatmul! at /home/ben/code/julia/julia-1.8.0/usr/share/julia/stdlib/v1.8/LinearAlgebra/src/matmul.jl:876
generic_matmatmul! at /home/ben/code/julia/julia-1.8.0/usr/share/julia/stdlib/v1.8/LinearAlgebra/src/matmul.jl:844
mul! at /home/ben/code/julia/julia-1.8.0/usr/share/julia/stdlib/v1.8/LinearAlgebra/src/matmul.jl:303
mul! at /home/ben/code/julia/julia-1.8.0/usr/share/julia/stdlib/v1.8/LinearAlgebra/src/matmul.jl:276
* at /home/ben/code/julia/julia-1.8.0/usr/share/julia/stdlib/v1.8/LinearAlgebra/src/matmul.jl:141
build_refel at /home/ben/code/julia/Finch/src/refel.jl:340
#grid_from_mesh#21 at /home/ben/code/julia/Finch/src/grid.jl:159
grid_from_mesh##kw at /home/ben/code/julia/Finch/src/grid.jl:80
macro expansion at /home/ben/code/julia/Finch/src/Finch.jl:252
macro expansion at /home/ben/.julia/packages/TimerOutputs/4yHI4/src/TimerOutput.jl:237
#add_mesh#134 at /home/ben/code/julia/Finch/src/Finch.jl:145
add_mesh##kw at /home/ben/code/julia/Finch/src/Finch.jl:142
macro expansion at /home/ben/code/julia/Finch/src/finch_interface.jl:398
macro expansion at /home/ben/.julia/packages/TimerOutputs/4yHI4/src/TimerOutput.jl:237
#mesh#81 at /home/ben/code/julia/Finch/src/finch_interface.jl:343
mesh##kw at /home/ben/code/julia/Finch/src/finch_interface.jl:341
top-level scope at /home/ben/code/uu/fpx/examples/examples/finch/inj-adv2d-fv.jl:41
eval at ./boot.jl:368
include_string at ./loading.jl:1428
_include at ./loading.jl:1488
include at ./Base.jl:419
exec_options at ./client.jl:303
_start at ./client.jl:522

Other comments
We have 2 problems:

Injector never succeeds
The not succeeding is slow! Gotta check the stack trace every time. Can we use a cache or a backoff strategy to reduce the slowdown? (My quick fix was to change the odds from 1/1 to 1/1000.)

I didn't install FloatTracker using . as the active project. I can go back and do that if its the easiest fix.

Yeah, I just tested it and our admittedly hacky frame_library() function is having a hard time. I tried extracting the lib name in the REPL for the filenames on those traces and this is what I got:
the_rx = r".julia[\\/](packages|dev|scratchspaces)[\\/]([a-zA-Z][a-zA-Z0-9_.-]*)[\\/]"
match(the_rx, "/home/ben/code/julia/julia-1.8.0/usr/share/julia/stdlib/v1.8/LinearAlgebra/src/matmul.jl") # => returns Nothing
match(the_rx, "/home/ben/code/julia/julia-1.8.0/usr/share/julia/stdlib/v1.8/LinearAlgebra/src/matmul.jl") # => returns Nothing

As soon as the injection fires—with or without recording—the should_inject function will bail out fast because i.ninject > 0 will return false.

If you can try a more "standard" install and it works, then I think we'd best just let the issue rest for a while. Otherwise, a little investment in making this function Do a Better Thing might be worth it.

It's better after following the instructions in the readme here.
After installing that way, julia --project=.  examples/finch/inj-adv2d.jl ran quickly and successfully injected one NaN.
Now, to keep injecting and hunt for bugs!

It's better after following the instructions in the readme here.

I'm delighted to hear that the instructions were sufficient to get this up-and-running! That's good for reproducibility!


Configuration refactoring

Summary
Refactoring of the configuration management.
Details

new class WikmdConfig substitutes the old CONFIG dictionary.
also knowledge_graph now uses this class.
added new config parameters: git_user, git_email, main_branch_name.
environment variables have precedence on the yaml file (Fix for #33 )

Checks

[x] Updated docs
[ ] Tested changes

Perfect, looks good!


DetourCreateProcessWithDll failing

Creating a new issue for a problem @frankitosape2 is running into with DetourCreateProcessWithDll. It is stated that it's error code 2, but SetLastError is not currently set so that error code probably isn't correct. The next update will set the correct error code.
I imagine the issue is that a C++ runtime is not installed. The dll is compiled with VS 2013 so try downloading Visual C++ Redistributable Packages for Visual Studio 2013.

@frankitosape2 please try the latest version (v1.2) and let me know the error code. It should be different to before. If I know the error code I can attempt to look into this issue.

Closing due to a lack of information.


Testing with vTiger 8.3.0: Access denied errors

When running the test function in the Demo manager, these Typenames give the below error:
Account
Campaign
Contact
Email
Invoice
Lead
PBXManager
Potentials
PriceBook
Project
ProjectMilestone
ProjectTask
PurchaseOrder
Quote
SalesOrder
ServiceContract
Service
SMSNotifier
VTigerApi.VTigerApiException: ACCESS_DENIED: Permission to perform the operation is denied
bij VTigerApi.VTiger.VTigerGetJson[T](String operation, String parameters, Boolean post) in B:\VS\cammUtils-vTigerNetApi-master\VTigerApi\VTigerService.cs:regel 737
bij VTigerApi.VTiger.VTiger_Query[T](String query) in B:\VS\cammUtils-vTigerNetApi-master\VTigerApi\VTigerService.cs:regel 438
bij VTigerApi.VTiger.Query(String query) in B:\VS\cammUtils-vTigerNetApi-master\VTigerApi\VTigerService.cs:regel 478
bij VTigerManager.VTigerMan.ShowPage(Int32 pageNum) in B:\VS\cammUtils-vTigerNetApi-master\VTigerManagerDemo\VTigerMan.cs:regel 336
These typenames give no error:
Asset
Calendar
Document
Event
Faq
HelpDesk
ModComment
Product
Users
Vendor
And the Group typename give this errors:
System.Exception: Cannot import VTigerApi.VTigerResult`1[Jayrock.Json.JsonArray] from a JSON String value. (
Warning:  Undefined array key "crmid" in /home/xxx/public_html/xxx/include/Webservices/VtigerActorOperation.php on line 325

Warning:  Undefined array key "crmid" in /home/xxx/public_html/xxx/include/Webservices/VtigerActorOperation.php on line 325

Warning:  Undefined array key "crmid" in /home/xxx/public_html/xxx/include/Webservices/VtigerActorOperation.php on line 325
{"success":true,"result":[{"id":"20x2","groupname":"Team Selling","description":"Group Related to Sales"},{"id":"20x3","groupname":"Marketing Group","description":"Group Related to Marketing Activities"},{"id":"20x4","groupname":"Support Group","description":"Group Related to providing Support to Customers"}]})
bij VTigerApi.VTiger.ImportJson[T](String json) in B:\VS\cammUtils-vTigerNetApi-master\VTigerApi\VTigerService.cs:regel 693
bij VTigerApi.VTiger.VTigerGetJson[T](String operation, String parameters, Boolean post) in B:\VS\cammUtils-vTigerNetApi-master\VTigerApi\VTigerService.cs:regel 728
bij VTigerApi.VTiger.VTiger_Query[T](String query) in B:\VS\cammUtils-vTigerNetApi-master\VTigerApi\VTigerService.cs:regel 438
bij VTigerApi.VTiger.Query(String query) in B:\VS\cammUtils-vTigerNetApi-master\VTigerApi\VTigerService.cs:regel 478
bij VTigerManager.VTigerMan.ShowPage(Int32 pageNum) in B:\VS\cammUtils-vTigerNetApi-master\VTigerManagerDemo\VTigerMan.cs:regel 336

The vtiger backend seems to throw ACCESS_DENIED: Permission to perform the operation is denied
Fixes in backend might be required.

After some testing, I now found out that when you do a default installation (no additional modules installed) the products module isn't activated.
Once it gets activated, the access denied errors occur.
So now I can try to figure out what is changed with activating the products module.
It's not in the files, as I only delete the database tables for a "new" installation.

Thank you very mcuh for your valuable update!
Great to hear that this issue is solved for now :-)


Powershell

The title refers to using PowerShell, however, these AWS CLI commands.  Please provide Powershell cmdlets to do the same.

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

ID: 8ade032b-33a4-739a-0be4-ce84b0a154c5
Version Independent ID: 2079c932-1bae-238e-2861-b76c3cf0a8a0
Content: Move a Windows AWS VMs to Azure
Content Source: articles/virtual-machines/windows/aws-to-azure.md
Service: virtual-machines-windows
GitHub Login: @cynthn
Microsoft Alias: cynthn

Thanks for the feedback! We are currently investigating and will update you shortly.

@cynthn It looks like the title of the doc says 'using PowerShell', but we are not sharing PowerShell commands. Can you please take a look at this one and make updates as necessary.

I saw this morning. Is there a way to do with powershell?
Thank you
Parvinder Raheja

On Oct 26, 2018, at 12:26 PM, Cynthia Nottingham<EMAIL_ADDRESS>wrote:
@rahejaps thank you for the feedback! I've removed "PowerShell" from the title, since this isn't done using PowerShell. Thanks again!
#please-close
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub, or mute the thread.

@rahejaps No, not that I know of. You need to use the AWS CLI to do the export. Once you have the VHD, you can switch over to PowerShell to do the upload to Azure and create the VM, which is a topic that should be linked at the end of the article.

@cynthn Thank you for sharing your insights. :)
@rahejaps Thanks for bringing this to our attention. We will now close this issue. If there are further questions regarding this matter, please reopen it and we will gladly continue the discussion.


Account Settings need better design

When Wagtail 2.x are released, I have seen some new features in account settings.
Now user can edit timezone and even change email address in accout settings, I am sure people would not be satisfied and would like to add more functions in account settings page in future.
About email changing, let's first take a look at the current code.
def change_email(request):
    if request.method == 'POST':
        form = EmailForm(request.POST, instance=request.user)

        if form.is_valid():
            form.save()
            messages.success(request, _("Your email has been changed successfully!"))
            return redirect('wagtailadmin_account')
    else:
        form = EmailForm(instance=request.user)

    return render(request, 'wagtailadmin/account/change_email.html', {
        'form': form,
    })

User can change email address without confirming, is this really a good implementation?

What if I do not want my user to edit email address?

As you can see, the current design have some drawback and I really believe we should be clear about what account settings in Wagtail should be before merging PR from other people.
What to Do and What Not to Do
I have built many projects using Wagtail, and I think the biggest feature of Wagtail is to help people construct content, organize content, publish content.

Write programs that do one thing and do it well.     --Unix philosophy

Wagtail should focus, focus, focus on the content part!
What is the next step with Accout settings
Right now the account settings is not easy to customize, we need to find a better way to solve this problem.

Wagtail should work fine without the account settings feature.

wagtail.users.models.UserProfile We should make this class like AbstractUser in Django, so developer can inherit it and add custom fields.

ProfileEditForm should be used same like WAGTAIL_USER_EDIT_FORM, developer can customize the profile edit page.

Hi @michael-yin - thanks for the comments.
Not sure what you mean re "wagtail should focus on content" - I definitely agree with the sentiment, but can you elaborate more on how that should influence the decisions we make on this feature? (It's probably fair to say that the account settings area hasn't had as much love as it needs from developers, precisely because it's been lower priority than the core content editing features...)
I'd definitely like to see the account settings area reworked so that all settings are on a single form, rather than individual forms for each feature. We currently have a hook register_account_menu_item for adding new entries to the account settings landing page - this was added mainly for the benefit of third-party Wagtail extensions (see #4421). We'd probably want to add a new hook for inserting additional sections into the new unified form (but keep the existing register_account_menu_item hook for backwards compatibility, and for the benefit of add-ons that are extensive enough to need their own page). This new hook could then be used in user code to insert custom fields (I don't think it would be feasible to support the hook and swapping out the form class via a setting).
Rather than making the UserProfile model swappable (which is always a messy process), I'd suggest you create a separate custom model with a OneToOneField relation to User, so that the wagtail.users.models.UserProfile model remains Wagtail-specific.
I suspect that disabling the account settings completely would be quite an uncommon requirement, but it could probably be implemented quite neatly as follows:

convert all existing forms in the accounts area (avatar, language, timezone etc...) to use the hook mentioned above
provide a way to un-register those forms within user code
if no forms are registered, hide the accounts area entirely

#7050 addresses the bit for inserting custom fields/panels
https://github.com/wagtail/wagtail/blob/0790f3b1108c35d8b1469fccfe5f4c01be107592/wagtail/admin/views/account.py#L191-L210

Wagtail 2.13 introduced a new account settings interface which is much simpler.
This, and the comment above, cover the main points of this issue.
It should be possible to block the accounts settings with either a template override. Which is the first point.
I think we can close this.
If someone wants to raise a new and more specific enhancement suggestion we can discuss further on that. Or if this should be re-opened, a core team member can do this.


TS Server fatal error:  Debug Failure. False expression.

Type: Bug
❗❗❗ Please fill in the sections below to help us diagnose the issue ❗❗❗
TypeScript Version: 5.3.2
Steps to reproduce crash

Sorry don't have any other than I had this project open: https://github.com/microsoft/pyrx

TS Server Log
❗ Server logging disabled. To help us fix crashes like this, please enable logging by setting:
"typescript.tsserver.log": "verbose"

After enabling this setting, future crash reports will include the server log.
TS Server Error Stack
Server: syntax
Error: Debug Failure. False expression.
    at _ProjectService.assignProjectToOpenedScriptInfo (c:\Users\rchiodo\AppData\Local\Programs\Microsoft VS Code Insiders\resources\app\extensions\node_modules\typescript\lib\tsserver.js:181346:13)
    at c:\Users\rchiodo\AppData\Local\Programs\Microsoft VS Code Insiders\resources\app\extensions\node_modules\typescript\lib\tsserver.js:181577:64
    at flatMap (c:\Users\rchiodo\AppData\Local\Programs\Microsoft VS Code Insiders\resources\app\extensions\node_modules\typescript\lib\tsserver.js:2597:17)
    at _ProjectService.applyChangesInOpenFiles (c:\Users\rchiodo\AppData\Local\Programs\Microsoft VS Code Insiders\resources\app\extensions\node_modules\typescript\lib\tsserver.js:181577:24)
    at updateOpen (c:\Users\rchiodo\AppData\Local\Programs\Microsoft VS Code Insiders\resources\app\extensions\node_modules\typescript\lib\tsserver.js:182775:29)
    at c:\Users\rchiodo\AppData\Local\Programs\Microsoft VS Code Insiders\resources\app\extensions\node_modules\typescript\lib\tsserver.js:185377:69
    at IpcIOSession.executeWithRequestId (c:\Users\rchiodo\AppData\Local\Programs\Microsoft VS Code Insiders\resources\app\extensions\node_modules\typescript\lib\tsserver.js:185369:14)
    at IpcIOSession.executeCommand (c:\Users\rchiodo\AppData\Local\Programs\Microsoft VS Code Insiders\resources\app\extensions\node_modules\typescript\lib\tsserver.js:185377:29)
    at IpcIOSession.onMessage (c:\Users\rchiodo\AppData\Local\Programs\Microsoft VS Code Insiders\resources\app\extensions\node_modules\typescript\lib\tsserver.js:185419:51)
    at process.<anonymous> (c:\Users\rchiodo\AppData\Local\Programs\Microsoft VS Code Insiders\resources\app\extensions\node_modules\typescript\lib\tsserver.js:187001:14)
    at process.emit (node:events:513:28)
    at emit (node:internal/child_process:937:14)
    at process.processTicksAndRejections (node:internal/process/task_queues:83:21)

VS Code version: Code - Insiders 1.85.0-insider (7caa3f698d26f7929822064baa1f3b23e7955c7d, 2023-12-01T14:17:40.644Z)
OS version: Windows_NT x64 10.0.22631
Modes:

System Info

Item
Value

CPUs
AMD EPYC 7763 64-Core Processor                 (16 x 2445)

GPU Status
2d_canvas: unavailable_softwarecanvas_oop_rasterization: disabled_offdirect_rendering_display_compositor: disabled_off_okgpu_compositing: disabled_softwaremultiple_raster_threads: enabled_onopengl: disabled_offrasterization: disabled_softwareraw_draw: disabled_off_okvideo_decode: disabled_softwarevideo_encode: disabled_softwarevulkan: disabled_offwebgl: unavailable_softwarewebgl2: unavailable_softwarewebgpu: unavailable_software

Load (avg)
undefined

Memory (System)
63.95GB (49.20GB free)

Process Argv
. --crash-reporter-id fb5f004c-0c45-4402-af67-bb66466f13d8

Screen Reader
no

VM
0%

Extensions (9)

Extension
Author (truncated)
Version

vscode-eslint
dba
2.4.2

prettier-vscode
esb
10.1.0

python
ms-
2023.21.13351006

vscode-pylance
ms-
2023.11.100

jupyter
ms-
2023.11.1003351000

jupyter-keymap
ms-
1.1.2

jupyter-renderers
ms-
1.0.17

vscode-jupyter-cell-tags
ms-
0.1.8

vscode-jupyter-slideshow
ms-
0.1.5

A/B Experiments
vsliv695:30137379
vsins829:30139715
vsliv368cf:30146710
vsreu685:30147344
python383:30185418
vspor879:30202332
vspor708:30202333
vspor363:30204092
vslsvsres303:30308271
pythontb:30258533
vsc_aacf:30263846
pythonptprofiler:30281269
vshan820:30294714
vscod805:30301674
bridge0708:30335490
bridge0723:30353136
vsaa593:30376534
pythonvs932:30404738
py29gd2263:30784851
vsclangdf:30492506
c4g48928:30535728
dsvsc012:30540252
a9j8j154:30646983
showlangstatbar:30737417
f8hc8238:30694864
fixshowwlkth:30771523
showindicator:30805243
pythongtdpath:30726887
i26e3531:30792625
welcomedialog:30812478
pythonnosmt12:30779711
pythonidxpt:30768918
pythonnoceb:30776497
asynctok:30898717
dsvsc013:30777762
dsvsc014:30777825
pythonmpsinfo:30901776
dsvsc015:30821418
pythontestfixt:30866404
pythonregdiag2:30902439
pyreplss1:30879911
pythonmypyd1:30859725
pythoncet0:30859736
pythontbext0:30879054
accentitlementst:30870582
dsvsc016:30879898
dsvsc017:30880771
dsvsc018:30880772
aa_t_chat:30882232

Can you Ppease try collecting the TS Server log from the crashed instance:

Set "typescript.tsserver.log": "verbose"

Restart VS Code and reproduce the problem

Open the TypeScript section of the output panel

At the very top, find the first line that prints to path to the semantic error log file. It should look something like:
[Info  - 19:54:59.247] <semantic> Log file: /Users/matb/Library/Application Support/Code - Insiders/logs/20200213T104930/exthost55/vscode.typescript-language-features/tsserver-log-ZT2zau/tsserver.log

That file contains the typescript logs.

Look through that log file for the first error or stack trace you see. If you can share the log, I can also take a look to see if anything stands out

⚠Warning: The TypeScript log may include information from your workspace, including file paths and source code. If you have any concerns about posting this publicly on Github, just let me know and we can arrange something else. On our side, we only use these logs to investigate issues like this

Unfortunately, I haven't reproduced the problem since. It happened just once.

I'm able to reproduce it consistently now. I was working in a project and everything was fine, but with one particular file, IntelliSense shows one popup and then dies with the False expression error in the extension output. In the logs it looks like the typescript server is working and doing all the setup, but as soon as I type one character, it crashes.
Info 241  [11:47:07.635] request:
    {
      "seq": 48,
      "type": "request",
      "command": "quickinfo",
      "arguments": {
        "file": "/Users/sschurter/Development/RequestRaven/frontend/src/store.js",
        "line": 1,
        "offset": 34
      }
    }
Perf 242  [11:47:07.636] 48::quickinfo: elapsed time (in milliseconds) 0.8140
Info 243  [11:47:07.636] response:
    {"seq":0,"type":"response","command":"quickinfo","request_seq":48,"success":true,"body":{"kind":"alias","kindModifiers":"export,declare","start":{"line":1,"offset":29},"end":{"line":1,"offset":34},"displayString":"(alias) function query<AppModelType, DbModelType extends DocumentData>(query: Query<AppModelType, DbModelType>, compositeFilter: QueryCompositeFilterConstraint, ...queryConstraints: QueryNonFilterConstraint[]): Query<AppModelType, DbModelType> (+1 overload)\nimport query","documentation":[{"text":"Creates a new immutable instance of ","kind":"text"},{"text":"{@link ","kind":"link"},{"text":"Query","kind":"linkName","target":{"file":"/Users/sschurter/Development/RequestRaven/frontend/node_modules/@firebase/firestore/dist/index.d.ts","start":{"line":1849,"offset":1},"end":{"line":1880,"offset":2}}},{"text":"}","kind":"link"},{"text":" that is extended to also\ninclude additional query constraints.","kind":"text"}],"tags":[{"name":"param","text":[{"text":"query","kind":"parameterName"},{"text":" ","kind":"space"},{"text":"- The ","kind":"text"},{"text":"{@link ","kind":"link"},{"text":"Query","kind":"linkName","target":{"file":"/Users/sschurter/Development/RequestRaven/frontend/node_modules/@firebase/firestore/dist/index.d.ts","start":{"line":1849,"offset":1},"end":{"line":1880,"offset":2}}},{"text":"}","kind":"link"},{"text":" instance to use as a base for the new\nconstraints.","kind":"text"}]},{"name":"param","text":[{"text":"compositeFilter","kind":"parameterName"},{"text":" ","kind":"space"},{"text":"- The ","kind":"text"},{"text":"{@link ","kind":"link"},{"text":"QueryCompositeFilterConstraint","kind":"linkName","target":{"file":"/Users/sschurter/Development/RequestRaven/frontend/node_modules/@firebase/firestore/dist/index.d.ts","start":{"line":1915,"offset":1},"end":{"line":1918,"offset":2}}},{"text":"}","kind":"link"},{"text":" to\napply. Create ","kind":"text"},{"text":"{@link ","kind":"link"},{"text":"QueryCompositeFilterConstraint","kind":"linkName","target":{"file":"/Users/sschurter/Development/RequestRaven/frontend/node_modules/@firebase/firestore/dist/index.d.ts","start":{"line":1915,"offset":1},"end":{"line":1918,"offset":2}}},{"text":"}","kind":"link"},{"text":" using ","kind":"text"},{"text":"{@link ","kind":"link"},{"text":"and","kind":"linkName","target":{"file":"/Users/sschurter/Development/RequestRaven/frontend/node_modules/@firebase/firestore/dist/index.d.ts","start":{"line":115,"offset":1},"end":{"line":115,"offset":107}}},{"text":"}","kind":"link"},{"text":" or\n","kind":"text"},{"text":"{@link ","kind":"link"},{"text":"or","kind":"linkName","target":{"file":"/Users/sschurter/Development/RequestRaven/frontend/node_modules/@firebase/firestore/dist/index.d.ts","start":{"line":1707,"offset":1},"end":{"line":1707,"offset":106}}},{"text":"}","kind":"link"},{"text":".","kind":"text"}]},{"name":"param","text":[{"text":"queryConstraints","kind":"parameterName"},{"text":" ","kind":"space"},{"text":"- Additional ","kind":"text"},{"text":"{@link ","kind":"link"},{"text":"QueryNonFilterConstraint","kind":"linkName","target":{"file":"/Users/sschurter/Development/RequestRaven/frontend/node_modules/@firebase/firestore/dist/index.d.ts","start":{"line":2017,"offset":1},"end":{"line":2017,"offset":142}}},{"text":"}","kind":"link"},{"text":"s to\napply (e.g. ","kind":"text"},{"text":"{@link ","kind":"link"},{"text":"orderBy","kind":"linkName","target":{"file":"/Users/sschurter/Development/RequestRaven/frontend/node_modules/@firebase/firestore/dist/index.d.ts","start":{"line":1720,"offset":1},"end":{"line":1720,"offset":121}}},{"text":"}","kind":"link"},{"text":", ","kind":"text"},{"text":"{@link ","kind":"link"},{"text":"limit","kind":"linkName","target":{"file":"/Users/sschurter/Development/RequestRaven/frontend/node_modules/@firebase/firestore/dist/index.d.ts","start":{"line":1338,"offset":1},"end":{"line":1338,"offset":68}}},{"text":"}","kind":"link"},{"text":").","kind":"text"}]},{"name":"throws","text":[{"text":"if any of the provided query constraints cannot be combined with the\nexisting or new constraints.","kind":"text"}]}]}}
Info 244  [11:47:08.982] request:
    {
      "seq": 49,
      "type": "request",
      "command": "updateOpen",
      "arguments": {
        "changedFiles": [
          {
            "fileName": "/Users/sschurter/Development/RequestRaven/frontend/src/store.js",
            "textChanges": [
              {
                "newText": ",",
                "start": {
                  "line": 1,
                  "offset": 34
                },
                "end": {
                  "line": 1,
                  "offset": 34
                }
              }
            ]
          }
        ],
        "closedFiles": [],
        "openFiles": []
      }
    }
Perf 245  [11:47:08.982] 49::updateOpen: elapsed time (in milliseconds) 0.3757
Info 246  [11:47:08.982] response:
    {"seq":0,"type":"response","command":"updateOpen","request_seq":49,"success":true,"body":true}
Info 247  [11:47:08.983] request:
    {
      "seq": 50,
      "type": "request",
      "command": "signatureHelp",
      "arguments": {
        "file": "/Users/sschurter/Development/RequestRaven/frontend/src/store.js",
        "line": 1,
        "offset": 35,
        "triggerReason": {
          "kind": "characterTyped",
          "triggerCharacter": ","
        }
      }
    }
Err 248   [11:47:08.993] Exception on executing command {
  "seq": 50,
  "type": "request",
  "command": "signatureHelp",
  "arguments": {
    "file": "/Users/sschurter/Development/RequestRaven/frontend/src/store.js",
    "line": 1,
    "offset": 35,
    "triggerReason": {
      "kind": "characterTyped",
      "triggerCharacter": ","
    }
  }
}:

    Debug Failure. False expression.

    Error: Debug Failure. False expression.
        at InferredProject2.updateGraphWorker (/Applications/Visual Studio Code.app/Contents/Resources/app/extensions/node_modules/typescript/lib/tsserver.js:177374:11)
        at InferredProject2.updateGraph (/Applications/Visual Studio Code.app/Contents/Resources/app/extensions/node_modules/typescript/lib/tsserver.js:177233:32)
        at updateProjectIfDirty (/Applications/Visual Studio Code.app/Contents/Resources/app/extensions/node_modules/typescript/lib/tsserver.js:178944:35)
        at InferredProject2.getLanguageService (/Applications/Visual Studio Code.app/Contents/Resources/app/extensions/node_modules/typescript/lib/tsserver.js:176844:7)
        at IpcIOSession.getSignatureHelpItems (/Applications/Visual Studio Code.app/Contents/Resources/app/extensions/node_modules/typescript/lib/tsserver.js:184740:31)
        at signatureHelp (/Applications/Visual Studio Code.app/Contents/Resources/app/extensions/node_modules/typescript/lib/tsserver.js:183018:43)
        at /Applications/Visual Studio Code.app/Contents/Resources/app/extensions/node_modules/typescript/lib/tsserver.js:185377:69
        at IpcIOSession.executeWithRequestId (/Applications/Visual Studio Code.app/Contents/Resources/app/extensions/node_modules/typescript/lib/tsserver.js:185369:14)
        at IpcIOSession.executeCommand (/Applications/Visual Studio Code.app/Contents/Resources/app/extensions/node_modules/typescript/lib/tsserver.js:185377:29)
        at IpcIOSession.onMessage (/Applications/Visual Studio Code.app/Contents/Resources/app/extensions/node_modules/typescript/lib/tsserver.js:185419:51)
        at process.<anonymous> (/Applications/Visual Studio Code.app/Contents/Resources/app/extensions/node_modules/typescript/lib/tsserver.js:187001:14)
        at process.emit (node:events:513:28)
        at emit (node:internal/child_process:937:14)
        at process.processTicksAndRejections (node:internal/process/task_queues:83:21)

File text of /Users/sschurter/Development/RequestRaven/frontend/src/store.js:
    import { collection, where, query, } from "firebase/firestore";
    import { db, auth, collectionName } from "./services/FirebaseService";
    import { errorHandler } from "./main";

    export const mutations = {
      /**
       * Set requests first checks if the code calling it has designated whether we are loading
       * the archived requests or the active requests.
       * If we are loading the active requests, then isArchived has to be false.
       * If we are loading the archived requests, then isArchived has to be true.
       */
      setRequests(state, isArchived) {
        let items = [];
        query(collection(db, collectionName), where("archived", "==", isArchived))
          .onSnapshot(snapshot => {
            items = [];
            snapshot.forEach(doc => {
              items.push({
                id: doc.id,
                name: doc.data().name,
                data: doc.data()
              });
            });
            errorHandler.report(
              `setRequests: ${isArchived}, returning ${items.length} items`
            );
            if (isArchived) {
              state.archiveRequests = items;
            } else if (!isArchived) {
              state.activeRequests = items;
            }
          });
      },
    };

Info 249  [11:47:08.993] response:
    {"seq":0,"type":"response","command":"signatureHelp","request_seq":50,"success":false,"message":"Error processing request. Debug Failure. False expression.\nError: Debug Failure. False expression.\n    at InferredProject2.updateGraphWorker (/Applications/Visual Studio Code.app/Contents/Resources/app/extensions/node_modules/typescript/lib/tsserver.js:177374:11)\n    at InferredProject2.updateGraph (/Applications/Visual Studio Code.app/Contents/Resources/app/extensions/node_modules/typescript/lib/tsserver.js:177233:32)\n    at updateProjectIfDirty (/Applications/Visual Studio Code.app/Contents/Resources/app/extensions/node_modules/typescript/lib/tsserver.js:178944:35)\n    at InferredProject2.getLanguageService (/Applications/Visual Studio Code.app/Contents/Resources/app/extensions/node_modules/typescript/lib/tsserver.js:176844:7)\n    at IpcIOSession.getSignatureHelpItems (/Applications/Visual Studio Code.app/Contents/Resources/app/extensions/node_modules/typescript/lib/tsserver.js:184740:31)\n    at signatureHelp (/Applications/Visual Studio Code.app/Contents/Resources/app/extensions/node_modules/typescript/lib/tsserver.js:183018:43)\n    at /Applications/Visual Studio Code.app/Contents/Resources/app/extensions/node_modules/typescript/lib/tsserver.js:185377:69\n    at IpcIOSession.executeWithRequestId (/Applications/Visual Studio Code.app/Contents/Resources/app/extensions/node_modules/typescript/lib/tsserver.js:185369:14)\n    at IpcIOSession.executeCommand (/Applications/Visual Studio Code.app/Contents/Resources/app/extensions/node_modules/typescript/lib/tsserver.js:185377:29)\n    at IpcIOSession.onMessage (/Applications/Visual Studio Code.app/Contents/Resources/app/extensions/node_modules/typescript/lib/tsserver.js:185419:51)\n    at process.<anonymous> (/Applications/Visual Studio Code.app/Contents/Resources/app/extensions/node_modules/typescript/lib/tsserver.js:187001:14)\n    at process.emit (node:events:513:28)\n    at emit (node:internal/child_process:937:14)\n    at process.processTicksAndRejections (node:internal/process/task_queues:83:21)"}
Info 250  [11:47:09.007] request:
    {
      "seq": 51,
      "type": "request",
      "command": "encodedSemanticClassifications-full",
      "arguments": {
        "file": "/Users/sschurter/Development/RequestRaven/frontend/src/store.js",
        "start": 0,
        "length": 207,
        "format": "2020"
      }
    }
Err 251   [11:47:09.007] Exception on executing command {
  "seq": 51,
  "type": "request",
  "command": "encodedSemanticClassifications-full",
  "arguments": {
    "file": "/Users/sschurter/Development/RequestRaven/frontend/src/store.js",
    "start": 0,
    "length": 207,
    "format": "2020"
  }
}:

    Debug Failure. False expression.

    Error: Debug Failure. False expression.
        at InferredProject2.updateGraphWorker (/Applications/Visual Studio Code.app/Contents/Resources/app/extensions/node_modules/typescript/lib/tsserver.js:177374:11)
        at InferredProject2.updateGraph (/Applications/Visual Studio Code.app/Contents/Resources/app/extensions/node_modules/typescript/lib/tsserver.js:177233:32)
        at updateProjectIfDirty (/Applications/Visual Studio Code.app/Contents/Resources/app/extensions/node_modules/typescript/lib/tsserver.js:178944:35)
        at InferredProject2.getLanguageService (/Applications/Visual Studio Code.app/Contents/Resources/app/extensions/node_modules/typescript/lib/tsserver.js:176844:7)
        at IpcIOSession.getEncodedSemanticClassifications (/Applications/Visual Studio Code.app/Contents/Resources/app/extensions/node_modules/typescript/lib/tsserver.js:183735:20)
        at encodedSemanticClassifications-full (/Applications/Visual Studio Code.app/Contents/Resources/app/extensions/node_modules/typescript/lib/tsserver.js:183038:43)
        at /Applications/Visual Studio Code.app/Contents/Resources/app/extensions/node_modules/typescript/lib/tsserver.js:185377:69
        at IpcIOSession.executeWithRequestId (/Applications/Visual Studio Code.app/Contents/Resources/app/extensions/node_modules/typescript/lib/tsserver.js:185369:14)
        at IpcIOSession.executeCommand (/Applications/Visual Studio Code.app/Contents/Resources/app/extensions/node_modules/typescript/lib/tsserver.js:185377:29)
        at IpcIOSession.onMessage (/Applications/Visual Studio Code.app/Contents/Resources/app/extensions/node_modules/typescript/lib/tsserver.js:185419:51)
        at process.<anonymous> (/Applications/Visual Studio Code.app/Contents/Resources/app/extensions/node_modules/typescript/lib/tsserver.js:187001:14)
        at process.emit (node:events:513:28)
        at emit (node:internal/child_process:937:14)
        at process.processTicksAndRejections (node:internal/process/task_queues:83:21)

File text of /Users/sschurter/Development/RequestRaven/frontend/src/store.js:
    import { collection, where, query, } from "firebase/firestore";
    import { db, auth, collectionName } from "./services/FirebaseService";
    import { errorHandler } from "./main";

    export const mutations = {
      /**
       * Set requests first checks if the code calling it has designated whether we are loading
       * the archived requests or the active requests.
       * If we are loading the active requests, then isArchived has to be false.
       * If we are loading the archived requests, then isArchived has to be true.
       */
      setRequests(state, isArchived) {
        let items = [];
        query(collection(db, collectionName), where("archived", "==", isArchived))
          .onSnapshot(snapshot => {
            items = [];
            snapshot.forEach(doc => {
              items.push({
                id: doc.id,
                name: doc.data().name,
                data: doc.data()
              });
            });
            errorHandler.report(
              `setRequests: ${isArchived}, returning ${items.length} items`
            );
            if (isArchived) {
              state.archiveRequests = items;
            } else if (!isArchived) {
              state.activeRequests = items;
            }
          });
      },
    };

Info 252  [11:47:09.007] response:
    {"seq":0,"type":"response","command":"encodedSemanticClassifications-full","request_seq":51,"success":false,"message":"Error processing request. Debug Failure. False expression.\nError: Debug Failure. False expression.\n    at InferredProject2.updateGraphWorker (/Applications/Visual Studio Code.app/Contents/Resources/app/extensions/node_modules/typescript/lib/tsserver.js:177374:11)\n    at InferredProject2.updateGraph (/Applications/Visual Studio Code.app/Contents/Resources/app/extensions/node_modules/typescript/lib/tsserver.js:177233:32)\n    at updateProjectIfDirty (/Applications/Visual Studio Code.app/Contents/Resources/app/extensions/node_modules/typescript/lib/tsserver.js:178944:35)\n    at InferredProject2.getLanguageService (/Applications/Visual Studio Code.app/Contents/Resources/app/extensions/node_modules/typescript/lib/tsserver.js:176844:7)\n    at IpcIOSession.getEncodedSemanticClassifications (/Applications/Visual Studio Code.app/Contents/Resources/app/extensions/node_modules/typescript/lib/tsserver.js:183735:20)\n    at encodedSemanticClassifications-full (/Applications/Visual Studio Code.app/Contents/Resources/app/extensions/node_modules/typescript/lib/tsserver.js:183038:43)\n    at /Applications/Visual Studio Code.app/Contents/Resources/app/extensions/node_modules/typescript/lib/tsserver.js:185377:69\n    at IpcIOSession.executeWithRequestId (/Applications/Visual Studio Code.app/Contents/Resources/app/extensions/node_modules/typescript/lib/tsserver.js:185369:14)\n    at IpcIOSession.executeCommand (/Applications/Visual Studio Code.app/Contents/Resources/app/extensions/node_modules/typescript/lib/tsserver.js:185377:29)\n    at IpcIOSession.onMessage (/Applications/Visual Studio Code.app/Contents/Resources/app/extensions/node_modules/typescript/lib/tsserver.js:185419:51)\n    at process.<anonymous> (/Applications/Visual Studio Code.app/Contents/Resources/app/extensions/node_modules/typescript/lib/tsserver.js:187001:14)\n    at process.emit (node:events:513:28)\n    at emit (node:internal/child_process:937:14)\n    at process.processTicksAndRejections (node:internal/process/task_queues:83:21)"}
Info 253  [11:47:09.008] request:
    {
      "seq": 52,
      "type": "request",
      "command": "encodedSemanticClassifications-full",
      "arguments": {
        "file": "/Users/sschurter/Development/RequestRaven/frontend/src/store.js",
        "start": 512,
        "length": 641,
        "format": "2020"
      }
    }
Err 254   [11:47:09.008] Exception on executing command {
  "seq": 52,
  "type": "request",
  "command": "encodedSemanticClassifications-full",
  "arguments": {
    "file": "/Users/sschurter/Development/RequestRaven/frontend/src/store.js",
    "start": 512,
    "length": 641,
    "format": "2020"
  }
}:

    Debug Failure. False expression.

    Error: Debug Failure. False expression.
        at InferredProject2.updateGraphWorker (/Applications/Visual Studio Code.app/Contents/Resources/app/extensions/node_modules/typescript/lib/tsserver.js:177374:11)
        at InferredProject2.updateGraph (/Applications/Visual Studio Code.app/Contents/Resources/app/extensions/node_modules/typescript/lib/tsserver.js:177233:32)
        at updateProjectIfDirty (/Applications/Visual Studio Code.app/Contents/Resources/app/extensions/node_modules/typescript/lib/tsserver.js:178944:35)
        at InferredProject2.getLanguageService (/Applications/Visual Studio Code.app/Contents/Resources/app/extensions/node_modules/typescript/lib/tsserver.js:176844:7)
        at IpcIOSession.getEncodedSemanticClassifications (/Applications/Visual Studio Code.app/Contents/Resources/app/extensions/node_modules/typescript/lib/tsserver.js:183735:20)
        at encodedSemanticClassifications-full (/Applications/Visual Studio Code.app/Contents/Resources/app/extensions/node_modules/typescript/lib/tsserver.js:183038:43)
        at /Applications/Visual Studio Code.app/Contents/Resources/app/extensions/node_modules/typescript/lib/tsserver.js:185377:69
        at IpcIOSession.executeWithRequestId (/Applications/Visual Studio Code.app/Contents/Resources/app/extensions/node_modules/typescript/lib/tsserver.js:185369:14)
        at IpcIOSession.executeCommand (/Applications/Visual Studio Code.app/Contents/Resources/app/extensions/node_modules/typescript/lib/tsserver.js:185377:29)
        at IpcIOSession.onMessage (/Applications/Visual Studio Code.app/Contents/Resources/app/extensions/node_modules/typescript/lib/tsserver.js:185419:51)
        at process.<anonymous> (/Applications/Visual Studio Code.app/Contents/Resources/app/extensions/node_modules/typescript/lib/tsserver.js:187001:14)
        at process.emit (node:events:513:28)
        at emit (node:internal/child_process:937:14)
        at process.processTicksAndRejections (node:internal/process/task_queues:83:21)

File text of /Users/sschurter/Development/RequestRaven/frontend/src/store.js:
    import { collection, where, query, } from "firebase/firestore";
    import { db, auth, collectionName } from "./services/FirebaseService";
    import { errorHandler } from "./main";

    export const mutations = {
      /**
       * Set requests first checks if the code calling it has designated whether we are loading
       * the archived requests or the active requests.
       * If we are loading the active requests, then isArchived has to be false.
       * If we are loading the archived requests, then isArchived has to be true.
       */
      setRequests(state, isArchived) {
        let items = [];
        query(collection(db, collectionName), where("archived", "==", isArchived))
          .onSnapshot(snapshot => {
            items = [];
            snapshot.forEach(doc => {
              items.push({
                id: doc.id,
                name: doc.data().name,
                data: doc.data()
              });
            });
            errorHandler.report(
              `setRequests: ${isArchived}, returning ${items.length} items`
            );
            if (isArchived) {
              state.archiveRequests = items;
            } else if (!isArchived) {
              state.activeRequests = items;
            }
          });
      },
    };

The logs continue for several thousand lines after this that look pretty much identical

I'm on MacOS 14.2
code --version
1.85.1
0ee08df0cf4527e40edc9aa28f4b5bd38bbff2b2
x64

Please share the complete tsserver log along with the steps to repro. Thanks

tsserver.log
Repro steps

Open a Vue 2.7 project in VS Code (it's not public so I can't share the repo)
Open frontend/src/store.js (You can see the project structure and loaded files in the log, as well as the full text of store.js)
Hover over anything. Intellisense (and the language server) function properly
Make any change to the file
Hover over any item. Intellisense is down and the language server has exited with SIGTERM.

Other files in the project will eventually crash the server, but store.js is very reliable and crashes the language server after exactly one character entered, anywhere in the document.
Even though the stack trace does not point to any extension files besides the built-in TypeScript language features, I tried turning off all extensions and the crash went away. I turned them back on one at a time and narrowed it down to TypeScript Vue Plugin (Volar) from this repo.
Since the stack trace doesn't list any files from that extension, I'm not sure if this is on them, or the TypeScript language features

I think this is fixed by #56356
Can you try nightly typescript version and see if this is fixed

I haven't tested thoroughly, but it seems like that did fix it! Thanks


How to run each test several times ?

Hello !
We're writing our tests mobile-first with cypress-cucumber-preprocessor. By default, all the tests are run with a mobile viewport. But on some specific cases, we want to run them on desktop viewport.
This is possible since this PR : https://github.com/TheBrainFamily/cypress-cucumber-preprocessor/pull/216.
We're just using the Before to adapt the viewport depending on tags :
Before({ tags: '@desktop' }, () => {
  cy.viewport(desktopWidth, desktopHeight);
});

This is doing the job, but now we would like to enable the tests on both desktop and mobile viewports. Some tests are not mobile or desktop only, we want to run them on both viewports. So we will have three cases of tests :

Mobile only => the test is not tagged
Desktop only => the test is tagged with @desktop
Mobile AND Desktop => the test is tagged with @all-viewport

We could implement this duplicating the tests by ourself (writing the wanted tests two times, with a different tag on each), but we're looking for a better way (and easier to maintain).
Do someone know if it's possible to implement this with the plugin ? Or natively with Cypress ?
@jcundill any idea ? :smirk:

From the cucumber tags doco this should be achievable with or https://cucumber.io/docs/cucumber/api/#tags @desktop or @all-viewport
Is this not working in the plugin? I can take a look if it isn't

The tag expressions are working well in the plugin, but this is not doing what we want. With oror and we're running the scenario only once.
If I call ("@desktop and @mobile"), on the Before hook, I won't be able to run the matched scenarios on each viewport.
We're looking for a way to do something like this :
Before({tags: 'not @desktop and not @all-viewport'}, () => {
  cy.viewport(mobileWidth, mobileHeight);
})

Before({tags: '@desktop'}, () => {
  cy.viewport(desktopWidth, desktopHeight);
})

Before({tags: '@all-viewport'}, () => {
  cy.viewport(mobileWidth, mobileHeight);
  // run scenario
  cy.viewport(desktopWidth, desktopHeight);
  // run scenario
})

A solution could be to create npm commands to run only mobile / desktop / both-viewport scenarios, but we already have a lot of commands for Cypress, and we will always run all viewports tests (never only the mobile or only desktop for example).

This seems easily achievable outside of Cypress / Cucumber / this preprocessor.
#!/usr/bin/env sh

CYPRESS_TAGS="@mobile-only" CYPRESS_VIEWPORT="mobile"  cypress run
CYPRESS_TAGS="@desktop-only" CYPRESS_VIEWPORT="desktop" cypress run
CYPRESS_TAGS="not @desktop-only" CYPRESS_VIEWPORT="mobile" cypress run
CYPRESS_TAGS="not @mobile-only" CYPRESS_VIEWPORT="desktop" cypress run

... while somewhere in your code
Before(() => {
  cy.viewport(cy.env("VIEWPORT").split(","));
})

Thanks for your answer @badeball :)
I tried this and it works well 😉
By default, the same .feature file is resolved 2 times, so it wastes time on the global tests run, especially since we have a lot of scenarios. So if we use it, we'll have to combine it with bundled features files to gain time of execution.
Just one problem with this solution: it prevents us from using normally the cypress open command. All the .feature files are displayed, but the viewport is not updating between tests.
The mobile-only and desktop-only viewport are correctly set, but for the both-viewport tests, the test is running on mobile only 😕

You're right, this doesn't play well with the runner. Had one not been using Cucumber, one could simply have generated tests dynamically, as shown below. However, this simply isn't possible with how Cucumber works today.
That's not to say that a plugin couldn't provide this, but personally I would not be comfortable in expanding the scope beyond what Cucumber itself is.
function runIn(viewports, testFn) {
  for (let viewport in viewports) {
    describe(`When running in ${viewport}`, () => {
      beforeEach(() => {
        cy.viewport(...viewport.split("x"));
      });
      testFn();
    });
  }
}

describe("...", () => {
  runIn(["1920×1080", "1440×1080"], () => {
    it("...", () => {
      // ...
    });
  });
});

If you only have few scenarios that you want to try in different viewports, then you can create a Scenario Outline with a table of your different viewports. It will run your scenario with as many arguments as you got. 🙂
Hope it can help !
Example:
`
Scenario Outline: Display a button on
Given I am on the  viewport
Then a button should be displayed
Examples:
  | size       |
  | mobile   |
  | desktop |

`

Due to personal reasons, the previous maintainers of this package are stepping down and handing the reigns over to me, a long-time contributor to the project and a user of it myself. This is a responsibility I'm very excited about. Furthermore, I'd like to thank @lgandecki ++ for all the work that they've done so far.
Read more about the transfer of ownership here.
The repository has however moved and all outstanding issues are being closed. This is not a reflection of the perceived importance of your reported issue. However, if after upgrading to the new version, you still find there to be an issue, feel free to open up another ticket or comment below. Please make sure to read CONTRIBUTING.md before doing so.


need to specify version requirements for java files

in Src/java/README.md

fyi I just tried to build in java 6, 7, 8 and 9
6 and 7 both seemed to go furtherest but failed with

FAILURE: Build failed with an exception.

* What went wrong:
Execution failed for task ':cql:test'.
> There were failing tests. See the report at: file:///usr/src/myapp/cql/build/repor
ts/tests/index.html

* Try:
Run with --stacktrace option to get the stack trace. Run with --info or --debug opti
on to get more log output.

BUILD FAILED

java8 failed with

* Where:
Build file '/usr/src/myapp/elm/build.gradle' line: 12

* What went wrong:
Execution failed for task ':elm:generateSources'.
> unable to parse the schema. Error messages should have been provided

this was all using vanilla java dockers as specified here: https://hub.docker.com/_/java/

As noted in the other issue (#54), JDK 1.8 is required -- and it's only been tested using the official Oracle JDK (not OpenJDK).  I wouldn't expect OpenJDK to cause problems, but if we can't trace the problems to anything else, then it certainly might be OpenJDK.

I've updated the README to reflect that JDK 1.8 is required and to provide a link to the Oracle downloads for JDK 1.8.

thanks Chris - I'll see if I can get an oracle 1.8 Dockerfile up
worth noting this and the comments here regarding oracle licencing tho.

fyi this is my dockerfile:
https://bitbucket.org/erichbschulz/cql_java/src/347dea68e43e69b54650c5fbd874a53ecbdef8e9/Dockerfile?fileviewer=file-view-default
(because it was a shiny new docker vm this was a completely clean build)
I tried it again with the --info and --debug ...
this seems to be when the wheels fall off:
21:20:33.350 [DEBUG] [org.gradle.api.internal.project.ant.AntLoggingAdapter] Class com.sun.org.apac
he.xerces.internal.impl.dv.xs.SchemaDVFactoryImpl loaded from parent loader (parentFirst)
21:20:33.359 [DEBUG] [org.gradle.api.internal.project.ant.AntLoggingAdapter] Couldn't load Resource
Stream for META-INF/services/org.xml.sax.driver
21:20:33.360 [DEBUG] [org.gradle.api.internal.project.ant.AntLoggingAdapter] Couldn't load Resource
Stream for META-INF/services/org.xml.sax.driver
21:20:33.363 [ERROR] [org.gradle.api.internal.project.ant.AntLoggingAdapter] [ant:xjc] [ERROR] sche
ma_reference.4: Failed to read schema document 'file:/usr/src/cql-lm/schema/elm/library.xsd', becau
se 1) could not find the document; 2) the document could not be read; 3) the root element of the do
cument is not <xsd:schema>.
21:20:33.364 [ERROR] [org.gradle.api.internal.project.ant.AntLoggingAdapter] [ant:xjc] unknown loca
tion
21:20:33.364 [ERROR] [org.gradle.api.internal.project.ant.AntLoggingAdapter] [ant:xjc]
21:20:33.365 [INFO] [org.gradle.api.internal.project.ant.AntLoggingAdapter] [ant:xjc] failure in th
e XJC task. Use the Ant -verbose switch for more details
21:20:33.366 [DEBUG] [org.gradle.api.internal.tasks.execution.ExecuteAtMostOnceTaskExecuter] Finish
ed executing task ':elm:generateSources'
21:20:33.366 [LIFECYCLE] [class org.gradle.TaskExecutionLogger] :elm:generateSources FAILED
21:20:33.366 [INFO] [org.gradle.execution.taskgraph.AbstractTaskPlanExecutor] :elm:generateSources
(Thread[main,5,main]) completed. Took 3.439 secs.
21:20:33.367 [DEBUG] [org.gradle.execution.taskgraph.AbstractTaskPlanExecutor] Task worker [Thread[
main,5,main]] finished, busy: 4.23 secs, idle: 0.01 secs
21:20:33.373 [ERROR] [org.gradle.BuildExceptionReporter]
21:20:33.373 [ERROR] [org.gradle.BuildExceptionReporter] FAILURE: Build failed with an exception.


Renaming doesn't work 7.4.1

F2 button doesn't work and "TypeScript: Rename Refactor" command doesn't work too.

Do you have any more details? It works for me and that code hasn't changed in a long time.

Tested on mac (I used it this morning in my commute) and on PC.
Probably F2 is not what you are pressing :rocket: Try using the keybinding resolver ctrl + ./cmd + .

I restart Atom and it's work again... I will continue monitoring for this heisen bug.


Add a MuSig2 function to multiwallet.

Now that MuSig2 is merged, add something to multiwallet to play with it on signet.

Very much interested in MuSig2 support. Be happy to help make this happen if I could get some direction

Awesome! Take a look at taproot.py, particularly the MuSigTapScript class and the tests associated with it (test/test_musig.py). That should give you a good idea of how MuSig is called with multiple parties.
If you have any questions, please ask here. I'll try to be helpful by adding documentation.

Okay great, I think I understand the MuSig aspect. A bit unsure about the integration with multiwallet and the format for passing the required data around. Will this use a coordinator, or will all parties have to pass data to each other?
I believe the steps are:

Round 1

Generate a p2tr private and public key pair
Run nonce_gen to get nonce_secrets and nonce_points
Share public key and nonce_points
Aggregate public keys using a MuSigTapScript to get MuSig p2tr address (fund the address)

Round 2

Construct a Tx that spends from MuSig p2tr address
Calculate sum of shared nonce_points
Sign sig_hash of Tx using own nonce_secrets, priv_key and nonce_sums
Share signature
Aggregate signatures
Use signature to finalize spend of MuSig p2tr input.
Broadcast tx

Should this be using PSBTs somehow to store and share the partial signatures between participants?

This is a pretty big project, but there's a BIP for PSBT for MuSig2:
https://github.com/achow101/bips/blob/musig2-psbt/bip-musig2-psbt.mediawiki
It makes integration much wider scope, but any other transport to other users is bound to be deprecated.

I see, interesting. Will take a look


Improve the SQL CLI documentation (YML)

Currently, we have one page for getting started. However, we are missing separate documentation per feature.
We are missing structured documentation pages for all currently supported features:

configuration.yml

connections (with examples for all currently supported providers)
other possible configuration options (e.g. airflow_home)

workflows

what is a workflow
different kind of files (yaml, sql)
create dependencies via jinja templating syntax i.e. {{ }}

sql files

a select statement

yml files

load_file (all possible parameters or link to astro-sdk docs)

I have added some points I find important to cover. Feel free to edit.


UI notifications audit

In the UI, when a user performs a create, update, or delete of a resource (dashboard, bucket, task, etc.), a notification should fire in the UI and let the user know that their operation was successful.
The goal of this issue is to audit the areas in the app where these actions are performed on resources and determine if notifications are being fired in the UI for them. It would also be useful to understand the text and length of time the notifications are displayed.

Rose is interested in taking a look at this

Buckets

Create - No notification
Delete - No notification
Copy to clipboard – There is a notification (“Bucket ID ‘[bucket ID]’ has been copied to clipboard.” for 5 sec)
Settings

Rename – There is a notification (“Bucket was successfully renamed “[bucket name]”” for 5 sec)
Change Retention Period – There is a notification (“Bucket “[bucket name]“ was successfully updated” for 5 sec)

Labels

Add a label - No notification
Delete label  – No notification

Telegraf

Create - There is a notification (“Your configurations have been saved”  for 5 sec)

If System selected: There is a notification – (“Successfully created dashboards for telegraf plugin: system.” for ~5 sec, pops up a beat after the create one, stacked). Else, there is no second notification.

Delete - No notification
Rename - No notification
Edit description – No notification
Labels

Add a label - No notification
Delete label  – No notification

Setup Instructions

Copy to clipboard – There is a notification (“Script 'export INFLUX_TOKEN=<INFLUX_TO...' has been copied to clipboard.” for 5 sec)
Generate new token - No notification

InfluxDB Output Plugin

Copy to clipboard – There is a notification (“Script ' [[outputs.influxdb_v2]] ##...' has been copied to clipboard.” for 5 sec)
Download Config - No notification

Scraper

Create – There is a notification (“Scraper was created successfully” for 5 sec)
Rename – There is a notification (“Scraper “[scraper name]“ was updated successfully” for 5 sec)
Delete – There is a notification (“Scraper “[scraper name]“ was successfully deleted” for 5 sec)

Tokens

Generate – There is a notification (If a token is created, “Token was created successfully” for 5 sec. If you don’t select buckets for Generate Read/Write Token, “Failed to create tokens” for 10 sec)
Rename – There is a notification (“Token was updated successfully” for 5 sec)
Toggle – There is a notification (“Token was updated successfully” for 5 sec)
Delete – There is a notification (“Token was deleted successfully” for 5 sec)

Client Libraries

Copy to clipboard - there is a notification (“Script 'http://localhost:8080...' has been copied to clipboard.” for 5 sec)
Copy to clipboard inside a client library – there is a notification (“Script 'Install-Package InfluxDB.Clien...' has been copied to clipboard.” for 5 sec) Note: The message will last until it times out or you manually delete the notification, and until it is gone a new notification will not be displayed (ex. If you copy two things to clipboard one after another, the notification will still read the first thing is copied to clipboard, even though the second one is what’s actually on your clipboard)

Summary

Create –  Buckets does not have a notification
Delete – Buckets and Telegrafs do not have notifications
Rename – Telegrafs does not have a notification
Copy to clipboard – There is always a notification, but some confusion if you copy several different values to clipboard in a row (they don’t stack)
Labels – There is never a notification
Toggles – There is always a notification, but they seem unnecessary
Stacking – All notifications that have stacked disappear 5 sec after the first one appeared & copy to clipboard notifications don’t stack
Length – the notification for when generating a token fails is 10 sec, all others are 5 sec


Delete Extension BE changes (#968)

Title of ticket:
Description
Delete Extension BE changes
Dependencies
Are there any dependencies?
DOD

[x] POST API for delete
[ ] unit test cases
[ ] Integration testing

POST: http://localhost:15000/api/foiextension/foirequest/{requestID}/ministryrequest/{ministryrequestID}/extension/{extensionID}/delete
body: no body needed for delete


Include elf management related functions from libappimage

Migrate functions from this file
https://github.com/AppImage/libappimage/blob/master/src/libappimage_shared/elf.c

This is a sumary of the functions that currently are in the file and wheter they should be:

static uint16_t file16_to_cpu(uint16_t val) // Dumplicated, already provided by libelf

static uint32_t file32_to_cpu(uint32_t val)   // Dumplicated, already provided by libelf

static uint64_t file64_to_cpu(uint64_t val)  // Dumplicated, already provided by libelf

static ssize_t read_elf32(int fd) // Dumplicated, already provided by libelf

static ssize_t read_elf64(int fd) // Dumplicated, already provided by libelf

ssize_t appimage_get_elf_size(const char* fname) // @TheAssassin  mind to comment wich size exactly this should return ?

bool appimage_get_elf_section_offset_and_length(const char* fname, const char* section_name,  unsigned long* offset, unsigned long* length) // Not shure but libelf should provide something similar

char* read_file_offset_length(const char* fname, unsigned long offset, unsigned long length) // Not shure but libelf should provide something similar

int appimage_print_hex(char* fname, unsigned long offset, unsigned long length) // nothing that should be in libelfutil

int appimage_print_binary(char* fname, unsigned long offset, unsigned long length)  // nothing that should be in libelfutil

As far as I can see there is not too much to migrate here. They should be replaced eventually in the libappimage project by the libelf version.

The problem is that libelfutil is C++. We could create a pure C wrapper for libelfutil in the libelfutil project, though, and then use it here, as you said (if we can link libstdc++ statically and publish that on the GitHub release page or so, I don't want to downgrade to C++ < 11 in libelfutil).

@TheAssassin you have a point there, libelfutil is CPP in order to provide the above functions to libappimage we will have to create a C only version.
@probonopd well depending on libelf seems natural to me as an AppImage is an elf file. Also, can be statically linked and is available on Centos 5  see: https://pkgs.org/download/libelf.so.1(ELFUTILS_1.0)

Correction: I meant "We don't want to make libappimage depend on libelfutil, do we?"
The web of dependencies is getting complex...

@probonopd as most of the functions listed above are already provided by libelf, there will be no need. I opened this issue just for information and discussion purposes. I do think that there is no need of migrating them to libelfutil.
Therefore I will close this issue.
Feel free to reopen it if you think there is something missing to say here :smile:


Statistics

Merging to master to form a new default

Thanks for the contribution, but please separate the code into multiple distinct PR, one for each new feature. Also, please refrain from adding huge amounts of C/C++ code, especially if it's third party libraries. Instead for png writing you can pass the data on the Rust side and use the png crate.

Also, please remove commented/disabled code and translate comments to english.


Portal: recent change breaks in IE11

Bug Report
A change introduced in #2657 to the portal component causes an error in IE11 when trying to open anything using a portal.
The change:
https://github.com/Semantic-Org/Semantic-UI-React/blob/500df9ae073dc99b3425fda89fe6b3a3d8f56760/src/addons/Portal/Portal.js#L355
Steps
Use anything with a portal in IE11 and try to open it.
Expected Result
Should open the portal.
Actual Result
Throws the following error:
SCRIPT5045: Assignment to read-only properties is not allowed in strict mode

Which points to the changed line.
Version
<EMAIL_ADDRESS>

Will be fixed in #2880.

Hi @layershifter, thanks for addressing this bug. Is there a timeline for when this will be released?

@levithomason @layershifter per https://developer.mozilla.org/en-US/docs/Web/API/HTMLElement/style you could probably fix this with one line of code by changing this this.rootNode.style = style || ''  to this this.rootNode.cssText = style || ''  or this this.rootNode.setAttribute('style', style || '')
Not sure how much more work is needed for #2880.  Considering this bug is affecting all portals for a major browser, this quick fix might be worth doing if it's going to be more than a few more days.

I support an individual release of the fix. Currently my team is stuck with using version 0.80.2. Even if #2880 comes soon, it looks like a risky upgrade to do right after the release.

@mgandley @mihai-dinculescu Feel free to submit PR 👍

Done!


Fixing tangent and binormal logic

This fixes tangent and binormal issues for #16009 and #21961 and possibly others.
For both DEA and GLTF import we now invert the binormal, I'm not entirely sure if this is a problem because we reverse the face order, invert the V in UVs or because we swapped from a Z = up to a Y = up and Z is negative axis system.
That all said, as far as I can test normal maps and depth/parallax is now correct:

Do note that I get correct results with normal maps generated with a tool like Normal Map Online but it looks like other generates flip one or both axis.
Same with the example project from #16009 , using the Normal_DX.png map gives the correct result.
I think we may need to add flip options for normal map imports?
I've altered the demo from 16009 to show off just about all primitive shapes, show off various CSGMesh shapes, show of meshes imported and tangents/binormals generated and importing DEA and GLTF files with tangents/binormals already included.
crazy_normals_fixed_up.zip
Bugsquad edit: Fixes #16009, fixes #21961.

Embedded #23674 in this PR (and corrected the tangent)

@Windfisch , I flipped those on purpose, check out the example library i supplied. The problem is that with the way it was the bitangent/binormals works only with the flipped OpenGL normal map BUT is the wrong way around for depth/parallax so you have to flip it back with material settings.
With the changes as I've made them now the tangents and bitangents/binormals are the right way around for both the depth/parallax and the DX version of the normal map from the original poster as well as correct for normal maps I've so far seen with most assets.

Note, last commit just changed the default for flip binormal to off:

This defaulted to true when it was introduced because that was the only way to correctly apply depth to a bunch of things, but not all things.
All the changes I've done are based on these tickboxes being off.

This maybe doesn't belong here but one little trick I like to do is calculate tangent/binormal on the fly in the pixelshader, saving some space in the vertex buffer and producing correct normals even with mirrored UVs (I don't remember where I got the snippet from):
float3x3 calcWsCotangentFrame(float3 wsNormal, float3 wsInvViewDir, float2 tsCoord)
{
	// get edge vectors of the pixel triangle
	float3 dp1 = ddx(wsInvViewDir);
	float3 dp2 = ddy(wsInvViewDir);
	float2 duv1 = ddx(tsCoord);
	float2 duv2 = ddy(tsCoord);

	// solve the linear system
	float3 dp2perp = cross(dp2, wsNormal);
	float3 dp1perp = cross(wsNormal, dp1);
	float3 T = dp2perp * duv1.x + dp1perp * duv2.x;
	float3 B = dp2perp * duv1.y + dp1perp * duv2.y;

	// construct and return a scale-invariant cotangent frame
	float invmax = rsqrt(max(dot(T, T), dot(B, B)));

	return float3x3(T * invmax, B * invmax, wsNormal);
}

...
Surface.WorldNormal = mul(NormalMap * 2.0f - 1.0f, calcWsCotangentFrame(normalize(Input.Normal), -Input.ViewDir, Input.UV));

One thing to note, though, is that this doesn't work when the UVs are on the same position (due to the ddx/ddy math).
I'm also not sure if this produces 100% correct normals.

@CptPotato memory comes cheap, keeping your GPU busy doesn't. But I can see where minimizing memory uses takes priority if you're on mobile or something like that :)

@reduz talked to Fracteed today, exchanged some builds and some project files. He seems pretty happy with the changes.
I've also followed Blender Gurus tutorial on baking normal maps from high poly models onto a low poly models in Blender. Then exported that to Godot, looks like it takes the normal maps as is. I haven't tried or looked at the new Blender to Godot scene exporter to see if anything needs to change there. I just used DAE.

Maybe @Jason0214 would want to check that the ESCN exporter provides the proper input for the changes in this PR?

@akien-mga sure, I will have a check on it

Thanks!

Thanks! Now that this is merged, I think we can close #16096 and #21221, too.

Thank you!


Update naming

Proposed changes
Briefly describe the changes you've made here. Remember to add a link to the preview page of your branch.
https://csc-guide-preview.rahtiapp.fi/origin/update-faq-cloud/support/faq/database/
https://csc-guide-preview.rahtiapp.fi/origin/update-faq-cloud/support/faq/do-you-offer-ssl-certificates/
Checklist before requesting a review

[x] I have followed the instructions in the Contributing and Styleguide documents.
[x] My pull request passes the automated tests. (If not, visit pull requests at Travis CI and have a look at the job log.)
[x] I have included a link to the appropriate preview page (select your branch from the list).

LGTM


Camel 2.20.x

Could you please renew your PR against master? ( otherwise it will less likely be accepted )


RCP normalization to mean

This PR proposes:

normalization of submissions which are within the RCP tolerance band but are faster than RCP mean.
notes that a submitter can make a request for generation of new/better RCPs if they know of better hparam sets

Training WG approved today, for the v2.1 round.
@sparticlesteve and @memani1 , can you discuss in the HPC working group and decide if/when you would want to adopt this?

Is there a motivation for this written up somewhere? It complicates the score calculation for what must be fairly minor effects. I guess it's because of folks in the lead fighting over the few % differences. It feels weird to only penalize results that are faster than the rcp mean. If we're normalizing the idea of normalizing results, why not apply it more broadly, i.e. to all results within the tolerance band? It would be easier to explain/justify.

Good questions.
First, we realized that the current tolerance band could be interpreted as incentivizing submitters to cherry pick.  Rather than getting the RCP mean, you could just keep running until you get the RCP mean minus the tolerance, and then you have an advantage over others.  This rule is hoping to discourage that, as you would just get normalized to the RCP mean if you go too fast, and this way no one is incentivized to cherry pick beyond the RCP mean.
The reason why it's one-sided and not two-sided is because we as a community know of ways to trade off convergence for throughput.  One simple case is increasing batch size - you get higher throughput per device, but your convergence falls off so you have to run for longer.  So slowing down convergence is a known technique for increasing throughput, so we don't necessarily want to normalize slower runs.  We don't know of ways to improve your convergence while increasing throughput, so that's why it makes sense to normalize only the faster side.

John - this is an excellent write-up, do we have it down anywhere else?
Could make for good documentation.
On Thu, Sep 15, 2022 at 1:54 PM johntran-nv @.***>
wrote:

Good questions.
First, we realized that the current tolerance band could be interpreted as
incentivizing submitters to cherry pick. Rather than getting the RCP mean,
you could just keep running until you get the RCP mean minus the tolerance,
and then you have an advantage over others. This rule is hoping to
discourage that, as you would just get normalized to the RCP mean if you go
too fast, and this way no one is incentivized to cherry pick beyond the RCP
mean.
The reason why it's one-sided and not two-sided is because we as a
community know of ways to trade off convergence for throughput. One simple
case is increasing batch size - you get higher throughput per device, but
your convergence falls off so you have to run for longer. So slowing down
convergence is a known technique for increasing throughput, so we don't
necessarily want to normalize slower runs. We don't know of ways to improve
your convergence while increasing throughput, so that's why it makes sense
to normalize only the faster side.
—
Reply to this email directly, view it on GitHub
https://github.com/mlcommons/training_policies/pull/503#issuecomment-1248619349,
or unsubscribe
https://github.com/notifications/unsubscribe-auth/AJXLOKZNCYEIAOFX3REGXKTV6OEIZANCNFSM5663EO4Q
.
You are receiving this because you are subscribed to this thread.Message
ID: @.***>

@TheKanter , I don't know of a good place to explain the rules, other than just pointing people at the rules or having them read the WG minutes.  Is there another place for that?
@sparticlesteve , do you think we've had enough soak time for HPC folks, so we can merge this now?

@johntran-nv I shared it with the group and brought it up in a couple of meetings, so yeah, I think we're good. Thanks for giving us the chance to provide input, and thanks for your explanations.


Installation with pip on 64-bit Win10 with Python 2.7  doesn't work

I tried installing pyscipopt and got the following erorr message:

(base) C:\Users\qyy>set SCIPOPTDIR="C:\Program Files\SCIPOptSuite 7.0.1"
(base) C:\Users\qyy>pip install pyscipopt
C:\Program Files\SCIPOptSuite 7.0.1\include\scip/def.h(33) : fatal error C1083: Cannot open include file: 'stdint.h': No such file or directory

You are using an outdated Python version. Please upgrade to Python 3 and you should not get this error anymore.

yes, I just used Anaconda 3 to pip pyscipopt, and no error any more


Error handling bug with watchdog_time

Reported by @timabbott :
In #issues>inbox live update failing, I noticed that weirdly, I've got multiple Restarting get_events due to unsuspend entries in a row in that browser tab despite the computer not having been suspended at all. I don't really see how that should happen in general... but do notic we probably have an error-handling bug that  we don't catch exceptions in callback, and thus watchdog_time won't be updated if an error is thrown by one of the callbacks...
export function check_for_unsuspend(): void {
    const new_time = Date.now();
    if (new_time - watchdog_time > 20000) {
        // 20 seconds.
        // Defensively reset watchdog_time here in case there's an
        // exception in one of the event handlers
        watchdog_time = new_time;
        // Our app's JS wasn't running, which probably means the machine was
        // asleep.
        for (const callback of unsuspend_callbacks) {
            callback();
        }
    }
    watchdog_time = new_time;
}

export function on_unsuspend(f: () => void): void {
    unsuspend_callbacks.push(f);
}

setInterval(check_for_unsuspend, 5000);

We should be doing an appropriate try/catch structure around the callbacks to make sure watchdog_time always gets updated.

CZO thread

i would like to work on this issue??

@zulipbot claim

@zulipbot help wanted


--spend-in-use should set bets to cancelling

This should now just work because of https://github.com/LLFourn/gun/pull/32


do I need to modify this to use it with jenssegers/laravel-mongodb ?

I am using jenssegers/laravel-mongodb and using hybrid relations between mysql models and mongodb models
the mongodb models however rather than extend laravel's default model, extend a special wrapper model of sorts
a lot of model-related packages on github do work out of the box with mongodb models but I'm not sure how to use this one since it depends on extending a different model
any chance you could have a quick look at jenssegers/laravel-mongodb and see if there's a quick and easy solution to using it with your package?
thanks much!

Fixed in version 0.2.30. Please re-open if still a problem.


Added sorting flags which are now supported by Bibliography.jl

https://github.com/Humans-of-Julia/Bibliography.jl/pull/19
https://github.com/Humans-of-Julia/Bibliography.jl/issues/17
#28
Rudimentary sorting capability.
Accessible via sorting argument.
One example with references in documentation.
Updated patch version from 0.2.3 to 0.2.4.

@ali-ramadhan thanks for the suggestion.
I changed it to to the use with a keyword.
The collaborator status is not necessary.

Yes looks good to merge!
Tagging is pretty easy, once this PR is merged just comment with @JuliaRegistrator register on the commit you want to tag like here: https://github.com/ali-ramadhan/DocumenterCitations.jl/commit/9c44935b0e5d44c6aaeb1f18eb663918a80df597#commitcomment-52321346

Comments on pull requests will not trigger Registrator, as it is disabled. Please try commenting on a commit or issue.

Okay will do thanks.


Do we have a WebSocket API reference for continuous Speech Recognition?

Hi,
Speech.JS cannot do continuous recognition as the Partial Response is never received. I believe SpeechClient dll is connecting to Bing WebSocket servers for the continuous recognition to happen. Can't we directly connect to Bing WebSocket servers from HTML5 WebSockets? If so, then where can I find a sample code or a reference to directly connect to the Bing Speech WebSocket servers using JavaScript WebSockets?
Thanks

connect to my outlook email not my gmail.. I get a lot of
<EMAIL_ADDRESS>On Mon, Apr 25, 2016 at 3:33 AM, parijat1209<EMAIL_ADDRESS>wrote:

Hi,
Speech.JS cannot do continuous recognition as the Partial Response is
never received. I believe SpeechClient dll is connecting to Bing WebSocket
servers for the continuous recognition to happen. Can't we directly connect
to Bing WebSocket servers from HTML5 WebSockets? If so, then where can I
find a sample code or a reference to directly connect to the Bing Speech
WebSocket servers using JavaScript WebSockets?
Thanks
—
You are receiving this because you are subscribed to this thread.
Reply to this email directly or view it on GitHub
https://github.com/Microsoft/ProjectOxford-ClientSDK/issues/58

+1

We are looking at disable Barge-in on ASR (c#.net) module of Project Oxford Speech API. Can you please help suggest us onm this?

This issue was moved to Microsoft/Cognitive-Speech-STT-JavaScript#4

I'm also looking for this. I've looked at the request from the client SDK for Windows using Fiddler and there is web socket endpoints available there
This are what the sent headers from the library looks like
https://websockets.platform.bing.com/ws/speech/recognize
GET /ws/speech/recognize HTTP/1.1
Connection: Upgrade
Upgrade: Websocket
Authorization: Bearer ashdjashdjlasd
User-Agent: Mozilla/4.0 (Windows 8; Unknown;Unknown;ProcessName/AppName=Unknown;DeviceType=Near;SpeechClient=1.0.716436)
X-WebSocketConnectionId: 4eb71213ef974307826d4c89639ddf53
X-CU-LogLevel: 1
X-Search-AppID: Unknown
X-Search-Market: en-US
X-Search-UILang: en-US
Sec-WebSocket-Key: lS4KX2vWHDnmiO3UnECc8A==
Sec-WebSocket-Version: 13
Host: websockets.platform.bing.com

This makes things bad since I cannot add custom headers to a websocket in JS.
If you are able to add the authorization header to your websocket request, then you can use the code above. Also see their demo which uses partial response/streaming, but it uses it's own endpoint (https://cog-web-wu.azurewebsites.net/cognitive-services/ws/speechtotextdemo?language=en-US&g_Recaptcha_Response=null&isNeedVerify=false). If we could somehow add the authorization header to a web socket, we could replace the demo endpoint with the real endpoint and have a full working partial response support in JS.


TypeError on Deno Deploy

Hi, I have this error after create a new version of my blog.
TypeError: Cannot read properties of undefined (reading 'rid')
    at https://deno.land/std@0.154.0/node/_process/streams.mjs:137:35

+1 also to note, this only happens during deploy. Running locally via ‘deno task …’ works without errors.
Get Outlook for iOShttps://aka.ms/o0ukef

From: Bartek Iwańczuk @.>
Sent: Monday, September 5, 2022 7:53:54 AM
To: denoland/deno_blog @.>
Cc: Subscribed @.***>
Subject: Re: [denoland/deno_blog] TypeError on Deno Deploy (Issue #77)
CC @kt3khttps://urldefense.com/v3/__https://github.com/kt3k__;!!Nhk69END!dvwz1bcu-eJ2QCxA80Kv7rzj-X0KBSICnSP2KBEYUVxhSvc9WfFrxU8IVKqqDz3FDwdvMkE2rx6G7wq2sxguXQ$
—
Reply to this email directly, view it on GitHubhttps://urldefense.com/v3/__https://github.com/denoland/deno_blog/issues/77*issuecomment-1236901804__;Iw!!Nhk69END!dvwz1bcu-eJ2QCxA80Kv7rzj-X0KBSICnSP2KBEYUVxhSvc9WfFrxU8IVKqqDz3FDwdvMkE2rx6G7wrOmK7zhA$, or unsubscribehttps://urldefense.com/v3/__https://github.com/notifications/unsubscribe-auth/AIG4C6CVGUWSCVK2SCDNKATV4XNNFANCNFSM6AAAAAAQE45ANE__;!!Nhk69END!dvwz1bcu-eJ2QCxA80Kv7rzj-X0KBSICnSP2KBEYUVxhSvc9WfFrxU8IVKqqDz3FDwdvMkE2rx6G7wqwNyCQMA$.
You are receiving this because you are subscribed to this thread.Message ID: @.***>

We downgraded std version in esm.sh to v0.153.0. Now re-deploying should fix the above issue.

Yes, it's working.


Add support for specifying locations

Allow user to specify a set of locations (by their IDs) to restrict assessment to.

Works as expected of me.
I'm happy to leave the crash in for invalid location inputs as it is probably better than returning an empty array that someone might not notice.

It's a good point. If you hang on a tick I'll put in a check and error out with a meaningful message

Decided to emit a warning instead of erroring out instead.


Add a Gitter chat badge to README.md

Khan/KaTeX now has a Chat Room on Gitter
@kevinb7 has just created a chat room. You can visit it here: https://gitter.im/Khan/KaTeX.
This pull-request adds this badge to your README.md:

If my aim is a little off, please let me know.
Happy chatting.
PS: Click here if you would prefer not to receive automatic pull-requests from Gitter in future.

We already have #katex on freenode…

Yeah I totally forgot about that.  gitter has a nicer UI though and there's a fair number of people already using the channel.

I noticed we already have a link to #katex on CONTRIBUTING.md.  I'll revert this so that we can discuss.


⚠ Minecraft has degraded performance

In 6cf5bf1, Minecraft (https://www.minecraft.net) experienced degraded performance:

HTTP code: 200
Response time: 1155 ms

Resolved: Minecraft performance has improved in fc496a2.


Availability?

I was wondering the ETA for when the PHP driver will be available for surrealdb?

I'm also curious... I'm tempted to start writing a lib to handle some of it...
can someone at the team confirm if this has been started yet?
and if so, maybe push the base so the community can add to it
I have some ideas on how to architect it using websockets, but it would require running a php background instance and some kind of IPC setup to communicate between the main instance and background instance(im not actually sure if it would work though, haven't fully thought through it, there's probably some blockers 😅 )

@iDevelopThings do you intend to write an extension or php class? extension would be great as one would not have the need to add bloat to the codebase and it could work like mysqli does ( or other database extension ).

I would prefer a PHP-class/library, as I imagine developing, building and installing extensions is quite more work than a simple composer package. But yeah, I also thought about starting it.

I support the idea of being able to start developing the library for PHP, but can you tell me what is left? Since there is nothing at all done, and if so, how can we make a request to make said library.

Hi 👋🏻
Small question, could we help to build this library?
Maybe steps by steps but is there anything we can do to bring this library to life? 🤔

@Guikingone as a step by step i would say we can start with official composer package.

@Guikingone @atapatel 100%
DevRel team is here to support you as needed.

Agree, starting an official composer package can help bootstrapping the client, I can start working on the websocket part if no one is currently working on it.

What is the current status? Now that version 1.0 is out, we're all excited about the PHP SDK.

Hi @admtech 👋🏻
Regarding the websocket client, I'm currently working on it, I don't know for the HTTP one but the websocket should be ready soon.

How to run live queries? or should i stick to js version?

How to run live queries? or should i stick to js version?

Hello, I'm the community maintainer of the current surrealdb.php SDK. Currently the php driver does not support live queries at the moment. I'm looking in the future to support it.
You can stick to the JS version for live queries. I will give you a heads-up when i'm beginning implementing the live query functionalities 😄
If you have any questions feel free to ask here or tag me "Beau" - "gigapastor" on discord.
Have a great day 😄
Best regards,
Beau


After creating a new Advertisement, there is "no button to go back" or "go back to main page" or "show my published Advertisement."

During testing user story #49, this issue is found.


LEAN-3582

Closed as upgrading to newer version of prisma apparently fixes that problem (done in LEAN-3524)


Operation error

Traceback (most recent call last):
File "tha2/app/manual_poser.py", line 323, in update_result_image_panel
output_image = self.poser.pose(self.torch_source_image, pose, output_index)[0].detach().cpu()
File "C:\Users\mayn\Desktop\talking-head-anime-2-demo-main\talking-head-anime-2-demo-main\tha2\poser\general_poser_02.py", line 54, in pose
output_list = self.get_posing_outputs(image, pose)
File "C:\Users\mayn\Desktop\talking-head-anime-2-demo-main\talking-head-anime-2-demo-main\tha2\poser\general_poser_02.py", line 58, in get_posing_outputs
modules = self.get_modules()
File "C:\Users\mayn\Desktop\talking-head-anime-2-demo-main\talking-head-anime-2-demo-main\tha2\poser\general_poser_02.py", line 39, in get_modules
module = self.module_loaderskey
File "C:\Users\mayn\Desktop\talking-head-anime-2-demo-main\talking-head-anime-2-demo-main\tha2\poser\modes\mode_20.py", line 269, in
lambda: load_eyebrow_decomposer(module_file_names[KEY_EYEBROW_DECOMPOSER]),
File "C:\Users\mayn\Desktop\talking-head-anime-2-demo-main\talking-head-anime-2-demo-main\tha2\poser\modes\mode_20.py", line 146, in load_eyebrow_decomposer
module.load_state_dict(torch_load(file_name))
File "C:\Users\mayn\Desktop\talking-head-anime-2-demo-main\talking-head-anime-2-demo-main\tha2\util.py", line 23, in torch_load
with open(file_name, 'rb') as f:
FileNotFoundError: [Errno 2] No such file or directory: 'data/eyebrow_decomposer.pt'

Sorry for not answering for a very long time.
The problem indicates that you did not put the mode files (the "data/eyebrow_decomposer.pt") at the right place. Have you downloaded the model files and unzipped them into the right directory?


NEO hub solution page links to wrong site

Hi,
The link entitled "NEO hub solution page" which can be found under Step 1: Provision NEO Hub, sub section - Provision NEO hub is linking to the incorrect place.
It currently links here - https://provisioning.sharepointpnp.com/details/3df8bd55-b872-4c9d-88e3-6b2f05344239
and it should be linking to here - https://lookbook.microsoft.com/details/75e60a32-9849-4ed4-b83e-b2b08983ad19
Thanks.
Jon

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

ID: 3739a833-d9b7-baee-2d17-26cba48d7da8
Version Independent ID: 0618f0c0-e98a-d932-fb29-65a4852fe90b
Content: Overview of the Microsoft New Employee Onboarding hub - SharePoint in Microsoft 365
Content Source: SharePoint/SharePointOnline/provision-neo-hub.md
Service: sharepoint-online
GitHub Login: @Holland-ODSP
Microsoft Alias: hokavian

@jdrussell78 Thank you for submitting feedback and contributing to the docs. We are currently investigating this.

Thanks for reporting @jdrussell78


Azure IaaS VM migration with SMS is NOT FULLY SUPPORTED in the SMS migration process

I think it would be prudent to add a statement near the top of this document that despite the graphic showing otherwise, there is a caveat to supported IaaS VM migrations using the Storage Migration Service.  Presently you cannot specify that the wizard NOT move the IP address from a source server to the destination server.  If the destination server is in Azure it will attempt to configure the NIC in the IaaS VM with the source server IP information, which will break access to the IaaS VM.  You can probably complete the Inventory and Transfer portions of the SMS process successfully but cutover WILL fail.  @Ned has confirmed this is coming in a future release but it would be prudent to put it in the documentation that cutover is not support via the tool at this time.

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

ID: 5c3b0886-820a-0b3c-8382-8d65fc8c3b27
Version Independent ID: 3e310218-abc0-5249-bb16-7c21402e32c0
Content: Storage Migration Service overview
Content Source: WindowsServerDocs/storage/storage-migration-service/overview.md
Product: windows-server-threshold
GitHub Login: @JasonGerend
Microsoft Alias: jgerend

Closed, issue should no longer exist.


[WIP] clean up resources used in tests from den

#776  👈
main

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

Join @jlewitt1 and the rest of your teammates on  Graphite


initial heapster redploy leaves ghosted replicasets

After a clean cluster install, I came across what for the lack of a better term, looks like 2 ghosted heapster replicasets that weren't running any pods. Here are screen shots from the dashboard when I first noticed:

(It is worth noting that there are no old replica sets listed on the deployment page either. The only one that is mentioned is noted in the screen shot)

Output from CLI:
$ kubectl get po,svc,rc --all-namespaces
NAMESPACE     NAME                                       READY     STATUS    RESTARTS   AGE
default       po/default-http-backend-gzv6r              1/1       Running   0          1h
default       po/nginx-ingress-controller-hn1k0          1/1       Running   0          1h
default       po/nginx-ingress-controller-w91sk          1/1       Running   0          1h
default       po/nginx-ingress-controller-xxz70          1/1       Running   0          1h
kube-system   po/heapster-v<IP_ADDRESS>-2320000070-zswjf      4/4       Running   0          1h
kube-system   po/kube-dns-4101612645-c23lv               4/4       Running   0          1h
kube-system   po/kubernetes-dashboard-3543765157-t902s   1/1       Running   0          1h
kube-system   po/monitoring-influxdb-grafana-v4-hmznk    2/2       Running   0          1h

NAMESPACE     NAME                       CLUSTER-IP       EXTERNAL-IP   PORT(S)             AGE
default       svc/default-http-backend   <IP_ADDRESS>   <none>        80/TCP              1h
default       svc/kubernetes             <IP_ADDRESS>     <none>        443/TCP             1h
kube-system   svc/heapster               <IP_ADDRESS>   <none>        80/TCP              1h
kube-system   svc/kube-dns               <IP_ADDRESS>    <none>        53/UDP,53/TCP       1h
kube-system   svc/kubernetes-dashboard   <IP_ADDRESS>    <none>        80/TCP              1h
kube-system   svc/monitoring-grafana     <IP_ADDRESS>   <none>        80/TCP              1h
kube-system   svc/monitoring-influxdb    <IP_ADDRESS>     <none>        8083/TCP,8086/TCP   1h

NAMESPACE     NAME                                DESIRED   CURRENT   READY     AGE
default       rc/default-http-backend             1         1         1         1h
default       rc/nginx-ingress-controller         3         3         3         1h
kube-system   rc/monitoring-influxdb-grafana-v4   1         1         1         1h

Thats certainly interesting!
It doesn't appear that the 'ghosted heapster" replication controllers are listed in the CLI output.
Can you try to kubectl describe one of the RC's that have no pods? eg:
kubectl describe rc heapster-v<IP_ADDRESS>-907310421  for example
I suspect whats happened here is it rescheduled the addon service, and there is still an RC definition thats unable to be fulfilled because the pods are already running occupying whatever bindings the other rc's are expecting so there are 2 sitting in not-error-state but they aren't being helpful either.
Whats confusing to me is the presence of the RC in the dashboard, but not in the cli output. Highly suspect...

Looks like it is definitely an issue with the dashboard and not the CLI:
$ kubectl describe rc heapster-v<IP_ADDRESS>-2548925502
Error from server (NotFound): replicationcontrollers "heapster-v<IP_ADDRESS>-2548925502" not found
$ kubectl describe rc heapster-v<IP_ADDRESS>-2548925502
Error from server (NotFound): replicationcontrollers "heapster-v<IP_ADDRESS>-2548925502" not found

Spoke too soon:
$ kubectl get rs --all-namespaces
NAMESPACE     NAME                              DESIRED   CURRENT   READY     AGE
kube-system   heapster-v<IP_ADDRESS>-2320000070      1         1         1         1h
kube-system   heapster-v<IP_ADDRESS>-2548925502      0         0         0         1h
kube-system   heapster-v<IP_ADDRESS>-907310421       0         0         0         1h
kube-system   kube-dns-4101612645               1         1         1         1h
kube-system   kubernetes-dashboard-3543765157   1         1         1         1h

But you can't describe them
$ kubectl describe rs heapster-v<IP_ADDRESS>-2548925502
Error from server (NotFound): replicasets "heapster-v<IP_ADDRESS>-2548925502" not found
$ kubectl describe rs heapster-v<IP_ADDRESS>-907310421 Error from server (NotFound): replicasets "heapster-v<IP_ADDRESS>-907310421" not found
It's Schrodinger's cat!

OK I believe this one can be closed as during testing a couple of in house built deployments and they also have older replicasets that hang out. It appears that K8s keeps the last 3 revisions of a replicaset, and looks at the deployment.kubernetes.io/revision annotation it looks like heapster is "deployed" 3 times during the initial CDK install.
It does seem to make sense to do that from a rollback perspective. I am not sure if this is a configurable setting but I would suspect it is and I just can't find right now, probably an annotation on the deployment.

Thanks for the feedback loop here cm-graham. Good investigative work.  I'm going to close this for now. if it continues to be problematic for you, don't hesitate to reply to the bug and we'll re-open and evaluate for a fix.


⚠ Jenkins Plugins Artifactory has degraded performance

In 3b87c72, Jenkins Plugins Artifactory (https://get.jenkins.io/plugins/artifactory/) experienced degraded performance:

HTTP code: 200
Response time: 1152 ms

Resolved: Jenkins Plugins Artifactory performance has improved in 648fe49 after 27 minutes.


Add SSM package test for ADOT Collector in ec2 test

Add SSM package validation to ADOT collect test framework. The usage of new testcase ssm_package is as same as existing ec2 testcases. The var ssm_package_name and var ssm_config are parameters of the new testcase.

It seems there is no test for reload config, there will be other PRs?
The SSM command document for reload config is in development. Right now it only support installation with configuration.

btw: Is the ssm doc already published or it's in your own account?
The default SSM package document is a test document in my account. The publish workflow will be added in CI/CD.

It shouldn't impact existing CI/CD. So merge it now.


Is it possible to change the styling of one, or many days?

I am using the date picker as a way to display an overview (no interaction from the user) of when something has happened to that day. The dates selected are created at runtime and I was wondering if it was possible to change the class of a certian day?
For example:

Yes. Check out the custom-class (date, mode) attribute:
https://angular-ui.github.io/bootstrap/#/datepicker