Upgrade requires new fermentrack-tools

The latest version of Fermentrack requires that you use an updated version of the fermentrack-tools scripts in order to function as expected. To fully upgrade (and eliminate the error message) log into your Raspberry Pi via SSH, and run the following commands:

cd fermentrack-tools
git fetch
git pull
./install.sh

I received a large number of permission errors.  I suspect related to the initial install encouraging the use of sudo but the above doesn't.
rm: cannot remove './compose/production/django/entrypoint': Permission denied rm: cannot remove './compose/production/django/Dockerfile': Permission denied rm: cannot remove './compose/production/django/nsswitch.conf': Permission denied rm: cannot remove './compose/production/django/pip.conf': Permission denied rm: cannot remove './compose/production/django/start': Permission denied rm: cannot remove './compose/production/redis/Dockerfile': Permission denied rm: cannot remove './compose/production/redis/redis.conf': Permission denied rm: cannot remove './compose/production/postgres/Dockerfile': Permission denied rm: cannot remove './compose/production/postgres/maintenance/backup': Permission                                                                              denied rm: cannot remove './compose/production/postgres/maintenance/backups': Permissio                                                                             n denied rm: cannot remove './compose/production/postgres/maintenance/_sourced/countdown.                                                                             sh': Permission denied rm: cannot remove './compose/production/postgres/maintenance/_sourced/messages.s                                                                             h': Permission denied rm: cannot remove './compose/production/postgres/maintenance/_sourced/yes_no.sh'                                                                             : Permission denied rm: cannot remove './compose/production/postgres/maintenance/_sourced/constants.                                                                             sh': Permission denied rm: cannot remove './compose/production/postgres/maintenance/restore': Permissio                                                                             n denied rm: cannot remove './compose/production/nginx/Dockerfile': Permission denied rm: cannot remove './compose/production/nginx/nginx.conf': Permission denied
It seems to complete install but fails to bring it online:
::: Waiting for Fermentrack install to initialize and become responsive. ::: Fermentrack may take up to 3 minutes to first boot as the database is being initialized. ..........................................................................................missing. *** ERROR: Unable to find an initialized, responsive instance of Fermentrack
All containers are running and logs on them don't have errors.

You are almost certainly right about that! Try running sudo chown pi ../fermentrack-tools to correct for that. If that doesn't work, let me know.
Also, if you haven't, once you've done that, run git pull to update fermentrack-tools

For better or worse prior to this above I ran sudo ./install.sh and that resolved the issue.  I noticed the main github still encourages the use of sudo but the docs say not to.  I think this may cause a few others some issues too.

Successfully ran the new install using sudo but when loading fermentrack in my browser, get the following error:
Environment:
Request Method: GET
Request URL: http://<IP_ADDRESS>/
Django Version: 3.2.20
Python Version: 3.9.17
Installed Applications:
['django.contrib.admin',
'django.contrib.auth',
'django.contrib.contenttypes',
'django.contrib.sessions',
'django.contrib.messages',
'django.contrib.staticfiles',
'app.apps.AppConfig',
'firmware_flash.apps.AppConfig',
'gravity.apps.GravityAppConfig',
'external_push.apps.AppConfig',
'backups.apps.BackupsConfig',
'constance',
'constance.backends.database',
'huey.contrib.djhuey']
Installed Middleware:
['django.middleware.security.SecurityMiddleware',
'whitenoise.middleware.WhiteNoiseMiddleware',
'django.contrib.sessions.middleware.SessionMiddleware',
'django.middleware.common.CommonMiddleware',
'django.middleware.csrf.CsrfViewMiddleware',
'django.contrib.auth.middleware.AuthenticationMiddleware',
'django.contrib.messages.middleware.MessageMiddleware',
'django.middleware.clickjacking.XFrameOptionsMiddleware']
Traceback (most recent call last):
File "/usr/local/lib/python3.9/site-packages/django/db/backends/utils.py", line 84, in _execute
return self.cursor.execute(sql, params)
The above exception (current transaction is aborted, commands ignored until end of transaction block
) was the direct cause of the following exception:
File "/usr/local/lib/python3.9/site-packages/django/core/handlers/exception.py", line 47, in inner
response = get_response(request)
File "/usr/local/lib/python3.9/site-packages/django/core/handlers/base.py", line 181, in _get_response
response = wrapped_callback(request, *callback_args, **callback_kwargs)
File "/usr/local/lib/python3.9/site-packages/sentry_sdk/integrations/django/views.py", line 84, in sentry_wrapped_callback
return callback(request, *args, **kwargs)
File "/usr/local/lib/python3.9/contextlib.py", line 79, in inner
return func(*args, **kwds)
File "/app/app/views.py", line 81, in siteroot
if not config.USER_HAS_COMPLETED_CONFIGURATION or num_users <= 0:
File "/usr/local/lib/python3.9/site-packages/django/utils/functional.py", line 247, in inner
return func(self._wrapped, *args)
File "/usr/local/lib/python3.9/site-packages/constance/base.py", line 22, in getattr
setattr(self, key, default)
File "/usr/local/lib/python3.9/site-packages/constance/base.py", line 29, in setattr
self._backend.set(key, value)
File "/usr/local/lib/python3.9/site-packages/constance/backends/database/init.py", line 97, in set
constance = queryset.get(key=key)
File "/usr/local/lib/python3.9/site-packages/django/db/models/query.py", line 431, in get
num = len(clone)
File "/usr/local/lib/python3.9/site-packages/django/db/models/query.py", line 262, in len
self._fetch_all()
File "/usr/local/lib/python3.9/site-packages/django/db/models/query.py", line 1324, in _fetch_all
self._result_cache = list(self._iterable_class(self))
File "/usr/local/lib/python3.9/site-packages/django/db/models/query.py", line 51, in iter
results = compiler.execute_sql(chunked_fetch=self.chunked_fetch, chunk_size=self.chunk_size)
File "/usr/local/lib/python3.9/site-packages/django/db/models/sql/compiler.py", line 1175, in execute_sql
cursor.execute(sql, params)
File "/usr/local/lib/python3.9/site-packages/django/db/backends/utils.py", line 98, in execute
return super().execute(sql, params)
File "/usr/local/lib/python3.9/site-packages/sentry_sdk/integrations/django/init.py", line 596, in execute
return real_execute(self, sql, params)
File "/usr/local/lib/python3.9/site-packages/django/db/backends/utils.py", line 66, in execute
return self._execute_with_wrappers(sql, params, many=False, executor=self._execute)
File "/usr/local/lib/python3.9/site-packages/django/db/backends/utils.py", line 75, in _execute_with_wrappers
return executor(sql, params, many, context)
File "/usr/local/lib/python3.9/site-packages/django/db/backends/utils.py", line 84, in _execute
return self.cursor.execute(sql, params)
File "/usr/local/lib/python3.9/site-packages/django/db/utils.py", line 90, in exit
raise dj_exc_value.with_traceback(traceback) from exc_value
File "/usr/local/lib/python3.9/site-packages/django/db/backends/utils.py", line 84, in _execute
return self.cursor.execute(sql, params)
Exception Type: InternalError at /
Exception Value: current transaction is aborted, commands ignored until end of transaction block


Museum data

Data for the museum partially from @kr45732

Shouldn't the total be 331 or am I missing something?


Update powered-by.md

Please answer these questions before submitting pull request

Why submit this pull request?

[ ] Bug fix

[ ] New feature provided

[ ] Improve performance

Related issues

Bug fix

Bug description.

How to fix?

New feature or improvement

Describe the details and related test reports.

Codecov Report

Merging #4226 into master will decrease coverage by 0.07%.
The diff coverage is n/a.

@@            Coverage Diff             @@
##           master    #4226      +/-   ##
==========================================
- Coverage   26.42%   26.35%   -0.08%
==========================================
  Files        1179     1179
  Lines       25805    25805
  Branches     3749     3749
==========================================
- Hits         6819     6800      -19
- Misses      18382    18403      +21
+ Partials      604      602       -2

Impacted Files
Coverage Δ

...ache/skywalking/apm/agent/core/jvm/JVMService.java
59.01% <0%> (-18.04%)
:arrow_down:

...alking/apm/agent/core/remote/AgentIDDecorator.java
67.85% <0%> (-17.86%)
:arrow_down:

.../core/remote/ServiceAndEndpointRegisterClient.java
28.08% <0%> (-3.38%)
:arrow_down:

...m/agent/core/remote/TraceSegmentServiceClient.java
80.88% <0%> (-1.48%)
:arrow_down:

...king/apm/agent/core/remote/GRPCChannelManager.java
66.66% <0%> (-1.29%)
:arrow_down:

...walking/apm/agent/core/context/TracingContext.java
58.7% <0%> (+0.49%)
:arrow_up:

...pm/agent/core/profile/ProfileTaskQueryService.java
46.15% <0%> (+2.56%)
:arrow_up:

Continue to review full report at Codecov.

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

@sikelangya why close it?


Another test

Summary by CodeRabbit

Bug Fixes

Resolved issues related to undefined index notices and type errors in the new function.

New Features

Introduced a function to increment a variable based on input results and output specific values from an associative array.

@coderabbitai review

AI was dumb


Rebranding and homepage

With the upcoming rebranding from Nuxtlabs UI to Nuxt UI (https://github.com/nuxtlabs/ui/commit/e9b23ad933204a92ad2b786126b26ec234f7a6f8), it will be nice & consistent to have the homepage as ui.nuxt.com (nuxt redirect rules to the rescue?), so that everyone can refer to the component library as Nuxt UI and find the docs at ui.nuxt.com? I see nuxtui.com domain is taken.
Though Im not sure if its possible to be a subdomain of nuxt, I might be missing something here.
It is understandable that the npm package can't be @nuxt/ui (seems to be used already) and has to stay as @nuxthq/ui to avoid breakage. Or is this still a possibility as it's quite early in the evolution of this component library (at least after it's open-sourced)?
Also, are we following semver? I see breaking changes introduced in minor releases.
Thank you.

We decided to rebrand to Nuxt UI as it's a module for Nuxt.
However, as it's developed by NuxtLabs we decided to keep it under ui.nuxtlabs.com for now and to keep the package under @nuxthq.
There are indeed breaking changes in minor releases but for specific things, as it's a UI library I don't feel confortable incrementing the major version when changing a key in the app.config.ts.

Hi @benjamincanac, happy to see the rebranding, thank you :-) Meanwhile, if you happen to have the idea to have a dedicated twitter account for nuxt ui, please dm on twitter, I have locked-in the nuxtui handle (I was doing something similar recently, so got into this habit of locking-in handles, lol).

@TechAkayy At the opposite of my last comment, we finally did change to nuxt.com and @nuxt 😅
Thanks for letting me know, it is not planned to have a dedicated Twitter account yet but might happen some day!


Cannot import document anymore (main branch, local instance)

Context
As a developer, there is a document that I cannot import anymore using a local instance of Grist (setup for my developments). The error is given below.
I could not figure out why this document particularly fails to be loaded. I can only say it uses various column types, formulas, and is quite heavy.
Other documents (simpler ones, even with formulas) work.
Also I could bisect and found what commit introduce my issue: https://github.com/gristlabs/grist-core/commit/b9adcefcce99d3d4f5ab7f129664165a28a55a33
I don't know if I am missing something. If you have an idea of the cause of the issue, I would be grateful. Otherwise I continue to try to identify what particularly in this document causes the issue.
Also I can provide you privately the document mentioned in the logs.
2023-09-05 15:22:22.301 - info: Sandbox stderr: [INFO] [__main__] Ready sandboxPid=395440, flavor=unsandboxed, command=undefined, entryPoint=(default), docId=fmnFs6xbbSTgNvej5H4YyR
2023-09-05 15:22:22.302 - info: Sandbox stderr: [WARNING] [sandbox] Call error in load_meta_tables: Traceback (most recent call last):
  File "/home/florentpro/projects/grist-core/sandbox/grist/sandbox.py", line 147, in run
    ret = self._functions[fname](*args)
          ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/home/florentpro/projects/grist-core/sandbox/grist/main.py", line 70, in wrapper
    return method(*args, **kwargs)
           ^^^^^^^^^^^^^^^^^^^^^^^
  File "/home/florentpro/projects/grist-core/sandbox/grist/main.py", line 113, in load_meta_tables
    return eng.load_meta_tables(load_and_record_table_data("_grist_Tables", meta_tables),
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/home/florentpro/projects/grist-core/sandbox/grist/engine.py", line 319, in load_meta_tables
    self.rebuild_usercode()
  File "/home/florentpro/projects/grist-core/sandbox/grist/engine.py", line 1118, in rebuild_usercode
    self.gencode.make_module(self.schema)
  File "/home/florentpro/projects/grist-core/sandbox/grist/gencode.py", line 176, in make_module
    fullparts.append(self._make_table_model(table_info, summary_tables.get(table_info.tableId)))
                     ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/home/florentpro/projects/grist-core/sandbox/grist/gencode.py", line 144, in _make_table_model
    parts.append(indent(self._make_field(col_info, table_id)))
                        ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/home/florentpro/projects/grist-core/sandbox/grist/gencode.py", line 124, in _make_field
    return self._make_data_field(col_info, table_id)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/home/florentpro/projects/grist-core/sandbox/grist/gencode.py", line 110, in _make_data_field
    parts.append(self._make_formula_field(col_info, table_id,
                 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/home/florentpro/projects/grist-core/sandbox/grist/gencode.py", line 97, in _make_formula_field
    body = codebuilder.make_formula_body(col_info.formula, default, assoc_value)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/home/florentpro/projects/grist-core/sandbox/grist/codebuilder.py", line 63, in make_formula_body
    atok = asttokens.ASTText(tmp_formula.get_text(), filename=code_filename)
           ^^^^^^^^^^^^^^^^^
AttributeError: module 'asttokens' has no attribute 'ASTText'
 sandboxPid=395440, flavor=unsandboxed, command=undefined, entryPoint=(default), docId=fmnFs6xbbSTgNvej5H4YyR
2023-09-05 15:22:22.303 - debug: Sandbox pyCall[load_meta_tables] took 247 ms sandboxPid=395440, flavor=unsandboxed, command=undefined, entryPoint=(default), docId=fmnFs6xbbSTgNvej5H4YyR
2023-09-05 15:22:22.305 - warn: ActiveDoc _finishInitialization stopped with SandboxError: [Sandbox] AttributeError module 'asttokens' has no attribute 'ASTText'
    at NSandbox._pyCallWait (/home/florentpro/projects/grist-core/_build/app/server/lib/NSandbox.js:242:19)
    at process.processTicksAndRejections (node:internal/process/task_queues:95:5)
    at async NSandbox.pyCall (/home/florentpro/projects/grist-core/_build/app/server/lib/NSandbox.js:150:20)
    at async ActiveDoc._rawPyCall (/home/florentpro/projects/grist-core/_build/app/server/lib/ActiveDoc.js:2243:20)
    at async TableMetadataLoader.opCorePush (/home/florentpro/projects/grist-core/_build/app/server/lib/TableMetadataLoader.js:121:9)
    at async TableMetadataLoader._counted (/home/florentpro/projects/grist-core/_build/app/server/lib/TableMetadataLoader.js:186:20)
    at async TableMetadataLoader.wait (/home/florentpro/projects/grist-core/_build/app/server/lib/TableMetadataLoader.js:100:13)
    at async ActiveDoc._finishInitialization (/home/florentpro/projects/grist-core/_build/app/server/lib/ActiveDoc.js:2001:13)
    at async InactivityTimer.disableUntilFinish (/home/florentpro/projects/grist-core/_build/app/common/InactivityTimer.js:76:20) access=owners, userId=5<EMAIL_ADDRESS>age=0, org=docs, altS
essionId=9tez1aE6YshUpsG5unUUe3, clientId=7b29611c043a530b, counter=55, docId=fmnFs6xbbSTgNvej5H4YyR
2023-09-05 15:22:22.322 - info: Client onMessage b'{"reqId":1,"method":"fetchTable","args":[0,"Fabriques_territoire"]}'<EMAIL_ADDRESS>userId=5, age=0, org=docs, altSessionId=9tez1aE6YshUpsG5
unUUe3, clientId=7b29611c043a530b, counter=55
2023-09-05 15:22:22.323 - debug: activeDocMethod access=owners, userId=5<EMAIL_ADDRESS>age=0, org=docs, altSessionId=9tez1aE6YshUpsG5unUUe3, clientId=7b29611c043a530b, counter=55, docId=fmn
Fs6xbbSTgNvej5H4YyR, docMethod=fetchTable
2023-09-05 15:22:22.323 - info: ActiveDoc fetchQuery {"tableId":"Fabriques_territoire","filters":{}} (regular) access=owners, userId=5<EMAIL_ADDRESS>age=0, org=docs, altSessionId=9tez1aE6Ys
hUpsG5unUUe3, clientId=7b29611c043a530b, counter=55, docId=fmnFs6xbbSTgNvej5H4YyR
2023-09-05 15:22:22.324 - info: Sandbox stderr: [WARNING] [sandbox] Call error in fetch_table: Traceback (most recent call last):
  File "/home/florentpro/projects/grist-core/sandbox/grist/sandbox.py", line 147, in run
    ret = self._functions[fname](*args)
          ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/home/florentpro/projects/grist-core/sandbox/grist/main.py", line 70, in wrapper
    return method(*args, **kwargs)
           ^^^^^^^^^^^^^^^^^^^^^^^
  File "/home/florentpro/projects/grist-core/sandbox/grist/main.py", line 92, in fetch_table
    return actions.get_action_repr(eng.fetch_table(table_id, formulas=formulas, query=query))
                                   ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/home/florentpro/projects/grist-core/sandbox/grist/engine.py", line 386, in fetch_table
    table = self.tables[table_id]
            ~~~~~~~~~~~^^^^^^^^^^
KeyError: 'Fabriques_territoire'
 sandboxPid=395440, flavor=unsandboxed, command=undefined, entryPoint=(default), docId=fmnFs6xbbSTgNvej5H4YyR
2023-09-05 15:22:22.325 - debug: Sandbox pyCall[fetch_table] took 1 ms sandboxPid=395440, flavor=unsandboxed, command=undefined, entryPoint=(default), docId=fmnFs6xbbSTgNvej5H4YyR
2023-09-05 15:22:22.325 - warn: Client Responding to method fetchTable with error: Error: [Sandbox] KeyError 'Fabriques_territoire'
    at NSandbox._pyCallWait (/home/florentpro/projects/grist-core/_build/app/server/lib/NSandbox.js:242:19)
    at process.processTicksAndRejections (node:internal/process/task_queues:95:5)
    at async NSandbox.pyCall (/home/florentpro/projects/grist-core/_build/app/server/lib/NSandbox.js:150:20)
    at async ActiveDoc._rawPyCall (/home/florentpro/projects/grist-core/_build/app/server/lib/ActiveDoc.js:2243:20<EMAIL_ADDRESS>userId=5, age=0, org=docs, altSessionId=9tez1aE6YshUpsG5unU
Ue3, clientId=7b29611c043a530b, counter=55

NB: I made yarn install:python before starting the server, with no luck.

Alright, I could solve the issue by removing the ./sandbox_venv3 directory and doing yarn install:python.
Is this the way to go to upgrade modules? In such a case, you can close the issue :).

I've also run into this, and it took me a while to figure out that deleting sandbox_venv3 was the trick.
Maybe it would suffice to just not have buildtools/prepare_python3.sh declare success if the directory exists, but continue on to do an install? There is a wrinkle in that script related to electron builds though.


build broken after dist clean

What version of Go are you using (go version)?

$ go version
go version go1.17.1 windows/amd64

Does this issue reproduce with the latest release?
What operating system and processor architecture are you using (go env)?
go env Output
$ go env
set GO111MODULE=
set GOARCH=amd64
set GOBIN=
set GOCACHE=C:\Users\yushang\AppData\Local\go-build
set GOENV=D:\tools\golangenv.txt
set GOEXE=.exe
set GOEXPERIMENT=
set GOFLAGS=
set GOHOSTARCH=amd64
set GOHOSTOS=windows
set GOINSECURE=
set GOMODCACHE=C:\Users\yushang\go\pkg\mod
set GONOPROXY=
set GONOSUMDB=
set GOOS=windows
set GOPATH=C:\Users\yushang\go
set GOPRIVATE=
set GOPROXY=https://goproxy.io,direct
set GOROOT=D:\Go
set GOSUMDB=sum.golang.org
set GOTMPDIR=
set GOTOOLDIR=D:\Go\pkg\tool\windows_amd64
set GOVCS=
set GOVERSION=go1.17.1
set GCCGO=gccgo
set AR=ar
set CC=gcc
set CXX=g++
set CGO_ENABLED=1
set GOMOD=D:\notes\golang\src\go.mod
set CGO_CFLAGS=-g -O2
set CGO_CPPFLAGS=
set CGO_CXXFLAGS=-g -O2
set CGO_FFLAGS=-g -O2
set CGO_LDFLAGS=-g -O2
set PKG_CONFIG=pkg-config
set GOGCCFLAGS=-m64 -mthreads -fno-caret-diagnostics -Qunused-arguments -fmessage-length=0 -fdebug-prefix-map=C:\Users\yushang\AppData\Local\Temp\go-build2562555640=/tmp/go-build -gno-record-gcc-switches

What did you do?

go tool dist clean

compile any go file will fail with

# runtime/internal/sys
D:\Go\src\runtime\internal\sys\arch.go:27:30: undefined: StackGuardMultiplierDefault

What did you expect to see?
What did you see instead?
It seems dist clean is a dangerous command

Seems to be working as expected, cleaning up for the built files distribution, requiring you to rebuild it
For questions please refer to https://github.com/golang/go/wiki/Questions


spec: signing clarification

The spec says:

Image archives MUST be a tar formatted file. The image may be optionally compressed with gzip, bzip2, or xz. After compression, images may also be encrypted with AES symmetric encryption.

tar cvf reduce-worker.tar app rootfs
gpg --output reduce-worker.sig --detach-sig reduce-worker.tar
gzip reduce-worker.tar -c > reduce-worker.aci

At the same time, there is no mention of the second line command. Putting the signature on tar. Is it optional or mandatory?

On Sat, Jan 10, 2015 at 1:29 AM, Matwey V. Kornilov <
<EMAIL_ADDRESS>wrote:

Putting the signature on tar. Is it optional or mandatory?

I don't think I understand the question. Are you asking what should be done
with detached signature after it is generated?

Yes, It can be put in that way. What should be done with signature file?

Actually I agree with @matwey that it is not exactly clear from the current wording whether signing+verification of images is mandatory or not - we should be explicit about that, since we are for the compression/encryption.

@matwey Currently in rocket we have enabled signature validation by default and maybe the spec should provide clarification.
@matwey Here is what just landed on master: https://github.com/coreos/rocket/blob/master/Documentation/signing-and-verification-guide.md

Attempted to clear this up in #156

This should be clear now on master.


[OpenAI] Record tests by using latest azure-core-test

Record tests by using latest azure-core-test
### Tasks
- [ ] OpenAI Inference
- [ ] OpenAI Assistant

The version we should use is a version after 1.24.1


add 'forgot password?' button to sign in page

@ashonuyak
Could you please leave more space between the "Forgot" and "Sign In" buttons


Fix discord Intent Reco|Kook Platform | fix some bug

[x] Fix Discord Intent:  Message.read
[x] Test Discord Bot
[ ] Test File System
[x] Test Task System
[x] Test dm
[x] Test group chat
[x] bump version


Element type is invalid: expected a string (for built-in components) on react-native

import React from 'react'
import { Text, View, ScrollView, AppRegistry, } from 'react-native'
import { Link, nativeHistory, Route, Router, withRouter, StackRoute, } from 'react-router-native'

const Master = (props) => (
  <View>
    {props.children}
  </View>
)

const Home = () => {
  const Menu = ({ page,text }) => (
    <Link to={`/${encodeURIComponent(page)}`}>
      <View style={{ flex: 1 }}></View>
    </Link>
  )

  return (
    <ScrollView>
      <Menu page="news" text="Latest News Page"/>
      <Menu page="fixtures" text="Fixtures & Result"/>
      <Menu page="teammate" text="Teammate Photos"/>
      <Menu page="rugby101" text="Rugby 101"/>
      <Menu page="rugbyclubs" text="Rugby Clubs"/>
    </ScrollView>
  )
}

const MenuPage = withRouter((props) => {
  const { routeParams } = props
  const page = routeParams.page
  const text = routeParams.text

  return(
    <Text>This will be {text}</Text>
  )
})

const routes = (
  <Router history={ nativeHistory } /*addressBar*/>
    <StackRoute path="master" component={ Master }>
      <Route path="/" component={ Home }/>
      <Route path="/:page" component={ MenuPage }/>
    </StackRoute>
  </Router>
)

AppRegistry.registerComponent('Last', () => routes)

I think routes should be a function, no? e.g.
const routes = () => (
  {...}
)

I had this same issue with: RN 0.41.2 & react-native-meteor 1.0.3.
Discovered that an app.json had been created in the project (somehow) causing this error on componentDidMount in the RN code.
Once I deleted the app.json - app ran without issue.


cmakelists support?

hi. make doesn't quite support other platforms well, will consider add cmakelists build support?

This suggestion is very good, but the source code uses some linux platform-specific APIs, which are not compatible with windows and macos. My plan is to implement the streaming ASR function first, and then consider multi-platform. You will be notified as soon as the modification is completed.

@chenkui164  thanks, this is a very impressive work. For Multiplatform we can using some micro definition to handle it. I didn't have a raspberrypy but I'd like test it on my Mac. Will consider deploy it into Jetsonnano

The cpu of jetson nano is Quad-core ARM Cortex-A57, so it can be run directly according to the tutorial of Raspberry Pi. But the program does not use GPU, so it does not reflect the advantages of jetson nano @jinfagang

Hello, the cmake version of the program has been modified and is compatible with MacOS. thanks for using。 @jinfagang


Accessing Properties Individually

I need to store individual values as strings  (i.e. the $sSelector variable in the Selector class)  but I noticed property variables are all private. I looked through the documentation as well as the source code and there doesn't seem to be any facility/method to get them.
So my question is if there is a proper way to access these properties or a recommendation (i.e. make the property variables public).
Thanks

Most properties have setters and getters. In your case, that’s Sabberworm\CSS\Property\Selector::getSelector() and setSelector($sSelector).
If a setter or getter is missing, you can add it and send a pull-request, which I will then merge.


make command is failing with printer dependency

What you expected to happen?
To pass make command
What happened?

While building weaveworks/scope-backend-build docker image
make command is giving below issue on master and v1.13.1 :
/src/github.com/weaveworks/scope$ make
sudo -E docker build -t weaveworks/scope-backend-build backend
Sending build context to Docker daemon  6.144kB
Step 1/12 : FROM golang:1.13.9
...
...
Step 4/12 : RUN go clean -i net &&      go install -tags netgo std &&
..
package github.com/hashicorp/hcl/hcl/printer: cannot find package "github.com/hashicorp/hcl/hcl/printer" in any of:
        /usr/local/go/src/github.com/hashicorp/hcl/hcl/printer (from $GOROOT)
        /go/src/github.com/hashicorp/hcl/hcl/printer (from $GOPATH)

How to reproduce it?

To reproduce this error just clone scope and run make command
git clone https://github.com/weaveworks/scope.git $GOPATH/src/github.com/weaveworks/scope
cd $GOPATH/src/github.com/weaveworks/scope
make

Versions:

$ scope version : v1.13.1 and master
$ docker version: 19.03.6
$ uname -a : Linux  4.15.0-135-generic #139-Ubuntu x86_64 x86_64 x86_64 GNU/Linux
$ kubectl version

..

You appear to have elided the part that would show what it was doing at the time it failed.
However it looks like the upstream dependency made a breaking change. Probably something else needs to be updated to match (or removed; there is some old cruft in there)

@bboreham To avoid too many lines in the log I have added ....
Please check the below-mentioned log.
~/src/github.com/weaveworks/scope$ make
sudo -E docker build -t weaveworks/scope-backend-build backend
Sending build context to Docker daemon  6.144kB
Step 1/12 : FROM golang:1.14.2
 ---> 2421885b04da
Step 2/12 : ENV SCOPE_SKIP_UI_ASSETS true
 ---> Using cache
 ---> e2b73c3a8738
Step 3/12 : RUN set -eux;    export arch_val="$(dpkg --print-architecture)";    apt-get update &&    if [ "$arch_val" = "amd64" ]; then      apt-get install -y libpcap-dev time file shellcheck git gcc-arm-linux-gnueabihf curl build-essential python-pip;    else      apt-get install -y libpcap-dev time file shellcheck git curl build-essential python-pip;    fi;       rm -rf /var/lib/apt/lists/* /tmp/* /var/tmp/*
 ---> Using cache
 ---> d87751044934
Step 4/12 : RUN go clean -i net &&      go install -tags netgo std &&    export arch_val="$(dpkg --print-architecture)";    if [ "$arch_val" != "ppc64el" ]; then      go install -race -tags netgo std;    fi;     go get -tags netgo                github.com/fzipp/gocyclo                golang.org/x/lint/golint               github.com/kisielk/errcheck             github.com/fatih/hclfmt                 github.com/mjibson/esc                 github.com/client9/misspell/cmd/misspell &&     chmod a+wr --recursive /usr/local/go &&        rm -rf /go/pkg/ /go/src/
 ---> Running in fef1bdbf9a88
package github.com/hashicorp/hcl/hcl/printer: cannot find package "github.com/hashicorp/hcl/hcl/printer" in any of:
        /usr/local/go/src/github.com/hashicorp/hcl/hcl/printer (from $GOROOT)
        /go/src/github.com/hashicorp/hcl/hcl/printer (from $GOPATH)
The command '/bin/sh -c go clean -i net &&      go install -tags netgo std &&    export arch_val="$(dpkg --print-architecture)";    if [ "$arch_val" != "ppc64el" ]; then      go install -race -tags netgo std;    fi;     go get -tags netgo                github.com/fzipp/gocyclo                golang.org/x/lint/golint               github.com/kisielk/errcheck             github.com/fatih/hclfmt               github.com/mjibson/esc           github.com/client9/misspell/cmd/misspell &&     chmod a+wr --recursive /usr/local/go &&        rm -rf /go/pkg/ /go/src/' returned a non-zero code: 1
Makefile:239: recipe for target '.scope_backend_build.uptodate' failed
make: *** [.scope_backend_build.uptodate] Error 1

Given the missing dependency has 'hcl' in the name and that line is building 'hclfmt', that is where I would start.
There is no reason for Scope to need hclfmt as part of its build.
BTW I pushed #3833 which I was working on a few weeks back; hadn't changed this line.

https://github.com/fatih/hclfmt This repository has been archived by the owner.
I will try to build by removing hclfmt module.

@bboreham I tried to run the make command by removing -               github.com/fatih/hclfmt \, able to build backdend/Dockerfile.  But make and make tests command is failing with permission.
make command log. sudo make command is passing.
~/src/github.com/weaveworks/scope$ make

mkdir -p .cache/build_node_modules client/node_modules
if test "true" != ""; then \
        sudo -E docker run --rm -ti \
                -v /home/snehal/src/github.com/weaveworks/scope/.cache:/home/weave/scope/.cache \
                -v /home/snehal/src/github.com/weaveworks/scope/client:/home/weave/scope/client \
                -v /home/snehal/src/github.com/weaveworks/scope/.cache/build_node_modules:/home/weave/scope/client/node_modules \
                -w /home/weave/scope/client \
                -u 1002:1002 \
                weaveworks/scope-ui-build yarn install; \
fi

yarn install v1.21.1
[1/5] Validating package.json...
[2/5] Resolving packages...
success Already up-to-date.
Done in 0.87s.
Error: EACCES: permission denied, open '/.yarnrc'
Makefile:140: recipe for target '.cache/build_node_modules/.uptodate' failed

make tests command log. After running sudo -E make tests, the command is still failing with the below error.
~/src/github.com/weaveworks/scope$ make tests
sudo -E docker run --rm -ti \
        -v /home/snehal/src/github.com/weaveworks/scope:/go/src/github.com/weaveworks/scope \
        -v /home/snehal/src/github.com/weaveworks/scope/.pkg:/go/pkg \
        --net=host \
        -e GOARCH -e GOOS -e CIRCLECI -e CIRCLE_BUILD_NUM -e CIRCLE_NODE_TOTAL \
        -e CIRCLE_NODE_INDEX -e COVERDIR -e SLOW -e TESTDIRS \
        weaveworks/scope-backend-build SCOPE_VERSION=2f9ccdc8 CODECGEN_UID=0 tests
make: Entering directory '/go/src/github.com/weaveworks/scope'
mkdir -p client/build
if test "true" != "true"; then cd client && yarn run build; fi
./tools/test -no-go-get -tags 'netgo unsafe'
go: writing go.mod cache: mkdir /go/pkg/mod: permission denied
go: writing go.mod cache: mkdir /go/pkg/mod: permission denied
go: writing go.mod cache: mkdir /go/pkg/mod: permission denied
go: writing go.mod cache: mkdir /go/pkg/mod: permission denied
go: writing go.mod cache: mkdir /go/pkg/mod: permission denied
go: writing go.mod cache: mkdir /go/pkg/mod: permission denied
go: writing go.mod cache: mkdir /go/pkg/mod: permission denied
go: writing go.mod cache: mkdir /go/pkg/mod: permission denied
go: writing go.mod cache: mkdir /go/pkg/mod: permission denied

@bboreham  Could you please have a look?

Solved by #3834


Could not find document for file, Omnisharp not working

Issue Description
I recently started a new Unity project, and for the first few days of me working on it, the C# extension had no issues. However, a few days after, all Omnisharp functions stopped working, like reference counters and autocomplete. I checked the logs and found that any time I was typing something, this was showing up:
[info]: OmniSharp.Roslyn.CSharp.Services.Completion.CompletionService
        Could not find document for file e:\Games\UnityProjects\Protista\Assets\Scripts\Board.cs

I've tried restarting the server via the command palette multiple times and it hasn't worked.
I tried looking online for solutions and came across this: https://github.com/OmniSharp/omnisharp-vscode/issues/4181#issuecomment-742668376 so I set the path to latest in my settings, which is why I have the beta. (Having the beta didn't fix it and it didn't work before I had the beta too.) I also saw this in the changelog on the extension store:

For Mono-based development (e.g. Unity) that requires full .NET framework, you need to set "omnisharp.useGlobalMono": "always". The current value of "auto" will remain "never" until Mono upgrades their bundled MSBuild version.

So I tried setting the "useGlobalMono" to "always", but that didn't work either. I've asked some people on Reddit for help, but nothing worked there either. I've tried uninstalling and reinstalling the extension, also to no avail.
Note: for the most part I am new to development in C#, and this may be a stupid question, but is there supposed to be a .csproj or .sln file somewhere in the directory created by Unity, because I can't find any, and that may be the problem, but I've tried and I can't find anything about it.
Steps to Reproduce
Unknown, Omnisharp was working fine one day then stopped working the next day without any warning.
Expected Behavior
When typing, suggestions that are related to my variables and methods show up, red underlining when there is a syntax error, reference counters, go to definition would do something, etc.
Actual Behavior
None of the above show up, I get no red lines from syntax errors, no reference counters, go to definition does nothing, and the only suggestions I get when typing is based on words that have already appeared in my script.
Logs
OmniSharp log

Starting OmniSharp server at 1/10/2021, 2:40:37 PM
    Target: e:\Games\UnityProjects\Protista
OmniSharp server started.
Path: c:\Users\jagsh.vscode\extensions\ms-dotnettools.csharp-1.23.8.omnisharp\1.37.6-beta.23\OmniSharp.exe
PID: 4092
    Starting OmniSharp on Windows 6.2.9200.0 (x64)

    DotNetPath set to dotnet

    Located 1 MSBuild instance(s)
        1: StandAlone 16.8.0 - "c:\Users\jagsh\.vscode\extensions\ms-dotnettools.csharp-1.23.8\.omnisharp\1.37.6-beta.23\.msbuild\Current\Bin"

    MSBUILD_EXE_PATH environment variable set to 'c:\Users\jagsh\.vscode\extensions\ms-dotnettools.csharp-1.23.8\.omnisharp\1.37.6-beta.23\.msbuild\Current\Bin\MSBuild.exe'

    Registered MSBuild instance: StandAlone 16.8.0 - "c:\Users\jagsh\.vscode\extensions\ms-dotnettools.csharp-1.23.8\.omnisharp\1.37.6-beta.23\.msbuild\Current\Bin"
        CscToolExe = csc.exe
        CscToolPath = c:\Users\jagsh\.vscode\extensions\ms-dotnettools.csharp-1.23.8\.omnisharp\1.37.6-beta.23\.msbuild\Current\Bin\Roslyn
        MSBuildExtensionsPath = c:\Users\jagsh\.vscode\extensions\ms-dotnettools.csharp-1.23.8\.omnisharp\1.37.6-beta.23\.msbuild
        MSBuildToolsPath = c:\Users\jagsh\.vscode\extensions\ms-dotnettools.csharp-1.23.8\.omnisharp\1.37.6-beta.23\.msbuild\Current\Bin

    Detecting Cake files in 'e:\Games\UnityProjects\Protista'.

    Could not find any Cake files

    No solution files found in 'e:\Games\UnityProjects\Protista'

    Detecting CSX files in 'e:\Games\UnityProjects\Protista'.

    Could not find any CSX files

    Invoking Workspace Options Provider: OmniSharp.Roslyn.CSharp.Services.CSharpFormattingWorkspaceOptionsProvider, Order: 0

    Invoking Workspace Options Provider: OmniSharp.Roslyn.CSharp.Services.Completion.CompletionOptionsProvider, Order: 0

    Invoking Workspace Options Provider: OmniSharp.Roslyn.CSharp.Services.RenameWorkspaceOptionsProvider, Order: 100

    Invoking Workspace Options Provider: OmniSharp.Roslyn.CSharp.Services.ImplementTypeWorkspaceOptionsProvider, Order: 110

    Invoking Workspace Options Provider: OmniSharp.Roslyn.CSharp.Services.BlockStructureWorkspaceOptionsProvider, Order: 140

    Configuration finished.

    Omnisharp server running using Stdio at location 'e:\Games\UnityProjects\Protista' on host 22020.

    Could not find document for file e:\Games\UnityProjects\Protista\Assets\Scripts\Board.cs

C# log
Getting latest OmniSharp version information
Downloading package 'Latest OmniSharp Version Information' (1 KB).................... Done!
In this case, even though I'd done it before, I tried uninstalling and reinstalling the C# extension as a last-ditch effort.
Environment information
VSCode version: 1.52.1
C# Extension: 1.23.8
Dotnet Information
.NET Core SDK (reflecting any global.json):
 Version:   3.1.101
 Commit:    b377529961
Runtime Environment:
OS Name:     Windows
OS Version:  10.0.19041
OS Platform: Windows
RID:         win10-x64
Base Path:   C:\Program Files\dotnet\sdk\3.1.101\
Host (useful for support):
Version: 3.1.1
Commit:  a1388f194c
.NET Core SDKs installed:
3.1.101 [C:\Program Files\dotnet\sdk]
.NET Core runtimes installed:
Microsoft.AspNetCore.App 3.1.1 [C:\Program Files\dotnet\shared\Microsoft.AspNetCore.App]
Microsoft.NETCore.App 3.1.1 [C:\Program Files\dotnet\shared\Microsoft.NETCore.App]
Microsoft.WindowsDesktop.App 3.1.1 [C:\Program Files\dotnet\shared\Microsoft.WindowsDesktop.App]
To install additional .NET Core runtimes or SDKs:
https://aka.ms/dotnet-download

Visual Studio Code Extensions

Extension
Author
Version

anaconda-extension-pack
ms-python
1.0.1

csharp
ms-dotnettools
1.23.8

debugger-for-chrome
msjsdiag
4.12.11

discord-vscode
icrawl
4.1.0

java
redhat
0.73.0

jupyter
ms-toolsai
2020.12.414227025

python
ms-python
2020.12.424452561

remote-containers
ms-vscode-remote
0.154.2

remote-ssh
ms-vscode-remote
0.62.0

remote-ssh-edit
ms-vscode-remote
0.62.0

remote-wsl
ms-vscode-remote
0.52.0

unity-debug
Unity
3.0.2

unity-tools
Tobiah
1.2.12

vscode-java-debug
vscjava
0.30.0

vscode-java-dependency
vscjava
0.16.0

vscode-java-pack
vscjava
0.12.1

vscode-java-test
vscjava
0.27.0

vscode-maven
vscjava
0.27.1

vscode-pull-request-github
GitHub
0.22.0

vscode-pylance
ms-python
2021.1.0

vscode-remote-extensionpack
ms-vscode-remote
0.20.0

vscode-yaml
redhat
0.13.0

vscodeintellicode
VisualStudioExptTeam
1.2.10

I resolved this issue in Unity by downloading Unity's VSCode Package via the package manager and then regenerating the csproj fles from Unity's External Tools menu<EMAIL_ADDRESS>

I resolved this issue in Unity by downloading Unity's VSCode Package via the package manager and then regenerating the csproj fles from Unity's External Tools menu<EMAIL_ADDRESS>

Okay, I tried doing that, and the .csproj and .sln files were generated, but then I got this in the logs:
Starting OmniSharp server at 1/11/2021, 8:16:33 AM
    Target: e:\Games\UnityProjects\Protista\Protista.sln

OmniSharp server started.
    Path: c:\Users\jagsh\.vscode\extensions\ms-dotnettools.csharp-1.23.8\.omnisharp\1.37.6-beta.23\OmniSharp.exe
    PID: 636

[info]: OmniSharp.Stdio.Host
        Starting OmniSharp on Windows 6.2.9200.0 (x64)
[info]: OmniSharp.Services.DotNetCliService
        DotNetPath set to dotnet
[info]: OmniSharp.MSBuild.Discovery.MSBuildLocator
        Located 1 MSBuild instance(s)
            1: StandAlone 16.8.0 - "c:\Users\jagsh\.vscode\extensions\ms-dotnettools.csharp-1.23.8\.omnisharp\1.37.6-beta.23\.msbuild\Current\Bin"
[info]: OmniSharp.MSBuild.Discovery.MSBuildLocator
        MSBUILD_EXE_PATH environment variable set to 'c:\Users\jagsh\.vscode\extensions\ms-dotnettools.csharp-1.23.8\.omnisharp\1.37.6-beta.23\.msbuild\Current\Bin\MSBuild.exe'
[info]: OmniSharp.MSBuild.Discovery.MSBuildLocator
        Registered MSBuild instance: StandAlone 16.8.0 - "c:\Users\jagsh\.vscode\extensions\ms-dotnettools.csharp-1.23.8\.omnisharp\1.37.6-beta.23\.msbuild\Current\Bin"
            CscToolExe = csc.exe
            CscToolPath = c:\Users\jagsh\.vscode\extensions\ms-dotnettools.csharp-1.23.8\.omnisharp\1.37.6-beta.23\.msbuild\Current\Bin\Roslyn
            MSBuildExtensionsPath = c:\Users\jagsh\.vscode\extensions\ms-dotnettools.csharp-1.23.8\.omnisharp\1.37.6-beta.23\.msbuild
            MSBuildToolsPath = c:\Users\jagsh\.vscode\extensions\ms-dotnettools.csharp-1.23.8\.omnisharp\1.37.6-beta.23\.msbuild\Current\Bin
[info]: OmniSharp.Cake.CakeProjectSystem
        Detecting Cake files in 'e:\Games\UnityProjects\Protista'.
[info]: OmniSharp.Cake.CakeProjectSystem
        Could not find any Cake files
[info]: OmniSharp.MSBuild.ProjectSystem
        Detecting projects in 'e:\Games\UnityProjects\Protista\Protista.sln'.
[info]: OmniSharp.MSBuild.ProjectManager
        Queue project update for 'e:\Games\UnityProjects\Protista\Assembly-CSharp.csproj'
[info]: OmniSharp.Script.ScriptProjectSystem
        Detecting CSX files in 'e:\Games\UnityProjects\Protista'.
[info]: OmniSharp.Script.ScriptProjectSystem
        Could not find any CSX files
[info]: OmniSharp.WorkspaceInitializer
        Invoking Workspace Options Provider: OmniSharp.Roslyn.CSharp.Services.CSharpFormattingWorkspaceOptionsProvider, Order: 0
[info]: OmniSharp.MSBuild.ProjectManager
        Loading project: e:\Games\UnityProjects\Protista\Assembly-CSharp.csproj
[info]: OmniSharp.WorkspaceInitializer
        Invoking Workspace Options Provider: OmniSharp.Roslyn.CSharp.Services.Completion.CompletionOptionsProvider, Order: 0
[info]: OmniSharp.WorkspaceInitializer
        Invoking Workspace Options Provider: OmniSharp.Roslyn.CSharp.Services.RenameWorkspaceOptionsProvider, Order: 100
[info]: OmniSharp.WorkspaceInitializer
        Invoking Workspace Options Provider: OmniSharp.Roslyn.CSharp.Services.ImplementTypeWorkspaceOptionsProvider, Order: 110
[info]: OmniSharp.WorkspaceInitializer
        Invoking Workspace Options Provider: OmniSharp.Roslyn.CSharp.Services.BlockStructureWorkspaceOptionsProvider, Order: 140
[info]: OmniSharp.WorkspaceInitializer
        Configuration finished.
[info]: OmniSharp.Stdio.Host
        Omnisharp server running using Stdio at location 'e:\Games\UnityProjects\Protista' on host 16504.
[fail]: OmniSharp.MSBuild.ProjectLoader
        The reference assemblies for .NETFramework,Version=v4.7.1 were not found. To resolve this, install the Developer Pack (SDK/Targeting Pack) for this framework version or retarget your application. You can download .NET Framework Developer Packs at https://aka.ms/msbuild/developerpacks
[warn]: OmniSharp.MSBuild.ProjectManager
        Failed to load project file 'e:\Games\UnityProjects\Protista\Assembly-CSharp.csproj'.
e:\Games\UnityProjects\Protista\Assembly-CSharp.csproj
c:\Users\jagsh\.vscode\extensions\ms-dotnettools.csharp-1.23.8\.omnisharp\1.37.6-beta.23\.msbuild\Current\Bin\Microsoft.Common.CurrentVersion.targets(1180,5): Error: The reference assemblies for .NETFramework,Version=v4.7.1 were not found. To resolve this, install the Developer Pack (SDK/Targeting Pack) for this framework version or retarget your application. You can download .NET Framework Developer Packs at https://aka.ms/msbuild/developerpacks

[fail]: OmniSharp.MSBuild.ProjectManager
        Attempted to update project that is not loaded: e:\Games\UnityProjects\Protista\Assembly-CSharp.csproj

Does this mean I just need to update my version of the .NET framework? How would I do that?

Okay, I tried doing that, and the .csproj and .sln files were generated, but then I got this in the logs:
Starting OmniSharp server at 1/11/2021, 8:16:33 AM
    Target: e:\Games\UnityProjects\Protista\Protista.sln

OmniSharp server started.
    Path: c:\Users\jagsh\.vscode\extensions\ms-dotnettools.csharp-1.23.8\.omnisharp\1.37.6-beta.23\OmniSharp.exe
    PID: 636

[info]: OmniSharp.Stdio.Host
        Starting OmniSharp on Windows 6.2.9200.0 (x64)
[info]: OmniSharp.Services.DotNetCliService
        DotNetPath set to dotnet
[info]: OmniSharp.MSBuild.Discovery.MSBuildLocator
        Located 1 MSBuild instance(s)
            1: StandAlone 16.8.0 - "c:\Users\jagsh\.vscode\extensions\ms-dotnettools.csharp-1.23.8\.omnisharp\1.37.6-beta.23\.msbuild\Current\Bin"
[info]: OmniSharp.MSBuild.Discovery.MSBuildLocator
        MSBUILD_EXE_PATH environment variable set to 'c:\Users\jagsh\.vscode\extensions\ms-dotnettools.csharp-1.23.8\.omnisharp\1.37.6-beta.23\.msbuild\Current\Bin\MSBuild.exe'
[info]: OmniSharp.MSBuild.Discovery.MSBuildLocator
        Registered MSBuild instance: StandAlone 16.8.0 - "c:\Users\jagsh\.vscode\extensions\ms-dotnettools.csharp-1.23.8\.omnisharp\1.37.6-beta.23\.msbuild\Current\Bin"
            CscToolExe = csc.exe
            CscToolPath = c:\Users\jagsh\.vscode\extensions\ms-dotnettools.csharp-1.23.8\.omnisharp\1.37.6-beta.23\.msbuild\Current\Bin\Roslyn
            MSBuildExtensionsPath = c:\Users\jagsh\.vscode\extensions\ms-dotnettools.csharp-1.23.8\.omnisharp\1.37.6-beta.23\.msbuild
            MSBuildToolsPath = c:\Users\jagsh\.vscode\extensions\ms-dotnettools.csharp-1.23.8\.omnisharp\1.37.6-beta.23\.msbuild\Current\Bin
[info]: OmniSharp.Cake.CakeProjectSystem
        Detecting Cake files in 'e:\Games\UnityProjects\Protista'.
[info]: OmniSharp.Cake.CakeProjectSystem
        Could not find any Cake files
[info]: OmniSharp.MSBuild.ProjectSystem
        Detecting projects in 'e:\Games\UnityProjects\Protista\Protista.sln'.
[info]: OmniSharp.MSBuild.ProjectManager
        Queue project update for 'e:\Games\UnityProjects\Protista\Assembly-CSharp.csproj'
[info]: OmniSharp.Script.ScriptProjectSystem
        Detecting CSX files in 'e:\Games\UnityProjects\Protista'.
[info]: OmniSharp.Script.ScriptProjectSystem
        Could not find any CSX files
[info]: OmniSharp.WorkspaceInitializer
        Invoking Workspace Options Provider: OmniSharp.Roslyn.CSharp.Services.CSharpFormattingWorkspaceOptionsProvider, Order: 0
[info]: OmniSharp.MSBuild.ProjectManager
        Loading project: e:\Games\UnityProjects\Protista\Assembly-CSharp.csproj
[info]: OmniSharp.WorkspaceInitializer
        Invoking Workspace Options Provider: OmniSharp.Roslyn.CSharp.Services.Completion.CompletionOptionsProvider, Order: 0
[info]: OmniSharp.WorkspaceInitializer
        Invoking Workspace Options Provider: OmniSharp.Roslyn.CSharp.Services.RenameWorkspaceOptionsProvider, Order: 100
[info]: OmniSharp.WorkspaceInitializer
        Invoking Workspace Options Provider: OmniSharp.Roslyn.CSharp.Services.ImplementTypeWorkspaceOptionsProvider, Order: 110
[info]: OmniSharp.WorkspaceInitializer
        Invoking Workspace Options Provider: OmniSharp.Roslyn.CSharp.Services.BlockStructureWorkspaceOptionsProvider, Order: 140
[info]: OmniSharp.WorkspaceInitializer
        Configuration finished.
[info]: OmniSharp.Stdio.Host
        Omnisharp server running using Stdio at location 'e:\Games\UnityProjects\Protista' on host 16504.
[fail]: OmniSharp.MSBuild.ProjectLoader
        The reference assemblies for .NETFramework,Version=v4.7.1 were not found. To resolve this, install the Developer Pack (SDK/Targeting Pack) for this framework version or retarget your application. You can download .NET Framework Developer Packs at https://aka.ms/msbuild/developerpacks
[warn]: OmniSharp.MSBuild.ProjectManager
        Failed to load project file 'e:\Games\UnityProjects\Protista\Assembly-CSharp.csproj'.
e:\Games\UnityProjects\Protista\Assembly-CSharp.csproj
c:\Users\jagsh\.vscode\extensions\ms-dotnettools.csharp-1.23.8\.omnisharp\1.37.6-beta.23\.msbuild\Current\Bin\Microsoft.Common.CurrentVersion.targets(1180,5): Error: The reference assemblies for .NETFramework,Version=v4.7.1 were not found. To resolve this, install the Developer Pack (SDK/Targeting Pack) for this framework version or retarget your application. You can download .NET Framework Developer Packs at https://aka.ms/msbuild/developerpacks

[fail]: OmniSharp.MSBuild.ProjectManager
        Attempted to update project that is not loaded: e:\Games\UnityProjects\Protista\Assembly-CSharp.csproj

Does this mean I just need to update my version of the .NET framework? How would I do that?

you need to set omnisharp.useGlobalMono:always. The bundled Mono ships without the .NETFramework,Version=v4.7.1 reference assemblies.

you need to set omnisharp.useGlobalMono:always. The bundled Mono ships without the .NETFramework,Version=v4.7.1 reference assemblies.

It is set to "always". I've tried putting it back to "auto" and then changing it to "always", and it still came out with the same logs.

It is set to "always". I've tried putting it back to "auto" and then changing it to "always", and it still came out with the same logs.

oh, I did not notice that you are on Windows. Then Mono has no effect.
You need to install VS 2019 Build Tools https://visualstudio.microsoft.com/de/thank-you-downloading-visual-studio/?sku=BuildTools&rel=16 or VS 2019 https://visualstudio.microsoft.com/de/thank-you-downloading-visual-studio/?sku=Community&rel=16
Then Omnisharp will pick up the MSBuild that comes with that.

oh, I did not notice that you are on Windows. Then Mono has no effect.
You need to install VS 2019 Build Tools https://visualstudio.microsoft.com/de/thank-you-downloading-visual-studio/?sku=BuildTools&rel=16 or VS 2019 https://visualstudio.microsoft.com/de/thank-you-downloading-visual-studio/?sku=Community&rel=16
Then Omnisharp will pick up the MSBuild that comes with that.

I installed the VS 2019 Build Tools, still getting the same logs. :(

I installed the VS 2019 Build Tools, still getting the same logs. :(

please post the log after the installation

please post the log after the installation

Here they are:
Starting OmniSharp server at 1/11/2021, 12:06:14 PM
    Target: e:\Games\UnityProjects\Protista\Protista.sln

OmniSharp server started.
    Path: c:\Users\jagsh\.vscode\extensions\ms-dotnettools.csharp-1.23.8\.omnisharp\1.37.6-beta.23\OmniSharp.exe
    PID: 15412

[info]: OmniSharp.Stdio.Host
        Starting OmniSharp on Windows 6.2.9200.0 (x64)
[info]: OmniSharp.Services.DotNetCliService
        DotNetPath set to dotnet
[info]: OmniSharp.MSBuild.Discovery.MSBuildLocator
        Located 2 MSBuild instance(s)
            1: Visual Studio Build Tools 2019 16.8.30804.86 - "E:\Program Files (x86)\Microsoft Visual Studio\2019\BuildTools\MSBuild\Current\Bin"
            2: StandAlone 16.8.0 - "c:\Users\jagsh\.vscode\extensions\ms-dotnettools.csharp-1.23.8\.omnisharp\1.37.6-beta.23\.msbuild\Current\Bin"
[info]: OmniSharp.MSBuild.Discovery.MSBuildLocator
        Registered MSBuild instance: Visual Studio Build Tools 2019 16.8.30804.86 - "E:\Program Files (x86)\Microsoft Visual Studio\2019\BuildTools\MSBuild\Current\Bin"
[info]: OmniSharp.Cake.CakeProjectSystem
        Detecting Cake files in 'e:\Games\UnityProjects\Protista'.
[info]: OmniSharp.Cake.CakeProjectSystem
        Could not find any Cake files
[info]: OmniSharp.MSBuild.ProjectSystem
        Detecting projects in 'e:\Games\UnityProjects\Protista\Protista.sln'.
[info]: OmniSharp.MSBuild.ProjectManager
        Queue project update for 'e:\Games\UnityProjects\Protista\Assembly-CSharp.csproj'
[info]: OmniSharp.Script.ScriptProjectSystem
        Detecting CSX files in 'e:\Games\UnityProjects\Protista'.
[info]: OmniSharp.Script.ScriptProjectSystem
        Could not find any CSX files
[info]: OmniSharp.WorkspaceInitializer
        Invoking Workspace Options Provider: OmniSharp.Roslyn.CSharp.Services.CSharpFormattingWorkspaceOptionsProvider, Order: 0
[info]: OmniSharp.MSBuild.ProjectManager
        Loading project: e:\Games\UnityProjects\Protista\Assembly-CSharp.csproj
[info]: OmniSharp.WorkspaceInitializer
        Invoking Workspace Options Provider: OmniSharp.Roslyn.CSharp.Services.Completion.CompletionOptionsProvider, Order: 0
[info]: OmniSharp.WorkspaceInitializer
        Invoking Workspace Options Provider: OmniSharp.Roslyn.CSharp.Services.RenameWorkspaceOptionsProvider, Order: 100
[info]: OmniSharp.WorkspaceInitializer
        Invoking Workspace Options Provider: OmniSharp.Roslyn.CSharp.Services.ImplementTypeWorkspaceOptionsProvider, Order: 110
[info]: OmniSharp.WorkspaceInitializer
        Invoking Workspace Options Provider: OmniSharp.Roslyn.CSharp.Services.BlockStructureWorkspaceOptionsProvider, Order: 140
[info]: OmniSharp.WorkspaceInitializer
        Configuration finished.
[info]: OmniSharp.Stdio.Host
        Omnisharp server running using Stdio at location 'e:\Games\UnityProjects\Protista' on host 27032.
[fail]: OmniSharp.MSBuild.ProjectLoader
        The reference assemblies for .NETFramework,Version=v4.7.1 were not found. To resolve this, install the Developer Pack (SDK/Targeting Pack) for this framework version or retarget your application. You can download .NET Framework Developer Packs at https://aka.ms/msbuild/developerpacks
[warn]: OmniSharp.MSBuild.ProjectManager
        Failed to load project file 'e:\Games\UnityProjects\Protista\Assembly-CSharp.csproj'.
e:\Games\UnityProjects\Protista\Assembly-CSharp.csproj
E:\Program Files (x86)\Microsoft Visual Studio\2019\BuildTools\MSBuild\Current\Bin\Microsoft.Common.CurrentVersion.targets(1180,5): Error: The reference assemblies for .NETFramework,Version=v4.7.1 were not found. To resolve this, install the Developer Pack (SDK/Targeting Pack) for this framework version or retarget your application. You can download .NET Framework Developer Packs at https://aka.ms/msbuild/developerpacks

[fail]: OmniSharp.MSBuild.ProjectManager
        Attempted to update project that is not loaded: e:\Games\UnityProjects\Protista\Assembly-CSharp.csproj

I'm pretty sure it's the same.

Here they are:
Starting OmniSharp server at 1/11/2021, 12:06:14 PM
    Target: e:\Games\UnityProjects\Protista\Protista.sln

OmniSharp server started.
    Path: c:\Users\jagsh\.vscode\extensions\ms-dotnettools.csharp-1.23.8\.omnisharp\1.37.6-beta.23\OmniSharp.exe
    PID: 15412

[info]: OmniSharp.Stdio.Host
        Starting OmniSharp on Windows 6.2.9200.0 (x64)
[info]: OmniSharp.Services.DotNetCliService
        DotNetPath set to dotnet
[info]: OmniSharp.MSBuild.Discovery.MSBuildLocator
        Located 2 MSBuild instance(s)
            1: Visual Studio Build Tools 2019 16.8.30804.86 - "E:\Program Files (x86)\Microsoft Visual Studio\2019\BuildTools\MSBuild\Current\Bin"
            2: StandAlone 16.8.0 - "c:\Users\jagsh\.vscode\extensions\ms-dotnettools.csharp-1.23.8\.omnisharp\1.37.6-beta.23\.msbuild\Current\Bin"
[info]: OmniSharp.MSBuild.Discovery.MSBuildLocator
        Registered MSBuild instance: Visual Studio Build Tools 2019 16.8.30804.86 - "E:\Program Files (x86)\Microsoft Visual Studio\2019\BuildTools\MSBuild\Current\Bin"
[info]: OmniSharp.Cake.CakeProjectSystem
        Detecting Cake files in 'e:\Games\UnityProjects\Protista'.
[info]: OmniSharp.Cake.CakeProjectSystem
        Could not find any Cake files
[info]: OmniSharp.MSBuild.ProjectSystem
        Detecting projects in 'e:\Games\UnityProjects\Protista\Protista.sln'.
[info]: OmniSharp.MSBuild.ProjectManager
        Queue project update for 'e:\Games\UnityProjects\Protista\Assembly-CSharp.csproj'
[info]: OmniSharp.Script.ScriptProjectSystem
        Detecting CSX files in 'e:\Games\UnityProjects\Protista'.
[info]: OmniSharp.Script.ScriptProjectSystem
        Could not find any CSX files
[info]: OmniSharp.WorkspaceInitializer
        Invoking Workspace Options Provider: OmniSharp.Roslyn.CSharp.Services.CSharpFormattingWorkspaceOptionsProvider, Order: 0
[info]: OmniSharp.MSBuild.ProjectManager
        Loading project: e:\Games\UnityProjects\Protista\Assembly-CSharp.csproj
[info]: OmniSharp.WorkspaceInitializer
        Invoking Workspace Options Provider: OmniSharp.Roslyn.CSharp.Services.Completion.CompletionOptionsProvider, Order: 0
[info]: OmniSharp.WorkspaceInitializer
        Invoking Workspace Options Provider: OmniSharp.Roslyn.CSharp.Services.RenameWorkspaceOptionsProvider, Order: 100
[info]: OmniSharp.WorkspaceInitializer
        Invoking Workspace Options Provider: OmniSharp.Roslyn.CSharp.Services.ImplementTypeWorkspaceOptionsProvider, Order: 110
[info]: OmniSharp.WorkspaceInitializer
        Invoking Workspace Options Provider: OmniSharp.Roslyn.CSharp.Services.BlockStructureWorkspaceOptionsProvider, Order: 140
[info]: OmniSharp.WorkspaceInitializer
        Configuration finished.
[info]: OmniSharp.Stdio.Host
        Omnisharp server running using Stdio at location 'e:\Games\UnityProjects\Protista' on host 27032.
[fail]: OmniSharp.MSBuild.ProjectLoader
        The reference assemblies for .NETFramework,Version=v4.7.1 were not found. To resolve this, install the Developer Pack (SDK/Targeting Pack) for this framework version or retarget your application. You can download .NET Framework Developer Packs at https://aka.ms/msbuild/developerpacks
[warn]: OmniSharp.MSBuild.ProjectManager
        Failed to load project file 'e:\Games\UnityProjects\Protista\Assembly-CSharp.csproj'.
e:\Games\UnityProjects\Protista\Assembly-CSharp.csproj
E:\Program Files (x86)\Microsoft Visual Studio\2019\BuildTools\MSBuild\Current\Bin\Microsoft.Common.CurrentVersion.targets(1180,5): Error: The reference assemblies for .NETFramework,Version=v4.7.1 were not found. To resolve this, install the Developer Pack (SDK/Targeting Pack) for this framework version or retarget your application. You can download .NET Framework Developer Packs at https://aka.ms/msbuild/developerpacks

[fail]: OmniSharp.MSBuild.ProjectManager
        Attempted to update project that is not loaded: e:\Games\UnityProjects\Protista\Assembly-CSharp.csproj

I'm pretty sure it's the same.

Here they are:
Starting OmniSharp server at 1/11/2021, 12:06:14 PM
    Target: e:\Games\UnityProjects\Protista\Protista.sln

OmniSharp server started.
    Path: c:\Users\jagsh\.vscode\extensions\ms-dotnettools.csharp-1.23.8\.omnisharp\1.37.6-beta.23\OmniSharp.exe
    PID: 15412

[info]: OmniSharp.Stdio.Host
        Starting OmniSharp on Windows 6.2.9200.0 (x64)
[info]: OmniSharp.Services.DotNetCliService
        DotNetPath set to dotnet
[info]: OmniSharp.MSBuild.Discovery.MSBuildLocator
        Located 2 MSBuild instance(s)
            1: Visual Studio Build Tools 2019 16.8.30804.86 - "E:\Program Files (x86)\Microsoft Visual Studio\2019\BuildTools\MSBuild\Current\Bin"
            2: StandAlone 16.8.0 - "c:\Users\jagsh\.vscode\extensions\ms-dotnettools.csharp-1.23.8\.omnisharp\1.37.6-beta.23\.msbuild\Current\Bin"
[info]: OmniSharp.MSBuild.Discovery.MSBuildLocator
        Registered MSBuild instance: Visual Studio Build Tools 2019 16.8.30804.86 - "E:\Program Files (x86)\Microsoft Visual Studio\2019\BuildTools\MSBuild\Current\Bin"
[info]: OmniSharp.Cake.CakeProjectSystem
        Detecting Cake files in 'e:\Games\UnityProjects\Protista'.
[info]: OmniSharp.Cake.CakeProjectSystem
        Could not find any Cake files
[info]: OmniSharp.MSBuild.ProjectSystem
        Detecting projects in 'e:\Games\UnityProjects\Protista\Protista.sln'.
[info]: OmniSharp.MSBuild.ProjectManager
        Queue project update for 'e:\Games\UnityProjects\Protista\Assembly-CSharp.csproj'
[info]: OmniSharp.Script.ScriptProjectSystem
        Detecting CSX files in 'e:\Games\UnityProjects\Protista'.
[info]: OmniSharp.Script.ScriptProjectSystem
        Could not find any CSX files
[info]: OmniSharp.WorkspaceInitializer
        Invoking Workspace Options Provider: OmniSharp.Roslyn.CSharp.Services.CSharpFormattingWorkspaceOptionsProvider, Order: 0
[info]: OmniSharp.MSBuild.ProjectManager
        Loading project: e:\Games\UnityProjects\Protista\Assembly-CSharp.csproj
[info]: OmniSharp.WorkspaceInitializer
        Invoking Workspace Options Provider: OmniSharp.Roslyn.CSharp.Services.Completion.CompletionOptionsProvider, Order: 0
[info]: OmniSharp.WorkspaceInitializer
        Invoking Workspace Options Provider: OmniSharp.Roslyn.CSharp.Services.RenameWorkspaceOptionsProvider, Order: 100
[info]: OmniSharp.WorkspaceInitializer
        Invoking Workspace Options Provider: OmniSharp.Roslyn.CSharp.Services.ImplementTypeWorkspaceOptionsProvider, Order: 110
[info]: OmniSharp.WorkspaceInitializer
        Invoking Workspace Options Provider: OmniSharp.Roslyn.CSharp.Services.BlockStructureWorkspaceOptionsProvider, Order: 140
[info]: OmniSharp.WorkspaceInitializer
        Configuration finished.
[info]: OmniSharp.Stdio.Host
        Omnisharp server running using Stdio at location 'e:\Games\UnityProjects\Protista' on host 27032.
[fail]: OmniSharp.MSBuild.ProjectLoader
        The reference assemblies for .NETFramework,Version=v4.7.1 were not found. To resolve this, install the Developer Pack (SDK/Targeting Pack) for this framework version or retarget your application. You can download .NET Framework Developer Packs at https://aka.ms/msbuild/developerpacks
[warn]: OmniSharp.MSBuild.ProjectManager
        Failed to load project file 'e:\Games\UnityProjects\Protista\Assembly-CSharp.csproj'.
e:\Games\UnityProjects\Protista\Assembly-CSharp.csproj
E:\Program Files (x86)\Microsoft Visual Studio\2019\BuildTools\MSBuild\Current\Bin\Microsoft.Common.CurrentVersion.targets(1180,5): Error: The reference assemblies for .NETFramework,Version=v4.7.1 were not found. To resolve this, install the Developer Pack (SDK/Targeting Pack) for this framework version or retarget your application. You can download .NET Framework Developer Packs at https://aka.ms/msbuild/developerpacks

[fail]: OmniSharp.MSBuild.ProjectManager
        Attempted to update project that is not loaded: e:\Games\UnityProjects\Protista\Assembly-CSharp.csproj

I'm pretty sure it's the same.

Here they are:
Starting OmniSharp server at 1/11/2021, 12:06:14 PM
    Target: e:\Games\UnityProjects\Protista\Protista.sln

OmniSharp server started.
    Path: c:\Users\jagsh\.vscode\extensions\ms-dotnettools.csharp-1.23.8\.omnisharp\1.37.6-beta.23\OmniSharp.exe
    PID: 15412

[info]: OmniSharp.Stdio.Host
        Starting OmniSharp on Windows 6.2.9200.0 (x64)
[info]: OmniSharp.Services.DotNetCliService
        DotNetPath set to dotnet
[info]: OmniSharp.MSBuild.Discovery.MSBuildLocator
        Located 2 MSBuild instance(s)
            1: Visual Studio Build Tools 2019 16.8.30804.86 - "E:\Program Files (x86)\Microsoft Visual Studio\2019\BuildTools\MSBuild\Current\Bin"
            2: StandAlone 16.8.0 - "c:\Users\jagsh\.vscode\extensions\ms-dotnettools.csharp-1.23.8\.omnisharp\1.37.6-beta.23\.msbuild\Current\Bin"
[info]: OmniSharp.MSBuild.Discovery.MSBuildLocator
        Registered MSBuild instance: Visual Studio Build Tools 2019 16.8.30804.86 - "E:\Program Files (x86)\Microsoft Visual Studio\2019\BuildTools\MSBuild\Current\Bin"
[info]: OmniSharp.Cake.CakeProjectSystem
        Detecting Cake files in 'e:\Games\UnityProjects\Protista'.
[info]: OmniSharp.Cake.CakeProjectSystem
        Could not find any Cake files
[info]: OmniSharp.MSBuild.ProjectSystem
        Detecting projects in 'e:\Games\UnityProjects\Protista\Protista.sln'.
[info]: OmniSharp.MSBuild.ProjectManager
        Queue project update for 'e:\Games\UnityProjects\Protista\Assembly-CSharp.csproj'
[info]: OmniSharp.Script.ScriptProjectSystem
        Detecting CSX files in 'e:\Games\UnityProjects\Protista'.
[info]: OmniSharp.Script.ScriptProjectSystem
        Could not find any CSX files
[info]: OmniSharp.WorkspaceInitializer
        Invoking Workspace Options Provider: OmniSharp.Roslyn.CSharp.Services.CSharpFormattingWorkspaceOptionsProvider, Order: 0
[info]: OmniSharp.MSBuild.ProjectManager
        Loading project: e:\Games\UnityProjects\Protista\Assembly-CSharp.csproj
[info]: OmniSharp.WorkspaceInitializer
        Invoking Workspace Options Provider: OmniSharp.Roslyn.CSharp.Services.Completion.CompletionOptionsProvider, Order: 0
[info]: OmniSharp.WorkspaceInitializer
        Invoking Workspace Options Provider: OmniSharp.Roslyn.CSharp.Services.RenameWorkspaceOptionsProvider, Order: 100
[info]: OmniSharp.WorkspaceInitializer
        Invoking Workspace Options Provider: OmniSharp.Roslyn.CSharp.Services.ImplementTypeWorkspaceOptionsProvider, Order: 110
[info]: OmniSharp.WorkspaceInitializer
        Invoking Workspace Options Provider: OmniSharp.Roslyn.CSharp.Services.BlockStructureWorkspaceOptionsProvider, Order: 140
[info]: OmniSharp.WorkspaceInitializer
        Configuration finished.
[info]: OmniSharp.Stdio.Host
        Omnisharp server running using Stdio at location 'e:\Games\UnityProjects\Protista' on host 27032.
[fail]: OmniSharp.MSBuild.ProjectLoader
        The reference assemblies for .NETFramework,Version=v4.7.1 were not found. To resolve this, install the Developer Pack (SDK/Targeting Pack) for this framework version or retarget your application. You can download .NET Framework Developer Packs at https://aka.ms/msbuild/developerpacks
[warn]: OmniSharp.MSBuild.ProjectManager
        Failed to load project file 'e:\Games\UnityProjects\Protista\Assembly-CSharp.csproj'.
e:\Games\UnityProjects\Protista\Assembly-CSharp.csproj
E:\Program Files (x86)\Microsoft Visual Studio\2019\BuildTools\MSBuild\Current\Bin\Microsoft.Common.CurrentVersion.targets(1180,5): Error: The reference assemblies for .NETFramework,Version=v4.7.1 were not found. To resolve this, install the Developer Pack (SDK/Targeting Pack) for this framework version or retarget your application. You can download .NET Framework Developer Packs at https://aka.ms/msbuild/developerpacks

[fail]: OmniSharp.MSBuild.ProjectManager
        Attempted to update project that is not loaded: e:\Games\UnityProjects\Protista\Assembly-CSharp.csproj

I'm pretty sure it's the same.

yeah but now it picks up the correct MSBuild which is good
[info]: OmniSharp.MSBuild.Discovery.MSBuildLocator
        Registered MSBuild instance: Visual Studio Build Tools 2019 16.8.30804.86 - "E:\Program Files (x86)\Microsoft Visual Studio\2019\BuildTools\MSBuild\Current\Bin"

so what you need to do now, is follow the link in the error and install .NET 4.7.1 developer pack (https://dotnet.microsoft.com/download/dotnet-framework/thank-you/net471-developer-pack-offline-installer)

yeah but now it picks up the correct MSBuild which is good
[info]: OmniSharp.MSBuild.Discovery.MSBuildLocator
        Registered MSBuild instance: Visual Studio Build Tools 2019 16.8.30804.86 - "E:\Program Files (x86)\Microsoft Visual Studio\2019\BuildTools\MSBuild\Current\Bin"

so what you need to do now, is follow the link in the error and install .NET 4.7.1 developer pack (https://dotnet.microsoft.com/download/dotnet-framework/thank-you/net471-developer-pack-offline-installer)

Thank you so much! It works now!

Thank you so much! It works now!

Hi I followed these steps but this is still not working. Anyone knows anything I can do? I have tried everything but I just doesn't work.

@Diegoav87 use Unity hub and make sure to check this box when installing

@gputhread hi, it's not installing the visual studio editor in your computer. It's installing the necessary dev tools. You can use vscode if you want to.

@gputhread hi, it's not installing the visual studio editor in your computer. It's installing the necessary dev tools. You can use vscode if you want to.

ok i didnt knew there are tools separately available to install. Thanks. I know this fix that if vscode and vs both are installed it works fine but i use this fix " upgrade downgrade(1.1.3) vs plugin in unity package manager retarst unity or vs code and delete cs files " then it works again

Hi i have very similar situation.
I remember it works better before update of Visual Studio Code installation.
when i tried for example to show existing definition ( in existing file ) there is an warning 'no document found' displayed ( altought the file exist )
`Starting OmniSharp server at 29.09.2021, 14:25:30
Target: c:\WORK\projects\VSC\NET\newProjTst\newProjTst.sln
OmniSharp server started.
Path: c:\Users\szkn28.vscode\extensions\ms-dotnettools.csharp-1.23.15.omnisharp\1.37.15\OmniSharp.exe
PID: 2480
    Starting OmniSharp on Windows 6.2.9200.0 (x64)

    DotNetPath set to dotnet

    Located 2 MSBuild instance(s)
        1: Visual Studio Build Tools 2019 16.11.31702.278 16.11.0 - "C:\Program Files (x86)\Microsoft Visual Studio\2019\BuildTools\MSBuild\Current\Bin"
        2: StandAlone 17.0.0 - "c:\Users\szkn28\.vscode\extensions\ms-dotnettools.csharp-1.23.15\.omnisharp\1.37.15\.msbuild\Current\Bin"

    Registered MSBuild instance: Visual Studio Build Tools 2019 16.11.31702.278 16.11.0 - "C:\Program Files (x86)\Microsoft Visual Studio\2019\BuildTools\MSBuild\Current\Bin"

    Invoking Workspace Options Provider: OmniSharp.Roslyn.CSharp.Services.CSharpFormattingWorkspaceOptionsProvider, Order: 0

    Invoking Workspace Options Provider: OmniSharp.Roslyn.CSharp.Services.Completion.CompletionOptionsProvider, Order: 0

    Invoking Workspace Options Provider: OmniSharp.Roslyn.CSharp.Services.RenameWorkspaceOptionsProvider, Order: 100

    Invoking Workspace Options Provider: OmniSharp.Roslyn.CSharp.Services.ImplementTypeWorkspaceOptionsProvider, Order: 110

    Invoking Workspace Options Provider: OmniSharp.Roslyn.CSharp.Services.BlockStructureWorkspaceOptionsProvider, Order: 140

    Detecting Cake files in 'c:\WORK\projects\VSC\NET\newProjTst'.

    Could not find any Cake files

    Detecting projects in 'c:\WORK\projects\VSC\NET\newProjTst\newProjTst.sln'.

    Detecting CSX files in 'c:\WORK\projects\VSC\NET\newProjTst'.

    Could not find any CSX files

    Configuration finished.

    Omnisharp server running using Stdio at location 'c:\WORK\projects\VSC\NET\newProjTst' on host 19300.

    No document found. File: c:\WORK\projects\VSC\NET\newProjTst\gui\MainWindow.xaml.cs.

    No document found. File: c:\WORK\projects\VSC\NET\newProjTst\gui\MainWindow.xaml.cs.`

ok i restored default configuration for settings.json and it looks like it work...
<
{
// Controls if quick suggestions should show up while typing
"editor.quickSuggestions": {
"other": true,
"comments": false,
"strings": false
},
// Controls whether suggestions should be accepted on commit characters. For example, in JavaScript, the semi-colon (;) can be a commit character that accepts a suggestion and types that character.
"editor.acceptSuggestionOnCommitCharacter": true,
// Controls if suggestions should be accepted on 'Enter' - in addition to 'Tab'. Helps to avoid ambiguity between inserting new lines or accepting suggestions. The value 'smart' means only accept a suggestion with Enter when it makes a textual change
"editor.acceptSuggestionOnEnter": "on",
// Controls the delay in ms after which quick suggestions will show up.
"editor.quickSuggestionsDelay": 10,
// Controls if suggestions should automatically show up when typing trigger characters
"editor.suggestOnTriggerCharacters": true,
// Controls if pressing tab inserts the best suggestion and if tab cycles through other suggestions
"editor.tabCompletion": "off",
// Controls whether sorting favours words that appear close to the cursor
"editor.suggest.localityBonus": true,
// Controls how suggestions are pre-selected when showing the suggest list
"editor.suggestSelection": "recentlyUsed",
// Enable word based suggestions
"editor.wordBasedSuggestions": true,
// Enable parameter hints
"editor.parameterHints.enabled": true,
}>

Running into this. @twizz24 I applied the settings and restarted.

Issue Description
I recently started a new Unity project, and for the first few days of me working on it, the C# extension had no issues. However, a few days after, all Omnisharp functions stopped working, like reference counters and autocomplete. I checked the logs and found that any time I was typing something, this was showing up:
[info]: OmniSharp.Roslyn.CSharp.Services.Completion.CompletionService
        Could not find document for file e:\Games\UnityProjects\Protista\Assets\Scripts\Board.cs

I've tried restarting the server via the command palette multiple times and it hasn't worked. I tried looking online for solutions and came across this: #4181 (comment) so I set the path to latest in my settings, which is why I have the beta. (Having the beta didn't fix it and it didn't work before I had the beta too.) I also saw this in the changelog on the extension store:

For Mono-based development (e.g. Unity) that requires full .NET framework, you need to set "omnisharp.useGlobalMono": "always". The current value of "auto" will remain "never" until Mono upgrades their bundled MSBuild version.

So I tried setting the "useGlobalMono" to "always", but that didn't work either. I've asked some people on Reddit for help, but nothing worked there either. I've tried uninstalling and reinstalling the extension, also to no avail.
Note: for the most part I am new to development in C#, and this may be a stupid question, but is there supposed to be a .csproj or .sln file somewhere in the directory created by Unity, because I can't find any, and that may be the problem, but I've tried and I can't find anything about it.
Steps to Reproduce
Unknown, Omnisharp was working fine one day then stopped working the next day without any warning.
Expected Behavior
When typing, suggestions that are related to my variables and methods show up, red underlining when there is a syntax error, reference counters, go to definition would do something, etc.
Actual Behavior
None of the above show up, I get no red lines from syntax errors, no reference counters, go to definition does nothing, and the only suggestions I get when typing is based on words that have already appeared in my script.

Logs
OmniSharp log
C# log
Environment information
VSCode version: 1.52.1 C# Extension: 1.23.8
Dotnet Information
Visual Studio Code Extensions

you just have to downgrade your vscode to this version

No need to make downgrade just look at the Omnisharp console - minumum dotnet version since last updates are increased to 6.0.100 and probably you still have lower version  - you need to install recent dotnet core package

However, there is a suggestion that I have to use normal visual studio
which is very difficult run on my laptop, that's why my suggestion is to
use vscode version 3 months ago, which is not a lot of issues like this,
and dont forget never to update in vscode
Pada tanggal Jum, 29 Jul 2022 23.16, twizz24 @.***>
menulis:

No need to make downgrade just look at the Omnisharp console - minumum
dotnet version since last updates are increased to 6.0.100 and probably you
still have lower version - you need to install recent dotnet core package
[image: image]
https://user-images.githubusercontent.com/91608902/181801268-8a611521-c34e-4fe6-8ae5-8417d5e81533.png
—
Reply to this email directly, view it on GitHub
https://github.com/OmniSharp/omnisharp-vscode/issues/4340#issuecomment-1199652726,
or unsubscribe
https://github.com/notifications/unsubscribe-auth/AYGNGGXFO7LSGMAZZVPTAA3VWP7XFANCNFSM4V4YV5KQ
.
You are receiving this because you commented.Message ID:
@.***>


SessionNotOnOrAfter

Is there a way to pass SessionNotOnOrAfter when constructing the authn_statement?
https://github.com/rohe/pysaml2/blob/master/src/saml2/assertion.py#L606

this was fixed with: https://github.com/rohe/pysaml2/pull/351, marking closed.


Correction for raw affiliation Paris-Saclay University, INRAE, AgroParisTech, Micalis Institute, Jouy-en-Josas, France.

Correction needed for raw affiliation Paris-Saclay University, INRAE, AgroParisTech, Micalis Institute, Jouy-en-Josas, France.
raw_affiliation_name: Paris-Saclay University, INRAE, AgroParisTech, Micalis Institute, Jouy-en-Josas, France.
new_rors: 02kbmgc12;003vg9w96;0471cyx86;03xjwb503
previous_rors: 02kbmgc12;003vg9w96;0471cyx86
works_examples: W4399972812
contact: 63ddac7e682a7b1ca87f68fbe76b2783:6db7b342e1ec5b1dcf466eaafab596838108 @ agroparistech.fr

This issue was accepted and ingested by the OpenAlex team on 2024-12-19. The new affiliations should be visible within the next 7 days.


[FEATURE] Support for recursive functions that return complex data structures

Apalache does not support recursive functions that return a value that is different from Int or Bool.
For instance, it fails on APASchedulingAllocator.tla.
$ ~/devl/apalache/bin/apalache-mc check --inv=ResourceMutex --cinit=ConstInit22 APASchedulingAllocator.tla
...

State 0: Checking 1 invariants                                    I@09:50:24.354
Step 0: picking a transition out of 1 transition(s)               I@09:50:24.384
(Please report an issue at: [https://github.com/informalsystems/apalache/issues],at.forsyte.apalache.tla.bmcmt.RewriterException: A result of a recursive function must belong to Int or BOOLEAN. Found: Set(Seq(Str)))
APASchedulingAllocator.tla:57:7-61:42: rewriter error: A result of a recursive function must belong to Int or BOOLEAN. Found: Set(Seq(Str)) E@09:50:24.445
at.forsyte.apalache.tla.bmcmt.RewriterException: A result of a recursive function must belong to Int or BOOLEAN. Found: Set(Seq(Str))

This can be solved by proving PBT-like annotations, e.g., as mentioned in #622. If there is a demand in this feature, we should implement it.

We are going to stop supporting recursive functions.


Headless true produces different variables (unexpected results) in evaluate than Headless false (expected results)

Steps to reproduce

1.6.2 && 1.16.x (tried both)
OSX 10.14.6:
https://gist.github.com/Wkasel/fcd11589f37bd388a02e16430a113fbb
Node.js version: 11.5.0

What steps will reproduce the problem?
Full code snippet in gist
const puppeteer = require("puppeteer");

const urls = [
  `https://shop.nordstrom.com/c/womens-dresses-shop`,
  `https://shop.nordstrom.com/c/womens-dresses-shop?offset=10&page=2`
];

(async () => {
  try {
    const loadPage = async url => {
      /*
      // this is the problem area
      // when I have headless as false I get data for `page 2`
      // when I have headless true I get data for `page 1` when I expect `page 2`
      // for another test try this snippet in your browser
      // __INITIAL_CONFIG__.productResults.query.pageSelected
      // on `page 1` you should get 1, `page 2` you should get 2
      // the only exception is you must have a fresh load (don't just navigate to page 2)
      */
      const browser = await puppeteer.launch({ headless: true });
      // const browser = await puppeteer.launch({ headless: false });
      console.log(`testing with ${url}`);
      const page = await browser.newPage();
      await page.goto(url, {
        waitUntil: "networkidle0"
      });
      await page.waitFor(5000);
      /*
      // tried both of these solutions to test and it doesn't work
      //
      // await page.waitForSelector("#product-results-query-anchor");
      // await page.waitFor(5000);
      */

      const data = await page.evaluate(e => window.__INITIAL_CONFIG__);
      console.log(data.productResults.query.pageSelected);
      await page.close();
      await browser.close();
    };
    await loadPage(urls[0]);
    await loadPage(urls[1]);
  } catch (e) {
    console.log(e);
  }
})();

TL;DR; Comments says it all. Headless true produces different variables (unexpected results) in evaluate than Headless false (expected results)
side note: if you curl this page directly, https://shop.nordstrom.com/c/womens-dresses-shop?offset=10&page=2 and look at the
object window.__INITIAL_CONFIG__.productResults.query.pageSelected it stays as page 1, but eventually updates to page 2 when loaded in a browser.

I took a screenshot of the second page. And you are getting a popup on headless false.
You might need to close that popup and then redirect to the second page. I got many different countries while getting to that page...


Suggestion:

I would like to see a video option so you could drag and drop a URL in to link reader or something and i would play vidoe of how to level or a build guuid because your over lay all ready has a market option built in so you could make build with out opening you browser

kind of confusing sorry

kind of confusing sorry


feat: database support and .env

Description
Adding .env configurations in order to add databases support (i.e mysql or postgres) to the dart_frog server
whereas once you have the .env values of for instance mysql address and credentials it will add it to the server initialization
Requirements

[ ] adding out of the box .env support
[ ] adding databases support

P.S
i'm glad to help by any means if anyone is ready to take this contribution outside of the vgv team
i've been working on a similar project before called Palace but it's archived now since we went to uni and decided to come back later.

@SPiercer Hello there is package https://pub.dev/packages/mysql_client to work with mysql DB, it's good for starting, but .env will be good for dart_frog

@SPiercer Hello there is package https://pub.dev/packages/mysql_client to work with mysql DB, it's good for starting, but .env will be good for dart_frog

@aaltynbek man, there is not way i can initialize the mysql client on the server because i have no access to edit server.dart basically in dev mode

@SPiercer You can create a custom entrypoint, simply create a main.dart file at the root of your Dart Frog project. The main.dart file must expose a top-level run method.
Official Doc
import 'dart:io';

import 'package:dart_frog/dart_frog.dart';

Future<HttpServer> run(Handler handler, InternetAddress ip, int port) {
  // 1. Execute any custom code prior to starting the server...

  // 2. Use the provided `handler`, `ip`, and `port` to create a custom `HttpServer`.
  // Or use the Dart Frog serve method to do that for you.
  return serve(handler, ip, port);
}

I use a custom entry point to set some values, but the problem is that it could be useful to set some env variables on dev mode using the dart_from CLI like this example:
dart_frog --define=SOME_TOKEN=1234 dev

In this way it is possible to compile and use the server for production:
dart_frog build
dart compile exe build/bin/server.dart -o build/bin/server
dart run --define= SOME_TOKEN =1234 build/bin/server

Actually I can't figured out some workaround to set an env variable using dart_frog CLI.
There is one?
Thank you.

The package dotenv solves this issue for me very well.
In my dev env, I'm using a .env file and in the prd server, the env var from machine.
I dont think it is a issue that Dart Frog should address, as you can do it by yourself, even reading from a file from Dart or  from yaml files as I've seen other dart server's project doing.

Yes of course: to read a yaml file is the easy solution (I've also applied it), but if you want to make more safe the environment, you do not save password or other sensitive data in any local file.

Yes of course: to read a yaml file is the easy solution (I've also applied it), but if you want to make more safe the environment, you do not save password or other sensitive data in any local file.

for that reason I use dotenv.
In my machine, I have a .env file with the password in open text, and (without change any line of code), in prd server, it'll use the env from server (no file anymore)

I'm trying to use the envied package for storing keys. But whenever I run the
dart_frog dev

I always get this error

This is my project structure:

and this is the package that has the package envied installed

I am closing this issue as this is outside of the scope of Dart Frog, both setting up env and database are really specific to how a user wants to do it and people have already given nice solutions in the issue thread.
We can in the near future maybe create some documentation/tutorials on how to set it up, but that will be it's own issue.


mongo-c-driver 1.6.1 not usable unders windows 10

Describe the bug
when used in cmake, the follwing error occurs:

CMake Error at F:/vcpkg/scripts/buildsystems/vcpkg.cmake:329 (_find_package):
Could not find a package configuration file provided by "mongo-c-driver"
with any of the following names:
mongo-c-driverConfig.cmake
mongo-c-driver-config.cmake

Add the installation prefix of "mongo-c-driver" to CMAKE_PREFIX_PATH or set
"mongo-c-driver_DIR" to a directory containing one of the above files.  If
"mongo-c-driver" provides a separate development package or SDK, be sure it
has been installed.
Call Stack (most recent call first):
CMakeLists.txt:40 (find_package)

To Reproduce
Steps to reproduce the behavior:
1vcpkg install mongo-cxx-driver:x64-windows-static and 'vcpkg install mongo-cxx-driver:x64-windows', all builds ok.

mongo-c-driver:x64-windows                         1.16.1           Client library written in C for MongoDB.
mongo-c-driver:x64-windows-static                  1.16.1           Client library written in C for MongoDB.
mongo-cxx-driver:x64-windows                       3.4.0-4          MongoDB C++ Driver.
mongo-cxx-driver:x64-windows-static                3.4.0-4          MongoDB C++ Driver.

in a cmake file

find_package(libmongocxx REQUIRED)
find_package(libbsoncxx REQUIRED)
find_package(mongo-c-driver CONFIG REQUIRED)

the above error shows
Expected behavior
no error
Failure logs
-(please attached failure logs)

-- Selecting Windows SDK version 10.0.18362.0 to target Windows 10.0.19613.
-- clang-format found: D:/Program Files/LLVM/bin/clang-format.exe
-- cmake-format not found!
-- clang-tidy found: D:/Program Files/LLVM/bin/clang-tidy.exe
-- include-what-you-use not found!
-- cppcheck found: D:/Program Files/Cppcheck/cppcheck.exe
-- dot found: D:/Program Files (x86)/Graphviz2.38/bin/dot.exe
-- Environment Info
-- Binary Dir   - CMAKE_BINARY_DIR      = F:/WD/tf-amd/code/cpp/~build-windows
-- System Name  - CMAKE_SYSTEM_NAME     = Windows
-- Build type   - CMAKE_BUILD_TYPE      =
-- Compiler ID  - CMAKE_CXX_COMPILER_ID = MSVC
-- Install path - CMAKE_INSTALL_PREFIX  = C:/Program Files (x86)/tf-amd
-- Home path    - CMAKE_HOME_DIRECTORY  = F:/WD/tf-amd/code/cpp
-- C++ Standard - CMAKE_CXX_STANDARD  = 17
-- Target = 64 bits build
-- Disable macro min(), max()
-- Use Windows 10 SDKs for Boost.Asio
CMake Error at F:/vcpkg/scripts/buildsystems/vcpkg.cmake:329 (_find_package):
Could not find a package configuration file provided by "mongo-c-driver"
with any of the following names:
mongo-c-driverConfig.cmake
mongo-c-driver-config.cmake

Add the installation prefix of "mongo-c-driver" to CMAKE_PREFIX_PATH or set
"mongo-c-driver_DIR" to a directory containing one of the above files.  If
"mongo-c-driver" provides a separate development package or SDK, be sure it
has been installed.
Call Stack (most recent call first):
CMakeLists.txt:40 (find_package)
-- Configuring incomplete, errors occurred!

Additional context

The same fails to Linux.

cmake_toolchain_file = vcpkg/scripts/buildsystems/vcpkg.cmake
build dir = ./~build-linux
-- clang-format found: /usr/bin/clang-format
-- cmake-format not found!
-- clang-tidy found: /usr/bin/clang-tidy
-- include-what-you-use not found!
-- cppcheck found: /usr/bin/cppcheck
-- dot found: /usr/bin/dot
-- Environment Info
-- System Name  - CMAKE_SYSTEM_NAME     = Linux
-- Build type   - CMAKE_BUILD_TYPE      = RELEASE
-- Compiler ID  - CMAKE_CXX_COMPILER_ID = Clang
-- Install path - CMAKE_INSTALL_PREFIX  = /usr/local
-- C++ Standard - CMAKE_CXX_STANDARD  = 17
-- Target = 64 bits build
CMake Error at vcpkg/scripts/buildsystems/vcpkg.cmake:329 (_find_package):
Could not find a package configuration file provided by "mongo-c-driver"
with any of the following names:

mongo-c-driverConfig.cmake
mongo-c-driver-config.cmake

Add the installation prefix of "mongo-c-driver" to CMAKE_PREFIX_PATH or set
"mongo-c-driver_DIR" to a directory containing one of the above files.  If
"mongo-c-driver" provides a separate development package or SDK, be sure it
has been installed.
Call Stack (most recent call first):
CMakeLists.txt:40 (find_package)
-- Configuring incomplete, errors occurred!
See also "~/code/cpp/~build-linux/CMakeFiles/CMakeOutput.log".
See also "~/code/cpp/~build-linux/CMakeFiles/CMakeError.log".
ninja: error: loading 'build.ninja': No such file or directory

Thanks for posting this issue. This issue has been fixed. You can update VCPKG and rebuild mongo-c-driver.

It's not a clean fix. Warnings generated:

CMake Warning at F:/vcpkg/installed/x64-windows/share/libmongoc-1.0/libmongoc-1.0-config.cmake:15 (message):
This CMake target is deprecated.  Use 'mongo::mongoc_shared' instead.
Consult the example projects for further details.
Call Stack (most recent call first):
F:/vcpkg/scripts/buildsystems/vcpkg.cmake:329 (_find_package)
CMakeLists.txt:42 (find_package)

CMake Warning at F:/vcpkg/installed/x64-windows/share/bson-1.0/bson-1.0-config.cmake:15 (message):
This CMake target is deprecated.  Use 'mongo::bson_shared' instead.
Consult the example projects for further details.
Call Stack (most recent call first):
F:/vcpkg/scripts/buildsystems/vcpkg.cmake:329 (_find_package)
F:/vcpkg/installed/x64-windows/share/libmongoc-1.0/libmongoc-1.0-config.cmake:22 (find_package)
F:/vcpkg/scripts/buildsystems/vcpkg.cmake:329 (_find_package)
CMakeLists.txt:42 (find_package)


yarn building contractkit SBAT to actually rebuild

Expected Behavior
Running yarn build actually rebuilds
Current Behavior
If yarn build is ran inside the packages/contractkit directory when it's previously been built, a newer build doesn't happen. I had to manually delete lib and tsconfig.tsbuildinfo to forcibly rebuild (I think just running tsc also worked)

Closing this because I haven't had this issue anymore


Search across all networks

Task is https://app.clickup.com/t/862ju7v0a.
~This depends on #404.~

Rebased this again, all dependencies has been merged, now this is ready for review.
Please note that there are two known issues which this PR doesn't handle:

Theme reactivity issues when switching between networks -- solved in #418 (which depends on this one)
Disabling emerald on testnet -- solved in #411 (which depends on #418 and this one)


SPARK-5841 [CORE] [HOTFIX 2] Memory leak in DiskBlockManager

Continue to see IllegalStateException in YARN cluster mode. Adding a simple workaround for now.

Can one of the admins verify this patch?

@srowen @JoshRosen @mattwhelan

From a recent run:
15/02/18 22:10:49 WARN util.ShutdownHookManager: ShutdownHook '$anon$3' failed, java.lang.IllegalStateException: Shutdown in progress
java.lang.IllegalStateException: Shutdown in progress
at java.lang.ApplicationShutdownHooks.remove(ApplicationShutdownHooks.java:82)
at java.lang.Runtime.removeShutdownHook(Runtime.java:239)
at org.apache.spark.storage.DiskBlockManager.stop(DiskBlockManager.scala:151)
at org.apache.spark.storage.BlockManager.stop(BlockManager.scala:1208)
at org.apache.spark.SparkEnv.stop(SparkEnv.scala:90)
at org.apache.spark.SparkContext.stop(SparkContext.scala:1376)
at org.apache.spark.deploy.yarn.ApplicationMaster$$anon$3.run(ApplicationMaster.scala:107)
at org.apache.hadoop.util.ShutdownHookManager$1.run(ShutdownHookManager.java:54)

No, this was already fixed in https://github.com/apache/spark/commit/49c19fdbad57f0609bbcc9278f9eaa8115a73604 I don't think you have that commit yet here. The problem is not do with it being null; I don't think it can be and we shouldn't just let the exception occur.

I have that commit. The problem continues to manifest itself. This is a workaround, not a fix at the source. I don't think the fix is trivial.

Ah right. I was glancing at the number of commits and thought it hadn't been rebased. The problem isn't this shutdown hook but another one in yarn.ApplicationMaster. Dang. Well I don't think the problem is a null shutdown hook, and I don't think it is an error per se. Maybe it's not even worth logging because it's OK? that is, if we find close() is called during shutdown and so we can't remove a hook, just keep going?

Agreed. That's why a try-catch block seems enough for this one. Ok with removing logging.

Hey @nishkamravi2 @srowen here's another thought, what if we do
if (!Utils.isShutdown) {
  Runtime.getRuntime.removeShutdownHook(hook)
}

instead?

@andrewor14 yeah I like that, although, it works by adding and removing a dummy hook and checking for an exception :) Maybe we can make a Utils method for a safeRemoveShutdownHook that just catches the exception? there is one other place in ExecutorRunner where this can be used too. I know, that starts to be more than a HOTFIX. I'd be OK either construing this as part of the original JIRA or just making a new one for this slightly different issue.

Yeah, having a Utils.safeRemoveShutdownHook sounds good

Utils.safeRemoveShutdownHook sounds ok, albeit a bit pretentious :) since a try-catch block alone doesn't quite justify creation of a utility function (unless we have a dozen or more occurrences). I would be perfectly fine with just adding a try-catch block around the other occurrence. The null-pointer check seems unnecessary (and incurs cost), so will delete it.
Also, it seems like inShutDown function is expensive. And should be used only when necessary. I would vote for deleting all its occurrences except for the one in SparkUncaughtExceptionHandler. Unless someone feels strongly otherwise, I can do that cleanup as part of this fix.

I am also OK with just using the try-catch in both places it's needed, rather than make a utility function. I wouldn't remove Utils.inShutdown. I assume there was some reason to add it. It's expensive but only used in exception / shutdown paths. At least, I would not do this here.

I still stand by my original suggestion of simply wrapping the single problematic removeShutdownHook() call in a try block: https://github.com/apache/spark/pull/4627#issuecomment-74613715.  Best to keep things simple for now and avoid introducing new bugs while trying to fix this one.

@nishkamravi2 the latest changes look fine to me. I just have a minor question. We can do more refactoring outside of this hot fix and after the 1.3 release.

@srowen @andrewor14  I can potentially issue a different PR for the performance issue and back it out from here (it does seem somewhat unrelated). In general, I would vote for discouraging use of this function. Code patterns like these tend to spread-- one could argue checking this condition on several other exit paths in Spark? Also, do we know that if we delete the check we would see noisy stack traces or are we just being careful speculatively?

We've had releases in the past where a simple SparkPi program would exit with a huge harmless exception that confused many users. I would prefer to keep the changes in this hot fix minimal and change the pattern separately.
Also I just realized this never ran tests, so Jenkins this is ok to test.

ok to test

Test build #27808 has started for   PR 4690 at commit d453197.

This patch merges cleanly.

This change looks like the right targeted fix. Waiting on Jenkins.

Test build #27808 has finished for   PR 4690 at commit d453197.

This patch passes all tests.
This patch merges cleanly.
This patch adds no public classes.

Test PASSed.
Refer to this link for build results (access rights to CI server needed):
https://amplab.cs.berkeley.edu/jenkins//job/SparkPullRequestBuilder/27808/
Test PASSed.

Thanks I merged this into master 1.3


Did you visualise the data with t-SNE or something?  If yes are the scripts available?

Did you visualise the data with t-SNE or something?  If yes are the scripts available?

No, I didn't. Visual search uses similar approach as described in paper.


OOM occurs while downloading or uploading large text file

RequestBody and ResponseBody will be saved into database and later displayed on the Fragment if they are plain text. However, when uploading or downloading large text files,  if Content-Type is text/* and serve responds with non-gzipped content, all the file content will be loaded into memory and saved into databse. In this situation, OOM occurs.
I don't think it is elegant to write all the plain text RequestBody or ResponseBody into database  and memory ignoring content length. I add a threshold in ChuckInterceptor. When the content length is too large, we can write a String into database instead of all the content.
So, should I open a pull request?

This is definitely an issue, its not just with text files, when the http body is dealing with a large data files like uploading or downloading a video the OOM will happen.


What is openapi.groovy?

Getting this log on stderr: "Note: /project-path/src/main/compile/openapi.groovy", I didn't see any mention of it in the docs, just curious to know what it is.

This is a special script file introduced in 5.3.0 that allows us to customize annotation processing phase:

https://github.com/javalin/javalin-openapi/releases/tag/5.3.0

Annotation processing API does not really provide helpful tools to access sources during compilation phase, so we're composing this location on top of the processed source files:
https://github.com/javalin/javalin-openapi/blob/e26c056f34d873dec42765d65173745ef5bc0bbe/openapi-annotation-processor/src/main/kotlin/io/javalin/openapi/processor/configuration/OpenApiPrecompileScriptingEngine.kt#L23-L33
Because this implementation is based on some assumptions related to how usually Java project looks like, I decided to log this path explicitly, so users will know where to put such script. Speaking of the available API, here's an example of various supported options:

https://github.com/javalin/javalin-openapi/blob/main/openapi-annotation-processor/src/test/compile/openapi.groovy

It's kinda complex, but that's the only way to resolve some issues related to integrating 3rd party libraries with our generator.