PyTorch/Tensorflow not recognizing GPU on WSL - installed cudnn and cuda

Version
Microsoft Windows [Version 10.0.22000.527]
WSL Version

[X] WSL 2
[ ] WSL 1

Kernel Version
5.10.16
Distro Version
Ubuntu 20.04
Other Software
PyTorch '1.10.2+cu113'
Repro Steps

Install Cuda requirements as per official wsl guide
Run BlackScholes sample  -> Test Passes
Install PyTorch on conda virtual environment using conda install pytorch torchvision torchaudio cudatoolkit=11.3 -c pytorch
Activate conda environment
Run python
Import torch
Run `torch.cuda.is_available()
Run  tf.test.is_gpu_available()

Expected Behavior
Expected behaviour is for torch.cuda.is_available()  and tf.test.is_gpu_available()  to return True
Actual Behavior
torch.cuda.is_available()  and tf.test.is_gpu_available() return False instead
Diagnostic Logs
Nvidia SMI
❯ nvidia-smi
Sun Feb 27 23:12:27 2022
+-----------------------------------------------------------------------------+
| NVIDIA-SMI 510.52       Driver Version: 511.79       CUDA Version: 11.6     |
|-------------------------------+----------------------+----------------------+
| GPU  Name        Persistence-M| Bus-Id        Disp.A | Volatile Uncorr. ECC |
| Fan  Temp  Perf  Pwr:Usage/Cap|         Memory-Usage | GPU-Util  Compute M. |
|                               |                      |               MIG M. |
|===============================+======================+======================|
|   0  NVIDIA GeForce ...  On   | 00000000:01:00.0  On |                  N/A |
| N/A   50C    P8    13W /  N/A |   2140MiB /  8192MiB |      6%      Default |
|                               |                      |                  N/A |
+-------------------------------+----------------------+----------------------+

+-----------------------------------------------------------------------------+
| Processes:                                                                  |
|  GPU   GI   CI        PID   Type   Process name                  GPU Memory |
|        ID   ID                                                   Usage      |
|=============================================================================|
|  No running processes found                                                 |
+-----------------------------------------------------------------------------+

Nvidia Cuda Toolkit Version
❯ /usr/local/cuda-11/bin/nvcc --version
nvcc: NVIDIA (R) Cuda compiler driver
Copyright (c) 2005-2021 NVIDIA Corporation
Built on Mon_Oct_11_21:27:02_PDT_2021
Cuda compilation tools, release 11.4, V11.4.152
Build cuda_11.4.r11.4/compiler.30521435_0

Running Blackscholes Test
❯ ./BlackScholes
[./BlackScholes] - Starting...
GPU Device 0: "Ampere" with compute capability 8.6

Initializing data...
...allocating CPU memory for options.
...allocating GPU memory for options.
...generating input data in CPU mem.
...copying input data to GPU mem.
Data init done.

Executing Black-Scholes GPU kernel (512 iterations)...
Options count             : 8000000
BlackScholesGPU() time    : 0.259223 msec
Effective memory bandwidth: 308.614999 GB/s
Gigaoptions per second    : 30.861500

BlackScholes, Throughput = 30.8615 GOptions/s, Time = 0.00026 s, Size = 8000000 options, NumDevsUsed = 1, Workgroup = 128

Reading back GPU results...
Checking the results...
...running CPU calculations.

Comparing the results...
L1 norm: 1.741792E-07
Max absolute error: 1.192093E-05

Shutting down...
...releasing GPU memory.
...releasing CPU memory.
Shutdown done.

[BlackScholes] - Test Summary

NOTE: The CUDA Samples are not meant for performance measurements. Results may vary when GPU Boost is enabled.

Test passed

Running PyTorch torch.cuda.is_available
❯ python
Python 3.9.7 (default, Sep 16 2021, 13:09:58)
[GCC 7.5.0] :: Anaconda, Inc. on linux
Type "help", "copyright", "credits" or "license" for more information.
>>> import torch
>>> torch.__version__
'1.10.2+cu113'
>>> torch.cuda.is_available()
False

Running Tensorflow tf.test.is_gpu_available()
❯ python
Python 3.9.7 (default, Sep 16 2021, 13:09:58)
[GCC 7.5.0] :: Anaconda, Inc. on linux
Type "help", "copyright", "credits" or "license" for more information.
>>> import tensorflow as tf
>>> tf.__version__
'2.8.0'
>>> tf.test.is_gpu_available()
WARNING:tensorflow:From <stdin>:1: is_gpu_available (from tensorflow.python.framework.test_util) is deprecated and will be removed in a future version.
Instructions for updating:
Use `tf.config.list_physical_devices('GPU')` instead.
2022-02-28 00:13:23.308472: I tensorflow/core/platform/cpu_feature_guard.cc:151] This TensorFlow binary is optimized with oneAPI Deep Neural Network Library (oneDNN) to use the following CPU instructions in performance-critical operations:  AVX2 FMA
To enable them in other operations, rebuild TensorFlow with the appropriate compiler flags.
2022-02-28 00:13:23.492434: I tensorflow/stream_executor/cuda/cuda_gpu_executor.cc:922] could not open file to read NUMA node: /sys/bus/pci/devices/0000:01:00.0/numa_node
Your kernel may have been built without NUMA support.
2022-02-28 00:13:23.502191: W tensorflow/stream_executor/platform/default/dso_loader.cc:64] Could not load dynamic library 'libcudnn.so.8'; dlerror: libcudnn.so.8: cannot open shared object file: No such file or directory
2022-02-28 00:13:23.502241: W tensorflow/core/common_runtime/gpu/gpu_device.cc:1850] Cannot dlopen some GPU libraries. Please make sure the missing libraries mentioned above are installed properly if you would like to use GPU. Follow the guide at https://www.tensorflow.org/install/gpu for how to download and setup the required libraries for your platform.
Skipping registering GPU devices...
False

Running PyTorch collect_env.py
❯ python collect_env.py
Collecting environment information...
PyTorch version: 1.10.2+cu113
Is debug build: False
CUDA used to build PyTorch: 11.3
ROCM used to build PyTorch: N/A

OS: Ubuntu 20.04.4 LTS (x86_64)
GCC version: (Ubuntu 9.3.0-17ubuntu1~20.04) 9.3.0
Clang version: Could not collect
CMake version: Could not collect
Libc version: glibc-2.31

Python version: 3.9.7 (default, Sep 16 2021, 13:09:58)  [GCC 7.5.0] (64-bit runtime)
Python platform: Linux-<IP_ADDRESS>-microsoft-standard-WSL2-x86_64-with-glibc2.31
Is CUDA available: False
CUDA runtime version: 11.4.152
GPU models and configuration: GPU 0: NVIDIA GeForce RTX 3080 Laptop GPU
Nvidia driver version: 511.79
cuDNN version: Could not collect
HIP runtime version: N/A
MIOpen runtime version: N/A
Is XNNPACK available: True

Versions of relevant libraries:
[pip3] mypy-extensions==0.4.3
[pip3] numpy==1.22.2
[pip3] torch==1.10.2+cu113
[pip3] torchvision==0.11.3+rocm4.2
[conda] blas                      1.0                         mkl
[conda] cudatoolkit               11.3.1               h2bc3f7f_2
[conda] ffmpeg                    4.3                  hf484d3e_0    pytorch
[conda] mkl                       2021.4.0           h06a4308_640
[conda] mkl-service               2.4.0            py39h7f8727e_0
[conda] mkl_fft                   1.3.1            py39hd3c417c_0
[conda] mkl_random                1.2.2            py39h51133e4_0
[conda] numpy                     1.21.2           py39h20f2e39_0
[conda] numpy-base                1.21.2           py39h79a1101_0
[conda] pytorch                   1.10.2          py3.9_cuda11.3_cudnn8.2.0_0    pytorch
[conda] pytorch-mutex             1.0                        cuda    pytorch
[conda] torchaudio                0.10.2               py39_cu113    pytorch
[conda] torchvision               0.11.3               py39_cu113    pytorch

Running Natively on Windows 11
(cuda) PS C:\Users\Abdul Hamid Merii> python
Python 3.9.7 (default, Sep 16 2021, 16:59:28) [MSC v.1916 64 bit (AMD64)] :: Anaconda, Inc. on win32
Type "help", "copyright", "credits" or "license" for more information.
>>> import torch
>>> torch.__version__
'1.10.2+cu113'
>>> torch.cuda.is_available()
True

@AH-Merii you might need to install libcudnn8 since it's not found. apt install libcudnn8 on Ubuntu will fix that!
I was facing the same issue and after installing libcudnn8 it worked. Notice the last line:
tux@ubuntu:~$ python3
Python 3.8.10 (default, Nov 26 2021, 20:14:08)
[GCC 9.3.0] on linux
Type "help", "copyright", "credits" or "license" for more information.
>>> import torch
>>> import tensorflow as tf
>>> tf.config.list_physical_devices('GPU')
2022-02-27 18:09:22.945826: I tensorflow/stream_executor/cuda/cuda_gpu_executor.cc:922] could not open file to read NUMA node: /sys/bus/pci/devices/0000:01:00.0/numa_node
Your kernel may have been built without NUMA support.
2022-02-27 18:09:22.949805: I tensorflow/stream_executor/cuda/cuda_gpu_executor.cc:922] could not open file to read NUMA node: /sys/bus/pci/devices/0000:01:00.0/numa_node
Your kernel may have been built without NUMA support.
2022-02-27 18:09:22.950096: I tensorflow/stream_executor/cuda/cuda_gpu_executor.cc:922] could not open file to read NUMA node: /sys/bus/pci/devices/0000:01:00.0/numa_node
Your kernel may have been built without NUMA support.
[PhysicalDevice(name='/physical_device:GPU:0', device_type='GPU')]

There's a NUMA warning because on WSL kernel CONFIG_NUMA is not set. I'll build a new WSL kernel with NUMA enabled to see if those warnings will go away.

@elsaco , Just installed libcudnn8, I am still unable to detect the GPU.

@AH-Merii Try installing the dev version of cudnn too. sudo apt install libcudnn8-dev

@AH-Merii  did you solve this problem? i facing the same one as yours

@AH-Merii  did you solve this problem? i facing the same one as yours.


(maint) Ship to puppet7 streams

These project.clj variables control where ezbake builds get
published to when shipping to nightlies or release repos.
It's unclear what exactly build_defaults.yaml controls, but to be
safe, this commit also updates those values.

I don't really understand those travis failures... are they unrelated to this?

Those look like network errors. Travis has been having more of those recently it seems like. I re-kicked the job


Add gl_BaseInstance to the name mapper.

GLSL: https://www.khronos.org/opengl/wiki/Built-in_Variable_(GLSL)
SPIR-V: BaseInstance Builtin decoration

The smoketest failure is not caused by this PR, and is present on all PRs at the moment.


Mention that contain emojis cause the text view to get stuck using the mention attributes for regular text

Not exactly sure what the problem is yet.  I guess SZMentionHelper is the first place I should start looking?

Yea that's probably the best place to start, likely forceDefaultAttributes function.

@raphaelcruzeiro are you able to replicate this issue using the example app?

I'm unable to replicate this issue, can you provide more info on the setup.

Interesting. I am unable to replicate this with the example app. Which means that I am probably setting this up wrong.
This is how I am setting up the mentions on my init method:
mentionsManager.delegate = self

        mentionsListener = SZMentionsListener(mentionTextView: textView, mentionsManager: self, mentionTextAttributes: mentionAttributes(), defaultTextAttributes: defaultAttributes())
        mentionsDataSource = MentionDataSource(listener: mentionsListener)
        mentionsDataSource.registerCells(tableView: mentionsTableView)
        mentionsTableView.dataSource = mentionsDataSource
        mentionsTableView.delegate = mentionsDataSource
        mentionsTableView.separatorStyle = .none

        textView.attributedText = text != nil ? NSAttributedString(string: text!) : nil

        if mentions.count > 0 {
            mentionsListener.insertExistingMentions(mentions)
        }

I don't see anything obviously wrong with this. Any ideas?

The only thing I'm noticing in that example is that you're setting the attributedText on the UITextView.  If you look at the SZExampleAccessoryView.swift file there's an example of using this library with inserting mentions.  On line 26 you'll see I'm setting up the TextView's text rather than attributed text.  The library should handle changing colors etc.  Maybe that's the problem.

I've also merged in a change for an issue with editing mentions into master (not yet released) if you want to try that out to see if it helps as well.

Still having the same issues. I figured it might have something to do with an extension that I use for setting a placeholder on the text view but after disabling that the problem persisted.
I debugged both apps (mine and the example) and it seems that all the methods are being called correctly, though this is what happens on my app:
Some text here Someuser 🐍🐞 this text shouldn't be bold
Notice that the first letter after the mention uses the default attributes and the ones after that use the mentions attributes.

Very strange, can you create a public repo with an example that I can pull down and try to work out the bug on?

I managed to replicate the issue with this sample project:
https://github.com/raphaelcruzeiro/MentionsOnTextView

I've only gotten to dig a little bit so far but, the one very interesting thing I've noticed is that it's actually only changing the font back to the mention attribute and it's not changing the color back to mention attribute.  Something very strange is going on because of that emoji.  Thought this info might give you an idea if I can't find it.

So this is interesting, the Emoji used throws the logic for attributed strings for a loop.  http://stackoverflow.com/questions/22826943/nsattributedstring-reporting-incorrect-sizes-for-uitextview-sizethatfits-and-bou NSOriginal font gets added and it seems as though the string is using original font to continue on as typing continues.  I'm not sure I've found a fix just yet but that's the latest.

@raphaelcruzeiro I believe I've solved it.  Please try https://github.com/szweier/SZMentionsSwift/pull/40 and let me know if this works.  It seems to have worked in your example (thank you for that)

@szweier Works like a charm!

Glad to hear.


"Faults, Provisions and Virtual Parameters" tabs do not work.

I have GenieACS installed and it works well: I have several CPEs registered in the ACS.
My problem is that the Faults, Provisions and Virtual Parameters tabs do not work, the error message shown in this screenshot appears below.
Can anyone help me figure out why this happens?
Greetings.

What is in the logs for the GUI?
On Mon, Jan 23, 2017 at 3:13 AM, djxoxe<EMAIL_ADDRESS>wrote:

I have GenieACS installed and it works well: I have several CPEs
registered in the ACS.
My problem is that the Faults, Provisions and Virtual Parameters tabs do
not work, the error message shown in this screenshot appears below.
Can anyone help me figure out why this happens?
Greetings.
[image: error tabs genieacs]
https://cloud.githubusercontent.com/assets/25243945/22203487/a0cfa33c-e16d-11e6-98f1-596e1605105f.jpg
—
You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub
https://github.com/zaidka/genieacs-gui/issues/58, or mute the thread
https://github.com/notifications/unsubscribe-auth/AAyrgxeZA3VckczWpn7aa10AZIZ6Pgheks5rVJlMgaJpZM4Lq-Pt
.

In what file can i see the logs for the GUI, Akcoder ?

That entirely depends on how you are the GUI running. If you are using
Passenger, then you would check the apache logs. If you are using the
built-in ruby web server (which you should not be doing), then you would
run it in a console window.
On Mon, Jan 23, 2017 at 1:37 PM, djxoxe<EMAIL_ADDRESS>wrote:

In what file can i see the logs for the GUI, Akcoder ?
—
You are receiving this because you commented.
Reply to this email directly, view it on GitHub
https://github.com/zaidka/genieacs-gui/issues/58#issuecomment-274640439,
or mute the thread
https://github.com/notifications/unsubscribe-auth/AAyrgwV0LpjC3L8vUczVo6q7YJaKljyeks5rVSuvgaJpZM4Lq-Pt
.

My GUI running in a docker container.

Sounds to me like you need to figure out how to get the logs then.
On Mon, Jan 23, 2017 at 1:42 PM, djxoxe<EMAIL_ADDRESS>wrote:

My GUI running in a docker container.
—
You are receiving this because you commented.
Reply to this email directly, view it on GitHub
https://github.com/zaidka/genieacs-gui/issues/58#issuecomment-274641595,
or mute the thread
https://github.com/notifications/unsubscribe-auth/AAyrg86ZbypOi71g3e0QWf2b0HUpVwhjks5rVSzagaJpZM4Lq-Pt
.

I see the logs in /var/log but not show anything. ¿Where is this logs files?

Again, thats on you to figure out. You might want to consult who ever setup
the docker container. You need to figure out how the GUI is running. Once
you have that information, you should be able to figure out where the log
file is (if anything is being logged).
-dan
On Mon, Jan 23, 2017 at 2:13 PM, djxoxe<EMAIL_ADDRESS>wrote:

I see the logs in /var/log but not show anything. ¿Where is this logs
files?
—
You are receiving this because you commented.
Reply to this email directly, view it on GitHub
https://github.com/zaidka/genieacs-gui/issues/58#issuecomment-274648433,
or mute the thread
https://github.com/notifications/unsubscribe-auth/AAyrg4AkDbFRSmSrsy6CtC9k6yUSRJfhks5rVTQIgaJpZM4Lq-Pt
.

Thank you very much for your answers. They are of great help.

Better to talk about this in the mailing list http://lists.genieacs.com/mailman/listinfo , @djxoxe
Thank you!

I'm having the same issue as djxoxe in a fresh installation but I could find the logs ;)
App 23671 stderr: Started GET "/faults" for <IP_ADDRESS> at 2017-02-08 12:46:01 +0100
App 23671 stderr: Cannot render console from <IP_ADDRESS>! Allowed networks: <IP_ADDRESS>, ::1, <IP_ADDRESS>/<IP_ADDRESS>
App 23671 stderr: Processing by FaultsController#index as HTML
App 23671 stderr: Completed 500 Internal Server Error in 24ms (ActiveRecord: 0.0ms)
App 23671 stderr:
App 23671 stderr:
App 23671 stderr:
App 23671 stderr: JSON::ParserError (822: unexpected token at 'Not Found'):
App 23671 stderr:
App 23671 stderr: app/controllers/faults_controller.rb:15:in find_faults' App 23671 stderr: app/controllers/faults_controller.rb:29:in block in index'
App 23671 stderr: app/controllers/application_controller.rb:40:in can?' App 23671 stderr: app/controllers/faults_controller.rb:21:in index'
App 23671 stderr:   Rendering /usr/local/lib/ruby/gems/2.3.0/gems/actionpack-5.0.0/lib/action_dispatch/middleware/templates/rescues/diagnostics.html.erb within rescues/layout
App 23671 stderr:   Rendering /usr/local/lib/ruby/gems/2.3.0/gems/actionpack-5.0.0/lib/action_dispatch/middleware/templates/rescues/_source.html.erb
App 23671 stderr:   Rendered /usr/local/lib/ruby/gems/2.3.0/gems/actionpack-5.0.0/lib/action_dispatch/middleware/templates/rescues/_source.html.erb (5.8ms)
App 23671 stderr:   Rendering /usr/local/lib/ruby/gems/2.3.0/gems/actionpack-5.0.0/lib/action_dispatch/middleware/templates/rescues/_trace.html.erb
App 23671 stderr:   Rendered /usr/local/lib/ruby/gems/2.3.0/gems/actionpack-5.0.0/lib/action_dispatch/middleware/templates/rescues/_trace.html.erb (2.5ms)
App 23671 stderr:   Rendering /usr/local/lib/ruby/gems/2.3.0/gems/actionpack-5.0.0/lib/action_dispatch/middleware/templates/rescues/_request_and_response.html.erb
App 23671 stderr:   Rendered /usr/local/lib/ruby/gems/2.3.0/gems/actionpack-5.0.0/lib/action_dispatch/middleware/templates/rescues/_request_and_response.html.erb (1.3ms)
App 23671 stderr:   Rendered /usr/local/lib/ruby/gems/2.3.0/gems/actionpack-5.0.0/lib/action_dispatch/middleware/templates/rescues/diagnostics.html.erb within rescues/layout (31.4ms)
└─┬<EMAIL_ADDRESS>├─┬<EMAIL_ADDRESS>│ ├──<EMAIL_ADDRESS>│ └──<EMAIL_ADDRESS>├─┬<EMAIL_ADDRESS>│ ├──<EMAIL_ADDRESS>│ └──<EMAIL_ADDRESS>├─┬<EMAIL_ADDRESS>│ ├─┬<EMAIL_ADDRESS>│ │ └──<EMAIL_ADDRESS>│ ├─┬<EMAIL_ADDRESS>│ │ └──<EMAIL_ADDRESS>│ └─┬<EMAIL_ADDRESS>│   ├──<EMAIL_ADDRESS>│   ├──<EMAIL_ADDRESS>│   ├──<EMAIL_ADDRESS>│   ├──<EMAIL_ADDRESS>│   ├──<EMAIL_ADDRESS>│   ├──<EMAIL_ADDRESS>│   └──<EMAIL_ADDRESS>└──<EMAIL_ADDRESS>ii  mongodb                              1:2.4.10-5                   amd64        object/document-oriented database (metapackage)
ii  mongodb-clients                      1:2.4.10-5                   amd64        object/document-oriented database (client apps)
ii  mongodb-dev                          1:2.4.10-5                   amd64        object/document-oriented database (development)
ii  mongodb-server                       1:2.4.10-5                   amd64        object/document-oriented database (server package)
ii  redis-server                         2:2.8.17-1+deb8u5            amd64        Persistent key-value database with network interface
ii  redis-tools                          2:2.8.17-1+deb8u5            amd64        Persistent key-value database with network interface (client)
rails -v
Rails 5.0.0
And I'm in the commit: 68cd95e7760a30a8791a8b3c1f7f4a7dfe5e6bee for the GenieACS GUI.
@djxoxe Since you're running a docker, maybe you can try with docker logs. Other option is that you ask the one that built the Dockerfile (assuming that it is someone other than you) where you can find them.

I tried with an older commit that I know that was working in a different environment: a424c0e2b58d9ba5910a4e89c65849f39771cb78 and in the same machine it works. Had to run bundle update to adapt the gems and of course it uses an older rails Rails 4.1.16.
Let me know if I can provide more info.

@davidcodesido Install the latest version 1.1 and solve the tabs.


How to build for nw.js 0.54.0?

Hello, how to build for nw.js 0.54.0?

While it should be possible to also use prebuild for building native module for nw.js, this does not look so smooth like building for node or electron.
Took several attempts to build for the latest release 0.77.0, but it's pretty tricky. First hirdle is, that nw-gyp, which will be used for the actual build, still relies on Python 2. After solving this issue I am now stuck getting it to work with my msvc setup - tried 2015, 2017, 2019 and 2022 and it wouldn't take any of them :-/.
Anyone got more experience in building for nw.js? Otherwise I would tend to say: use electron :x

It's work for me
cd node_modules/better-sqlite3
npx nw-gyp rebuild --release --build-from-source --runtime=nwjs --target=0.80.0

You can change 0.80.0 to the version you want

hey @neoxpert
I personally recommend you to use electron. The construction of nwjs needs to handle prod dependencies by itself. nw-builder will not automatically copy required dependencies. There doesn't seem to be this problem in electron. I'm not sure, I didn't go into a complete comparison


Text Change Suggestions in Wiki

Could you change the word Downloads page to Release page since download page no longer exists? This is bit confusing for the end user.
Pages needs to be changed
https://github.com/tom-englert/ResXResourceManager/wiki/Installation
https://github.com/tom-englert/ResXResourceManager/wiki/Scripting
Also you could add hyperlink to the release page for better usability. I don't know how to create a pull request for the wiki; otherwise I could have done that.

OK, fixed


Issues refreshing jwt

Hello. I'm new with elixir, so sorry if this is a noob question.
I managed to register users and get a jwt. However I have some problems trying to refresh it.
Here's my code:
  def refresh(conn, _params) do
    user = MyApp.Guardian.Plug.current_resource(conn)
    jwt = MyApp.Guardian.Plug.current_token(conn)
    Logger.info "Previous jwt:"
    Logger.info jwt

    case MyApp.Guardian.refresh(jwt) do
      {:ok, new_jwt, _new_claims} ->
        Logger.info "New jwt"
        Logger.info test_jwt
        # ... rest of the code

And here's the output :
[info] Previous jwt:
[info] eyJhbGciOiJIUzUxMiIsInR5cCI6IkpXVCJ9.eyJhdWQiOiJjcnlwdG9oZXhhIiwiZXhwIjoxNTE3MjM3MTA3LCJpYXQiOjE1MTQ4MTc5MDcsImlzcyI6ImNyeXB0b2hleGEiLCJqdGkiOiI4MmMzMjM5Yy1hODA5LTRlNDctYTRjYi00YTA0YmQ2MWRiYWMiLCJuYmYiOjE1MTQ4MTc5MDYsInN1YiI6IjEyIiwidHlwIjoiYWNjZXNzIn0.YQz0mjlOiOi1xt3bJwV5T9Uk4K7vaAjMHMvOP_GF1k6ZOtP4n5HbLterelgj202gF2N2wT9vNMMuyME0ImUOow
[info] New jwt
[info] Sent 500 in 4ms
[error] #PID<0.1414.0> running MyApp.Endpoint terminated
Server: localhost:4000 (http)
Request: POST /api/sessions/refresh
** (exit) an exception was raised:
    ** (Protocol.UndefinedError) protocol String.Chars not implemented for {"eyJhbGciOiJIUzUxMiIsInR5cCI6IkpXVCJ9.eyJhdWQiOiJjcnlwdG9oZXhhIiwiZXhwIjoxNTE3MjM3MTA3LCJpYXQiOjE1MTQ4MTc5MDcsImlzcyI6ImNyeXB0b2hleGEiLCJqdGkiOiI4MmMzMjM5Yy1hODA5LTRlNDctYTRjYi00YTA0YmQ2MWRiYWMiLCJuYmYiOjE1MTQ4MTc5MDYsInN1YiI6IjEyIiwidHlwIjoiYWNjZXNzIn0.YQz0mjlOiOi1xt3bJwV5T9Uk4K7vaAjMHMvOP_GF1k6ZOtP4n5HbLterelgj202gF2N2wT9vNMMuyME0ImUOow", %{"aud" => "my_app", "exp" =><PHONE_NUMBER>, "iat" =><PHONE_NUMBER>, "iss" => "my_app", "jti" => "82c3239c-a809-4e47-a4cb-4a04bd61dbac", "nbf" =><PHONE_NUMBER>, "sub" => "12", "typ" => "access"}}. This protocol is implemented for: Atom, BitString, Date, DateTime, Decimal, Ecto.Date, Ecto.DateTime, Ecto.Time, Float, Integer, List, NaiveDateTime, Postgrex.Copy, Postgrex.Query, Postgrex.Stream, Time, URI, Version, Version.Requirement

So there are two things that I don't understand here:

The new_jwt is a tuple and not a string like the one created during registration
I could take the first value of the tuple, but it's the same token and I was expecting a different "refreshed" one.

Is there something I'm missing?
Thanks for your help!

Hi. Not sure if the code you pasted is the code you're running. You're logging test_jwt but it should be new_jwt. Is that accurate?

Yes, sorry for the confusion I updated the code.

Refresh has a slightly different signature than encode and sign. It returns
{:ok, {old_token, old_claims}, {new_token, new_claims}}
So your pattern match in your case would need to be
{:ok, _, {new_jwt, _}}

Thanks, I'm not very confident with signatures in elixirs and pattern matching.
However I still get the same token after it has been refreshed, is that expected?

Oh my bad, it's just the beginning of the token which is the same. It's different.
Thanks for your help!


Fix Emote Chat Sanitizer

About the PR

Fixes bug introduced in #28645.
This fixes a bug with the previous emote sanitizer as it erroneously sanitized short0hands used for radio communication (ex. ":u" and ":s").
This has been fixed by excluding the radio prefixes from all sanitization methods.
Technical details
I can't make the chat code any worse, right?
The chat sanitizer works correctly for all cases except the case for the actual radio keycodes, so I just selectively split the string on them so that the radio part is saved separately and re-added at the end of sanitization.
Media

No pictures/videos as it's just basic functionality.
Requirements

[x] I have read and am following the Pull Request and Changelog Guidelines.
[x] I have added media to this PR or it does not require an ingame showcase.

Breaking changes

None.
Changelog

no cl, me fixing my own bug :(

Code looks fine and the issue seems to be resolved from my in-game testing


SAST - Recognize Clang Tidy as a SAST tool

Is your feature request related to a problem? Please describe.
Dart and Flutter already use clang tidy to run several checks and perform static analysis and we would like to integrate their results with score cards.
Describe the solution you'd like
Dart and Flutter LUCI builders run clang tidy on every commit blocking the PR on failures. We would like to add clang-tidy to the list of supported SAST tools to pass the SAST checks.
Describe alternatives you've considered
We ran codeql manually but given the complexity of flutter/engine build system. A single iteration took +4 hours making it impossible to run on every commit.
Additional context
N/A

Thanks for the report.  I suppose the former, but want to confirm. Thank you

We currently run it as a command inside our Android and iOS builders, but we are planning to separate them to their own builders. One thing I noticed is that the SAST tool check is validating the exact github check name which may not work for dart and flutter if we have iOS clang-tidy, Android clang-tidy, etc.
Here are examples of our current clang-tidy executions:

https://logs.chromium.org/logs/flutter/buildbucket/cr-buildbucket/8823373777053312129/+/u/test:_lint_ios_debug_sim/stdout and * https://logs.chromium.org/logs/flutter/buildbucket/cr-buildbucket/8823373781533163537/+/u/test:_lint_android_debug/stdout

once we have https://github.com/ossf/scorecard/pull/1487 landed, I'll add support for this issue.

\cc @zanderso


fix: use fromFileUrl to resolve paths (#4)

This is to fix #4. I've also added a test for it, but you can ignore that if you want.

Thanks! Sorry for taking some time and not merging your pr, the latest release should work fine if your test is correct. Closing #4


Feature/support xfs

This change is

acceptance test run successfully
and all the other updates are from ubiquity vendor

Review status: 0 of 12 files reviewed at latest revision, all discussions resolved.

Comments from Reviewable


Build modularization

My project contain several services and I would like to make sure each of them has its own build, but mother build also exists that can combine child builds and add new ones.
Do you think the following setup has some hidden surprises and what is your stance on it?
parent\
    rest\
        .build.ps1
            $script:name = if ($BuildFile -ne $MyInvocation.MyCommand.Source) { 'rest\' }

            #Synopsis: Build the REST service
            task ${name}build {
                $Task.Name
            }
    web\
        .build.ps1
             $script:name = if ($BuildFile -ne $MyInvocation.MyCommand.Source) { 'web\' }

             #Synopsis: Build the Web service
             task ${name}build {
                 $Task.Name
             }
.build.ps1
    . .\rest\.build.ps1
    . .\web\.build.ps1

    #Synopsis: Build all services
    task build {
        $Task.Name
    }, rest\build, web\build

This makes it possible to do:
parent\> ib ?

Name       Jobs                        Synopsis
----       ----                        --------
rest\build {}                          Build the REST service
web\build  {}                          Build the web service
build      {{}, rest\build, web\build} Build all services

parent\> ib build

Build build parent\.build.ps1
Task /build
    build
Task /build/rest\build
    rest\build
Done /build/rest\build 00:00:00.0009624
Task /build/web\build
    web\build
Done /build/web\build 00:00:00.0010035
Done /build 00:00:00.0039713
Build succeeded. 3 tasks, 0 errors, 0 warnings 00:00:00.0400680

# -------------------------------------------------------------

cd rest;
parent\rest>? ib ?

Name  Jobs Synopsis
----  ---- --------
build {}   Build the REST service

parent\rest> ib build
Build build parent\rest\.build.ps1
Task /build
    build
Done /build 00:00:00.0010032

$BuildRoot is definitely problem here tho, but its solvable by using $PSScriptRoot

Complex modular build systems with several nested levels is a good idea and IB
was designed for this from the very beginning. Here is the system that works
perfectly for many years: FarNet family (C++, C#, PowerShell)
Its build tree consists of 20+ builds scripts with 4+ nested levels.
Thus, what you want is doable. Please learn the details in the above example.
Yet, I do not recommend to dot-source whole build scripts. Not good. It's like
in MSBuild world trying to import a whole .csproj project into another. Project
files are not designed for this.
Instead, MSBuild imports shared targets, not whole projects. And Invoke-Build
dot-sources shared tasks, not whole build scripts. In the above system such a
file is FarNet.tasks.ps1. It is imported by 11 other builds scripts. But it
is not used itself as a build script. It is a task library.

Will look into it. Thanks.

In other words, parent build scripts invoke child build scripts as builds by
Invoke-Build, not dot-source them as PowerShell scripts. But they all may
dot-source some common tasks as PowerShell scripts.


upgraded ember to 0.9.4

What ever happened to ember-datetime? Is that now just part of ember, or did it go away? Should we be including it in ember-rails? /cc @wagenet

I think for now ember-rails should just contain the bare minimum, ember.js and ember-dev.js.

I tend to agree - I'd like to blow away the others as well. Keep it simple.

Maybe ember-rails could have a Rake-Task which - besides fetching the current "ember-latest" - could also provide tasks for fetching/building specific ember-addons.

I actually built that today (minus the addons part)
https://github.com/emberjs/ember-rails/tree/ember-generator

So my theory is, because ember-rails has template precompilation, and only the full ember.js has Em.View, it would be silly to include the ember-runtime. I think as you said, we should just include ember.js, and if we get requests for other libraries, then we can deal with them on a case by case basis.
Thoughts?

Ember 0.9.4 has a built in Ember.Handlebars.precompile method. It's essentially the same as what you have in your code so you might want to switch your code over to reduce duplication.

Updated the pull request and removed the duplicate code as suggested.


Add zh-tw Localization

Description:
This PR implements internationalization support for Chinese (Traditional) (zh-tw) and fixes minor typos featured in the source strings or variables. The request has been tested locally, properly localized, and proofread.
Screenshots preview:

Steps to test this PR:

Build the application
Run the app on a zh-tw locale device or emulator

Internal references:
Software Engineering Expectations
Technical Design Template

@Still34 Thank you very much for this contribution, we really appreciate the effort here, but currently, we are not introducing new languages into our app, so we can't accept your contribution.
See our Translations contribution guidelines:

ℹ Please note we are not looking for help with other languages at this time; only the languages listed above. We may open up requests in future for additional languages.

Ah sorry, didn't see the note. Hope the language will open up soon in the future then!


Does elasticsearch-jdbc can handle notify events ?

Hi,
I aim to use elasticsearch-jdbc to do real-time synchronisation of a PostgreSQL database with an ES cluster.
I wrote a little python script that listen to PostgreSQL for notify events. When an event is thrown, I launch ES-jdbc with a specific query in the JSON config, mainly with the ID of the ROW to be indexed/updated in ES.
However, this works only for the first item as the SQL query is not updated while ES-jdbc is running.
I was wondering if there was some ways to use ES-jdbc this way (using notify events effectively). Mainly, what I would like to achieve is :

Establish a persistent connection with DB to avoid connect/reconnect for each query.
Give a specific query to run on the DB to fetch Data for each notify event.

Thanks for your advices,

Forgot my question, I think this is absolutely not the way to use elasticsearch-jdbc.
I finally handle the sync with ES directly in the python script that listen for PGSQL events.
I will use elasticsearch-jdbc to perfom initial indexations.
Thanks,

I'd be glad if notification events would be part of JDBC. But it isn't.

FYI If I am not wrong, this alternate Postgres JDBC driver handles some advanced features and asynchronous notifications: https://github.com/impossibl/pgjdbc-ng/
But, of course, this is only for PGSQL.


Decrease brightness of all but current item

Is it possible to decrease the brightness of (and blur, although that seems a lot harder) all but the currently-selected image?

You can use css and slides classes for this reason

This repository is going into very-low-maintenance mode and declaring backlog bankruptcy


Shovels need a wielded sprite

Description

Right now they just turn invisible when you wield them.
Alternatively, rebalance the shovel to be used without wielding.

Shovels are an SS14 item.

The ability to wield them is specific to us, though.


[SUGGESTION] WAILA integration for oysters

Look, I really don't need anything fancy, I just want WAILA to tell me if my oysters have produced a pearl or not. This is partly because yellow pearls and sand look almost the same to me, and partly because I have a colorblind friend that doesn't see the differences at all. Ideally, I'd also like to see WAILA tell me if the oyster has sand in it, so if it is empty/working/done.

Sand is actually meant to be smaller to make it easier to tell. That's a bug in the currently released version.

Sand is smaller again in 1.3.0 so will close this


Embedded ID spec; with a fast, efficient analyzer

#212: This pull request introduces src/site/markdown/analyzers/embedded-id-spec.md, which lays out the concept of ASCII Embedded Identifiers primarily intended for C and C++ code to reliably place the embedded identifiers into object files. A key feature of the embedded identifier itself, is that it is prefixed by a random hexadecimal sequence that is both unlikely to randomly occur, and is a fixed sequence that can be efficiently scanned for in any file, i.e., including source files for any language.

#211: A very fast and efficient analyzer has been implemented that combines the Knuth-Morris-Pratt algorithm with a java.io.RandomAccessFile, using buffered reads and avoiding seek() calls. On my system, I didn't notice much, if any, overhead with the addition of scanning all files with this analyzer. Performance tests saw speeds approaching the memory bandwidth of my machine.

If accepted, a priority on my current funding would be to then go ahead and select some prominent open source projects that can be sensitive security-wise (e.g., those found at https://www.coreinfrastructure.org/programs/census-project), and submit embedded ID patches.

Anticipating a potential question here...
I chose java.io.RandomAccessFile with buffered reads over java.io.BufferedInputStream or other InputStream implementations, because each file would only be hit once or twice at most. It has been shown by others that RandomAccessFile used like this, is fast from the start: http://mechanical-sympathy.blogspot.com/2011/12/java-sequential-io-performance.html

Dale,
As I've stated previously - while it would be great to have something like this my belief from efforts like CPE and SWID that this type of standard would not be used. This adds overhead to releases as people would have to remember to go change the number which could easily lead to multiple releases with identical embedded IDs.
--Jeremy

CPE and SWID have suffered poor adoption for various reasons, which I’ve attempted to mitigate here. Both are IDs registered/assigned using a central authority. While there are free e-mail- and web- based ways to obtain CPEs, one has to know to do it, and there is not necessarily an incentive before a CVE is created. SWIDs are worse. As with most things ISO, financial investment is needed to be able to implement and benefit from the standard. That is a non-starter for many FOSS projects. Here, I’ve attempted to define a voluntary opt-in open standard that is easy to implement. I added a CPE variant, for those projects that already have an assigned CPE.
With regards to the difficulty of remembering to update the version. Projects can and would use build tools to automate this at the time of release. Most projects that have been through multiple release cycles utilize build tools to “single source” the version number.

I've discussed this with several people and we just don't think this is going to work. I understand the goal; but getting other projects to adopt this will be extremely tough. Additionally, even if we did get 1-2 projects on board it almost gives a false sense of security.


DOC :  Readme file with no project description

What's wrong with the existing documentation
No Documentation is present on the Readme file . For the GSSoC'24 open source contribution purpose , Readme file with proper
project description is required
Add ScreenShots

Record

[X] I agree to follow this project's Code of Conduct
[X] I'm a GSSOC'24 contributor
[X] I want to work on this issue

Hey @Mayank2808sharma , please assign this issue to me under GSSoC'24

Hey @aasthakourav20
Someone is already working on the readme


FontFamily in ThemeData for the whole app doesn't affect Tabs when labelStyle is added.

Steps to reproduce
1-change app font family using theme   ThemeData(       brightness: Brightness.dark,       fontFamily: "Any Font Famliy")
Expected results
All texts font family must be changed including Tabs,
Actual results
Tabs text Font Family  not changed
Code sample
Code sample
[Paste your code here]

Screenshots or Video

Screenshots / Video demonstration
[Upload media here]

Logs
No response
Flutter Doctor output
Doctor output
 Flutter (Channel stable, 3.7.12, on Microsoft Windows [Version 10.0.22621.1702], locale en-US)
    • Flutter version 3.7.12 on channel stable at C:\src\flutter
    • Upstream repository https://github.com/flutter/flutter.git
    • Framework revision 4d9e56e694 (6 weeks ago), 2023-04-17 21:47:46 -0400
    • Engine revision 1a65d409c7
    • Dart version 2.19.6
    • DevTools version 2.20.1

[√] Windows Version (Installed version of Windows is version 10 or higher)

[√] Android toolchain - develop for Android devices (Android SDK version 33.0.1)
    • Android SDK at C:\Users\UserName\AppData\Local\Android\sdk
    • Platform android-33, build-tools 33.0.1
    • Java binary at: C:\Program Files\Android\Android Studio\jre\bin\java
    • Java version OpenJDK Runtime Environment (build 11.0.13+0-b1751.21-8125866)
    • All Android licenses accepted.

[√] Chrome - develop for the web
    • Chrome at C:\Program Files\Google\Chrome\Application\chrome.exe

[X] Visual Studio - develop for Windows
    X Visual Studio not installed; this is necessary for Windows development.
      Download at https://visualstudio.microsoft.com/downloads/.
      Please install the "Desktop development with C++" workload, including all of its default components

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

[√] VS Code (version 1.78.2)
    • VS Code at C:\Users\Hussen\AppData\Local\Programs\Microsoft VS Code
    • Flutter extension version 3.64.0

[√] Connected device (4 available)
    • SM A525F (mobile) • RZ8RC1VEPDF • android-arm64  • Android 13 (API 33)
    • Windows (desktop) • windows     • windows-x64    • Microsoft Windows [Version 10.0.22621.1702]
    • Chrome (web)      • chrome      • web-javascript • Google Chrome 113.0.5672.127
    • Edge (web)        • edge        • web-javascript • Microsoft Edge 113.0.1774.57

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

Hi @hussenIbrahim
First add font in asset folder in project directory
then add it in your pubspec.yaml flle
after that just add fontFamily to themedata just like mentioned below
after adding font family as below default font should be set as your given fontfamily
return MaterialApp(
title: 'Flutter Demo',
theme: ThemeData(
primarySwatch: Colors.blue,
fontFamily: 'fontFamilyYouHaveAdded', // add fontFamily here
),
home: ChangeFontDemo(),
);

Hi @hussenIbrahim First add font in asset folder in project directory then add it in your pubspec.yaml flle after that just add fontFamily to themedata just like mentioned below after adding font family as below default font should be set as your given fontfamily
return MaterialApp( title: 'Flutter Demo', theme: ThemeData( primarySwatch: Colors.blue, fontFamily: 'fontFamilyYouHaveAdded', // add fontFamily here ), home: ChangeFontDemo(), );

I already did it,
but not works for Tabs

Hi @hussenIbrahim. Thanks for filling this issue. I am unable to reproduce this issue on the latest stable channel using the Code Sample below. Kindly upgrade your flutter version and test if this issue still persist or provide a  minimal complete reproducible code sample that produces this issue.
Code Sample

import 'package:flutter/material.dart';

void main() => runApp(const TabBarApp());

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

  @override
  Widget build(BuildContext context) {
    return MaterialApp(
      theme: ThemeData(
        brightness: Brightness.dark,
        useMaterial3: true,
        fontFamily: 'CircularStd',
      ),
      home: const TabBarExample(),
    );
  }
}

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

  @override
  Widget build(BuildContext context) {
    return DefaultTabController(
      initialIndex: 1,
      length: 3,
      child: Scaffold(
        appBar: AppBar(
          title: const Text('TabBar Sample'),
          bottom: const TabBar(
            tabs: <Widget>[
              Tab(
                icon: Icon(Icons.cloud_outlined),
                text: "Cloud",
              ),
              Tab(
                icon: Icon(Icons.beach_access_sharp),
                text: "Umbrella",
              ),
              Tab(
                icon: Icon(Icons.brightness_5_sharp),
                text: "Settings",
              ),
            ],
          ),
        ),
        body: const TabBarView(
          children: <Widget>[
            Center(
              child: Text("It's cloudy here"),
            ),
            Center(
              child: Text("It's rainy here"),
            ),
            Center(
              child: Text("It's sunny here"),
            ),
          ],
        ),
      ),
    );
  }
}

  flutter doctor -v
[✓] Flutter (Channel master, 3.11.0-2.0.pre.55, on macOS 13.3 22E252 darwin-arm64, locale en-NG)
    • Flutter version 3.11.0-2.0.pre.55 on channel master at /Users/dammya/fvm/versions/master
    • Upstream repository https://github.com/flutter/flutter.git
    • Framework revision 835b892d7f (3 weeks ago), 2023-05-07 01:30:22 +0530
    • Engine revision 23f730efbf
    • Dart version 3.1.0 (build 3.1.0-83.0.dev)
    • DevTools version 2.23.1

[✓] Android toolchain - develop for Android devices (Android SDK version 32.1.0-rc1)
    • Android SDK at /Users/dammya/Library/Android/sdk
    • Platform android-33, build-tools 32.1.0-rc1
    • ANDROID_HOME = /Users/dammya/Library/Android/sdk
    • Java binary at: /Applications/Android Studio.app/Contents/jre/Contents/Home/bin/java
    • Java version OpenJDK Runtime Environment (build 11.0.12+0-b1504.28-7817840)
    • All Android licenses accepted.

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

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

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

[✓] IntelliJ IDEA Community Edition (version 2022.3.2)
    • IntelliJ at /Applications/IntelliJ IDEA CE.app
    • Flutter plugin can be installed from:
      🔨 https://plugins.jetbrains.com/plugin/9212-flutter
    • Dart plugin can be installed from:
      🔨 https://plugins.jetbrains.com/plugin/6351-dart

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

[✓] VS Code (version 1.78.0)
    • VS Code at /Users/dammya/.Trash/Visual Studio Code 20.07.05.app/Contents
    • Flutter extension version 3.50.0

[✓] Connected device (4 available)
    • sdk gphone arm64 (mobile) • emulator-5554                        • android-arm64  • Android 11 (API 30) (emulator)
    • iPhone 14 Pro (mobile)    • DCF2031A-7EA9-42FF-8CD4-D4584F3E7A6D • ios            • com.apple.CoreSimulator.SimRuntime.iOS-16-4 (simulator)
    • macOS (desktop)           • macos                                • darwin-arm64   • macOS 13.3 22E252 darwin-arm64
    • Chrome (web)              • chrome                               • web-javascript • Google Chrome 113.0.5672.126

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

• No issues found!

[✓] Flutter (Channel stable, 3.10.2, on macOS 13.3 22E252 darwin-arm64, locale
    en-NG)
    • Flutter version 3.10.2 on channel stable at /Users/dammya/sdks/flutter
    • Upstream repository https://github.com/flutter/flutter.git
    • Framework revision 9cd3d0d9ff (5 days ago), 2023-05-23 20:57:28 -0700
    • Engine revision 90fa3ae28f
    • Dart version 3.0.2
    • DevTools version 2.23.1

[✓] Android toolchain - develop for Android devices (Android SDK version
    32.1.0-rc1)
    • Android SDK at /Users/dammya/Library/Android/sdk
    • Platform android-33, build-tools 32.1.0-rc1
    • ANDROID_HOME = /Users/dammya/Library/Android/sdk
    • Java binary at: /Applications/Android
      Studio.app/Contents/jre/Contents/Home/bin/java
    • Java version OpenJDK Runtime Environment (build
      11.0.12+0-b1504.28-7817840)
    • All Android licenses accepted.

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

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

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

[✓] IntelliJ IDEA Community Edition (version 2022.3.2)
    • IntelliJ at /Applications/IntelliJ IDEA CE.app
    • Flutter plugin can be installed from:
      🔨 https://plugins.jetbrains.com/plugin/9212-flutter
    • Dart plugin can be installed from:
      🔨 https://plugins.jetbrains.com/plugin/6351-dart

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

[✓] VS Code (version 1.78.0)
    • VS Code at /Users/dammya/.Trash/Visual Studio Code 20.07.05.app/Contents
    • Flutter extension version 3.50.0

[✓] Connected device (4 available)
    • sdk gphone arm64 (mobile) • emulator-5554                        •
      android-arm64  • Android 11 (API 30) (emulator)
    • iPhone 14 Pro (mobile)    • DCF2031A-7EA9-42FF-8CD4-D4584F3E7A6D • ios
      • com.apple.CoreSimulator.SimRuntime.iOS-16-4 (simulator)
    • macOS (desktop)           • macos                                •
      darwin-arm64   • macOS 13.3 22E252 darwin-arm64
    • Chrome (web)              • chrome                               •
      web-javascript • Google Chrome 113.0.5672.126

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

• No issues found!

By overriding  labelStyle fontFamily is ignored
import 'package:flutter/material.dart';

void main() => runApp(const TabBarApp());

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

  @override
  Widget build(BuildContext context) {
    return MaterialApp(
        theme: ThemeData(
          brightness: Brightness.dark,
          fontFamily: 'Janna-LT',
        ),
        home: const TabBarExample());
  }
}

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

  @override
  Widget build(BuildContext context) {
    return DefaultTabController(
      initialIndex: 1,
      length: 3,
      child: Scaffold(
        appBar: AppBar(
          title: const Text('TabBar Sample'),
          bottom: TabBar(
            labelStyle: const TextStyle(
                color: Colors.red, fontSize: 16, fontWeight: FontWeight.normal),
            isScrollable: false,
            unselectedLabelStyle:
                const TextStyle(fontWeight: FontWeight.normal, fontSize: 16),
            indicatorSize: TabBarIndicatorSize.label,
            tabs: <Widget>[
              Tab(
                icon: Row(
                  children: const [Icon(Icons.cloud_outlined), Text("Cloud")],
                ),
                text: "Cloud",
              ),
              Tab(
                icon: Row(
                  children: const [
                    Icon(Icons.beach_access_sharp),
                    Text("Umbrella")
                  ],
                ),
                text: "Umbrella",
              ),
              Tab(
                icon: Row(
                  children: const [
                    Icon(Icons.brightness_5_sharp),
                    Text("Settings")
                  ],
                ),
                text: "Settings",
              ),
            ],
          ),
        ),
        body: const TabBarView(
          children: <Widget>[
            Center(
              child: Text("It's cloudy here"),
            ),
            Center(
              child: Text("It's rainy here"),
            ),
            Center(
              child: Text("It's sunny here"),
            ),
          ],
        ),
      ),
    );
  }
}

Okay, thanks for providing more info, I am able to reproduce the issue now.

This is impact buttons also. The button label will always using fallback roboto fontfamily if style was overried.
ThemeData( outlinedButtonTheme: OutlinedButtonThemeData(   style: ButtonStyle(       textStyle: MaterialStatePropertyAll(         TextStyle(           fontSize: 16,           fontWeight: FontWeight.w600,         ),       ),     ),   ), ), );

This impact the AppBar also.


Fixing bibtex entry.

Without this change the references section of the JOSS paper were empty. The compiled version of this PDF looks like this: 10.21105.joss.00043.pdf

Thanks, @arfon!

Thanks, @arfon! We just added a couple more citations we wanted to have included in the paper, so the PDF should look different now.

Thanks, @arfon! We just added a couple more citations we wanted to have included in the paper, so the PDF should look different now.

OK thanks! The PDF is updated in the review issue.


Always reset completion state to IDLE when in CANCELLING

Previously adding a space while requesting completion would
cause completion to stay in CANCELLING indefinitely.
Fixes https://github.com/tomv564/LSP/issues/510

Coverage decreased (-0.09%) to 27.033% when pulling 663153b1f08113c345d2fb2273b4465c0394cd7f on simonklb:completion-space-fix into fc804a27115c5f16f1e780b6207e61167d1d82d3 on tomv564:master.

Don't merge this yet.
@tomv564 could you or someone that knows this codebase better than me please take a look and confirm if resetting the CANCELLING state to IDLE like this is ok or not?
My language server crashed with the error message textDocument/completion: illegal Pos value and this patch might be the culprit since I've not seen it before.

I’ll try it out locally today or tomorrow.
We should really have some sort of integration test for these kinds of things.

Yes, you've found the fix for a problem I've seen from time-to-time: When responses for two completion requests arrive in a certain sequence, the completion state cannot not leave CANCELLING because no next request is scheduled.
Before merging I want to understand exactly what case triggers this, both potentially for testing and to make sure this is the right place for the fix.
Any chance you can repro with logging of the state transitions on both the request and response logic?

The issue I experienced was the case where it goes into CANCELLING state after you add a space during a request here: https://github.com/tomv564/LSP/blob/3f39c3dc5d3c8632e50eca54ad733768e99898be/plugin/completion.py#L204-L205
After this you never get out of the CANCELLING state since self.next_request is None here: https://github.com/tomv564/LSP/blob/3f39c3dc5d3c8632e50eca54ad733768e99898be/plugin/completion.py#L326-L329
The next time you try to do a completion you enter on_query_completions and self.next_request is set here:
https://github.com/tomv564/LSP/blob/3f39c3dc5d3c8632e50eca54ad733768e99898be/plugin/completion.py#L227-L229
But the problem is that you never get to the handle_response because do_request is never run while in the CANCELLING state.
Simple debug logging of a completion -> space -> failed completion attempts:
LSP: on_query_completions state = 0 # Initial completion
LSP:  --> textDocument/didChange
LSP:  --> textDocument/completion
LSP:  --> textDocument/didChange # Followed by a quick spacebar
...
LSP: handle_response state = 3 # Completion response, cancelled by the space
LSP: handle_response next_request:  None
LSP: on_query_completions state = 3 # Failed completion attempt
LSP:  --> textDocument/didChange
LSP: on_query_completions state = 3 # Failed completion attempt
LSP:  --> textDocument/didChange

In the case where you do two request in succession, and the second request gets cancelled and next_request is set, the race condition you might be seeing is that next_request is set after handle_response has completed on the first request.

I believe I've fixed the consecutive requests bug by moving the CANCELLING->IDLE state change before calling do_request for the next_request.
I discovered that the log would sometimes say Got unexpected response while in state 0. The second commit seems to have fixed that.
@tomv564 Not sure if this is the problem you were describing, but my completions are working much better now.

Thanks for documenting your findings, we now have some evidence to look at in case we need to fine-tune the logic further. Great work!


Bug: Replace data not working

Describe the Bug
when you click replace data it no longer replaces it but adds to it
Expected Behaviour
it should delete the old data and replace it
Actual Behaviour
when you click replace data it no longer replaces it but adds to it
Implications
A clear and concise description of any implications.
Steps To Reproduce
Steps to reproduce the behaviour:
User/Role:

Go to '...'
Click on '....'
Scroll down to '....'
See error

Tested it with the GER data and it works ✨!


Define the persist annotations as const annotations

Description:
It seems that the annotations defined in the module-ballerina-persist are not const annotations. To generate the entity diagram in the Application Architecture View (vs-code), the values given in the annotations need to be accessed in the compiler time. Non-const annotations are unable to access in the compiler time.
Is there a possibility to update these annotations to const annotations.
@daneshk @hevayo @NipunaRanasinghe
Please refer to the below examples.
Sample Ballerina code
import ballerina/persist;
import ballerina/time;

@persist:Entity {
    key: ["userId"]
}
public type User record {
    readonly string userId;
    string name;
    string contactNo;
    string email;
    @persist:Relation {keyColumns: ["profileId"], reference: ["id"]}
    Profile profile;
};

@persist:Entity {
    key: ["userId"]
}
public type Kid record {
    *User;
    string level;
    @persist:Relation {keyColumns: ["guardianId"], reference: ["userId"]}
    Adult guardian;
};

@persist:Entity {
    key: ["userId"]
}
public type Adult record {
    *User;
    string occupation;
    string officeContactNo?;
};

@persist:Entity {
    key: ["id"]
}
public type Profile record {
    readonly string id;
    string username;
    time:Date createdDate;
    @persist:Relation {keyColumns: ["subscriptionId"], reference: ["id"]}
    MonthlySub subscription; // persist client does not support union types
};

@persist:Entity {
    key: ["id"]
}
type AnuualSub record {
    int id;
    int 'limit;
    float fee;
};

@persist:Entity {
    key: ["id"]
}
public type MonthlySub record {
    readonly int id;
    float fee;
};

Sample ER diagram

Describe your problem(s)
Describe your solution(s)
Related Issues (optional):

Suggested Labels (optional):

Suggested Assignees (optional):

I have created another issue, discussing the language behaviour aspects of making the annotation const. The discussion can be moved to https://github.com/ballerina-platform/ballerina-standard-library/issues/3635


resolve solution path in import script

Resolve the path for the solutionFile parameter in ImportSolution.ps1 so that a relative path can be passed in and used correctly by other cmdlets in script

@lukecolburn that is very useful to know. However I would expect the caller to resolve the path before passing it into this script.


Unable to Use All of the Sudden (UnicodeDecodeError)

Sublime Text Git was working fine for me. Now, I am unable to use any part of this extension with any project/repo.  I really depend on this extension. Any idea what is causing the errors (seen below in my console)?
  Or mixed up, which could be confusing it.

...actually, perhaps not. Package Control hasn't merged in the pull request to update to that version yet, so that'd presumably not be it.

One important note I suppose would be that the repo that is having issues contains WordPress. With the different language files, I assume there are more than a few non-UTF-8 characters in those files... Think this could be the issue?

I second this.  The plugin is not working in any way for me now.  Git blame or even git log current file is not working.

@DerekFoulk Do you still experience this, since the refactored version has landed into package control since I last commented?

@DerekFoulk  It is working now but it gives me an error when i try to run Git Blame from the command pallette saying something like 'GIT Blame tm language not found'.  Rest the plugin seems to work now. Thanks.

Sorry I have been neglecting my notifications due to an increase in projects. I am able to use the plugin 100% at the moment. Thanks a ton!


”Românești” is listed in the drop-down menu

Description:
"Românești" is listed in the drop-down menu alongside its corresponding county and commune, according to the law.
Precondition:
The website is up an running.

Step 1
Type "Românești" in the search bar.

Expected results
The location is listed in the drop-down menu as "Comuna Românești, IAȘI".


[PDI-12521] - Well Formed XML Dialog Wildcard

Fix an issue where the Wildcard field is not properly set when opening the dialog window

This is actually for http://jira.pentaho.com/browse/PDI-13521


poptracker: 0.26.1 -> 0.27.0

Description of changes
Changelog: https://github.com/black-sliver/PopTracker/blob/v0.27.0/CHANGELOG.md#v0270

Things done

Built on platform(s)

[x] x86_64-linux
[ ] aarch64-linux
[ ] x86_64-darwin
[ ] aarch64-darwin

For non-Linux: Is sandboxing enabled in nix.conf? (See Nix manual)

[ ] sandbox = relaxed
[ ] sandbox = true

[ ] Tested, as applicable:

NixOS test(s) (look inside nixos/tests)
and/or package tests
or, for functions and "core" functionality, tests in lib/tests or pkgs/test
made sure NixOS tests are linked to the relevant packages

[ ] Tested compilation of all packages that depend on this change using nix-shell -p nixpkgs-review --run "nixpkgs-review rev HEAD". Note: all changes have to be committed, also see nixpkgs-review usage
[x] Tested basic functionality of all binary files (usually in ./result/bin/)
24.11 Release Notes (or backporting 23.11 and 24.05 Release notes)

[ ] (Package updates) Added a release notes entry if the change is major or breaking
[ ] (Module updates) Added a release notes entry if the change is significant
[ ] (Module addition) Added a release notes entry if adding a new NixOS module

[x] Fits CONTRIBUTING.md.

Add a :+1: reaction to pull requests you find important.

Tested quickly on a rando I'm doing, looks good here!


[2.x] Remove 'with' from orderByTranslation scopes

Description
When using the scope function withActiveTranslations() in combination with orderByTranslation() or orderByRawByTranslation, the orderBy functions was overwriting the with-query from withActiveTranslations(). This results in all languages being delivered instead of just the current one.

 Thank you for your submission! We really appreciate it. Like many open source projects, we ask that you sign our Contributor License Agreement before we can accept your contribution.Dominik Hagen seems not to be a GitHub user. You need a GitHub account to be able to sign the CLA. If you have already a GitHub account, please add the email address used for this commit to your account.You have signed the CLA already but the status is still pending? Let us recheck it.


eth: mcux: Use different RX and TX buffers for each instance

Before the same buffers were used by both instances leading to data corruption.
Fixes #28908.

@pfalcon @tbursztyka @agansari Do you have time to have a look at this PR, the change it quite simple.


Feature Request: Allow binding to full F1-F24

First off, sorry for making an issue, the software is working flawlessly for me, but I've searched and couldn't find anywhere to suggest improvements.
I use the Touchpad to call advanced macros in an AKH (AutoHotkey) script, this works perfectly fine. However what most people don't know is that the Function keys on keyboards actually go up to 24 not just the 12 common keyboards contain, I think it would be useful to be able to bind these from DS4W especially to call AHK scripts as they can be bound to F19 for example.
Thank you for your excellent software. MrTimcakes

Don't worry about making an issue. That's what issues are for.
How would you propose about binding them?

Just how the other F keys are done, Just add an extra row of keys under the current F keys, they'd match up perfectly, there'd just be another row.

Oh. I was a bit confused on what you meant by that. I understand what you're saying now.


interrupt::free does not disable all exceptions, which breaks critical sections

It calls interrupt::disable, which uses cpsid i, which disables interrupts and exceptions that have configurable priority by setting PRIMASK. Notably, this does not affect (on thumbv6) the NMI and HardFault exceptions since they have fixed priorities.
This means that interrupt::free is unsoundly creating a CriticalSection token when it's not allowed to do so.
Note that it is impossible to fully fix this just in the cortex-m crate, since NMI is always enabled and can not be masked (which is its entire point, I suppose). Also, FAULTMASK could be used to also disable HardFault, but that only exists on thumbv7+ from what I can tell.
Our options here are:

Change cortex-m-rt to require unsafe to register HardFault, NMI, etc. handlers
Use FAULTMASK / cpsid f when targeting thumbv7+, which could allow safe registration of fault handlers except NMI on thumbv7+ (note that FAULTMASK has somewhat subtle behavior that differs from PRIMASK, so this needs some extra care to make sure it's sound)
Make interrupt::free an unsafe fn and document that it's only safe to call when not in one of the non-maskable fault handlers

We should probably change the docs of bare_metal::CriticalSection to reflect semantics when NMIs are present.
This issue is somewhat thorny since 3 crates rely on properties of each other for soundness (cortex-m, cortex-m-rt, and bare-metal).
(thanks to @japaric for noticing this)

One of the consequences of this is that registering HardFault to use hprintln! is never sound since that calls interrupt::free internally. Since this seems to be a common use case of HardFault, this is very unfortunate.

I wonder if it's something that could be implemented as a clippy lint.

Hah, what a pain! I think this warrants some careful thought (and reading of the architecture reference manuals) but I have a few early thoughts:

Change cortex-m-rt to require unsafe to register HardFault, NMI, etc. handlers

This doesn't seem terrible, but I'm not sure what meaningful impact it will have in practice; users will presumably still want to access things like semihosting or ITM or whatever from HardFault so we should aim to provide a suitable mechanism.
Also I think the list of potentially unsound fault handlers is exclusively HardFault and NMI (including secure HardFault on ARMv8-M), as all other handlers have configurable priority so cannot pre-empt execution while PRIMASK is set.

Use FAULTMASK / cpsid f when targeting thumbv7+, which could allow safe registration of fault handlers except NMI on thumbv7+

When FAULTMASK is set, the priority level is -1, which has the extra behaviour that any fault or supervisor call causes the processor to enter the Lockup state, from which it generally* cannot recover. I don't think it's ideal to have all our critical sections be in this mode. For example, no user handler would be called if any fault (hard, mem, bus, etc) occurred during such a critical section.
* see ARMv7-M architecture reference manual B1.5.15 for the edge cases where recovery is possible if ill-advised...

Make interrupt::free an unsafe fn and document that it's only safe to call when not in one of the non-maskable fault handlers

While this prevents safe code accessing CriticalSection-based Mutexes from inside HardFault/NMI, it's no use to users who actually want to use a shared resource from inside HardFault, who are presumably left with only the option to put an unsafe block in. I'm not saying we shouldn't do this, just we shouldn't just do this.


The language setting does not work when the browser restart

Gitea version (or commit ref):1.8.0
Git version:2.17.1
Operating system:Ubuntu 19.04
Database (use [x]):

[ ] PostgreSQL
[x] MySQL
[ ] MSSQL
[ ] SQLite

Can you reproduce the bug at https://try.gitea.io:

[x] Yes (provide example URL)
[ ] No
[ ] Not relevant

Log gist:

Description

Browser: Chrome Version 74.0.3729.108
Chrome > Settings > Languages > Order languages based on your preference:

Chinese (Simplified)
Chinese
English
Chinese (Traditional)

How to reproduce:

Sign in with option Remember Me
Setting > Public Profile > Language: choose English
Close all windows, exit Chrome
Start Chrome and reopen website, such as  try.gitea.io/
The language of page will be Chinese, but Setting > Public Profile > Language  is still English

The language of page will be reset to the browser's default language
Screenshots

There is an issue for this already I believe

duplicated with #4884


Artem/master merge

Hi @artemlitch! How are you doing?
Could you help me with this? How did you solve the problem of text selection not working on iOS? Do you use WebView, or do you have another custom solution?
Thanks in advance!


✨ add grpc agent options support.

Summary
This PR fixes the cluster name for the gRPC agent option in the CloudEvent client and adds tests for the gRPC agent.
Related issue(s)
Fixes #

/assign @qiujian16

/assign @skeeey

LGTM


Merges Master to Live. See commits for details.

Docs Build status updates of commit e49c827:
:clock10: Full build: the average full build time is 17 min(s) 20 sec(s), this is based on the last 1000 build(s) for this repository.

Docs Build status updates of commit e49c827:
:white_check_mark: Validation status: passed

File
Status
Preview URL
Details

sharepoint/docs-conceptual/sharepoint-pnp/sharepoint-pnp-cmdlets.md
:white_check_mark:Succeeded
View (sharepoint-ps)

sharepoint/sharepoint-ps/sharepoint-online/Invoke-SPOSiteSwap.md
:white_check_mark:Succeeded
View (sharepoint-ps)

sharepoint/sharepoint-ps/sharepoint-online/Remove-SPOUserInfo.md
:white_check_mark:Succeeded
View (sharepoint-ps)

sharepoint/sharepoint-ps/sharepoint-online/Restore-SPODeletedSite.md
:white_check_mark:Succeeded
View (sharepoint-ps)

skype/skype-ps/skype/Set-CsTeamsCallingPolicy.md
:white_check_mark:Succeeded
View (skype-ps)

skype/skype-ps/skype/Test-CsExUMVoiceMail.md
:white_check_mark:Succeeded
View (skype-ps)

teams/teams-ps/teams/Add-TeamsAppInstallation.md
:white_check_mark:Succeeded
View (teams-ps)

teams/teams-ps/teams/New-CsBatchPolicyAssignmentOperation.md
:white_check_mark:Succeeded
View (teams-ps)

teams/teams-ps/teams/Update-TeamsAppInstallation.md
:white_check_mark:Succeeded
View (teams-ps)

For more details, please refer to the build report.
Note: If you changed an existing file name or deleted a file, broken links in other files to the deleted or renamed file are listed only in the full build report.

Docs Build status updates of commit 092dce7:
:clock10: Full build: the average full build time is 17 min(s) 21 sec(s), this is based on the last 1000 build(s) for this repository.

Docs Build status updates of commit 092dce7:
:white_check_mark: Validation status: passed

File
Status
Preview URL
Details

sharepoint/docs-conceptual/sharepoint-pnp/sharepoint-pnp-cmdlets.md
:white_check_mark:Succeeded
View (sharepoint-ps)

sharepoint/sharepoint-ps/sharepoint-online/Invoke-SPOSiteSwap.md
:white_check_mark:Succeeded
View (sharepoint-ps)

sharepoint/sharepoint-ps/sharepoint-online/Remove-SPOUserInfo.md
:white_check_mark:Succeeded
View (sharepoint-ps)

sharepoint/sharepoint-ps/sharepoint-online/Restore-SPODeletedSite.md
:white_check_mark:Succeeded
View (sharepoint-ps)

skype/skype-ps/skype/Set-CsTeamsCallingPolicy.md
:white_check_mark:Succeeded
View (skype-ps)

skype/skype-ps/skype/Test-CsExUMVoiceMail.md
:white_check_mark:Succeeded
View (skype-ps)

teams/teams-ps/teams/Add-TeamsAppInstallation.md
:white_check_mark:Succeeded
View (teams-ps)

teams/teams-ps/teams/New-CsBatchPolicyAssignmentOperation.md
:white_check_mark:Succeeded
View (teams-ps)

teams/teams-ps/teams/Update-TeamsAppInstallation.md
:white_check_mark:Succeeded
View (teams-ps)

For more details, please refer to the build report.
Note: If you changed an existing file name or deleted a file, broken links in other files to the deleted or renamed file are listed only in the full build report.

Docs Build status updates of commit 75848fd:
:clock10: Full build: the average full build time is 17 min(s) 23 sec(s), this is based on the last 1000 build(s) for this repository.

Docs Build status updates of commit 75848fd:
:white_check_mark: Validation status: passed

File
Status
Preview URL
Details

exchange/exchange-ps/exchange/advanced-threat-protection/Get-MailDetailATPReport.md
:white_check_mark:Succeeded
View (exchange-ps)

sharepoint/docs-conceptual/sharepoint-pnp/sharepoint-pnp-cmdlets.md
:white_check_mark:Succeeded
View (sharepoint-ps)

sharepoint/sharepoint-ps/sharepoint-online/Invoke-SPOSiteSwap.md
:white_check_mark:Succeeded
View (sharepoint-ps)

sharepoint/sharepoint-ps/sharepoint-online/Remove-SPOUserInfo.md
:white_check_mark:Succeeded
View (sharepoint-ps)

sharepoint/sharepoint-ps/sharepoint-online/Restore-SPODeletedSite.md
:white_check_mark:Succeeded
View (sharepoint-ps)

skype/skype-ps/skype/Set-CsTeamsCallingPolicy.md
:white_check_mark:Succeeded
View (skype-ps)

skype/skype-ps/skype/Test-CsExUMVoiceMail.md
:white_check_mark:Succeeded
View (skype-ps)

teams/teams-ps/teams/Add-TeamsAppInstallation.md
:white_check_mark:Succeeded
View (teams-ps)

teams/teams-ps/teams/New-CsBatchPolicyAssignmentOperation.md
:white_check_mark:Succeeded
View (teams-ps)

teams/teams-ps/teams/Update-TeamsAppInstallation.md
:white_check_mark:Succeeded
View (teams-ps)

For more details, please refer to the build report.
Note: If you changed an existing file name or deleted a file, broken links in other files to the deleted or renamed file are listed only in the full build report.

Docs Build status updates of commit 7a58245:
:clock10: Full build: the average full build time is 17 min(s) 25 sec(s), this is based on the last 1000 build(s) for this repository.

Docs Build status updates of commit 7a58245:
:white_check_mark: Validation status: passed

File
Status
Preview URL
Details

exchange/docs-conceptual/exchange-online/exchange-online-powershell-v2/app-only-auth-powershell-v2.md
:white_check_mark:Succeeded
View (exchange-ps)

exchange/exchange-ps/exchange/advanced-threat-protection/Get-MailDetailATPReport.md
:white_check_mark:Succeeded
View (exchange-ps)

sharepoint/docs-conceptual/sharepoint-pnp/sharepoint-pnp-cmdlets.md
:white_check_mark:Succeeded
View (sharepoint-ps)

sharepoint/sharepoint-ps/sharepoint-online/Invoke-SPOSiteSwap.md
:white_check_mark:Succeeded
View (sharepoint-ps)

sharepoint/sharepoint-ps/sharepoint-online/Remove-SPOUserInfo.md
:white_check_mark:Succeeded
View (sharepoint-ps)

sharepoint/sharepoint-ps/sharepoint-online/Restore-SPODeletedSite.md
:white_check_mark:Succeeded
View (sharepoint-ps)

skype/skype-ps/skype/Set-CsTeamsCallingPolicy.md
:white_check_mark:Succeeded
View (skype-ps)

skype/skype-ps/skype/Test-CsExUMVoiceMail.md
:white_check_mark:Succeeded
View (skype-ps)

teams/teams-ps/teams/Add-TeamsAppInstallation.md
:white_check_mark:Succeeded
View (teams-ps)

teams/teams-ps/teams/New-CsBatchPolicyAssignmentOperation.md
:white_check_mark:Succeeded
View (teams-ps)

teams/teams-ps/teams/Update-TeamsAppInstallation.md
:white_check_mark:Succeeded
View (teams-ps)

For more details, please refer to the build report.
Note: If you changed an existing file name or deleted a file, broken links in other files to the deleted or renamed file are listed only in the full build report.


[Bug]: 1.19.3 Electromancer Crash

General Info

[X] I am running a modpack
[ ] I can reproduce this issue consistently in single-player
[ ] I can reproduce this issue consistently in multi-player
[X] I have searched for this issue previously and it was either (1) not previously reported, or (2) previously fixed and I am having the same problem.
[X] I am crashing and can provide my crash report(s)
[X] I am using the latest version of the mod

Forge version
44.1.5
Minecraft version
1.19.3
Mod version
0.1.1
Java version
Java 8 361
Issue Description
I summoned the Electromancer in creative and it crashed when it tried to attack something
Additional Information
https://pastebin.com/K5LVgDP9

Uploading a new jar later today


Can't build for darwin arm64 (MacOS M1 chip)

Hello,
In order to run godcr in native mode (without rosetta2) on an M1 Mac, godcr needs to build:
GOOS=darwin GOARCH=arm64 go build
However this fails:
Building: darwin arm64
gioui.org/internal/gl
../../../go/pkg/mod/gioui.org@v0.0.0-20210418151603-3b69b5ed0512/internal/gl/gl.go:181:7: undefined: Functions
../../../go/pkg/mod/gioui.org@v0.0.0-20210418151603-3b69b5ed0512/internal/gl/util.go:11:25: undefined: Functions
../../../go/pkg/mod/gioui.org@v0.0.0-20210418151603-3b69b5ed0512/internal/gl/util.go:40:32: undefined: Functions
../../../go/pkg/mod/gioui.org@v0.0.0-20210418151603-3b69b5ed0512/internal/gl/util.go:60:24: undefined: Functions
This would be essential to provide a universal binary which has both amd64 and arm64 in one binary for the Mac platform.

Turns out that I had to setup the entire go environment for arm64. Once I used the arm64 version of go and re installed pkger with this version, it built fine.


Run this after publish?

Unfortunately this can only run with the SDK installed. I want to run this standalone on a server with just the runtime available.
Would you accept a PR to

Factor out all functionality short of command line args into a new netstandard project
This would allow a scenario where a deployed app using this can simply accept a switch to do a transform, no additional tools needed to carry around.
Add another project which is a plain old command line app and which can be downloaded e.g. from the GitHub Releases page and ran directly.

Also add some TargetFrameworks and pack the stuff for .NET Core 2.0 and 2.1 in the same package.

@ericwj Yes, that sounds promising; thank you for offering to help.
Considering #19, I was planning to do the following once .NET Core 2.1 is released:

Remove the dependency on McMaster.Extensions.CommandLineUtils; it's overkill for parsing a few arguments.
Package this as a global tool (with a single DLL/EXE) and publish it to NuGet.

I believe having this available as a global tool would solve your use case of running it with only the runtime available, and indirectly also point (2), after running dotnet tool install --global dotnet-xdt.
How does that sound? Would it fit your use case, or is the availability of a netstandard library that you can reference in your app more important?

It'll still need the SDK.
Just running publish on the project and releasing it to the GitHub releases page (so it can be downloaded) will solve 2.

However I figure it is way easier to have it as a DLL so this can be inbox in the deployed app - it could even load and run the source and transform from a resource instead of from the file system and do fancy stuff such as expecting an environment name and the secret my app needs to boostrap Azure Key Vault.

With PR #25, a CLI global tool and a .NET Standard library are published (but currently unlisted) on NuGet.
You can install the tool with:
dotnet tool install --global dotnet-xdt --version 2.1.0-preview.2

# and then
dotnet xdt --help

Alternatively, reference and use the library in a custom app or command-line tool:
dotnet add package DotNet.Xdt --version 2.1.0-preview.2

Version 2.1.0-rc.1 is now available on NuGet for both dotnet-xdt CLI tool and DotNet.Xdt library.
The standalone dotnet-xdt.exe for .NET 4.6.1 is downloadable from AppVeyor and dotnet-transform-xdt 2.0 remains available as a project-level tool for all .NET Core versions.


not able to download the exe file for SSMS

Hi Team,
When we try to download the .exe file its downloads and once 528mb is downloaded it again restart the downloading process from 0 mb, I have tried this several times in different networks but the issue persists.
Anuj

@AJAnujsharma Thank you for the feedback.
Can you provide the specific link as reference?

Please comment below if there are any further issues.

Hi @msebolt , Aplogy for the delayed response
Below is the link where i was finding the issue while downloading ssms
https://docs.microsoft.com/en-us/sql/ssms/download-sql-server-management-studio-ssms?view=sql-server-2017

Hi @AJAnujsharma Thank you for the link and sorry for your difficulties.
I'm guessing this is a network issue since I can download from my machine.
Another option is to try downloading previous versions from different locations.  In particular, version 2008 is under 200 MB.


updates CSV version to v4.7.0

Signed-off-by: Umanga Chapagain<EMAIL_ADDRESS>

compare 1785b2bb719a345d615e6b5640e1bd168d2dcb9c and a914676d03b06a8eb5624f7b5b26b5f83de765b0.

afaict, this is missing the change in version/versoin.go.
As usual, I suggest to split the commit to the one introducing the change in non-generated code (hack/common.sh and version/version.go) and a second patch to commit the result of make gen-latest-csv.

Fixed it.

/test ocs-operator-bundle-e2e-aws


FAQ page

FAQ page

tmux - long running jobs
2 vscode windows for 1 container -> attach

Completed!


HDFS-17074. Remove incorrect comment in TestRedudantBlocks#setup.

Description of PR
In TestRedudantBlocks#setup(),  The below comment is incorrect.
// disable block recovery
conf.setInt(DFSConfigKeys.DFS_NAMENODE_REDUNDANCY_INTERVAL_SECONDS_KEY, 1);
conf.setInt(DFSConfigKeys.DFS_HEARTBEAT_INTERVAL_KEY, 1);

We should delete this comment.
The correct usage is in TestAddOverReplicatedStripedBlocks#setup()
// disable block recovery
conf.setInt(DFSConfigKeys.DFS_NAMENODE_REPLICATION_MAX_STREAMS_KEY, 0);
conf.setInt(DFSConfigKeys.DFS_NAMENODE_REDUNDANCY_INTERVAL_SECONDS_KEY, 1);
conf.setInt(DFSConfigKeys.DFS_HEARTBEAT_INTERVAL_KEY, 1);

How was this patch tested?
no need to add an unit test.

:broken_heart: -1 overall

Vote
Subsystem
Runtime
Logfile
Comment

+0 :ok:
reexec
1m  6s

Docker mode activated.

_ Prechecks _

+1 :green_heart:
dupname
0m  0s

No case conflicting files found.

+0 :ok:
codespell
0m  0s

codespell was not available.

+0 :ok:
detsecrets
0m  0s

detect-secrets was not available.

+1 :green_heart:
@author
0m  0s

The patch does not contain any @author tags.

+1 :green_heart:
test4tests
0m  0s

The patch appears to include 1 new or modified test files.

_ trunk Compile Tests _

+1 :green_heart:
mvninstall
51m  8s

trunk passed

+1 :green_heart:
compile
1m 25s

trunk passed with JDK Ubuntu-11.0.19+7-post-Ubuntu-0ubuntu120.04.1

+1 :green_heart:
compile
1m 14s

trunk passed with JDK Private Build-1.8.0_362-8u372-ga~us1-0ubuntu1~20.04-b09

+1 :green_heart:
checkstyle
1m 12s

trunk passed

+1 :green_heart:
mvnsite
1m 25s

trunk passed

+1 :green_heart:
javadoc
1m 10s

trunk passed with JDK Ubuntu-11.0.19+7-post-Ubuntu-0ubuntu120.04.1

+1 :green_heart:
javadoc
1m 33s

trunk passed with JDK Private Build-1.8.0_362-8u372-ga~us1-0ubuntu1~20.04-b09

+1 :green_heart:
spotbugs
3m 28s

trunk passed

+1 :green_heart:
shadedclient
40m 31s

branch has no errors when building and testing our client artifacts.

_ Patch Compile Tests _

+1 :green_heart:
mvninstall
1m 13s

the patch passed

+1 :green_heart:
compile
1m 18s

the patch passed with JDK Ubuntu-11.0.19+7-post-Ubuntu-0ubuntu120.04.1

+1 :green_heart:
javac
1m 18s

the patch passed

+1 :green_heart:
compile
1m 10s

the patch passed with JDK Private Build-1.8.0_362-8u372-ga~us1-0ubuntu1~20.04-b09

+1 :green_heart:
javac
1m 10s

the patch passed

+1 :green_heart:
blanks
0m  0s

The patch has no blanks issues.

+1 :green_heart:
checkstyle
1m  1s

the patch passed

+1 :green_heart:
mvnsite
1m 19s

the patch passed

+1 :green_heart:
javadoc
0m 57s

the patch passed with JDK Ubuntu-11.0.19+7-post-Ubuntu-0ubuntu120.04.1

+1 :green_heart:
javadoc
1m 31s

the patch passed with JDK Private Build-1.8.0_362-8u372-ga~us1-0ubuntu1~20.04-b09

+1 :green_heart:
spotbugs
3m 20s

the patch passed

+1 :green_heart:
shadedclient
41m 17s

patch has no errors when building and testing our client artifacts.

_ Other Tests _

-1 :x:
unit
276m 29s
/patch-unit-hadoop-hdfs-project_hadoop-hdfs.txt
hadoop-hdfs in the patch passed.

+1 :green_heart:
asflicense
1m 23s

The patch does not generate ASF License warnings.

435m  2s

Reason
Tests

Failed junit tests
hadoop.hdfs.server.namenode.ha.TestObserverNode

Subsystem
Report/Notes

Docker
ClientAPI=1.43 ServerAPI=1.43 base: https://ci-hadoop.apache.org/job/hadoop-multibranch/job/PR-5822/1/artifact/out/Dockerfile

GITHUB PR
https://github.com/apache/hadoop/pull/5822

Optional Tests
dupname asflicense compile javac javadoc mvninstall mvnsite unit shadedclient spotbugs checkstyle codespell detsecrets

uname
Linux 83d6681d79b7 4.15.0-212-generic #223-Ubuntu SMP Tue May 23 13:09:22 UTC 2023 x86_64 x86_64 x86_64 GNU/Linux

Build tool
maven

Personality
dev-support/bin/hadoop.sh

git revision
trunk / 704a9294d90bf51e63c7159882c65e44f5ca158a

Default Java
Private Build-1.8.0_362-8u372-ga~us1-0ubuntu1~20.04-b09

Multi-JDK versions
/usr/lib/jvm/java-11-openjdk-amd64:Ubuntu-11.0.19+7-post-Ubuntu-0ubuntu120.04.1 /usr/lib/jvm/java-8-openjdk-amd64:Private Build-1.8.0_362-8u372-ga~us1-0ubuntu1~20.04-b09

Test Results
https://ci-hadoop.apache.org/job/hadoop-multibranch/job/PR-5822/1/testReport/

Max. process+thread count
2306 (vs. ulimit of 5500)

modules
C: hadoop-hdfs-project/hadoop-hdfs U: hadoop-hdfs-project/hadoop-hdfs

Console output
https://ci-hadoop.apache.org/job/hadoop-multibranch/job/PR-5822/1/console

versions
git=2.25.1 maven=3.6.3 spotbugs=4.2.2

Powered by
Apache Yetus 0.14.0 https://yetus.apache.org

This message was automatically generated.

@ayushtkn @zhangshuyan0 Hi, sir. Could you please help me review this simple modification when you have free time? Thanx a lot.

@ayushtkn Sir, could you please also take a look at this PR when you have free time?


Jest is failing on a FIPS enabled machine

🐛 Bug Report
Tried running Jest tests on a FIPS (Federal Information Processing Standards) compliant Linux machine. It failed immediately reporting that md5 is disabled for fips. Tracing through the Jest code, there is a "normalizeMissingOptions" function in normalize.js that calls "createHash" using md5 which OpenSSL cannot use under FIPS standards.
To Reproduce
Run a basic Jest test on a FIPS machine. Similar output should be returned as described above in the bug report.
Expected behavior
Similar output should be returned as described above in the bug report.

Wanna send some PRs adding support? And can we run on CI to ensure we don't have regressions?

I'd like to help here. could it be a good for first issue on this repo? thanks a lot

If you have access to a FIPS system, sure! I don't know how the development workflow would be though

Oops :( I do not have access to a FIPS system. I will look for another issue. thanks

correct me if I'm wrong, so md5 is not allowed in a fips machine ? If so, it means the package @jest/create-cache-key-function will have issue too.

Correct. md5 is not allowed on a FIPS machine so I agree that we'll see multiple issues getting hit across the codebase. SHA256 is an acceptable hashing algorithm if we can make it an alternate option.

TBH I don't even see a reason to make it an alternate option, it can be the hashing algorithm for everything, it's pretty fast these days as well.

That works too.

Is there any plan to fix this issue soon?

About to dig in and fix this up, want to make sure I'm not re-inventing the wheel/it hasn't been fixed elsewhere. Is this still a need? (It's definitely a need for a project of mine and I have access to a FIPS environment.)

PR very much welcome 🙂
Ideally we'd be able to run CI on such an environment (if not thee full CI at least some sort of smoke test), but I have no idea if GH actions (or others) provide such a thing

I guess one option is to have our own Dockerfile with FIPS enabled (e.g. porting https://github.com/legrego/docker-node-fips/blob/master/Dockerfile) and then our own action (https://docs.github.com/en/actions/creating-actions/creating-a-docker-container-action specifically "Example using a private action")?
I have no idea if that container would actually run under FIPS or if that requires the underlying OS to use it a well?

Ok, sounds good. I have a FIPS environment i can test in, also.
Another question... what are the most comprehensive actions I could run in order to ensure everything works as before? I'm assuming this, while in most cases a minor code change, will touch many, many pieces of the codebase.

Just running all the tests (yarn jest in root) should be fine as we have quite thorough e2e tests. I'd start by just making a single test work (e.g. yarn jest packages/jest-diff/src/__tests__/diff.test.ts) and once any basic tests pass move on to the snapshot and coverage tests. After that I think just running everything is a good idea 🙂

perfect, thanks!

Has there been any progress on fixing this issue?

https://twitter.com/slicknet/status/782274190451671040

I might be able to take care of this. Changing md5 to sha256 to all the calls for createHash seems to be sufficient to make Jest work on a FIPS machine. I'll need to review all the changes and make sure there is no unintended side affects.
As far as getting a FIPs machine to test on all you have to do is install Rocky 8 in a VM and enable FIPS.

Not sure what has happened to all of the folks above that were going to look at this, but here is a basic PR.
https://github.com/facebook/jest/pull/12722
Note that babel-loader is also broken https://github.com/babel/babel-loader/issues/910
and v8flags was too https://github.com/gulpjs/v8flags/issues/56
At least, those were two other projects that I had in the dependency stack around jest that were failing on a fips system.
I'm not a node developer... please adjust the patch to fit your needs.

Landed #12722 will be out in Jest 28 (possibly today, maybe tomorrow). As mentioned there, I'm unable to find a way to actually test this, but hopefully it keeps working! If anyone knows how to run tests on a FIPS machine, any help would be appreciated to ensure we don't regress 🙂

Jest 28 is out if people missed it. Would love to hear if it works in FIPS envs?

I just tested it in our env, and it works for my use cases :)
Thanks for merging so quickly.

Great thanks! Would be great to run unit tests as well, but I guess we can close for now 👍


Add enableSpaMode() config option?

People who use Javalin for SPAs probably have to add some sort of rerouting logic to make sure people always hit index.html . One approach is to handle 404s as requests to index.html.
Maybe Javalin should have some native support for this?
@PascalLeMerrer, you said you're making an SPA with Javalin, how are you handling this?

Very simply by now:
get("/") { ctx -> ctx.redirect("/index.html") }

I'm not sure it's useful to have more than that.
However I'm just at the begining of a simple SPA, so maybe there are use cases I don't see.

What happens when your users try to access a URL like pascalsapp.com/users/john?

error(404) { ctx -> ctx.redirect("/index.html") }

puts them on the right way ;)
But as I said I'm just at the begining of my dev. You probably should ask other users.

Thanks, I'll see if I can find someone!

Solution would be to add an if after the static resource handling. In JavalinServlet.kt:
if (type == HandlerType.HEAD || type == HandlerType.GET) { // let Jetty check for static resources
    if (jettyResourceHandler.handle(req, res)) return@tryWithExceptionMapper
}
if (spaIndexFile != null && type == HandlerType.GET) {
    return@tryWithExceptionMapper ctx.html(readFile(spaIndexFile))
}

enableSpaMode()
enableSpaMode(fileName)
enableSinglePageMode()
enableSinglePageMode(fileName)

Hi David
I'm not sure of your goal here. Could you explain it please?

Sure Pascal; As far as I know, there are two main ways of doing routing for a SPA, hash/fragment (#) and push-state. When the user navigates the SPA you'll end up with one of two URL patterns:
myapp.com/#/users/tipsy // hash
myapp.com/users/tipsy // pushstate

Currently there isn't any elegant way of handling these client side routes in Javalin. A common pattern is to redirect 404's to the apps entry-point (index.html). Another pattern is to route all requests without extensions to the entry point (won't work if you're hosting your API on the same service.
I'm considering adding functionality for setting a SPA entry point file by calling enableSinglePageMode("index.html"). This would return the content of index.html for all calls that would normally result in a 404 (given that the client making the call accepts HTML). It would not involve a redirect.
HTML request/response:
GET /users/tipsy
Accept: text/html

HTTP/1.1 200

<single page file>

JSON request/response:
GET /users/tipsy
Accept: application/json

HTTP/1.1 404
{404 error object}

Thank you.
Please keep in mind that a single instance of Javalin could serve multiple SPAs; by example one for the public facing app, and one for the administration of the site. Or multiple end-user apps, to split a big one.

That shouldn't too be hard to take into account, could add an overload where path is the first parameter.
enableSinglePageMode("/admin/*", "/admin/index.html")

Or maybe always require it.. I'll think about it.

/**
 * Any request that would normally result in a 404 for the subpath (or subpaths thereof)
 * instead results in a 200 with the file-content as response body
 */
public Javalin enableSinglePageSubpath(@NotNull String subpath, @NotNull String filePath) {
    ensureActionIsPerformedBeforeServerStart("Enabling single page subpath");
    singlePageConfig.add(new SinglePageConfig(subpath, filePath));
    return this;
}

It was a bit more code than anticipated: https://github.com/tipsy/javalin/pull/312, not sure if worth it.


404 error on callback url

This module isn't working. I'm getting a 404 error on the callback url.

'https://social.yahooapis.com/v1/user/'
The above url needed to be https instead of http.


Update register.yaml

Hello @andhikapraa your changes are approved and merged. It will get live soon on https://links.dev/pras
Please change your links from http to https as soon as possible.
Have a nice day. :rocket:


Loss weighting behavior will give inconsistent "upweighting" between batches

Hi there!
I had a quick question about the Cross-Entropy loss calculation here:
    elif labels is not None and loss_weight is not None:
        loss_fct = CrossEntropyLoss(reduction="none")
        labels = labels.view(-1)
        loss = loss_fct(
            logits.view(-1, vocab_size), labels
        )  # what if we first exclude the ones with -100??
        loss_weight = loss_weight.view(-1)
        loss_weight[labels == -100] = 0.0
        loss = (loss * loss_weight / loss_weight.sum()).sum()

While I understand the goal is to weight tokens differently, i.e. place more weight on "upper" case base pairs that are 'not repetead', I think the way the code is written leads to slightly unintuitive behavior. That is, on any given sequence / batch the weight of the token will be determined by the other masked tokens.
Take a simple example aaCTgg, where 2 tokens will be masked. If an upper and a lower case token are masked then the upper case token will correctly have a higher weighting in the loss. However if 2 upper case tokens are masked or if 2 lower case tokens are masked they will then have equal weight and therefore contribute to the loss the exact same. This seems counter to the desired behavior.
I think on aggregate this is not a 'big deal' since on average there will be a mix of up/down weighted tokens in any given sequence/batch but I wanted to check if perhaps this is slightly inconsistent with the desired behavior.

Hello! I'd also think that this might not be a big deal when using a large enough batch. I appreciate your thoughts, how would you reformulate this?

I agree that it's a tricky question on how to do this right. Perhaps forgoing the weighted CE being an actual average, i.e., remove the loss weight normalization?
loss = (loss * loss_weight).sum()

This might make it a bit less intuitive as to how to compare GPN pre-train loss to other models though.
What are your thoughts on this approach?


feat: key trait

Adds the key trait with an optional feature for specialization
Fixes #4

A derive macro was provided over the specialization impl, however it might be readded later if rust-analyzer starts behaving with it


WIP-DO NOT MERGE YET: Add environment variables support for Unix

Implement support for enumerating environment variables in Unix (EnvironmentAugments.EnumerateEnvironmentVariables()). Fixes #6204.

However, when I copied it over to CoreRT and rebuilt I still get nothing. Not sure what's up with that.

I do not see anything wrong. I think it should work fine. Maybe you are not really picking up the rebuilt CoreRT. Are you picking up the rebuilt CoreRT by setting the IlcPath environment variable, or by copying it over?
If you are still not able to make it work once you incorporate the feedback, let me know - I can pull the change down to my machine and check whether it works.
Thank you for your work on this!


Delete some unused code

the check of kv.IsErrNotFound(err) is unused in Transaction.Get

Thanks @wangrzneu


Problem in while creating CSS File

We have written the needed data into your clipboard because it was too large to send. Please paste.

when i write HTML code i may have to crate css file in it, but i am not able to create its showing red in it. pls help.