Animation errors when interacting with new Python console

I have experienced the following bug:
I configured execution of a Python script, which will run an animation (matplotlib.animation.FuncAnimation), such that it executes in a new dedicated Python console and I can interact with the Python console after execution. When I then ran the script, a figure popped up which showed no animation, though. Instead, the console reported KeyErrors (one per frame, I guess, see also attached file anim_errors.txt) and Spyder in some cases even crashed and had to be restarted. When I deselected the option to interact with the script after execution the animation ran fine and no errors occurred.
I guess this is no major issue, but it can be annoying when Spyder crashes unexpectedly, because you added an animation to your plot.
Versions:
Spyder 2.3.8
Python 3.5.1 64bits, Qt 4.8.7, PyQt4 (API v2) 4.11.4 on Linux
IPython >=1.0      :  4.0.1 (OK)
jedi >=0.8.1;<0.9.0:  0.9.0 (NOK)
matplotlib >=1.0   :  1.5.1 (OK)
pandas >=0.13.1    :  0.17.1 (OK)
pep8 >=0.6         :  1.6.2 (OK)
psutil >=0.3       :  3.3.0 (OK)
pyflakes >=0.6.0   :  1.0.0 (OK)
pygments >=1.6     :  2.0.2 (OK)
pylint >=0.25      :  None (NOK)
qtconsole >=4.0    :  4.1.1 (OK)
rope >=0.9.2       :  0.9.4-1 (OK)
sphinx >=0.6.6     :  1.3.1 (OK)
sympy >=0.7.3      :  None (NOK)
zmq >=2.1.11       :  15.2.0 (OK)

Please upload a simple and reproducible example of your code, so we can test it in our side.

I replied to your comment via email and expected the reply to show up here. Is this how it is supposed to work? Anyway my reply was:
On my side, for example, matplotlib's animated double pendulum (http://matplotlib.org/examples/animation/double_pendulum_animated.html) generates the described errors.

The Python console is going to be removed in Spyder 3.2, so we're not going to work more on it, sorry.


SELinux setup not working for perfsonar-archive bundle on CentOS 7

On CentOS 7 if you do a "yum install perfsonar-archive" you will get a "Service Not Available" error if you try to go to https://HOST/opensearch. Disabling selinux with setenforce 0 seems to make the issue go away. A toolkit install does not have this issue. The perfsonar-toolkit-web-services package does the SElinux setup for the toolkit. We could just add a dependency on this...though if I install it separately after installling  perfsonar-toolkit-web-services it does not seem to correct the issue. Possible this is an order of operations issue or something else toolkit is doing to make that work.

FWIW, you may be able to find out what SELinux is on about by checking the logs and flipping the appropriate bit with setsebool.  pScheduler has a few things like thast.
I'm not a big fan of SELinux, but keeping it on may keep some security auditors happy.


Extension is unresponsive

Issue Type: Bug
Extension Name: python
Extension Version: 2021.9.1246542782
OS Version: Windows_NT x64 10.0.18363
VS Code version: 1.60.1

:warning: We have written the needed data into your clipboard. Please paste! :warning
ms-python.python-unresponsive.cpuprofile.txt
:warning

unresponsive

@shvetsantonyx Was there anything in the Output > Python logs?

@Vad1ks was that all the text in the Python output panel? if not, can you select it all and copy it here?
When is it unresponsive, at load?

@kimadeline Yes, that was all the text in output panel. I triggered 'Select interpreter' command in the command palette and then went to the output and made this screenshot. Here is a fresh one, you can see that extension is trying to find python interpreter

If it is better for you to analyze output in txt format, so here you are:
User belongs to experiment group 'pythonaacf'
User belongs to experiment group 'pythonJediLSP'
User belongs to experiment group 'pythonDiscoveryModuleWithoutWatcher'
User belongs to experiment group 'pythonTensorboardExperiment'
User belongs to experiment group 'pythonSurveyNotificationcf'
User belongs to experiment group 'PythonPyTorchProfiler'
User belongs to experiment group 'pythonDeprecatePythonPath'
User belongs to experiment group 'pythonSortEnvs'
User belongs to experiment group 'pythonRunFailedTestsButtonDisplayed'
User belongs to experiment group 'pythonRefreshTestsButtonDisplayed'
User belongs to experiment group 'pythonRememberDebugConfig'
Info 2021-09-30 16:18:03: Testing: Setting up watcher for d:\selenium
Info 2021-09-30 16:18:03: Display locator refreshing progress, Class name = g, completed in 1ms, has a falsy return value, , Return Value: undefined
Info 2021-09-30 16:18:03: Searching for conda.
Info 2021-09-30 16:18:03: Probing conda binary: conda
Info 2021-09-30 16:18:03: [Error: spawn conda ENOENT
at Process.ChildProcess._handle.onexit (internal/child_process.js:269:19)
at onErrorNT (internal/child_process.js:465:16)
at processTicksAndRejections (internal/process/task_queues.js:80:21)] {
errno: -4058,
code: 'ENOENT',
syscall: 'spawn conda',
path: 'conda',
spawnargs: [ 'info', '--json' ]
}
Info 2021-09-30 16:18:03: Watcher disabled
Info 2021-09-30 16:18:03: Watcher disabled
Info 2021-09-30 16:18:03: Searching for workspace virtual envs in: d:\selenium
Info 2021-09-30 16:18:03: Getting roots
Info 2021-09-30 16:18:03: Found roots
Info 2021-09-30 16:18:03: Watcher disabled
Info 2021-09-30 16:18:03: Found interpreter for C:\Python39\python.exe,c:\Users\Admin.vscode\extensions\ms-python.python-2021.10.1285378706-dev\pythonFiles\interpreterInfo.py
Info 2021-09-30 16:18:03: Workspace Virtual Environment: [added] d:\selenium\venv\Scripts\python.exe
Info 2021-09-30 16:18:03: Getting roots
Info 2021-09-30 16:18:03: Found roots
Info 2021-09-30 16:18:03: Start watching root d:\selenium for globs ["python.exe","/python.exe","/Scripts/python.exe"]
Info 2021-09-30 16:18:03: Start watching: d:\selenium with pattern python.exe using VSCode API
Info 2021-09-30 16:18:03: Start watching: d:\selenium with pattern */python.exe using VSCode API
Info 2021-09-30 16:18:03: Start watching: d:\selenium with pattern */Scripts/python.exe using VSCode API
Info 2021-09-30 16:18:03: Found interpreter for D:\python37\python.exe,c:\Users\Admin.vscode\extensions\ms-python.python-2021.10.1285378706-dev\pythonFiles\interpreterInfo.py
Info 2021-09-30 16:18:03: Found interpreter for d:\selenium\venv\Scripts\python.exe,c:\Users\Admin.vscode\extensions\ms-python.python-2021.10.1285378706-dev\pythonFiles\interpreterInfo.py
Info 2021-09-30 16:18:03: Couldn't locate the conda binary.
Info 2021-09-30 16:18:03: Environments added to cache [{"name":"","location":"","kind":"global-other","executable":{"filename":"C:\Python39\python.exe","sysPrefix":"C:\Python39","ctime":-1,"mtime":-1},"display":"Python 3.9.1 64-bit","version":{"major":3,"minor":9,"micro":1,"release":{"level":"final","serial":0},"sysVersion":"3.9.1 (tags/v3.9.1:1e5d33e, Dec  7 2020, 17:08:21) [MSC v.1927 64 bit (AMD64)]"},"arch":3,"distro":{"org":"PythonCore","defaultDisplayName":"Python 3.9 (64-bit)"},"source":["path env var","windows registry"]},{"name":"","location":"","kind":"global-other","executable":{"filename":"D:\python37\python.exe","sysPrefix":"D:\python37","ctime":-1,"mtime":-1},"display":"Python 3.7.9 32-bit","version":{"major":3,"minor":7,"micro":9,"release":{"level":"final","serial":0},"sysVersion":"3.7.9 (tags/v3.7.9:13c94747c7, Aug 17 2020, 18:01:55) [MSC v.1900 32 bit (Intel)]"},"arch":2,"distro":{"org":"PythonCore","defaultDisplayName":"Python 3.7 (32-bit)"},"source":["path env var","windows registry"]},{"name":"lab6","location":"d:\lab6","kind":"virt-venv","executable":{"filename":"d:\lab6\Scripts\python.exe","sysPrefix":"","ctime":1619120963829,"mtime":1619120963829},"searchLocation":{"$mid":1,"path":"/d:/","scheme":"file"},"version":{"major":3,"minor":9,"micro":1},"arch":1,"distro":{"org":""},"source":["other"]},{"name":"venv","location":"d:\selenium\venv","kind":"virt-venv","executable":{"filename":"d:\selenium\venv\Scripts\python.exe","sysPrefix":"d:\selenium\venv","ctime":-1,"mtime":-1},"searchLocation":{"$mid":1,"path":"/d:/selenium","scheme":"file"},"display":"Python 3.9.1 64-bit ('venv': venv)","version":{"major":3,"minor":9,"micro":1,"release":{"level":"final","serial":0},"sysVersion":"3.9.1 (tags/v3.9.1:1e5d33e, Dec  7 2020, 17:08:21) [MSC v.1927 64 bit (AMD64)]"},"arch":3,"distro":{"org":""},"source":[]}]

Seems like something went wrong when writing the environments to the cache.
Could you try installing this build and copying the logs back here? https://github.com/microsoft/vscode-python/suites/3922335850/artifacts/98105681

Here are logs right after installing this build:
User belongs to experiment group 'pythonaacf'
User belongs to experiment group 'pythonJediLSP'
User belongs to experiment group 'pythonDiscoveryModuleWithoutWatcher'
User belongs to experiment group 'pythonTensorboardExperiment'
User belongs to experiment group 'pythonSurveyNotificationcf'
User belongs to experiment group 'PythonPyTorchProfiler'
User belongs to experiment group 'pythonDeprecatePythonPath'
User belongs to experiment group 'pythonSortEnvs'
User belongs to experiment group 'pythonRunFailedTestsButtonDisplayed'
User belongs to experiment group 'pythonRefreshTestsButtonDisplayed'
User belongs to experiment group 'pythonRememberDebugConfig'
Info 2021-09-30 20:47:31: Testing: Setting up watcher for d:\selenium
Info 2021-09-30 20:47:31: Deferred promise created for progress with title: Discovering Python Interpreters
Info 2021-09-30 20:47:31: Create locator refreshing progress, Class name = g, completed in 1ms, has a falsy return value, , Return Value: undefined
Info 2021-09-30 20:47:31: Display locator refreshing progress, Class name = g, completed in 1ms, has a falsy return value, , Return Value: undefined
Info 2021-09-30 20:47:31: Searching for conda.
Info 2021-09-30 20:47:31: Probing conda binary: conda
Info 2021-09-30 20:47:31: [Error: spawn conda ENOENT
at Process.ChildProcess._handle.onexit (internal/child_process.js:269:19)
at onErrorNT (internal/child_process.js:465:16)
at processTicksAndRejections (internal/process/task_queues.js:80:21)] {
errno: -4058,
code: 'ENOENT',
syscall: 'spawn conda',
path: 'conda',
spawnargs: [ 'info', '--json' ]
}
Info 2021-09-30 20:47:31: Watcher disabled
Info 2021-09-30 20:47:31: Watcher disabled
Info 2021-09-30 20:47:31: Searching for workspace virtual envs in: d:\selenium
Info 2021-09-30 20:47:31: Getting roots
Info 2021-09-30 20:47:31: Found roots
Info 2021-09-30 20:47:32: Watcher disabled
Info 2021-09-30 20:47:32: Found interpreter for D:\python37\python.exe,c:\Users\Admin.vscode\extensions\ms-python.python-2021.10.1291978156-dev\pythonFiles\interpreterInfo.py
Info 2021-09-30 20:47:32: Found interpreter for C:\Python39\python.exe,c:\Users\Admin.vscode\extensions\ms-python.python-2021.10.1291978156-dev\pythonFiles\interpreterInfo.py
Info 2021-09-30 20:47:32: Workspace Virtual Environment: [added] d:\selenium\venv\Scripts\python.exe
Info 2021-09-30 20:47:32: Getting roots
Info 2021-09-30 20:47:32: Found roots
Info 2021-09-30 20:47:32: Start watching root d:\selenium for globs ["python.exe","/python.exe","/Scripts/python.exe"]
Info 2021-09-30 20:47:32: Start watching: d:\selenium with pattern python.exe using VSCode API
Info 2021-09-30 20:47:32: Start watching: d:\selenium with pattern */python.exe using VSCode API
Info 2021-09-30 20:47:32: Start watching: d:\selenium with pattern */Scripts/python.exe using VSCode API
Info 2021-09-30 20:47:32: Found interpreter for d:\selenium\venv\Scripts\python.exe,c:\Users\Admin.vscode\extensions\ms-python.python-2021.10.1291978156-dev\pythonFiles\interpreterInfo.py
Info 2021-09-30 20:47:32: Couldn't locate the conda binary.
Info 2021-09-30 20:47:32: Environments added to cache [{"name":"","location":"","kind":"global-other","executable":{"filename":"C:\Python39\python.exe","sysPrefix":"C:\Python39","ctime":-1,"mtime":-1},"display":"Python 3.9.1 64-bit","version":{"major":3,"minor":9,"micro":1,"release":{"level":"final","serial":0},"sysVersion":"3.9.1 (tags/v3.9.1:1e5d33e, Dec  7 2020, 17:08:21) [MSC v.1927 64 bit (AMD64)]"},"arch":3,"distro":{"org":"PythonCore","defaultDisplayName":"Python 3.9 (64-bit)"},"source":["path env var","windows registry"]},{"name":"","location":"","kind":"global-other","executable":{"filename":"D:\python37\python.exe","sysPrefix":"D:\python37","ctime":-1,"mtime":-1},"display":"Python 3.7.9 32-bit","version":{"major":3,"minor":7,"micro":9,"release":{"level":"final","serial":0},"sysVersion":"3.7.9 (tags/v3.7.9:13c94747c7, Aug 17 2020, 18:01:55) [MSC v.1900 32 bit (Intel)]"},"arch":2,"distro":{"org":"PythonCore","defaultDisplayName":"Python 3.7 (32-bit)"},"source":["path env var","windows registry"]},{"name":"lab6","location":"d:\lab6","kind":"virt-venv","executable":{"filename":"d:\lab6\Scripts\python.exe","sysPrefix":"","ctime":1619120963829,"mtime":1619120963829},"searchLocation":{"$mid":1,"path":"/d:/","scheme":"file"},"version":{"major":3,"minor":9,"micro":1},"arch":1,"distro":{"org":""},"source":["other"]},{"name":"venv","location":"d:\selenium\venv","kind":"virt-venv","executable":{"filename":"d:\selenium\venv\Scripts\python.exe","sysPrefix":"d:\selenium\venv","ctime":-1,"mtime":-1},"searchLocation":{"$mid":1,"path":"/d:/selenium","scheme":"file"},"display":"Python 3.9.1 64-bit ('venv': venv)","version":{"major":3,"minor":9,"micro":1,"release":{"level":"final","serial":0},"sysVersion":"3.9.1 (tags/v3.9.1:1e5d33e, Dec  7 2020, 17:08:21) [MSC v.1927 64 bit (AMD64)]"},"arch":3,"distro":{"org":""},"source":[]}]
Info 2021-09-30 20:47:32: Deferred env collection refresh promise resolved and locator query deleted

Could you copy the logs from this build? https://github.com/microsoft/vscode-python/suites/3924493652/artifacts/98187189
Thank you for testing them 🙂

here you are

User belongs to experiment group 'pythonaacf'
User belongs to experiment group 'pythonJediLSP'
User belongs to experiment group 'pythonDiscoveryModuleWithoutWatcher'
User belongs to experiment group 'pythonTensorboardExperiment'
User belongs to experiment group 'pythonSurveyNotificationcf'
User belongs to experiment group 'PythonPyTorchProfiler'
User belongs to experiment group 'pythonDeprecatePythonPath'
User belongs to experiment group 'pythonSortEnvs'
User belongs to experiment group 'pythonRunFailedTestsButtonDisplayed'
User belongs to experiment group 'pythonRefreshTestsButtonDisplayed'
User belongs to experiment group 'pythonRememberDebugConfig'
Info 2021-10-02 18:08:36: Testing: Setting up watcher for d:\selenium
Info 2021-10-02 18:08:36: Deferred promise created for progress with title: Discovering Python Interpreters
Info 2021-10-02 18:08:36: Create locator refreshing progress, Class name = g, completed in 1ms, has a falsy return value, , Return Value: undefined
Info 2021-10-02 18:08:36: Display locator refreshing progress, Class name = g, completed in 1ms, has a falsy return value, , Return Value: undefined
Info 2021-10-02 18:08:36: Refresh promise exists, wait on it
Info 2021-10-02 18:08:36: Searching for conda.
Info 2021-10-02 18:08:36: Probing conda binary: conda
Info 2021-10-02 18:08:36: [Error: spawn conda ENOENT
at Process.ChildProcess._handle.onexit (internal/child_process.js:269:19)
at onErrorNT (internal/child_process.js:465:16)
at processTicksAndRejections (internal/process/task_queues.js:80:21)] {
errno: -4058,
code: 'ENOENT',
syscall: 'spawn conda',
path: 'conda',
spawnargs: [ 'info', '--json' ]
}
Info 2021-10-02 18:08:36: Watcher disabled
Info 2021-10-02 18:08:36: Watcher disabled
Info 2021-10-02 18:08:36: Searching for workspace virtual envs in: d:\selenium
Info 2021-10-02 18:08:36: Getting roots
Info 2021-10-02 18:08:36: Found roots
Info 2021-10-02 18:08:36: Watcher disabled
Info 2021-10-02 18:08:36: Workspace Virtual Environment: [added] d:\selenium\venv\Scripts\python.exe
Info 2021-10-02 18:08:36: Getting roots
Info 2021-10-02 18:08:36: Found roots
Info 2021-10-02 18:08:36: Start watching root d:\selenium for globs ["python.exe","/python.exe","/Scripts/python.exe"]
Info 2021-10-02 18:08:36: Start watching: d:\selenium with pattern python.exe using VSCode API
Info 2021-10-02 18:08:36: Start watching: d:\selenium with pattern */python.exe using VSCode API
Info 2021-10-02 18:08:36: Start watching: d:\selenium with pattern */Scripts/python.exe using VSCode API
Info 2021-10-02 18:08:36: Found interpreter for C:\Python39\python.exe,c:\Users\Admin.vscode\extensions\ms-python.python-2021.10.1292695303-dev\pythonFiles\interpreterInfo.py
Info 2021-10-02 18:08:36: Found interpreter for D:\python37\python.exe,c:\Users\Admin.vscode\extensions\ms-python.python-2021.10.1292695303-dev\pythonFiles\interpreterInfo.py
Info 2021-10-02 18:08:36: Found interpreter for d:\selenium\venv\Scripts\python.exe,c:\Users\Admin.vscode\extensions\ms-python.python-2021.10.1292695303-dev\pythonFiles\interpreterInfo.py
Info 2021-10-02 18:08:36: Couldn't locate the conda binary.
Info 2021-10-02 18:08:36: Environments added to cache [{"name":"","location":"","kind":"global-other","executable":{"filename":"C:\Python39\python.exe","sysPrefix":"C:\Python39","ctime":-1,"mtime":-1},"display":"Python 3.9.1 64-bit","version":{"major":3,"minor":9,"micro":1,"release":{"level":"final","serial":0},"sysVersion":"3.9.1 (tags/v3.9.1:1e5d33e, Dec  7 2020, 17:08:21) [MSC v.1927 64 bit (AMD64)]"},"arch":3,"distro":{"org":"PythonCore","defaultDisplayName":"Python 3.9 (64-bit)"},"source":["path env var","windows registry"]},{"name":"","location":"","kind":"global-other","executable":{"filename":"D:\python37\python.exe","sysPrefix":"D:\python37","ctime":-1,"mtime":-1},"display":"Python 3.7.9 32-bit","version":{"major":3,"minor":7,"micro":9,"release":{"level":"final","serial":0},"sysVersion":"3.7.9 (tags/v3.7.9:13c94747c7, Aug 17 2020, 18:01:55) [MSC v.1900 32 bit (Intel)]"},"arch":2,"distro":{"org":"PythonCore","defaultDisplayName":"Python 3.7 (32-bit)"},"source":["path env var","windows registry"]},{"name":"lab6","location":"d:\lab6","kind":"virt-venv","executable":{"filename":"d:\lab6\Scripts\python.exe","sysPrefix":"","ctime":1619120963829,"mtime":1619120963829},"searchLocation":{"$mid":1,"path":"/d:/","scheme":"file"},"version":{"major":3,"minor":9,"micro":1},"arch":1,"distro":{"org":""},"source":["other"]},{"name":"venv","location":"d:\selenium\venv","kind":"virt-venv","executable":{"filename":"d:\selenium\venv\Scripts\python.exe","sysPrefix":"d:\selenium\venv","ctime":-1,"mtime":-1},"searchLocation":{"$mid":1,"path":"/d:/selenium","scheme":"file"},"display":"Python 3.9.1 64-bit ('venv': venv)","version":{"major":3,"minor":9,"micro":1,"release":{"level":"final","serial":0},"sysVersion":"3.9.1 (tags/v3.9.1:1e5d33e, Dec  7 2020, 17:08:21) [MSC v.1927 64 bit (AMD64)]"},"arch":3,"distro":{"org":""},"source":[]}]
Info 2021-10-02 18:08:36: Will delete deferred locator query and resolve env collection refresh promise
Info 2021-10-02 18:08:36: Deferred env collection refresh promise resolved and locator query deleted, number of envs in cache: 4
Info 2021-10-02 18:08:36: All refresh promises for the query resolved

Firstly, i opened a one new workspace, the extension worked for a while, but when i tried to create a venv and go into it, the extension was unresponsive. I tried few more times, but i cannot reproduce clear work of the extension. When i open devtools, i can see a warning

Profile file looks like this:
cpuprofile.txt

I have discovered how the extension is able to work properly.
It does, when i open VS Code, create a new file right from there and save it as .py file. Then extension is able to work fine. But when i open any other folder, the extension starts being unresponsive. Do you need any other logs?

Hey @Vad1ks, thanks for helping us with this. I plan to add more logging in the extension today and then report back here.

Can you check if https://github.com/microsoft/vscode-python/issues/11924#issuecomment-944811156 helps?

No, it doesn't. Here is my settings.json

I see, are you using v2021.9.1246542782 version?


server loses part of the initial flight, if ClientHello is split across multiple packets

I observed this when running the new post-quantum test, while disabling packet loss (https://github.com/quic-go/quic-go/pull/3759).

2023/04/05 18:19:18.148599 server <- Received Initial packet.
2023/04/05 18:19:18.148620 server Changing connection ID to f63d36e5.
2023/04/05 18:19:18.148723 muxer Adding connection IDs 122ab6426e54b31d1858f257323cc6 and f63d36e5 for a new connection.
2023/04/05 18:19:18.148730 server <- Received Initial packet.
2023/04/05 18:19:18.148732 server Changing connection ID to 5960239e.
2023/04/05 18:19:18.148734 muxer Not adding connection ID 122ab6426e54b31d1858f257323cc6 for a new connection, as it already exists.

This is not good. The problem is that we're queuing the packets with the server as soon as we receive them, and then the server processes these packets, without doing another lookup in the CID map.

Removing from the v0.34 milestone. While annoying, this doesn't happen in practice unless PQ is used (since otherwise there's at least a few hundred milliseconds between sending of the initial Initial and its retransmission). And even in the PQ case, this is recoverable via PTO. Not ideal, but doesn't require an immediate fix either.
This might be easier to fix after the giant API refactor (#3727).


Unwritten 2 semi colons appearing on the screen.

I found the 2 semi colons on the screen during the on going html & css and bootstrap series in the front end course.
I have randomly selected the below 2 waypoint links and the screenshots for the reference:-
1 - http://www.freecodecamp.com/challenges/waypoint-house-our-page-within-a-bootstrap-container-fluid-div

2- http://www.freecodecamp.com/challenges/waypoint-add-borders-around-your-elements

Wondering about these semi colons. Of course, they aren't any obstacles during the course. Thought it might a confusion for a newbie.

@viraj89  thanks for posting this issue!
Note that your issue is a duplicate of https://github.com/FreeCodeCamp/FreeCodeCamp/issues/5973 so I'll close this one.

Please review the Guidelines for Contributing, thank you!.

@bugron thanks mate.


Feature Request: Add capability to make links open their targets in new browser tabs.

It is often useful to get links to open in a new tab, rather than having the link target replace the currently open page. I currently use Hugo to build my website and I have implemented a default (render-link.html) procedure that, depending on the contents of the  string (e.g. the string contains "https"), adds target="_blank" to the href string.
An example of the use of target="_blank" can be seen in this link in one of my Download on the App Store buttons:

Although I could (and will, if I move to Ignite) simply put the code in the example above into an Include file, I have other links (without a button image) that should open their targets in new tabs and it would be onerous to write Include files for all of them!
Proposal
Please consider adding a modifier to, or an (optional?) argument in, the Link() function that forces the link target to open in a new browser tab by appending target="_blank" to the target href string.
For example:
Link("Crizzle", target: "https//:crizzle.co.uk")
.linkStyle(.newTab)

or
Link("Crizzle", target: "https//:crizzle.co.uk", mode: "newTab")

would result in:

Sorry, Paul. You had already provided this capability. I have just navigated to the Link.swift file in the Ignite package and found the .target(.blank) modifier there. I have tested it and it works!

We should add sample code for this to the Ignite Samples repository 👍

Have a PR here.


Support for typing._GenericAlias when creating table

First Check

[X] I added a very descriptive title to this issue.
[X] I used the GitHub search to find a similar issue and didn't find it.
[X] I searched the SQLModel documentation, with the integrated search.
[X] I already searched in Google "How to X in SQLModel" and didn't find any information.
[X] I already read and followed all the tutorial in the docs and didn't find an answer.
[X] I already checked if it is not related to SQLModel but to Pydantic.
[X] I already checked if it is not related to SQLModel but to SQLAlchemy.

Commit to Help

[X] I commit to help with one of those options 👆

Example Code
# Python 3.7.9
from pydantic import BaseModel
from sqlmodel import SQLModel
from typing_extensions import Literal

class PydanticClass(BaseModel):
        colors: Literal['red', 'blue', 'green'] = 'red'

class SQLModelClass(SQLModel, table=True):
        colors: Literal['red', 'blue', 'green'] = 'red'

Description
Due to a dependency, I'm constrained to Python 3.7.9, but I'm wanting to take advantage of the Literal type. I'm backporting it via the typing_extensions library.
When creating a table SQLModel that contains a field typed as the backported LIteral, I get the following traceback (taken from the provided example code):
Traceback (most recent call last):
  File "test.py", line 10, in <module>
    class SQLModelClass(SQLModel, table=True):
  File "C:\...\venv\lib\site-packages\sqlmodel\main.py", line 298, in __new__
    col = get_column_from_field(v)
  File "C:\...\venv\lib\site-packages\sqlmodel\main.py", line 424, in get_column_from_field
    sa_type = get_sqlachemy_type(field)
  File "C:\...\venv\lib\site-packages\sqlmodel\main.py", line 379, in get_sqlachemy_type
    if issubclass(field.type_, str):
TypeError: issubclass() arg 1 must be a class

When debugging, I'm finding that the colors field's attribute type_ is an instance of typing._GenericAlias.. When I look at the typing library, it looks to be a normal class, so I'm not sure why the interpreter would say it's not a class.
The workaround for my project I'm going to implement is simply adding validators to the class, but I wanted to cover my bases and make sure this was reported, both for the project's sake and in case anyone else has an answer.
Operating System
Windows
Operating System Details
I'm developing on WIndows using Docker with a Debian base image. I get the same error regardless of whether I run it locally or in a container.
SQLModel Version
0.0.6
Python Version
3.7.9
Additional Context
No response

Literal can contain many types, e.g:
from typing_extensions import Literal

def foo(arg: Literal[1, "Hello", False, b"World"]):
    pass

So you need to specify the column type to save it in the database:
from typing_extensions import Literal
from sqlalchemy import Column, String

class SQLModelClass(SQLModel, table=True):
    colors: Literal['red', 'blue', 'green'] = Field(default='red', sa_column=Column(String))

This fixed it! Thank you, @meirdev.


[flutter_markdown] Screenreader reads items in wrong order if multiple paragraphs with a link are present

Is there an existing issue for this?

[X] I have searched the existing issues
[X] I have read the guide to filing a bug

Steps to reproduce

Activate TalkBack or VoiceOver
Let device read a markdown body, which is composed of 3 paragraphs, in that the second paragraph contains a link.

Expected results
The paragraphs should be read chronologically.
Actual results
When using a screenreader (TalkBack on Android, VoiceOver on iOS), the order of the items read is wrong for a markdown body that consists of multiple paragraphs, in that the middle paragraph contains a link.
The second paragraph is skipped, and is only read at the end when swiping right (to select the next element with TalkBack).
Code sample
Code sample
import 'package:flutter/material.dart';
import 'package:flutter_markdown/flutter_markdown.dart';

void main() {
  runApp(const MyApp());
}

class MyApp extends StatelessWidget {
  const MyApp({super.key});

  // This widget is the root of your application.
  @override
  Widget build(BuildContext context) {
    return MaterialApp(
      title: 'Flutter Demo',
      theme: ThemeData(

        colorScheme: ColorScheme.fromSeed(seedColor: Colors.deepPurple),
        useMaterial3: true,
      ),
      home: const MyHomePage(),
    );
  }
}

class MyHomePage extends StatelessWidget {
  const MyHomePage({
    super.key,
  });

  @override
  Widget build(BuildContext context) {
    return Scaffold(
      appBar: AppBar(),
      body: const Column(
        children: [
          MarkdownBody(
              data:
                  'The first paragraph is correctly read. \n\n The second paragraph is skipped and read at the end if a [link](https://www.google.com/) is present.\n\n The third paragraph is read normally.'),
        ],
      ),
    );
  }
}

Screenshots or Video
No response
Logs
Logs
[Paste your logs here]

Flutter Doctor output
Doctor output
[✓] Flutter (Channel stable, 3.10.3, on macOS 13.1 22C65 darwin-arm64, locale de-DE)
    • Flutter version 3.10.3 on channel stable at /Users/tjardl/Documents/flutter
    • Upstream repository https://github.com/flutter/flutter.git
    • Framework revision f92f44110e (6 days ago), 2023-06-01 18:17:33 -0500
    • Engine revision 2a3401c9bb
    • Dart version 3.0.3
    • DevTools version 2.23.1

[✓] Android toolchain - develop for Android devices (Android SDK version 33.0.1)
    • Android SDK at /Users/tjardl/Library/Android/sdk
    • Platform android-33, build-tools 33.0.1
    • Java binary at: /Applications/Android Studio.app/Contents/jre/Contents/Home/bin/java
    • Java version OpenJDK Runtime Environment (build 11.0.13+0-b1751.21-8125866)
    • All Android licenses accepted.

[✓] Xcode - develop for iOS and macOS (Xcode 14.1)
    • Xcode at /Applications/Xcode.app/Contents/Developer
    • Build 14B47b
    • CocoaPods version 1.12.1

[✓] Chrome - develop for the web
    • Chrome at /Applications/Google Chrome.app/Contents/MacOS/Google Chrome

[✓] Android Studio (version 2021.3)
    • Android Studio at /Applications/Android Studio.app/Contents
    • Flutter plugin can be installed from:
      🔨 https://plugins.jetbrains.com/plugin/9212-flutter
    • Dart plugin can be installed from:
      🔨 https://plugins.jetbrains.com/plugin/6351-dart
    • Java version OpenJDK Runtime Environment (build 11.0.13+0-b1751.21-8125866)

[✓] IntelliJ IDEA Community Edition (version 2022.2.4)
    • IntelliJ at /Applications/IntelliJ IDEA CE.app
    • Flutter plugin version 71.1.5
    • Dart plugin version 222.4459.16

[✓] VS Code (version 1.78.2)
    • VS Code at /Applications/Visual Studio Code.app/Contents
    • Flutter extension version 3.64.0

[✓] Connected device (4 available)
    • sdk gphone64 arm64 (mobile) • emulator-5554                        • android-arm64  • Android 13 (API 33) (emulator)
    • iPhone 14 Pro (mobile)      • FD36A665-F9D8-4EF3-B616-740763D280C3 • ios            • com.apple.CoreSimulator.SimRuntime.iOS-16-1 (simulator)
    • macOS (desktop)             • macos                                • darwin-arm64   • macOS 13.1 22C65 darwin-arm64
    • Chrome (web)                • chrome                               • web-javascript • Google Chrome 113.0.5672.126

[✓] Network resources
    • All expected network resources are available.

• No issues found!

Thanks for the detailed report. I tried the code sample with voiceover and was able to replicate the reported behavior.
If a paragraph has a link, it does get the focus but voiceover stops just before the link text. We have to swipe again to focus on link and again to read the next text after the link as shown in below video.
https://github.com/flutter/flutter/assets/67046386/ef407f18-9207-42cf-b679-821a1282b555
Also tried with native iOS app (Medium) to see how is the behavior and it seems to read the paragraph fully having links in it.

 stable, master flutter doctor -v
[!] Flutter (Channel stable, 3.10.3, on macOS 12.2.1 21D62 darwin-x64, locale
    en-GB)
    • Flutter version 3.10.3 on channel stable at
      /Users/dhs/documents/fluttersdk/flutter
    ! Warning: `flutter` on your path resolves to
      /Users/dhs/Documents/Fluttersdk/flutter/bin/flutter, which is not inside
      your current Flutter SDK checkout at
      /Users/dhs/documents/fluttersdk/flutter. Consider adding
      /Users/dhs/documents/fluttersdk/flutter/bin to the front of your path.
    ! Warning: `dart` on your path resolves to
      /Users/dhs/Documents/Fluttersdk/flutter/bin/dart, which is not inside your
      current Flutter SDK checkout at /Users/dhs/documents/fluttersdk/flutter.
      Consider adding /Users/dhs/documents/fluttersdk/flutter/bin to the front
      of your path.
    • Upstream repository https://github.com/flutter/flutter.git
    • Framework revision f92f44110e (4 days ago), 2023-06-01 18:17:33 -0500
    • Engine revision 2a3401c9bb
    • Dart version 3.0.3
    • DevTools version 2.23.1
    • If those were intentional, you can disregard the above warnings; however
      it is recommended to use "git" directly to perform update checks and
      upgrades.

[!] Xcode - develop for iOS and macOS (Xcode 12.3)
    • Xcode at /Applications/Xcode.app/Contents/Developer
    ! Flutter recommends a minimum Xcode version of 13.
      Download the latest version or update via the Mac App Store.
    • CocoaPods version 1.11.2

[✓] Chrome - develop for the web
    • Chrome at /Applications/Google Chrome.app/Contents/MacOS/Google Chrome

[✓] VS Code (version 1.62.0)
    • VS Code at /Applications/Visual Studio Code.app/Contents
    • Flutter extension version 3.21.0

[✓] Connected device (5 available)
    • SM G975F (mobile)       • RZ8M802WY0X • android-arm64   • Android 11 (API 30)
    • Darshan's iphone (mobile)  • 21150b119064aecc249dfcfe05e259197461ce23 •
      ios            • iOS 14.4.1 18D61
    • iPhone 12 Pro Max (mobile) • A5473606-0213-4FD8-BA16-553433949729     •
      ios            • com.apple.CoreSimulator.SimRuntime.iOS-14-3 (simulator)
    • macOS (desktop)            • macos                                    •
      darwin-x64     • Mac OS X 10.15.4 19E2269 darwin-x64
    • Chrome (web)               • chrome                                   •
      web-javascript • Google Chrome 98.0.4758.80

[✓] HTTP Host Availability
    • All required HTTP hosts are available

! Doctor found issues in 1 category.

[!] Flutter (Channel master, 3.12.0-2.0.pre.20, on macOS 12.2.1 21D62
    darwin-x64, locale en-GB)
    • Flutter version 3.12.0-2.0.pre.20 on channel master at
      /Users/dhs/documents/fluttersdk/flutter
    ! Warning: `flutter` on your path resolves to
      /Users/dhs/Documents/Fluttersdk/flutter/bin/flutter, which is not inside
      your current Flutter SDK checkout at
      /Users/dhs/documents/fluttersdk/flutter. Consider adding
      /Users/dhs/documents/fluttersdk/flutter/bin to the front of your path.
    ! Warning: `dart` on your path resolves to
      /Users/dhs/Documents/Fluttersdk/flutter/bin/dart, which is not inside your
      current Flutter SDK checkout at /Users/dhs/documents/fluttersdk/flutter.
      Consider adding /Users/dhs/documents/fluttersdk/flutter/bin to the front
      of your path.
    • Upstream repository https://github.com/flutter/flutter.git
    • Framework revision 1bd1b5014c (4 hours ago), 2023-06-07 18:16:30 -0700
    • Engine revision a5f7d5d75f
    • Dart version 3.1.0 (build 3.1.0-171.0.dev)
    • DevTools version 2.24.0
    • If those were intentional, you can disregard the above warnings; however
      it is recommended to use "git" directly to perform update checks and
      upgrades.

[!] Android toolchain - develop for Android devices (Android SDK version 30.0.3)
    • Android SDK at /Users/dhs/Library/Android/sdk
    ✗ cmdline-tools component is missing
      Run `path/to/sdkmanager --install "cmdline-tools;latest"`
      See https://developer.android.com/studio/command-line for more details.
    ✗ Android license status unknown.
      Run `flutter doctor --android-licenses` to accept the SDK licenses.
      See https://flutter.dev/docs/get-started/install/macos#android-setup for
      more details.

[✓] Xcode - develop for iOS and macOS (Xcode 13.2.1)
    • Xcode at /Applications/Xcode.app/Contents/Developer
    • Build 13C100
    • CocoaPods version 1.11.2

[✓] Chrome - develop for the web
    • Chrome at /Applications/Google Chrome.app/Contents/MacOS/Google Chrome

[✓] IntelliJ IDEA Ultimate Edition (version 2021.3.2)
    • IntelliJ at /Applications/IntelliJ IDEA.app
    • Flutter plugin version 65.1.4
    • Dart plugin version 213.7228

[✓] VS Code (version 1.62.0)
    • VS Code at /Applications/Visual Studio Code.app/Contents
    • Flutter extension version 3.29.0

[✓] Connected device (3 available)
    • Darshan's iphone (mobile) • 21150b119064aecc249dfcfe05e259197461ce23 • ios
      • iOS 15.3.1 19D52
    • macOS (desktop)           • macos                                    •
      darwin-x64     • macOS 12.2.1 21D62 darwin-x64
    • Chrome (web)              • chrome                                   •
      web-javascript • Google Chrome 109.0.5414.119

[✓] Network resources
    • All expected network resources are available.

! Doctor found issues in 1 category.

[!] Xcode - develop for iOS and macOS (Xcode 12.3)
    • Xcode at /Applications/Xcode.app/Contents/Developer
    ! Flutter recommends a minimum Xcode version of 13.
      Download the latest version or update via the Mac App Store.
    • CocoaPods version 1.11.2

[✓] Chrome - develop for the web
    • Chrome at /Applications/Google Chrome.app/Contents/MacOS/Google Chrome

[✓] VS Code (version 1.62.0)
    • VS Code at /Applications/Visual Studio Code.app/Contents
    • Flutter extension version 3.21.0

[✓] Connected device (5 available)
    • SM G975F (mobile)       • RZ8M802WY0X • android-arm64   • Android 11 (API 30)
    • Darshan's iphone (mobile)  • 21150b119064aecc249dfcfe05e259197461ce23 •
      ios            • iOS 14.4.1 18D61
    • iPhone 12 Pro Max (mobile) • A5473606-0213-4FD8-BA16-553433949729     •
      ios            • com.apple.CoreSimulator.SimRuntime.iOS-14-3 (simulator)
    • macOS (desktop)            • macos                                    •
      darwin-x64     • Mac OS X 10.15.4 19E2269 darwin-x64
    • Chrome (web)               • chrome                                   •
      web-javascript • Google Chrome 98.0.4758.80

[✓] HTTP Host Availability
    • All required HTTP hosts are available

! Doctor found issues in 1 category.

I tested it again and I found that with the example I provided the behavior is as expected, since the items are read in the correct order. And I also think its correct that the reader stops before the link, because the user has to be able to individually select the link.
In the context we use it (we wrap it with a custom conversation widget, that handles animations), the third paragraph is read immediatly after  the first one (without swiping next). Only after swiping the second paragraph with the link is then read.
But considering that my given minimal example is read correctly, I think that we are doing something wrong. Feel free to close the issue if you think there is nothing wrong with flutter.

Thanks for the feedback. Revisiting the issue, I think I misread the issue earlier. It seems to read the items properly in correct order.
Based on it, I am going ahead and closing this as non-issue.


something fishy is going on with nested index files

in vjs i have a folder examples
this has an index.html and an index.js, it is broken ( a wrong module is referenced )
now when i go to a nested folder with its own index e.g. examples/property , i keep the same bug and need to restart gaston

I'll take a look at this


Change STAC hrefs from /vitodata/ to /data/

The share on which the extractions are saved (netapp03.vgt.vito.be:/worldcereal_data) is currently mounted on all uservms on /vitodata/worldcereal_data, but will be moved to /data/worldcereal_data.
Therefore the hrefs of all STAC collections also need to be adjusted.

@VincentVerelst my S1 extractions finished, so you can go ahead and update S1 STAC.


feat(gatsby-plugin-fastify):  allow adding custom error/404 handlers

Is your feature request related to a problem? Please describe.
https://github.com/gatsby-uc/plugins/discussions/105
also people might want to implement some kind of log tracking. figure out how to best do these.
Describe the solution you'd like
not really sure. could be a function where users can do anything. need to understand pino better and maybe errors and 404 should be handled differently.

I believe this is somewhat/now handled via #321 and https://www.fastify.io/docs/latest/Reference/Server/#frameworkerrors. We can revisit in the future if needed.


config selfnamespace directive isn't working as expected and kubeshark tap -n "namespace" documentation is confusing

Describe the bug
According to the documentation if you supply -n "namespace" to the tap command all resources should be created under that namespace.
https://docs.kubeshark.co/en/scope
By default, Kubeshark is deployed into the default namespace under the name kubeshark
Another connected issue is if i change the config.yaml from the .kubeshark directory and change the
selfnamespace: kubeshark to something else,
the resources get created under that namespace but then the connection between the resources start throwing errors.
2023-03-24T10:28:30-05:00 WRN hub.go:110 > Failed sending the storage limit to Hub. Retrying... error="got response with status code: 500, body: {\"msg\":\"Post \\\"http://<IP_ADDRESS>:8897/pcaps/set-storage-limit\\\": dial tcp <IP_ADDRESS>:8897: connect: connection refused\"}"
Provide more information
Running on EKS with aws.
To Reproduce
Steps to reproduce the behavior:

Run kubeshark tap -n "choose whatever name you want
Review all pods / resources that were created either by looking at k8 or k9s.
Notice that the namespace is created with the default configured "kubeshark"

Second issue

update config.yaml and change selfnamespace: whatever name you want
Run kubeshark tap -n "choose whatever name you want
Review all pods / resources that were created either by looking at k8 or k9s.
you will notice that it is created under now whatever namespace you picked however you should see errors under the hub resources
2023-03-24T10:28:30-05:00 WRN hub.go:110 > Failed sending the storage limit to Hub. Retrying... error="got response with status code: 500, body: {\"msg\":\"Post \\\"http://<IP_ADDRESS>:8897/pcaps/set-storage-limit\\\": dial tcp <IP_ADDRESS>:8897: connect: connection refused\"}"

Expected behavior
For the first case i expect that -n command on kubeshark tap to associated all resources under that name as the documentation states.
For the second case, all i did was change the default namespace and it should not have had a connection issue
Logs
Screenshots
If applicable, add screenshots to help explain your problem.

Second case
current config.file

Desktop (please complete the following information):

OS: macOs
Web Browser: google chrome

Additional context
Add any other context about the problem here.

@mbristol580
kubeshark -n <namespace> taps a certain namespace and does not deploy Kubeshark's resources in that namespace.
Resources will be deployed in the namespace indicated by selfnamespace where the default is kubeshark. I agree that docs section that relates to the tap scope is confusing. I also confirm the the selfnamespace directive isn't working as expected. I assume this is the bug report.
Your two issues are clear. Let me get back to you on that.
Can I assume Kubeshark runs well when using the default kubeshark namespace?

@mbristol580 fixed with https://github.com/kubeshark/kubeshark/commit/7f6f710b3f63d8967abf59559dc85e8901980a3f and https://github.com/kubeshark/worker/commit/b1189c0c72d12cb116cc652738a9d4a5177babad please try version 39.5


flashplayer: <IP_ADDRESS>2 -> <IP_ADDRESS>5

Motivation for this change
Critical security fix. Backporting is needed.
https://helpx.adobe.com/flash-player/release-note/release-notes-flash-player-11_20120305.html
http://www.adobe.com/support/security/bulletins/apsb12-09.html
https://cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-2012-0779
[edit] those security fixes are for <IP_ADDRESS>, not for 635 [/edit]
Things done

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

[X] NixOS
[ ] OS X
[ ] Linux

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

Those security fixes are for <IP_ADDRESS>, not for 635.
There seems to be no security alert related to  <IP_ADDRESS>5.
https://helpx.adobe.com/security/products/flash-player.html

@taku0 This is the security fix this update fixes: https://helpx.adobe.com/security/products/flash-player/apsb16-29.html
And yes, it needs backporting:

Vulnerability Details

    These updates resolve an integer overflow vulnerability that could lead to code execution (CVE-2016-4287).
    These updates resolve use-after-free vulnerabilities that could lead to code execution (CVE-2016-4272, CVE-2016-4279, CVE-2016-6921, CVE-2016-6923, CVE-2016-6925, CVE-2016-6926, CVE-2016-6927, CVE-2016-6929, CVE-2016-6930, CVE-2016-6931, CVE-2016-6932).
    These updates resolve security bypass vulnerabilities that could lead to information disclosure (CVE-2016-4271, CVE-2016-4277, CVE-2016-4278).
    These updates resolve memory corruption vulnerabilities that could lead to code execution (CVE-2016-4182, CVE-2016-4237, CVE-2016-4238, CVE-2016-4274, CVE-2016-4275, CVE-2016-4276, CVE-2016-4280, CVE-2016-4281, CVE-2016-4282, CVE-2016-4283, CVE-2016-4284, CVE-2016-4285, CVE-2016-6922, CVE-2016-6924).


west: sign: remove -i 3 parameter

in some builds there is need to pass different value for -i parameter and current code will override it to 3
Also in rimage i parameter is by default set to 3

Merging without @mbolivar-nordic approval since this has little to do with the tooling itself, and only with the signing tool.


"path" and "config.validate.payload." issue

Hello guys,
I think i found an issue in the case where the route path variable name matches its payload name. When they are the same strings, the model schema will not show the right detail.
Here is simplified example of what i mean.
exports.routes = [
        {
        path: '/students',
        config: {
            //some more code here
            tags: ['my_tag'],
            validate: {
                payload: {
                    students: Joi.array().required().min(1).includes(validator.schema)
                },
           }
        }
]

The validator.schema contains several fields required for each 'students' element in the array,
none of these fields would show up under the model schema of the hapi-swagger page when the array name (students) matches the path name (students)

The plug-in is now using Swagger v2.x. I have tested your example, I think this is no longer an issue.
I am going to close the issue, but if you have any more problem with this issue please get back to me


Alpha channel

It would be nice to see an option like keep alpha channel as it is in EASU and RCAS.

Thank you for the suggestion. I think it is a good idea. We will fix it in a future release.


Feature/exposure materializations

This is a:

[ ] bug fix PR with no breaking changes
[x] new functionality

Link to Issue
closes #27
Description & motivation
This PR adds a test to check that the models referenced directly by an exposure are properly materialized in the warehouse as either a table or incremental model.
I am not attached to the name of the model, happy for feedback here. I also did not include DAG screenshots because I was unsure how to represent materializations in a DAG.
There's some pretty decent overlap here with @b-per's open PR on nested views -- I elected not to add the direct parent materialization column into int_all_dag_relationships and instead let the recursive logic take care of that join. I understand that this is required to filter out non-tables before the recursive logic, but I am wondering if it's possible for us to rely only on the recursive logic instead of doing similar operations in two places
Integration Test Screenshot

Checklist

[ ] I have verified that these changes work locally on the following warehouses (Note: it's okay if you do not have access to all warehouses, this helps us understand what has been covered)

[ ] BigQuery
[ ] Postgres
[ ] Redshift
[x] Snowflake

[x] I have updated the README.md (if applicable)
[x] I have added tests & descriptions to my models (and macros if applicable)
[ ] I have added an entry to CHANGELOG.md

I understand that this is required to filter out non-tables before the recursive logic, but I am wondering if it's possible for us to rely only on the recursive logic instead of doing similar operations in two places

Is your comment about this PR or the other one on chained views/ephemerals? For this PR, the way you have done it is good I think. But for the other PR I couldn't find any other way that wasn't regenerating the DAG on filtered links.

I understand that this is required to filter out non-tables before the recursive logic, but I am wondering if it's possible for us to rely only on the recursive logic instead of doing similar operations in two places

Is your comment about this PR or the other one on chained views/ephemerals? For this PR, the way you have done it is good I think. But for the other PR I couldn't find any other way that wasn't regenerating the DAG on filtered links.

This comment was about some of the logic in your PR -- I'll add my comments over on your PR!

Thoughts on moving these materialization tests to a new folder / new category of coverage. Maybe materialization or performance?

not positive what's going on with the databricks circle CI -- my tests are passing locally! 🤔


Add unbordered resource icons to spritesheet

Right now we have two spritesheets for resource icons (one with borders and one without). Let's put these icons on the same spritesheet.
Details:

Please base your work off of the main-new-graphics branch.
The script to make the spritesheet with the bordered icons is found at https://github.com/micahstairs/bga-innovation/blob/main-new-graphics/misc/imagemagick_commands/bordered_square_icons.sh.
The script to make the spritesheet with the unbordered icons is found at https://github.com/micahstairs/bga-innovation/blob/main-new-graphics/misc/imagemagick_commands/square_icon_spritesheet.sh.
The unbordered icons can go in the last row of the merged spritesheet.
Let's name the merged script square_icon_spritesheet.sh. Make sure the unused script and spritesheet are deleted.
Let's also move the square icon images out of the card_icon_borders directory and put it in the square_icons directory.

NOTE: Before you begin working on this, please assign this issue to yourself. If you do not do this, then there's the
possibility that 2 people will end up doing the same task, which is not a good use of time.

Closed with PR #90


Josiahsiegel/terraform law update

This PR creates a Log Analytics Workspace (LAW), funnels logs from resources to the the LAW, and allows Application Insights to report from LAW data.
LAW is primarily linked via Terraform data sources to avoid impact during development. Replace the data.tf file in log_analytics_workspace with module inputs from main.tf when ready.
Test Steps:

Within vars/test, run terraform plan -target=module.log_analytics_workspace -target=module.application_insights -lock=false to validate no env conflict (optional).
Check resource Diagnostic Settings for LAW connection.

Changes

Creates a Log Analytics Workspace
funnels logs from resources to the the LAW
allows Application Insights to report from LAW data

Pull reviewers stats
Stats for the last 30 days:

User
Total reviews
Median time to review
Total comments

MauriceReeves-usds
32
13h 56m
11

cwinters-usds
22
9h
6

carlosfelix2
19
2h 45m
66

TomNUSDS
16
1h 8m
16

brick-green-agile6
15
1h 10m
3

jimduff-usds
14
13h 12m
2

jbiskie
11
1h 2m
0

sean-usds
9
13m
3

kevinhaube
7
16h 44m
1

sethdarragile6
6
28m
0

JosiahSiegel
5
59m
2

whytheplatypus
4
2h 52m
8

oslynn
4
20h 19m
19

jorg3lopez
4
1h 6m
1

RickHawesUSDS
3
4h 6m
0

rhood23699
3
1h 57m
0

ahay-agile6
2
1d 22h 26m
0

clediggins-usds
2
1h 15m
0

jeremy-page
1
21h 35m
0

victorialb-usds
1
2d 20h 38m
1

jh765
1
2h 54m
0

Changes applied to staging via TF. PR updated
Also, looks like the non-LAW app insights is deprecated feb 2024.


CF Buildpack for Flogo

A cloud foundry buildpack for Flogo to enable deployments across CF PaaS environments.

You don't really need to have a Cloud Foundry specific build pack for Flogo. With the Cloud Foundry Binary Buildpack you can run arbitrary binary web servers on CF without the need to have a specific build pack for that language. Since Flogo can compile down to a binary that seems a nicer option.
Prerequisites:

You'll need a binary that is able to run on the same OS as CF is deployed (most likely Linux)
You'll need to make sure you're using port 8080 for your Receive HTTP Message trigger (this seems to be the default port for the binary build pack, though as a nice to have I'd suggest making it possible to use the PORT environment variable in the trigger as described here).

Steps to deploy:

Either build a Linux based app using the Web UI or build one using the cli (remember to set GOOS=Linux when building)
Make sure the app is executable: chmod +x <appname>
Push to PCF: cf push <name in pcf> -c './<appname>' -b binary_buildpack

More details on the binary build pack can be found here

Reopening and making it a documentation issue then :) thanks @retgits

Push instructions outlined by @retgits to docs site

@retgits - can this go to flogo.io docs or wiki too?


Change the Headings of the Portfolio into Different Pages

Support adding pages for different header links. When we click on Teaching, Research etc they should open in a different page.

For now we can use shadowing to achieve this as per; https://github.com/OpenArchitex/TharshannaPortfolio/pull/58


Add C# rules for EditorConfig

Update the EditorConfig file to use rules for C# based on this article.
Tidy up two code files.

Codecov Report

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

@@           Coverage Diff           @@
##           master      #35   +/-   ##
=======================================
  Coverage   99.86%   99.86%
=======================================
  Files           8        8
  Lines         738      738
  Branches       99       99
=======================================
  Hits          737      737
  Partials        1        1

Impacted Files
Coverage Δ

...ClientInterception/HttpClientInterceptorOptions.cs
99.53% <ø> (ø)
:arrow_up:

Continue to review full report at Codecov.

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


[Question] Custom vito.xml required when connecting over network?

I am sorry if this is not the place for it but I don't know where else I could ask this.
I run a vcontrold instance with a modified vito.xml on a raspberry pi. I installed the Homeassistant addon according to the documentation and connected it via the vcontrold host setting. This works fine, i can do the basic commands and it pushes everything to my mqtt broker.
But what got me thinking is the last part of the documentation:

Custom vito.xml configuration file
The module use the config option (refer to https://developers.home-assistant.io/docs/add-ons/configuration/#add-on-advanced-options) for mounting a custom configuration file. It verifies the existence of a 'vito.xml' file during startup.
Ensure the file is placed in the specified path:
config/vcontrold/vito.xml

Do the vito.xml on the raspberry and the vito.xml for the addon need to match? Is the vito.xml in the addon even required when connecting to a remote vcontrold instance?
This part really confuses me, could someone please help me with this question?

If you use your own Vcontrold Host in the Vcontrol add-on config this part of the documentation has got no impact. It is not required for you to place a vito.xml in this path.
It is a possibility for all users that use the add-on included vcontrol instance (Vcontrold Host=localhost) to overwrite the standard delivered vito.xml.

Ok, thank you very much for this answer!


Links don't open in browser right away [v1.4.3]

When clicking on a link, YakYak seems to wait for the link to resolve before opening in a browser. This violates the principle of giving immediate user feedback when an action is taken.
The solution would be to do as almost every other application does and open the link in a browser immediately upon clicking.
To test, try this link from YakYak. It introduces a 10s delay before redirecting to google.com:
http://slowwly.robertomurray.co.uk/delay/10000/url/http://www.google.com. See attached gif of behaviour, where I clicked on the link in YakYak and it took over 10 seconds for my action to result in any feedback.

I can confirm this also happening in Arch Linux.

10s delay :o
we do perform some stuff in the background.. one of my first contributions to yakyak was to remove the google.com redirect link for non-google links ... but that is just a regular expression operation and it should be really fast

the delay exists because we are loading the link in Yakyak itself to get an authenticated link (for cases where it is private to the user) and this has to be done inside Yakyak as it is the only app that is guaranteed to be authenticated and has permission.
This is really needed for videos shared in a conversation
However, I believe that non-google links are always prefixed by a google redirect and can skip this :p, so I'll send a pull request to try to avoid this for links outside google :)

@jjt @slackerbob can you guys test #767 pull request?

Ooh nice, will try that out!

@averissimo That seems to do the trick! It's funny because something about a new tab opening up instantly when I click a link feels better to me, even though I know I have the same amount of waiting either way :p

:) I understand the feeling, what do you think about the UI when opening a google link, such as a picture or video?
There the delay must happen, but I've added a 3second notification

I'll have to test it out, as we don't normally use google images/videos. Will report back.

@jjt did you try ?

Hi, sorry for the delay! Links to photos.app.goo.gl work correctly with a slight delay (to be expected), and other links open in a browser immediately.


docs:vue CDN version

Please make sure these boxes are checked before submitting your PR, thank you!

[x] Make sure you follow Element's contributing guide (中文 | English | Español | Français).
[x] Make sure you are merging your commits to dev branch.
[x] Add some descriptions and refer relative issues for you PR.

因为vue默认版本是3了，官方的例子全是没有锁版本的cdn引入。希望能早点修复。也可以自己手动制定到2.X版本vue实例就都正常了


[Issue-2694] Update chainlist

Related issue(s)

#2694

Is your feature request related to a problem(s)? Please describe.

Update migrate script

Describe the solution you'd like

Update migrate script

Describe alternatives you've considered

No

Additional context

No

🚀 Deployed on https://pr-2766--sw-web-runner.netlify.app


Extract cloud providers into separate package(s)

Context
As we look toward adding in recommendations, we will have a further need for specific treatment for each cloud providers. They all operate slightly differently, so we would like to organize the codebase to increase our separation of concerns and extensibility to add additional cloud providers or provider specific API calls or logic.
This card will work to refactor the codebase extracting out the cloud providers into separate packages.
Questions
Any implications for create-app?
Any implications for guided-install?
Separate package for each? Or one package for all cloud providers together?
What changes do we need to make to our set up instructions on the microsite?
AC's

[ ]

Todo:

[ ] Fix Cloud provider tests
[ ] Update emissions factors logic in App.ts
[ ] Update cli package tests with cloud provider imports
[ ] Update build processes with new extracted packages
[ ] Update create-app templating and version handling

Refactor Decisions:

Remove services directory in core package and move common files to common package
Update FootprintEstimate in core (move functions and types)
Remove cloud provider from buildComputeUsage class (consider a common constants file with coefficients, avg cpu, etc)
Create CloudConstantsUsage type and pass through constants and emission factors into estimator functions

Overall looking good to me. I think we can close this one off for now.


NFT-243: Add calendar event button

https://user-images.githubusercontent.com/7279416/165402948-8e794a61-28af-4cc3-9f9e-c7104da754e1.mov

AMAZING! Should we add to the description that due date might have changed? @cnasc did you have an idea for how to keep this synced?

I believe if the ICS has the same ID, but a higher sequence it should be able to update an existing event

@adamgobes see here for setting UID and SEQUENCE. UID should always be the same for a given loan, SEQUENCE could be 1 + (number of lend events)

@cnasc that looks good but seems its specific to ICS file? in discord think consensus was to go with google calendar link for now


LayoutInflater conflict with Robobinding

Hi. I've recently reported an issue to Robobinding regarding an issue that turned out to be a conflict with Calligraphy.
As it turns out, #setPrivateFactoryInternal seems to overwrite Robobinding's Factory2
Could you please take a look? There's more information @ https://github.com/RoboBinding/RoboBinding/issues/257

@Dellkan Any update on this? I have the same problem.

@zilchrhythm Made a hotfix back then in August, which seemed to do the trick. See https://github.com/Dellkan/Calligraphy/commit/df3a42f198e5fe5ccc0f0c2045be568fc28ec839 .
Been using this hotfix ever since.

@Dellkan How can I use your hotfix? Can you give me instruction?

Sure.
Step 1:
Checkout https://github.com/Dellkan/Calligraphy/tree/alternative-deploy to android studio.
(This branch adds deployment routines that I'm familiar with to Calligraphy, and allows you to publish it to a local repository)
Find the Gradle "tab" in the upper right side, and run :calligraphy->Tasks->build:assemble followed by :calligraphy->Tasks->publishing:publishToMavenLocal.
(This can also be done through command-line/terminal, but I don't recall the exact syntax)
You will now have a version of Calligraphy with my hotfixes in it on a maven repository local to your computer.
Step 2:
Open up your project where you want to use Calligraphy, and find the repositories tag in your build.gradle, and add mavenLocal() to it. Should now look something like
repositories {
    jcenter()
    mavenCentral()
    mavenLocal()
}

Step 3:
In dependencies, add/change the compile calligraphy line to
compile 'uk.co.chrisjenx:calligraphy:2.2.1-DEV'
(The version including the -DEV tag is set in https://github.com/Dellkan/Calligraphy/blob/alternative-deploy/metadata.gradle, feel free to change it to something that makes sense to you)
And that's it, your project will now compile with the modified Calligraphy.

Sorry just saw this, yeah didn't realise someone else would a nastier hack than me, yeah I need to "Get" the private factory and set it like RoboBindings does.

@chrisjenx Hope you'll put this fix soon 👍
Thank you @Dellkan 👍


Please consider signing exe file so it can be used under Windows without complains

SSL certificate is too expensive.

@hymkor, did you look into publishing the app on Microsoft Store?


Severity level

I was slightly confused by the phrasing "The exception severity is always set to 16" in the Differences Between... section.  The CATCH block example provided in the article contradicts that statement, as did my own tests.
I think it should be clarified that when THROW is used to initiate the exception, the severity is always 16, but when it is used to re-throw an existing exception it passes along the severity level it caught.

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

ID: 525698d4-0465-5fe0-f09d-dfad8b8413e6
Version Independent ID: 2ece841a-2d51-542e-6c2b-9d36ffe54202
Content: THROW (Transact-SQL) - SQL Server
Content Source: docs/t-sql/language-elements/throw-transact-sql.md
Product: sql
Technology: t-sql
GitHub Login: @rothja
Microsoft Alias: jroth

@KevinPence -- thank you for your feedback.  I am looking into this article.

@rothja -- Jason, please review private PR 14560.

@KevinPence  Thanks for the feedback, and thank you, @WilliamAntonRohm , for the change to the article. I also tested and verified the described behavior.


XIVY-7655 Build this connector as any other connector only from released version

So finally green on Jenkins. But not on GitHub. Will be green on GitHub as soon as we have released 9.4. Than this connector can be treated as every other connector.


Validation of Campaign object for active_values in TaskParameter in case of string

I experienced unexpected behaviour in the validation when using a string as input type for active_values in the TaskParamter instead of a list.
I created the TaskParameter with a single-char string for active_values, i.e. active_value="A" for testing purposes. The Campaign object could be created without a problem. Unexpectedly, I got an error when creating the Campaign object in case the string for active_values was longer than 1, for example active_value="C12":

As @Scienfitz already pointed out, it is related to the input type, i.e. list vs string, and that the string is interpreted as a list in the validation. Therefore "C" is not in ["C12", ..] fails whereas "A" is not in ["A", ..] works in case of a single-char string. To provide robustness or a clearer error message in that case, the validation could check whether active_values is a list or string and act accordingly.
When I input active_values as a list, i.e. active_value=["C12"], the validation and creation of the Campaign object works without problems.

As discussed, the function works as intended with correct inputs, but can have improper validation in the demonstrated example, accepting improper input causing a downstream error.
This is due to the automatic structuring of a string as list. If its possible to avoid this automatic conversion this loophole should be fixable.

There is an ugly and a nice solution to this. The core of the problem is that we convert the input of values/active_values to tuple and once this is done, there is no way you can tell whether the original input was a string or any other iterable. That is:

`tuple("ABC") --> ("A", "B", "C")   (which we don't want to happen)
`tuple(["A", "B", "C"]) --> ("A", "B", "C")   (which we do want to happen)

So the only way to catch that first case is to do a check before the conversion happens. It attrs speech, that would mean before calling the converter or as part of the converter.
So the "ugly" solution would be to write a converter utility that does the check and use it instead:
def nonstring2tuple(x: Iterable) -> Tuple:
    if isinstance(x, str):
        raise ValueError("Input must not be a string.")
    return tuple(x)

This would only require to replace converter=tuple with converter=nonstring2tuple in placed where we want that check to happen. However, the downside (which I think is a critical one) is that we can hardly raise specific error messages that way.
The "nice" solution would be to use a three-argument converter that also gets the respective context like the validators (i.e., not only the to-be-converted value but also self and field), such that we can build a context-specific error message inside the converter. However, this is not (yet) supported by attrs and has been raised in tickets since long time ago. Luckily, there's now an open PR since 4 days that seems about to be merged (perfect timing 😄). So I suggest we wait until the next attrs version is released and solve the problem then 👍🏼

@AdrianSosic I don't consider the second solution ugly and would support that as an immediate fix. In fact we could debate whether we can also explicitly allow a single str and and return (x,) is isinstance(x, str) instead of the raise. But even if not it would solve stuff immediately


Copy with Query Results : Ctrl+Alt Keybindings should not be used by default

Per https://github.com/microsoft/azuredatastudio/blob/main/src%2Fvs%2Fplatform%2Fkeybinding%2Fcommon%2FkeybindingsRegistry.ts#L210 we shouldn't be using ctrl+alt keybindings by default for Windows.
I can't recall the exact reasonings behind this but I believe there's two main issues :

They're used for unicode support
They're often used for accessibility controls

So overriding that will negatively affect both of these

@gupta1 @qifahs

Thanks @Charles-Gagnon for the feedback.
@qifahs  @gupta1 - can we use Ctrl + K Ctrl + R combo?
It seems that ADS is still using Ctrl + Alt + C right now.


Chapter 5: zap-baseline-scan

Hi,
I am getting the error: "'auto_remove' is not compatible with docker-py, and requires the docker python module"
Any ideas?

Looks like API issue. As per the Ansible docs, they have added in 2.4
http://docs.ansible.com/ansible/latest/modules/docker_container_module.html
Try checking the requirements met perfectly as per Ansible docs?
python >= 2.6
docker-py >= 1.7.0
Docker API >= 1.20

I will check once again if any other issues.
Thanks for letting us know :)

I am using all the latest versions, as I installed them using the other playbooks in the free chapter 5.

https://github.com/madhuakula/security-automation-with-ansible-2/blob/master/chapter-5/docker/site.yml
https://github.com/madhuakula/security-automation-with-ansible-2/blob/master/chapter-5/zap-setup-playbook/site.yml

Is that not the correct thing to do?

Hi, I hope the issue has been resolved. If not, please reopen this issue.

Hey @bwearp
I am really sorry to see the delay in response. I think the Ansible module for Docker has changed quite a lot. Please feel free to check now and let me know if you still face any issues.


HTMLMediaElement.play() promise interface

R: @addyosmani @PaulKinlan @gauntface @beaufortfrancois @ebidel etc.
Here's the code sample for the HTMLMediaElement.play() returns a promise feature in M50.
It makes use of an existing audio file that we have rights for and which was used for another sample.
You can view a live version at https://jeffy.info/samples/play-return-promise/
There's a separate /web/updates/ article planned with more information.

I would simply add the html so that user understands that #music is an audio HTML tag.
Moreover, to make it nicer, I'd shorten logs.
See below.
Otherwise :+1:
diff --git a/play-return-promise/demo.js b/play-return-promise/demo.js
index aa55e7e..2130065 100644
--- a/play-return-promise/demo.js
+++ b/play-return-promise/demo.js
@@ -7,10 +7,12 @@ ChromeSamples.log('Attempting to start playback automatically...');
 startPlayback().then(function() {
   ChromeSamples.log('The play() Promise resolved! Rock on!');
 }).catch(function(error) {
-  ChromeSamples.log('The play() Promise rejected!\nUse the Play button instead.\n' + error);
+  ChromeSamples.log('The play() Promise rejected!\n' +
+                    'Use the Play button instead.\n' + error);

   var playButton = document.querySelector('#play');
-  // The user interaction requirement will be met if playback starts via a click event.
+  // The user interaction requirement will be met if playback starts via a
+  // click event.
   playButton.addEventListener('click', startPlayback);
   playButton.hidden = false;
 });
diff --git a/play-return-promise/index.html b/play-return-promise/index.html
index 86abda4..b0dfd6f 100755
--- a/play-return-promise/index.html
+++ b/play-return-promise/index.html
@@ -17,10 +17,12 @@ feature_id:<PHONE_NUMBER>590336
   playback succeeded or failed.
 </p>

-{% capture initial_output_content %}
+{% include output_helper.html %}
+
+{% capture html %}
 <audio id="music" src="../audio/techno.wav"></audio>
 <button id="play" hidden>Play</button>
 {% endcapture %}
-{% include output_helper.html initial_output_content=initial_output_content %}
+{% include html_snippet.html html=html %}

 {% include js_snippet.html filename='demo.js' %}

Thanks, @beaufortfrancois! I've made changes along the line of what you suggested.

Lgtm

Merging. I'll update in a follow-up PR if there is any more feedback that comes out of the article review process.


README: add more details and commands

Thought it'd be nice if the README for this starter could have the same commands as the blog and default starters.
Thanks!

Thanks!


dprint moves else to the wrong if

Describe the bug
dprint-plugin-typescript version: x.x.x
Input Code
https://dprint.dev/playground/#code/JYMwFAhglA3qYCNYGMD2A7AzqgNgUwDodUBzMABigG4BfGvHTPAAngBMUNt8jSwBGavUZ4YaLLkLEyAJiFA/config/N4XyA/plugin/typescript
if(a){if(b){console.log(0);}}else if(d){console.log(1);}else{console.log(2);}

Expected Output
Something so that if a is false and d is true that code logs 1
Actual Output
if (a) if (b) console.log(0);
else if (d) console.log(1);
else console.log(2);

which, when a is false, logs nothing.

Thanks! That's pretty bad. Fixed in 0.90.5


ComputerManagementDsc: Update Description in psd1 File

Pull Request (PR) description
This PR updates the out-of-date description in the ComputerManagementDsc.psd1 file.
This Pull Request (PR) fixes the following issues

Fixes #269

Task list

[x] Added an entry under the Unreleased section of the change log in the CHANGELOG.md.
Entry should say what was changed, and how that affects users (if applicable).
[ ] Resource documentation added/updated in README.md in the resource folder.
[ ] Resource parameter descriptions added/updated in schema.mof
and comment-based help.
[ ] Comment-based help added/updated.
[ ] Localization strings added/updated in all localization files as appropriate.
[ ] Examples appropriately added/updated.
[ ] Unit tests added/updated. See DSC Resource Testing Guidelines.
[ ] Integration tests added/updated (where possible). See DSC Resource Testing Guidelines.
[ ] New/changed code adheres to DSC Resource Style Guidelines and Best Practices.

This change is

Codecov Report

Merging #270 into dev will not change coverage.
The diff coverage is n/a.

@@         Coverage Diff         @@
##            dev   #270   +/-   ##
===================================
  Coverage    87%    87%
===================================
  Files        12     12
  Lines      1404   1404
===================================
  Hits       1235   1235
  Misses      169    169

Done.


Can't Find Div

I'm very new to AngleSharp, and not sure where to post these kinds of questions, as the latest AngleSharp stuff on stackoverflow.com seem to be fairly old.
I'm writing a simple screen scraper for NextDoor.com. I've been able to do the necessary login, and return the starting news feed page. But when I try to submit something to the search box on the top of the page, AS can't find the form element.
Here's a screen grab of the news feed page, along with the chrome debugger display of the page, showing the search form:

Here's the code I'm using to find the search form, which is returning null:
var searchForm = BrowsingContext.Active.QuerySelector<IHtmlFormElement>( ".header-bar-global-search-form" );
I've verified, as best I can, that the Active document is, in fact, the news feed page. Also, when I search for #layout_container, which is the ultimate parent of the form div I'm searching for, it's deemed to not have any child elements...which is odd.
I noticed that the search form is contained within a div marked with data-reactroot, and am wondering if there's some behind-the-scenes DOM manipulation going on which I'm not handling in AngleSharp.

I think the page actively uses JavaScript. I am not sure if you are using a JS engine within AS, however, even if you would - the JS used on the page may just be too much to handle in AS (at the moment).
Have a look at the transported source. If that one does not contain elements within #layout_container (but some scripts) you know this is the case.

Thanx for the quick reply. You may be right about there being some fairly complex javascript work going on.
How do I check the transported source? I presume you’re referring to the raw response text, but, if so, I’m not sure how to access that through AngleSharp.

Mark

Sent from Mailhttps://go.microsoft.com/fwlink/?LinkId=550986 for Windows 10

From: Florian Rappl<EMAIL_ADDRESS>Sent: Tuesday, December 19, 2017 3:00:14 PM
To: AngleSharp/AngleSharp
Cc: Mark Olbert; Author
Subject: Re: [AngleSharp/AngleSharp] Can't Find Div (#622)
I think the page actively uses JavaScript. I am not sure if you are using a JS engine within AS, however, even if you would - the JS used on the page may just be too much to handle in AS (at the moment).
Have a look at the transported source. If that one does not contain elements within #layout_container (but some scripts) you know this is the case.
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHubhttps://github.com/AngleSharp/AngleSharp/issues/622#issuecomment-352912908, or mute the threadhttps://github.com/notifications/unsubscribe-auth/AIrJunOzURS-G8maeRQPtFEUwWL2K4LCks5tCD_-gaJpZM4RHdbE.

The IDocument has a property called Source. This is the text source as seen from the parser. It has a property called Text, so e.g., document.Source.Text could show you what you need to know. The other option is to use the browser and "show source" (this is also the transported source, the modified model is only available via JS / the JS console or the DOM explorer).
Hope this helps!

Thanx. I suspect the problem is that the site I'm trying to scrape is a reasonably heavy user of React. At least, all the pages that use React are the ones that AngleSharp has problems with.
But I found a workaround: I use AngleSharp in conjunction with Selenium. Selenium, because "all" it does is run a regular browser does a good job of rendering pages. But it's slow when searching for things, and the API isn't as elegant as AngleSharp. So I just use HtmlParser to parse the Selenium-provided page source and I'm good to go. It's still not as fast as AngleSharp, but it works reasonably well.
BTW, in case it isn't obvious: AngleSharp is an >>awesome<< library, IMHO. Kudos to you for developing it!

Thanks for the nice words @markolbert - and also for providing details on the workaround you've found! I hope that in the future I (or hopefully some others as well) will find the time to make AngleSharp.Scripting / the whole AngleSharp project powerful enough to be able to cope with heavy frontend scripts such as React or Angular.


[Bug] [元数据] 数据开发-元数据-字段信息显示异常

Search before asking

[X] I had searched in the issues and found no similar issues.

What happened

如果字段列名比较长的时候，数据开发-元数据-字段信息显示异常，具体如图
What you expected to happen
建议字段信息表格增加横向滚动条
How to reproduce
配置MySQL数据源，选择 dlink自己的数据库，查看dlink.dlink_alert_group即可重现
Anything else
No response
Version
0.6.6
Are you willing to submit PR?

[ ] Yes I am willing to submit a PR!

Code of Conduct

[X] I agree to follow this project's Code of Conduct

1.0 already optimized


Improve migrate command

Add quiet option for not print logs during migration.
Trim unnecessary new line code in DDL by strings.TrimFunc

LGTM:+1:

Thanks !!!!


make fallback to JavaScript global explicit

In types.rst, I see:

Referring to unknown identifier will assume that the identifier refers to a native JavaScript global.

?!
Is that really on purpose? introduction.rst says implicit globals are dangerous, no?

JavaScript has the var keyword to create local variables but unqualified assignments write to the global object:

How about an analog to the /* global */ directive from JSLint?

JSLint also recognizes a /global/ directive that can indicate to JSLint that variables used in this file were defined in other files."

My interest in this issue is overtaken by the emergence of purescript.


Create unittests with pytest for "analysis" module

You can base yourself on the following if needed: https://github.com/Fernando-Urbano/efficient-frontier-regularization/blob/main/tests/test_portfolio.py
GenAI can be very useful for this: you can ask it to read the module and generate some tests, after, you should try to make the tests better. For instance, try to create a situation in which you know the answer and check if the function returns the correct answer. It is also useful to create unit tests for situations in which there should be a problem and the function should not work.
If you deem that some changes are necessary in the module of the functions, feel free to change it.

I have created a simulated returns dataframe that can be helpful. In this way, there is no need to get real data to do the tests:
https://github.com/Fernando-Urbano/portfolio-management/tree/main/tests/utils.py
I believe it is worth to use it, if needed :)

@Fernando-Urbano I'll pick this one up along with the "statistics" module. I have two courses this quarter that deal closely with these libraries, so you can count on me for enhancements to these modules as well.

I have drafted an initial test script for the analysis module.
@Fernando-Urbano I have only written a test function for the calc_cross_section_regression function for now as this function relies on calc_iterative_regression, which in turn relies on calc_regression. Consequently, if any of calc_regression or calc_iterative_regression fail, then so too will calc_cross_section_regression. I'm curious if you think this is sufficient, of if I should be writing tests specific to calc_regression and calc_iterative_regression?


Build fails with a  failed to resolve "extends":"../../tsconfig.json"

Describe the bug
I am trying to build a new React (Typescript) app but I get this error:
[vite:esbuild] failed to resolve "extends":"../../tsconfig.json" in<EMAIL_ADDRESS>This comes from my organization's monorepo. Is there any way to solve this? I can see from the documentation that using extends can affect the build.
Reproduction
Unfortunately I cannot post any code since this is a private repo but the build fails on my package that get's imported from my organisation's monorepo (lerna, workspaces).
System Info
System:
    OS: macOS 11.5.2
    CPU: (12) x64 Intel(R) Core(TM) i7-8850H CPU @ 2.60GHz
    Memory: 318.47 MB / 16.00 GB
    Shell: 5.8 - /bin/zsh
  Binaries:
    Node: 12.22.7 - ~/.nvm/versions/node/v12.22.7/bin/node
    Yarn: 1.22.17 - /usr/local/bin/yarn
    npm: 6.14.15 - ~/.nvm/versions/node/v12.22.7/bin/npm
  Browsers:
    Brave Browser: <IP_ADDRESS>
    Chrome: 97.0.4692.99
    Chrome Canary: 100.0.4862.3
    Edge: 97.0.1072.76
    Firefox: 91.0.2
    Firefox Developer Edition: 97.0
    Safari: 14.1.2
  npmPackages:
    @vitejs/plugin-react: ^1.0.7 => 1.1.4
    vite: ^2.7.2 => 2.7.13

Used Package Manager
yarn
Logs
[vite:esbuild] failed to resolve "extends":"../../tsconfig.json" in<EMAIL_ADDRESS>file<EMAIL_ADDRESS>error during build:
TSConfckParseError: failed to resolve "extends":"../../tsconfig.json" in<EMAIL_ADDRESS>    at resolveExtends (/Users/me/my-app/node_modules/vite/dist/node/chunks/dep-f5552faa.js:22291:11)
    at parseExtends (/Users/me/my-app/node_modules/vite/dist/node/chunks/dep-f5552faa.js:22275:34)
    at parse$e (/Users/me/my-app/node_modules/vite/dist/node/chunks/dep-f5552faa.js:22226:24)
    at async loadTsconfigJsonForFile (/Users/me/my-app/node_modules/vite/dist/node/chunks/dep-f5552faa.js:22567:24)
    at async transformWithEsbuild (/Users/me/my-app/node_modules/vite/dist/node/chunks/dep-f5552faa.js:22404:36)
    at async Object.transform (/Users/me/my-app/node_modules/vite/dist/node/chunks/dep-f5552faa.js:22488:32)
    at async transform (/Users/me/my-app/node_modules/rollup/dist/shared/rollup.js:21959:16)
    at async ModuleLoader.addModuleSource (/Users/me/my-app/node_modules/rollup/dist/shared/rollup.js:22192:30)
[!] Error: unfinished hook action(s) on exit:

Validations

[X] Follow our Code of Conduct
[X] Read the Contributing Guidelines.
[X] Read the docs.
[X] Check that there isn't already an issue that reports the same bug to avoid creating a duplicate.
[X] Make sure this is a Vite issue and not a framework-specific issue. For example, if it's a Vue SFC related bug, it should likely be reported to https://github.com/vuejs/core instead.
[X] Check that this is a concrete bug. For Q&A open a GitHub Discussion or join our Discord Chat Server.
[ ] The provided reproduction is a minimal reproducible example of the bug.

adding @dominikg as you made tsconfk and might know the reason

It looks like that package extends a tsconfig that is outside of it's own directory.
 "extends":"../../tsconfig.json" in<EMAIL_ADDRESS>would be
/Users/me/my-app/node_modules/tsconfig.json
Does that file exist? I guess not. Also i'm not sure why there is typescript in node_modules. shouldn't that be a built version of my-package? This might have something to do with lerna (not familiar with it) but without a reproduction, i'm not sure what could be going on here.

I have exactly the same issue with this package : @axa-fr/react-oidc-redux
You could add it and you will see that yarn build faild with the same error message.

I have exactly the same issue with this package : @axa-fr/react-oidc-redux You could add it and you will see that yarn build faild with the same error message.

see https://github.com/AxaGuilDEv/react-oidc/issues/671
it seems in that case the issue is that their package.json contains a legacy "jsnext:main" entry that takes precedence in vite.
@iakovosvo  you may want to check your project for a similar field

I use react-ts template with yarn 3 with pnp mode.

esm support with yarn pnp has been less than pleasant (read: not working) in the past. does it work now?

Thank's for your answer. Yarn dev works perfectly. I have only this issue with yarn build.


Layout Animation Not Working in Docs, Is This Feature No Longer Supported?

Description
Calling the LayoutAnimation API before calling a render seems to do nothing, on all devices.
React Native version:
0.62.
Steps To Reproduce

Go to the React Native docs: https://reactnative.dev/docs/layoutanimation
Try the examples in Snack, using Web, IOS, or Android.
Click the button that updates the view.

Expected Results
Square should animate across the screen. Just teleports instead.
Snack, code example, screenshot, or link to a repository:
https://snack.expo.io/?&preview=true&platform=web&iframeId=ku46vvkor5&supportedPlatforms=android,ios&name=LayoutAnimation&description=Example usage&waitForData=true
Side Note
Could note get LayoutAnimation to work locally regardless of setup. Can someone share a link to a working Gist / SNACK of LayoutAnimation?

it appears to work as expected in https://reactnative.dev/docs/layoutanimation as far as i can tell?


Turkish translation

Q
A

Is bugfix?
no

New feature?
no

Breaks BC?
no

Tests pass?
yes

Fixed issues
none

Turkish translation updated

Thank you!