Explore all Web Framework open source software, libraries, packages, source code, cloud functions and APIs.

Popular New Releases in Web Framework

angular

v14.0.0-next.14

flask

gin

Release v1.7.7

symfony

v6.0.7

vapor

Provide async closures in XCTVapor

Popular Libraries in Web Framework

angular

by angular doticontypescriptdoticon

star image 80840 doticonMIT

The modern web developer’s platform

flask

by pallets doticonpythondoticon

star image 58462 doticonBSD-3-Clause

The Python micro framework for building web applications.

gin

by gin-gonic doticongodoticon

star image 56154 doticonMIT

Gin is a HTTP web framework written in Go (Golang). It features a Martini-like API with much better performance -- up to 40 times faster. If you need smashing performance, get yourself some Gin.

php-src

by php doticoncdoticon

star image 33588 doticonNOASSERTION

The PHP Interpreter

symfony

by symfony doticonphpdoticon

star image 26732 doticonMIT

The Symfony PHP framework

polymer

by Polymer doticonhtmldoticon

star image 21662 doticonNOASSERTION

Our original Web Component library.

vapor

by vapor doticonswiftdoticon

star image 21579 doticonMIT

💧 A server-side Swift HTTP web framework.

tornado

by tornadoweb doticonpythondoticon

star image 20509 doticonApache-2.0

Tornado is a Python web framework and asynchronous networking library, originally developed at FriendFeed.

remote-jobs

by remoteintech doticonjavascriptdoticon

star image 18118 doticonCC0-1.0

A list of semi to fully remote-friendly companies (jobs) in tech.

Trending New libraries in Web Framework

go-admin

by go-admin-team doticongodoticon

star image 5884 doticonMIT

基于Gin + Vue + Element UI的前后端分离权限管理系统脚手架(包含了:多租户的支持,基础用户管理功能,jwt鉴权,代码生成器,RBAC资源控制,表单构建,定时任务等)3分钟构建自己的中后台项目;文档:https://doc.go-admin.dev Demo: https://www.go-admin.dev Antd beta版本:https://preview.go-admin.dev

deprecation-contracts

by symfony doticonphpdoticon

star image 1305 doticonMIT

A generic function and convention to trigger deprecation notices

polyfill-php80

by symfony doticonphpdoticon

star image 1232 doticonMIT

This component provides functions unavailable in releases prior to PHP 8.0.

pwa-starter

by pwa-builder doticontypescriptdoticon

star image 628 doticonNOASSERTION

Welcome to the PWABuilder pwa-starter! Looking to build a new Progressive Web App and not sure where to get started? This is what you are looking for!

SeetaFace6

by seetafaceengine doticonc++doticon

star image 533 doticon

SeetaFace 6: Newest open and free, full stack face recognization toolkit.

ux

by symfony doticonphpdoticon

star image 461 doticonMIT

Symfony UX initiative: a new JavaScript ecosystem for Symfony

terminal

by TitasGailius doticonphpdoticon

star image 451 doticon

An Elegent wrapper around Symfony's Process component.

polyfill-php81

by symfony doticonphpdoticon

star image 443 doticonMIT

This component provides functions unavailable in releases prior to PHP 8.1.

laravel-easypanel

by rezaamini-ir doticonphpdoticon

star image 428 doticonMIT

A beautiful and flexible admin panel creator based on Livewire for Laravel

Top Authors in Web Framework

1

symfony

112 Libraries

star icon174057

2

vaadin

78 Libraries

star icon3474

3

yiisoft

69 Libraries

star icon26046

4

googlearchive

62 Libraries

star icon3090

5

vapor-community

47 Libraries

star icon1701

6

hiqdev

41 Libraries

star icon176

7

Sylius

40 Libraries

star icon866

8

yii2mod

36 Libraries

star icon1192

9

vapor

31 Libraries

star icon24338

10

kartik-v

29 Libraries

star icon2678

1

112 Libraries

star icon174057

2

78 Libraries

star icon3474

3

69 Libraries

star icon26046

4

62 Libraries

star icon3090

5

47 Libraries

star icon1701

6

41 Libraries

star icon176

7

40 Libraries

star icon866

8

36 Libraries

star icon1192

9

31 Libraries

star icon24338

10

29 Libraries

star icon2678

Trending Kits in Web Framework

No Trending Kits are available at this moment for Web Framework

Trending Discussions on Web Framework

Why can two Java processes bind to the same socket in macOS?

ImportError: Couldn't import Django inside virtual environment with poetry?

ssl.SSLCertVerificationError: [SSL: CERTIFICATE_VERIFY_FAILED] certificate verify failed: certificate has expired (_ssl.c:997)

Newbe on Go - AppEngine - Deploy

Remix: middleware pattern to run code before loader on every request?

Quart framework WARNING:asyncio:Executing

dial tcp 127.0.0.1:8080: connect: connection refused. go docker app

VS2017 crashes with 'FileNotFoundEx: System.Runtime.CompilerServices.Unsafe, V=4.0.4.1' upon loading any project

Logging access to Java servlet

DataTables warning: table id=<my_table_name> - Requested unknown parameter '<my_table_first_column_name>' for row 0, column 0

QUESTION

Why can two Java processes bind to the same socket in macOS?

Asked 2022-Feb-16 at 20:18

I have some Java code that is generating a socket binding. It's hard to provide a minimal example as this is part of a web framework, but it effectively does this check at some point.

1  private static boolean portInUse(int port) {
2    // try to bind to this port, if it succeeds the port is not in use
3    try (ServerSocket socket = new ServerSocket(port)) {
4      socket.setReuseAddress(true);
5      return false;
6    } catch (IOException e) {
7      return true;
8    }
9  }
10

I can see that if I run two distinct Java processes with the same port, they both fall into the first conditional and return false, thus both are able to bind to the same port. I've read through some related socket questions and explanations like this one, but they seem to make it sound like this shouldn't be possible with the options I've specified. Looking at the implementation of setReuseAddress it only seems to set SO_REUSEADDR on the socket.

I can see one process ends up with a socket like ServerSocket[addr=0.0.0.0/0.0.0.0,localport=56674] in a debugger. If I run something like sudo lsof -n -i | grep -e LISTEN -e ESTABLISHED | grep 56674 I can see two processes binding to the same port:

1  private static boolean portInUse(int port) {
2    // try to bind to this port, if it succeeds the port is not in use
3    try (ServerSocket socket = new ServerSocket(port)) {
4      socket.setReuseAddress(true);
5      return false;
6    } catch (IOException e) {
7      return true;
8    }
9  }
10java      68863    natdempk 1256u  IPv4 0xbbac93fff9a6e677      0t0  TCP *:56674 (LISTEN)
11java      68998    natdempk  985u  IPv6 0xbbac93fff2f84daf      0t0  TCP *:56674 (LISTEN)
12

I can also see some other projects like gRPC and Node mention this behavior as being observed with their servers in issue trackers, but they never explain why this is possible. How can distinct processes bind to the same socket on macOS?

I am running macOS 11.6.3 (20G415) if that is at all helpful. Happy to provide more debug info as well if anyone has anything I should add here.

ANSWER

Answered 2022-Feb-16 at 20:18

They are not binding to the same port. One is binding to TCP on top of IPv6, the other is binding to TCP on top of IPv4.

To expand on the Java details a bit: new ServerSocket(port) in Java uses InetAddress.anyLocalAddress() because no InetAddress was passed in. InetAddress.anyLocalAddress() can return either an IPv4 or IPv6 address, which means this isn't guaranteed to be the same value to bind to across JVMs despite the same port being passed in.

Source https://stackoverflow.com/questions/71148158

QUESTION

ImportError: Couldn't import Django inside virtual environment with poetry?

Asked 2022-Jan-31 at 06:29

I created a django project, set up a virtual environment, and added django with poetry add.

inside pyproject.toml:

1[tool.poetry.dependencies]
2python = "^3.9"
3psycopg2-binary = "^2.9.3"
4Django = "^4.0.1"
5

Inside venv I run poetry show:

1[tool.poetry.dependencies]
2python = "^3.9"
3psycopg2-binary = "^2.9.3"
4Django = "^4.0.1"
5asgiref         3.5.0 ASGI specs, helper code, and adapters
6django          4.0.1 A high-level Python web framework that encourages rapid development and clean, pragmatic design.
7psycopg2-binary 2.9.3 psycopg2 - Python-PostgreSQL Database Adapter
8sqlparse        0.4.2 A non-validating SQL parser.
9

When I run command to create an app:

1[tool.poetry.dependencies]
2python = "^3.9"
3psycopg2-binary = "^2.9.3"
4Django = "^4.0.1"
5asgiref         3.5.0 ASGI specs, helper code, and adapters
6django          4.0.1 A high-level Python web framework that encourages rapid development and clean, pragmatic design.
7psycopg2-binary 2.9.3 psycopg2 - Python-PostgreSQL Database Adapter
8sqlparse        0.4.2 A non-validating SQL parser.
9  p manage.py startapp users apps/users
10

I get this error:

1[tool.poetry.dependencies]
2python = "^3.9"
3psycopg2-binary = "^2.9.3"
4Django = "^4.0.1"
5asgiref         3.5.0 ASGI specs, helper code, and adapters
6django          4.0.1 A high-level Python web framework that encourages rapid development and clean, pragmatic design.
7psycopg2-binary 2.9.3 psycopg2 - Python-PostgreSQL Database Adapter
8sqlparse        0.4.2 A non-validating SQL parser.
9  p manage.py startapp users apps/users
10    (base) ┌──(venv)─(tesla㉿kali)-[~/Documents/projects/graphql/graphenee]
11└─$ p                                                                                                                                                                                                                                    1 ⨯
12Python 3.9.7 (default, Sep 16 2021, 13:09:58) 
13[GCC 7.5.0] :: Anaconda, Inc. on linux
14Type "help", "copyright", "credits" or "license" for more information.
15>>> import django
16Traceback (most recent call last):
17  File "<stdin>", line 1, in <module>
18ModuleNotFoundError: No module named 'django'
19>>> 
20

venv is set, activated, django is installed but I am still getting this error. Inside virtual envrionment I start python shell and import django:

1[tool.poetry.dependencies]
2python = "^3.9"
3psycopg2-binary = "^2.9.3"
4Django = "^4.0.1"
5asgiref         3.5.0 ASGI specs, helper code, and adapters
6django          4.0.1 A high-level Python web framework that encourages rapid development and clean, pragmatic design.
7psycopg2-binary 2.9.3 psycopg2 - Python-PostgreSQL Database Adapter
8sqlparse        0.4.2 A non-validating SQL parser.
9  p manage.py startapp users apps/users
10    (base) ┌──(venv)─(tesla㉿kali)-[~/Documents/projects/graphql/graphenee]
11└─$ p                                                                                                                                                                                                                                    1 ⨯
12Python 3.9.7 (default, Sep 16 2021, 13:09:58) 
13[GCC 7.5.0] :: Anaconda, Inc. on linux
14Type "help", "copyright", "credits" or "license" for more information.
15>>> import django
16Traceback (most recent call last):
17  File "<stdin>", line 1, in <module>
18ModuleNotFoundError: No module named 'django'
19>>> 
20    Python 3.9.7 (default, Sep 16 2021, 13:09:58) 
21    [GCC 7.5.0] :: Anaconda, Inc. on linux
22    Type "help", "copyright", "credits" or "license" for more information.
23    >>> import django
24    Traceback (most recent call last):
25      File "<stdin>", line 1, in <module>
26    ModuleNotFoundError: No module named 'django'
27

Django is also globally installed and when I start the python shell in global environment, I can import django:

1[tool.poetry.dependencies]
2python = "^3.9"
3psycopg2-binary = "^2.9.3"
4Django = "^4.0.1"
5asgiref         3.5.0 ASGI specs, helper code, and adapters
6django          4.0.1 A high-level Python web framework that encourages rapid development and clean, pragmatic design.
7psycopg2-binary 2.9.3 psycopg2 - Python-PostgreSQL Database Adapter
8sqlparse        0.4.2 A non-validating SQL parser.
9  p manage.py startapp users apps/users
10    (base) ┌──(venv)─(tesla㉿kali)-[~/Documents/projects/graphql/graphenee]
11└─$ p                                                                                                                                                                                                                                    1 ⨯
12Python 3.9.7 (default, Sep 16 2021, 13:09:58) 
13[GCC 7.5.0] :: Anaconda, Inc. on linux
14Type "help", "copyright", "credits" or "license" for more information.
15>>> import django
16Traceback (most recent call last):
17  File "<stdin>", line 1, in <module>
18ModuleNotFoundError: No module named 'django'
19>>> 
20    Python 3.9.7 (default, Sep 16 2021, 13:09:58) 
21    [GCC 7.5.0] :: Anaconda, Inc. on linux
22    Type "help", "copyright", "credits" or "license" for more information.
23    >>> import django
24    Traceback (most recent call last):
25      File "<stdin>", line 1, in <module>
26    ModuleNotFoundError: No module named 'django'
27Python 3.9.7 (default, Sep 16 2021, 13:09:58) 
28[GCC 7.5.0] :: Anaconda, Inc. on linux
29Type "help", "copyright", "credits" or "license" for more information.
30>>> import django
31>>> 
32

ANSWER

Answered 2022-Jan-31 at 06:29

It seems that you have manually created a virtual env in the project directory by e.g. python -m venv venv. So now you have one in /home/tesla/Documents/projects/graphql/graphenee/venv/.

After that you added some packages with poetry. However, by default poetry will only look for .venv directory (note the starting dot) in the project directory. Since poetry did not find a .venv, it created a new virtual env in /home/tesla/.cache/pypoetry/virtualenvs/graphenee-CXeG5cZ_-py3.9 and installed the packages you added via poetry add there.

The problem is that you try to use the "empty" virtual env in the project directory instead of the one created by poetry. Fortunately with poetry it is very easy to run command, even without activating the venv, just use poetry run in the project directory.

To check Django installation:

1[tool.poetry.dependencies]
2python = "^3.9"
3psycopg2-binary = "^2.9.3"
4Django = "^4.0.1"
5asgiref         3.5.0 ASGI specs, helper code, and adapters
6django          4.0.1 A high-level Python web framework that encourages rapid development and clean, pragmatic design.
7psycopg2-binary 2.9.3 psycopg2 - Python-PostgreSQL Database Adapter
8sqlparse        0.4.2 A non-validating SQL parser.
9  p manage.py startapp users apps/users
10    (base) ┌──(venv)─(tesla㉿kali)-[~/Documents/projects/graphql/graphenee]
11└─$ p                                                                                                                                                                                                                                    1 ⨯
12Python 3.9.7 (default, Sep 16 2021, 13:09:58) 
13[GCC 7.5.0] :: Anaconda, Inc. on linux
14Type "help", "copyright", "credits" or "license" for more information.
15>>> import django
16Traceback (most recent call last):
17  File "<stdin>", line 1, in <module>
18ModuleNotFoundError: No module named 'django'
19>>> 
20    Python 3.9.7 (default, Sep 16 2021, 13:09:58) 
21    [GCC 7.5.0] :: Anaconda, Inc. on linux
22    Type "help", "copyright", "credits" or "license" for more information.
23    >>> import django
24    Traceback (most recent call last):
25      File "<stdin>", line 1, in <module>
26    ModuleNotFoundError: No module named 'django'
27Python 3.9.7 (default, Sep 16 2021, 13:09:58) 
28[GCC 7.5.0] :: Anaconda, Inc. on linux
29Type "help", "copyright", "credits" or "license" for more information.
30>>> import django
31>>> 
32poetry run python
33# Executes: /home/tesla/.cache/pypoetry/virtualenvs/graphenee-CXeG5cZ_-py3.9/bin/python
34>>> import django
35

To run Django management commands:

1[tool.poetry.dependencies]
2python = "^3.9"
3psycopg2-binary = "^2.9.3"
4Django = "^4.0.1"
5asgiref         3.5.0 ASGI specs, helper code, and adapters
6django          4.0.1 A high-level Python web framework that encourages rapid development and clean, pragmatic design.
7psycopg2-binary 2.9.3 psycopg2 - Python-PostgreSQL Database Adapter
8sqlparse        0.4.2 A non-validating SQL parser.
9  p manage.py startapp users apps/users
10    (base) ┌──(venv)─(tesla㉿kali)-[~/Documents/projects/graphql/graphenee]
11└─$ p                                                                                                                                                                                                                                    1 ⨯
12Python 3.9.7 (default, Sep 16 2021, 13:09:58) 
13[GCC 7.5.0] :: Anaconda, Inc. on linux
14Type "help", "copyright", "credits" or "license" for more information.
15>>> import django
16Traceback (most recent call last):
17  File "<stdin>", line 1, in <module>
18ModuleNotFoundError: No module named 'django'
19>>> 
20    Python 3.9.7 (default, Sep 16 2021, 13:09:58) 
21    [GCC 7.5.0] :: Anaconda, Inc. on linux
22    Type "help", "copyright", "credits" or "license" for more information.
23    >>> import django
24    Traceback (most recent call last):
25      File "<stdin>", line 1, in <module>
26    ModuleNotFoundError: No module named 'django'
27Python 3.9.7 (default, Sep 16 2021, 13:09:58) 
28[GCC 7.5.0] :: Anaconda, Inc. on linux
29Type "help", "copyright", "credits" or "license" for more information.
30>>> import django
31>>> 
32poetry run python
33# Executes: /home/tesla/.cache/pypoetry/virtualenvs/graphenee-CXeG5cZ_-py3.9/bin/python
34>>> import django
35poetry run ./manage.py startapp users apps/users
36

It will use the virtual env in /home/tesla/.cache/pypoetry/virtualenvs/graphenee-CXeG5cZ_-py3.9. You can delete venv in the project directory.

Note: if you rather want to use a virtual env in the project directory, then delete /home/tesla/.cache/pypoetry/virtualenvs/graphenee-CXeG5cZ_-py3.9, then create one in the project directory by

1[tool.poetry.dependencies]
2python = "^3.9"
3psycopg2-binary = "^2.9.3"
4Django = "^4.0.1"
5asgiref         3.5.0 ASGI specs, helper code, and adapters
6django          4.0.1 A high-level Python web framework that encourages rapid development and clean, pragmatic design.
7psycopg2-binary 2.9.3 psycopg2 - Python-PostgreSQL Database Adapter
8sqlparse        0.4.2 A non-validating SQL parser.
9  p manage.py startapp users apps/users
10    (base) ┌──(venv)─(tesla㉿kali)-[~/Documents/projects/graphql/graphenee]
11└─$ p                                                                                                                                                                                                                                    1 ⨯
12Python 3.9.7 (default, Sep 16 2021, 13:09:58) 
13[GCC 7.5.0] :: Anaconda, Inc. on linux
14Type "help", "copyright", "credits" or "license" for more information.
15>>> import django
16Traceback (most recent call last):
17  File "<stdin>", line 1, in <module>
18ModuleNotFoundError: No module named 'django'
19>>> 
20    Python 3.9.7 (default, Sep 16 2021, 13:09:58) 
21    [GCC 7.5.0] :: Anaconda, Inc. on linux
22    Type "help", "copyright", "credits" or "license" for more information.
23    >>> import django
24    Traceback (most recent call last):
25      File "<stdin>", line 1, in <module>
26    ModuleNotFoundError: No module named 'django'
27Python 3.9.7 (default, Sep 16 2021, 13:09:58) 
28[GCC 7.5.0] :: Anaconda, Inc. on linux
29Type "help", "copyright", "credits" or "license" for more information.
30>>> import django
31>>> 
32poetry run python
33# Executes: /home/tesla/.cache/pypoetry/virtualenvs/graphenee-CXeG5cZ_-py3.9/bin/python
34>>> import django
35poetry run ./manage.py startapp users apps/users
36python -m venv .venv`
37

After that install packages with poetry:

1[tool.poetry.dependencies]
2python = "^3.9"
3psycopg2-binary = "^2.9.3"
4Django = "^4.0.1"
5asgiref         3.5.0 ASGI specs, helper code, and adapters
6django          4.0.1 A high-level Python web framework that encourages rapid development and clean, pragmatic design.
7psycopg2-binary 2.9.3 psycopg2 - Python-PostgreSQL Database Adapter
8sqlparse        0.4.2 A non-validating SQL parser.
9  p manage.py startapp users apps/users
10    (base) ┌──(venv)─(tesla㉿kali)-[~/Documents/projects/graphql/graphenee]
11└─$ p                                                                                                                                                                                                                                    1 ⨯
12Python 3.9.7 (default, Sep 16 2021, 13:09:58) 
13[GCC 7.5.0] :: Anaconda, Inc. on linux
14Type "help", "copyright", "credits" or "license" for more information.
15>>> import django
16Traceback (most recent call last):
17  File "<stdin>", line 1, in <module>
18ModuleNotFoundError: No module named 'django'
19>>> 
20    Python 3.9.7 (default, Sep 16 2021, 13:09:58) 
21    [GCC 7.5.0] :: Anaconda, Inc. on linux
22    Type "help", "copyright", "credits" or "license" for more information.
23    >>> import django
24    Traceback (most recent call last):
25      File "<stdin>", line 1, in <module>
26    ModuleNotFoundError: No module named 'django'
27Python 3.9.7 (default, Sep 16 2021, 13:09:58) 
28[GCC 7.5.0] :: Anaconda, Inc. on linux
29Type "help", "copyright", "credits" or "license" for more information.
30>>> import django
31>>> 
32poetry run python
33# Executes: /home/tesla/.cache/pypoetry/virtualenvs/graphenee-CXeG5cZ_-py3.9/bin/python
34>>> import django
35poetry run ./manage.py startapp users apps/users
36python -m venv .venv`
37poetry install
38

Now poetry will use the local virtual env in /home/tesla/Documents/projects/graphql/graphenee/.venv when you run a command via poetry run [cmd].

Source https://stackoverflow.com/questions/70907702

QUESTION

ssl.SSLCertVerificationError: [SSL: CERTIFICATE_VERIFY_FAILED] certificate verify failed: certificate has expired (_ssl.c:997)

Asked 2022-Jan-28 at 10:14

I was playing with some web frameworks for Python, when I tried to use the framework aiohhtp with this code (taken from the documentation):

1import aiohttp
2import asyncio
3
4#********************************
5# a solution I found on the forum:
6# https://stackoverflow.com/questions/50236117/scraping-ssl-certificate-verify-failed-error-for-http-en-wikipedia-org?rq=1
7import ssl
8ssl._create_default_https_context = ssl._create_unverified_context
9# ... but it doesn't work :(
10#********************************
11
12async def main():
13
14    async with aiohttp.ClientSession() as session:
15        async with session.get("https://python.org") as response:
16
17            print("Status:", response.status)
18            print("Content-type:", response.headers["content-type"])
19
20            html = await response.text()
21            print("Body:", html[:15], "...")
22
23loop = asyncio.get_event_loop()
24loop.run_until_complete(main())
25

When I run this code I get this traceback:

1import aiohttp
2import asyncio
3
4#********************************
5# a solution I found on the forum:
6# https://stackoverflow.com/questions/50236117/scraping-ssl-certificate-verify-failed-error-for-http-en-wikipedia-org?rq=1
7import ssl
8ssl._create_default_https_context = ssl._create_unverified_context
9# ... but it doesn't work :(
10#********************************
11
12async def main():
13
14    async with aiohttp.ClientSession() as session:
15        async with session.get("https://python.org") as response:
16
17            print("Status:", response.status)
18            print("Content-type:", response.headers["content-type"])
19
20            html = await response.text()
21            print("Body:", html[:15], "...")
22
23loop = asyncio.get_event_loop()
24loop.run_until_complete(main())
25DeprecationWarning: There is 
26no current event loop
27  loop = asyncio.get_event_loop()
28Traceback (most recent call last):
29  File "c:\Python310\lib\site-packages\aiohttp\connector.py", line 986, in _wrap_create_connection
30    return await self._loop.create_connection(*args, **kwargs)  # type: ignore[return-value]  # noqa
31  File "c:\Python310\lib\asyncio\base_events.py", line 1080, in create_connection
32    transport, protocol = await self._create_connection_transport(
33  File "c:\Python310\lib\asyncio\base_events.py", line 1110, in _create_connection_transport
34    await waiter
35  File "c:\Python310\lib\asyncio\sslproto.py", line 528, in data_received
36    ssldata, appdata = self._sslpipe.feed_ssldata(data)
37  File "c:\Python310\lib\asyncio\sslproto.py", line 188, in feed_ssldata
38    self._sslobj.do_handshake()
39  File "c:\Python310\lib\ssl.py", line 974, in do_handshake
40    self._sslobj.do_handshake()
41ssl.SSLCertVerificationError: [SSL: CERTIFICATE_VERIFY_FAILED] certificate verify failed: certificate has expired (_ssl.c:997)    
42
43The above exception was the direct cause of the following exception:
44
45Traceback (most recent call last):
46  File "c:\Users\chris\Documents\Programmi_in_Python_offline\Esercitazioni\Python_commands\aioWebTest.py", line 21, in <module>   
47    loop.run_until_complete(main())
48  File "c:\Python310\lib\asyncio\base_events.py", line 641, in run_until_complete
49    return future.result()
50  File "c:\Users\chris\Documents\Programmi_in_Python_offline\Esercitazioni\Python_commands\aioWebTest.py", line 12, in main       
51    async with session.get("https://python.org") as response:
52  File "c:\Python310\lib\site-packages\aiohttp\client.py", line 1138, in __aenter__
53    self._resp = await self._coro
54  File "c:\Python310\lib\site-packages\aiohttp\client.py", line 535, in _request
55    conn = await self._connector.connect(
56  File "c:\Python310\lib\site-packages\aiohttp\connector.py", line 542, in connect
57    proto = await self._create_connection(req, traces, timeout)
58  File "c:\Python310\lib\site-packages\aiohttp\connector.py", line 907, in _create_connection
59    _, proto = await self._create_direct_connection(req, traces, timeout)
60  File "c:\Python310\lib\site-packages\aiohttp\connector.py", line 1206, in _create_direct_connection
61    raise last_exc
62  File "c:\Python310\lib\site-packages\aiohttp\connector.py", line 1175, in _create_direct_connection
63    transp, proto = await self._wrap_create_connection(
64  File "c:\Python310\lib\site-packages\aiohttp\connector.py", line 988, in _wrap_create_connection
65    raise ClientConnectorCertificateError(req.connection_key, exc) from exc
66aiohttp.client_exceptions.ClientConnectorCertificateError: Cannot connect to host python.org:443 ssl:True [SSLCertVerificationError: (1, '[SSL: CERTIFICATE_VERIFY_FAILED] certificate verify failed: certificate has expired (_ssl.c:997)')]
67

From the final row I have thought that it was a problem with a certificate that is expired, so I searched on the internet and I tried to solve installing some certificates:

I'm sorry for the long question, but I searched a lot on the internet and I couldn't find the solution for my case. Thank you in advance, guys <3

ANSWER

Answered 2022-Jan-28 at 10:14

Picking up on the comment by @salparadise, the following worked for me:

1import aiohttp
2import asyncio
3
4#********************************
5# a solution I found on the forum:
6# https://stackoverflow.com/questions/50236117/scraping-ssl-certificate-verify-failed-error-for-http-en-wikipedia-org?rq=1
7import ssl
8ssl._create_default_https_context = ssl._create_unverified_context
9# ... but it doesn't work :(
10#********************************
11
12async def main():
13
14    async with aiohttp.ClientSession() as session:
15        async with session.get(&quot;https://python.org&quot;) as response:
16
17            print(&quot;Status:&quot;, response.status)
18            print(&quot;Content-type:&quot;, response.headers[&quot;content-type&quot;])
19
20            html = await response.text()
21            print(&quot;Body:&quot;, html[:15], &quot;...&quot;)
22
23loop = asyncio.get_event_loop()
24loop.run_until_complete(main())
25DeprecationWarning: There is 
26no current event loop
27  loop = asyncio.get_event_loop()
28Traceback (most recent call last):
29  File &quot;c:\Python310\lib\site-packages\aiohttp\connector.py&quot;, line 986, in _wrap_create_connection
30    return await self._loop.create_connection(*args, **kwargs)  # type: ignore[return-value]  # noqa
31  File &quot;c:\Python310\lib\asyncio\base_events.py&quot;, line 1080, in create_connection
32    transport, protocol = await self._create_connection_transport(
33  File &quot;c:\Python310\lib\asyncio\base_events.py&quot;, line 1110, in _create_connection_transport
34    await waiter
35  File &quot;c:\Python310\lib\asyncio\sslproto.py&quot;, line 528, in data_received
36    ssldata, appdata = self._sslpipe.feed_ssldata(data)
37  File &quot;c:\Python310\lib\asyncio\sslproto.py&quot;, line 188, in feed_ssldata
38    self._sslobj.do_handshake()
39  File &quot;c:\Python310\lib\ssl.py&quot;, line 974, in do_handshake
40    self._sslobj.do_handshake()
41ssl.SSLCertVerificationError: [SSL: CERTIFICATE_VERIFY_FAILED] certificate verify failed: certificate has expired (_ssl.c:997)    
42
43The above exception was the direct cause of the following exception:
44
45Traceback (most recent call last):
46  File &quot;c:\Users\chris\Documents\Programmi_in_Python_offline\Esercitazioni\Python_commands\aioWebTest.py&quot;, line 21, in &lt;module&gt;   
47    loop.run_until_complete(main())
48  File &quot;c:\Python310\lib\asyncio\base_events.py&quot;, line 641, in run_until_complete
49    return future.result()
50  File &quot;c:\Users\chris\Documents\Programmi_in_Python_offline\Esercitazioni\Python_commands\aioWebTest.py&quot;, line 12, in main       
51    async with session.get(&quot;https://python.org&quot;) as response:
52  File &quot;c:\Python310\lib\site-packages\aiohttp\client.py&quot;, line 1138, in __aenter__
53    self._resp = await self._coro
54  File &quot;c:\Python310\lib\site-packages\aiohttp\client.py&quot;, line 535, in _request
55    conn = await self._connector.connect(
56  File &quot;c:\Python310\lib\site-packages\aiohttp\connector.py&quot;, line 542, in connect
57    proto = await self._create_connection(req, traces, timeout)
58  File &quot;c:\Python310\lib\site-packages\aiohttp\connector.py&quot;, line 907, in _create_connection
59    _, proto = await self._create_direct_connection(req, traces, timeout)
60  File &quot;c:\Python310\lib\site-packages\aiohttp\connector.py&quot;, line 1206, in _create_direct_connection
61    raise last_exc
62  File &quot;c:\Python310\lib\site-packages\aiohttp\connector.py&quot;, line 1175, in _create_direct_connection
63    transp, proto = await self._wrap_create_connection(
64  File &quot;c:\Python310\lib\site-packages\aiohttp\connector.py&quot;, line 988, in _wrap_create_connection
65    raise ClientConnectorCertificateError(req.connection_key, exc) from exc
66aiohttp.client_exceptions.ClientConnectorCertificateError: Cannot connect to host python.org:443 ssl:True [SSLCertVerificationError: (1, '[SSL: CERTIFICATE_VERIFY_FAILED] certificate verify failed: certificate has expired (_ssl.c:997)')]
67session.get(&quot;https://python.org&quot;, ssl=False)
68

Source https://stackoverflow.com/questions/70236730

QUESTION

Newbe on Go - AppEngine - Deploy

Asked 2022-Jan-03 at 22:32

I'm new using App Engine, and I would appreciate if someone can clarify this doubt:

How can I be sure that AppEngine in the cloud have the correct version of go I need to have in the cloud?

I have read some articles about installing and downloading the SDK for google on my local machine (and of course, I am able to install the version I need on my machine); but once I have generated my app in Go and I want to deploy it to App Engine in the cloud, how can I be sure Google infrastructure has the correct version?

I want to install Iris Web framework as part of the stack but it requires to go vers 1.14 or superior, Google App Engine standard only provides support for Google 1.11 and 1.12+ so I think I would need to go for the Google App Engine Flexible option, if that were the case, how can I be sure it has or support the Go version I need?... Or Is there some procedure to follow to install it ?

Thanks in advance for your support

ANSWER

Answered 2022-Jan-03 at 21:27

With the Flexible environment you have the ability to pin a version rather than using the latest available/supported. In order to do that, you will have to specify in your app.yaml file the exact version you would like it to be:

1runtime: go1.14
2

If you specify only runtime: go it will pull the latest release available for Go language (which seems to be 1.19).

For more information, please refer to this documentation: https://cloud.google.com/appengine/docs/flexible/go/reference/app-yaml#general

Source https://stackoverflow.com/questions/70571576

QUESTION

Remix: middleware pattern to run code before loader on every request?

Asked 2021-Dec-27 at 15:20

Is there a recommended pattern in Remix for running common code on every request, and potentially adding context data to the request? Like a middleware? A usecase for this might be to do logging or auth, for example.

The one thing I've seen that seems similar to this is loader context via the getLoadContext API. This lets you populate a context object which is passed as an arg to all route loaders.

It does work, and initially seems like the way to do this, but the docs for it say...

It's a way to bridge the gap between the adapter's request/response API with your Remix app

This API is an escape hatch, it’s uncommon to need it

...which makes me think otherwise, because

  • This API is explicitly for custom integrations with the server runtime. But it doesn't seem like middlewares should be specific to the server runtime - they should just be part of the 'application' level as a Remix feature.

  • Running middlewares is a pretty common pattern in web frameworks!

So, does Remix have any better pattern for middleware that runs before every loader?

ANSWER

Answered 2021-Dec-01 at 15:43

There is no way inside Remix to run code before loaders.

As you found out, there is the loader context but it runs even before remix starts to do its job (so you won't know which route modules are matched for example).

You can also run arbitrary code before handing the request to remix in the JS file where you use the adapter for the platform you're deploying to (this depend on the starter you used. This file doesn't exist if you've chosen remix server as your server)

For now it should work for some use cases, but I agree this is a missing feature in remix for now.

Source https://stackoverflow.com/questions/70160537

QUESTION

Quart framework WARNING:asyncio:Executing

Asked 2021-Dec-23 at 16:24

We are using Quart (Flask+asyncio) Python web framework. Every time the request is processed and the response is sent to a client, this (or similar) message is logged:

WARNING:asyncio:Executing <Task pending name='Task-11' coro=<ASGIHTTPConnection.handle_request() running at /usr/local/lib/python3.8/site-packages/quart/asgi.py:102> wait_for=<Future pending cb=[<TaskWakeupMethWrapper object at 0x7f742ba41ee0>()] created at /usr/local/lib/python3.8/asyncio/base_events.py:422> cb=[_wait.._on_completion() at /usr/local/lib/python3.8/asyncio/tasks.py:518] created at /usr/local/lib/python3.8/site-packages/quart/asgi.py:46> took 2.700 seconds

Since it is WARNING, we are kind of worried about what this could be. Does anyone have any idea why a log like this appears?

Also, I have seen more logs starting <Task pending name... before. Does anyone know what these logs are?


To replicate a similar log message, it is enough just to do this:

1import time
2
3from quart import Quart
4
5
6app = Quart(__name__)
7
8
9@app.route('/', methods=['POST'])
10async def endpoint():
11    time.sleep(0.5)
12    return '', 200
13

If I set sleep() to a lower value (e.g. 0.05), the log message is not printed out.

ANSWER

Answered 2021-Dec-23 at 16:24

asyncio and other event loops require the tasks to yield control back to the event loop periodically so that it can switch to another task and execute tasks concurrently. This warning is indicating that a task is taking a long time between yields, thereby 'blocking' the event loop.

It is likely this is happening as your code is either doing something CPU intensive, or more likely is using non-asyncio IO e.g. using requests. You should investigate this as it will degrade your servers ability to serve multiple requests concurrently.

Source https://stackoverflow.com/questions/70455957

QUESTION

dial tcp 127.0.0.1:8080: connect: connection refused. go docker app

Asked 2021-Dec-22 at 10:09

I have two apps in go language. user_management app, which I run (docker-compose up --build) first, then I run(docker-compose up --build) sport_app. sport_app is dependent from user_management app.

sport_app Dockerfile file as below.

1FROM golang:alpine
2
3RUN apk update &amp;&amp; apk upgrade &amp;&amp; apk add --no-cache bash git openssh curl
4
5WORKDIR /go-sports-entities-hierarchy
6
7COPY . /go-sports-entities-hierarchy/
8RUN rm -rf /go-sports-entities-hierarchy/.env
9RUN go mod download
10RUN chmod +x /go-sports-entities-hierarchy/scripts/*
11RUN ./scripts/build.sh
12
13ADD https://github.com/ufoscout/docker-compose-wait/releases/download/2.2.1/wait /wait
14RUN chmod +x /wait
15
16ENV GIN_MODE=&quot;debug&quot; \
17    GQL_SERVER_HOST=&quot;localhost&quot; \
18    GQL_SERVER_PORT=7777 \
19    ALLOWED_ORIGINS=* \
20    USER_MANAGEMENT_SERVER_URL=&quot;http://localhost:8080/user/me&quot; \
21    # GQLGen config
22    GQL_SERVER_GRAPHQL_PATH=&quot;graphql&quot; \
23    GQL_SERVER_GRAPHQL_PLAYGROUND_ENABLED=true \
24    GQL_SERVER_GRAPHQL_PLAYGROUND_PATH=&quot;playground&quot; \
25# Export necessary port
26EXPOSE 7777
27
28CMD /wait &amp;&amp; ./scripts/run.sh
29
30

sport_app docker-compose.yml file as below.

1FROM golang:alpine
2
3RUN apk update &amp;&amp; apk upgrade &amp;&amp; apk add --no-cache bash git openssh curl
4
5WORKDIR /go-sports-entities-hierarchy
6
7COPY . /go-sports-entities-hierarchy/
8RUN rm -rf /go-sports-entities-hierarchy/.env
9RUN go mod download
10RUN chmod +x /go-sports-entities-hierarchy/scripts/*
11RUN ./scripts/build.sh
12
13ADD https://github.com/ufoscout/docker-compose-wait/releases/download/2.2.1/wait /wait
14RUN chmod +x /wait
15
16ENV GIN_MODE=&quot;debug&quot; \
17    GQL_SERVER_HOST=&quot;localhost&quot; \
18    GQL_SERVER_PORT=7777 \
19    ALLOWED_ORIGINS=* \
20    USER_MANAGEMENT_SERVER_URL=&quot;http://localhost:8080/user/me&quot; \
21    # GQLGen config
22    GQL_SERVER_GRAPHQL_PATH=&quot;graphql&quot; \
23    GQL_SERVER_GRAPHQL_PLAYGROUND_ENABLED=true \
24    GQL_SERVER_GRAPHQL_PLAYGROUND_PATH=&quot;playground&quot; \
25# Export necessary port
26EXPOSE 7777
27
28CMD /wait &amp;&amp; ./scripts/run.sh
29
30version: '3'
31
32volumes:
33  postgres_data:
34      driver: local
35services:
36  go-sports-entities-hierarchy:
37      restart: always
38      build:
39        dockerfile: Dockerfile
40        context: .
41      environment:
42        WAIT_HOSTS: postgres:5432
43        # Web framework config
44        GIN_MODE: debug
45        GQL_SERVER_HOST: go-sports-entities-hierarchy
46        GQL_SERVER_PORT: 7777
47        ALLOWED_ORIGINS: &quot;*&quot;
48        USER_MANAGEMENT_SERVER_URL: http://localhost:8080/user/me
49        # GQLGen config
50        GQL_SERVER_GRAPHQL_PATH: graphql
51        GQL_SERVER_GRAPHQL_PLAYGROUND_ENABLED: &quot;true&quot;
52        GQL_SERVER_GRAPHQL_PLAYGROUND_PATH: playground
53      ports:
54        - 7777:7777
55      depends_on:
56        - postgres
57        - redisearch
58  go-sports-events-workflow:
59      restart: always
60      build:
61        dockerfile: Dockerfile
62        context: .
63      environment:
64        WAIT_HOSTS: postgres:5432
65        # Web framework config
66        GIN_MODE: debug
67        GQL_SERVER_HOST: go-sports-events-workflow
68        GQL_SERVER_PORT: 7778
69        ALLOWED_ORIGINS: &quot;*&quot;
70        # GQLGen config
71        GQL_SERVER_GRAPHQL_PATH: graphql
72        GQL_SERVER_GRAPHQL_PLAYGROUND_ENABLED: &quot;true&quot;
73        GQL_SERVER_GRAPHQL_PLAYGROUND_PATH: playground
74      depends_on:
75        - postgres
76        - redisearch
77        - go-sports-entities-hierarchy
78
79

user_management app Dockerfile as below:

1FROM golang:alpine
2
3RUN apk update &amp;&amp; apk upgrade &amp;&amp; apk add --no-cache bash git openssh curl
4
5WORKDIR /go-sports-entities-hierarchy
6
7COPY . /go-sports-entities-hierarchy/
8RUN rm -rf /go-sports-entities-hierarchy/.env
9RUN go mod download
10RUN chmod +x /go-sports-entities-hierarchy/scripts/*
11RUN ./scripts/build.sh
12
13ADD https://github.com/ufoscout/docker-compose-wait/releases/download/2.2.1/wait /wait
14RUN chmod +x /wait
15
16ENV GIN_MODE=&quot;debug&quot; \
17    GQL_SERVER_HOST=&quot;localhost&quot; \
18    GQL_SERVER_PORT=7777 \
19    ALLOWED_ORIGINS=* \
20    USER_MANAGEMENT_SERVER_URL=&quot;http://localhost:8080/user/me&quot; \
21    # GQLGen config
22    GQL_SERVER_GRAPHQL_PATH=&quot;graphql&quot; \
23    GQL_SERVER_GRAPHQL_PLAYGROUND_ENABLED=true \
24    GQL_SERVER_GRAPHQL_PLAYGROUND_PATH=&quot;playground&quot; \
25# Export necessary port
26EXPOSE 7777
27
28CMD /wait &amp;&amp; ./scripts/run.sh
29
30version: '3'
31
32volumes:
33  postgres_data:
34      driver: local
35services:
36  go-sports-entities-hierarchy:
37      restart: always
38      build:
39        dockerfile: Dockerfile
40        context: .
41      environment:
42        WAIT_HOSTS: postgres:5432
43        # Web framework config
44        GIN_MODE: debug
45        GQL_SERVER_HOST: go-sports-entities-hierarchy
46        GQL_SERVER_PORT: 7777
47        ALLOWED_ORIGINS: &quot;*&quot;
48        USER_MANAGEMENT_SERVER_URL: http://localhost:8080/user/me
49        # GQLGen config
50        GQL_SERVER_GRAPHQL_PATH: graphql
51        GQL_SERVER_GRAPHQL_PLAYGROUND_ENABLED: &quot;true&quot;
52        GQL_SERVER_GRAPHQL_PLAYGROUND_PATH: playground
53      ports:
54        - 7777:7777
55      depends_on:
56        - postgres
57        - redisearch
58  go-sports-events-workflow:
59      restart: always
60      build:
61        dockerfile: Dockerfile
62        context: .
63      environment:
64        WAIT_HOSTS: postgres:5432
65        # Web framework config
66        GIN_MODE: debug
67        GQL_SERVER_HOST: go-sports-events-workflow
68        GQL_SERVER_PORT: 7778
69        ALLOWED_ORIGINS: &quot;*&quot;
70        # GQLGen config
71        GQL_SERVER_GRAPHQL_PATH: graphql
72        GQL_SERVER_GRAPHQL_PLAYGROUND_ENABLED: &quot;true&quot;
73        GQL_SERVER_GRAPHQL_PLAYGROUND_PATH: playground
74      depends_on:
75        - postgres
76        - redisearch
77        - go-sports-entities-hierarchy
78
79FROM golang:alpine
80
81RUN apk update &amp;&amp; apk add --no-cache git ca-certificates &amp;&amp; update-ca-certificates
82
83# Set necessary environmet variables needed for our image
84ENV GO111MODULE=on \
85    CGO_ENABLED=0 \
86    GOOS=linux \
87    GOARCH=amd64
88
89# Move to working directory /build
90WORKDIR /build
91
92# Copy and download dependency using go mod
93COPY go.mod .
94COPY go.sum .
95RUN go mod download
96
97# Copy the code into the container
98COPY . .
99
100# Build the application
101RUN go build -o main .
102
103# Move to /dist directory as the place for resulting binary folder
104WORKDIR /dist
105
106# Copy binary from build to main folder
107RUN cp -r /build/html .
108RUN cp /build/main .
109
110# Environment Variables
111ENV DB_HOST=&quot;127.0.0.1&quot; \
112    APP_PROTOCOL=&quot;http&quot; \
113    APP_HOST=&quot;localhost&quot; \
114    APP_PORT=8080 \
115    ALLOWED_ORIGINS=&quot;*&quot;
116
117# Export necessary port
118EXPOSE 8080
119
120ADD https://github.com/ufoscout/docker-compose-wait/releases/download/2.2.1/wait /wait
121RUN chmod +x /wait
122
123# Command to run when starting the container
124CMD /wait &amp;&amp; /dist/main
125

user_management app docker-compose.yml file as below:

1FROM golang:alpine
2
3RUN apk update &amp;&amp; apk upgrade &amp;&amp; apk add --no-cache bash git openssh curl
4
5WORKDIR /go-sports-entities-hierarchy
6
7COPY . /go-sports-entities-hierarchy/
8RUN rm -rf /go-sports-entities-hierarchy/.env
9RUN go mod download
10RUN chmod +x /go-sports-entities-hierarchy/scripts/*
11RUN ./scripts/build.sh
12
13ADD https://github.com/ufoscout/docker-compose-wait/releases/download/2.2.1/wait /wait
14RUN chmod +x /wait
15
16ENV GIN_MODE=&quot;debug&quot; \
17    GQL_SERVER_HOST=&quot;localhost&quot; \
18    GQL_SERVER_PORT=7777 \
19    ALLOWED_ORIGINS=* \
20    USER_MANAGEMENT_SERVER_URL=&quot;http://localhost:8080/user/me&quot; \
21    # GQLGen config
22    GQL_SERVER_GRAPHQL_PATH=&quot;graphql&quot; \
23    GQL_SERVER_GRAPHQL_PLAYGROUND_ENABLED=true \
24    GQL_SERVER_GRAPHQL_PLAYGROUND_PATH=&quot;playground&quot; \
25# Export necessary port
26EXPOSE 7777
27
28CMD /wait &amp;&amp; ./scripts/run.sh
29
30version: '3'
31
32volumes:
33  postgres_data:
34      driver: local
35services:
36  go-sports-entities-hierarchy:
37      restart: always
38      build:
39        dockerfile: Dockerfile
40        context: .
41      environment:
42        WAIT_HOSTS: postgres:5432
43        # Web framework config
44        GIN_MODE: debug
45        GQL_SERVER_HOST: go-sports-entities-hierarchy
46        GQL_SERVER_PORT: 7777
47        ALLOWED_ORIGINS: &quot;*&quot;
48        USER_MANAGEMENT_SERVER_URL: http://localhost:8080/user/me
49        # GQLGen config
50        GQL_SERVER_GRAPHQL_PATH: graphql
51        GQL_SERVER_GRAPHQL_PLAYGROUND_ENABLED: &quot;true&quot;
52        GQL_SERVER_GRAPHQL_PLAYGROUND_PATH: playground
53      ports:
54        - 7777:7777
55      depends_on:
56        - postgres
57        - redisearch
58  go-sports-events-workflow:
59      restart: always
60      build:
61        dockerfile: Dockerfile
62        context: .
63      environment:
64        WAIT_HOSTS: postgres:5432
65        # Web framework config
66        GIN_MODE: debug
67        GQL_SERVER_HOST: go-sports-events-workflow
68        GQL_SERVER_PORT: 7778
69        ALLOWED_ORIGINS: &quot;*&quot;
70        # GQLGen config
71        GQL_SERVER_GRAPHQL_PATH: graphql
72        GQL_SERVER_GRAPHQL_PLAYGROUND_ENABLED: &quot;true&quot;
73        GQL_SERVER_GRAPHQL_PLAYGROUND_PATH: playground
74      depends_on:
75        - postgres
76        - redisearch
77        - go-sports-entities-hierarchy
78
79FROM golang:alpine
80
81RUN apk update &amp;&amp; apk add --no-cache git ca-certificates &amp;&amp; update-ca-certificates
82
83# Set necessary environmet variables needed for our image
84ENV GO111MODULE=on \
85    CGO_ENABLED=0 \
86    GOOS=linux \
87    GOARCH=amd64
88
89# Move to working directory /build
90WORKDIR /build
91
92# Copy and download dependency using go mod
93COPY go.mod .
94COPY go.sum .
95RUN go mod download
96
97# Copy the code into the container
98COPY . .
99
100# Build the application
101RUN go build -o main .
102
103# Move to /dist directory as the place for resulting binary folder
104WORKDIR /dist
105
106# Copy binary from build to main folder
107RUN cp -r /build/html .
108RUN cp /build/main .
109
110# Environment Variables
111ENV DB_HOST=&quot;127.0.0.1&quot; \
112    APP_PROTOCOL=&quot;http&quot; \
113    APP_HOST=&quot;localhost&quot; \
114    APP_PORT=8080 \
115    ALLOWED_ORIGINS=&quot;*&quot;
116
117# Export necessary port
118EXPOSE 8080
119
120ADD https://github.com/ufoscout/docker-compose-wait/releases/download/2.2.1/wait /wait
121RUN chmod +x /wait
122
123# Command to run when starting the container
124CMD /wait &amp;&amp; /dist/main
125version: '3'
126
127volumes:
128  postgres_data:
129      driver: local
130
131services:
132  postgres:
133      image: postgres
134      volumes:
135        - postgres_data:/var/lib/postgresql/data
136      ports:
137        - 5432:5432
138  go-user-management:
139      restart: always
140      build:
141        dockerfile: Dockerfile
142        context: .
143      environment:
144        # Postgres Details
145        DB_PORT: 5432
146        # APP details
147        APP_PROTOCOL: http
148        APP_HOST: localhost
149        APP_PORT: 8080
150        # System Configuration Details
151        ALLOWED_ORIGINS: &quot;*&quot;
152      ports:
153        - 8080:8080
154      depends_on:
155        - postgres
156

In sport_app I write below code and get error:

1FROM golang:alpine
2
3RUN apk update &amp;&amp; apk upgrade &amp;&amp; apk add --no-cache bash git openssh curl
4
5WORKDIR /go-sports-entities-hierarchy
6
7COPY . /go-sports-entities-hierarchy/
8RUN rm -rf /go-sports-entities-hierarchy/.env
9RUN go mod download
10RUN chmod +x /go-sports-entities-hierarchy/scripts/*
11RUN ./scripts/build.sh
12
13ADD https://github.com/ufoscout/docker-compose-wait/releases/download/2.2.1/wait /wait
14RUN chmod +x /wait
15
16ENV GIN_MODE=&quot;debug&quot; \
17    GQL_SERVER_HOST=&quot;localhost&quot; \
18    GQL_SERVER_PORT=7777 \
19    ALLOWED_ORIGINS=* \
20    USER_MANAGEMENT_SERVER_URL=&quot;http://localhost:8080/user/me&quot; \
21    # GQLGen config
22    GQL_SERVER_GRAPHQL_PATH=&quot;graphql&quot; \
23    GQL_SERVER_GRAPHQL_PLAYGROUND_ENABLED=true \
24    GQL_SERVER_GRAPHQL_PLAYGROUND_PATH=&quot;playground&quot; \
25# Export necessary port
26EXPOSE 7777
27
28CMD /wait &amp;&amp; ./scripts/run.sh
29
30version: '3'
31
32volumes:
33  postgres_data:
34      driver: local
35services:
36  go-sports-entities-hierarchy:
37      restart: always
38      build:
39        dockerfile: Dockerfile
40        context: .
41      environment:
42        WAIT_HOSTS: postgres:5432
43        # Web framework config
44        GIN_MODE: debug
45        GQL_SERVER_HOST: go-sports-entities-hierarchy
46        GQL_SERVER_PORT: 7777
47        ALLOWED_ORIGINS: &quot;*&quot;
48        USER_MANAGEMENT_SERVER_URL: http://localhost:8080/user/me
49        # GQLGen config
50        GQL_SERVER_GRAPHQL_PATH: graphql
51        GQL_SERVER_GRAPHQL_PLAYGROUND_ENABLED: &quot;true&quot;
52        GQL_SERVER_GRAPHQL_PLAYGROUND_PATH: playground
53      ports:
54        - 7777:7777
55      depends_on:
56        - postgres
57        - redisearch
58  go-sports-events-workflow:
59      restart: always
60      build:
61        dockerfile: Dockerfile
62        context: .
63      environment:
64        WAIT_HOSTS: postgres:5432
65        # Web framework config
66        GIN_MODE: debug
67        GQL_SERVER_HOST: go-sports-events-workflow
68        GQL_SERVER_PORT: 7778
69        ALLOWED_ORIGINS: &quot;*&quot;
70        # GQLGen config
71        GQL_SERVER_GRAPHQL_PATH: graphql
72        GQL_SERVER_GRAPHQL_PLAYGROUND_ENABLED: &quot;true&quot;
73        GQL_SERVER_GRAPHQL_PLAYGROUND_PATH: playground
74      depends_on:
75        - postgres
76        - redisearch
77        - go-sports-entities-hierarchy
78
79FROM golang:alpine
80
81RUN apk update &amp;&amp; apk add --no-cache git ca-certificates &amp;&amp; update-ca-certificates
82
83# Set necessary environmet variables needed for our image
84ENV GO111MODULE=on \
85    CGO_ENABLED=0 \
86    GOOS=linux \
87    GOARCH=amd64
88
89# Move to working directory /build
90WORKDIR /build
91
92# Copy and download dependency using go mod
93COPY go.mod .
94COPY go.sum .
95RUN go mod download
96
97# Copy the code into the container
98COPY . .
99
100# Build the application
101RUN go build -o main .
102
103# Move to /dist directory as the place for resulting binary folder
104WORKDIR /dist
105
106# Copy binary from build to main folder
107RUN cp -r /build/html .
108RUN cp /build/main .
109
110# Environment Variables
111ENV DB_HOST=&quot;127.0.0.1&quot; \
112    APP_PROTOCOL=&quot;http&quot; \
113    APP_HOST=&quot;localhost&quot; \
114    APP_PORT=8080 \
115    ALLOWED_ORIGINS=&quot;*&quot;
116
117# Export necessary port
118EXPOSE 8080
119
120ADD https://github.com/ufoscout/docker-compose-wait/releases/download/2.2.1/wait /wait
121RUN chmod +x /wait
122
123# Command to run when starting the container
124CMD /wait &amp;&amp; /dist/main
125version: '3'
126
127volumes:
128  postgres_data:
129      driver: local
130
131services:
132  postgres:
133      image: postgres
134      volumes:
135        - postgres_data:/var/lib/postgresql/data
136      ports:
137        - 5432:5432
138  go-user-management:
139      restart: always
140      build:
141        dockerfile: Dockerfile
142        context: .
143      environment:
144        # Postgres Details
145        DB_PORT: 5432
146        # APP details
147        APP_PROTOCOL: http
148        APP_HOST: localhost
149        APP_PORT: 8080
150        # System Configuration Details
151        ALLOWED_ORIGINS: &quot;*&quot;
152      ports:
153        - 8080:8080
154      depends_on:
155        - postgres
156client := resty.New()
157resp, err := client.R().SetHeader(&quot;Content-Type&quot;, &quot;application/json&quot;).SetHeader(&quot;Authorization&quot;, &quot;Bearer &quot;+token).Get(&quot;http://localhost:8080/user/me&quot;)
158

Error is: Get "http://localhost:8080/user/me": dial tcp 127.0.0.1:8080: connect: connection refused:" This API(http://localhost:8080/user/me) is written in the user_management app and this is working, I check with the postman. I already read this question answers, but can not solve my problem. I am new to docker, please help.

ANSWER

Answered 2021-Dec-22 at 10:09

For communicating between multiple docker-compose clients, you need to make sure that the containers you want to talk to each other are on the same network.

For example, (edited for brevity) here you have one of the docker-compose.yml

1FROM golang:alpine
2
3RUN apk update &amp;&amp; apk upgrade &amp;&amp; apk add --no-cache bash git openssh curl
4
5WORKDIR /go-sports-entities-hierarchy
6
7COPY . /go-sports-entities-hierarchy/
8RUN rm -rf /go-sports-entities-hierarchy/.env
9RUN go mod download
10RUN chmod +x /go-sports-entities-hierarchy/scripts/*
11RUN ./scripts/build.sh
12
13ADD https://github.com/ufoscout/docker-compose-wait/releases/download/2.2.1/wait /wait
14RUN chmod +x /wait
15
16ENV GIN_MODE=&quot;debug&quot; \
17    GQL_SERVER_HOST=&quot;localhost&quot; \
18    GQL_SERVER_PORT=7777 \
19    ALLOWED_ORIGINS=* \
20    USER_MANAGEMENT_SERVER_URL=&quot;http://localhost:8080/user/me&quot; \
21    # GQLGen config
22    GQL_SERVER_GRAPHQL_PATH=&quot;graphql&quot; \
23    GQL_SERVER_GRAPHQL_PLAYGROUND_ENABLED=true \
24    GQL_SERVER_GRAPHQL_PLAYGROUND_PATH=&quot;playground&quot; \
25# Export necessary port
26EXPOSE 7777
27
28CMD /wait &amp;&amp; ./scripts/run.sh
29
30version: '3'
31
32volumes:
33  postgres_data:
34      driver: local
35services:
36  go-sports-entities-hierarchy:
37      restart: always
38      build:
39        dockerfile: Dockerfile
40        context: .
41      environment:
42        WAIT_HOSTS: postgres:5432
43        # Web framework config
44        GIN_MODE: debug
45        GQL_SERVER_HOST: go-sports-entities-hierarchy
46        GQL_SERVER_PORT: 7777
47        ALLOWED_ORIGINS: &quot;*&quot;
48        USER_MANAGEMENT_SERVER_URL: http://localhost:8080/user/me
49        # GQLGen config
50        GQL_SERVER_GRAPHQL_PATH: graphql
51        GQL_SERVER_GRAPHQL_PLAYGROUND_ENABLED: &quot;true&quot;
52        GQL_SERVER_GRAPHQL_PLAYGROUND_PATH: playground
53      ports:
54        - 7777:7777
55      depends_on:
56        - postgres
57        - redisearch
58  go-sports-events-workflow:
59      restart: always
60      build:
61        dockerfile: Dockerfile
62        context: .
63      environment:
64        WAIT_HOSTS: postgres:5432
65        # Web framework config
66        GIN_MODE: debug
67        GQL_SERVER_HOST: go-sports-events-workflow
68        GQL_SERVER_PORT: 7778
69        ALLOWED_ORIGINS: &quot;*&quot;
70        # GQLGen config
71        GQL_SERVER_GRAPHQL_PATH: graphql
72        GQL_SERVER_GRAPHQL_PLAYGROUND_ENABLED: &quot;true&quot;
73        GQL_SERVER_GRAPHQL_PLAYGROUND_PATH: playground
74      depends_on:
75        - postgres
76        - redisearch
77        - go-sports-entities-hierarchy
78
79FROM golang:alpine
80
81RUN apk update &amp;&amp; apk add --no-cache git ca-certificates &amp;&amp; update-ca-certificates
82
83# Set necessary environmet variables needed for our image
84ENV GO111MODULE=on \
85    CGO_ENABLED=0 \
86    GOOS=linux \
87    GOARCH=amd64
88
89# Move to working directory /build
90WORKDIR /build
91
92# Copy and download dependency using go mod
93COPY go.mod .
94COPY go.sum .
95RUN go mod download
96
97# Copy the code into the container
98COPY . .
99
100# Build the application
101RUN go build -o main .
102
103# Move to /dist directory as the place for resulting binary folder
104WORKDIR /dist
105
106# Copy binary from build to main folder
107RUN cp -r /build/html .
108RUN cp /build/main .
109
110# Environment Variables
111ENV DB_HOST=&quot;127.0.0.1&quot; \
112    APP_PROTOCOL=&quot;http&quot; \
113    APP_HOST=&quot;localhost&quot; \
114    APP_PORT=8080 \
115    ALLOWED_ORIGINS=&quot;*&quot;
116
117# Export necessary port
118EXPOSE 8080
119
120ADD https://github.com/ufoscout/docker-compose-wait/releases/download/2.2.1/wait /wait
121RUN chmod +x /wait
122
123# Command to run when starting the container
124CMD /wait &amp;&amp; /dist/main
125version: '3'
126
127volumes:
128  postgres_data:
129      driver: local
130
131services:
132  postgres:
133      image: postgres
134      volumes:
135        - postgres_data:/var/lib/postgresql/data
136      ports:
137        - 5432:5432
138  go-user-management:
139      restart: always
140      build:
141        dockerfile: Dockerfile
142        context: .
143      environment:
144        # Postgres Details
145        DB_PORT: 5432
146        # APP details
147        APP_PROTOCOL: http
148        APP_HOST: localhost
149        APP_PORT: 8080
150        # System Configuration Details
151        ALLOWED_ORIGINS: &quot;*&quot;
152      ports:
153        - 8080:8080
154      depends_on:
155        - postgres
156client := resty.New()
157resp, err := client.R().SetHeader(&quot;Content-Type&quot;, &quot;application/json&quot;).SetHeader(&quot;Authorization&quot;, &quot;Bearer &quot;+token).Get(&quot;http://localhost:8080/user/me&quot;)
158# sport_app docker-compose.yml
159version: '3'
160services:
161  go-sports-entities-hierarchy:
162    ...
163    networks:
164      - some-net
165  go-sports-events-workflow
166    ...
167    networks:
168      - some-net
169networks:
170  some-net:
171    driver: bridge
172

And the other docker-compose.yml

1FROM golang:alpine
2
3RUN apk update &amp;&amp; apk upgrade &amp;&amp; apk add --no-cache bash git openssh curl
4
5WORKDIR /go-sports-entities-hierarchy
6
7COPY . /go-sports-entities-hierarchy/
8RUN rm -rf /go-sports-entities-hierarchy/.env
9RUN go mod download
10RUN chmod +x /go-sports-entities-hierarchy/scripts/*
11RUN ./scripts/build.sh
12
13ADD https://github.com/ufoscout/docker-compose-wait/releases/download/2.2.1/wait /wait
14RUN chmod +x /wait
15
16ENV GIN_MODE=&quot;debug&quot; \
17    GQL_SERVER_HOST=&quot;localhost&quot; \
18    GQL_SERVER_PORT=7777 \
19    ALLOWED_ORIGINS=* \
20    USER_MANAGEMENT_SERVER_URL=&quot;http://localhost:8080/user/me&quot; \
21    # GQLGen config
22    GQL_SERVER_GRAPHQL_PATH=&quot;graphql&quot; \
23    GQL_SERVER_GRAPHQL_PLAYGROUND_ENABLED=true \
24    GQL_SERVER_GRAPHQL_PLAYGROUND_PATH=&quot;playground&quot; \
25# Export necessary port
26EXPOSE 7777
27
28CMD /wait &amp;&amp; ./scripts/run.sh
29
30version: '3'
31
32volumes:
33  postgres_data:
34      driver: local
35services:
36  go-sports-entities-hierarchy:
37      restart: always
38      build:
39        dockerfile: Dockerfile
40        context: .
41      environment:
42        WAIT_HOSTS: postgres:5432
43        # Web framework config
44        GIN_MODE: debug
45        GQL_SERVER_HOST: go-sports-entities-hierarchy
46        GQL_SERVER_PORT: 7777
47        ALLOWED_ORIGINS: &quot;*&quot;
48        USER_MANAGEMENT_SERVER_URL: http://localhost:8080/user/me
49        # GQLGen config
50        GQL_SERVER_GRAPHQL_PATH: graphql
51        GQL_SERVER_GRAPHQL_PLAYGROUND_ENABLED: &quot;true&quot;
52        GQL_SERVER_GRAPHQL_PLAYGROUND_PATH: playground
53      ports:
54        - 7777:7777
55      depends_on:
56        - postgres
57        - redisearch
58  go-sports-events-workflow:
59      restart: always
60      build:
61        dockerfile: Dockerfile
62        context: .
63      environment:
64        WAIT_HOSTS: postgres:5432
65        # Web framework config
66        GIN_MODE: debug
67        GQL_SERVER_HOST: go-sports-events-workflow
68        GQL_SERVER_PORT: 7778
69        ALLOWED_ORIGINS: &quot;*&quot;
70        # GQLGen config
71        GQL_SERVER_GRAPHQL_PATH: graphql
72        GQL_SERVER_GRAPHQL_PLAYGROUND_ENABLED: &quot;true&quot;
73        GQL_SERVER_GRAPHQL_PLAYGROUND_PATH: playground
74      depends_on:
75        - postgres
76        - redisearch
77        - go-sports-entities-hierarchy
78
79FROM golang:alpine
80
81RUN apk update &amp;&amp; apk add --no-cache git ca-certificates &amp;&amp; update-ca-certificates
82
83# Set necessary environmet variables needed for our image
84ENV GO111MODULE=on \
85    CGO_ENABLED=0 \
86    GOOS=linux \
87    GOARCH=amd64
88
89# Move to working directory /build
90WORKDIR /build
91
92# Copy and download dependency using go mod
93COPY go.mod .
94COPY go.sum .
95RUN go mod download
96
97# Copy the code into the container
98COPY . .
99
100# Build the application
101RUN go build -o main .
102
103# Move to /dist directory as the place for resulting binary folder
104WORKDIR /dist
105
106# Copy binary from build to main folder
107RUN cp -r /build/html .
108RUN cp /build/main .
109
110# Environment Variables
111ENV DB_HOST=&quot;127.0.0.1&quot; \
112    APP_PROTOCOL=&quot;http&quot; \
113    APP_HOST=&quot;localhost&quot; \
114    APP_PORT=8080 \
115    ALLOWED_ORIGINS=&quot;*&quot;
116
117# Export necessary port
118EXPOSE 8080
119
120ADD https://github.com/ufoscout/docker-compose-wait/releases/download/2.2.1/wait /wait
121RUN chmod +x /wait
122
123# Command to run when starting the container
124CMD /wait &amp;&amp; /dist/main
125version: '3'
126
127volumes:
128  postgres_data:
129      driver: local
130
131services:
132  postgres:
133      image: postgres
134      volumes:
135        - postgres_data:/var/lib/postgresql/data
136      ports:
137        - 5432:5432
138  go-user-management:
139      restart: always
140      build:
141        dockerfile: Dockerfile
142        context: .
143      environment:
144        # Postgres Details
145        DB_PORT: 5432
146        # APP details
147        APP_PROTOCOL: http
148        APP_HOST: localhost
149        APP_PORT: 8080
150        # System Configuration Details
151        ALLOWED_ORIGINS: &quot;*&quot;
152      ports:
153        - 8080:8080
154      depends_on:
155        - postgres
156client := resty.New()
157resp, err := client.R().SetHeader(&quot;Content-Type&quot;, &quot;application/json&quot;).SetHeader(&quot;Authorization&quot;, &quot;Bearer &quot;+token).Get(&quot;http://localhost:8080/user/me&quot;)
158# sport_app docker-compose.yml
159version: '3'
160services:
161  go-sports-entities-hierarchy:
162    ...
163    networks:
164      - some-net
165  go-sports-events-workflow
166    ...
167    networks:
168      - some-net
169networks:
170  some-net:
171    driver: bridge
172# user_management app docker-compose.yml
173version: '3'
174services:
175  postgres:
176    ...
177    networks:
178      - some-net
179  go-user-management
180    ...
181    networks:
182      - some-net
183networks:
184  some-net:
185    external: true
186

Note: Your app’s network is given a name based on the project name, which is based on the name of the directory it lives in, in this case a prefix user_ was added.

They can then talk to each other using the service name, i.e. go-user-management, etc.

You can, after running the docker-compose up --build commands, run the docker network ls command to see it, then docker network inspect bridge, etc.

Source https://stackoverflow.com/questions/70440797

QUESTION

VS2017 crashes with 'FileNotFoundEx: System.Runtime.CompilerServices.Unsafe, V=4.0.4.1' upon loading any project

Asked 2021-Dec-21 at 16:18

Sorry for a lengthy one, but I'm in dire straits - just trying to provide all details upfront.

This Fri (2021-Nov-12) after a restart of Visual Studio 2017 it began crashing without notice while opening existing solutions. This worked perfectly fine at least a week ago (after last Win10 Update KB5006670 on 2021-Nov-05 - followed by a reboot). Trying to load old solutions (which haven't been touched for 2+ years) results in exactly the same behavior:
you get a glimpse of "Loading Project .." windows (not sure if it goes through all projects in a solution), then suddenly the main VS window disappears and .. that's it.

VStudio's configuration has not been touched at least for a year. No explicit updates/patches or NuGet packages either. By itself VS starts and shows the main window with usual Start page. But I cannot load any solution or project.

The very first related Event Log entry:

1**2021-Nov-12 14:13:41**
2Application: devenv.exe
3Framework Version: v4.0.30319
4Description: The application requested process termination through System.Environment.FailFast(string message).
5Message: System.IO.FileNotFoundException: Could not load file or assembly 'System.Runtime.CompilerServices.Unsafe, Version=4.0.4.1, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' or one of its dependencies. The system cannot find the file specified.
6File name: 'System.Runtime.CompilerServices.Unsafe, Version=4.0.4.1, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a'
7   at System.Threading.Tasks.ValueTask`1.AsTask()
8   at Microsoft.CodeAnalysis.Document.GetSyntaxTreeAsync(CancellationToken cancellationToken)
9   at Microsoft.CodeAnalysis.Host.BackgroundParser.&lt;&gt;c__DisplayClass20_0.&lt;ParseDocumentAsync&gt;b__0()
10   at System.Threading.Tasks.Task`1.InnerInvoke()
11   at System.Threading.Tasks.Task.Execute()
12
13WRN: Assembly binding logging is turned OFF.
14To enable assembly bind failure logging, set the registry value [HKLM\Software\Microsoft\Fusion!EnableLog] (DWORD) to 1.
15Note: There is some performance penalty associated with assembly bind failure logging.
16To turn this feature off, remove the registry value [HKLM\Software\Microsoft\Fusion!EnableLog].
17
18Stack:
19   at System.Environment.FailFast(System.String, System.Exception)
20   at Microsoft.CodeAnalysis.FailFast.OnFatalException(System.Exception)
21   at Microsoft.CodeAnalysis.ErrorReporting.FatalError.Report(System.Exception, System.Action`1&lt;System.Exception&gt;)
22   at Microsoft.CodeAnalysis.ErrorReporting.FatalError.Report(System.Exception)
23   at Roslyn.Utilities.TaskExtensions.ReportFatalErrorWorker(System.Threading.Tasks.Task, System.Object)
24   at System.Threading.Tasks.ContinuationTaskFromTask.InnerInvoke()
25   at System.Threading.Tasks.Task.Execute()
26   at System.Threading.Tasks.Task.ExecutionContextCallback(System.Object)
27   at System.Threading.ExecutionContext.RunInternal(System.Threading.ExecutionContext, System.Threading.ContextCallback, System.Object, Boolean)
28   at System.Threading.ExecutionContext.Run(System.Threading.ExecutionContext, System.Threading.ContextCallback, System.Object, Boolean)
29   at System.Threading.Tasks.Task.ExecuteWithThreadLocal(System.Threading.Tasks.Task ByRef)
30   at System.Threading.Tasks.Task.ExecuteEntry(Boolean)
31   at System.Threading.Tasks.ThreadPoolTaskScheduler.TryExecuteTaskInline(System.Threading.Tasks.Task, Boolean)
32   at System.Threading.Tasks.TaskScheduler.TryRunInline(System.Threading.Tasks.Task, Boolean)
33   at System.Threading.Tasks.TaskContinuation.InlineIfPossibleOrElseQueue(System.Threading.Tasks.Task, Boolean)
34   at System.Threading.Tasks.StandardTaskContinuation.Run(System.Threading.Tasks.Task, Boolean)
35   at System.Threading.Tasks.Task.FinishContinuations()
36   at System.Threading.Tasks.Task.FinishStageThree()
37   at System.Threading.Tasks.Task.FinishStageTwo()
38   at System.Threading.Tasks.Task.Finish(Boolean)
39   at System.Threading.Tasks.Task`1[[System.__Canon, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089]].TrySetException(System.Object)
40   at System.Threading.Tasks.UnwrapPromise`1[[System.__Canon, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089]].TrySetFromTask(System.Threading.Tasks.Task, Boolean)
41   at System.Threading.Tasks.UnwrapPromise`1[[System.__Canon, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089]].ProcessCompletedOuterTask(System.Threading.Tasks.Task)
42   at System.Threading.Tasks.UnwrapPromise`1[[System.__Canon, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089]].InvokeCore(System.Threading.Tasks.Task)
43   at System.Threading.Tasks.UnwrapPromise`1[[System.__Canon, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089]].Invoke(System.Threading.Tasks.Task)
44   at System.Threading.Tasks.Task.FinishContinuations()
45   at System.Threading.Tasks.Task.FinishStageThree()
46   at System.Threading.Tasks.Task.FinishStageTwo()
47   at System.Threading.Tasks.Task.Finish(Boolean)
48   at System.Threading.Tasks.Task.ExecuteWithThreadLocal(System.Threading.Tasks.Task ByRef)
49   at System.Threading.Tasks.Task.ExecuteEntry(Boolean)
50   at System.Threading.Tasks.Task.System.Threading.IThreadPoolWorkItem.ExecuteWorkItem()
51   at System.Threading.ThreadPoolWorkQueue.Dispatch()
52   at System.Threading._ThreadPoolWaitCallback.PerformWaitCallback()
53

was followed by these 3:

1)

1**2021-Nov-12 14:13:41**
2Application: devenv.exe
3Framework Version: v4.0.30319
4Description: The application requested process termination through System.Environment.FailFast(string message).
5Message: System.IO.FileNotFoundException: Could not load file or assembly 'System.Runtime.CompilerServices.Unsafe, Version=4.0.4.1, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' or one of its dependencies. The system cannot find the file specified.
6File name: 'System.Runtime.CompilerServices.Unsafe, Version=4.0.4.1, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a'
7   at System.Threading.Tasks.ValueTask`1.AsTask()
8   at Microsoft.CodeAnalysis.Document.GetSyntaxTreeAsync(CancellationToken cancellationToken)
9   at Microsoft.CodeAnalysis.Host.BackgroundParser.&lt;&gt;c__DisplayClass20_0.&lt;ParseDocumentAsync&gt;b__0()
10   at System.Threading.Tasks.Task`1.InnerInvoke()
11   at System.Threading.Tasks.Task.Execute()
12
13WRN: Assembly binding logging is turned OFF.
14To enable assembly bind failure logging, set the registry value [HKLM\Software\Microsoft\Fusion!EnableLog] (DWORD) to 1.
15Note: There is some performance penalty associated with assembly bind failure logging.
16To turn this feature off, remove the registry value [HKLM\Software\Microsoft\Fusion!EnableLog].
17
18Stack:
19   at System.Environment.FailFast(System.String, System.Exception)
20   at Microsoft.CodeAnalysis.FailFast.OnFatalException(System.Exception)
21   at Microsoft.CodeAnalysis.ErrorReporting.FatalError.Report(System.Exception, System.Action`1&lt;System.Exception&gt;)
22   at Microsoft.CodeAnalysis.ErrorReporting.FatalError.Report(System.Exception)
23   at Roslyn.Utilities.TaskExtensions.ReportFatalErrorWorker(System.Threading.Tasks.Task, System.Object)
24   at System.Threading.Tasks.ContinuationTaskFromTask.InnerInvoke()
25   at System.Threading.Tasks.Task.Execute()
26   at System.Threading.Tasks.Task.ExecutionContextCallback(System.Object)
27   at System.Threading.ExecutionContext.RunInternal(System.Threading.ExecutionContext, System.Threading.ContextCallback, System.Object, Boolean)
28   at System.Threading.ExecutionContext.Run(System.Threading.ExecutionContext, System.Threading.ContextCallback, System.Object, Boolean)
29   at System.Threading.Tasks.Task.ExecuteWithThreadLocal(System.Threading.Tasks.Task ByRef)
30   at System.Threading.Tasks.Task.ExecuteEntry(Boolean)
31   at System.Threading.Tasks.ThreadPoolTaskScheduler.TryExecuteTaskInline(System.Threading.Tasks.Task, Boolean)
32   at System.Threading.Tasks.TaskScheduler.TryRunInline(System.Threading.Tasks.Task, Boolean)
33   at System.Threading.Tasks.TaskContinuation.InlineIfPossibleOrElseQueue(System.Threading.Tasks.Task, Boolean)
34   at System.Threading.Tasks.StandardTaskContinuation.Run(System.Threading.Tasks.Task, Boolean)
35   at System.Threading.Tasks.Task.FinishContinuations()
36   at System.Threading.Tasks.Task.FinishStageThree()
37   at System.Threading.Tasks.Task.FinishStageTwo()
38   at System.Threading.Tasks.Task.Finish(Boolean)
39   at System.Threading.Tasks.Task`1[[System.__Canon, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089]].TrySetException(System.Object)
40   at System.Threading.Tasks.UnwrapPromise`1[[System.__Canon, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089]].TrySetFromTask(System.Threading.Tasks.Task, Boolean)
41   at System.Threading.Tasks.UnwrapPromise`1[[System.__Canon, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089]].ProcessCompletedOuterTask(System.Threading.Tasks.Task)
42   at System.Threading.Tasks.UnwrapPromise`1[[System.__Canon, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089]].InvokeCore(System.Threading.Tasks.Task)
43   at System.Threading.Tasks.UnwrapPromise`1[[System.__Canon, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089]].Invoke(System.Threading.Tasks.Task)
44   at System.Threading.Tasks.Task.FinishContinuations()
45   at System.Threading.Tasks.Task.FinishStageThree()
46   at System.Threading.Tasks.Task.FinishStageTwo()
47   at System.Threading.Tasks.Task.Finish(Boolean)
48   at System.Threading.Tasks.Task.ExecuteWithThreadLocal(System.Threading.Tasks.Task ByRef)
49   at System.Threading.Tasks.Task.ExecuteEntry(Boolean)
50   at System.Threading.Tasks.Task.System.Threading.IThreadPoolWorkItem.ExecuteWorkItem()
51   at System.Threading.ThreadPoolWorkQueue.Dispatch()
52   at System.Threading._ThreadPoolWaitCallback.PerformWaitCallback()
53**2021-Nov-12 14:14:16**
54Application: devenv.exe
55Framework Version: v4.0.30319
56Description: The application requested process termination through System.Environment.FailFast(string message).
57Message: System.IO.FileNotFoundException: Could not load file or assembly 'System.Runtime.CompilerServices.Unsafe, Version=4.0.4.1, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' or one of its dependencies. The system cannot find the file specified.
58File name: 'System.Runtime.CompilerServices.Unsafe, Version=4.0.4.1, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a'
59   at System.Threading.Tasks.ValueTask`1.AsTask()
60   at Microsoft.CodeAnalysis.Document.GetSyntaxTreeAsync(CancellationToken cancellationToken)
61   at Microsoft.VisualStudio.LanguageServices.Implementation.Progression.SymbolContainment.&lt;GetContainedSyntaxNodesAsync&gt;d__0.MoveNext()
62--- End of stack trace from previous location where exception was thrown ---
63   at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)
64   at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
65   at Microsoft.VisualStudio.LanguageServices.Implementation.Progression.ContainsChildrenGraphQuery.&lt;GetGraphAsync&gt;d__0.MoveNext()
66
67WRN: Assembly binding logging is turned OFF.
68To enable assembly bind failure logging, set the registry value [HKLM\Software\Microsoft\Fusion!EnableLog] (DWORD) to 1.
69Note: There is some performance penalty associated with assembly bind failure logging.
70To turn this feature off, remove the registry value [HKLM\Software\Microsoft\Fusion!EnableLog].
71
72Stack:
73   at System.Environment.FailFast(System.String, System.Exception)
74   at Microsoft.CodeAnalysis.FailFast.OnFatalException(System.Exception)
75   at Microsoft.CodeAnalysis.ErrorReporting.FatalError.Report(System.Exception, System.Action`1&lt;System.Exception&gt;)
76   at Microsoft.CodeAnalysis.ErrorReporting.FatalError.ReportUnlessCanceled(System.Exception)
77   at Roslyn.Utilities.TaskExtensions+&lt;&gt;c__DisplayClass7_0`1[[System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089]].&lt;SafeContinueWith&gt;g__outerFunction|0(System.Threading.Tasks.Task)
78   at System.Threading.Tasks.Task.ThrowIfExceptional(Boolean)
79   at System.Threading.Tasks.Task`1[[System.__Canon, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089]].GetResultCore(Boolean)
80   at System.Threading.Tasks.Task`1[[System.__Canon, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089]].get_Result()
81   at Microsoft.VisualStudio.LanguageServices.Implementation.Progression.GraphQueryManager+&lt;&gt;c__DisplayClass14_0.&lt;PopulateContextGraphAsync&gt;b__1(System.Threading.Tasks.Task`1&lt;Microsoft.VisualStudio.LanguageServices.Implementation.Progression.GraphBuilder[]&gt;)
82   at Roslyn.Utilities.TaskExtensions+&lt;&gt;c__DisplayClass6_0`1[[System.__Canon, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089]].&lt;SafeContinueWith&gt;b__0(System.Threading.Tasks.Task)
83   at Roslyn.Utilities.TaskExtensions+&lt;&gt;c__DisplayClass3_0.&lt;SafeContinueWith&gt;g__continuationFunction|0(System.Threading.Tasks.Task)
84   at Roslyn.Utilities.TaskExtensions+&lt;&gt;c__DisplayClass7_0`1[[System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089]].&lt;SafeContinueWith&gt;g__outerFunction|0(System.Threading.Tasks.Task)
85   at System.Threading.Tasks.ContinuationResultTaskFromTask`1[[System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089]].InnerInvoke()
86   at System.Threading.Tasks.Task.Execute()
87   at System.Threading.Tasks.Task.ExecutionContextCallback(System.Object)
88   at System.Threading.ExecutionContext.RunInternal(System.Threading.ExecutionContext, System.Threading.ContextCallback, System.Object, Boolean)
89   at System.Threading.ExecutionContext.Run(System.Threading.ExecutionContext, System.Threading.ContextCallback, System.Object, Boolean)
90   at System.Threading.Tasks.Task.ExecuteWithThreadLocal(System.Threading.Tasks.Task ByRef)
91   at System.Threading.Tasks.Task.ExecuteEntry(Boolean)
92   at System.Threading.Tasks.Task.System.Threading.IThreadPoolWorkItem.ExecuteWorkItem()
93   at System.Threading.ThreadPoolWorkQueue.Dispatch()
94   at System.Threading._ThreadPoolWaitCallback.PerformWaitCallback()
95
1**2021-Nov-12 14:13:41**
2Application: devenv.exe
3Framework Version: v4.0.30319
4Description: The application requested process termination through System.Environment.FailFast(string message).
5Message: System.IO.FileNotFoundException: Could not load file or assembly 'System.Runtime.CompilerServices.Unsafe, Version=4.0.4.1, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' or one of its dependencies. The system cannot find the file specified.
6File name: 'System.Runtime.CompilerServices.Unsafe, Version=4.0.4.1, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a'
7   at System.Threading.Tasks.ValueTask`1.AsTask()
8   at Microsoft.CodeAnalysis.Document.GetSyntaxTreeAsync(CancellationToken cancellationToken)
9   at Microsoft.CodeAnalysis.Host.BackgroundParser.&lt;&gt;c__DisplayClass20_0.&lt;ParseDocumentAsync&gt;b__0()
10   at System.Threading.Tasks.Task`1.InnerInvoke()
11   at System.Threading.Tasks.Task.Execute()
12
13WRN: Assembly binding logging is turned OFF.
14To enable assembly bind failure logging, set the registry value [HKLM\Software\Microsoft\Fusion!EnableLog] (DWORD) to 1.
15Note: There is some performance penalty associated with assembly bind failure logging.
16To turn this feature off, remove the registry value [HKLM\Software\Microsoft\Fusion!EnableLog].
17
18Stack:
19   at System.Environment.FailFast(System.String, System.Exception)
20   at Microsoft.CodeAnalysis.FailFast.OnFatalException(System.Exception)
21   at Microsoft.CodeAnalysis.ErrorReporting.FatalError.Report(System.Exception, System.Action`1&lt;System.Exception&gt;)
22   at Microsoft.CodeAnalysis.ErrorReporting.FatalError.Report(System.Exception)
23   at Roslyn.Utilities.TaskExtensions.ReportFatalErrorWorker(System.Threading.Tasks.Task, System.Object)
24   at System.Threading.Tasks.ContinuationTaskFromTask.InnerInvoke()
25   at System.Threading.Tasks.Task.Execute()
26   at System.Threading.Tasks.Task.ExecutionContextCallback(System.Object)
27   at System.Threading.ExecutionContext.RunInternal(System.Threading.ExecutionContext, System.Threading.ContextCallback, System.Object, Boolean)
28   at System.Threading.ExecutionContext.Run(System.Threading.ExecutionContext, System.Threading.ContextCallback, System.Object, Boolean)
29   at System.Threading.Tasks.Task.ExecuteWithThreadLocal(System.Threading.Tasks.Task ByRef)
30   at System.Threading.Tasks.Task.ExecuteEntry(Boolean)
31   at System.Threading.Tasks.ThreadPoolTaskScheduler.TryExecuteTaskInline(System.Threading.Tasks.Task, Boolean)
32   at System.Threading.Tasks.TaskScheduler.TryRunInline(System.Threading.Tasks.Task, Boolean)
33   at System.Threading.Tasks.TaskContinuation.InlineIfPossibleOrElseQueue(System.Threading.Tasks.Task, Boolean)
34   at System.Threading.Tasks.StandardTaskContinuation.Run(System.Threading.Tasks.Task, Boolean)
35   at System.Threading.Tasks.Task.FinishContinuations()
36   at System.Threading.Tasks.Task.FinishStageThree()
37   at System.Threading.Tasks.Task.FinishStageTwo()
38   at System.Threading.Tasks.Task.Finish(Boolean)
39   at System.Threading.Tasks.Task`1[[System.__Canon, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089]].TrySetException(System.Object)
40   at System.Threading.Tasks.UnwrapPromise`1[[System.__Canon, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089]].TrySetFromTask(System.Threading.Tasks.Task, Boolean)
41   at System.Threading.Tasks.UnwrapPromise`1[[System.__Canon, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089]].ProcessCompletedOuterTask(System.Threading.Tasks.Task)
42   at System.Threading.Tasks.UnwrapPromise`1[[System.__Canon, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089]].InvokeCore(System.Threading.Tasks.Task)
43   at System.Threading.Tasks.UnwrapPromise`1[[System.__Canon, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089]].Invoke(System.Threading.Tasks.Task)
44   at System.Threading.Tasks.Task.FinishContinuations()
45   at System.Threading.Tasks.Task.FinishStageThree()
46   at System.Threading.Tasks.Task.FinishStageTwo()
47   at System.Threading.Tasks.Task.Finish(Boolean)
48   at System.Threading.Tasks.Task.ExecuteWithThreadLocal(System.Threading.Tasks.Task ByRef)
49   at System.Threading.Tasks.Task.ExecuteEntry(Boolean)
50   at System.Threading.Tasks.Task.System.Threading.IThreadPoolWorkItem.ExecuteWorkItem()
51   at System.Threading.ThreadPoolWorkQueue.Dispatch()
52   at System.Threading._ThreadPoolWaitCallback.PerformWaitCallback()
53**2021-Nov-12 14:14:16**
54Application: devenv.exe
55Framework Version: v4.0.30319
56Description: The application requested process termination through System.Environment.FailFast(string message).
57Message: System.IO.FileNotFoundException: Could not load file or assembly 'System.Runtime.CompilerServices.Unsafe, Version=4.0.4.1, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' or one of its dependencies. The system cannot find the file specified.
58File name: 'System.Runtime.CompilerServices.Unsafe, Version=4.0.4.1, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a'
59   at System.Threading.Tasks.ValueTask`1.AsTask()
60   at Microsoft.CodeAnalysis.Document.GetSyntaxTreeAsync(CancellationToken cancellationToken)
61   at Microsoft.VisualStudio.LanguageServices.Implementation.Progression.SymbolContainment.&lt;GetContainedSyntaxNodesAsync&gt;d__0.MoveNext()
62--- End of stack trace from previous location where exception was thrown ---
63   at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)
64   at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
65   at Microsoft.VisualStudio.LanguageServices.Implementation.Progression.ContainsChildrenGraphQuery.&lt;GetGraphAsync&gt;d__0.MoveNext()
66
67WRN: Assembly binding logging is turned OFF.
68To enable assembly bind failure logging, set the registry value [HKLM\Software\Microsoft\Fusion!EnableLog] (DWORD) to 1.
69Note: There is some performance penalty associated with assembly bind failure logging.
70To turn this feature off, remove the registry value [HKLM\Software\Microsoft\Fusion!EnableLog].
71
72Stack:
73   at System.Environment.FailFast(System.String, System.Exception)
74   at Microsoft.CodeAnalysis.FailFast.OnFatalException(System.Exception)
75   at Microsoft.CodeAnalysis.ErrorReporting.FatalError.Report(System.Exception, System.Action`1&lt;System.Exception&gt;)
76   at Microsoft.CodeAnalysis.ErrorReporting.FatalError.ReportUnlessCanceled(System.Exception)
77   at Roslyn.Utilities.TaskExtensions+&lt;&gt;c__DisplayClass7_0`1[[System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089]].&lt;SafeContinueWith&gt;g__outerFunction|0(System.Threading.Tasks.Task)
78   at System.Threading.Tasks.Task.ThrowIfExceptional(Boolean)
79   at System.Threading.Tasks.Task`1[[System.__Canon, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089]].GetResultCore(Boolean)
80   at System.Threading.Tasks.Task`1[[System.__Canon, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089]].get_Result()
81   at Microsoft.VisualStudio.LanguageServices.Implementation.Progression.GraphQueryManager+&lt;&gt;c__DisplayClass14_0.&lt;PopulateContextGraphAsync&gt;b__1(System.Threading.Tasks.Task`1&lt;Microsoft.VisualStudio.LanguageServices.Implementation.Progression.GraphBuilder[]&gt;)
82   at Roslyn.Utilities.TaskExtensions+&lt;&gt;c__DisplayClass6_0`1[[System.__Canon, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089]].&lt;SafeContinueWith&gt;b__0(System.Threading.Tasks.Task)
83   at Roslyn.Utilities.TaskExtensions+&lt;&gt;c__DisplayClass3_0.&lt;SafeContinueWith&gt;g__continuationFunction|0(System.Threading.Tasks.Task)
84   at Roslyn.Utilities.TaskExtensions+&lt;&gt;c__DisplayClass7_0`1[[System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089]].&lt;SafeContinueWith&gt;g__outerFunction|0(System.Threading.Tasks.Task)
85   at System.Threading.Tasks.ContinuationResultTaskFromTask`1[[System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089]].InnerInvoke()
86   at System.Threading.Tasks.Task.Execute()
87   at System.Threading.Tasks.Task.ExecutionContextCallback(System.Object)
88   at System.Threading.ExecutionContext.RunInternal(System.Threading.ExecutionContext, System.Threading.ContextCallback, System.Object, Boolean)
89   at System.Threading.ExecutionContext.Run(System.Threading.ExecutionContext, System.Threading.ContextCallback, System.Object, Boolean)
90   at System.Threading.Tasks.Task.ExecuteWithThreadLocal(System.Threading.Tasks.Task ByRef)
91   at System.Threading.Tasks.Task.ExecuteEntry(Boolean)
92   at System.Threading.Tasks.Task.System.Threading.IThreadPoolWorkItem.ExecuteWorkItem()
93   at System.Threading.ThreadPoolWorkQueue.Dispatch()
94   at System.Threading._ThreadPoolWaitCallback.PerformWaitCallback()
95**2021-Nov-12 14:14:19**
96Faulting application name: devenv.exe, version: 15.8.28010.2050, time stamp: 0x5bda1fc3
97Faulting module name: unknown, version: 0.0.0.0, time stamp: 0x00000000
98Exception code: 0x80131623
99Fault offset: 0x19a1c93a
100Faulting process id: 0x3d44
101Faulting application start time: 0x01d7d801d444a508
102Faulting application path: C:\Program Files (x86)\Microsoft Visual Studio\2017\Professional\Common7\IDE\devenv.exe
103Faulting module path: unknown
104Report Id: e230b637-fd72-47f8-a0d5-d2c4ccb10943
105
1**2021-Nov-12 14:13:41**
2Application: devenv.exe
3Framework Version: v4.0.30319
4Description: The application requested process termination through System.Environment.FailFast(string message).
5Message: System.IO.FileNotFoundException: Could not load file or assembly 'System.Runtime.CompilerServices.Unsafe, Version=4.0.4.1, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' or one of its dependencies. The system cannot find the file specified.
6File name: 'System.Runtime.CompilerServices.Unsafe, Version=4.0.4.1, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a'
7   at System.Threading.Tasks.ValueTask`1.AsTask()
8   at Microsoft.CodeAnalysis.Document.GetSyntaxTreeAsync(CancellationToken cancellationToken)
9   at Microsoft.CodeAnalysis.Host.BackgroundParser.&lt;&gt;c__DisplayClass20_0.&lt;ParseDocumentAsync&gt;b__0()
10   at System.Threading.Tasks.Task`1.InnerInvoke()
11   at System.Threading.Tasks.Task.Execute()
12
13WRN: Assembly binding logging is turned OFF.
14To enable assembly bind failure logging, set the registry value [HKLM\Software\Microsoft\Fusion!EnableLog] (DWORD) to 1.
15Note: There is some performance penalty associated with assembly bind failure logging.
16To turn this feature off, remove the registry value [HKLM\Software\Microsoft\Fusion!EnableLog].
17
18Stack:
19   at System.Environment.FailFast(System.String, System.Exception)
20   at Microsoft.CodeAnalysis.FailFast.OnFatalException(System.Exception)
21   at Microsoft.CodeAnalysis.ErrorReporting.FatalError.Report(System.Exception, System.Action`1&lt;System.Exception&gt;)
22   at Microsoft.CodeAnalysis.ErrorReporting.FatalError.Report(System.Exception)
23   at Roslyn.Utilities.TaskExtensions.ReportFatalErrorWorker(System.Threading.Tasks.Task, System.Object)
24   at System.Threading.Tasks.ContinuationTaskFromTask.InnerInvoke()
25   at System.Threading.Tasks.Task.Execute()
26   at System.Threading.Tasks.Task.ExecutionContextCallback(System.Object)
27   at System.Threading.ExecutionContext.RunInternal(System.Threading.ExecutionContext, System.Threading.ContextCallback, System.Object, Boolean)
28   at System.Threading.ExecutionContext.Run(System.Threading.ExecutionContext, System.Threading.ContextCallback, System.Object, Boolean)
29   at System.Threading.Tasks.Task.ExecuteWithThreadLocal(System.Threading.Tasks.Task ByRef)
30   at System.Threading.Tasks.Task.ExecuteEntry(Boolean)
31   at System.Threading.Tasks.ThreadPoolTaskScheduler.TryExecuteTaskInline(System.Threading.Tasks.Task, Boolean)
32   at System.Threading.Tasks.TaskScheduler.TryRunInline(System.Threading.Tasks.Task, Boolean)
33   at System.Threading.Tasks.TaskContinuation.InlineIfPossibleOrElseQueue(System.Threading.Tasks.Task, Boolean)
34   at System.Threading.Tasks.StandardTaskContinuation.Run(System.Threading.Tasks.Task, Boolean)
35   at System.Threading.Tasks.Task.FinishContinuations()
36   at System.Threading.Tasks.Task.FinishStageThree()
37   at System.Threading.Tasks.Task.FinishStageTwo()
38   at System.Threading.Tasks.Task.Finish(Boolean)
39   at System.Threading.Tasks.Task`1[[System.__Canon, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089]].TrySetException(System.Object)
40   at System.Threading.Tasks.UnwrapPromise`1[[System.__Canon, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089]].TrySetFromTask(System.Threading.Tasks.Task, Boolean)
41   at System.Threading.Tasks.UnwrapPromise`1[[System.__Canon, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089]].ProcessCompletedOuterTask(System.Threading.Tasks.Task)
42   at System.Threading.Tasks.UnwrapPromise`1[[System.__Canon, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089]].InvokeCore(System.Threading.Tasks.Task)
43   at System.Threading.Tasks.UnwrapPromise`1[[System.__Canon, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089]].Invoke(System.Threading.Tasks.Task)
44   at System.Threading.Tasks.Task.FinishContinuations()
45   at System.Threading.Tasks.Task.FinishStageThree()
46   at System.Threading.Tasks.Task.FinishStageTwo()
47   at System.Threading.Tasks.Task.Finish(Boolean)
48   at System.Threading.Tasks.Task.ExecuteWithThreadLocal(System.Threading.Tasks.Task ByRef)
49   at System.Threading.Tasks.Task.ExecuteEntry(Boolean)
50   at System.Threading.Tasks.Task.System.Threading.IThreadPoolWorkItem.ExecuteWorkItem()
51   at System.Threading.ThreadPoolWorkQueue.Dispatch()
52   at System.Threading._ThreadPoolWaitCallback.PerformWaitCallback()
53**2021-Nov-12 14:14:16**
54Application: devenv.exe
55Framework Version: v4.0.30319
56Description: The application requested process termination through System.Environment.FailFast(string message).
57Message: System.IO.FileNotFoundException: Could not load file or assembly 'System.Runtime.CompilerServices.Unsafe, Version=4.0.4.1, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' or one of its dependencies. The system cannot find the file specified.
58File name: 'System.Runtime.CompilerServices.Unsafe, Version=4.0.4.1, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a'
59   at System.Threading.Tasks.ValueTask`1.AsTask()
60   at Microsoft.CodeAnalysis.Document.GetSyntaxTreeAsync(CancellationToken cancellationToken)
61   at Microsoft.VisualStudio.LanguageServices.Implementation.Progression.SymbolContainment.&lt;GetContainedSyntaxNodesAsync&gt;d__0.MoveNext()
62--- End of stack trace from previous location where exception was thrown ---
63   at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)
64   at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
65   at Microsoft.VisualStudio.LanguageServices.Implementation.Progression.ContainsChildrenGraphQuery.&lt;GetGraphAsync&gt;d__0.MoveNext()
66
67WRN: Assembly binding logging is turned OFF.
68To enable assembly bind failure logging, set the registry value [HKLM\Software\Microsoft\Fusion!EnableLog] (DWORD) to 1.
69Note: There is some performance penalty associated with assembly bind failure logging.
70To turn this feature off, remove the registry value [HKLM\Software\Microsoft\Fusion!EnableLog].
71
72Stack:
73   at System.Environment.FailFast(System.String, System.Exception)
74   at Microsoft.CodeAnalysis.FailFast.OnFatalException(System.Exception)
75   at Microsoft.CodeAnalysis.ErrorReporting.FatalError.Report(System.Exception, System.Action`1&lt;System.Exception&gt;)
76   at Microsoft.CodeAnalysis.ErrorReporting.FatalError.ReportUnlessCanceled(System.Exception)
77   at Roslyn.Utilities.TaskExtensions+&lt;&gt;c__DisplayClass7_0`1[[System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089]].&lt;SafeContinueWith&gt;g__outerFunction|0(System.Threading.Tasks.Task)
78   at System.Threading.Tasks.Task.ThrowIfExceptional(Boolean)
79   at System.Threading.Tasks.Task`1[[System.__Canon, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089]].GetResultCore(Boolean)
80   at System.Threading.Tasks.Task`1[[System.__Canon, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089]].get_Result()
81   at Microsoft.VisualStudio.LanguageServices.Implementation.Progression.GraphQueryManager+&lt;&gt;c__DisplayClass14_0.&lt;PopulateContextGraphAsync&gt;b__1(System.Threading.Tasks.Task`1&lt;Microsoft.VisualStudio.LanguageServices.Implementation.Progression.GraphBuilder[]&gt;)
82   at Roslyn.Utilities.TaskExtensions+&lt;&gt;c__DisplayClass6_0`1[[System.__Canon, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089]].&lt;SafeContinueWith&gt;b__0(System.Threading.Tasks.Task)
83   at Roslyn.Utilities.TaskExtensions+&lt;&gt;c__DisplayClass3_0.&lt;SafeContinueWith&gt;g__continuationFunction|0(System.Threading.Tasks.Task)
84   at Roslyn.Utilities.TaskExtensions+&lt;&gt;c__DisplayClass7_0`1[[System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089]].&lt;SafeContinueWith&gt;g__outerFunction|0(System.Threading.Tasks.Task)
85   at System.Threading.Tasks.ContinuationResultTaskFromTask`1[[System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089]].InnerInvoke()
86   at System.Threading.Tasks.Task.Execute()
87   at System.Threading.Tasks.Task.ExecutionContextCallback(System.Object)
88   at System.Threading.ExecutionContext.RunInternal(System.Threading.ExecutionContext, System.Threading.ContextCallback, System.Object, Boolean)
89   at System.Threading.ExecutionContext.Run(System.Threading.ExecutionContext, System.Threading.ContextCallback, System.Object, Boolean)
90   at System.Threading.Tasks.Task.ExecuteWithThreadLocal(System.Threading.Tasks.Task ByRef)
91   at System.Threading.Tasks.Task.ExecuteEntry(Boolean)
92   at System.Threading.Tasks.Task.System.Threading.IThreadPoolWorkItem.ExecuteWorkItem()
93   at System.Threading.ThreadPoolWorkQueue.Dispatch()
94   at System.Threading._ThreadPoolWaitCallback.PerformWaitCallback()
95**2021-Nov-12 14:14:19**
96Faulting application name: devenv.exe, version: 15.8.28010.2050, time stamp: 0x5bda1fc3
97Faulting module name: unknown, version: 0.0.0.0, time stamp: 0x00000000
98Exception code: 0x80131623
99Fault offset: 0x19a1c93a
100Faulting process id: 0x3d44
101Faulting application start time: 0x01d7d801d444a508
102Faulting application path: C:\Program Files (x86)\Microsoft Visual Studio\2017\Professional\Common7\IDE\devenv.exe
103Faulting module path: unknown
104Report Id: e230b637-fd72-47f8-a0d5-d2c4ccb10943
105**2021-Nov-12 14:14:35**
106Fault bucket 1659198495851531123, type 5
107Event Name: CLR20r3
108Response: Not available
109Cab Id: 0
110
111Problem signature:
112P1: devenv.exe
113P2: 15.8.28010.2050
114P3: 5bda1fc3
115P4: Microsoft.CodeAnalysis.Workspaces
116P5: 2.9.0.63208
117P6: f144aff0
118P7: 500
119P8: 41
120P9: System.IO.FileNotFoundException
121P10: 
122

This pattern of 3 entries with same suspects repeated several times while I was trying to load solutions.

In the last triple it had ServiceHub.RoslynCodeAnalysisService32.exe as the faulting app:

1**2021-Nov-12 14:13:41**
2Application: devenv.exe
3Framework Version: v4.0.30319
4Description: The application requested process termination through System.Environment.FailFast(string message).
5Message: System.IO.FileNotFoundException: Could not load file or assembly 'System.Runtime.CompilerServices.Unsafe, Version=4.0.4.1, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' or one of its dependencies. The system cannot find the file specified.
6File name: 'System.Runtime.CompilerServices.Unsafe, Version=4.0.4.1, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a'
7   at System.Threading.Tasks.ValueTask`1.AsTask()
8   at Microsoft.CodeAnalysis.Document.GetSyntaxTreeAsync(CancellationToken cancellationToken)
9   at Microsoft.CodeAnalysis.Host.BackgroundParser.&lt;&gt;c__DisplayClass20_0.&lt;ParseDocumentAsync&gt;b__0()
10   at System.Threading.Tasks.Task`1.InnerInvoke()
11   at System.Threading.Tasks.Task.Execute()
12
13WRN: Assembly binding logging is turned OFF.
14To enable assembly bind failure logging, set the registry value [HKLM\Software\Microsoft\Fusion!EnableLog] (DWORD) to 1.
15Note: There is some performance penalty associated with assembly bind failure logging.
16To turn this feature off, remove the registry value [HKLM\Software\Microsoft\Fusion!EnableLog].
17
18Stack:
19   at System.Environment.FailFast(System.String, System.Exception)
20   at Microsoft.CodeAnalysis.FailFast.OnFatalException(System.Exception)
21   at Microsoft.CodeAnalysis.ErrorReporting.FatalError.Report(System.Exception, System.Action`1&lt;System.Exception&gt;)
22   at Microsoft.CodeAnalysis.ErrorReporting.FatalError.Report(System.Exception)
23   at Roslyn.Utilities.TaskExtensions.ReportFatalErrorWorker(System.Threading.Tasks.Task, System.Object)
24   at System.Threading.Tasks.ContinuationTaskFromTask.InnerInvoke()
25   at System.Threading.Tasks.Task.Execute()
26   at System.Threading.Tasks.Task.ExecutionContextCallback(System.Object)
27   at System.Threading.ExecutionContext.RunInternal(System.Threading.ExecutionContext, System.Threading.ContextCallback, System.Object, Boolean)
28   at System.Threading.ExecutionContext.Run(System.Threading.ExecutionContext, System.Threading.ContextCallback, System.Object, Boolean)
29   at System.Threading.Tasks.Task.ExecuteWithThreadLocal(System.Threading.Tasks.Task ByRef)
30   at System.Threading.Tasks.Task.ExecuteEntry(Boolean)
31   at System.Threading.Tasks.ThreadPoolTaskScheduler.TryExecuteTaskInline(System.Threading.Tasks.Task, Boolean)
32   at System.Threading.Tasks.TaskScheduler.TryRunInline(System.Threading.Tasks.Task, Boolean)
33   at System.Threading.Tasks.TaskContinuation.InlineIfPossibleOrElseQueue(System.Threading.Tasks.Task, Boolean)
34   at System.Threading.Tasks.StandardTaskContinuation.Run(System.Threading.Tasks.Task, Boolean)
35   at System.Threading.Tasks.Task.FinishContinuations()
36   at System.Threading.Tasks.Task.FinishStageThree()
37   at System.Threading.Tasks.Task.FinishStageTwo()
38   at System.Threading.Tasks.Task.Finish(Boolean)
39   at System.Threading.Tasks.Task`1[[System.__Canon, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089]].TrySetException(System.Object)
40   at System.Threading.Tasks.UnwrapPromise`1[[System.__Canon, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089]].TrySetFromTask(System.Threading.Tasks.Task, Boolean)
41   at System.Threading.Tasks.UnwrapPromise`1[[System.__Canon, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089]].ProcessCompletedOuterTask(System.Threading.Tasks.Task)
42   at System.Threading.Tasks.UnwrapPromise`1[[System.__Canon, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089]].InvokeCore(System.Threading.Tasks.Task)
43   at System.Threading.Tasks.UnwrapPromise`1[[System.__Canon, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089]].Invoke(System.Threading.Tasks.Task)
44   at System.Threading.Tasks.Task.FinishContinuations()
45   at System.Threading.Tasks.Task.FinishStageThree()
46   at System.Threading.Tasks.Task.FinishStageTwo()
47   at System.Threading.Tasks.Task.Finish(Boolean)
48   at System.Threading.Tasks.Task.ExecuteWithThreadLocal(System.Threading.Tasks.Task ByRef)
49   at System.Threading.Tasks.Task.ExecuteEntry(Boolean)
50   at System.Threading.Tasks.Task.System.Threading.IThreadPoolWorkItem.ExecuteWorkItem()
51   at System.Threading.ThreadPoolWorkQueue.Dispatch()
52   at System.Threading._ThreadPoolWaitCallback.PerformWaitCallback()
53**2021-Nov-12 14:14:16**
54Application: devenv.exe
55Framework Version: v4.0.30319
56Description: The application requested process termination through System.Environment.FailFast(string message).
57Message: System.IO.FileNotFoundException: Could not load file or assembly 'System.Runtime.CompilerServices.Unsafe, Version=4.0.4.1, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' or one of its dependencies. The system cannot find the file specified.
58File name: 'System.Runtime.CompilerServices.Unsafe, Version=4.0.4.1, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a'
59   at System.Threading.Tasks.ValueTask`1.AsTask()
60   at Microsoft.CodeAnalysis.Document.GetSyntaxTreeAsync(CancellationToken cancellationToken)
61   at Microsoft.VisualStudio.LanguageServices.Implementation.Progression.SymbolContainment.&lt;GetContainedSyntaxNodesAsync&gt;d__0.MoveNext()
62--- End of stack trace from previous location where exception was thrown ---
63   at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)
64   at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
65   at Microsoft.VisualStudio.LanguageServices.Implementation.Progression.ContainsChildrenGraphQuery.&lt;GetGraphAsync&gt;d__0.MoveNext()
66
67WRN: Assembly binding logging is turned OFF.
68To enable assembly bind failure logging, set the registry value [HKLM\Software\Microsoft\Fusion!EnableLog] (DWORD) to 1.
69Note: There is some performance penalty associated with assembly bind failure logging.
70To turn this feature off, remove the registry value [HKLM\Software\Microsoft\Fusion!EnableLog].
71
72Stack:
73   at System.Environment.FailFast(System.String, System.Exception)
74   at Microsoft.CodeAnalysis.FailFast.OnFatalException(System.Exception)
75   at Microsoft.CodeAnalysis.ErrorReporting.FatalError.Report(System.Exception, System.Action`1&lt;System.Exception&gt;)
76   at Microsoft.CodeAnalysis.ErrorReporting.FatalError.ReportUnlessCanceled(System.Exception)
77   at Roslyn.Utilities.TaskExtensions+&lt;&gt;c__DisplayClass7_0`1[[System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089]].&lt;SafeContinueWith&gt;g__outerFunction|0(System.Threading.Tasks.Task)
78   at System.Threading.Tasks.Task.ThrowIfExceptional(Boolean)
79   at System.Threading.Tasks.Task`1[[System.__Canon, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089]].GetResultCore(Boolean)
80   at System.Threading.Tasks.Task`1[[System.__Canon, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089]].get_Result()
81   at Microsoft.VisualStudio.LanguageServices.Implementation.Progression.GraphQueryManager+&lt;&gt;c__DisplayClass14_0.&lt;PopulateContextGraphAsync&gt;b__1(System.Threading.Tasks.Task`1&lt;Microsoft.VisualStudio.LanguageServices.Implementation.Progression.GraphBuilder[]&gt;)
82   at Roslyn.Utilities.TaskExtensions+&lt;&gt;c__DisplayClass6_0`1[[System.__Canon, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089]].&lt;SafeContinueWith&gt;b__0(System.Threading.Tasks.Task)
83   at Roslyn.Utilities.TaskExtensions+&lt;&gt;c__DisplayClass3_0.&lt;SafeContinueWith&gt;g__continuationFunction|0(System.Threading.Tasks.Task)
84   at Roslyn.Utilities.TaskExtensions+&lt;&gt;c__DisplayClass7_0`1[[System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089]].&lt;SafeContinueWith&gt;g__outerFunction|0(System.Threading.Tasks.Task)
85   at System.Threading.Tasks.ContinuationResultTaskFromTask`1[[System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089]].InnerInvoke()
86   at System.Threading.Tasks.Task.Execute()
87   at System.Threading.Tasks.Task.ExecutionContextCallback(System.Object)
88   at System.Threading.ExecutionContext.RunInternal(System.Threading.ExecutionContext, System.Threading.ContextCallback, System.Object, Boolean)
89   at System.Threading.ExecutionContext.Run(System.Threading.ExecutionContext, System.Threading.ContextCallback, System.Object, Boolean)
90   at System.Threading.Tasks.Task.ExecuteWithThreadLocal(System.Threading.Tasks.Task ByRef)
91   at System.Threading.Tasks.Task.ExecuteEntry(Boolean)
92   at System.Threading.Tasks.Task.System.Threading.IThreadPoolWorkItem.ExecuteWorkItem()
93   at System.Threading.ThreadPoolWorkQueue.Dispatch()
94   at System.Threading._ThreadPoolWaitCallback.PerformWaitCallback()
95**2021-Nov-12 14:14:19**
96Faulting application name: devenv.exe, version: 15.8.28010.2050, time stamp: 0x5bda1fc3
97Faulting module name: unknown, version: 0.0.0.0, time stamp: 0x00000000
98Exception code: 0x80131623
99Fault offset: 0x19a1c93a
100Faulting process id: 0x3d44
101Faulting application start time: 0x01d7d801d444a508
102Faulting application path: C:\Program Files (x86)\Microsoft Visual Studio\2017\Professional\Common7\IDE\devenv.exe
103Faulting module path: unknown
104Report Id: e230b637-fd72-47f8-a0d5-d2c4ccb10943
105**2021-Nov-12 14:14:35**
106Fault bucket 1659198495851531123, type 5
107Event Name: CLR20r3
108Response: Not available
109Cab Id: 0
110
111Problem signature:
112P1: devenv.exe
113P2: 15.8.28010.2050
114P3: 5bda1fc3
115P4: Microsoft.CodeAnalysis.Workspaces
116P5: 2.9.0.63208
117P6: f144aff0
118P7: 500
119P8: 41
120P9: System.IO.FileNotFoundException
121P10: 
122**2021-Nov-12 14:28:05**
123Application: ServiceHub.RoslynCodeAnalysisService32.exe
124Framework Version: v4.0.30319
125Description: The application requested process termination through System.Environment.FailFast(string message).
126Message: System.OperationCanceledException: The operation was canceled.
127   at System.Threading.CancellationToken.ThrowOperationCanceledException()
128   at Microsoft.CodeAnalysis.Remote.Extensions.&lt;InvokeAsync&gt;d__3`1.MoveNext()
129--- End of stack trace from previous location where exception was thrown ---
130   at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)
131   at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
132   at Microsoft.CodeAnalysis.Remote.ServiceHubServiceBase.&lt;RunServiceAsync&gt;d__25`1.MoveNext()
133--- End of stack trace from previous location where exception was thrown ---
134   at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)
135   at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
136   at Microsoft.CodeAnalysis.Remote.SnapshotService.JsonRpcAssetSource.&lt;RequestAssetsAsync&gt;d__2.MoveNext()
137Stack:
138   at System.Environment.FailFast(System.String, System.Exception)
139   at Microsoft.CodeAnalysis.FailFast.OnFatalException(System.Exception)
140   at Microsoft.CodeAnalysis.Remote.SnapshotService+JsonRpcAssetSource.ReportUnlessCanceled(System.Exception, System.Threading.CancellationToken)
141   at Microsoft.CodeAnalysis.Remote.SnapshotService+JsonRpcAssetSource+&lt;RequestAssetsAsync&gt;d__2.MoveNext()
142   at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(System.Threading.Tasks.Task)
143   at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(System.Threading.Tasks.Task)
144   at Microsoft.CodeAnalysis.Remote.SnapshotService+JsonRpcAssetSource+&lt;RequestAssetsAsync&gt;d__2.MoveNext()
145   at System.Runtime.CompilerServices.AsyncMethodBuilderCore+MoveNextRunner.InvokeMoveNext(System.Object)
146   at System.Threading.ExecutionContext.RunInternal(System.Threading.ExecutionContext, System.Threading.ContextCallback, System.Object, Boolean)
147   at System.Threading.ExecutionContext.Run(System.Threading.ExecutionContext, System.Threading.ContextCallback, System.Object, Boolean)
148   at System.Runtime.CompilerServices.AsyncMethodBuilderCore+MoveNextRunner.Run()
149   at System.Threading.Tasks.AwaitTaskContinuation.RunOrScheduleAction(System.Action, Boolean, System.Threading.Tasks.Task ByRef)
150   at System.Threading.Tasks.Task.FinishContinuations()
151   at System.Threading.Tasks.Task.FinishStageThree()
152   at System.Threading.Tasks.Task.CancellationCleanupLogic()
153   at System.Threading.Tasks.Task`1[[System.__Canon, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089]].TrySetCanceled(System.Threading.CancellationToken, System.Object)
154   at System.Runtime.CompilerServices.AsyncTaskMethodBuilder`1[[System.__Canon, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089]].SetException(System.Exception)
155   at Microsoft.CodeAnalysis.Remote.ServiceHubServiceBase+&lt;RunServiceAsync&gt;d__25`1[[System.__Canon, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089]].MoveNext()
156   at System.Runtime.CompilerServices.AsyncMethodBuilderCore+MoveNextRunner.InvokeMoveNext(System.Object)
157   at System.Threading.ExecutionContext.RunInternal(System.Threading.ExecutionContext, System.Threading.ContextCallback, System.Object, Boolean)
158   at System.Threading.ExecutionContext.Run(System.Threading.ExecutionContext, System.Threading.ContextCallback, System.Object, Boolean)
159   at System.Runtime.CompilerServices.AsyncMethodBuilderCore+MoveNextRunner.Run()
160   at System.Threading.Tasks.AwaitTaskContinuation.RunOrScheduleAction(System.Action, Boolean, System.Threading.Tasks.Task ByRef)
161   at System.Threading.Tasks.Task.FinishContinuations()
162   at System.Threading.Tasks.Task.FinishStageThree()
163   at System.Threading.Tasks.Task.CancellationCleanupLogic()
164   at System.Threading.Tasks.Task`1[[System.__Canon, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089]].TrySetCanceled(System.Threading.CancellationToken, System.Object)
165   at System.Runtime.CompilerServices.AsyncTaskMethodBuilder`1[[System.__Canon, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089]].SetException(System.Exception)
166   at Microsoft.CodeAnalysis.Remote.Extensions+&lt;InvokeAsync&gt;d__3`1[[System.__Canon, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089]].MoveNext()
167   at System.Runtime.CompilerServices.AsyncMethodBuilderCore+MoveNextRunner.InvokeMoveNext(System.Object)
168   at System.Threading.ExecutionContext.RunInternal(System.Threading.ExecutionContext, System.Threading.ContextCallback, System.Object, Boolean)
169   at System.Threading.ExecutionContext.Run(System.Threading.ExecutionContext, System.Threading.ContextCallback, System.Object, Boolean)
170   at System.Runtime.CompilerServices.AsyncMethodBuilderCore+MoveNextRunner.Run()
171   at System.Threading.Tasks.AwaitTaskContinuation.RunOrScheduleAction(System.Action, Boolean, System.Threading.Tasks.Task ByRef)
172   at System.Threading.Tasks.Task.FinishContinuations()
173   at System.Threading.Tasks.Task.FinishStageThree()
174   at System.Threading.Tasks.Task.CancellationCleanupLogic()
175   at System.Threading.Tasks.Task`1[[System.Threading.Tasks.VoidTaskResult, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089]].TrySetCanceled(System.Threading.CancellationToken, System.Object)
176   at System.Threading.Tasks.TaskFactory`1[[System.Threading.Tasks.VoidTaskResult, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089]].FromAsyncCoreLogic(System.IAsyncResult, System.Func`2&lt;System.IAsyncResult,System.Threading.Tasks.VoidTaskResult&gt;, System.Action`1&lt;System.IAsyncResult&gt;, System.Threading.Tasks.Task`1&lt;System.Threading.Tasks.VoidTaskResult&gt;, Boolean)
177   at System.Threading.Tasks.TaskFactory`1+&lt;&gt;c__DisplayClass35_0[[System.Threading.Tasks.VoidTaskResult, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089]].&lt;FromAsyncImpl&gt;b__0(System.IAsyncResult)
178   at System.IO.Pipes.NamedPipeServerStream.AsyncWaitForConnectionCallback(UInt32, UInt32, System.Threading.NativeOverlapped*)
179   at System.Threading._IOCompletionCallback.PerformIOCompletionCallback(UInt32, UInt32, System.Threading.NativeOverlapped*)
180
181**2021-Nov-12 14:28:06**
182Faulting application name: ServiceHub.RoslynCodeAnalysisService32.exe, version: 1.3.77.18573, time stamp: 0xdc9a59bf
183Faulting module name: unknown, version: 0.0.0.0, time stamp: 0x00000000
184Exception code: 0x80131623
185Fault offset: 0x0aa234ca
186Faulting process id: 0x2d4c
187Faulting application start time: 0x01d7d803c7d13c18
188Faulting application path: C:\Program Files (x86)\Microsoft Visual Studio\2017\Professional\Common7\ServiceHub\Hosts\ServiceHub.Host.CLR.x86\ServiceHub.RoslynCodeAnalysisService32.exe
189Faulting module path: unknown
190
191**2021-Nov-12 14:28:11**
192Fault bucket 1674005537433911736, type 5
193Event Name: CLR20r3
194Response: Not available
195Cab Id: 0
196
197Problem signature:
198P1: O5DFLQX35YXZVV3T1Q5XYRCHNTQNLFQ2
199P2: 1.3.77.18573
200P3: dc9a59bf
201P4: mscorlib
202P5: 4.8.4420.0
203P6: 6109cb33
204P7: 3e6d
205P8: 15
206P9: System.OperationCanceled
207P10: 
208

The last one (today's first):

1**2021-Nov-12 14:13:41**
2Application: devenv.exe
3Framework Version: v4.0.30319
4Description: The application requested process termination through System.Environment.FailFast(string message).
5Message: System.IO.FileNotFoundException: Could not load file or assembly 'System.Runtime.CompilerServices.Unsafe, Version=4.0.4.1, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' or one of its dependencies. The system cannot find the file specified.
6File name: 'System.Runtime.CompilerServices.Unsafe, Version=4.0.4.1, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a'
7   at System.Threading.Tasks.ValueTask`1.AsTask()
8   at Microsoft.CodeAnalysis.Document.GetSyntaxTreeAsync(CancellationToken cancellationToken)
9   at Microsoft.CodeAnalysis.Host.BackgroundParser.&lt;&gt;c__DisplayClass20_0.&lt;ParseDocumentAsync&gt;b__0()
10   at System.Threading.Tasks.Task`1.InnerInvoke()
11   at System.Threading.Tasks.Task.Execute()
12
13WRN: Assembly binding logging is turned OFF.
14To enable assembly bind failure logging, set the registry value [HKLM\Software\Microsoft\Fusion!EnableLog] (DWORD) to 1.
15Note: There is some performance penalty associated with assembly bind failure logging.
16To turn this feature off, remove the registry value [HKLM\Software\Microsoft\Fusion!EnableLog].
17
18Stack:
19   at System.Environment.FailFast(System.String, System.Exception)
20   at Microsoft.CodeAnalysis.FailFast.OnFatalException(System.Exception)
21   at Microsoft.CodeAnalysis.ErrorReporting.FatalError.Report(System.Exception, System.Action`1&lt;System.Exception&gt;)
22   at Microsoft.CodeAnalysis.ErrorReporting.FatalError.Report(System.Exception)
23   at Roslyn.Utilities.TaskExtensions.ReportFatalErrorWorker(System.Threading.Tasks.Task, System.Object)
24   at System.Threading.Tasks.ContinuationTaskFromTask.InnerInvoke()
25   at System.Threading.Tasks.Task.Execute()
26   at System.Threading.Tasks.Task.ExecutionContextCallback(System.Object)
27   at System.Threading.ExecutionContext.RunInternal(System.Threading.ExecutionContext, System.Threading.ContextCallback, System.Object, Boolean)
28   at System.Threading.ExecutionContext.Run(System.Threading.ExecutionContext, System.Threading.ContextCallback, System.Object, Boolean)
29   at System.Threading.Tasks.Task.ExecuteWithThreadLocal(System.Threading.Tasks.Task ByRef)
30   at System.Threading.Tasks.Task.ExecuteEntry(Boolean)
31   at System.Threading.Tasks.ThreadPoolTaskScheduler.TryExecuteTaskInline(System.Threading.Tasks.Task, Boolean)
32   at System.Threading.Tasks.TaskScheduler.TryRunInline(System.Threading.Tasks.Task, Boolean)
33   at System.Threading.Tasks.TaskContinuation.InlineIfPossibleOrElseQueue(System.Threading.Tasks.Task, Boolean)
34   at System.Threading.Tasks.StandardTaskContinuation.Run(System.Threading.Tasks.Task, Boolean)
35   at System.Threading.Tasks.Task.FinishContinuations()
36   at System.Threading.Tasks.Task.FinishStageThree()
37   at System.Threading.Tasks.Task.FinishStageTwo()
38   at System.Threading.Tasks.Task.Finish(Boolean)
39   at System.Threading.Tasks.Task`1[[System.__Canon, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089]].TrySetException(System.Object)
40   at System.Threading.Tasks.UnwrapPromise`1[[System.__Canon, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089]].TrySetFromTask(System.Threading.Tasks.Task, Boolean)
41   at System.Threading.Tasks.UnwrapPromise`1[[System.__Canon, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089]].ProcessCompletedOuterTask(System.Threading.Tasks.Task)
42   at System.Threading.Tasks.UnwrapPromise`1[[System.__Canon, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089]].InvokeCore(System.Threading.Tasks.Task)
43   at System.Threading.Tasks.UnwrapPromise`1[[System.__Canon, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089]].Invoke(System.Threading.Tasks.Task)
44   at System.Threading.Tasks.Task.FinishContinuations()
45   at System.Threading.Tasks.Task.FinishStageThree()
46   at System.Threading.Tasks.Task.FinishStageTwo()
47   at System.Threading.Tasks.Task.Finish(Boolean)
48   at System.Threading.Tasks.Task.ExecuteWithThreadLocal(System.Threading.Tasks.Task ByRef)
49   at System.Threading.Tasks.Task.ExecuteEntry(Boolean)
50   at System.Threading.Tasks.Task.System.Threading.IThreadPoolWorkItem.ExecuteWorkItem()
51   at System.Threading.ThreadPoolWorkQueue.Dispatch()
52   at System.Threading._ThreadPoolWaitCallback.PerformWaitCallback()
53**2021-Nov-12 14:14:16**
54Application: devenv.exe
55Framework Version: v4.0.30319
56Description: The application requested process termination through System.Environment.FailFast(string message).
57Message: System.IO.FileNotFoundException: Could not load file or assembly 'System.Runtime.CompilerServices.Unsafe, Version=4.0.4.1, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' or one of its dependencies. The system cannot find the file specified.
58File name: 'System.Runtime.CompilerServices.Unsafe, Version=4.0.4.1, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a'
59   at System.Threading.Tasks.ValueTask`1.AsTask()
60   at Microsoft.CodeAnalysis.Document.GetSyntaxTreeAsync(CancellationToken cancellationToken)
61   at Microsoft.VisualStudio.LanguageServices.Implementation.Progression.SymbolContainment.&lt;GetContainedSyntaxNodesAsync&gt;d__0.MoveNext()
62--- End of stack trace from previous location where exception was thrown ---
63   at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)
64   at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
65   at Microsoft.VisualStudio.LanguageServices.Implementation.Progression.ContainsChildrenGraphQuery.&lt;GetGraphAsync&gt;d__0.MoveNext()
66
67WRN: Assembly binding logging is turned OFF.
68To enable assembly bind failure logging, set the registry value [HKLM\Software\Microsoft\Fusion!EnableLog] (DWORD) to 1.
69Note: There is some performance penalty associated with assembly bind failure logging.
70To turn this feature off, remove the registry value [HKLM\Software\Microsoft\Fusion!EnableLog].
71
72Stack:
73   at System.Environment.FailFast(System.String, System.Exception)
74   at Microsoft.CodeAnalysis.FailFast.OnFatalException(System.Exception)
75   at Microsoft.CodeAnalysis.ErrorReporting.FatalError.Report(System.Exception, System.Action`1&lt;System.Exception&gt;)
76   at Microsoft.CodeAnalysis.ErrorReporting.FatalError.ReportUnlessCanceled(System.Exception)
77   at Roslyn.Utilities.TaskExtensions+&lt;&gt;c__DisplayClass7_0`1[[System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089]].&lt;SafeContinueWith&gt;g__outerFunction|0(System.Threading.Tasks.Task)
78   at System.Threading.Tasks.Task.ThrowIfExceptional(Boolean)
79   at System.Threading.Tasks.Task`1[[System.__Canon, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089]].GetResultCore(Boolean)
80   at System.Threading.Tasks.Task`1[[System.__Canon, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089]].get_Result()
81   at Microsoft.VisualStudio.LanguageServices.Implementation.Progression.GraphQueryManager+&lt;&gt;c__DisplayClass14_0.&lt;PopulateContextGraphAsync&gt;b__1(System.Threading.Tasks.Task`1&lt;Microsoft.VisualStudio.LanguageServices.Implementation.Progression.GraphBuilder[]&gt;)
82   at Roslyn.Utilities.TaskExtensions+&lt;&gt;c__DisplayClass6_0`1[[System.__Canon, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089]].&lt;SafeContinueWith&gt;b__0(System.Threading.Tasks.Task)
83   at Roslyn.Utilities.TaskExtensions+&lt;&gt;c__DisplayClass3_0.&lt;SafeContinueWith&gt;g__continuationFunction|0(System.Threading.Tasks.Task)
84   at Roslyn.Utilities.TaskExtensions+&lt;&gt;c__DisplayClass7_0`1[[System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089]].&lt;SafeContinueWith&gt;g__outerFunction|0(System.Threading.Tasks.Task)
85   at System.Threading.Tasks.ContinuationResultTaskFromTask`1[[System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089]].InnerInvoke()
86   at System.Threading.Tasks.Task.Execute()
87   at System.Threading.Tasks.Task.ExecutionContextCallback(System.Object)
88   at System.Threading.ExecutionContext.RunInternal(System.Threading.ExecutionContext, System.Threading.ContextCallback, System.Object, Boolean)
89   at System.Threading.ExecutionContext.Run(System.Threading.ExecutionContext, System.Threading.ContextCallback, System.Object, Boolean)
90   at System.Threading.Tasks.Task.ExecuteWithThreadLocal(System.Threading.Tasks.Task ByRef)
91   at System.Threading.Tasks.Task.ExecuteEntry(Boolean)
92   at System.Threading.Tasks.Task.System.Threading.IThreadPoolWorkItem.ExecuteWorkItem()
93   at System.Threading.ThreadPoolWorkQueue.Dispatch()
94   at System.Threading._ThreadPoolWaitCallback.PerformWaitCallback()
95**2021-Nov-12 14:14:19**
96Faulting application name: devenv.exe, version: 15.8.28010.2050, time stamp: 0x5bda1fc3
97Faulting module name: unknown, version: 0.0.0.0, time stamp: 0x00000000
98Exception code: 0x80131623
99Fault offset: 0x19a1c93a
100Faulting process id: 0x3d44
101Faulting application start time: 0x01d7d801d444a508
102Faulting application path: C:\Program Files (x86)\Microsoft Visual Studio\2017\Professional\Common7\IDE\devenv.exe
103Faulting module path: unknown
104Report Id: e230b637-fd72-47f8-a0d5-d2c4ccb10943
105**2021-Nov-12 14:14:35**
106Fault bucket 1659198495851531123, type 5
107Event Name: CLR20r3
108Response: Not available
109Cab Id: 0
110
111Problem signature:
112P1: devenv.exe
113P2: 15.8.28010.2050
114P3: 5bda1fc3
115P4: Microsoft.CodeAnalysis.Workspaces
116P5: 2.9.0.63208
117P6: f144aff0
118P7: 500
119P8: 41
120P9: System.IO.FileNotFoundException
121P10: 
122**2021-Nov-12 14:28:05**
123Application: ServiceHub.RoslynCodeAnalysisService32.exe
124Framework Version: v4.0.30319
125Description: The application requested process termination through System.Environment.FailFast(string message).
126Message: System.OperationCanceledException: The operation was canceled.
127   at System.Threading.CancellationToken.ThrowOperationCanceledException()
128   at Microsoft.CodeAnalysis.Remote.Extensions.&lt;InvokeAsync&gt;d__3`1.MoveNext()
129--- End of stack trace from previous location where exception was thrown ---
130   at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)
131   at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
132   at Microsoft.CodeAnalysis.Remote.ServiceHubServiceBase.&lt;RunServiceAsync&gt;d__25`1.MoveNext()
133--- End of stack trace from previous location where exception was thrown ---
134   at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)
135   at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
136   at Microsoft.CodeAnalysis.Remote.SnapshotService.JsonRpcAssetSource.&lt;RequestAssetsAsync&gt;d__2.MoveNext()
137Stack:
138   at System.Environment.FailFast(System.String, System.Exception)
139   at Microsoft.CodeAnalysis.FailFast.OnFatalException(System.Exception)
140   at Microsoft.CodeAnalysis.Remote.SnapshotService+JsonRpcAssetSource.ReportUnlessCanceled(System.Exception, System.Threading.CancellationToken)
141   at Microsoft.CodeAnalysis.Remote.SnapshotService+JsonRpcAssetSource+&lt;RequestAssetsAsync&gt;d__2.MoveNext()
142   at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(System.Threading.Tasks.Task)
143   at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(System.Threading.Tasks.Task)
144   at Microsoft.CodeAnalysis.Remote.SnapshotService+JsonRpcAssetSource+&lt;RequestAssetsAsync&gt;d__2.MoveNext()
145   at System.Runtime.CompilerServices.AsyncMethodBuilderCore+MoveNextRunner.InvokeMoveNext(System.Object)
146   at System.Threading.ExecutionContext.RunInternal(System.Threading.ExecutionContext, System.Threading.ContextCallback, System.Object, Boolean)
147   at System.Threading.ExecutionContext.Run(System.Threading.ExecutionContext, System.Threading.ContextCallback, System.Object, Boolean)
148   at System.Runtime.CompilerServices.AsyncMethodBuilderCore+MoveNextRunner.Run()
149   at System.Threading.Tasks.AwaitTaskContinuation.RunOrScheduleAction(System.Action, Boolean, System.Threading.Tasks.Task ByRef)
150   at System.Threading.Tasks.Task.FinishContinuations()
151   at System.Threading.Tasks.Task.FinishStageThree()
152   at System.Threading.Tasks.Task.CancellationCleanupLogic()
153   at System.Threading.Tasks.Task`1[[System.__Canon, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089]].TrySetCanceled(System.Threading.CancellationToken, System.Object)
154   at System.Runtime.CompilerServices.AsyncTaskMethodBuilder`1[[System.__Canon, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089]].SetException(System.Exception)
155   at Microsoft.CodeAnalysis.Remote.ServiceHubServiceBase+&lt;RunServiceAsync&gt;d__25`1[[System.__Canon, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089]].MoveNext()
156   at System.Runtime.CompilerServices.AsyncMethodBuilderCore+MoveNextRunner.InvokeMoveNext(System.Object)
157   at System.Threading.ExecutionContext.RunInternal(System.Threading.ExecutionContext, System.Threading.ContextCallback, System.Object, Boolean)
158   at System.Threading.ExecutionContext.Run(System.Threading.ExecutionContext, System.Threading.ContextCallback, System.Object, Boolean)
159   at System.Runtime.CompilerServices.AsyncMethodBuilderCore+MoveNextRunner.Run()
160   at System.Threading.Tasks.AwaitTaskContinuation.RunOrScheduleAction(System.Action, Boolean, System.Threading.Tasks.Task ByRef)
161   at System.Threading.Tasks.Task.FinishContinuations()
162   at System.Threading.Tasks.Task.FinishStageThree()
163   at System.Threading.Tasks.Task.CancellationCleanupLogic()
164   at System.Threading.Tasks.Task`1[[System.__Canon, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089]].TrySetCanceled(System.Threading.CancellationToken, System.Object)
165   at System.Runtime.CompilerServices.AsyncTaskMethodBuilder`1[[System.__Canon, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089]].SetException(System.Exception)
166   at Microsoft.CodeAnalysis.Remote.Extensions+&lt;InvokeAsync&gt;d__3`1[[System.__Canon, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089]].MoveNext()
167   at System.Runtime.CompilerServices.AsyncMethodBuilderCore+MoveNextRunner.InvokeMoveNext(System.Object)
168   at System.Threading.ExecutionContext.RunInternal(System.Threading.ExecutionContext, System.Threading.ContextCallback, System.Object, Boolean)
169   at System.Threading.ExecutionContext.Run(System.Threading.ExecutionContext, System.Threading.ContextCallback, System.Object, Boolean)
170   at System.Runtime.CompilerServices.AsyncMethodBuilderCore+MoveNextRunner.Run()
171   at System.Threading.Tasks.AwaitTaskContinuation.RunOrScheduleAction(System.Action, Boolean, System.Threading.Tasks.Task ByRef)
172   at System.Threading.Tasks.Task.FinishContinuations()
173   at System.Threading.Tasks.Task.FinishStageThree()
174   at System.Threading.Tasks.Task.CancellationCleanupLogic()
175   at System.Threading.Tasks.Task`1[[System.Threading.Tasks.VoidTaskResult, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089]].TrySetCanceled(System.Threading.CancellationToken, System.Object)
176   at System.Threading.Tasks.TaskFactory`1[[System.Threading.Tasks.VoidTaskResult, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089]].FromAsyncCoreLogic(System.IAsyncResult, System.Func`2&lt;System.IAsyncResult,System.Threading.Tasks.VoidTaskResult&gt;, System.Action`1&lt;System.IAsyncResult&gt;, System.Threading.Tasks.Task`1&lt;System.Threading.Tasks.VoidTaskResult&gt;, Boolean)
177   at System.Threading.Tasks.TaskFactory`1+&lt;&gt;c__DisplayClass35_0[[System.Threading.Tasks.VoidTaskResult, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089]].&lt;FromAsyncImpl&gt;b__0(System.IAsyncResult)
178   at System.IO.Pipes.NamedPipeServerStream.AsyncWaitForConnectionCallback(UInt32, UInt32, System.Threading.NativeOverlapped*)
179   at System.Threading._IOCompletionCallback.PerformIOCompletionCallback(UInt32, UInt32, System.Threading.NativeOverlapped*)
180
181**2021-Nov-12 14:28:06**
182Faulting application name: ServiceHub.RoslynCodeAnalysisService32.exe, version: 1.3.77.18573, time stamp: 0xdc9a59bf
183Faulting module name: unknown, version: 0.0.0.0, time stamp: 0x00000000
184Exception code: 0x80131623
185Fault offset: 0x0aa234ca
186Faulting process id: 0x2d4c
187Faulting application start time: 0x01d7d803c7d13c18
188Faulting application path: C:\Program Files (x86)\Microsoft Visual Studio\2017\Professional\Common7\ServiceHub\Hosts\ServiceHub.Host.CLR.x86\ServiceHub.RoslynCodeAnalysisService32.exe
189Faulting module path: unknown
190
191**2021-Nov-12 14:28:11**
192Fault bucket 1674005537433911736, type 5
193Event Name: CLR20r3
194Response: Not available
195Cab Id: 0
196
197Problem signature:
198P1: O5DFLQX35YXZVV3T1Q5XYRCHNTQNLFQ2
199P2: 1.3.77.18573
200P3: dc9a59bf
201P4: mscorlib
202P5: 4.8.4420.0
203P6: 6109cb33
204P7: 3e6d
205P8: 15
206P9: System.OperationCanceled
207P10: 
208**2021-Nov-15 09:45:25**
209Application: devenv.exe
210Framework Version: v4.0.30319
211Description: The application requested process termination through System.Environment.FailFast(string message).
212Message: System.IO.FileNotFoundException: Could not load file or assembly 'System.Runtime.CompilerServices.Unsafe, Version=4.0.4.1, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' or one of its dependencies. The system cannot find the file specified.
213File name: 'System.Runtime.CompilerServices.Unsafe, Version=4.0.4.1, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a'
214   at System.Threading.Tasks.ValueTask`1.AsTask()
215   at Microsoft.CodeAnalysis.Document.GetSyntaxTreeAsync(CancellationToken cancellationToken)
216   at Microsoft.CodeAnalysis.Host.BackgroundParser.&lt;&gt;c__DisplayClass20_0.&lt;ParseDocumentAsync&gt;b__0()
217   at System.Threading.Tasks.Task`1.InnerInvoke()
218   at System.Threading.Tasks.Task.Execute()
219
220WRN: Assembly binding logging is turned OFF.
221To enable assembly bind failure logging, set the registry value [HKLM\Software\Microsoft\Fusion!EnableLog] (DWORD) to 1.
222Note: There is some performance penalty associated with assembly bind failure logging.
223To turn this feature off, remove the registry value [HKLM\Software\Microsoft\Fusion!EnableLog].
224
225Stack:
226   at System.Environment.FailFast(System.String, System.Exception)
227   at Microsoft.CodeAnalysis.FailFast.OnFatalException(System.Exception)
228   at Microsoft.CodeAnalysis.ErrorReporting.FatalError.Report(System.Exception, System.Action`1&lt;System.Exception&gt;)
229   at Microsoft.CodeAnalysis.ErrorReporting.FatalError.Report(System.Exception)
230   at Roslyn.Utilities.TaskExtensions.ReportFatalErrorWorker(System.Threading.Tasks.Task, System.Object)
231   at System.Threading.Tasks.ContinuationTaskFromTask.InnerInvoke()
232   at System.Threading.Tasks.Task.Execute()
233   at System.Threading.Tasks.Task.ExecutionContextCallback(System.Object)
234   at System.Threading.ExecutionContext.RunInternal(System.Threading.ExecutionContext, System.Threading.ContextCallback, System.Object, Boolean)
235   at System.Threading.ExecutionContext.Run(System.Threading.ExecutionContext, System.Threading.ContextCallback, System.Object, Boolean)
236   at System.Threading.Tasks.Task.ExecuteWithThreadLocal(System.Threading.Tasks.Task ByRef)
237   at System.Threading.Tasks.Task.ExecuteEntry(Boolean)
238   at System.Threading.Tasks.ThreadPoolTaskScheduler.TryExecuteTaskInline(System.Threading.Tasks.Task, Boolean)
239   at System.Threading.Tasks.TaskScheduler.TryRunInline(System.Threading.Tasks.Task, Boolean)
240   at System.Threading.Tasks.TaskContinuation.InlineIfPossibleOrElseQueue(System.Threading.Tasks.Task, Boolean)
241   at System.Threading.Tasks.StandardTaskContinuation.Run(System.Threading.Tasks.Task, Boolean)
242   at System.Threading.Tasks.Task.FinishContinuations()
243   at System.Threading.Tasks.Task.FinishStageThree()
244   at System.Threading.Tasks.Task.FinishStageTwo()
245   at System.Threading.Tasks.Task.Finish(Boolean)
246   at System.Threading.Tasks.Task`1[[System.__Canon, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089]].TrySetException(System.Object)
247   at System.Threading.Tasks.UnwrapPromise`1[[System.__Canon, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089]].TrySetFromTask(System.Threading.Tasks.Task, Boolean)
248   at System.Threading.Tasks.UnwrapPromise`1[[System.__Canon, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089]].ProcessCompletedOuterTask(System.Threading.Tasks.Task)
249   at System.Threading.Tasks.UnwrapPromise`1[[System.__Canon, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089]].InvokeCore(System.Threading.Tasks.Task)
250   at System.Threading.Tasks.UnwrapPromise`1[[System.__Canon, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089]].Invoke(System.Threading.Tasks.Task)
251   at System.Threading.Tasks.Task.FinishContinuations()
252   at System.Threading.Tasks.Task.FinishStageThree()
253   at System.Threading.Tasks.Task.FinishStageTwo()
254   at System.Threading.Tasks.Task.Finish(Boolean)
255   at System.Threading.Tasks.Task.ExecuteWithThreadLocal(System.Threading.Tasks.Task ByRef)
256   at System.Threading.Tasks.Task.ExecuteEntry(Boolean)
257   at System.Threading.Tasks.Task.System.Threading.IThreadPoolWorkItem.ExecuteWorkItem()
258   at System.Threading.ThreadPoolWorkQueue.Dispatch()
259   at System.Threading._ThreadPoolWaitCallback.PerformWaitCallback()
260

Roslyn.Utilities.TaskExtensions.ReportFatalErrorWorker() seems to be a common fault catcher, so my guess is the issue has smth to do with background code analysis, launched upon loading a solution. Who broke it and how?

Searching for the error message System.IO.FileNotFoundException: Could not load file or assembly 'System.Runtime.CompilerServices.Unsafe, Version=4.0.4.1, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' or one of its dependencies. The system cannot find the file specified. gave me the following links: 1, 2, 3, 4, 5.
But none of those describe my scenario. I do not have any [known] dependency on that library in any of my projects. Until Fri I wasn't even aware of it!

Prior to trying a possible remedy, suggested in 3's accepted answer ("the error went away after I ran a NuGet update for that DLL"), I want to understand, what the hell happened (and how!)? I do not have an explicit entry for such NuGet package in my list. I did not install or change anything recently.
This fiasco is precisely the reason why I try to keep rarely-changing [=> known & stable] development environment.

Searching for System.Runtime.CompilerServices.Unsafe.dll on the HDD produces the following:

1**2021-Nov-12 14:13:41**
2Application: devenv.exe
3Framework Version: v4.0.30319
4Description: The application requested process termination through System.Environment.FailFast(string message).
5Message: System.IO.FileNotFoundException: Could not load file or assembly 'System.Runtime.CompilerServices.Unsafe, Version=4.0.4.1, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' or one of its dependencies. The system cannot find the file specified.
6File name: 'System.Runtime.CompilerServices.Unsafe, Version=4.0.4.1, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a'
7   at System.Threading.Tasks.ValueTask`1.AsTask()
8   at Microsoft.CodeAnalysis.Document.GetSyntaxTreeAsync(CancellationToken cancellationToken)
9   at Microsoft.CodeAnalysis.Host.BackgroundParser.&lt;&gt;c__DisplayClass20_0.&lt;ParseDocumentAsync&gt;b__0()
10   at System.Threading.Tasks.Task`1.InnerInvoke()
11   at System.Threading.Tasks.Task.Execute()
12
13WRN: Assembly binding logging is turned OFF.
14To enable assembly bind failure logging, set the registry value [HKLM\Software\Microsoft\Fusion!EnableLog] (DWORD) to 1.
15Note: There is some performance penalty associated with assembly bind failure logging.
16To turn this feature off, remove the registry value [HKLM\Software\Microsoft\Fusion!EnableLog].
17
18Stack:
19   at System.Environment.FailFast(System.String, System.Exception)
20   at Microsoft.CodeAnalysis.FailFast.OnFatalException(System.Exception)
21   at Microsoft.CodeAnalysis.ErrorReporting.FatalError.Report(System.Exception, System.Action`1&lt;System.Exception&gt;)
22   at Microsoft.CodeAnalysis.ErrorReporting.FatalError.Report(System.Exception)
23   at Roslyn.Utilities.TaskExtensions.ReportFatalErrorWorker(System.Threading.Tasks.Task, System.Object)
24   at System.Threading.Tasks.ContinuationTaskFromTask.InnerInvoke()
25   at System.Threading.Tasks.Task.Execute()
26   at System.Threading.Tasks.Task.ExecutionContextCallback(System.Object)
27   at System.Threading.ExecutionContext.RunInternal(System.Threading.ExecutionContext, System.Threading.ContextCallback, System.Object, Boolean)
28   at System.Threading.ExecutionContext.Run(System.Threading.ExecutionContext, System.Threading.ContextCallback, System.Object, Boolean)
29   at System.Threading.Tasks.Task.ExecuteWithThreadLocal(System.Threading.Tasks.Task ByRef)
30   at System.Threading.Tasks.Task.ExecuteEntry(Boolean)
31   at System.Threading.Tasks.ThreadPoolTaskScheduler.TryExecuteTaskInline(System.Threading.Tasks.Task, Boolean)
32   at System.Threading.Tasks.TaskScheduler.TryRunInline(System.Threading.Tasks.Task, Boolean)
33   at System.Threading.Tasks.TaskContinuation.InlineIfPossibleOrElseQueue(System.Threading.Tasks.Task, Boolean)
34   at System.Threading.Tasks.StandardTaskContinuation.Run(System.Threading.Tasks.Task, Boolean)
35   at System.Threading.Tasks.Task.FinishContinuations()
36   at System.Threading.Tasks.Task.FinishStageThree()
37   at System.Threading.Tasks.Task.FinishStageTwo()
38   at System.Threading.Tasks.Task.Finish(Boolean)
39   at System.Threading.Tasks.Task`1[[System.__Canon, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089]].TrySetException(System.Object)
40   at System.Threading.Tasks.UnwrapPromise`1[[System.__Canon, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089]].TrySetFromTask(System.Threading.Tasks.Task, Boolean)
41   at System.Threading.Tasks.UnwrapPromise`1[[System.__Canon, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089]].ProcessCompletedOuterTask(System.Threading.Tasks.Task)
42   at System.Threading.Tasks.UnwrapPromise`1[[System.__Canon, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089]].InvokeCore(System.Threading.Tasks.Task)
43   at System.Threading.Tasks.UnwrapPromise`1[[System.__Canon, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089]].Invoke(System.Threading.Tasks.Task)
44   at System.Threading.Tasks.Task.FinishContinuations()
45   at System.Threading.Tasks.Task.FinishStageThree()
46   at System.Threading.Tasks.Task.FinishStageTwo()
47   at System.Threading.Tasks.Task.Finish(Boolean)
48   at System.Threading.Tasks.Task.ExecuteWithThreadLocal(System.Threading.Tasks.Task ByRef)
49   at System.Threading.Tasks.Task.ExecuteEntry(Boolean)
50   at System.Threading.Tasks.Task.System.Threading.IThreadPoolWorkItem.ExecuteWorkItem()
51   at System.Threading.ThreadPoolWorkQueue.Dispatch()
52   at System.Threading._ThreadPoolWaitCallback.PerformWaitCallback()
53**2021-Nov-12 14:14:16**
54Application: devenv.exe
55Framework Version: v4.0.30319
56Description: The application requested process termination through System.Environment.FailFast(string message).
57Message: System.IO.FileNotFoundException: Could not load file or assembly 'System.Runtime.CompilerServices.Unsafe, Version=4.0.4.1, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' or one of its dependencies. The system cannot find the file specified.
58File name: 'System.Runtime.CompilerServices.Unsafe, Version=4.0.4.1, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a'
59   at System.Threading.Tasks.ValueTask`1.AsTask()
60   at Microsoft.CodeAnalysis.Document.GetSyntaxTreeAsync(CancellationToken cancellationToken)
61   at Microsoft.VisualStudio.LanguageServices.Implementation.Progression.SymbolContainment.&lt;GetContainedSyntaxNodesAsync&gt;d__0.MoveNext()
62--- End of stack trace from previous location where exception was thrown ---
63   at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)
64   at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
65   at Microsoft.VisualStudio.LanguageServices.Implementation.Progression.ContainsChildrenGraphQuery.&lt;GetGraphAsync&gt;d__0.MoveNext()
66
67WRN: Assembly binding logging is turned OFF.
68To enable assembly bind failure logging, set the registry value [HKLM\Software\Microsoft\Fusion!EnableLog] (DWORD) to 1.
69Note: There is some performance penalty associated with assembly bind failure logging.
70To turn this feature off, remove the registry value [HKLM\Software\Microsoft\Fusion!EnableLog].
71
72Stack:
73   at System.Environment.FailFast(System.String, System.Exception)
74   at Microsoft.CodeAnalysis.FailFast.OnFatalException(System.Exception)
75   at Microsoft.CodeAnalysis.ErrorReporting.FatalError.Report(System.Exception, System.Action`1&lt;System.Exception&gt;)
76   at Microsoft.CodeAnalysis.ErrorReporting.FatalError.ReportUnlessCanceled(System.Exception)
77   at Roslyn.Utilities.TaskExtensions+&lt;&gt;c__DisplayClass7_0`1[[System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089]].&lt;SafeContinueWith&gt;g__outerFunction|0(System.Threading.Tasks.Task)
78   at System.Threading.Tasks.Task.ThrowIfExceptional(Boolean)
79   at System.Threading.Tasks.Task`1[[System.__Canon, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089]].GetResultCore(Boolean)
80   at System.Threading.Tasks.Task`1[[System.__Canon, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089]].get_Result()
81   at Microsoft.VisualStudio.LanguageServices.Implementation.Progression.GraphQueryManager+&lt;&gt;c__DisplayClass14_0.&lt;PopulateContextGraphAsync&gt;b__1(System.Threading.Tasks.Task`1&lt;Microsoft.VisualStudio.LanguageServices.Implementation.Progression.GraphBuilder[]&gt;)
82   at Roslyn.Utilities.TaskExtensions+&lt;&gt;c__DisplayClass6_0`1[[System.__Canon, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089]].&lt;SafeContinueWith&gt;b__0(System.Threading.Tasks.Task)
83   at Roslyn.Utilities.TaskExtensions+&lt;&gt;c__DisplayClass3_0.&lt;SafeContinueWith&gt;g__continuationFunction|0(System.Threading.Tasks.Task)
84   at Roslyn.Utilities.TaskExtensions+&lt;&gt;c__DisplayClass7_0`1[[System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089]].&lt;SafeContinueWith&gt;g__outerFunction|0(System.Threading.Tasks.Task)
85   at System.Threading.Tasks.ContinuationResultTaskFromTask`1[[System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089]].InnerInvoke()
86   at System.Threading.Tasks.Task.Execute()
87   at System.Threading.Tasks.Task.ExecutionContextCallback(System.Object)
88   at System.Threading.ExecutionContext.RunInternal(System.Threading.ExecutionContext, System.Threading.ContextCallback, System.Object, Boolean)
89   at System.Threading.ExecutionContext.Run(System.Threading.ExecutionContext, System.Threading.ContextCallback, System.Object, Boolean)
90   at System.Threading.Tasks.Task.ExecuteWithThreadLocal(System.Threading.Tasks.Task ByRef)
91   at System.Threading.Tasks.Task.ExecuteEntry(Boolean)
92   at System.Threading.Tasks.Task.System.Threading.IThreadPoolWorkItem.ExecuteWorkItem()
93   at System.Threading.ThreadPoolWorkQueue.Dispatch()
94   at System.Threading._ThreadPoolWaitCallback.PerformWaitCallback()
95**2021-Nov-12 14:14:19**
96Faulting application name: devenv.exe, version: 15.8.28010.2050, time stamp: 0x5bda1fc3
97Faulting module name: unknown, version: 0.0.0.0, time stamp: 0x00000000
98Exception code: 0x80131623
99Fault offset: 0x19a1c93a
100Faulting process id: 0x3d44
101Faulting application start time: 0x01d7d801d444a508
102Faulting application path: C:\Program Files (x86)\Microsoft Visual Studio\2017\Professional\Common7\IDE\devenv.exe
103Faulting module path: unknown
104Report Id: e230b637-fd72-47f8-a0d5-d2c4ccb10943
105**2021-Nov-12 14:14:35**
106Fault bucket 1659198495851531123, type 5
107Event Name: CLR20r3
108Response: Not available
109Cab Id: 0
110
111Problem signature:
112P1: devenv.exe
113P2: 15.8.28010.2050
114P3: 5bda1fc3
115P4: Microsoft.CodeAnalysis.Workspaces
116P5: 2.9.0.63208
117P6: f144aff0
118P7: 500
119P8: 41
120P9: System.IO.FileNotFoundException
121P10: 
122**2021-Nov-12 14:28:05**
123Application: ServiceHub.RoslynCodeAnalysisService32.exe
124Framework Version: v4.0.30319
125Description: The application requested process termination through System.Environment.FailFast(string message).
126Message: System.OperationCanceledException: The operation was canceled.
127   at System.Threading.CancellationToken.ThrowOperationCanceledException()
128   at Microsoft.CodeAnalysis.Remote.Extensions.&lt;InvokeAsync&gt;d__3`1.MoveNext()
129--- End of stack trace from previous location where exception was thrown ---
130   at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)
131   at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
132   at Microsoft.CodeAnalysis.Remote.ServiceHubServiceBase.&lt;RunServiceAsync&gt;d__25`1.MoveNext()
133--- End of stack trace from previous location where exception was thrown ---
134   at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)
135   at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
136   at Microsoft.CodeAnalysis.Remote.SnapshotService.JsonRpcAssetSource.&lt;RequestAssetsAsync&gt;d__2.MoveNext()
137Stack:
138   at System.Environment.FailFast(System.String, System.Exception)
139   at Microsoft.CodeAnalysis.FailFast.OnFatalException(System.Exception)
140   at Microsoft.CodeAnalysis.Remote.SnapshotService+JsonRpcAssetSource.ReportUnlessCanceled(System.Exception, System.Threading.CancellationToken)
141   at Microsoft.CodeAnalysis.Remote.SnapshotService+JsonRpcAssetSource+&lt;RequestAssetsAsync&gt;d__2.MoveNext()
142   at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(System.Threading.Tasks.Task)
143   at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(System.Threading.Tasks.Task)
144   at Microsoft.CodeAnalysis.Remote.SnapshotService+JsonRpcAssetSource+&lt;RequestAssetsAsync&gt;d__2.MoveNext()
145   at System.Runtime.CompilerServices.AsyncMethodBuilderCore+MoveNextRunner.InvokeMoveNext(System.Object)
146   at System.Threading.ExecutionContext.RunInternal(System.Threading.ExecutionContext, System.Threading.ContextCallback, System.Object, Boolean)
147   at System.Threading.ExecutionContext.Run(System.Threading.ExecutionContext, System.Threading.ContextCallback, System.Object, Boolean)
148   at System.Runtime.CompilerServices.AsyncMethodBuilderCore+MoveNextRunner.Run()
149   at System.Threading.Tasks.AwaitTaskContinuation.RunOrScheduleAction(System.Action, Boolean, System.Threading.Tasks.Task ByRef)
150   at System.Threading.Tasks.Task.FinishContinuations()
151   at System.Threading.Tasks.Task.FinishStageThree()
152   at System.Threading.Tasks.Task.CancellationCleanupLogic()
153   at System.Threading.Tasks.Task`1[[System.__Canon, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089]].TrySetCanceled(System.Threading.CancellationToken, System.Object)
154   at System.Runtime.CompilerServices.AsyncTaskMethodBuilder`1[[System.__Canon, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089]].SetException(System.Exception)
155   at Microsoft.CodeAnalysis.Remote.ServiceHubServiceBase+&lt;RunServiceAsync&gt;d__25`1[[System.__Canon, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089]].MoveNext()
156   at System.Runtime.CompilerServices.AsyncMethodBuilderCore+MoveNextRunner.InvokeMoveNext(System.Object)
157   at System.Threading.ExecutionContext.RunInternal(System.Threading.ExecutionContext, System.Threading.ContextCallback, System.Object, Boolean)
158   at System.Threading.ExecutionContext.Run(System.Threading.ExecutionContext, System.Threading.ContextCallback, System.Object, Boolean)
159   at System.Runtime.CompilerServices.AsyncMethodBuilderCore+MoveNextRunner.Run()
160   at System.Threading.Tasks.AwaitTaskContinuation.RunOrScheduleAction(System.Action, Boolean, System.Threading.Tasks.Task ByRef)
161   at System.Threading.Tasks.Task.FinishContinuations()
162   at System.Threading.Tasks.Task.FinishStageThree()
163   at System.Threading.Tasks.Task.CancellationCleanupLogic()
164   at System.Threading.Tasks.Task`1[[System.__Canon, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089]].TrySetCanceled(System.Threading.CancellationToken, System.Object)
165   at System.Runtime.CompilerServices.AsyncTaskMethodBuilder`1[[System.__Canon, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089]].SetException(System.Exception)
166   at Microsoft.CodeAnalysis.Remote.Extensions+&lt;InvokeAsync&gt;d__3`1[[System.__Canon, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089]].MoveNext()
167   at System.Runtime.CompilerServices.AsyncMethodBuilderCore+MoveNextRunner.InvokeMoveNext(System.Object)
168   at System.Threading.ExecutionContext.RunInternal(System.Threading.ExecutionContext, System.Threading.ContextCallback, System.Object, Boolean)
169   at System.Threading.ExecutionContext.Run(System.Threading.ExecutionContext, System.Threading.ContextCallback, System.Object, Boolean)
170   at System.Runtime.CompilerServices.AsyncMethodBuilderCore+MoveNextRunner.Run()
171   at System.Threading.Tasks.AwaitTaskContinuation.RunOrScheduleAction(System.Action, Boolean, System.Threading.Tasks.Task ByRef)
172   at System.Threading.Tasks.Task.FinishContinuations()
173   at System.Threading.Tasks.Task.FinishStageThree()
174   at System.Threading.Tasks.Task.CancellationCleanupLogic()
175   at System.Threading.Tasks.Task`1[[System.Threading.Tasks.VoidTaskResult, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089]].TrySetCanceled(System.Threading.CancellationToken, System.Object)
176   at System.Threading.Tasks.TaskFactory`1[[System.Threading.Tasks.VoidTaskResult, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089]].FromAsyncCoreLogic(System.IAsyncResult, System.Func`2&lt;System.IAsyncResult,System.Threading.Tasks.VoidTaskResult&gt;, System.Action`1&lt;System.IAsyncResult&gt;, System.Threading.Tasks.Task`1&lt;System.Threading.Tasks.VoidTaskResult&gt;, Boolean)
177   at System.Threading.Tasks.TaskFactory`1+&lt;&gt;c__DisplayClass35_0[[System.Threading.Tasks.VoidTaskResult, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089]].&lt;FromAsyncImpl&gt;b__0(System.IAsyncResult)
178   at System.IO.Pipes.NamedPipeServerStream.AsyncWaitForConnectionCallback(UInt32, UInt32, System.Threading.NativeOverlapped*)
179   at System.Threading._IOCompletionCallback.PerformIOCompletionCallback(UInt32, UInt32, System.Threading.NativeOverlapped*)
180
181**2021-Nov-12 14:28:06**
182Faulting application name: ServiceHub.RoslynCodeAnalysisService32.exe, version: 1.3.77.18573, time stamp: 0xdc9a59bf
183Faulting module name: unknown, version: 0.0.0.0, time stamp: 0x00000000
184Exception code: 0x80131623
185Fault offset: 0x0aa234ca
186Faulting process id: 0x2d4c
187Faulting application start time: 0x01d7d803c7d13c18
188Faulting application path: C:\Program Files (x86)\Microsoft Visual Studio\2017\Professional\Common7\ServiceHub\Hosts\ServiceHub.Host.CLR.x86\ServiceHub.RoslynCodeAnalysisService32.exe
189Faulting module path: unknown
190
191**2021-Nov-12 14:28:11**
192Fault bucket 1674005537433911736, type 5
193Event Name: CLR20r3
194Response: Not available
195Cab Id: 0
196
197Problem signature:
198P1: O5DFLQX35YXZVV3T1Q5XYRCHNTQNLFQ2
199P2: 1.3.77.18573
200P3: dc9a59bf
201P4: mscorlib
202P5: 4.8.4420.0
203P6: 6109cb33
204P7: 3e6d
205P8: 15
206P9: System.OperationCanceled
207P10: 
208**2021-Nov-15 09:45:25**
209Application: devenv.exe
210Framework Version: v4.0.30319
211Description: The application requested process termination through System.Environment.FailFast(string message).
212Message: System.IO.FileNotFoundException: Could not load file or assembly 'System.Runtime.CompilerServices.Unsafe, Version=4.0.4.1, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' or one of its dependencies. The system cannot find the file specified.
213File name: 'System.Runtime.CompilerServices.Unsafe, Version=4.0.4.1, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a'
214   at System.Threading.Tasks.ValueTask`1.AsTask()
215   at Microsoft.CodeAnalysis.Document.GetSyntaxTreeAsync(CancellationToken cancellationToken)
216   at Microsoft.CodeAnalysis.Host.BackgroundParser.&lt;&gt;c__DisplayClass20_0.&lt;ParseDocumentAsync&gt;b__0()
217   at System.Threading.Tasks.Task`1.InnerInvoke()
218   at System.Threading.Tasks.Task.Execute()
219
220WRN: Assembly binding logging is turned OFF.
221To enable assembly bind failure logging, set the registry value [HKLM\Software\Microsoft\Fusion!EnableLog] (DWORD) to 1.
222Note: There is some performance penalty associated with assembly bind failure logging.
223To turn this feature off, remove the registry value [HKLM\Software\Microsoft\Fusion!EnableLog].
224
225Stack:
226   at System.Environment.FailFast(System.String, System.Exception)
227   at Microsoft.CodeAnalysis.FailFast.OnFatalException(System.Exception)
228   at Microsoft.CodeAnalysis.ErrorReporting.FatalError.Report(System.Exception, System.Action`1&lt;System.Exception&gt;)
229   at Microsoft.CodeAnalysis.ErrorReporting.FatalError.Report(System.Exception)
230   at Roslyn.Utilities.TaskExtensions.ReportFatalErrorWorker(System.Threading.Tasks.Task, System.Object)
231   at System.Threading.Tasks.ContinuationTaskFromTask.InnerInvoke()
232   at System.Threading.Tasks.Task.Execute()
233   at System.Threading.Tasks.Task.ExecutionContextCallback(System.Object)
234   at System.Threading.ExecutionContext.RunInternal(System.Threading.ExecutionContext, System.Threading.ContextCallback, System.Object, Boolean)
235   at System.Threading.ExecutionContext.Run(System.Threading.ExecutionContext, System.Threading.ContextCallback, System.Object, Boolean)
236   at System.Threading.Tasks.Task.ExecuteWithThreadLocal(System.Threading.Tasks.Task ByRef)
237   at System.Threading.Tasks.Task.ExecuteEntry(Boolean)
238   at System.Threading.Tasks.ThreadPoolTaskScheduler.TryExecuteTaskInline(System.Threading.Tasks.Task, Boolean)
239   at System.Threading.Tasks.TaskScheduler.TryRunInline(System.Threading.Tasks.Task, Boolean)
240   at System.Threading.Tasks.TaskContinuation.InlineIfPossibleOrElseQueue(System.Threading.Tasks.Task, Boolean)
241   at System.Threading.Tasks.StandardTaskContinuation.Run(System.Threading.Tasks.Task, Boolean)
242   at System.Threading.Tasks.Task.FinishContinuations()
243   at System.Threading.Tasks.Task.FinishStageThree()
244   at System.Threading.Tasks.Task.FinishStageTwo()
245   at System.Threading.Tasks.Task.Finish(Boolean)
246   at System.Threading.Tasks.Task`1[[System.__Canon, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089]].TrySetException(System.Object)
247   at System.Threading.Tasks.UnwrapPromise`1[[System.__Canon, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089]].TrySetFromTask(System.Threading.Tasks.Task, Boolean)
248   at System.Threading.Tasks.UnwrapPromise`1[[System.__Canon, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089]].ProcessCompletedOuterTask(System.Threading.Tasks.Task)
249   at System.Threading.Tasks.UnwrapPromise`1[[System.__Canon, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089]].InvokeCore(System.Threading.Tasks.Task)
250   at System.Threading.Tasks.UnwrapPromise`1[[System.__Canon, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089]].Invoke(System.Threading.Tasks.Task)
251   at System.Threading.Tasks.Task.FinishContinuations()
252   at System.Threading.Tasks.Task.FinishStageThree()
253   at System.Threading.Tasks.Task.FinishStageTwo()
254   at System.Threading.Tasks.Task.Finish(Boolean)
255   at System.Threading.Tasks.Task.ExecuteWithThreadLocal(System.Threading.Tasks.Task ByRef)
256   at System.Threading.Tasks.Task.ExecuteEntry(Boolean)
257   at System.Threading.Tasks.Task.System.Threading.IThreadPoolWorkItem.ExecuteWorkItem()
258   at System.Threading.ThreadPoolWorkQueue.Dispatch()
259   at System.Threading._ThreadPoolWaitCallback.PerformWaitCallback()
260C:\&gt;dir System.Runtime.CompilerServices.Unsafe.* /s /n
261
262C:\Program Files\dotnet\sdk\2.1.403\DotnetTools\dotnet-sql-cache\2.1.1\tools\netcoreapp2.1\any
263    2018-Sep-20  14:48            14,712
264
265C:\Program Files\dotnet\sdk\2.1.403\DotnetTools\dotnet-user-secrets\2.1.1\tools\netcoreapp2.1\any
266    2018-Sep-20  14:48            14,928
267
268C:\Program Files\dotnet\sdk\NuGetFallbackFolder\system.runtime.compilerservices.unsafe\4.4.0
269    2018-Nov-08  16:14            62,144 system.runtime.compilerservices.unsafe.4.4.0.nupkg
270
271C:\Program Files\dotnet\sdk\NuGetFallbackFolder\system.runtime.compilerservices.unsafe\4.4.0\lib\netstandard1.0
272    2018-Nov-08  16:14            21,792
273
274C:\Program Files\dotnet\sdk\NuGetFallbackFolder\system.runtime.compilerservices.unsafe\4.4.0\lib\netstandard2.0
275    2018-Nov-08  16:14            21,944
276
277C:\Program Files\dotnet\sdk\NuGetFallbackFolder\system.runtime.compilerservices.unsafe\4.4.0\ref\netstandard1.0
278    2018-Nov-08  16:14            22,968
279
280C:\Program Files\dotnet\sdk\NuGetFallbackFolder\system.runtime.compilerservices.unsafe\4.4.0\ref\netstandard2.0
281    2018-Nov-08  16:14            23,480
282
283C:\Program Files\dotnet\sdk\NuGetFallbackFolder\system.runtime.compilerservices.unsafe\4.5.0
284    2018-Nov-08  16:10            87,453 system.runtime.compilerservices.unsafe.4.5.0.nupkg
285
286C:\Program Files\dotnet\sdk\NuGetFallbackFolder\system.runtime.compilerservices.unsafe\4.5.0\lib\netcoreapp2.0
287    2018-Nov-08  16:10            21,648
288
289C:\Program Files\dotnet\sdk\NuGetFallbackFolder\system.runtime.compilerservices.unsafe\4.5.0\lib\netstandard1.0
290    2018-Nov-08  16:10            22,160
291
292C:\Program Files\dotnet\sdk\NuGetFallbackFolder\system.runtime.compilerservices.unsafe\4.5.0\lib\netstandard2.0
293    2018-Nov-08  16:10            22,160
294
295C:\Program Files\dotnet\sdk\NuGetFallbackFolder\system.runtime.compilerservices.unsafe\4.5.0\ref\netstandard1.0
296    2018-Nov-08  16:10            23,176
297
298C:\Program Files\dotnet\sdk\NuGetFallbackFolder\system.runtime.compilerservices.unsafe\4.5.0\ref\netstandard2.0
299    2018-Nov-08  16:10            23,696
300
301C:\Program Files\dotnet\sdk\NuGetFallbackFolder\system.runtime.compilerservices.unsafe\4.5.1
302    2018-Nov-08  16:10            87,219 system.runtime.compilerservices.unsafe.4.5.1.nupkg
303
304C:\Program Files\dotnet\sdk\NuGetFallbackFolder\system.runtime.compilerservices.unsafe\4.5.1\lib\netcoreapp2.0
305    2018-Nov-08  16:11            21,640
306
307C:\Program Files\dotnet\sdk\NuGetFallbackFolder\system.runtime.compilerservices.unsafe\4.5.1\lib\netstandard1.0
308    2018-Nov-08  16:11            22,160
309
310C:\Program Files\dotnet\sdk\NuGetFallbackFolder\system.runtime.compilerservices.unsafe\4.5.1\lib\netstandard2.0
311    2018-Nov-08  16:11            22,184
312
313C:\Program Files\dotnet\sdk\NuGetFallbackFolder\system.runtime.compilerservices.unsafe\4.5.1\ref\netstandard1.0
314    2018-Nov-08  16:11            23,720
315
316C:\Program Files\dotnet\sdk\NuGetFallbackFolder\system.runtime.compilerservices.unsafe\4.5.1\ref\netstandard2.0
317    2018-Nov-08  16:11            24,208
318
319C:\Program Files\dotnet\shared\Microsoft.AspNetCore.App\2.1.5
320    2018-Sep-20  15:08            19,536        4.6.26919.2
321
322C:\Program Files\dotnet\store\x64\netcoreapp2.0\system.runtime.compilerservices.unsafe\4.4.0\lib\netstandard2.0
323    2017-Jul-25  00:57            17,416
324
325C:\Program Files\WindowsApps\Microsoft.YourPhone_1.21092.149.0_x64__8wekyb3d8bbwe
326    2021-Jul-01  06:45            16,768        4.6.28619.1
327
328C:\Program Files\WindowsApps\Microsoft.YourPhone_1.21092.149.0_x64__8wekyb3d8bbwe\YourPhoneAppProxy
329    2021-Oct-19  05:48            18,824        4.700.21.47101
330
331C:\Program Files\WindowsApps\Microsoft.YourPhone_1.21092.149.0_x64__8wekyb3d8bbwe\YourPhoneServer
332    2020-Jun-13  17:25            17,000        4.700.20.12001
333
334C:\Program Files (x86)\Microsoft Visual Studio\2017\Professional\Common7\IDE\Extensions\001ss942.rgs
335    2021-May-20  04:28            16,768        5.0.20.51904            [RedGate.SQLSearch ?]
336
337C:\Program Files (x86)\Microsoft Visual Studio\2017\Professional\Common7\IDE\Extensions\ph2houvf.kuk
338    2019-Sep-07  04:28            21,792        ?? no version ??        [MS VS CloudExplorer]
339

VStudio's Help About shows the following version numbers:

1**2021-Nov-12 14:13:41**
2Application: devenv.exe
3Framework Version: v4.0.30319
4Description: The application requested process termination through System.Environment.FailFast(string message).
5Message: System.IO.FileNotFoundException: Could not load file or assembly 'System.Runtime.CompilerServices.Unsafe, Version=4.0.4.1, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' or one of its dependencies. The system cannot find the file specified.
6File name: 'System.Runtime.CompilerServices.Unsafe, Version=4.0.4.1, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a'
7   at System.Threading.Tasks.ValueTask`1.AsTask()
8   at Microsoft.CodeAnalysis.Document.GetSyntaxTreeAsync(CancellationToken cancellationToken)
9   at Microsoft.CodeAnalysis.Host.BackgroundParser.&lt;&gt;c__DisplayClass20_0.&lt;ParseDocumentAsync&gt;b__0()
10   at System.Threading.Tasks.Task`1.InnerInvoke()
11   at System.Threading.Tasks.Task.Execute()
12
13WRN: Assembly binding logging is turned OFF.
14To enable assembly bind failure logging, set the registry value [HKLM\Software\Microsoft\Fusion!EnableLog] (DWORD) to 1.
15Note: There is some performance penalty associated with assembly bind failure logging.
16To turn this feature off, remove the registry value [HKLM\Software\Microsoft\Fusion!EnableLog].
17
18Stack:
19   at System.Environment.FailFast(System.String, System.Exception)
20   at Microsoft.CodeAnalysis.FailFast.OnFatalException(System.Exception)
21   at Microsoft.CodeAnalysis.ErrorReporting.FatalError.Report(System.Exception, System.Action`1&lt;System.Exception&gt;)
22   at Microsoft.CodeAnalysis.ErrorReporting.FatalError.Report(System.Exception)
23   at Roslyn.Utilities.TaskExtensions.ReportFatalErrorWorker(System.Threading.Tasks.Task, System.Object)
24   at System.Threading.Tasks.ContinuationTaskFromTask.InnerInvoke()
25   at System.Threading.Tasks.Task.Execute()
26   at System.Threading.Tasks.Task.ExecutionContextCallback(System.Object)
27   at System.Threading.ExecutionContext.RunInternal(System.Threading.ExecutionContext, System.Threading.ContextCallback, System.Object, Boolean)
28   at System.Threading.ExecutionContext.Run(System.Threading.ExecutionContext, System.Threading.ContextCallback, System.Object, Boolean)
29   at System.Threading.Tasks.Task.ExecuteWithThreadLocal(System.Threading.Tasks.Task ByRef)
30   at System.Threading.Tasks.Task.ExecuteEntry(Boolean)
31   at System.Threading.Tasks.ThreadPoolTaskScheduler.TryExecuteTaskInline(System.Threading.Tasks.Task, Boolean)
32   at System.Threading.Tasks.TaskScheduler.TryRunInline(System.Threading.Tasks.Task, Boolean)
33   at System.Threading.Tasks.TaskContinuation.InlineIfPossibleOrElseQueue(System.Threading.Tasks.Task, Boolean)
34   at System.Threading.Tasks.StandardTaskContinuation.Run(System.Threading.Tasks.Task, Boolean)
35   at System.Threading.Tasks.Task.FinishContinuations()
36   at System.Threading.Tasks.Task.FinishStageThree()
37   at System.Threading.Tasks.Task.FinishStageTwo()
38   at System.Threading.Tasks.Task.Finish(Boolean)
39   at System.Threading.Tasks.Task`1[[System.__Canon, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089]].TrySetException(System.Object)
40   at System.Threading.Tasks.UnwrapPromise`1[[System.__Canon, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089]].TrySetFromTask(System.Threading.Tasks.Task, Boolean)
41   at System.Threading.Tasks.UnwrapPromise`1[[System.__Canon, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089]].ProcessCompletedOuterTask(System.Threading.Tasks.Task)
42   at System.Threading.Tasks.UnwrapPromise`1[[System.__Canon, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089]].InvokeCore(System.Threading.Tasks.Task)
43   at System.Threading.Tasks.UnwrapPromise`1[[System.__Canon, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089]].Invoke(System.Threading.Tasks.Task)
44   at System.Threading.Tasks.Task.FinishContinuations()
45   at System.Threading.Tasks.Task.FinishStageThree()
46   at System.Threading.Tasks.Task.FinishStageTwo()
47   at System.Threading.Tasks.Task.Finish(Boolean)
48   at System.Threading.Tasks.Task.ExecuteWithThreadLocal(System.Threading.Tasks.Task ByRef)
49   at System.Threading.Tasks.Task.ExecuteEntry(Boolean)
50   at System.Threading.Tasks.Task.System.Threading.IThreadPoolWorkItem.ExecuteWorkItem()
51   at System.Threading.ThreadPoolWorkQueue.Dispatch()
52   at System.Threading._ThreadPoolWaitCallback.PerformWaitCallback()
53**2021-Nov-12 14:14:16**
54Application: devenv.exe
55Framework Version: v4.0.30319
56Description: The application requested process termination through System.Environment.FailFast(string message).
57Message: System.IO.FileNotFoundException: Could not load file or assembly 'System.Runtime.CompilerServices.Unsafe, Version=4.0.4.1, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' or one of its dependencies. The system cannot find the file specified.
58File name: 'System.Runtime.CompilerServices.Unsafe, Version=4.0.4.1, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a'
59   at System.Threading.Tasks.ValueTask`1.AsTask()
60   at Microsoft.CodeAnalysis.Document.GetSyntaxTreeAsync(CancellationToken cancellationToken)
61   at Microsoft.VisualStudio.LanguageServices.Implementation.Progression.SymbolContainment.&lt;GetContainedSyntaxNodesAsync&gt;d__0.MoveNext()
62--- End of stack trace from previous location where exception was thrown ---
63   at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)
64   at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
65   at Microsoft.VisualStudio.LanguageServices.Implementation.Progression.ContainsChildrenGraphQuery.&lt;GetGraphAsync&gt;d__0.MoveNext()
66
67WRN: Assembly binding logging is turned OFF.
68To enable assembly bind failure logging, set the registry value [HKLM\Software\Microsoft\Fusion!EnableLog] (DWORD) to 1.
69Note: There is some performance penalty associated with assembly bind failure logging.
70To turn this feature off, remove the registry value [HKLM\Software\Microsoft\Fusion!EnableLog].
71
72Stack:
73   at System.Environment.FailFast(System.String, System.Exception)
74   at Microsoft.CodeAnalysis.FailFast.OnFatalException(System.Exception)
75   at Microsoft.CodeAnalysis.ErrorReporting.FatalError.Report(System.Exception, System.Action`1&lt;System.Exception&gt;)
76   at Microsoft.CodeAnalysis.ErrorReporting.FatalError.ReportUnlessCanceled(System.Exception)
77   at Roslyn.Utilities.TaskExtensions+&lt;&gt;c__DisplayClass7_0`1[[System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089]].&lt;SafeContinueWith&gt;g__outerFunction|0(System.Threading.Tasks.Task)
78   at System.Threading.Tasks.Task.ThrowIfExceptional(Boolean)
79   at System.Threading.Tasks.Task`1[[System.__Canon, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089]].GetResultCore(Boolean)
80   at System.Threading.Tasks.Task`1[[System.__Canon, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089]].get_Result()
81   at Microsoft.VisualStudio.LanguageServices.Implementation.Progression.GraphQueryManager+&lt;&gt;c__DisplayClass14_0.&lt;PopulateContextGraphAsync&gt;b__1(System.Threading.Tasks.Task`1&lt;Microsoft.VisualStudio.LanguageServices.Implementation.Progression.GraphBuilder[]&gt;)
82   at Roslyn.Utilities.TaskExtensions+&lt;&gt;c__DisplayClass6_0`1[[System.__Canon, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089]].&lt;SafeContinueWith&gt;b__0(System.Threading.Tasks.Task)
83   at Roslyn.Utilities.TaskExtensions+&lt;&gt;c__DisplayClass3_0.&lt;SafeContinueWith&gt;g__continuationFunction|0(System.Threading.Tasks.Task)
84   at Roslyn.Utilities.TaskExtensions+&lt;&gt;c__DisplayClass7_0`1[[System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089]].&lt;SafeContinueWith&gt;g__outerFunction|0(System.Threading.Tasks.Task)
85   at System.Threading.Tasks.ContinuationResultTaskFromTask`1[[System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089]].InnerInvoke()
86   at System.Threading.Tasks.Task.Execute()
87   at System.Threading.Tasks.Task.ExecutionContextCallback(System.Object)
88   at System.Threading.ExecutionContext.RunInternal(System.Threading.ExecutionContext, System.Threading.ContextCallback, System.Object, Boolean)
89   at System.Threading.ExecutionContext.Run(System.Threading.ExecutionContext, System.Threading.ContextCallback, System.Object, Boolean)
90   at System.Threading.Tasks.Task.ExecuteWithThreadLocal(System.Threading.Tasks.Task ByRef)
91   at System.Threading.Tasks.Task.ExecuteEntry(Boolean)
92   at System.Threading.Tasks.Task.System.Threading.IThreadPoolWorkItem.ExecuteWorkItem()
93   at System.Threading.ThreadPoolWorkQueue.Dispatch()
94   at System.Threading._ThreadPoolWaitCallback.PerformWaitCallback()
95**2021-Nov-12 14:14:19**
96Faulting application name: devenv.exe, version: 15.8.28010.2050, time stamp: 0x5bda1fc3
97Faulting module name: unknown, version: 0.0.0.0, time stamp: 0x00000000
98Exception code: 0x80131623
99Fault offset: 0x19a1c93a
100Faulting process id: 0x3d44
101Faulting application start time: 0x01d7d801d444a508
102Faulting application path: C:\Program Files (x86)\Microsoft Visual Studio\2017\Professional\Common7\IDE\devenv.exe
103Faulting module path: unknown
104Report Id: e230b637-fd72-47f8-a0d5-d2c4ccb10943
105**2021-Nov-12 14:14:35**
106Fault bucket 1659198495851531123, type 5
107Event Name: CLR20r3
108Response: Not available
109Cab Id: 0
110
111Problem signature:
112P1: devenv.exe
113P2: 15.8.28010.2050
114P3: 5bda1fc3
115P4: Microsoft.CodeAnalysis.Workspaces
116P5: 2.9.0.63208
117P6: f144aff0
118P7: 500
119P8: 41
120P9: System.IO.FileNotFoundException
121P10: 
122**2021-Nov-12 14:28:05**
123Application: ServiceHub.RoslynCodeAnalysisService32.exe
124Framework Version: v4.0.30319
125Description: The application requested process termination through System.Environment.FailFast(string message).
126Message: System.OperationCanceledException: The operation was canceled.
127   at System.Threading.CancellationToken.ThrowOperationCanceledException()
128   at Microsoft.CodeAnalysis.Remote.Extensions.&lt;InvokeAsync&gt;d__3`1.MoveNext()
129--- End of stack trace from previous location where exception was thrown ---
130   at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)
131   at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
132   at Microsoft.CodeAnalysis.Remote.ServiceHubServiceBase.&lt;RunServiceAsync&gt;d__25`1.MoveNext()
133--- End of stack trace from previous location where exception was thrown ---
134   at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)
135   at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
136   at Microsoft.CodeAnalysis.Remote.SnapshotService.JsonRpcAssetSource.&lt;RequestAssetsAsync&gt;d__2.MoveNext()
137Stack:
138   at System.Environment.FailFast(System.String, System.Exception)
139   at Microsoft.CodeAnalysis.FailFast.OnFatalException(System.Exception)
140   at Microsoft.CodeAnalysis.Remote.SnapshotService+JsonRpcAssetSource.ReportUnlessCanceled(System.Exception, System.Threading.CancellationToken)
141   at Microsoft.CodeAnalysis.Remote.SnapshotService+JsonRpcAssetSource+&lt;RequestAssetsAsync&gt;d__2.MoveNext()
142   at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(System.Threading.Tasks.Task)
143   at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(System.Threading.Tasks.Task)
144   at Microsoft.CodeAnalysis.Remote.SnapshotService+JsonRpcAssetSource+&lt;RequestAssetsAsync&gt;d__2.MoveNext()
145   at System.Runtime.CompilerServices.AsyncMethodBuilderCore+MoveNextRunner.InvokeMoveNext(System.Object)
146   at System.Threading.ExecutionContext.RunInternal(System.Threading.ExecutionContext, System.Threading.ContextCallback, System.Object, Boolean)
147   at System.Threading.ExecutionContext.Run(System.Threading.ExecutionContext, System.Threading.ContextCallback, System.Object, Boolean)
148   at System.Runtime.CompilerServices.AsyncMethodBuilderCore+MoveNextRunner.Run()
149   at System.Threading.Tasks.AwaitTaskContinuation.RunOrScheduleAction(System.Action, Boolean, System.Threading.Tasks.Task ByRef)
150   at System.Threading.Tasks.Task.FinishContinuations()
151   at System.Threading.Tasks.Task.FinishStageThree()
152   at System.Threading.Tasks.Task.CancellationCleanupLogic()
153   at System.Threading.Tasks.Task`1[[System.__Canon, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089]].TrySetCanceled(System.Threading.CancellationToken, System.Object)
154   at System.Runtime.CompilerServices.AsyncTaskMethodBuilder`1[[System.__Canon, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089]].SetException(System.Exception)
155   at Microsoft.CodeAnalysis.Remote.ServiceHubServiceBase+&lt;RunServiceAsync&gt;d__25`1[[System.__Canon, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089]].MoveNext()
156   at System.Runtime.CompilerServices.AsyncMethodBuilderCore+MoveNextRunner.InvokeMoveNext(System.Object)
157   at System.Threading.ExecutionContext.RunInternal(System.Threading.ExecutionContext, System.Threading.ContextCallback, System.Object, Boolean)
158   at System.Threading.ExecutionContext.Run(System.Threading.ExecutionContext, System.Threading.ContextCallback, System.Object, Boolean)
159   at System.Runtime.CompilerServices.AsyncMethodBuilderCore+MoveNextRunner.Run()
160   at System.Threading.Tasks.AwaitTaskContinuation.RunOrScheduleAction(System.Action, Boolean, System.Threading.Tasks.Task ByRef)
161   at System.Threading.Tasks.Task.FinishContinuations()
162   at System.Threading.Tasks.Task.FinishStageThree()
163   at System.Threading.Tasks.Task.CancellationCleanupLogic()
164   at System.Threading.Tasks.Task`1[[System.__Canon, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089]].TrySetCanceled(System.Threading.CancellationToken, System.Object)
165   at System.Runtime.CompilerServices.AsyncTaskMethodBuilder`1[[System.__Canon, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089]].SetException(System.Exception)
166   at Microsoft.CodeAnalysis.Remote.Extensions+&lt;InvokeAsync&gt;d__3`1[[System.__Canon, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089]].MoveNext()
167   at System.Runtime.CompilerServices.AsyncMethodBuilderCore+MoveNextRunner.InvokeMoveNext(System.Object)
168   at System.Threading.ExecutionContext.RunInternal(System.Threading.ExecutionContext, System.Threading.ContextCallback, System.Object, Boolean)
169   at System.Threading.ExecutionContext.Run(System.Threading.ExecutionContext, System.Threading.ContextCallback, System.Object, Boolean)
170   at System.Runtime.CompilerServices.AsyncMethodBuilderCore+MoveNextRunner.Run()
171   at System.Threading.Tasks.AwaitTaskContinuation.RunOrScheduleAction(System.Action, Boolean, System.Threading.Tasks.Task ByRef)
172   at System.Threading.Tasks.Task.FinishContinuations()
173   at System.Threading.Tasks.Task.FinishStageThree()
174   at System.Threading.Tasks.Task.CancellationCleanupLogic()
175   at System.Threading.Tasks.Task`1[[System.Threading.Tasks.VoidTaskResult, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089]].TrySetCanceled(System.Threading.CancellationToken, System.Object)
176   at System.Threading.Tasks.TaskFactory`1[[System.Threading.Tasks.VoidTaskResult, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089]].FromAsyncCoreLogic(System.IAsyncResult, System.Func`2&lt;System.IAsyncResult,System.Threading.Tasks.VoidTaskResult&gt;, System.Action`1&lt;System.IAsyncResult&gt;, System.Threading.Tasks.Task`1&lt;System.Threading.Tasks.VoidTaskResult&gt;, Boolean)
177   at System.Threading.Tasks.TaskFactory`1+&lt;&gt;c__DisplayClass35_0[[System.Threading.Tasks.VoidTaskResult, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089]].&lt;FromAsyncImpl&gt;b__0(System.IAsyncResult)
178   at System.IO.Pipes.NamedPipeServerStream.AsyncWaitForConnectionCallback(UInt32, UInt32, System.Threading.NativeOverlapped*)
179   at System.Threading._IOCompletionCallback.PerformIOCompletionCallback(UInt32, UInt32, System.Threading.NativeOverlapped*)
180
181**2021-Nov-12 14:28:06**
182Faulting application name: ServiceHub.RoslynCodeAnalysisService32.exe, version: 1.3.77.18573, time stamp: 0xdc9a59bf
183Faulting module name: unknown, version: 0.0.0.0, time stamp: 0x00000000
184Exception code: 0x80131623
185Fault offset: 0x0aa234ca
186Faulting process id: 0x2d4c
187Faulting application start time: 0x01d7d803c7d13c18
188Faulting application path: C:\Program Files (x86)\Microsoft Visual Studio\2017\Professional\Common7\ServiceHub\Hosts\ServiceHub.Host.CLR.x86\ServiceHub.RoslynCodeAnalysisService32.exe
189Faulting module path: unknown
190
191**2021-Nov-12 14:28:11**
192Fault bucket 1674005537433911736, type 5
193Event Name: CLR20r3
194Response: Not available
195Cab Id: 0
196
197Problem signature:
198P1: O5DFLQX35YXZVV3T1Q5XYRCHNTQNLFQ2
199P2: 1.3.77.18573
200P3: dc9a59bf
201P4: mscorlib
202P5: 4.8.4420.0
203P6: 6109cb33
204P7: 3e6d
205P8: 15
206P9: System.OperationCanceled
207P10: 
208**2021-Nov-15 09:45:25**
209Application: devenv.exe
210Framework Version: v4.0.30319
211Description: The application requested process termination through System.Environment.FailFast(string message).
212Message: System.IO.FileNotFoundException: Could not load file or assembly 'System.Runtime.CompilerServices.Unsafe, Version=4.0.4.1, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' or one of its dependencies. The system cannot find the file specified.
213File name: 'System.Runtime.CompilerServices.Unsafe, Version=4.0.4.1, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a'
214   at System.Threading.Tasks.ValueTask`1.AsTask()
215   at Microsoft.CodeAnalysis.Document.GetSyntaxTreeAsync(CancellationToken cancellationToken)
216   at Microsoft.CodeAnalysis.Host.BackgroundParser.&lt;&gt;c__DisplayClass20_0.&lt;ParseDocumentAsync&gt;b__0()
217   at System.Threading.Tasks.Task`1.InnerInvoke()
218   at System.Threading.Tasks.Task.Execute()
219
220WRN: Assembly binding logging is turned OFF.
221To enable assembly bind failure logging, set the registry value [HKLM\Software\Microsoft\Fusion!EnableLog] (DWORD) to 1.
222Note: There is some performance penalty associated with assembly bind failure logging.
223To turn this feature off, remove the registry value [HKLM\Software\Microsoft\Fusion!EnableLog].
224
225Stack:
226   at System.Environment.FailFast(System.String, System.Exception)
227   at Microsoft.CodeAnalysis.FailFast.OnFatalException(System.Exception)
228   at Microsoft.CodeAnalysis.ErrorReporting.FatalError.Report(System.Exception, System.Action`1&lt;System.Exception&gt;)
229   at Microsoft.CodeAnalysis.ErrorReporting.FatalError.Report(System.Exception)
230   at Roslyn.Utilities.TaskExtensions.ReportFatalErrorWorker(System.Threading.Tasks.Task, System.Object)
231   at System.Threading.Tasks.ContinuationTaskFromTask.InnerInvoke()
232   at System.Threading.Tasks.Task.Execute()
233   at System.Threading.Tasks.Task.ExecutionContextCallback(System.Object)
234   at System.Threading.ExecutionContext.RunInternal(System.Threading.ExecutionContext, System.Threading.ContextCallback, System.Object, Boolean)
235   at System.Threading.ExecutionContext.Run(System.Threading.ExecutionContext, System.Threading.ContextCallback, System.Object, Boolean)
236   at System.Threading.Tasks.Task.ExecuteWithThreadLocal(System.Threading.Tasks.Task ByRef)
237   at System.Threading.Tasks.Task.ExecuteEntry(Boolean)
238   at System.Threading.Tasks.ThreadPoolTaskScheduler.TryExecuteTaskInline(System.Threading.Tasks.Task, Boolean)
239   at System.Threading.Tasks.TaskScheduler.TryRunInline(System.Threading.Tasks.Task, Boolean)
240   at System.Threading.Tasks.TaskContinuation.InlineIfPossibleOrElseQueue(System.Threading.Tasks.Task, Boolean)
241   at System.Threading.Tasks.StandardTaskContinuation.Run(System.Threading.Tasks.Task, Boolean)
242   at System.Threading.Tasks.Task.FinishContinuations()
243   at System.Threading.Tasks.Task.FinishStageThree()
244   at System.Threading.Tasks.Task.FinishStageTwo()
245   at System.Threading.Tasks.Task.Finish(Boolean)
246   at System.Threading.Tasks.Task`1[[System.__Canon, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089]].TrySetException(System.Object)
247   at System.Threading.Tasks.UnwrapPromise`1[[System.__Canon, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089]].TrySetFromTask(System.Threading.Tasks.Task, Boolean)
248   at System.Threading.Tasks.UnwrapPromise`1[[System.__Canon, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089]].ProcessCompletedOuterTask(System.Threading.Tasks.Task)
249   at System.Threading.Tasks.UnwrapPromise`1[[System.__Canon, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089]].InvokeCore(System.Threading.Tasks.Task)
250   at System.Threading.Tasks.UnwrapPromise`1[[System.__Canon, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089]].Invoke(System.Threading.Tasks.Task)
251   at System.Threading.Tasks.Task.FinishContinuations()
252   at System.Threading.Tasks.Task.FinishStageThree()
253   at System.Threading.Tasks.Task.FinishStageTwo()
254   at System.Threading.Tasks.Task.Finish(Boolean)
255   at System.Threading.Tasks.Task.ExecuteWithThreadLocal(System.Threading.Tasks.Task ByRef)
256   at System.Threading.Tasks.Task.ExecuteEntry(Boolean)
257   at System.Threading.Tasks.Task.System.Threading.IThreadPoolWorkItem.ExecuteWorkItem()
258   at System.Threading.ThreadPoolWorkQueue.Dispatch()
259   at System.Threading._ThreadPoolWaitCallback.PerformWaitCallback()
260C:\&gt;dir System.Runtime.CompilerServices.Unsafe.* /s /n
261
262C:\Program Files\dotnet\sdk\2.1.403\DotnetTools\dotnet-sql-cache\2.1.1\tools\netcoreapp2.1\any
263    2018-Sep-20  14:48            14,712
264
265C:\Program Files\dotnet\sdk\2.1.403\DotnetTools\dotnet-user-secrets\2.1.1\tools\netcoreapp2.1\any
266    2018-Sep-20  14:48            14,928
267
268C:\Program Files\dotnet\sdk\NuGetFallbackFolder\system.runtime.compilerservices.unsafe\4.4.0
269    2018-Nov-08  16:14            62,144 system.runtime.compilerservices.unsafe.4.4.0.nupkg
270
271C:\Program Files\dotnet\sdk\NuGetFallbackFolder\system.runtime.compilerservices.unsafe\4.4.0\lib\netstandard1.0
272    2018-Nov-08  16:14            21,792
273
274C:\Program Files\dotnet\sdk\NuGetFallbackFolder\system.runtime.compilerservices.unsafe\4.4.0\lib\netstandard2.0
275    2018-Nov-08  16:14            21,944
276
277C:\Program Files\dotnet\sdk\NuGetFallbackFolder\system.runtime.compilerservices.unsafe\4.4.0\ref\netstandard1.0
278    2018-Nov-08  16:14            22,968
279
280C:\Program Files\dotnet\sdk\NuGetFallbackFolder\system.runtime.compilerservices.unsafe\4.4.0\ref\netstandard2.0
281    2018-Nov-08  16:14            23,480
282
283C:\Program Files\dotnet\sdk\NuGetFallbackFolder\system.runtime.compilerservices.unsafe\4.5.0
284    2018-Nov-08  16:10            87,453 system.runtime.compilerservices.unsafe.4.5.0.nupkg
285
286C:\Program Files\dotnet\sdk\NuGetFallbackFolder\system.runtime.compilerservices.unsafe\4.5.0\lib\netcoreapp2.0
287    2018-Nov-08  16:10            21,648
288
289C:\Program Files\dotnet\sdk\NuGetFallbackFolder\system.runtime.compilerservices.unsafe\4.5.0\lib\netstandard1.0
290    2018-Nov-08  16:10            22,160
291
292C:\Program Files\dotnet\sdk\NuGetFallbackFolder\system.runtime.compilerservices.unsafe\4.5.0\lib\netstandard2.0
293    2018-Nov-08  16:10            22,160
294
295C:\Program Files\dotnet\sdk\NuGetFallbackFolder\system.runtime.compilerservices.unsafe\4.5.0\ref\netstandard1.0
296    2018-Nov-08  16:10            23,176
297
298C:\Program Files\dotnet\sdk\NuGetFallbackFolder\system.runtime.compilerservices.unsafe\4.5.0\ref\netstandard2.0
299    2018-Nov-08  16:10            23,696
300
301C:\Program Files\dotnet\sdk\NuGetFallbackFolder\system.runtime.compilerservices.unsafe\4.5.1
302    2018-Nov-08  16:10            87,219 system.runtime.compilerservices.unsafe.4.5.1.nupkg
303
304C:\Program Files\dotnet\sdk\NuGetFallbackFolder\system.runtime.compilerservices.unsafe\4.5.1\lib\netcoreapp2.0
305    2018-Nov-08  16:11            21,640
306
307C:\Program Files\dotnet\sdk\NuGetFallbackFolder\system.runtime.compilerservices.unsafe\4.5.1\lib\netstandard1.0
308    2018-Nov-08  16:11            22,160
309
310C:\Program Files\dotnet\sdk\NuGetFallbackFolder\system.runtime.compilerservices.unsafe\4.5.1\lib\netstandard2.0
311    2018-Nov-08  16:11            22,184
312
313C:\Program Files\dotnet\sdk\NuGetFallbackFolder\system.runtime.compilerservices.unsafe\4.5.1\ref\netstandard1.0
314    2018-Nov-08  16:11            23,720
315
316C:\Program Files\dotnet\sdk\NuGetFallbackFolder\system.runtime.compilerservices.unsafe\4.5.1\ref\netstandard2.0
317    2018-Nov-08  16:11            24,208
318
319C:\Program Files\dotnet\shared\Microsoft.AspNetCore.App\2.1.5
320    2018-Sep-20  15:08            19,536        4.6.26919.2
321
322C:\Program Files\dotnet\store\x64\netcoreapp2.0\system.runtime.compilerservices.unsafe\4.4.0\lib\netstandard2.0
323    2017-Jul-25  00:57            17,416
324
325C:\Program Files\WindowsApps\Microsoft.YourPhone_1.21092.149.0_x64__8wekyb3d8bbwe
326    2021-Jul-01  06:45            16,768        4.6.28619.1
327
328C:\Program Files\WindowsApps\Microsoft.YourPhone_1.21092.149.0_x64__8wekyb3d8bbwe\YourPhoneAppProxy
329    2021-Oct-19  05:48            18,824        4.700.21.47101
330
331C:\Program Files\WindowsApps\Microsoft.YourPhone_1.21092.149.0_x64__8wekyb3d8bbwe\YourPhoneServer
332    2020-Jun-13  17:25            17,000        4.700.20.12001
333
334C:\Program Files (x86)\Microsoft Visual Studio\2017\Professional\Common7\IDE\Extensions\001ss942.rgs
335    2021-May-20  04:28            16,768        5.0.20.51904            [RedGate.SQLSearch ?]
336
337C:\Program Files (x86)\Microsoft Visual Studio\2017\Professional\Common7\IDE\Extensions\ph2houvf.kuk
338    2019-Sep-07  04:28            21,792        ?? no version ??        [MS VS CloudExplorer]
339Microsoft Visual Studio Professional 2017 
340Version 15.8.9
341VisualStudio.15.Release/15.8.9+28010.2050
342Microsoft .NET Framework
343Version 4.8.04084
344
345ASP.NET and Web Tools 2017   15.8.05085.0
346ASP.NET Core Razor Language Services   15.8.31590
347ASP.NET Web Frameworks and Tools 2017   5.2.60618.0
348C# Tools   2.9.0-beta8-63208-01
349NuGet Package Manager   4.6.0
350Redgate SQL Search   3.5.5.2703
351SQL Server Data Tools   15.1.61808.07020
352Xamarin   4.11.0.779 (d15-8@ff915e800)
353Xamarin Designer   4.15.12 (d7ff6f39c)
354Xamarin Templates   1.1.118 (4217ee9)
355Xamarin.Android SDK   9.0.0.19 (HEAD/a8a3b0ec7)
356

ANSWER

Answered 2021-Dec-21 at 16:18

Sorry it took so long. Was under a gun to finish a project..

The root cause of the problem turned out to be ICSharpCode.CodeConverter v.8.4.1.0!
Wow, of all the pieces installed (which aren't that many)..

On a hunch (since the problem was local to Visual Studio) I started looking at Tools and Extensions, and noticed on this component the Date Installed being past the most recent Windows Update! The Automatically update this extension checkbox was checked (by default?).
So it must have silently updated upon VS restart?!

Granted, updates are useful and sometimes necessary. But they also may introduce problems. Performing updates automatically is one thing. But not informing the user about it is bad!


Here's an excerpt from the C:\TEMP\VSIXInstaller_f0335270-1a19-4b71-b74b-e50511bcd107.log:

1**2021-Nov-12 14:13:41**
2Application: devenv.exe
3Framework Version: v4.0.30319
4Description: The application requested process termination through System.Environment.FailFast(string message).
5Message: System.IO.FileNotFoundException: Could not load file or assembly 'System.Runtime.CompilerServices.Unsafe, Version=4.0.4.1, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' or one of its dependencies. The system cannot find the file specified.
6File name: 'System.Runtime.CompilerServices.Unsafe, Version=4.0.4.1, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a'
7   at System.Threading.Tasks.ValueTask`1.AsTask()
8   at Microsoft.CodeAnalysis.Document.GetSyntaxTreeAsync(CancellationToken cancellationToken)
9   at Microsoft.CodeAnalysis.Host.BackgroundParser.&lt;&gt;c__DisplayClass20_0.&lt;ParseDocumentAsync&gt;b__0()
10   at System.Threading.Tasks.Task`1.InnerInvoke()
11   at System.Threading.Tasks.Task.Execute()
12
13WRN: Assembly binding logging is turned OFF.
14To enable assembly bind failure logging, set the registry value [HKLM\Software\Microsoft\Fusion!EnableLog] (DWORD) to 1.
15Note: There is some performance penalty associated with assembly bind failure logging.
16To turn this feature off, remove the registry value [HKLM\Software\Microsoft\Fusion!EnableLog].
17
18Stack:
19   at System.Environment.FailFast(System.String, System.Exception)
20   at Microsoft.CodeAnalysis.FailFast.OnFatalException(System.Exception)
21   at Microsoft.CodeAnalysis.ErrorReporting.FatalError.Report(System.Exception, System.Action`1&lt;System.Exception&gt;)
22   at Microsoft.CodeAnalysis.ErrorReporting.FatalError.Report(System.Exception)
23   at Roslyn.Utilities.TaskExtensions.ReportFatalErrorWorker(System.Threading.Tasks.Task, System.Object)
24   at System.Threading.Tasks.ContinuationTaskFromTask.InnerInvoke()
25   at System.Threading.Tasks.Task.Execute()
26   at System.Threading.Tasks.Task.ExecutionContextCallback(System.Object)
27   at System.Threading.ExecutionContext.RunInternal(System.Threading.ExecutionContext, System.Threading.ContextCallback, System.Object, Boolean)
28   at System.Threading.ExecutionContext.Run(System.Threading.ExecutionContext, System.Threading.ContextCallback, System.Object, Boolean)
29   at System.Threading.Tasks.Task.ExecuteWithThreadLocal(System.Threading.Tasks.Task ByRef)
30   at System.Threading.Tasks.Task.ExecuteEntry(Boolean)
31   at System.Threading.Tasks.ThreadPoolTaskScheduler.TryExecuteTaskInline(System.Threading.Tasks.Task, Boolean)
32   at System.Threading.Tasks.TaskScheduler.TryRunInline(System.Threading.Tasks.Task, Boolean)
33   at System.Threading.Tasks.TaskContinuation.InlineIfPossibleOrElseQueue(System.Threading.Tasks.Task, Boolean)
34   at System.Threading.Tasks.StandardTaskContinuation.Run(System.Threading.Tasks.Task, Boolean)
35   at System.Threading.Tasks.Task.FinishContinuations()
36   at System.Threading.Tasks.Task.FinishStageThree()
37   at System.Threading.Tasks.Task.FinishStageTwo()
38   at System.Threading.Tasks.Task.Finish(Boolean)
39   at System.Threading.Tasks.Task`1[[System.__Canon, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089]].TrySetException(System.Object)
40   at System.Threading.Tasks.UnwrapPromise`1[[System.__Canon, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089]].TrySetFromTask(System.Threading.Tasks.Task, Boolean)
41   at System.Threading.Tasks.UnwrapPromise`1[[System.__Canon, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089]].ProcessCompletedOuterTask(System.Threading.Tasks.Task)
42   at System.Threading.Tasks.UnwrapPromise`1[[System.__Canon, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089]].InvokeCore(System.Threading.Tasks.Task)
43   at System.Threading.Tasks.UnwrapPromise`1[[System.__Canon, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089]].Invoke(System.Threading.Tasks.Task)
44   at System.Threading.Tasks.Task.FinishContinuations()
45   at System.Threading.Tasks.Task.FinishStageThree()
46   at System.Threading.Tasks.Task.FinishStageTwo()
47   at System.Threading.Tasks.Task.Finish(Boolean)
48   at System.Threading.Tasks.Task.ExecuteWithThreadLocal(System.Threading.Tasks.Task ByRef)
49   at System.Threading.Tasks.Task.ExecuteEntry(Boolean)
50   at System.Threading.Tasks.Task.System.Threading.IThreadPoolWorkItem.ExecuteWorkItem()
51   at System.Threading.ThreadPoolWorkQueue.Dispatch()
52   at System.Threading._ThreadPoolWaitCallback.PerformWaitCallback()
53**2021-Nov-12 14:14:16**
54Application: devenv.exe
55Framework Version: v4.0.30319
56Description: The application requested process termination through System.Environment.FailFast(string message).
57Message: System.IO.FileNotFoundException: Could not load file or assembly 'System.Runtime.CompilerServices.Unsafe, Version=4.0.4.1, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' or one of its dependencies. The system cannot find the file specified.
58File name: 'System.Runtime.CompilerServices.Unsafe, Version=4.0.4.1, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a'
59   at System.Threading.Tasks.ValueTask`1.AsTask()
60   at Microsoft.CodeAnalysis.Document.GetSyntaxTreeAsync(CancellationToken cancellationToken)
61   at Microsoft.VisualStudio.LanguageServices.Implementation.Progression.SymbolContainment.&lt;GetContainedSyntaxNodesAsync&gt;d__0.MoveNext()
62--- End of stack trace from previous location where exception was thrown ---
63   at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)
64   at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
65   at Microsoft.VisualStudio.LanguageServices.Implementation.Progression.ContainsChildrenGraphQuery.&lt;GetGraphAsync&gt;d__0.MoveNext()
66
67WRN: Assembly binding logging is turned OFF.
68To enable assembly bind failure logging, set the registry value [HKLM\Software\Microsoft\Fusion!EnableLog] (DWORD) to 1.
69Note: There is some performance penalty associated with assembly bind failure logging.
70To turn this feature off, remove the registry value [HKLM\Software\Microsoft\Fusion!EnableLog].
71
72Stack:
73   at System.Environment.FailFast(System.String, System.Exception)
74   at Microsoft.CodeAnalysis.FailFast.OnFatalException(System.Exception)
75   at Microsoft.CodeAnalysis.ErrorReporting.FatalError.Report(System.Exception, System.Action`1&lt;System.Exception&gt;)
76   at Microsoft.CodeAnalysis.ErrorReporting.FatalError.ReportUnlessCanceled(System.Exception)
77   at Roslyn.Utilities.TaskExtensions+&lt;&gt;c__DisplayClass7_0`1[[System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089]].&lt;SafeContinueWith&gt;g__outerFunction|0(System.Threading.Tasks.Task)
78   at System.Threading.Tasks.Task.ThrowIfExceptional(Boolean)
79   at System.Threading.Tasks.Task`1[[System.__Canon, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089]].GetResultCore(Boolean)
80   at System.Threading.Tasks.Task`1[[System.__Canon, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089]].get_Result()
81   at Microsoft.VisualStudio.LanguageServices.Implementation.Progression.GraphQueryManager+&lt;&gt;c__DisplayClass14_0.&lt;PopulateContextGraphAsync&gt;b__1(System.Threading.Tasks.Task`1&lt;Microsoft.VisualStudio.LanguageServices.Implementation.Progression.GraphBuilder[]&gt;)
82   at Roslyn.Utilities.TaskExtensions+&lt;&gt;c__DisplayClass6_0`1[[System.__Canon, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089]].&lt;SafeContinueWith&gt;b__0(System.Threading.Tasks.Task)
83   at Roslyn.Utilities.TaskExtensions+&lt;&gt;c__DisplayClass3_0.&lt;SafeContinueWith&gt;g__continuationFunction|0(System.Threading.Tasks.Task)
84   at Roslyn.Utilities.TaskExtensions+&lt;&gt;c__DisplayClass7_0`1[[System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089]].&lt;SafeContinueWith&gt;g__outerFunction|0(System.Threading.Tasks.Task)
85   at System.Threading.Tasks.ContinuationResultTaskFromTask`1[[System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089]].InnerInvoke()
86   at System.Threading.Tasks.Task.Execute()
87   at System.Threading.Tasks.Task.ExecutionContextCallback(System.Object)
88   at System.Threading.ExecutionContext.RunInternal(System.Threading.ExecutionContext, System.Threading.ContextCallback, System.Object, Boolean)
89   at System.Threading.ExecutionContext.Run(System.Threading.ExecutionContext, System.Threading.ContextCallback, System.Object, Boolean)
90   at System.Threading.Tasks.Task.ExecuteWithThreadLocal(System.Threading.Tasks.Task ByRef)
91   at System.Threading.Tasks.Task.ExecuteEntry(Boolean)
92   at System.Threading.Tasks.Task.System.Threading.IThreadPoolWorkItem.ExecuteWorkItem()
93   at System.Threading.ThreadPoolWorkQueue.Dispatch()
94   at System.Threading._ThreadPoolWaitCallback.PerformWaitCallback()
95**2021-Nov-12 14:14:19**
96Faulting application name: devenv.exe, version: 15.8.28010.2050, time stamp: 0x5bda1fc3
97Faulting module name: unknown, version: 0.0.0.0, time stamp: 0x00000000
98Exception code: 0x80131623
99Fault offset: 0x19a1c93a
100Faulting process id: 0x3d44
101Faulting application start time: 0x01d7d801d444a508
102Faulting application path: C:\Program Files (x86)\Microsoft Visual Studio\2017\Professional\Common7\IDE\devenv.exe
103Faulting module path: unknown
104Report Id: e230b637-fd72-47f8-a0d5-d2c4ccb10943
105**2021-Nov-12 14:14:35**
106Fault bucket 1659198495851531123, type 5
107Event Name: CLR20r3
108Response: Not available
109Cab Id: 0
110
111Problem signature:
112P1: devenv.exe
113P2: 15.8.28010.2050
114P3: 5bda1fc3
115P4: Microsoft.CodeAnalysis.Workspaces
116P5: 2.9.0.63208
117P6: f144aff0
118P7: 500
119P8: 41
120P9: System.IO.FileNotFoundException
121P10: 
122**2021-Nov-12 14:28:05**
123Application: ServiceHub.RoslynCodeAnalysisService32.exe
124Framework Version: v4.0.30319
125Description: The application requested process termination through System.Environment.FailFast(string message).
126Message: System.OperationCanceledException: The operation was canceled.
127   at System.Threading.CancellationToken.ThrowOperationCanceledException()
128   at Microsoft.CodeAnalysis.Remote.Extensions.&lt;InvokeAsync&gt;d__3`1.MoveNext()
129--- End of stack trace from previous location where exception was thrown ---
130   at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)
131   at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
132   at Microsoft.CodeAnalysis.Remote.ServiceHubServiceBase.&lt;RunServiceAsync&gt;d__25`1.MoveNext()
133--- End of stack trace from previous location where exception was thrown ---
134   at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)
135   at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
136   at Microsoft.CodeAnalysis.Remote.SnapshotService.JsonRpcAssetSource.&lt;RequestAssetsAsync&gt;d__2.MoveNext()
137Stack:
138   at System.Environment.FailFast(System.String, System.Exception)
139   at Microsoft.CodeAnalysis.FailFast.OnFatalException(System.Exception)
140   at Microsoft.CodeAnalysis.Remote.SnapshotService+JsonRpcAssetSource.ReportUnlessCanceled(System.Exception, System.Threading.CancellationToken)
141   at Microsoft.CodeAnalysis.Remote.SnapshotService+JsonRpcAssetSource+&lt;RequestAssetsAsync&gt;d__2.MoveNext()
142   at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(System.Threading.Tasks.Task)
143   at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(System.Threading.Tasks.Task)
144   at Microsoft.CodeAnalysis.Remote.SnapshotService+JsonRpcAssetSource+&lt;RequestAssetsAsync&gt;d__2.MoveNext()
145   at System.Runtime.CompilerServices.AsyncMethodBuilderCore+MoveNextRunner.InvokeMoveNext(System.Object)
146   at System.Threading.ExecutionContext.RunInternal(System.Threading.ExecutionContext, System.Threading.ContextCallback, System.Object, Boolean)
147   at System.Threading.ExecutionContext.Run(System.Threading.ExecutionContext, System.Threading.ContextCallback, System.Object, Boolean)
148   at System.Runtime.CompilerServices.AsyncMethodBuilderCore+MoveNextRunner.Run()
149   at System.Threading.Tasks.AwaitTaskContinuation.RunOrScheduleAction(System.Action, Boolean, System.Threading.Tasks.Task ByRef)
150   at System.Threading.Tasks.Task.FinishContinuations()
151   at System.Threading.Tasks.Task.FinishStageThree()
152   at System.Threading.Tasks.Task.CancellationCleanupLogic()
153   at System.Threading.Tasks.Task`1[[System.__Canon, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089]].TrySetCanceled(System.Threading.CancellationToken, System.Object)
154   at System.Runtime.CompilerServices.AsyncTaskMethodBuilder`1[[System.__Canon, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089]].SetException(System.Exception)
155   at Microsoft.CodeAnalysis.Remote.ServiceHubServiceBase+&lt;RunServiceAsync&gt;d__25`1[[System.__Canon, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089]].MoveNext()
156   at System.Runtime.CompilerServices.AsyncMethodBuilderCore+MoveNextRunner.InvokeMoveNext(System.Object)
157   at System.Threading.ExecutionContext.RunInternal(System.Threading.ExecutionContext, System.Threading.ContextCallback, System.Object, Boolean)
158   at System.Threading.ExecutionContext.Run(System.Threading.ExecutionContext, System.Threading.ContextCallback, System.Object, Boolean)
159   at System.Runtime.CompilerServices.AsyncMethodBuilderCore+MoveNextRunner.Run()
160   at System.Threading.Tasks.AwaitTaskContinuation.RunOrScheduleAction(System.Action, Boolean, System.Threading.Tasks.Task ByRef)
161   at System.Threading.Tasks.Task.FinishContinuations()
162   at System.Threading.Tasks.Task.FinishStageThree()
163   at System.Threading.Tasks.Task.CancellationCleanupLogic()
164   at System.Threading.Tasks.Task`1[[System.__Canon, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089]].TrySetCanceled(System.Threading.CancellationToken, System.Object)
165   at System.Runtime.CompilerServices.AsyncTaskMethodBuilder`1[[System.__Canon, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089]].SetException(System.Exception)
166   at Microsoft.CodeAnalysis.Remote.Extensions+&lt;InvokeAsync&gt;d__3`1[[System.__Canon, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089]].MoveNext()
167   at System.Runtime.CompilerServices.AsyncMethodBuilderCore+MoveNextRunner.InvokeMoveNext(System.Object)
168   at System.Threading.ExecutionContext.RunInternal(System.Threading.ExecutionContext, System.Threading.ContextCallback, System.Object, Boolean)
169   at System.Threading.ExecutionContext.Run(System.Threading.ExecutionContext, System.Threading.ContextCallback, System.Object, Boolean)
170   at System.Runtime.CompilerServices.AsyncMethodBuilderCore+MoveNextRunner.Run()
171   at System.Threading.Tasks.AwaitTaskContinuation.RunOrScheduleAction(System.Action, Boolean, System.Threading.Tasks.Task ByRef)
172   at System.Threading.Tasks.Task.FinishContinuations()
173   at System.Threading.Tasks.Task.FinishStageThree()
174   at System.Threading.Tasks.Task.CancellationCleanupLogic()
175   at System.Threading.Tasks.Task`1[[System.Threading.Tasks.VoidTaskResult, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089]].TrySetCanceled(System.Threading.CancellationToken, System.Object)
176   at System.Threading.Tasks.TaskFactory`1[[System.Threading.Tasks.VoidTaskResult, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089]].FromAsyncCoreLogic(System.IAsyncResult, System.Func`2&lt;System.IAsyncResult,System.Threading.Tasks.VoidTaskResult&gt;, System.Action`1&lt;System.IAsyncResult&gt;, System.Threading.Tasks.Task`1&lt;System.Threading.Tasks.VoidTaskResult&gt;, Boolean)
177   at System.Threading.Tasks.TaskFactory`1+&lt;&gt;c__DisplayClass35_0[[System.Threading.Tasks.VoidTaskResult, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089]].&lt;FromAsyncImpl&gt;b__0(System.IAsyncResult)
178   at System.IO.Pipes.NamedPipeServerStream.AsyncWaitForConnectionCallback(UInt32, UInt32, System.Threading.NativeOverlapped*)
179   at System.Threading._IOCompletionCallback.PerformIOCompletionCallback(UInt32, UInt32, System.Threading.NativeOverlapped*)
180
181**2021-Nov-12 14:28:06**
182Faulting application name: ServiceHub.RoslynCodeAnalysisService32.exe, version: 1.3.77.18573, time stamp: 0xdc9a59bf
183Faulting module name: unknown, version: 0.0.0.0, time stamp: 0x00000000
184Exception code: 0x80131623
185Fault offset: 0x0aa234ca
186Faulting process id: 0x2d4c
187Faulting application start time: 0x01d7d803c7d13c18
188Faulting application path: C:\Program Files (x86)\Microsoft Visual Studio\2017\Professional\Common7\ServiceHub\Hosts\ServiceHub.Host.CLR.x86\ServiceHub.RoslynCodeAnalysisService32.exe
189Faulting module path: unknown
190
191**2021-Nov-12 14:28:11**
192Fault bucket 1674005537433911736, type 5
193Event Name: CLR20r3
194Response: Not available
195Cab Id: 0
196
197Problem signature:
198P1: O5DFLQX35YXZVV3T1Q5XYRCHNTQNLFQ2
199P2: 1.3.77.18573
200P3: dc9a59bf
201P4: mscorlib
202P5: 4.8.4420.0
203P6: 6109cb33
204P7: 3e6d
205P8: 15
206P9: System.OperationCanceled
207P10: 
208**2021-Nov-15 09:45:25**
209Application: devenv.exe
210Framework Version: v4.0.30319
211Description: The application requested process termination through System.Environment.FailFast(string message).
212Message: System.IO.FileNotFoundException: Could not load file or assembly 'System.Runtime.CompilerServices.Unsafe, Version=4.0.4.1, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' or one of its dependencies. The system cannot find the file specified.
213File name: 'System.Runtime.CompilerServices.Unsafe, Version=4.0.4.1, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a'
214   at System.Threading.Tasks.ValueTask`1.AsTask()
215   at Microsoft.CodeAnalysis.Document.GetSyntaxTreeAsync(CancellationToken cancellationToken)
216   at Microsoft.CodeAnalysis.Host.BackgroundParser.&lt;&gt;c__DisplayClass20_0.&lt;ParseDocumentAsync&gt;b__0()
217   at System.Threading.Tasks.Task`1.InnerInvoke()
218   at System.Threading.Tasks.Task.Execute()
219
220WRN: Assembly binding logging is turned OFF.
221To enable assembly bind failure logging, set the registry value [HKLM\Software\Microsoft\Fusion!EnableLog] (DWORD) to 1.
222Note: There is some performance penalty associated with assembly bind failure logging.
223To turn this feature off, remove the registry value [HKLM\Software\Microsoft\Fusion!EnableLog].
224
225Stack:
226   at System.Environment.FailFast(System.String, System.Exception)
227   at Microsoft.CodeAnalysis.FailFast.OnFatalException(System.Exception)
228   at Microsoft.CodeAnalysis.ErrorReporting.FatalError.Report(System.Exception, System.Action`1&lt;System.Exception&gt;)
229   at Microsoft.CodeAnalysis.ErrorReporting.FatalError.Report(System.Exception)
230   at Roslyn.Utilities.TaskExtensions.ReportFatalErrorWorker(System.Threading.Tasks.Task, System.Object)
231   at System.Threading.Tasks.ContinuationTaskFromTask.InnerInvoke()
232   at System.Threading.Tasks.Task.Execute()
233   at System.Threading.Tasks.Task.ExecutionContextCallback(System.Object)
234   at System.Threading.ExecutionContext.RunInternal(System.Threading.ExecutionContext, System.Threading.ContextCallback, System.Object, Boolean)
235   at System.Threading.ExecutionContext.Run(System.Threading.ExecutionContext, System.Threading.ContextCallback, System.Object, Boolean)
236   at System.Threading.Tasks.Task.ExecuteWithThreadLocal(System.Threading.Tasks.Task ByRef)
237   at System.Threading.Tasks.Task.ExecuteEntry(Boolean)
238   at System.Threading.Tasks.ThreadPoolTaskScheduler.TryExecuteTaskInline(System.Threading.Tasks.Task, Boolean)
239   at System.Threading.Tasks.TaskScheduler.TryRunInline(System.Threading.Tasks.Task, Boolean)
240   at System.Threading.Tasks.TaskContinuation.InlineIfPossibleOrElseQueue(System.Threading.Tasks.Task, Boolean)
241   at System.Threading.Tasks.StandardTaskContinuation.Run(System.Threading.Tasks.Task, Boolean)
242   at System.Threading.Tasks.Task.FinishContinuations()
243   at System.Threading.Tasks.Task.FinishStageThree()
244   at System.Threading.Tasks.Task.FinishStageTwo()
245   at System.Threading.Tasks.Task.Finish(Boolean)
246   at System.Threading.Tasks.Task`1[[System.__Canon, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089]].TrySetException(System.Object)
247   at System.Threading.Tasks.UnwrapPromise`1[[System.__Canon, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089]].TrySetFromTask(System.Threading.Tasks.Task, Boolean)
248   at System.Threading.Tasks.UnwrapPromise`1[[System.__Canon, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089]].ProcessCompletedOuterTask(System.Threading.Tasks.Task)
249   at System.Threading.Tasks.UnwrapPromise`1[[System.__Canon, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089]].InvokeCore(System.Threading.Tasks.Task)
250   at System.Threading.Tasks.UnwrapPromise`1[[System.__Canon, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089]].Invoke(System.Threading.Tasks.Task)
251   at System.Threading.Tasks.Task.FinishContinuations()
252   at System.Threading.Tasks.Task.FinishStageThree()
253   at System.Threading.Tasks.Task.FinishStageTwo()
254   at System.Threading.Tasks.Task.Finish(Boolean)
255   at System.Threading.Tasks.Task.ExecuteWithThreadLocal(System.Threading.Tasks.Task ByRef)
256   at System.Threading.Tasks.Task.ExecuteEntry(Boolean)
257   at System.Threading.Tasks.Task.System.Threading.IThreadPoolWorkItem.ExecuteWorkItem()
258   at System.Threading.ThreadPoolWorkQueue.Dispatch()
259   at System.Threading._ThreadPoolWaitCallback.PerformWaitCallback()
260C:\&gt;dir System.Runtime.CompilerServices.Unsafe.* /s /n
261
262C:\Program Files\dotnet\sdk\2.1.403\DotnetTools\dotnet-sql-cache\2.1.1\tools\netcoreapp2.1\any
263    2018-Sep-20  14:48            14,712
264
265C:\Program Files\dotnet\sdk\2.1.403\DotnetTools\dotnet-user-secrets\2.1.1\tools\netcoreapp2.1\any
266    2018-Sep-20  14:48            14,928
267
268C:\Program Files\dotnet\sdk\NuGetFallbackFolder\system.runtime.compilerservices.unsafe\4.4.0
269    2018-Nov-08  16:14            62,144 system.runtime.compilerservices.unsafe.4.4.0.nupkg
270
271C:\Program Files\dotnet\sdk\NuGetFallbackFolder\system.runtime.compilerservices.unsafe\4.4.0\lib\netstandard1.0
272    2018-Nov-08  16:14            21,792
273
274C:\Program Files\dotnet\sdk\NuGetFallbackFolder\system.runtime.compilerservices.unsafe\4.4.0\lib\netstandard2.0
275    2018-Nov-08  16:14            21,944
276
277C:\Program Files\dotnet\sdk\NuGetFallbackFolder\system.runtime.compilerservices.unsafe\4.4.0\ref\netstandard1.0
278    2018-Nov-08  16:14            22,968
279
280C:\Program Files\dotnet\sdk\NuGetFallbackFolder\system.runtime.compilerservices.unsafe\4.4.0\ref\netstandard2.0
281    2018-Nov-08  16:14            23,480
282
283C:\Program Files\dotnet\sdk\NuGetFallbackFolder\system.runtime.compilerservices.unsafe\4.5.0
284    2018-Nov-08  16:10            87,453 system.runtime.compilerservices.unsafe.4.5.0.nupkg
285
286C:\Program Files\dotnet\sdk\NuGetFallbackFolder\system.runtime.compilerservices.unsafe\4.5.0\lib\netcoreapp2.0
287    2018-Nov-08  16:10            21,648
288
289C:\Program Files\dotnet\sdk\NuGetFallbackFolder\system.runtime.compilerservices.unsafe\4.5.0\lib\netstandard1.0
290    2018-Nov-08  16:10            22,160
291
292C:\Program Files\dotnet\sdk\NuGetFallbackFolder\system.runtime.compilerservices.unsafe\4.5.0\lib\netstandard2.0
293    2018-Nov-08  16:10            22,160
294
295C:\Program Files\dotnet\sdk\NuGetFallbackFolder\system.runtime.compilerservices.unsafe\4.5.0\ref\netstandard1.0
296    2018-Nov-08  16:10            23,176
297
298C:\Program Files\dotnet\sdk\NuGetFallbackFolder\system.runtime.compilerservices.unsafe\4.5.0\ref\netstandard2.0
299    2018-Nov-08  16:10            23,696
300
301C:\Program Files\dotnet\sdk\NuGetFallbackFolder\system.runtime.compilerservices.unsafe\4.5.1
302    2018-Nov-08  16:10            87,219 system.runtime.compilerservices.unsafe.4.5.1.nupkg
303
304C:\Program Files\dotnet\sdk\NuGetFallbackFolder\system.runtime.compilerservices.unsafe\4.5.1\lib\netcoreapp2.0
305    2018-Nov-08  16:11            21,640
306
307C:\Program Files\dotnet\sdk\NuGetFallbackFolder\system.runtime.compilerservices.unsafe\4.5.1\lib\netstandard1.0
308    2018-Nov-08  16:11            22,160
309
310C:\Program Files\dotnet\sdk\NuGetFallbackFolder\system.runtime.compilerservices.unsafe\4.5.1\lib\netstandard2.0
311    2018-Nov-08  16:11            22,184
312
313C:\Program Files\dotnet\sdk\NuGetFallbackFolder\system.runtime.compilerservices.unsafe\4.5.1\ref\netstandard1.0
314    2018-Nov-08  16:11            23,720
315
316C:\Program Files\dotnet\sdk\NuGetFallbackFolder\system.runtime.compilerservices.unsafe\4.5.1\ref\netstandard2.0
317    2018-Nov-08  16:11            24,208
318
319C:\Program Files\dotnet\shared\Microsoft.AspNetCore.App\2.1.5
320    2018-Sep-20  15:08            19,536        4.6.26919.2
321
322C:\Program Files\dotnet\store\x64\netcoreapp2.0\system.runtime.compilerservices.unsafe\4.4.0\lib\netstandard2.0
323    2017-Jul-25  00:57            17,416
324
325C:\Program Files\WindowsApps\Microsoft.YourPhone_1.21092.149.0_x64__8wekyb3d8bbwe
326    2021-Jul-01  06:45            16,768        4.6.28619.1
327
328C:\Program Files\WindowsApps\Microsoft.YourPhone_1.21092.149.0_x64__8wekyb3d8bbwe\YourPhoneAppProxy
329    2021-Oct-19  05:48            18,824        4.700.21.47101
330
331C:\Program Files\WindowsApps\Microsoft.YourPhone_1.21092.149.0_x64__8wekyb3d8bbwe\YourPhoneServer
332    2020-Jun-13  17:25            17,000        4.700.20.12001
333
334C:\Program Files (x86)\Microsoft Visual Studio\2017\Professional\Common7\IDE\Extensions\001ss942.rgs
335    2021-May-20  04:28            16,768        5.0.20.51904            [RedGate.SQLSearch ?]
336
337C:\Program Files (x86)\Microsoft Visual Studio\2017\Professional\Common7\IDE\Extensions\ph2houvf.kuk
338    2019-Sep-07  04:28            21,792        ?? no version ??        [MS VS CloudExplorer]
339Microsoft Visual Studio Professional 2017 
340Version 15.8.9
341VisualStudio.15.Release/15.8.9+28010.2050
342Microsoft .NET Framework
343Version 4.8.04084
344
345ASP.NET and Web Tools 2017   15.8.05085.0
346ASP.NET Core Razor Language Services   15.8.31590
347ASP.NET Web Frameworks and Tools 2017   5.2.60618.0
348C# Tools   2.9.0-beta8-63208-01
349NuGet Package Manager   4.6.0
350Redgate SQL Search   3.5.5.2703
351SQL Server Data Tools   15.1.61808.07020
352Xamarin   4.11.0.779 (d15-8@ff915e800)
353Xamarin Designer   4.15.12 (d7ff6f39c)
354Xamarin Templates   1.1.118 (4217ee9)
355Xamarin.Android SDK   9.0.0.19 (HEAD/a8a3b0ec7)
356Initializing Uninstall...
357Extension Details...
358    Identifier         : 7e2a69d6-193b-4cdf-878d-3370d5931942
359    Name               : Code Converter (VB - C#)
360    Author             : IC#Code
361    Version            : 8.4.1.0
362    Description        : Convert VB.NET to C# and vice versa with this roslyn based converter
363    Locale             : en-US
364    MoreInfoURL        : https://github.com/icsharpcode/CodeConverter
365    InstalledByMSI     : False
366    SupportedFrameworkVersionRange : [4.6,)
367
368    Supported Products : 
369        Microsoft.VisualStudio.Community
370            Version : [15.0,17.0)
371        Microsoft.VisualStudio.Community
372            Version : [17.0,18.0)
373
374    References         : 
375    Prerequisites      : 
376        -------------------------------------------------------
377        Identifier   : Microsoft.VisualStudio.Component.CoreEditor
378        Name         : Visual Studio core editor
379        Version      : [15.0.26004.1,)
380

As soon as I removed this, VStudio was able to open/load projects; no restart was needed! Before it would crash even initializing/opening a new empty ones!

While reading the documentation on this converter I also found a very similar bug.

Source https://stackoverflow.com/questions/69978887

QUESTION

Logging access to Java servlet

Asked 2021-Nov-04 at 02:48

I'm currently developing a Java Web application using Servlets. What I need to do is log to a file every access made to the website. To do that, I used Filters. So far, I've made it to the point where I can print everything to the console.

What I now need to do is store that into a file with a maximum of 10.000 entries up to 30 days old (if the maximum entries is achieved, the oldest ones are replaced when a new one is written).

How can I do that?

P.S: I cannot use a database for this assignment

Edit: I am not using a web framework. I can use logging frameworks.

ANSWER

Answered 2021-Nov-04 at 02:48

So, this question actually prompted me to investigate whether any of the popular logging frameworks can actually do the task as requested.

While most do rolling logs based on file size and date/time, none of them had an easy way to do a rolling log based on entries in the log file. Also, existing logging frameworks typically store each day (and sometimes smaller units of time) in their own separate file, making for efficient cleanup based on date/time.

With a requirement for a maximum number of lines inside a single file, this necessitates reading the entire file into memory (very inefficient!). When everything, past and present is being written to a single file, removing older entries requires parsing each line for the date/time that entry was written (also, inefficient!).

Below is a simple program to demonstrate that this can be done, but there are some serious problems with this approach:

  • Not thread safe (if two threads try to read/write an entry simultaneously, one will be clobbered and the message will be skipped)
  • Slurping is bad (ten thousand entries is a lot: can the server slurp all that into memory?)

This is probably suitable for a toy project, a demonstration, or a school assignment.

This is NOT suitable for production applications, or really anything on the web that more than one person is going to use at a time.


In short, if you try to use a handi-craft program that you found on the internet for a mission-critical application that other people depend on, you are going to get exactly what you deserve.


1public static void main(final String[] args) throws Exception
2{
3    final File logFile = new File(&quot;C:/&quot;, &quot;EverythingInOneBigGiant.log&quot;);
4    final int maxDays = 30;
5    final int maxEntries = 10000;
6
7    while (true)
8    {
9        // Just log the current time for this example, also makes parsing real simple
10        final String msg = Instant.now().toString();
11        slurpAndParse(logFile, msg, maxDays, maxEntries);
12
13        // Wait a moment, before writing another entry
14        Thread.sleep(750);
15    }
16}
17
18private static void slurpAndParse(final File f, final String msg, final int maxDays, final int maxEntries)
19        throws Exception
20{
21    // Slurp entire file into this buffer (possibly very large!)
22    // Could crash your server if you run out of memory
23    final StringBuffer sb = new StringBuffer();
24
25    if (f.exists() &amp;&amp; f.isFile())
26    {
27        final LocalDateTime now = LocalDateTime.now();
28
29        final long totalLineCount = Files.lines(Paths.get(f.getAbsolutePath())).count();
30        final long startAtLine = (totalLineCount &lt; maxEntries ? 0 : (totalLineCount - maxEntries) + 1);
31        long currentLineCount = 0;
32
33        try (final BufferedReader br = new BufferedReader(new FileReader(f)))
34        {
35            String line;
36            while (null != (line = br.readLine()))
37            {
38                // Ignore all lines before the start counter
39                if (currentLineCount &lt; startAtLine)
40                {
41                    ++currentLineCount;
42                    continue;
43                }
44
45                // Parsing log data... while writing to the same log... ugh... how hideous
46                final LocalDateTime lineDate = LocalDateTime.parse(line, DateTimeFormatter.ISO_ZONED_DATE_TIME);
47                final Duration timeBetween = Duration.between(lineDate, now);
48                // ... or maybe just use Math.abs() here? I defer to the date/time buffs
49                final long dayDiff = (timeBetween.isNegative() ? timeBetween.negated() : timeBetween).toDays();
50
51                // Only accept lines less than the max age in days
52                if (dayDiff &lt;= maxDays)
53                {
54                    sb.append(line);
55                    sb.append(System.lineSeparator());
56                }
57            }
58        }
59    }
60
61    System.out.println(msg);
62
63    // Add the new log entry
64    sb.append(msg);
65    sb.append(System.lineSeparator());
66
67    writeLog(f, sb.toString());
68}
69
70private static void writeLog(final File f, final String content) throws IOException
71{
72    try (final Writer out = new FileWriter(f))
73    {
74        out.write(content);
75    }
76}
77

Source https://stackoverflow.com/questions/69801619

QUESTION

DataTables warning: table id=&lt;my_table_name&gt; - Requested unknown parameter '&lt;my_table_first_column_name&gt;' for row 0, column 0

Asked 2021-Oct-26 at 15:38

I am quite new to Javascript, I am working to extend pieces of code implemented by third parts and I have to fill in a table with data using DataTables.

context

This table is made up of 3 columns: "nested field", "subfields blacklist", "edit", and when filled in with data should look like this:

enter image description here

The data to be filled in columns "nested field" and "subfields blacklist" come from the columns "nested field" and "subfields" of a Postgres database table defined as:

1CREATE TABLE testing_nested_field_blacklist (
2    id              SERIAL NOT NULL UNIQUE,
3    nested_field    varchar(100) NOT NULL UNIQUE,
4    subfields       varchar(100)[]
5);
6

while data from "id" column is not needed in the html table.

problem

However, I am making some mistakes with Datatables and getting these two error popups when loading the html page (as I click "ok" on the first one, the latter pops up).

enter image description here

DataTables warning: table id=NestedFieldTable - Requested unknown parameter 'nested_field_name' for row 0, column 0. For more information about this error, please see http://datatables.net/tn/4

Note that at this point the table has only one row and not even the "edit" colums is populated with data (this column will be the only one to be successfully populated with data when I close the two error pop-ups).

enter image description here

DataTables warning: table id=NestedFieldTable - Requested unknown parameter 'nested_field_name' for row 0, column 0. For more information about this error, please see http://datatables.net/tn/4

Note that the error message is exactly the same both times.

Here is the html template:

1CREATE TABLE testing_nested_field_blacklist (
2    id              SERIAL NOT NULL UNIQUE,
3    nested_field    varchar(100) NOT NULL UNIQUE,
4    subfields       varchar(100)[]
5);
6&lt;!-- Topbar Search --&gt;
7&lt;form class=&quot;d-none d-sm-inline-block form-inline mr-auto ml-md-3 my-2 my-md-0 mw-100 navbar-search&quot;&gt;
8    &lt;div class=&quot;input-group&quot;&gt;
9        &lt;input type=&quot;text&quot; class=&quot;form-control bg-light border-0 small&quot; placeholder=&quot;Search for...&quot; aria-label=&quot;Search&quot; aria-describedby=&quot;basic-addon2&quot;&gt;
10        &lt;div class=&quot;input-group-append&quot;&gt;
11            &lt;button class=&quot;btn btn-primary&quot; type=&quot;button&quot;&gt;
12                &lt;i class=&quot;fas fa-search fa-sm&quot;&gt;&lt;/i&gt;
13            &lt;/button&gt;
14        &lt;/div&gt;
15    &lt;/div&gt;
16&lt;/form&gt;
17
18&lt;!-- Topbar Navbar --&gt;
19&lt;ul class=&quot;navbar-nav ml-auto&quot;&gt;
20
21    &lt;div class=&quot;topbar-divider d-none d-sm-block&quot;&gt;&lt;/div&gt;
22
23    &lt;li class=&quot;nav-item&quot;&gt;
24        &lt;a class=&quot;nav-link text-black-50&quot; href=&quot;#&quot; data-toggle=&quot;modal&quot; data-target=&quot;#logoutModal&quot;&gt;
25            &lt;i class=&quot;fas fa-sign-out-alt mr-2&quot;&gt;&lt;/i&gt;
26            &lt;span&gt;Logout&lt;/span&gt;
27        &lt;/a&gt;
28    &lt;/li&gt;
29&lt;/ul&gt;
30&lt;/nav&gt;
31&lt;!-- End of Topbar --&gt;
32
33&lt;!-- Begin Page Content --&gt;
34&lt;div class=&quot;container-fluid&quot;&gt;
35
36&lt;ol class=&quot;breadcrumb shadow-lg&quot;&gt;
37    &lt;li class=&quot;breadcrumb-item&quot;&gt;
38        &lt;a href=&quot;/4testing/&quot;&gt;Home&lt;/a&gt;
39    &lt;/li&gt;
40    &lt;li class=&quot;breadcrumb-item active&quot;&gt;Nested fields and subfields blacklists&lt;/li&gt;
41&lt;/ol&gt;
42
43&lt;!-- alert messages --&gt;
44&lt;div class=&quot;alert alert-success alert-dismissible fade show&quot; role=&quot;alert&quot;&gt;
45    &lt;button type=&quot;button&quot; class=&quot;close&quot; data-dismiss=&quot;alert&quot; aria-label=&quot;Close&quot;&gt;
46        &lt;span aria-hidden=&quot;true&quot;&gt;&amp;times;&lt;/span&gt;
47    &lt;/button&gt;
48    &lt;strong id=&quot;alert-success-title&quot;&gt;&lt;/strong&gt; &lt;div id=&quot;alert-success-detail&quot;&gt;&lt;/div&gt;
49&lt;/div&gt;
50
51&lt;div class=&quot;alert alert-danger alert-dismissible fade show&quot; role=&quot;alert&quot;&gt;
52    &lt;button type=&quot;button&quot; class=&quot;close&quot; data-dismiss=&quot;alert&quot; aria-label=&quot;Close&quot;&gt;
53        &lt;span aria-hidden=&quot;true&quot;&gt;&amp;times;&lt;/span&gt;
54    &lt;/button&gt;
55    &lt;strong id=&quot;alert-danger-title&quot;&gt;&lt;/strong&gt; &lt;div id=&quot;alert-danger-detail&quot;&gt;&lt;/div&gt;
56&lt;/div&gt;
57
58&lt;!-- TABELLA NESTED FIELDS --&gt;
59&lt;div class=&quot;card shadow mb-4&quot;&gt;
60    &lt;div class=&quot;card-header py-3&quot;&gt;
61        &lt;h6 class=&quot;m-0 font-weight-bold text-primary&quot;&gt;&lt;i class=&quot;fas fa-ban&quot; aria-hidden=&quot;true&quot;&gt;&lt;/i&gt; Nested fields and subfields blacklists&lt;/h6&gt;
62    &lt;/div&gt;
63    &lt;div class=&quot;card-body&quot;&gt;
64        &lt;div class=&quot;table-responsive&quot;&gt;
65            &lt;table class=&quot;table table-bordered table-hover&quot; id=&quot;NestedFieldTable&quot; width=&quot;100%&quot; cellspacing=&quot;0&quot;&gt;
66            &lt;/table&gt;
67        &lt;/div&gt;
68    &lt;/div&gt;
69&lt;/div&gt;
70

Here is the Javascript to fill in the table with data:

1CREATE TABLE testing_nested_field_blacklist (
2    id              SERIAL NOT NULL UNIQUE,
3    nested_field    varchar(100) NOT NULL UNIQUE,
4    subfields       varchar(100)[]
5);
6&lt;!-- Topbar Search --&gt;
7&lt;form class=&quot;d-none d-sm-inline-block form-inline mr-auto ml-md-3 my-2 my-md-0 mw-100 navbar-search&quot;&gt;
8    &lt;div class=&quot;input-group&quot;&gt;
9        &lt;input type=&quot;text&quot; class=&quot;form-control bg-light border-0 small&quot; placeholder=&quot;Search for...&quot; aria-label=&quot;Search&quot; aria-describedby=&quot;basic-addon2&quot;&gt;
10        &lt;div class=&quot;input-group-append&quot;&gt;
11            &lt;button class=&quot;btn btn-primary&quot; type=&quot;button&quot;&gt;
12                &lt;i class=&quot;fas fa-search fa-sm&quot;&gt;&lt;/i&gt;
13            &lt;/button&gt;
14        &lt;/div&gt;
15    &lt;/div&gt;
16&lt;/form&gt;
17
18&lt;!-- Topbar Navbar --&gt;
19&lt;ul class=&quot;navbar-nav ml-auto&quot;&gt;
20
21    &lt;div class=&quot;topbar-divider d-none d-sm-block&quot;&gt;&lt;/div&gt;
22
23    &lt;li class=&quot;nav-item&quot;&gt;
24        &lt;a class=&quot;nav-link text-black-50&quot; href=&quot;#&quot; data-toggle=&quot;modal&quot; data-target=&quot;#logoutModal&quot;&gt;
25            &lt;i class=&quot;fas fa-sign-out-alt mr-2&quot;&gt;&lt;/i&gt;
26            &lt;span&gt;Logout&lt;/span&gt;
27        &lt;/a&gt;
28    &lt;/li&gt;
29&lt;/ul&gt;
30&lt;/nav&gt;
31&lt;!-- End of Topbar --&gt;
32
33&lt;!-- Begin Page Content --&gt;
34&lt;div class=&quot;container-fluid&quot;&gt;
35
36&lt;ol class=&quot;breadcrumb shadow-lg&quot;&gt;
37    &lt;li class=&quot;breadcrumb-item&quot;&gt;
38        &lt;a href=&quot;/4testing/&quot;&gt;Home&lt;/a&gt;
39    &lt;/li&gt;
40    &lt;li class=&quot;breadcrumb-item active&quot;&gt;Nested fields and subfields blacklists&lt;/li&gt;
41&lt;/ol&gt;
42
43&lt;!-- alert messages --&gt;
44&lt;div class=&quot;alert alert-success alert-dismissible fade show&quot; role=&quot;alert&quot;&gt;
45    &lt;button type=&quot;button&quot; class=&quot;close&quot; data-dismiss=&quot;alert&quot; aria-label=&quot;Close&quot;&gt;
46        &lt;span aria-hidden=&quot;true&quot;&gt;&amp;times;&lt;/span&gt;
47    &lt;/button&gt;
48    &lt;strong id=&quot;alert-success-title&quot;&gt;&lt;/strong&gt; &lt;div id=&quot;alert-success-detail&quot;&gt;&lt;/div&gt;
49&lt;/div&gt;
50
51&lt;div class=&quot;alert alert-danger alert-dismissible fade show&quot; role=&quot;alert&quot;&gt;
52    &lt;button type=&quot;button&quot; class=&quot;close&quot; data-dismiss=&quot;alert&quot; aria-label=&quot;Close&quot;&gt;
53        &lt;span aria-hidden=&quot;true&quot;&gt;&amp;times;&lt;/span&gt;
54    &lt;/button&gt;
55    &lt;strong id=&quot;alert-danger-title&quot;&gt;&lt;/strong&gt; &lt;div id=&quot;alert-danger-detail&quot;&gt;&lt;/div&gt;
56&lt;/div&gt;
57
58&lt;!-- TABELLA NESTED FIELDS --&gt;
59&lt;div class=&quot;card shadow mb-4&quot;&gt;
60    &lt;div class=&quot;card-header py-3&quot;&gt;
61        &lt;h6 class=&quot;m-0 font-weight-bold text-primary&quot;&gt;&lt;i class=&quot;fas fa-ban&quot; aria-hidden=&quot;true&quot;&gt;&lt;/i&gt; Nested fields and subfields blacklists&lt;/h6&gt;
62    &lt;/div&gt;
63    &lt;div class=&quot;card-body&quot;&gt;
64        &lt;div class=&quot;table-responsive&quot;&gt;
65            &lt;table class=&quot;table table-bordered table-hover&quot; id=&quot;NestedFieldTable&quot; width=&quot;100%&quot; cellspacing=&quot;0&quot;&gt;
66            &lt;/table&gt;
67        &lt;/div&gt;
68    &lt;/div&gt;
69&lt;/div&gt;
70var NestedFieldTable;
71
72$(document).ready(function() {
73
74    // NESTED FIELD
75    NestedFieldTable = $('#NestedFieldTable').DataTable({
76        &quot;destroy&quot;: true,
77        &quot;processing&quot;:true,
78        &quot;ajax&quot;:  {
79            &quot;url&quot;: '/getNestedFields/',
80            &quot;type&quot;:&quot;POST&quot;,
81            &quot;dataSrc&quot;: &quot;nested_field&quot;
82        },
83        &quot;columns&quot;: columns_nested_field,
84        &quot;columnDefs&quot;: [
85            {&quot;targets&quot;: -1, &quot;data&quot;: null, &quot;defaultContent&quot;: &quot;&lt;i class='fas fa-edit' aria-hidden='true' id='modifyRow' data-toggle='modal' data-target='#myModalEditNestedField' title='Clicca per modificare il nested field o la blacklist'&gt;&lt;/i&gt;&lt;i style='margin-left:15px;' class='fas fa-trash' aria-hidden='true' id='deleteRow' data-toggle='modal' data-target='#myModalDeleteNestedField'  title='click top delete nested field and blacklist'&gt;&lt;/i&gt;&quot;, &quot;width&quot;: &quot;75px&quot;},
86            
87        ],
88        &quot;dom&quot;:  &quot;&lt;'row'&lt;'col-md-6 toolbar_nestedfield'&gt;&lt;'col-md-6'fBl&gt;&gt;&quot; +
89                &quot;&lt;'row'&lt;'col-md-6'&gt;&lt;'col-md-6'&gt;&gt;&quot; +
90                &quot;&lt;'row'&lt;'col-md-12't&gt;&gt;&lt;'row'&lt;'col-md-12'pi&gt;&gt;&quot;,
91        &quot;buttons&quot;: [
92            {
93                extend: 'collection',
94                text: 'Export',
95                autoClose: true,
96                buttons: [
97                    {
98                        text: '&lt;i class=&quot;fas fa-print&quot;&gt;&lt;/i&gt; Print',
99                        extend: 'print',
100                        messageTop: 'Table of nested fields and subfields blacklist.',
101                        footer: false
102                    }
103                ]
104            },
105            {
106                text: '&lt;i class=&quot;fas fa-sync-alt&quot;&gt;&lt;/i&gt;',
107                titleAttr: 'Refresh table',
108                action: function ( e, dt) {
109                    dt.ajax.reload();
110                    set_alert_message({&quot;title&quot;:&quot;Refresh&quot;, &quot;detail&quot;:&quot;Table successfully refreshed&quot;}, &quot;success&quot;);
111                }
112            }
113        ],
114        &quot;language&quot;: {
115            &quot;searchPlaceholder&quot;: &quot;Search&quot;,
116            &quot;search&quot;: &quot;&lt;div class='form-group'&gt;&lt;div class='input-group'&gt;&lt;div class='input-group-prepend'&gt;&lt;span class='input-group-text'&gt;&lt;i class='fas fa-search fa-fw'&gt;&lt;/i&gt;&lt;/span&gt;&lt;/div&gt;_INPUT_&lt;/div&gt;&lt;/div&gt;&quot;,
117            &quot;lengthMenu&quot;: &quot;&lt;div class='form-group'&gt;&lt;div class='input-group'&gt;&lt;div class='input-group-prepend'&gt;&lt;span class='input-group-text'&gt;&lt;i class='fas fa-list-ul fa-fw'&gt;&lt;/i&gt;&lt;/span&gt;&lt;/div&gt;_MENU_&lt;/div&gt;&lt;/div&gt;&quot;,
118            &quot;oPaginate&quot;: {
119                sNext: '&lt;span class=&quot;pagination-default&quot;&gt;&amp;#x276f;&lt;/span&gt;',
120                sPrevious: '&lt;span class=&quot;pagination-default&quot;&gt;&amp;#x276e;&lt;/span&gt;'
121            }
122        }
123    });
124    $(&quot;.toolbar_nestedfield&quot;).html('&lt;button type=&quot;button&quot; class=&quot;dt-button&quot; title=&quot;Click to add a new nested field and blacklist&quot; data-toggle=&quot;modal&quot; data-target=&quot;#myModalAddNestedField&quot;&gt;&lt;i class=&quot;fas fa-plus&quot;&gt;&lt;/i&gt;&lt;/button&gt;');
125
126...
127
128});
129

And here is the javascript defining the content of the columns:

1CREATE TABLE testing_nested_field_blacklist (
2    id              SERIAL NOT NULL UNIQUE,
3    nested_field    varchar(100) NOT NULL UNIQUE,
4    subfields       varchar(100)[]
5);
6&lt;!-- Topbar Search --&gt;
7&lt;form class=&quot;d-none d-sm-inline-block form-inline mr-auto ml-md-3 my-2 my-md-0 mw-100 navbar-search&quot;&gt;
8    &lt;div class=&quot;input-group&quot;&gt;
9        &lt;input type=&quot;text&quot; class=&quot;form-control bg-light border-0 small&quot; placeholder=&quot;Search for...&quot; aria-label=&quot;Search&quot; aria-describedby=&quot;basic-addon2&quot;&gt;
10        &lt;div class=&quot;input-group-append&quot;&gt;
11            &lt;button class=&quot;btn btn-primary&quot; type=&quot;button&quot;&gt;
12                &lt;i class=&quot;fas fa-search fa-sm&quot;&gt;&lt;/i&gt;
13            &lt;/button&gt;
14        &lt;/div&gt;
15    &lt;/div&gt;
16&lt;/form&gt;
17
18&lt;!-- Topbar Navbar --&gt;
19&lt;ul class=&quot;navbar-nav ml-auto&quot;&gt;
20
21    &lt;div class=&quot;topbar-divider d-none d-sm-block&quot;&gt;&lt;/div&gt;
22
23    &lt;li class=&quot;nav-item&quot;&gt;
24        &lt;a class=&quot;nav-link text-black-50&quot; href=&quot;#&quot; data-toggle=&quot;modal&quot; data-target=&quot;#logoutModal&quot;&gt;
25            &lt;i class=&quot;fas fa-sign-out-alt mr-2&quot;&gt;&lt;/i&gt;
26            &lt;span&gt;Logout&lt;/span&gt;
27        &lt;/a&gt;
28    &lt;/li&gt;
29&lt;/ul&gt;
30&lt;/nav&gt;
31&lt;!-- End of Topbar --&gt;
32
33&lt;!-- Begin Page Content --&gt;
34&lt;div class=&quot;container-fluid&quot;&gt;
35
36&lt;ol class=&quot;breadcrumb shadow-lg&quot;&gt;
37    &lt;li class=&quot;breadcrumb-item&quot;&gt;
38        &lt;a href=&quot;/4testing/&quot;&gt;Home&lt;/a&gt;
39    &lt;/li&gt;
40    &lt;li class=&quot;breadcrumb-item active&quot;&gt;Nested fields and subfields blacklists&lt;/li&gt;
41&lt;/ol&gt;
42
43&lt;!-- alert messages --&gt;
44&lt;div class=&quot;alert alert-success alert-dismissible fade show&quot; role=&quot;alert&quot;&gt;
45    &lt;button type=&quot;button&quot; class=&quot;close&quot; data-dismiss=&quot;alert&quot; aria-label=&quot;Close&quot;&gt;
46        &lt;span aria-hidden=&quot;true&quot;&gt;&amp;times;&lt;/span&gt;
47    &lt;/button&gt;
48    &lt;strong id=&quot;alert-success-title&quot;&gt;&lt;/strong&gt; &lt;div id=&quot;alert-success-detail&quot;&gt;&lt;/div&gt;
49&lt;/div&gt;
50
51&lt;div class=&quot;alert alert-danger alert-dismissible fade show&quot; role=&quot;alert&quot;&gt;
52    &lt;button type=&quot;button&quot; class=&quot;close&quot; data-dismiss=&quot;alert&quot; aria-label=&quot;Close&quot;&gt;
53        &lt;span aria-hidden=&quot;true&quot;&gt;&amp;times;&lt;/span&gt;
54    &lt;/button&gt;
55    &lt;strong id=&quot;alert-danger-title&quot;&gt;&lt;/strong&gt; &lt;div id=&quot;alert-danger-detail&quot;&gt;&lt;/div&gt;
56&lt;/div&gt;
57
58&lt;!-- TABELLA NESTED FIELDS --&gt;
59&lt;div class=&quot;card shadow mb-4&quot;&gt;
60    &lt;div class=&quot;card-header py-3&quot;&gt;
61        &lt;h6 class=&quot;m-0 font-weight-bold text-primary&quot;&gt;&lt;i class=&quot;fas fa-ban&quot; aria-hidden=&quot;true&quot;&gt;&lt;/i&gt; Nested fields and subfields blacklists&lt;/h6&gt;
62    &lt;/div&gt;
63    &lt;div class=&quot;card-body&quot;&gt;
64        &lt;div class=&quot;table-responsive&quot;&gt;
65            &lt;table class=&quot;table table-bordered table-hover&quot; id=&quot;NestedFieldTable&quot; width=&quot;100%&quot; cellspacing=&quot;0&quot;&gt;
66            &lt;/table&gt;
67        &lt;/div&gt;
68    &lt;/div&gt;
69&lt;/div&gt;
70var NestedFieldTable;
71
72$(document).ready(function() {
73
74    // NESTED FIELD
75    NestedFieldTable = $('#NestedFieldTable').DataTable({
76        &quot;destroy&quot;: true,
77        &quot;processing&quot;:true,
78        &quot;ajax&quot;:  {
79            &quot;url&quot;: '/getNestedFields/',
80            &quot;type&quot;:&quot;POST&quot;,
81            &quot;dataSrc&quot;: &quot;nested_field&quot;
82        },
83        &quot;columns&quot;: columns_nested_field,
84        &quot;columnDefs&quot;: [
85            {&quot;targets&quot;: -1, &quot;data&quot;: null, &quot;defaultContent&quot;: &quot;&lt;i class='fas fa-edit' aria-hidden='true' id='modifyRow' data-toggle='modal' data-target='#myModalEditNestedField' title='Clicca per modificare il nested field o la blacklist'&gt;&lt;/i&gt;&lt;i style='margin-left:15px;' class='fas fa-trash' aria-hidden='true' id='deleteRow' data-toggle='modal' data-target='#myModalDeleteNestedField'  title='click top delete nested field and blacklist'&gt;&lt;/i&gt;&quot;, &quot;width&quot;: &quot;75px&quot;},
86            
87        ],
88        &quot;dom&quot;:  &quot;&lt;'row'&lt;'col-md-6 toolbar_nestedfield'&gt;&lt;'col-md-6'fBl&gt;&gt;&quot; +
89                &quot;&lt;'row'&lt;'col-md-6'&gt;&lt;'col-md-6'&gt;&gt;&quot; +
90                &quot;&lt;'row'&lt;'col-md-12't&gt;&gt;&lt;'row'&lt;'col-md-12'pi&gt;&gt;&quot;,
91        &quot;buttons&quot;: [
92            {
93                extend: 'collection',
94                text: 'Export',
95                autoClose: true,
96                buttons: [
97                    {
98                        text: '&lt;i class=&quot;fas fa-print&quot;&gt;&lt;/i&gt; Print',
99                        extend: 'print',
100                        messageTop: 'Table of nested fields and subfields blacklist.',
101                        footer: false
102                    }
103                ]
104            },
105            {
106                text: '&lt;i class=&quot;fas fa-sync-alt&quot;&gt;&lt;/i&gt;',
107                titleAttr: 'Refresh table',
108                action: function ( e, dt) {
109                    dt.ajax.reload();
110                    set_alert_message({&quot;title&quot;:&quot;Refresh&quot;, &quot;detail&quot;:&quot;Table successfully refreshed&quot;}, &quot;success&quot;);
111                }
112            }
113        ],
114        &quot;language&quot;: {
115            &quot;searchPlaceholder&quot;: &quot;Search&quot;,
116            &quot;search&quot;: &quot;&lt;div class='form-group'&gt;&lt;div class='input-group'&gt;&lt;div class='input-group-prepend'&gt;&lt;span class='input-group-text'&gt;&lt;i class='fas fa-search fa-fw'&gt;&lt;/i&gt;&lt;/span&gt;&lt;/div&gt;_INPUT_&lt;/div&gt;&lt;/div&gt;&quot;,
117            &quot;lengthMenu&quot;: &quot;&lt;div class='form-group'&gt;&lt;div class='input-group'&gt;&lt;div class='input-group-prepend'&gt;&lt;span class='input-group-text'&gt;&lt;i class='fas fa-list-ul fa-fw'&gt;&lt;/i&gt;&lt;/span&gt;&lt;/div&gt;_MENU_&lt;/div&gt;&lt;/div&gt;&quot;,
118            &quot;oPaginate&quot;: {
119                sNext: '&lt;span class=&quot;pagination-default&quot;&gt;&amp;#x276f;&lt;/span&gt;',
120                sPrevious: '&lt;span class=&quot;pagination-default&quot;&gt;&amp;#x276e;&lt;/span&gt;'
121            }
122        }
123    });
124    $(&quot;.toolbar_nestedfield&quot;).html('&lt;button type=&quot;button&quot; class=&quot;dt-button&quot; title=&quot;Click to add a new nested field and blacklist&quot; data-toggle=&quot;modal&quot; data-target=&quot;#myModalAddNestedField&quot;&gt;&lt;i class=&quot;fas fa-plus&quot;&gt;&lt;/i&gt;&lt;/button&gt;');
125
126...
127
128});
129var columns_nested_field = [
130    // { &quot;title&quot;:&quot;ID&quot;, data: &quot;nested_field_blacklist_id&quot;},
131    { &quot;title&quot;:&quot;Nested field&quot;, data: &quot;nested_field_name&quot;},
132    { &quot;title&quot;:&quot;Subfields blacklist&quot;, data: &quot;nested_field_blacklist&quot;},
133    { &quot;title&quot;:&quot;Edit&quot;, &quot;orderable&quot;: false, &quot;className&quot;: 'icon_dt_style'}
134];
135
"clues"

Note that the last part of html code, headed by

1CREATE TABLE testing_nested_field_blacklist (
2    id              SERIAL NOT NULL UNIQUE,
3    nested_field    varchar(100) NOT NULL UNIQUE,
4    subfields       varchar(100)[]
5);
6&lt;!-- Topbar Search --&gt;
7&lt;form class=&quot;d-none d-sm-inline-block form-inline mr-auto ml-md-3 my-2 my-md-0 mw-100 navbar-search&quot;&gt;
8    &lt;div class=&quot;input-group&quot;&gt;
9        &lt;input type=&quot;text&quot; class=&quot;form-control bg-light border-0 small&quot; placeholder=&quot;Search for...&quot; aria-label=&quot;Search&quot; aria-describedby=&quot;basic-addon2&quot;&gt;
10        &lt;div class=&quot;input-group-append&quot;&gt;
11            &lt;button class=&quot;btn btn-primary&quot; type=&quot;button&quot;&gt;
12                &lt;i class=&quot;fas fa-search fa-sm&quot;&gt;&lt;/i&gt;
13            &lt;/button&gt;
14        &lt;/div&gt;
15    &lt;/div&gt;
16&lt;/form&gt;
17
18&lt;!-- Topbar Navbar --&gt;
19&lt;ul class=&quot;navbar-nav ml-auto&quot;&gt;
20
21    &lt;div class=&quot;topbar-divider d-none d-sm-block&quot;&gt;&lt;/div&gt;
22
23    &lt;li class=&quot;nav-item&quot;&gt;
24        &lt;a class=&quot;nav-link text-black-50&quot; href=&quot;#&quot; data-toggle=&quot;modal&quot; data-target=&quot;#logoutModal&quot;&gt;
25            &lt;i class=&quot;fas fa-sign-out-alt mr-2&quot;&gt;&lt;/i&gt;
26            &lt;span&gt;Logout&lt;/span&gt;
27        &lt;/a&gt;
28    &lt;/li&gt;
29&lt;/ul&gt;
30&lt;/nav&gt;
31&lt;!-- End of Topbar --&gt;
32
33&lt;!-- Begin Page Content --&gt;
34&lt;div class=&quot;container-fluid&quot;&gt;
35
36&lt;ol class=&quot;breadcrumb shadow-lg&quot;&gt;
37    &lt;li class=&quot;breadcrumb-item&quot;&gt;
38        &lt;a href=&quot;/4testing/&quot;&gt;Home&lt;/a&gt;
39    &lt;/li&gt;
40    &lt;li class=&quot;breadcrumb-item active&quot;&gt;Nested fields and subfields blacklists&lt;/li&gt;
41&lt;/ol&gt;
42
43&lt;!-- alert messages --&gt;
44&lt;div class=&quot;alert alert-success alert-dismissible fade show&quot; role=&quot;alert&quot;&gt;
45    &lt;button type=&quot;button&quot; class=&quot;close&quot; data-dismiss=&quot;alert&quot; aria-label=&quot;Close&quot;&gt;
46        &lt;span aria-hidden=&quot;true&quot;&gt;&amp;times;&lt;/span&gt;
47    &lt;/button&gt;
48    &lt;strong id=&quot;alert-success-title&quot;&gt;&lt;/strong&gt; &lt;div id=&quot;alert-success-detail&quot;&gt;&lt;/div&gt;
49&lt;/div&gt;
50
51&lt;div class=&quot;alert alert-danger alert-dismissible fade show&quot; role=&quot;alert&quot;&gt;
52    &lt;button type=&quot;button&quot; class=&quot;close&quot; data-dismiss=&quot;alert&quot; aria-label=&quot;Close&quot;&gt;
53        &lt;span aria-hidden=&quot;true&quot;&gt;&amp;times;&lt;/span&gt;
54    &lt;/button&gt;
55    &lt;strong id=&quot;alert-danger-title&quot;&gt;&lt;/strong&gt; &lt;div id=&quot;alert-danger-detail&quot;&gt;&lt;/div&gt;
56&lt;/div&gt;
57
58&lt;!-- TABELLA NESTED FIELDS --&gt;
59&lt;div class=&quot;card shadow mb-4&quot;&gt;
60    &lt;div class=&quot;card-header py-3&quot;&gt;
61        &lt;h6 class=&quot;m-0 font-weight-bold text-primary&quot;&gt;&lt;i class=&quot;fas fa-ban&quot; aria-hidden=&quot;true&quot;&gt;&lt;/i&gt; Nested fields and subfields blacklists&lt;/h6&gt;
62    &lt;/div&gt;
63    &lt;div class=&quot;card-body&quot;&gt;
64        &lt;div class=&quot;table-responsive&quot;&gt;
65            &lt;table class=&quot;table table-bordered table-hover&quot; id=&quot;NestedFieldTable&quot; width=&quot;100%&quot; cellspacing=&quot;0&quot;&gt;
66            &lt;/table&gt;
67        &lt;/div&gt;
68    &lt;/div&gt;
69&lt;/div&gt;
70var NestedFieldTable;
71
72$(document).ready(function() {
73
74    // NESTED FIELD
75    NestedFieldTable = $('#NestedFieldTable').DataTable({
76        &quot;destroy&quot;: true,
77        &quot;processing&quot;:true,
78        &quot;ajax&quot;:  {
79            &quot;url&quot;: '/getNestedFields/',
80            &quot;type&quot;:&quot;POST&quot;,
81            &quot;dataSrc&quot;: &quot;nested_field&quot;
82        },
83        &quot;columns&quot;: columns_nested_field,
84        &quot;columnDefs&quot;: [
85            {&quot;targets&quot;: -1, &quot;data&quot;: null, &quot;defaultContent&quot;: &quot;&lt;i class='fas fa-edit' aria-hidden='true' id='modifyRow' data-toggle='modal' data-target='#myModalEditNestedField' title='Clicca per modificare il nested field o la blacklist'&gt;&lt;/i&gt;&lt;i style='margin-left:15px;' class='fas fa-trash' aria-hidden='true' id='deleteRow' data-toggle='modal' data-target='#myModalDeleteNestedField'  title='click top delete nested field and blacklist'&gt;&lt;/i&gt;&quot;, &quot;width&quot;: &quot;75px&quot;},
86            
87        ],
88        &quot;dom&quot;:  &quot;&lt;'row'&lt;'col-md-6 toolbar_nestedfield'&gt;&lt;'col-md-6'fBl&gt;&gt;&quot; +
89                &quot;&lt;'row'&lt;'col-md-6'&gt;&lt;'col-md-6'&gt;&gt;&quot; +
90                &quot;&lt;'row'&lt;'col-md-12't&gt;&gt;&lt;'row'&lt;'col-md-12'pi&gt;&gt;&quot;,
91        &quot;buttons&quot;: [
92            {
93                extend: 'collection',
94                text: 'Export',
95                autoClose: true,
96                buttons: [
97                    {
98                        text: '&lt;i class=&quot;fas fa-print&quot;&gt;&lt;/i&gt; Print',
99                        extend: 'print',
100                        messageTop: 'Table of nested fields and subfields blacklist.',
101                        footer: false
102                    }
103                ]
104            },
105            {
106                text: '&lt;i class=&quot;fas fa-sync-alt&quot;&gt;&lt;/i&gt;',
107                titleAttr: 'Refresh table',
108                action: function ( e, dt) {
109                    dt.ajax.reload();
110                    set_alert_message({&quot;title&quot;:&quot;Refresh&quot;, &quot;detail&quot;:&quot;Table successfully refreshed&quot;}, &quot;success&quot;);
111                }
112            }
113        ],
114        &quot;language&quot;: {
115            &quot;searchPlaceholder&quot;: &quot;Search&quot;,
116            &quot;search&quot;: &quot;&lt;div class='form-group'&gt;&lt;div class='input-group'&gt;&lt;div class='input-group-prepend'&gt;&lt;span class='input-group-text'&gt;&lt;i class='fas fa-search fa-fw'&gt;&lt;/i&gt;&lt;/span&gt;&lt;/div&gt;_INPUT_&lt;/div&gt;&lt;/div&gt;&quot;,
117            &quot;lengthMenu&quot;: &quot;&lt;div class='form-group'&gt;&lt;div class='input-group'&gt;&lt;div class='input-group-prepend'&gt;&lt;span class='input-group-text'&gt;&lt;i class='fas fa-list-ul fa-fw'&gt;&lt;/i&gt;&lt;/span&gt;&lt;/div&gt;_MENU_&lt;/div&gt;&lt;/div&gt;&quot;,
118            &quot;oPaginate&quot;: {
119                sNext: '&lt;span class=&quot;pagination-default&quot;&gt;&amp;#x276f;&lt;/span&gt;',
120                sPrevious: '&lt;span class=&quot;pagination-default&quot;&gt;&amp;#x276e;&lt;/span&gt;'
121            }
122        }
123    });
124    $(&quot;.toolbar_nestedfield&quot;).html('&lt;button type=&quot;button&quot; class=&quot;dt-button&quot; title=&quot;Click to add a new nested field and blacklist&quot; data-toggle=&quot;modal&quot; data-target=&quot;#myModalAddNestedField&quot;&gt;&lt;i class=&quot;fas fa-plus&quot;&gt;&lt;/i&gt;&lt;/button&gt;');
125
126...
127
128});
129var columns_nested_field = [
130    // { &quot;title&quot;:&quot;ID&quot;, data: &quot;nested_field_blacklist_id&quot;},
131    { &quot;title&quot;:&quot;Nested field&quot;, data: &quot;nested_field_name&quot;},
132    { &quot;title&quot;:&quot;Subfields blacklist&quot;, data: &quot;nested_field_blacklist&quot;},
133    { &quot;title&quot;:&quot;Edit&quot;, &quot;orderable&quot;: false, &quot;className&quot;: 'icon_dt_style'}
134];
135&lt;!-- POPUP ADD ROW NESTED FIELD AND BLACKLIST --&gt;
136

is a modal that allows the user to insert new data into the database table, and it correctly works, except for the fact that the new data is not displayed in the html table (as it is not displayed the ones already existing in the db).

What am I doing wrong? How can I fix it?

question update

the url /getNestedFields/ in the js code made to populate the html table is bounded to class extractNestedFields via tornado web framework in this way:

1CREATE TABLE testing_nested_field_blacklist (
2    id              SERIAL NOT NULL UNIQUE,
3    nested_field    varchar(100) NOT NULL UNIQUE,
4    subfields       varchar(100)[]
5);
6&lt;!-- Topbar Search --&gt;
7&lt;form class=&quot;d-none d-sm-inline-block form-inline mr-auto ml-md-3 my-2 my-md-0 mw-100 navbar-search&quot;&gt;
8    &lt;div class=&quot;input-group&quot;&gt;
9        &lt;input type=&quot;text&quot; class=&quot;form-control bg-light border-0 small&quot; placeholder=&quot;Search for...&quot; aria-label=&quot;Search&quot; aria-describedby=&quot;basic-addon2&quot;&gt;
10        &lt;div class=&quot;input-group-append&quot;&gt;
11            &lt;button class=&quot;btn btn-primary&quot; type=&quot;button&quot;&gt;
12                &lt;i class=&quot;fas fa-search fa-sm&quot;&gt;&lt;/i&gt;
13            &lt;/button&gt;
14        &lt;/div&gt;
15    &lt;/div&gt;
16&lt;/form&gt;
17
18&lt;!-- Topbar Navbar --&gt;
19&lt;ul class=&quot;navbar-nav ml-auto&quot;&gt;
20
21    &lt;div class=&quot;topbar-divider d-none d-sm-block&quot;&gt;&lt;/div&gt;
22
23    &lt;li class=&quot;nav-item&quot;&gt;
24        &lt;a class=&quot;nav-link text-black-50&quot; href=&quot;#&quot; data-toggle=&quot;modal&quot; data-target=&quot;#logoutModal&quot;&gt;
25            &lt;i class=&quot;fas fa-sign-out-alt mr-2&quot;&gt;&lt;/i&gt;
26            &lt;span&gt;Logout&lt;/span&gt;
27        &lt;/a&gt;
28    &lt;/li&gt;
29&lt;/ul&gt;
30&lt;/nav&gt;
31&lt;!-- End of Topbar --&gt;
32
33&lt;!-- Begin Page Content --&gt;
34&lt;div class=&quot;container-fluid&quot;&gt;
35
36&lt;ol class=&quot;breadcrumb shadow-lg&quot;&gt;
37    &lt;li class=&quot;breadcrumb-item&quot;&gt;
38        &lt;a href=&quot;/4testing/&quot;&gt;Home&lt;/a&gt;
39    &lt;/li&gt;
40    &lt;li class=&quot;breadcrumb-item active&quot;&gt;Nested fields and subfields blacklists&lt;/li&gt;
41&lt;/ol&gt;
42
43&lt;!-- alert messages --&gt;
44&lt;div class=&quot;alert alert-success alert-dismissible fade show&quot; role=&quot;alert&quot;&gt;
45    &lt;button type=&quot;button&quot; class=&quot;close&quot; data-dismiss=&quot;alert&quot; aria-label=&quot;Close&quot;&gt;
46        &lt;span aria-hidden=&quot;true&quot;&gt;&amp;times;&lt;/span&gt;
47    &lt;/button&gt;
48    &lt;strong id=&quot;alert-success-title&quot;&gt;&lt;/strong&gt; &lt;div id=&quot;alert-success-detail&quot;&gt;&lt;/div&gt;
49&lt;/div&gt;
50
51&lt;div class=&quot;alert alert-danger alert-dismissible fade show&quot; role=&quot;alert&quot;&gt;
52    &lt;button type=&quot;button&quot; class=&quot;close&quot; data-dismiss=&quot;alert&quot; aria-label=&quot;Close&quot;&gt;
53        &lt;span aria-hidden=&quot;true&quot;&gt;&amp;times;&lt;/span&gt;
54    &lt;/button&gt;
55    &lt;strong id=&quot;alert-danger-title&quot;&gt;&lt;/strong&gt; &lt;div id=&quot;alert-danger-detail&quot;&gt;&lt;/div&gt;
56&lt;/div&gt;
57
58&lt;!-- TABELLA NESTED FIELDS --&gt;
59&lt;div class=&quot;card shadow mb-4&quot;&gt;
60    &lt;div class=&quot;card-header py-3&quot;&gt;
61        &lt;h6 class=&quot;m-0 font-weight-bold text-primary&quot;&gt;&lt;i class=&quot;fas fa-ban&quot; aria-hidden=&quot;true&quot;&gt;&lt;/i&gt; Nested fields and subfields blacklists&lt;/h6&gt;
62    &lt;/div&gt;
63    &lt;div class=&quot;card-body&quot;&gt;
64        &lt;div class=&quot;table-responsive&quot;&gt;
65            &lt;table class=&quot;table table-bordered table-hover&quot; id=&quot;NestedFieldTable&quot; width=&quot;100%&quot; cellspacing=&quot;0&quot;&gt;
66            &lt;/table&gt;
67        &lt;/div&gt;
68    &lt;/div&gt;
69&lt;/div&gt;
70var NestedFieldTable;
71
72$(document).ready(function() {
73
74    // NESTED FIELD
75    NestedFieldTable = $('#NestedFieldTable').DataTable({
76        &quot;destroy&quot;: true,
77        &quot;processing&quot;:true,
78        &quot;ajax&quot;:  {
79            &quot;url&quot;: '/getNestedFields/',
80            &quot;type&quot;:&quot;POST&quot;,
81            &quot;dataSrc&quot;: &quot;nested_field&quot;
82        },
83        &quot;columns&quot;: columns_nested_field,
84        &quot;columnDefs&quot;: [
85            {&quot;targets&quot;: -1, &quot;data&quot;: null, &quot;defaultContent&quot;: &quot;&lt;i class='fas fa-edit' aria-hidden='true' id='modifyRow' data-toggle='modal' data-target='#myModalEditNestedField' title='Clicca per modificare il nested field o la blacklist'&gt;&lt;/i&gt;&lt;i style='margin-left:15px;' class='fas fa-trash' aria-hidden='true' id='deleteRow' data-toggle='modal' data-target='#myModalDeleteNestedField'  title='click top delete nested field and blacklist'&gt;&lt;/i&gt;&quot;, &quot;width&quot;: &quot;75px&quot;},
86            
87        ],
88        &quot;dom&quot;:  &quot;&lt;'row'&lt;'col-md-6 toolbar_nestedfield'&gt;&lt;'col-md-6'fBl&gt;&gt;&quot; +
89                &quot;&lt;'row'&lt;'col-md-6'&gt;&lt;'col-md-6'&gt;&gt;&quot; +
90                &quot;&lt;'row'&lt;'col-md-12't&gt;&gt;&lt;'row'&lt;'col-md-12'pi&gt;&gt;&quot;,
91        &quot;buttons&quot;: [
92            {
93                extend: 'collection',
94                text: 'Export',
95                autoClose: true,
96                buttons: [
97                    {
98                        text: '&lt;i class=&quot;fas fa-print&quot;&gt;&lt;/i&gt; Print',
99                        extend: 'print',
100                        messageTop: 'Table of nested fields and subfields blacklist.',
101                        footer: false
102                    }
103                ]
104            },
105            {
106                text: '&lt;i class=&quot;fas fa-sync-alt&quot;&gt;&lt;/i&gt;',
107                titleAttr: 'Refresh table',
108                action: function ( e, dt) {
109                    dt.ajax.reload();
110                    set_alert_message({&quot;title&quot;:&quot;Refresh&quot;, &quot;detail&quot;:&quot;Table successfully refreshed&quot;}, &quot;success&quot;);
111                }
112            }
113        ],
114        &quot;language&quot;: {
115            &quot;searchPlaceholder&quot;: &quot;Search&quot;,
116            &quot;search&quot;: &quot;&lt;div class='form-group'&gt;&lt;div class='input-group'&gt;&lt;div class='input-group-prepend'&gt;&lt;span class='input-group-text'&gt;&lt;i class='fas fa-search fa-fw'&gt;&lt;/i&gt;&lt;/span&gt;&lt;/div&gt;_INPUT_&lt;/div&gt;&lt;/div&gt;&quot;,
117            &quot;lengthMenu&quot;: &quot;&lt;div class='form-group'&gt;&lt;div class='input-group'&gt;&lt;div class='input-group-prepend'&gt;&lt;span class='input-group-text'&gt;&lt;i class='fas fa-list-ul fa-fw'&gt;&lt;/i&gt;&lt;/span&gt;&lt;/div&gt;_MENU_&lt;/div&gt;&lt;/div&gt;&quot;,
118            &quot;oPaginate&quot;: {
119                sNext: '&lt;span class=&quot;pagination-default&quot;&gt;&amp;#x276f;&lt;/span&gt;',
120                sPrevious: '&lt;span class=&quot;pagination-default&quot;&gt;&amp;#x276e;&lt;/span&gt;'
121            }
122        }
123    });
124    $(&quot;.toolbar_nestedfield&quot;).html('&lt;button type=&quot;button&quot; class=&quot;dt-button&quot; title=&quot;Click to add a new nested field and blacklist&quot; data-toggle=&quot;modal&quot; data-target=&quot;#myModalAddNestedField&quot;&gt;&lt;i class=&quot;fas fa-plus&quot;&gt;&lt;/i&gt;&lt;/button&gt;');
125
126...
127
128});
129var columns_nested_field = [
130    // { &quot;title&quot;:&quot;ID&quot;, data: &quot;nested_field_blacklist_id&quot;},
131    { &quot;title&quot;:&quot;Nested field&quot;, data: &quot;nested_field_name&quot;},
132    { &quot;title&quot;:&quot;Subfields blacklist&quot;, data: &quot;nested_field_blacklist&quot;},
133    { &quot;title&quot;:&quot;Edit&quot;, &quot;orderable&quot;: false, &quot;className&quot;: 'icon_dt_style'}
134];
135&lt;!-- POPUP ADD ROW NESTED FIELD AND BLACKLIST --&gt;
136application = tornado.web.Application([
137    ...
138    (r&quot;/getNestedFields/&quot;, extractNestedFields),
139    ...
140])
141

where class extractNestedFields iis defined as:

1CREATE TABLE testing_nested_field_blacklist (
2    id              SERIAL NOT NULL UNIQUE,
3    nested_field    varchar(100) NOT NULL UNIQUE,
4    subfields       varchar(100)[]
5);
6&lt;!-- Topbar Search --&gt;
7&lt;form class=&quot;d-none d-sm-inline-block form-inline mr-auto ml-md-3 my-2 my-md-0 mw-100 navbar-search&quot;&gt;
8    &lt;div class=&quot;input-group&quot;&gt;
9        &lt;input type=&quot;text&quot; class=&quot;form-control bg-light border-0 small&quot; placeholder=&quot;Search for...&quot; aria-label=&quot;Search&quot; aria-describedby=&quot;basic-addon2&quot;&gt;
10        &lt;div class=&quot;input-group-append&quot;&gt;
11            &lt;button class=&quot;btn btn-primary&quot; type=&quot;button&quot;&gt;
12                &lt;i class=&quot;fas fa-search fa-sm&quot;&gt;&lt;/i&gt;
13            &lt;/button&gt;
14        &lt;/div&gt;
15    &lt;/div&gt;
16&lt;/form&gt;
17
18&lt;!-- Topbar Navbar --&gt;
19&lt;ul class=&quot;navbar-nav ml-auto&quot;&gt;
20
21    &lt;div class=&quot;topbar-divider d-none d-sm-block&quot;&gt;&lt;/div&gt;
22
23    &lt;li class=&quot;nav-item&quot;&gt;
24        &lt;a class=&quot;nav-link text-black-50&quot; href=&quot;#&quot; data-toggle=&quot;modal&quot; data-target=&quot;#logoutModal&quot;&gt;
25            &lt;i class=&quot;fas fa-sign-out-alt mr-2&quot;&gt;&lt;/i&gt;
26            &lt;span&gt;Logout&lt;/span&gt;
27        &lt;/a&gt;
28    &lt;/li&gt;
29&lt;/ul&gt;
30&lt;/nav&gt;
31&lt;!-- End of Topbar --&gt;
32
33&lt;!-- Begin Page Content --&gt;
34&lt;div class=&quot;container-fluid&quot;&gt;
35
36&lt;ol class=&quot;breadcrumb shadow-lg&quot;&gt;
37    &lt;li class=&quot;breadcrumb-item&quot;&gt;
38        &lt;a href=&quot;/4testing/&quot;&gt;Home&lt;/a&gt;
39    &lt;/li&gt;
40    &lt;li class=&quot;breadcrumb-item active&quot;&gt;Nested fields and subfields blacklists&lt;/li&gt;
41&lt;/ol&gt;
42
43&lt;!-- alert messages --&gt;
44&lt;div class=&quot;alert alert-success alert-dismissible fade show&quot; role=&quot;alert&quot;&gt;
45    &lt;button type=&quot;button&quot; class=&quot;close&quot; data-dismiss=&quot;alert&quot; aria-label=&quot;Close&quot;&gt;
46        &lt;span aria-hidden=&quot;true&quot;&gt;&amp;times;&lt;/span&gt;
47    &lt;/button&gt;
48    &lt;strong id=&quot;alert-success-title&quot;&gt;&lt;/strong&gt; &lt;div id=&quot;alert-success-detail&quot;&gt;&lt;/div&gt;
49&lt;/div&gt;
50
51&lt;div class=&quot;alert alert-danger alert-dismissible fade show&quot; role=&quot;alert&quot;&gt;
52    &lt;button type=&quot;button&quot; class=&quot;close&quot; data-dismiss=&quot;alert&quot; aria-label=&quot;Close&quot;&gt;
53        &lt;span aria-hidden=&quot;true&quot;&gt;&amp;times;&lt;/span&gt;
54    &lt;/button&gt;
55    &lt;strong id=&quot;alert-danger-title&quot;&gt;&lt;/strong&gt; &lt;div id=&quot;alert-danger-detail&quot;&gt;&lt;/div&gt;
56&lt;/div&gt;
57
58&lt;!-- TABELLA NESTED FIELDS --&gt;
59&lt;div class=&quot;card shadow mb-4&quot;&gt;
60    &lt;div class=&quot;card-header py-3&quot;&gt;
61        &lt;h6 class=&quot;m-0 font-weight-bold text-primary&quot;&gt;&lt;i class=&quot;fas fa-ban&quot; aria-hidden=&quot;true&quot;&gt;&lt;/i&gt; Nested fields and subfields blacklists&lt;/h6&gt;
62    &lt;/div&gt;
63    &lt;div class=&quot;card-body&quot;&gt;
64        &lt;div class=&quot;table-responsive&quot;&gt;
65            &lt;table class=&quot;table table-bordered table-hover&quot; id=&quot;NestedFieldTable&quot; width=&quot;100%&quot; cellspacing=&quot;0&quot;&gt;
66            &lt;/table&gt;
67        &lt;/div&gt;
68    &lt;/div&gt;
69&lt;/div&gt;
70var NestedFieldTable;
71
72$(document).ready(function() {
73
74    // NESTED FIELD
75    NestedFieldTable = $('#NestedFieldTable').DataTable({
76        &quot;destroy&quot;: true,
77        &quot;processing&quot;:true,
78        &quot;ajax&quot;:  {
79            &quot;url&quot;: '/getNestedFields/',
80            &quot;type&quot;:&quot;POST&quot;,
81            &quot;dataSrc&quot;: &quot;nested_field&quot;
82        },
83        &quot;columns&quot;: columns_nested_field,
84        &quot;columnDefs&quot;: [
85            {&quot;targets&quot;: -1, &quot;data&quot;: null, &quot;defaultContent&quot;: &quot;&lt;i class='fas fa-edit' aria-hidden='true' id='modifyRow' data-toggle='modal' data-target='#myModalEditNestedField' title='Clicca per modificare il nested field o la blacklist'&gt;&lt;/i&gt;&lt;i style='margin-left:15px;' class='fas fa-trash' aria-hidden='true' id='deleteRow' data-toggle='modal' data-target='#myModalDeleteNestedField'  title='click top delete nested field and blacklist'&gt;&lt;/i&gt;&quot;, &quot;width&quot;: &quot;75px&quot;},
86            
87        ],
88        &quot;dom&quot;:  &quot;&lt;'row'&lt;'col-md-6 toolbar_nestedfield'&gt;&lt;'col-md-6'fBl&gt;&gt;&quot; +
89                &quot;&lt;'row'&lt;'col-md-6'&gt;&lt;'col-md-6'&gt;&gt;&quot; +
90                &quot;&lt;'row'&lt;'col-md-12't&gt;&gt;&lt;'row'&lt;'col-md-12'pi&gt;&gt;&quot;,
91        &quot;buttons&quot;: [
92            {
93                extend: 'collection',
94                text: 'Export',
95                autoClose: true,
96                buttons: [
97                    {
98                        text: '&lt;i class=&quot;fas fa-print&quot;&gt;&lt;/i&gt; Print',
99                        extend: 'print',
100                        messageTop: 'Table of nested fields and subfields blacklist.',
101                        footer: false
102                    }
103                ]
104            },
105            {
106                text: '&lt;i class=&quot;fas fa-sync-alt&quot;&gt;&lt;/i&gt;',
107                titleAttr: 'Refresh table',
108                action: function ( e, dt) {
109                    dt.ajax.reload();
110                    set_alert_message({&quot;title&quot;:&quot;Refresh&quot;, &quot;detail&quot;:&quot;Table successfully refreshed&quot;}, &quot;success&quot;);
111                }
112            }
113        ],
114        &quot;language&quot;: {
115            &quot;searchPlaceholder&quot;: &quot;Search&quot;,
116            &quot;search&quot;: &quot;&lt;div class='form-group'&gt;&lt;div class='input-group'&gt;&lt;div class='input-group-prepend'&gt;&lt;span class='input-group-text'&gt;&lt;i class='fas fa-search fa-fw'&gt;&lt;/i&gt;&lt;/span&gt;&lt;/div&gt;_INPUT_&lt;/div&gt;&lt;/div&gt;&quot;,
117            &quot;lengthMenu&quot;: &quot;&lt;div class='form-group'&gt;&lt;div class='input-group'&gt;&lt;div class='input-group-prepend'&gt;&lt;span class='input-group-text'&gt;&lt;i class='fas fa-list-ul fa-fw'&gt;&lt;/i&gt;&lt;/span&gt;&lt;/div&gt;_MENU_&lt;/div&gt;&lt;/div&gt;&quot;,
118            &quot;oPaginate&quot;: {
119                sNext: '&lt;span class=&quot;pagination-default&quot;&gt;&amp;#x276f;&lt;/span&gt;',
120                sPrevious: '&lt;span class=&quot;pagination-default&quot;&gt;&amp;#x276e;&lt;/span&gt;'
121            }
122        }
123    });
124    $(&quot;.toolbar_nestedfield&quot;).html('&lt;button type=&quot;button&quot; class=&quot;dt-button&quot; title=&quot;Click to add a new nested field and blacklist&quot; data-toggle=&quot;modal&quot; data-target=&quot;#myModalAddNestedField&quot;&gt;&lt;i class=&quot;fas fa-plus&quot;&gt;&lt;/i&gt;&lt;/button&gt;');
125
126...
127
128});
129var columns_nested_field = [
130    // { &quot;title&quot;:&quot;ID&quot;, data: &quot;nested_field_blacklist_id&quot;},
131    { &quot;title&quot;:&quot;Nested field&quot;, data: &quot;nested_field_name&quot;},
132    { &quot;title&quot;:&quot;Subfields blacklist&quot;, data: &quot;nested_field_blacklist&quot;},
133    { &quot;title&quot;:&quot;Edit&quot;, &quot;orderable&quot;: false, &quot;className&quot;: 'icon_dt_style'}
134];
135&lt;!-- POPUP ADD ROW NESTED FIELD AND BLACKLIST --&gt;
136application = tornado.web.Application([
137    ...
138    (r&quot;/getNestedFields/&quot;, extractNestedFields),
139    ...
140])
141class extractNestedFields(BaseHandler):
142    @gen.coroutine
143    def post(self):
144        dictionary_nested_field = {}
145        rows = yield testing_database.get_nested_fields()
146        print(rows) #ok
147        if len(rows) &gt; 0:
148            dictionary_nested_field[&quot;nested_field&quot;] = rows
149        else:
150            dictionary_nested_field[&quot;nested_field&quot;] = []
151        raise gen.Return(self.write(json.dumps(dictionary_nested_field, default=myconverter)))
152

and when loading the html page, the content of rows is:

1CREATE TABLE testing_nested_field_blacklist (
2    id              SERIAL NOT NULL UNIQUE,
3    nested_field    varchar(100) NOT NULL UNIQUE,
4    subfields       varchar(100)[]
5);
6&lt;!-- Topbar Search --&gt;
7&lt;form class=&quot;d-none d-sm-inline-block form-inline mr-auto ml-md-3 my-2 my-md-0 mw-100 navbar-search&quot;&gt;
8    &lt;div class=&quot;input-group&quot;&gt;
9        &lt;input type=&quot;text&quot; class=&quot;form-control bg-light border-0 small&quot; placeholder=&quot;Search for...&quot; aria-label=&quot;Search&quot; aria-describedby=&quot;basic-addon2&quot;&gt;
10        &lt;div class=&quot;input-group-append&quot;&gt;
11            &lt;button class=&quot;btn btn-primary&quot; type=&quot;button&quot;&gt;
12                &lt;i class=&quot;fas fa-search fa-sm&quot;&gt;&lt;/i&gt;
13            &lt;/button&gt;
14        &lt;/div&gt;
15    &lt;/div&gt;
16&lt;/form&gt;
17
18&lt;!-- Topbar Navbar --&gt;
19&lt;ul class=&quot;navbar-nav ml-auto&quot;&gt;
20
21    &lt;div class=&quot;topbar-divider d-none d-sm-block&quot;&gt;&lt;/div&gt;
22
23    &lt;li class=&quot;nav-item&quot;&gt;
24        &lt;a class=&quot;nav-link text-black-50&quot; href=&quot;#&quot; data-toggle=&quot;modal&quot; data-target=&quot;#logoutModal&quot;&gt;
25            &lt;i class=&quot;fas fa-sign-out-alt mr-2&quot;&gt;&lt;/i&gt;
26            &lt;span&gt;Logout&lt;/span&gt;
27        &lt;/a&gt;
28    &lt;/li&gt;
29&lt;/ul&gt;
30&lt;/nav&gt;
31&lt;!-- End of Topbar --&gt;
32
33&lt;!-- Begin Page Content --&gt;
34&lt;div class=&quot;container-fluid&quot;&gt;
35
36&lt;ol class=&quot;breadcrumb shadow-lg&quot;&gt;
37    &lt;li class=&quot;breadcrumb-item&quot;&gt;
38        &lt;a href=&quot;/4testing/&quot;&gt;Home&lt;/a&gt;
39    &lt;/li&gt;
40    &lt;li class=&quot;breadcrumb-item active&quot;&gt;Nested fields and subfields blacklists&lt;/li&gt;
41&lt;/ol&gt;
42
43&lt;!-- alert messages --&gt;
44&lt;div class=&quot;alert alert-success alert-dismissible fade show&quot; role=&quot;alert&quot;&gt;
45    &lt;button type=&quot;button&quot; class=&quot;close&quot; data-dismiss=&quot;alert&quot; aria-label=&quot;Close&quot;&gt;
46        &lt;span aria-hidden=&quot;true&quot;&gt;&amp;times;&lt;/span&gt;
47    &lt;/button&gt;
48    &lt;strong id=&quot;alert-success-title&quot;&gt;&lt;/strong&gt; &lt;div id=&quot;alert-success-detail&quot;&gt;&lt;/div&gt;
49&lt;/div&gt;
50
51&lt;div class=&quot;alert alert-danger alert-dismissible fade show&quot; role=&quot;alert&quot;&gt;
52    &lt;button type=&quot;button&quot; class=&quot;close&quot; data-dismiss=&quot;alert&quot; aria-label=&quot;Close&quot;&gt;
53        &lt;span aria-hidden=&quot;true&quot;&gt;&amp;times;&lt;/span&gt;
54    &lt;/button&gt;
55    &lt;strong id=&quot;alert-danger-title&quot;&gt;&lt;/strong&gt; &lt;div id=&quot;alert-danger-detail&quot;&gt;&lt;/div&gt;
56&lt;/div&gt;
57
58&lt;!-- TABELLA NESTED FIELDS --&gt;
59&lt;div class=&quot;card shadow mb-4&quot;&gt;
60    &lt;div class=&quot;card-header py-3&quot;&gt;
61        &lt;h6 class=&quot;m-0 font-weight-bold text-primary&quot;&gt;&lt;i class=&quot;fas fa-ban&quot; aria-hidden=&quot;true&quot;&gt;&lt;/i&gt; Nested fields and subfields blacklists&lt;/h6&gt;
62    &lt;/div&gt;
63    &lt;div class=&quot;card-body&quot;&gt;
64        &lt;div class=&quot;table-responsive&quot;&gt;
65            &lt;table class=&quot;table table-bordered table-hover&quot; id=&quot;NestedFieldTable&quot; width=&quot;100%&quot; cellspacing=&quot;0&quot;&gt;
66            &lt;/table&gt;
67        &lt;/div&gt;
68    &lt;/div&gt;
69&lt;/div&gt;
70var NestedFieldTable;
71
72$(document).ready(function() {
73
74    // NESTED FIELD
75    NestedFieldTable = $('#NestedFieldTable').DataTable({
76        &quot;destroy&quot;: true,
77        &quot;processing&quot;:true,
78        &quot;ajax&quot;:  {
79            &quot;url&quot;: '/getNestedFields/',
80            &quot;type&quot;:&quot;POST&quot;,
81            &quot;dataSrc&quot;: &quot;nested_field&quot;
82        },
83        &quot;columns&quot;: columns_nested_field,
84        &quot;columnDefs&quot;: [
85            {&quot;targets&quot;: -1, &quot;data&quot;: null, &quot;defaultContent&quot;: &quot;&lt;i class='fas fa-edit' aria-hidden='true' id='modifyRow' data-toggle='modal' data-target='#myModalEditNestedField' title='Clicca per modificare il nested field o la blacklist'&gt;&lt;/i&gt;&lt;i style='margin-left:15px;' class='fas fa-trash' aria-hidden='true' id='deleteRow' data-toggle='modal' data-target='#myModalDeleteNestedField'  title='click top delete nested field and blacklist'&gt;&lt;/i&gt;&quot;, &quot;width&quot;: &quot;75px&quot;},
86            
87        ],
88        &quot;dom&quot;:  &quot;&lt;'row'&lt;'col-md-6 toolbar_nestedfield'&gt;&lt;'col-md-6'fBl&gt;&gt;&quot; +
89                &quot;&lt;'row'&lt;'col-md-6'&gt;&lt;'col-md-6'&gt;&gt;&quot; +
90                &quot;&lt;'row'&lt;'col-md-12't&gt;&gt;&lt;'row'&lt;'col-md-12'pi&gt;&gt;&quot;,
91        &quot;buttons&quot;: [
92            {
93                extend: 'collection',
94                text: 'Export',
95                autoClose: true,
96                buttons: [
97                    {
98                        text: '&lt;i class=&quot;fas fa-print&quot;&gt;&lt;/i&gt; Print',
99                        extend: 'print',
100                        messageTop: 'Table of nested fields and subfields blacklist.',
101                        footer: false
102                    }
103                ]
104            },
105            {
106                text: '&lt;i class=&quot;fas fa-sync-alt&quot;&gt;&lt;/i&gt;',
107                titleAttr: 'Refresh table',
108                action: function ( e, dt) {
109                    dt.ajax.reload();
110                    set_alert_message({&quot;title&quot;:&quot;Refresh&quot;, &quot;detail&quot;:&quot;Table successfully refreshed&quot;}, &quot;success&quot;);
111                }
112            }
113        ],
114        &quot;language&quot;: {
115            &quot;searchPlaceholder&quot;: &quot;Search&quot;,
116            &quot;search&quot;: &quot;&lt;div class='form-group'&gt;&lt;div class='input-group'&gt;&lt;div class='input-group-prepend'&gt;&lt;span class='input-group-text'&gt;&lt;i class='fas fa-search fa-fw'&gt;&lt;/i&gt;&lt;/span&gt;&lt;/div&gt;_INPUT_&lt;/div&gt;&lt;/div&gt;&quot;,
117            &quot;lengthMenu&quot;: &quot;&lt;div class='form-group'&gt;&lt;div class='input-group'&gt;&lt;div class='input-group-prepend'&gt;&lt;span class='input-group-text'&gt;&lt;i class='fas fa-list-ul fa-fw'&gt;&lt;/i&gt;&lt;/span&gt;&lt;/div&gt;_MENU_&lt;/div&gt;&lt;/div&gt;&quot;,
118            &quot;oPaginate&quot;: {
119                sNext: '&lt;span class=&quot;pagination-default&quot;&gt;&amp;#x276f;&lt;/span&gt;',
120                sPrevious: '&lt;span class=&quot;pagination-default&quot;&gt;&amp;#x276e;&lt;/span&gt;'
121            }
122        }
123    });
124    $(&quot;.toolbar_nestedfield&quot;).html('&lt;button type=&quot;button&quot; class=&quot;dt-button&quot; title=&quot;Click to add a new nested field and blacklist&quot; data-toggle=&quot;modal&quot; data-target=&quot;#myModalAddNestedField&quot;&gt;&lt;i class=&quot;fas fa-plus&quot;&gt;&lt;/i&gt;&lt;/button&gt;');
125
126...
127
128});
129var columns_nested_field = [
130    // { &quot;title&quot;:&quot;ID&quot;, data: &quot;nested_field_blacklist_id&quot;},
131    { &quot;title&quot;:&quot;Nested field&quot;, data: &quot;nested_field_name&quot;},
132    { &quot;title&quot;:&quot;Subfields blacklist&quot;, data: &quot;nested_field_blacklist&quot;},
133    { &quot;title&quot;:&quot;Edit&quot;, &quot;orderable&quot;: false, &quot;className&quot;: 'icon_dt_style'}
134];
135&lt;!-- POPUP ADD ROW NESTED FIELD AND BLACKLIST --&gt;
136application = tornado.web.Application([
137    ...
138    (r&quot;/getNestedFields/&quot;, extractNestedFields),
139    ...
140])
141class extractNestedFields(BaseHandler):
142    @gen.coroutine
143    def post(self):
144        dictionary_nested_field = {}
145        rows = yield testing_database.get_nested_fields()
146        print(rows) #ok
147        if len(rows) &gt; 0:
148            dictionary_nested_field[&quot;nested_field&quot;] = rows
149        else:
150            dictionary_nested_field[&quot;nested_field&quot;] = []
151        raise gen.Return(self.write(json.dumps(dictionary_nested_field, default=myconverter)))
152[
153{'nested_field': '1', 'subfields': ['one', 'two', 'three']},
154{'nested_field': '2', 'subfields': ['one', 'two', 'three', 'coming from the backend']}, 
155{'nested_field': '3rd_nested_field', 'subfields': ['jret_subfield_1.3', 'jret_subfield_2.3', 'jret_subfield_3.3']}, 
156{'nested_field': '5', 'subfields': ['one', 'two', 'three', 'coming from the backend']}, 
157{'nested_field': 'jret', 'subfields': ['jret_subfield_1.1', 'jret_subfield_2.1', 'jret_subfield_3.1']}
158]
159

that is the content of my table in the db.

ANSWER

Answered 2021-Oct-26 at 15:38

SOLVED

The key data
inside each {} element of columns_nested_field variable
(which is necessary to define the title and the data that one wants to fill in the columns of the html table via DataTable)
has to have value equal to
the title of the columns of the db table containing the data that one wants to fill in the html table.

So, since in my case the data I want to fill in the html table comes from the columns nested_field, subfields of the db table testing_nested_field_blacklist ,
in the declaration of javascript variable columns_nested_field
(which is necessary to make DataTable work),
I substituted

1CREATE TABLE testing_nested_field_blacklist (
2    id              SERIAL NOT NULL UNIQUE,
3    nested_field    varchar(100) NOT NULL UNIQUE,
4    subfields       varchar(100)[]
5);
6&lt;!-- Topbar Search --&gt;
7&lt;form class=&quot;d-none d-sm-inline-block form-inline mr-auto ml-md-3 my-2 my-md-0 mw-100 navbar-search&quot;&gt;
8    &lt;div class=&quot;input-group&quot;&gt;
9        &lt;input type=&quot;text&quot; class=&quot;form-control bg-light border-0 small&quot; placeholder=&quot;Search for...&quot; aria-label=&quot;Search&quot; aria-describedby=&quot;basic-addon2&quot;&gt;
10        &lt;div class=&quot;input-group-append&quot;&gt;
11            &lt;button class=&quot;btn btn-primary&quot; type=&quot;button&quot;&gt;
12                &lt;i class=&quot;fas fa-search fa-sm&quot;&gt;&lt;/i&gt;
13            &lt;/button&gt;
14        &lt;/div&gt;
15    &lt;/div&gt;
16&lt;/form&gt;
17
18&lt;!-- Topbar Navbar --&gt;
19&lt;ul class=&quot;navbar-nav ml-auto&quot;&gt;
20
21    &lt;div class=&quot;topbar-divider d-none d-sm-block&quot;&gt;&lt;/div&gt;
22
23    &lt;li class=&quot;nav-item&quot;&gt;
24        &lt;a class=&quot;nav-link text-black-50&quot; href=&quot;#&quot; data-toggle=&quot;modal&quot; data-target=&quot;#logoutModal&quot;&gt;
25            &lt;i class=&quot;fas fa-sign-out-alt mr-2&quot;&gt;&lt;/i&gt;
26            &lt;span&gt;Logout&lt;/span&gt;
27        &lt;/a&gt;
28    &lt;/li&gt;
29&lt;/ul&gt;
30&lt;/nav&gt;
31&lt;!-- End of Topbar --&gt;
32
33&lt;!-- Begin Page Content --&gt;
34&lt;div class=&quot;container-fluid&quot;&gt;
35
36&lt;ol class=&quot;breadcrumb shadow-lg&quot;&gt;
37    &lt;li class=&quot;breadcrumb-item&quot;&gt;
38        &lt;a href=&quot;/4testing/&quot;&gt;Home&lt;/a&gt;
39    &lt;/li&gt;
40    &lt;li class=&quot;breadcrumb-item active&quot;&gt;Nested fields and subfields blacklists&lt;/li&gt;
41&lt;/ol&gt;
42
43&lt;!-- alert messages --&gt;
44&lt;div class=&quot;alert alert-success alert-dismissible fade show&quot; role=&quot;alert&quot;&gt;
45    &lt;button type=&quot;button&quot; class=&quot;close&quot; data-dismiss=&quot;alert&quot; aria-label=&quot;Close&quot;&gt;
46        &lt;span aria-hidden=&quot;true&quot;&gt;&amp;times;&lt;/span&gt;
47    &lt;/button&gt;
48    &lt;strong id=&quot;alert-success-title&quot;&gt;&lt;/strong&gt; &lt;div id=&quot;alert-success-detail&quot;&gt;&lt;/div&gt;
49&lt;/div&gt;
50
51&lt;div class=&quot;alert alert-danger alert-dismissible fade show&quot; role=&quot;alert&quot;&gt;
52    &lt;button type=&quot;button&quot; class=&quot;close&quot; data-dismiss=&quot;alert&quot; aria-label=&quot;Close&quot;&gt;
53        &lt;span aria-hidden=&quot;true&quot;&gt;&amp;times;&lt;/span&gt;
54    &lt;/button&gt;
55    &lt;strong id=&quot;alert-danger-title&quot;&gt;&lt;/strong&gt; &lt;div id=&quot;alert-danger-detail&quot;&gt;&lt;/div&gt;
56&lt;/div&gt;
57
58&lt;!-- TABELLA NESTED FIELDS --&gt;
59&lt;div class=&quot;card shadow mb-4&quot;&gt;
60    &lt;div class=&quot;card-header py-3&quot;&gt;
61        &lt;h6 class=&quot;m-0 font-weight-bold text-primary&quot;&gt;&lt;i class=&quot;fas fa-ban&quot; aria-hidden=&quot;true&quot;&gt;&lt;/i&gt; Nested fields and subfields blacklists&lt;/h6&gt;
62    &lt;/div&gt;
63    &lt;div class=&quot;card-body&quot;&gt;
64        &lt;div class=&quot;table-responsive&quot;&gt;
65            &lt;table class=&quot;table table-bordered table-hover&quot; id=&quot;NestedFieldTable&quot; width=&quot;100%&quot; cellspacing=&quot;0&quot;&gt;
66            &lt;/table&gt;
67        &lt;/div&gt;
68    &lt;/div&gt;
69&lt;/div&gt;
70var NestedFieldTable;
71
72$(document).ready(function() {
73
74    // NESTED FIELD
75    NestedFieldTable = $('#NestedFieldTable').DataTable({
76        &quot;destroy&quot;: true,
77        &quot;processing&quot;:true,
78        &quot;ajax&quot;:  {
79            &quot;url&quot;: '/getNestedFields/',
80            &quot;type&quot;:&quot;POST&quot;,
81            &quot;dataSrc&quot;: &quot;nested_field&quot;
82        },
83        &quot;columns&quot;: columns_nested_field,
84        &quot;columnDefs&quot;: [
85            {&quot;targets&quot;: -1, &quot;data&quot;: null, &quot;defaultContent&quot;: &quot;&lt;i class='fas fa-edit' aria-hidden='true' id='modifyRow' data-toggle='modal' data-target='#myModalEditNestedField' title='Clicca per modificare il nested field o la blacklist'&gt;&lt;/i&gt;&lt;i style='margin-left:15px;' class='fas fa-trash' aria-hidden='true' id='deleteRow' data-toggle='modal' data-target='#myModalDeleteNestedField'  title='click top delete nested field and blacklist'&gt;&lt;/i&gt;&quot;, &quot;width&quot;: &quot;75px&quot;},
86            
87        ],
88        &quot;dom&quot;:  &quot;&lt;'row'&lt;'col-md-6 toolbar_nestedfield'&gt;&lt;'col-md-6'fBl&gt;&gt;&quot; +
89                &quot;&lt;'row'&lt;'col-md-6'&gt;&lt;'col-md-6'&gt;&gt;&quot; +
90                &quot;&lt;'row'&lt;'col-md-12't&gt;&gt;&lt;'row'&lt;'col-md-12'pi&gt;&gt;&quot;,
91        &quot;buttons&quot;: [
92            {
93                extend: 'collection',
94                text: 'Export',
95                autoClose: true,
96                buttons: [
97                    {
98                        text: '&lt;i class=&quot;fas fa-print&quot;&gt;&lt;/i&gt; Print',
99                        extend: 'print',
100                        messageTop: 'Table of nested fields and subfields blacklist.',
101                        footer: false
102                    }
103                ]
104            },
105            {
106                text: '&lt;i class=&quot;fas fa-sync-alt&quot;&gt;&lt;/i&gt;',
107                titleAttr: 'Refresh table',
108                action: function ( e, dt) {
109                    dt.ajax.reload();
110                    set_alert_message({&quot;title&quot;:&quot;Refresh&quot;, &quot;detail&quot;:&quot;Table successfully refreshed&quot;}, &quot;success&quot;);
111                }
112            }
113        ],
114        &quot;language&quot;: {
115            &quot;searchPlaceholder&quot;: &quot;Search&quot;,
116            &quot;search&quot;: &quot;&lt;div class='form-group'&gt;&lt;div class='input-group'&gt;&lt;div class='input-group-prepend'&gt;&lt;span class='input-group-text'&gt;&lt;i class='fas fa-search fa-fw'&gt;&lt;/i&gt;&lt;/span&gt;&lt;/div&gt;_INPUT_&lt;/div&gt;&lt;/div&gt;&quot;,
117            &quot;lengthMenu&quot;: &quot;&lt;div class='form-group'&gt;&lt;div class='input-group'&gt;&lt;div class='input-group-prepend'&gt;&lt;span class='input-group-text'&gt;&lt;i class='fas fa-list-ul fa-fw'&gt;&lt;/i&gt;&lt;/span&gt;&lt;/div&gt;_MENU_&lt;/div&gt;&lt;/div&gt;&quot;,
118            &quot;oPaginate&quot;: {
119                sNext: '&lt;span class=&quot;pagination-default&quot;&gt;&amp;#x276f;&lt;/span&gt;',
120                sPrevious: '&lt;span class=&quot;pagination-default&quot;&gt;&amp;#x276e;&lt;/span&gt;'
121            }
122        }
123    });
124    $(&quot;.toolbar_nestedfield&quot;).html('&lt;button type=&quot;button&quot; class=&quot;dt-button&quot; title=&quot;Click to add a new nested field and blacklist&quot; data-toggle=&quot;modal&quot; data-target=&quot;#myModalAddNestedField&quot;&gt;&lt;i class=&quot;fas fa-plus&quot;&gt;&lt;/i&gt;&lt;/button&gt;');
125
126...
127
128});
129var columns_nested_field = [
130    // { &quot;title&quot;:&quot;ID&quot;, data: &quot;nested_field_blacklist_id&quot;},
131    { &quot;title&quot;:&quot;Nested field&quot;, data: &quot;nested_field_name&quot;},
132    { &quot;title&quot;:&quot;Subfields blacklist&quot;, data: &quot;nested_field_blacklist&quot;},
133    { &quot;title&quot;:&quot;Edit&quot;, &quot;orderable&quot;: false, &quot;className&quot;: 'icon_dt_style'}
134];
135&lt;!-- POPUP ADD ROW NESTED FIELD AND BLACKLIST --&gt;
136application = tornado.web.Application([
137    ...
138    (r&quot;/getNestedFields/&quot;, extractNestedFields),
139    ...
140])
141class extractNestedFields(BaseHandler):
142    @gen.coroutine
143    def post(self):
144        dictionary_nested_field = {}
145        rows = yield testing_database.get_nested_fields()
146        print(rows) #ok
147        if len(rows) &gt; 0:
148            dictionary_nested_field[&quot;nested_field&quot;] = rows
149        else:
150            dictionary_nested_field[&quot;nested_field&quot;] = []
151        raise gen.Return(self.write(json.dumps(dictionary_nested_field, default=myconverter)))
152[
153{'nested_field': '1', 'subfields': ['one', 'two', 'three']},
154{'nested_field': '2', 'subfields': ['one', 'two', 'three', 'coming from the backend']}, 
155{'nested_field': '3rd_nested_field', 'subfields': ['jret_subfield_1.3', 'jret_subfield_2.3', 'jret_subfield_3.3']}, 
156{'nested_field': '5', 'subfields': ['one', 'two', 'three', 'coming from the backend']}, 
157{'nested_field': 'jret', 'subfields': ['jret_subfield_1.1', 'jret_subfield_2.1', 'jret_subfield_3.1']}
158]
159{ &quot;title&quot;:&quot;Nested field&quot;, data: &quot;nested_field_name&quot;},
160{ &quot;title&quot;:&quot;Subfields blacklist&quot;, data: &quot;nested_field_blacklist&quot;},
161

with

1CREATE TABLE testing_nested_field_blacklist (
2    id              SERIAL NOT NULL UNIQUE,
3    nested_field    varchar(100) NOT NULL UNIQUE,
4    subfields       varchar(100)[]
5);
6&lt;!-- Topbar Search --&gt;
7&lt;form class=&quot;d-none d-sm-inline-block form-inline mr-auto ml-md-3 my-2 my-md-0 mw-100 navbar-search&quot;&gt;
8    &lt;div class=&quot;input-group&quot;&gt;
9        &lt;input type=&quot;text&quot; class=&quot;form-control bg-light border-0 small&quot; placeholder=&quot;Search for...&quot; aria-label=&quot;Search&quot; aria-describedby=&quot;basic-addon2&quot;&gt;
10        &lt;div class=&quot;input-group-append&quot;&gt;
11            &lt;button class=&quot;btn btn-primary&quot; type=&quot;button&quot;&gt;
12                &lt;i class=&quot;fas fa-search fa-sm&quot;&gt;&lt;/i&gt;
13            &lt;/button&gt;
14        &lt;/div&gt;
15    &lt;/div&gt;
16&lt;/form&gt;
17
18&lt;!-- Topbar Navbar --&gt;
19&lt;ul class=&quot;navbar-nav ml-auto&quot;&gt;
20
21    &lt;div class=&quot;topbar-divider d-none d-sm-block&quot;&gt;&lt;/div&gt;
22
23    &lt;li class=&quot;nav-item&quot;&gt;
24        &lt;a class=&quot;nav-link text-black-50&quot; href=&quot;#&quot; data-toggle=&quot;modal&quot; data-target=&quot;#logoutModal&quot;&gt;
25            &lt;i class=&quot;fas fa-sign-out-alt mr-2&quot;&gt;&lt;/i&gt;
26            &lt;span&gt;Logout&lt;/span&gt;
27        &lt;/a&gt;
28    &lt;/li&gt;
29&lt;/ul&gt;
30&lt;/nav&gt;
31&lt;!-- End of Topbar --&gt;
32
33&lt;!-- Begin Page Content --&gt;
34&lt;div class=&quot;container-fluid&quot;&gt;
35
36&lt;ol class=&quot;breadcrumb shadow-lg&quot;&gt;
37    &lt;li class=&quot;breadcrumb-item&quot;&gt;
38        &lt;a href=&quot;/4testing/&quot;&gt;Home&lt;/a&gt;
39    &lt;/li&gt;
40    &lt;li class=&quot;breadcrumb-item active&quot;&gt;Nested fields and subfields blacklists&lt;/li&gt;
41&lt;/ol&gt;
42
43&lt;!-- alert messages --&gt;
44&lt;div class=&quot;alert alert-success alert-dismissible fade show&quot; role=&quot;alert&quot;&gt;
45    &lt;button type=&quot;button&quot; class=&quot;close&quot; data-dismiss=&quot;alert&quot; aria-label=&quot;Close&quot;&gt;
46        &lt;span aria-hidden=&quot;true&quot;&gt;&amp;times;&lt;/span&gt;
47    &lt;/button&gt;
48    &lt;strong id=&quot;alert-success-title&quot;&gt;&lt;/strong&gt; &lt;div id=&quot;alert-success-detail&quot;&gt;&lt;/div&gt;
49&lt;/div&gt;
50
51&lt;div class=&quot;alert alert-danger alert-dismissible fade show&quot; role=&quot;alert&quot;&gt;
52    &lt;button type=&quot;button&quot; class=&quot;close&quot; data-dismiss=&quot;alert&quot; aria-label=&quot;Close&quot;&gt;
53        &lt;span aria-hidden=&quot;true&quot;&gt;&amp;times;&lt;/span&gt;
54    &lt;/button&gt;
55    &lt;strong id=&quot;alert-danger-title&quot;&gt;&lt;/strong&gt; &lt;div id=&quot;alert-danger-detail&quot;&gt;&lt;/div&gt;
56&lt;/div&gt;
57
58&lt;!-- TABELLA NESTED FIELDS --&gt;
59&lt;div class=&quot;card shadow mb-4&quot;&gt;
60    &lt;div class=&quot;card-header py-3&quot;&gt;
61        &lt;h6 class=&quot;m-0 font-weight-bold text-primary&quot;&gt;&lt;i class=&quot;fas fa-ban&quot; aria-hidden=&quot;true&quot;&gt;&lt;/i&gt; Nested fields and subfields blacklists&lt;/h6&gt;
62    &lt;/div&gt;
63    &lt;div class=&quot;card-body&quot;&gt;
64        &lt;div class=&quot;table-responsive&quot;&gt;
65            &lt;table class=&quot;table table-bordered table-hover&quot; id=&quot;NestedFieldTable&quot; width=&quot;100%&quot; cellspacing=&quot;0&quot;&gt;
66            &lt;/table&gt;
67        &lt;/div&gt;
68    &lt;/div&gt;
69&lt;/div&gt;
70var NestedFieldTable;
71
72$(document).ready(function() {
73
74    // NESTED FIELD
75    NestedFieldTable = $('#NestedFieldTable').DataTable({
76        &quot;destroy&quot;: true,
77        &quot;processing&quot;:true,
78        &quot;ajax&quot;:  {
79            &quot;url&quot;: '/getNestedFields/',
80            &quot;type&quot;:&quot;POST&quot;,
81            &quot;dataSrc&quot;: &quot;nested_field&quot;
82        },
83        &quot;columns&quot;: columns_nested_field,
84        &quot;columnDefs&quot;: [
85            {&quot;targets&quot;: -1, &quot;data&quot;: null, &quot;defaultContent&quot;: &quot;&lt;i class='fas fa-edit' aria-hidden='true' id='modifyRow' data-toggle='modal' data-target='#myModalEditNestedField' title='Clicca per modificare il nested field o la blacklist'&gt;&lt;/i&gt;&lt;i style='margin-left:15px;' class='fas fa-trash' aria-hidden='true' id='deleteRow' data-toggle='modal' data-target='#myModalDeleteNestedField'  title='click top delete nested field and blacklist'&gt;&lt;/i&gt;&quot;, &quot;width&quot;: &quot;75px&quot;},
86            
87        ],
88        &quot;dom&quot;:  &quot;&lt;'row'&lt;'col-md-6 toolbar_nestedfield'&gt;&lt;'col-md-6'fBl&gt;&gt;&quot; +
89                &quot;&lt;'row'&lt;'col-md-6'&gt;&lt;'col-md-6'&gt;&gt;&quot; +
90                &quot;&lt;'row'&lt;'col-md-12't&gt;&gt;&lt;'row'&lt;'col-md-12'pi&gt;&gt;&quot;,
91        &quot;buttons&quot;: [
92            {
93                extend: 'collection',
94                text: 'Export',
95                autoClose: true,
96                buttons: [
97                    {
98                        text: '&lt;i class=&quot;fas fa-print&quot;&gt;&lt;/i&gt; Print',
99                        extend: 'print',
100                        messageTop: 'Table of nested fields and subfields blacklist.',
101                        footer: false
102                    }
103                ]
104            },
105            {
106                text: '&lt;i class=&quot;fas fa-sync-alt&quot;&gt;&lt;/i&gt;',
107                titleAttr: 'Refresh table',
108                action: function ( e, dt) {
109                    dt.ajax.reload();
110                    set_alert_message({&quot;title&quot;:&quot;Refresh&quot;, &quot;detail&quot;:&quot;Table successfully refreshed&quot;}, &quot;success&quot;);
111                }
112            }
113        ],
114        &quot;language&quot;: {
115            &quot;searchPlaceholder&quot;: &quot;Search&quot;,
116            &quot;search&quot;: &quot;&lt;div class='form-group'&gt;&lt;div class='input-group'&gt;&lt;div class='input-group-prepend'&gt;&lt;span class='input-group-text'&gt;&lt;i class='fas fa-search fa-fw'&gt;&lt;/i&gt;&lt;/span&gt;&lt;/div&gt;_INPUT_&lt;/div&gt;&lt;/div&gt;&quot;,
117            &quot;lengthMenu&quot;: &quot;&lt;div class='form-group'&gt;&lt;div class='input-group'&gt;&lt;div class='input-group-prepend'&gt;&lt;span class='input-group-text'&gt;&lt;i class='fas fa-list-ul fa-fw'&gt;&lt;/i&gt;&lt;/span&gt;&lt;/div&gt;_MENU_&lt;/div&gt;&lt;/div&gt;&quot;,
118            &quot;oPaginate&quot;: {
119                sNext: '&lt;span class=&quot;pagination-default&quot;&gt;&amp;#x276f;&lt;/span&gt;',
120                sPrevious: '&lt;span class=&quot;pagination-default&quot;&gt;&amp;#x276e;&lt;/span&gt;'
121            }
122        }
123    });
124    $(&quot;.toolbar_nestedfield&quot;).html('&lt;button type=&quot;button&quot; class=&quot;dt-button&quot; title=&quot;Click to add a new nested field and blacklist&quot; data-toggle=&quot;modal&quot; data-target=&quot;#myModalAddNestedField&quot;&gt;&lt;i class=&quot;fas fa-plus&quot;&gt;&lt;/i&gt;&lt;/button&gt;');
125
126...
127
128});
129var columns_nested_field = [
130    // { &quot;title&quot;:&quot;ID&quot;, data: &quot;nested_field_blacklist_id&quot;},
131    { &quot;title&quot;:&quot;Nested field&quot;, data: &quot;nested_field_name&quot;},
132    { &quot;title&quot;:&quot;Subfields blacklist&quot;, data: &quot;nested_field_blacklist&quot;},
133    { &quot;title&quot;:&quot;Edit&quot;, &quot;orderable&quot;: false, &quot;className&quot;: 'icon_dt_style'}
134];
135&lt;!-- POPUP ADD ROW NESTED FIELD AND BLACKLIST --&gt;
136application = tornado.web.Application([
137    ...
138    (r&quot;/getNestedFields/&quot;, extractNestedFields),
139    ...
140])
141class extractNestedFields(BaseHandler):
142    @gen.coroutine
143    def post(self):
144        dictionary_nested_field = {}
145        rows = yield testing_database.get_nested_fields()
146        print(rows) #ok
147        if len(rows) &gt; 0:
148            dictionary_nested_field[&quot;nested_field&quot;] = rows
149        else:
150            dictionary_nested_field[&quot;nested_field&quot;] = []
151        raise gen.Return(self.write(json.dumps(dictionary_nested_field, default=myconverter)))
152[
153{'nested_field': '1', 'subfields': ['one', 'two', 'three']},
154{'nested_field': '2', 'subfields': ['one', 'two', 'three', 'coming from the backend']}, 
155{'nested_field': '3rd_nested_field', 'subfields': ['jret_subfield_1.3', 'jret_subfield_2.3', 'jret_subfield_3.3']}, 
156{'nested_field': '5', 'subfields': ['one', 'two', 'three', 'coming from the backend']}, 
157{'nested_field': 'jret', 'subfields': ['jret_subfield_1.1', 'jret_subfield_2.1', 'jret_subfield_3.1']}
158]
159{ &quot;title&quot;:&quot;Nested field&quot;, data: &quot;nested_field_name&quot;},
160{ &quot;title&quot;:&quot;Subfields blacklist&quot;, data: &quot;nested_field_blacklist&quot;},
161{ &quot;title&quot;:&quot;Nested field&quot;, data: &quot;nested_field&quot;},
162{ &quot;title&quot;:&quot;Subfields blacklist&quot;, data: &quot;subfields&quot;},
163

and now the table is correctly filled in with the data.

update

I've just learned from this thread that the key data I mentioned above has to have value equal to a field name/key used in the JSON object (that in my script is being generated at line

1CREATE TABLE testing_nested_field_blacklist (
2    id              SERIAL NOT NULL UNIQUE,
3    nested_field    varchar(100) NOT NULL UNIQUE,
4    subfields       varchar(100)[]
5);
6&lt;!-- Topbar Search --&gt;
7&lt;form class=&quot;d-none d-sm-inline-block form-inline mr-auto ml-md-3 my-2 my-md-0 mw-100 navbar-search&quot;&gt;
8    &lt;div class=&quot;input-group&quot;&gt;
9        &lt;input type=&quot;text&quot; class=&quot;form-control bg-light border-0 small&quot; placeholder=&quot;Search for...&quot; aria-label=&quot;Search&quot; aria-describedby=&quot;basic-addon2&quot;&gt;
10        &lt;div class=&quot;input-group-append&quot;&gt;
11            &lt;button class=&quot;btn btn-primary&quot; type=&quot;button&quot;&gt;
12                &lt;i class=&quot;fas fa-search fa-sm&quot;&gt;&lt;/i&gt;
13            &lt;/button&gt;
14        &lt;/div&gt;
15    &lt;/div&gt;
16&lt;/form&gt;
17
18&lt;!-- Topbar Navbar --&gt;
19&lt;ul class=&quot;navbar-nav ml-auto&quot;&gt;
20
21    &lt;div class=&quot;topbar-divider d-none d-sm-block&quot;&gt;&lt;/div&gt;
22
23    &lt;li class=&quot;nav-item&quot;&gt;
24        &lt;a class=&quot;nav-link text-black-50&quot; href=&quot;#&quot; data-toggle=&quot;modal&quot; data-target=&quot;#logoutModal&quot;&gt;
25            &lt;i class=&quot;fas fa-sign-out-alt mr-2&quot;&gt;&lt;/i&gt;
26            &lt;span&gt;Logout&lt;/span&gt;
27        &lt;/a&gt;
28    &lt;/li&gt;
29&lt;/ul&gt;
30&lt;/nav&gt;
31&lt;!-- End of Topbar --&gt;
32
33&lt;!-- Begin Page Content --&gt;
34&lt;div class=&quot;container-fluid&quot;&gt;
35
36&lt;ol class=&quot;breadcrumb shadow-lg&quot;&gt;
37    &lt;li class=&quot;breadcrumb-item&quot;&gt;
38        &lt;a href=&quot;/4testing/&quot;&gt;Home&lt;/a&gt;
39    &lt;/li&gt;
40    &lt;li class=&quot;breadcrumb-item active&quot;&gt;Nested fields and subfields blacklists&lt;/li&gt;
41&lt;/ol&gt;
42
43&lt;!-- alert messages --&gt;
44&lt;div class=&quot;alert alert-success alert-dismissible fade show&quot; role=&quot;alert&quot;&gt;
45    &lt;button type=&quot;button&quot; class=&quot;close&quot; data-dismiss=&quot;alert&quot; aria-label=&quot;Close&quot;&gt;
46        &lt;span aria-hidden=&quot;true&quot;&gt;&amp;times;&lt;/span&gt;
47    &lt;/button&gt;
48    &lt;strong id=&quot;alert-success-title&quot;&gt;&lt;/strong&gt; &lt;div id=&quot;alert-success-detail&quot;&gt;&lt;/div&gt;
49&lt;/div&gt;
50
51&lt;div class=&quot;alert alert-danger alert-dismissible fade show&quot; role=&quot;alert&quot;&gt;
52    &lt;button type=&quot;button&quot; class=&quot;close&quot; data-dismiss=&quot;alert&quot; aria-label=&quot;Close&quot;&gt;
53        &lt;span aria-hidden=&quot;true&quot;&gt;&amp;times;&lt;/span&gt;
54    &lt;/button&gt;
55    &lt;strong id=&quot;alert-danger-title&quot;&gt;&lt;/strong&gt; &lt;div id=&quot;alert-danger-detail&quot;&gt;&lt;/div&gt;
56&lt;/div&gt;
57
58&lt;!-- TABELLA NESTED FIELDS --&gt;
59&lt;div class=&quot;card shadow mb-4&quot;&gt;
60    &lt;div class=&quot;card-header py-3&quot;&gt;
61        &lt;h6 class=&quot;m-0 font-weight-bold text-primary&quot;&gt;&lt;i class=&quot;fas fa-ban&quot; aria-hidden=&quot;true&quot;&gt;&lt;/i&gt; Nested fields and subfields blacklists&lt;/h6&gt;
62    &lt;/div&gt;
63    &lt;div class=&quot;card-body&quot;&gt;
64        &lt;div class=&quot;table-responsive&quot;&gt;
65            &lt;table class=&quot;table table-bordered table-hover&quot; id=&quot;NestedFieldTable&quot; width=&quot;100%&quot; cellspacing=&quot;0&quot;&gt;
66            &lt;/table&gt;
67        &lt;/div&gt;
68    &lt;/div&gt;
69&lt;/div&gt;
70var NestedFieldTable;
71
72$(document).ready(function() {
73
74    // NESTED FIELD
75    NestedFieldTable = $('#NestedFieldTable').DataTable({
76        &quot;destroy&quot;: true,
77        &quot;processing&quot;:true,
78        &quot;ajax&quot;:  {
79            &quot;url&quot;: '/getNestedFields/',
80            &quot;type&quot;:&quot;POST&quot;,
81            &quot;dataSrc&quot;: &quot;nested_field&quot;
82        },
83        &quot;columns&quot;: columns_nested_field,
84        &quot;columnDefs&quot;: [
85            {&quot;targets&quot;: -1, &quot;data&quot;: null, &quot;defaultContent&quot;: &quot;&lt;i class='fas fa-edit' aria-hidden='true' id='modifyRow' data-toggle='modal' data-target='#myModalEditNestedField' title='Clicca per modificare il nested field o la blacklist'&gt;&lt;/i&gt;&lt;i style='margin-left:15px;' class='fas fa-trash' aria-hidden='true' id='deleteRow' data-toggle='modal' data-target='#myModalDeleteNestedField'  title='click top delete nested field and blacklist'&gt;&lt;/i&gt;&quot;, &quot;width&quot;: &quot;75px&quot;},
86            
87        ],
88        &quot;dom&quot;:  &quot;&lt;'row'&lt;'col-md-6 toolbar_nestedfield'&gt;&lt;'col-md-6'fBl&gt;&gt;&quot; +
89                &quot;&lt;'row'&lt;'col-md-6'&gt;&lt;'col-md-6'&gt;&gt;&quot; +
90                &quot;&lt;'row'&lt;'col-md-12't&gt;&gt;&lt;'row'&lt;'col-md-12'pi&gt;&gt;&quot;,
91        &quot;buttons&quot;: [
92            {
93                extend: 'collection',
94                text: 'Export',
95                autoClose: true,
96                buttons: [
97                    {
98                        text: '&lt;i class=&quot;fas fa-print&quot;&gt;&lt;/i&gt; Print',
99                        extend: 'print',
100                        messageTop: 'Table of nested fields and subfields blacklist.',
101                        footer: false
102                    }
103                ]
104            },
105            {
106                text: '&lt;i class=&quot;fas fa-sync-alt&quot;&gt;&lt;/i&gt;',
107                titleAttr: 'Refresh table',
108                action: function ( e, dt) {
109                    dt.ajax.reload();
110                    set_alert_message({&quot;title&quot;:&quot;Refresh&quot;, &quot;detail&quot;:&quot;Table successfully refreshed&quot;}, &quot;success&quot;);
111                }
112            }
113        ],
114        &quot;language&quot;: {
115            &quot;searchPlaceholder&quot;: &quot;Search&quot;,
116            &quot;search&quot;: &quot;&lt;div class='form-group'&gt;&lt;div class='input-group'&gt;&lt;div class='input-group-prepend'&gt;&lt;span class='input-group-text'&gt;&lt;i class='fas fa-search fa-fw'&gt;&lt;/i&gt;&lt;/span&gt;&lt;/div&gt;_INPUT_&lt;/div&gt;&lt;/div&gt;&quot;,
117            &quot;lengthMenu&quot;: &quot;&lt;div class='form-group'&gt;&lt;div class='input-group'&gt;&lt;div class='input-group-prepend'&gt;&lt;span class='input-group-text'&gt;&lt;i class='fas fa-list-ul fa-fw'&gt;&lt;/i&gt;&lt;/span&gt;&lt;/div&gt;_MENU_&lt;/div&gt;&lt;/div&gt;&quot;,
118            &quot;oPaginate&quot;: {
119                sNext: '&lt;span class=&quot;pagination-default&quot;&gt;&amp;#x276f;&lt;/span&gt;',
120                sPrevious: '&lt;span class=&quot;pagination-default&quot;&gt;&amp;#x276e;&lt;/span&gt;'
121            }
122        }
123    });
124    $(&quot;.toolbar_nestedfield&quot;).html('&lt;button type=&quot;button&quot; class=&quot;dt-button&quot; title=&quot;Click to add a new nested field and blacklist&quot; data-toggle=&quot;modal&quot; data-target=&quot;#myModalAddNestedField&quot;&gt;&lt;i class=&quot;fas fa-plus&quot;&gt;&lt;/i&gt;&lt;/button&gt;');
125
126...
127
128});
129var columns_nested_field = [
130    // { &quot;title&quot;:&quot;ID&quot;, data: &quot;nested_field_blacklist_id&quot;},
131    { &quot;title&quot;:&quot;Nested field&quot;, data: &quot;nested_field_name&quot;},
132    { &quot;title&quot;:&quot;Subfields blacklist&quot;, data: &quot;nested_field_blacklist&quot;},
133    { &quot;title&quot;:&quot;Edit&quot;, &quot;orderable&quot;: false, &quot;className&quot;: 'icon_dt_style'}
134];
135&lt;!-- POPUP ADD ROW NESTED FIELD AND BLACKLIST --&gt;
136application = tornado.web.Application([
137    ...
138    (r&quot;/getNestedFields/&quot;, extractNestedFields),
139    ...
140])
141class extractNestedFields(BaseHandler):
142    @gen.coroutine
143    def post(self):
144        dictionary_nested_field = {}
145        rows = yield testing_database.get_nested_fields()
146        print(rows) #ok
147        if len(rows) &gt; 0:
148            dictionary_nested_field[&quot;nested_field&quot;] = rows
149        else:
150            dictionary_nested_field[&quot;nested_field&quot;] = []
151        raise gen.Return(self.write(json.dumps(dictionary_nested_field, default=myconverter)))
152[
153{'nested_field': '1', 'subfields': ['one', 'two', 'three']},
154{'nested_field': '2', 'subfields': ['one', 'two', 'three', 'coming from the backend']}, 
155{'nested_field': '3rd_nested_field', 'subfields': ['jret_subfield_1.3', 'jret_subfield_2.3', 'jret_subfield_3.3']}, 
156{'nested_field': '5', 'subfields': ['one', 'two', 'three', 'coming from the backend']}, 
157{'nested_field': 'jret', 'subfields': ['jret_subfield_1.1', 'jret_subfield_2.1', 'jret_subfield_3.1']}
158]
159{ &quot;title&quot;:&quot;Nested field&quot;, data: &quot;nested_field_name&quot;},
160{ &quot;title&quot;:&quot;Subfields blacklist&quot;, data: &quot;nested_field_blacklist&quot;},
161{ &quot;title&quot;:&quot;Nested field&quot;, data: &quot;nested_field&quot;},
162{ &quot;title&quot;:&quot;Subfields blacklist&quot;, data: &quot;subfields&quot;},
163raise gen.Return(self.write(json.dumps(dictionary_nested_field, default=myconverter)))
164

of the post coroutine method of instance of class extractNestedFields, one object per row.

Source https://stackoverflow.com/questions/69543237

Community Discussions contain sources that include Stack Exchange Network

Tutorials and Learning Resources in Web Framework

Tutorials and Learning Resources are not available at this moment for Web Framework

Share this Page

share link

Get latest updates on Web Framework