Terminal no longer activates virtual environment

Type: Bug

Behaviour
Expected vs. Actual
At work, we've been using VS Code for a while with python virtual environments. The previous behavior was that when you opened a terminal (while a virtual environment was activated) it would run the activate script in that virtual environment. For example for me, usually venv/bin/activate.csh. This script has become an important part of our workflow, since it allows us to customize the environment python will run in, register aliases, etc.
Ever since a few months ago, VS code no longer runs this activation script. It says "Python virtual environment was successfully activated, even though "(venv)" indicator may not be present in the terminal prompt.", Which seems to indicate that it is triggering the virtual environment, but none of the environment is actually being configured in the terminal. All environment variables and aliases are absent.
Steps to reproduce:

Create a python virtual environment.
Modify the activate script
select the virtual environment from thepython version dropdown  in VS Code
Open a terminal

Diagnostic data

Python version (& distribution if applicable, e.g. Anaconda): 3.11.4
Type of virtual environment used (e.g. conda, venv, virtualenv, etc.): Venv
Value of the python.languageServer setting: Pylance

Output for Python in the Output panel (View→Output, change the drop-down the upper-right of the Output panel to Python)

XXX

User Settings

languageServer: "Pylance"

testing
• pytestEnabled: true

Extension version: 2023.22.1
VS Code version: Code 1.85.2 (Universal) (8b3775030ed1a69b13e4f4c628c612102e30a681, 2024-01-18T06:40:32.531Z)
OS version: Darwin arm64 22.6.0
Modes:

System Info

Item
Value

CPUs
Apple M1 Max (10 x 24)

GPU Status
2d_canvas: enabledcanvas_oop_rasterization: enabled_ondirect_rendering_display_compositor: disabled_off_okgpu_compositing: enabledmultiple_raster_threads: enabled_onopengl: enabled_onrasterization: enabledraw_draw: disabled_off_okvideo_decode: enabledvideo_encode: enabledvulkan: disabled_offwebgl: enabledwebgl2: enabledwebgpu: enabled

Load (avg)
3, 2, 2

Memory (System)
32.00GB (0.08GB free)

Process Argv
--crash-reporter-id 00815bc4-2696-4c23-866e-19b398c1bc9b

Screen Reader
no

VM
0%

A/B Experiments
vsliv368:30146709
vspor879:30202332
vspor708:30202333
vspor363:30204092
vscoreces:30445986
vscod805:30301674
binariesv615:30325510
vsaa593cf:30376535
py29gd2263:30899288
c4g48928:30535728
azure-dev_surveyone:30548225
a9j8j154:30646983
962ge761:30951796
pythongtdpath:30769146
welcomedialog:30910333
pythonidxpt:30866567
pythonnoceb:30805159
asynctok:30898717
pythontestfixt:30902429
pythonregdiag2:30936856
pyreplss1:30897532
pythonmypyd1:30879173
pythoncet0:30885854
pythontbext0:30879054
dsvsc016:30899300
dsvsc017:30899301
dsvsc018:30899302
dsvsc019bcf:30953938
3ef8e399:30949928

Yes I can confirm this exact same problem.

@austinwitherspoon Can you please provide the debug logs which can help diagnose the issue:

Run Developer: Set log level command
Select Trace
Run Developer: Reload Window command
Provide the output:

Output for Python in the Output panel (View→Output, change the drop-down the upper-right of the Output panel to Python)

XXX

Expected behavior to have the virtual environment activated using environment variables, without running any commands. More information: https://github.com/microsoft/vscode-python/wiki/Activate-Environments-in-Terminal-Using-Environment-Variables.

but none of the environment is actually being configured in the terminal. All environment variables and aliases are absent.

Could you send a screenshot of env variables and aliases that're expected?

I'm wondering if it's a csh shell issue. Could you try changing the default shell (Select default profile command) to bash/zsh/fish and see if the issue happens?

I have same problems and I use vscode on windows 10

awitherspoon_vscode_python_trace_log.txt
Here's the trace log you requested (with some sensitive keywords and environment variables redacted)
The easiest way to see that it's not working is actually just by using the which command to see where python points.
In the VS Code terminal by default, python doesn't point to the virtual environment python, it points to my system python:

However, if I run source venv/bin/activate.csh and then try:

It points at the correct python in the virtual environment

I'm wondering if it's a csh shell issue. Could you try changing the default shell (Select default profile command) to bash/zsh/fish and see if the issue happens?

Interesting! Switching my default terminal to bash works fine!
tcsh and csh both don't work, but bash works.

Great, let me try to install csh and reproduce the issue. Do you have some instructions handy?

Great, let me try to install csh and reproduce the issue. Do you have some instructions handy?

Unfortunately no, it came on my work computer and I'm usually a windows guy, so I'm not super familiar with linux/mac shells

im using zsh and have same issue

fish and I have same issue

Can you please open a new issue using Python: Report Issue command for each of your shells? Make sure to provide the Python debug logs as asked earlier: https://github.com/microsoft/vscode-python/issues/22822#issuecomment-1921138421.

2024-02-02 09:09:29.686 [info] Shell integration is not working for zsh
2024-02-02 09:09:29.686 [warning] Shell integration is not active, environment activated maybe overriden by the shell.
Im getting this info and warning, which maybe relevant. Shell integration is active, and previously worked fine

@rhizodigital I've created a new issue on your behalf, as we're dealing with different causes here.

We have identified the issue for cshell, and plan to make the pre-release containing a fix in a day or two. Would appreciate your help in verifying the fix.

Unfortunately this appears to still be an issue with the latest python extension v2024.0.1. Bash and zsh both work, but csh and tcsh remain broken.

@austinwitherspoon Can you please provide the same debug logs as before?

Came here to say I have same issue. None of my projects open in correct venv through launch.json file. I now have to manually activate the venv and run the program.

Same issue still exists:
previously:

Create a venv
activate
name of venv in terminal visible when you run code
whenver you open new terminal it opens in venv and you can easily switch between them

current situation

it shows a msg "Python virtual environment was successfully activated, even though "(.venv)" indicator may not be present in the terminal prompt. Learn more."
if you force activate it sometimes work sometime doesn't ( right bottom shows you have selected venv but pip freeze will not show your libraries
this update has been very painful for users using multiple venv for different set of libraries

@Sam-no-1 Apologies for the back and forth experience, please open a new issue stating your shell and providing the logs using Python: Report Issue command and we'll be happy to have a look. This issue is particularly for csh so we'll be hiding these commands.

Simple steps to reproduce the issue:

Create a new directory and open in VS Code
Create a python virtual environment (python -m venv venv)
Go into venv/bin/activate.csh and add the line setenv TEST_VAR "test"
Select the python virtual environment in VS Code and open the terminal
Run env | grep TEST

If it works, you should see your environment variable in the console. If it's blank, the python extension in VS code is still broken.
In my case, I just tried those steps exactly and it doesn't work. If I manually activate the virtual environment from the console, it works:
awitherspoon logged on console from host local at 9:08am
awitherspoon@mbpro-232::~/src/personal/examplevenv
[0,2] 2024-02-12 Mon 11:35am} env | grep TEST
awitherspoon@mbpro-232::~/src/personal/examplevenv
[1,3] 2024-02-12 Mon 11:35am} source venv/bin/activate.csh
(venv) awitherspoon@mbpro-232::~/src/personal/examplevenv
[0,4] 2024-02-12 Mon 11:36am} env | grep TEST
TEST_VAR=test
(venv) awitherspoon@mbpro-232::~/src/personal/examplevenv

Is it just me, or does it seem like all of these different shell issues are related? They all used to work, but now suddenly tcsh, csh, zsh all don't work? They worked a few months ago, it seems like possibly something changed in the last few months that broke all of them.
Python logs:
vs_code_venv_logs_2024_02_12.txt

After running some experiments, it looks like the last working version of the python plugin was v2023.4.1. Virtual environments were broken in 2023.6.0 https://github.com/microsoft/vscode-python/releases/tag/2023.6.0

@austinwitherspoon , we do not use "activate.csh" for activate csh terminals currently, but environment should still be activated. Try running which python to deduce if it's activated instead.
Regarding zsh, if you can open a new issue providing the debug logs, we would be happy to take a look.

@karrtikr activate.csh was supported in v2023.4.1. Is this shell no longer supported by VS Code?
Regardless, the environment does not work, as demonstrated by my example above. I cannot add environment variables to csh unless I rollback my Python extension to v2023.4.1. which python does not return the correct python version.

I see, just wanted to point out that I'm unable to reproduce this issue on the latest pre-release:

A potential fix is out in the pre-release version, please give it a try.

Unfortunately this still doesn't work.

Can you share the initialization scripts for your shell? Perhaps .tcshrc. I'm wondering if it's replacing the environment variables set by the Python extension.

activate.csh was supported in v2023.4.1

Also, I'm a bit confused regarding this part as we didn't change much. Was it supported without sending "activate.csh" command in terminal? Please share the debug logs for this case if you can.

I can show you exact issue over screenshare if you want

activate.csh was supported in v2023.4.1

Also, I'm a bit confused regarding this part as we didn't change much. Was it supported without sending "activate.csh" command in terminal? Please share the debug logs for this case if you can.

I can show you exact issue if you want over screenshare and also describe how things were previously. It is crucial issue

If you can use https://www.screentogif.com/ or similar to show, how things were working previously in v2023.4.1 v/s what's happening now, I'd very much appreciate it.

If you can use https://www.screentogif.com/ or similar to show, how things were working previously in v2023.4.1 v/s what's happening now, I'd very much appreciate it.

Found more insights:

Create a venv
Use vscode on mac it acts ad previous versions it will auto activate venv, name of venv would be visible in terminal before output.
Use vscode latest version in windows, it give a popup, venv is not writen but active. However it wont be active. If you activate using command it will work but if you close and start new terminal again you will need to mannually nameofvenv/Scripts/activate.
Life was simpler before, also installing libraries is not straightforward anymore in venv

Yes, on v2023.4.1 it would automatically run source venv/bin/activate.csh without requiring me to type it:

And here are logs:
vs_code_venv_logs_old_version_2024_02_14.txt

Unlike @Sam-no-1, my issue is happening on a mac, not windows or linux.

To test your theory about the .tcshrc file, I removed it entirely, and still have the same issue

And here is a log on the latest pre-release version, v2024.1.10451007 where it's broken: vs_code_venv_logs_prerelease_version_2024_02_14.txt

@austinwitherspoon , can you run echo $PATH and report the output as well? thanks!

Note: I've removed a few entries that contained network paths at the company I work at
/Library/Frameworks/Python.framework/Versions/2.7/bin:/Library/Frameworks/Python.framework/Versions/3.11/bin:/Library/Frameworks/Python.framework/Versions/3.7/bin:./node_modules/.bin:/Users/awitherspoon/node_modules/.bin:/Users/awitherspoon/bin:/Users/awitherspoon/src/studio/prod-tools/sbin:/Users/awitherspoon/src/studio/prod-tools/sbin/shotgun:none/bin:/Library/Java/JavaVirtualMachines/jdk1.8.0_72.jdk/Contents/Home/bin:/Applications/IntelliJIDEA.app/bin:none/bin:/Users/awitherspoon/.local/bin:/Users/awitherspoon/.vscode/extensions/ms-python.python-2024.1.10451007/pythonFiles/deactivate/bash:/Users/awitherspoon/src/personal/examplevenv/venv/bin:/Library/Frameworks/Python.framework/Versions/2.7/bin:/Library/Frameworks/Python.framework/Versions/3.11/bin:/Library/Frameworks/Python.framework/Versions/3.7/bin:./node_modules/.bin:/Users/awitherspoon/node_modules/.bin:/Users/awitherspoon/bin:/Users/awitherspoon/src/studio/prod-tools/sbin:/Users/awitherspoon/src/studio/prod-tools/sbin/shotgun:none/bin:/Library/Java/JavaVirtualMachines/jdk1.8.0_72.jdk/Contents/Home/bin:/Applications/IntelliJIDEA.app/bin:none/bin:/Users/awitherspoon/.local/bin:/local/prod/tweak/rv/CURRENT/RV64.app/Contents/MacOS:/usr/local/bin:/usr/bin:/bin:/usr/sbin:/sbin:/usr/local/sbin:/Users/awitherspoon/.cargo/bin:/opt/homebrew/bin:/Users/awitherspoon/Library/Python/3.11/bin:/Users/awitherspoon/.cargo/bin:/opt/homebrew/bin:/Users/awitherspoon/Library/Python/3.11/bin

"/Users/awitherspoon/.vscode/extensions/ms-python.python-2024.1.10451007/pythonFiles/deactivate/bash:/Users/awitherspoon/src/personal/examplevenv/venv/bin" is what we expect to be at front of the PATH, which seems to be in the middle. Can you investigate where rest of the stuff is being prepended from, if not .tcshrc?
/Library/Frameworks/Python.framework/Versions/2.7/bin:/Library/Frameworks/Python.framework/Versions/3.11/bin:/Library/Frameworks/Python.framework/Versions/3.7/bin:./node_modules/.bin:/Users/awitherspoon/node_modules/.bin:/Users/awitherspoon/bin:/Users/awitherspoon/src/studio/prod-tools/sbin:/Users/awitherspoon/src/studio/prod-tools/sbin/shotgun:none/bin:/Library/Java/JavaVirtualMachines/jdk1.8.0_72.jdk/Contents/Home/bin:/Applications/IntelliJIDEA.app/bin:none/bin:/Users/awitherspoon/.local/bin

I found a corporate csh.cshrc on my machine that added those vars. If I go in and temporarily remove it, I get the following:
/Users/awitherspoon/.vscode/extensions/ms-python.python-2024.1.10451007/pythonFiles/deactivate/bash:/Users/awitherspoon/src/personal/examplevenv/venv/bin:/usr/bin:/bin:/usr/sbin:/sbin:/usr/bin:/bin:/usr/sbin:/sbin
With that change, which python works, but that still doesn't fix the fact that environment variables from activate.csh are not being loaded in like they used to in v2023.4.1

Actually this problem applies to all shells now, bash and zsh work with which python but do not actually contain the environment variables from the activate scripts like they used to.
It looks like the plugin isn't actually loading the environment, it's only modifying PATH?

I have same problems and I use vscode on windows 10

Same issue with activating with git bash, powershell, and command prompt

Please create a new issue for Powershell and we can have a look. Make sure to provide the "debug" level logs asked earlier.

Please create a new issue for Powershell and we can have a look. Make sure to provide the "debug" level logs asked earlier.

#23008

Got the same issue with vs code v 1.87.1 universal on mac os 14.4 Sonoma, zsh terminal.
Fresh installation of VsCode on new MacBook.
Issue: the integrated terminal failed to load Python environment.
Solved by reinstallation of vscode.
more details: after removing the first installation of the 1.87.1 universal, I installed the silicon 1.87.1 version, and found out that the issue is gone. Then, I installed again the universal version, but couldn't reproduce the issue there.


⚠ PrivateHD has degraded performance

In 66d913d, PrivateHD ($PHD) experienced degraded performance:

HTTP code: 200
Response time: 5077 ms

Resolved: PrivateHD performance has improved in ad71813.


Self-communication

I think the possibility of self-communication is possible but needs to be defined clearly in the model

Self communication is implemented within the software with the use of virtual inputs and outputs to the same cell


Visual Studio MarketPlace?

I couldn't find you on Visual Studio MarketPlace for Azure DevOps :(
https://marketplace.visualstudio.com/search?term=Infer&target=AzureDevOps
Edit:
Found https://github.com/microsoft/infersharp/blob/main/.build/azure-pipelines-example-multistage.yml
Pretty cool, but, is an extension likely?

Could you speak more to what your use case for the extension is/how adding Infersharp to Azure pipelines doesn't fully address it?

Hi @matjin
An extension providing a task makes it easy for a large organisation like ours to use a tool in a consistent manner across our many pipelines: pipeline maintainers can make use of the Azure DevOps Pipeline Editor's intellisense, and use settings / a wizard to configure the tasks input parameters, which helps avoid mistakes.
A task from an extension also has the advantage that users of the task get minor+patch updates to a tool without needing to write/merge code, and can opt into major updates (potentially breaking changes) by bumping a number on a branch. This is very useful in helping avoid code-rot in our pipelines, especially across a large organisation, and fits neatly into various branching strategies, making pipeline maintenance easier to plan.
This contrasts with the example multistage pipeline linked in the OP, which demonstrates pinning the pipeline to a minor version of the infer# container. Having said this, I admit that with a little work, the example could be refactored to be a template, with a version parameter (a select/radio of known good versions). However, this is a maintenance overhead for me as a devops engineer, so my preferred solution is the extension, if possible.
I'll probably write the template based on the example multistage yaml for now, though :)

OK. Sounds good -- my colleague @xinshiMSFT owns this component -- he's OOF right now but he'll look into this for you when he's back. Thanks for raising this!


Weird behaviour using low dimensions

Thanks for this sourcecode, I was able to reproduce the code in c# - which was really hard to do from the paper.
Anyway, I was fighting really hard to get things ( LMMAES ) to converge using rosenbrock and 12 dimensions in my implementation - and I decided to try in yours. Turns out it fails in exactly the same way ;)
Doing rosenbrock with anything less than 18 fails, but at 18 it converges promptly.
def rosenbrock(x):
return sum(100.0*(x[1:]-x[:-1]**2.0)**2.0 + (1-x[:-1])**2
MAES converges all the way down to 12 dimensions.
Maybe the settings could be tweaked somehow?
Anyway, thanks for the source!

Here's my full test source:
`
from optimizers import *
from uhoptimizers import *
from benchmarkfunctions import *
import numpy as np
import matplotlib.pyplot as plt
import matplotlib as mpl
def rosenbrock(x):
return sum(100.0*(x[1:]-x[:-1]**2.0)**2.0 + (1-x[:-1])**2.0)
mpl.style.use('seaborn')
result_log = []
for i in range(1):
# problem dimension
n = 12
# noise amplitude for stochastic function
# noiseamp = 1
# get function object
#el = sphere
el=rosenbrock
# logging
performance_log = []

# set initial pop mean
y0    = np.random.randn(n)/n
#y0    = np.ones(n)/n

# initial step size
step_size = 1/6.
# initialize optimizer object
esop  = MAES(y0, step_size, el, function_budget=1000000, function_target=0.0000001, threads=8)

#1999, 277, Appr. fit: 0.000000  Sigma: 0.000000   F-evals: (2985.042000) 3336
# the actual optimization routine
termination = False
while termination is False:
    # optimization step
    evals, solution, termination = esop.step()

    # save some useful values
    performance_log.append( [evals,np.mean(esop.fd)] )
    # print some useful values
    if termination or esop.t%50==0 or esop.t==0:
        result_log.append(evals);
        esop.report( '%d, %d, Appr. fit: %f  Sigma: %f   F-evals: (%f) %d\n' %
            (i, esop.t, np.mean(esop.fd), esop.sigma, np.mean(result_log), evals) )

print(np.mean(result_log))
`

Hi, thanks for your interest in code. Please excuse my late reply.
The LM-MA-ES and the MA-ES are both approximating the candidate distribution of the CMA-ES [1], mainly for the reason of scalability to problems with a large number of parameters. The faces of the scalability issue are covered in these papers [2, 3, 4] as well as the one this repository was made for. Typically, the design of these algorithms involves some tuning of constants relevant to the algorithm - meaning the algorithm can fail in domains it was not tuned for. The reason the algorithms were not tuned in all domains is that the benefits of approximating structural components diminish in low dimensions. The domains where it is advisable to use the algorithms are indicated in the second table of the readme. Furthermore, the code is likely not as robust as it could be, as it is mainly intended for reproducing the results of the paper. In the future I am planning to implement some more ESs and open a separate repository for this, so you are welcome to stop by.
For now, you have two options:

using another evolutionary strategy, that is designed for use in low-dimensional parameter spaces, consider:

the ES provided in this repository works with your example
a CMA-ES implementation by Nikolaus Hansen [5]
the Shark ML Library [6]
the DEAP evolutionary algorithm library [7]

manually adapting the source code of LM-MA-ES:
The technical reason for your optimization failing is a premature collapse of the step size. By adding m
in the 98th line of the optimizers.py file
self.c_sigma = (2*self.lmbd)/(self.n+m)
I could get your code to work. Make m a positive integer and as large as needed (in 15 dimensions
m=4 worked).

The first solution is reasonable if you want a perfectly stable code and do not want to more carefully refine the algorithm by testing the robustness and optimality of the constants on a set of benchmark functions (or even mathematically prove this).
I hope this helps.
[1] https://en.wikipedia.org/wiki/CMA-ES
[2] MA-ES: http://www.honda-ri.de/pubs/pdf/1177.pdf
[3] LM-CMA-ES (similar to LM-MA-ES): https://arxiv.org/pdf/1511.00221
[4] LM-MA-ES: https://arxiv.org/pdf/1705.06693
[5] CMA-ES by Nikolaus Hansen: http://cma.gforge.inria.fr/cmaes_sourcecode_page.html
[6] Shark: http://image.diku.dk/shark/
[7] DEAP: https://github.com/DEAP/deap


[WIP] Fix View/Text displayName

Adds the displayName prop to View and Text components. Because these now use React.forwardRef, they were showing as Component instead of their actual names.
Fixes #21937
Test Plan:
Snapshot test for YellowBoxCategory should pass
Release Notes:
[GENERAL] [BUGFIX] [View] - Add displayName prop to View components
[GENERAL] [BUGFIX] [Text] - Add displayName prop to Text components

Could we also restore the defaultProps? It seems like these no longer show up in snapshot tests: https://github.com/facebook/react-native/commit/e708010d18f938e2d6b6424cfc9485d8e5dd2800#r31046472


Error for adversarial training with Sequential model

I have a base model using tf.feature_column:
def build_base_model(hparams):
  feature_cols = [tf.feature_column.numeric_column(colname) for colname in hparams.feature_names]
  feature_layer = tf.keras.layers.DenseFeatures(feature_cols)
  l = []
  l.append(feature_layer)
  for num_units in hparams.layers:
    l.append(tf.keras.layers.Dense(num_units, activation='relu'))

  pred = tf.keras.layers.Dense(hparams.num_classes, activation='sigmoid')
  l.append(pred)
  model = tf.keras.Sequential(l)
  return model

And I have parser function to feed data from TFRecords (there are 500 feature columns in the file):
def parse_fn2(serialized_example, primary_keys, features, label_type):
    feature_dict = {}

    for primary_key in primary_keys:
      feature_dict[primary_key] = tf.io.FixedLenFeature([], tf.string)
    for f in features:
      feature_dict[f] = tf.io.FixedLenFeature([], tf.float32, default_value=0.0)

    if label_type == "float":
       feature_dict["label"] = tf.io.FixedLenFeature([], tf.float32, default_value=0.0)
    else:  # int
       feature_dict["label"] = tf.io.FixedLenFeature([], tf.int64, default_value=0)

    parsed = tf.io.parse_example(serialized_example, features=feature_dict)
    for k in primary_keys:
       primary_k = parsed.pop(k)

    #target = parsed.pop("label")
    return parsed #, target

def tfrecords_input_fn2(
    files_name_pattern, primary_keys, features, label_type, batch_size=1024
):
    shuffle = True if label_type else False

    file_names = tf.io.matching_files(files_name_pattern)
    dataset = tf.data.TFRecordDataset(filenames=file_names)

    if shuffle:
        dataset = dataset.shuffle(buffer_size=2 * batch_size + 1)

    dataset = dataset.batch(batch_size)
    dataset = dataset.map(
        lambda tf_example: parse_fn2(
            tf_example, primary_keys, features, label_type
        )
    )

    dataset = dataset.repeat()
    return dataset

My base model can run successfully when uncommenting the target. When I tried to run the adversarial regularization:
adv_config = nsl.configs.make_adv_reg_config(
    multiplier=HPARAMS.adv_multiplier,
    adv_step_size=HPARAMS.adv_step_size,
    adv_grad_norm=HPARAMS.adv_grad_norm
)
base_adv_model = build_base_model(HPARAMS)
adv_model = nsl.keras.AdversarialRegularization(
    base_adv_model,
    label_keys=["label"],
    adv_config=adv_config
)

adv_model.compile(optimizer='adam', loss='binary_crossentropy',
                   metrics=[tf.keras.metrics.AUC(name="auc"),
                            tf.keras.metrics.Precision(name="precision"),
                            tf.keras.metrics.Recall(name="recall"),])

adv_model.fit(tfrecords_input_fn2(
    files_name_pattern, ["user_id"], feature_names, "integer", batch_size=1024
), epochs=100, steps_per_epoch=300)

I got error:
TypeError: in user code:

    /databricks/python/lib/python3.7/site-packages/tensorflow/python/keras/engine/training.py:571 train_function  *
        outputs = self.distribute_strategy.run(
    /databricks/python/lib/python3.7/site-packages/neural_structured_learning/keras/adversarial_regularization.py:667 call  *
        outputs, labeled_loss, metrics, tape = self._forward_pass(
    /databricks/python/lib/python3.7/site-packages/neural_structured_learning/keras/adversarial_regularization.py:646 _forward_pass  *
        outputs = self._call_base_model(inputs, **base_model_kwargs)
    /databricks/python/lib/python3.7/site-packages/neural_structured_learning/keras/adversarial_regularization.py:621 _call_base_model  *
        if (isinstance(self.base_model, tf.keras.Sequential) and

    TypeError: 'NoneType' object is not iterable

I don't understand this error. Is it because my sequential model does not build until training is running? Any suggestions for workarounds?

Thanks @victorconan for raising the issue and for the detailed reproduction instructions.
AdversarialRegularization expects Sequential base models to provide a list of feature names in order to distinguish input features and target labels, but unfortunately the feature names specified in feature columns (the DenseFeatures layer) aren't populated to the model.
Here's a workaround using a Keras functional model and explicit Input layers:
def build_base_model(hparams):
  feature_cols = [tf.feature_column.numeric_column(name) for name in hparams.feature_names]
  feature_layer = tf.keras.layers.DenseFeatures(feature_cols)
  x_input = [tf.keras.Input(shape=[], name=name, dtype=tf.float32) for name in hparams.feature_names]
  x_dict = dict(zip(hparams.feature_names, x_input))
  x_dense = feature_layer(x_dict)
  for num_units in hparams.layers:
    x_dense = tf.keras.layers.Dense(num_units, activation='relu')(x_dense)
  pred = tf.keras.layers.Dense(hparams.num_classes, activation='sigmoid')(x_dense)
  return tf.keras.Model(inputs=x_input, outputs=pred)

Please let me know whether this works for you.

Thanks! It's working!


Error when changing from roaming to local (1st time use)

The first time you open XML Notepad, if you change settings location from Roaming To Local, you get an error ("settings were not moved"). That is because the configuration file does not exist yet in the Roaming Profile, and it is trying to copy it from it.
I'm not sure what is the best way to handle it. A quick fix could be save the default configuration in the roaming profile when the app is first launched.  Maybe a further analysis is required.

Ha ha, great bug, thanks.

Fix checked in, see [commit ](https://github.com/microsoft/XmlNotepad/commit/53d694132d034d71dcbc0e581a2c3f05e258619d.
It will be included in the next release.


 I'm not sure that this is really consistent with the design of Docile/Lexicon, but just suppose I'd like to co-document them as a way of increasing awareness of these alternate syntaxes. (You see a lot of this with Matlab's documentation, e.g., http://www.mathworks.com/help/matlab/ref/linspace.html?refresh=true.) I can achieve an effect like that at the cost of duplicate entries that crop up in query searches. For example (for brevity, I'm truncating the obvious stuff):

import Base: push!

type MyObject end

str = """
    push!(MyObject, (a,b))
    push!(MyObject, a, b)

Add a pair to a MyObject queue.
"""

@doc "$str" ->
push!(obj::MyObject, a, b) = nothing

@doc "$str" ->
push!(obj::MyObject, t::NTuple{2}) = nothing

But now query("push!") will show what are essentially duplicates (the method signatures will of course be different).
Any thoughts on whether there is a better way? Or should I just not do this? :smile:
There will be a related issue over at Lexicon shortly.

@timholy, bit belated, but this has been added in 6a7d5513f229c3068d778886577b2b15579c70a7 with the syntax (in this particular case):
"Add a pair to a MyObject queue."
(push!, MyObject, Any...)

using the new docstring syntax I'm working on.


What's inside block

This ticket is related to what's inside block rework. Here we have used same icon for multiple card items in authering we need to provide the same icon and multiple content items to display the multiple cards

Duplicate ticket for #82


How to enable other hints such as TypeHint rather than ParameterHint?

type hints work when the type on the LHS is auto


It now downloads alt text

Hover text is an important part of xkcd. Never miss it anymore!!

Awsome @BlitzKraft .
Did you test it? And please check whether the README needs any updation. :smile:

Yes, I have tested it. I ran the cli.py on command line. Works for all the options. Retrieves alt text.
There is an issue where the download-all stops with an error when there is no image in the comic. Added that to the known issues and todo list.

Merging it then. Thanks for the PR! :+1:


deprecated the client_tests to use the traffic_ops/testing/api instead

Refer to this link for build results (access rights to CI server needed):
https://builds.apache.org/job/incubator-trafficcontrol-PR/1226/
Test PASSed.


Memory Leak occurred when a for loop was add to the "HelloDirectML" Demo

Hi,
When I add a for loop to the HelloDirectML demo to run the operator continuously，I found the memory usage continue to grow at the same time, seems like a memory leak.
main.zip
for (int i = 0; i != 1000; ++i) {
        commandList->SetDescriptorHeaps(ARRAYSIZE(d3D12DescriptorHeaps), d3D12DescriptorHeaps);

        dmlCommandRecorder->RecordDispatch(commandList.get(), dmlCompiledOperator.get(), dmlBindingTable.get());

        CloseExecuteResetWait(d3D12Device, commandQueue, commandAllocator, commandList);

        std::this_thread::sleep_for(std::chrono::milliseconds(30));
}

Thanks for reporting this. It's likely that the D3D command allocator is never reset in this sample, so it will grow unbounded. We'll fix it soon. :)

Should be fixed now.


[Bug]: Error: Could not update item.

So i'm trying to update information and i got the error below:
Error: Could not update item.
    at update (https://deno.land/x/pentagon@v0.1.1/src/crud.ts:110:9)
    at eventLoopTick (ext:core/01_core.js:183:11)
    at async updateManyImpl (https://deno.land/x/pentagon@v0.1.1/src/pentagon.ts:156:10)
    at async updateImpl (https://deno.land/x/pentagon@v0.1.1/src/pentagon.ts:169:11)
    at async Database.updateUser (file:///Users/steve/code/my_projects/xxx/utils/db.ts:194:18)

Here's a redacted version of the table's zod schema
export const User = z.object({
  id: z.number().describe("primary, unique"),
  firstName: z.string(),
  lastName: z.string().optional(),
  nickname: z.string().describe("unique"),
  createdAt: z.date(),
  updatedAt: z.date().nullable(),
});

And here's how i'm calling the updateUser method
  await db.updateUser(ctx.from!.id, {
        firstName: this.firstName,
        lastName: this.lastName,
      })

+1
Experiencing the same issue
Same exact access pattern too

+1 Experiencing the same issue Same exact access pattern too

This really sucks. Right now i have to use the generic way of updating the database but it gets complicated with advanced keys which i have a lot.
I'd either have to replace this library with another stable one or go 100% generic

Hello, thanks for opening this issue! Will look into this bug ASAP! in the meanwhile, if one of you already has a minimal reproduction, that would help out a lot! :)

Hello, thanks for opening this issue! Will look into this bug ASAP! in the meanwhile, if one of you already has a minimal reproduction, that would help out a lot! :)

Sorry, i missed this.

Just created a reproduction, now looking for a fix

Fantastic! Looking forward to the fix. Whilst you're at it, please also try to validate whether the delete method works as i have yet to give it a try.

@waptik Hello, this particular issue is now fixed, but there is still another issue (findMany returning duplicates if multiple indexes #27 ), so I will try to fix it as well ASAP and then create a release.
Btw, you can refer to the regression tests created for this issue (there are some things in your example code such as having primary AND unique) which includes the working example! :)
I can let you know here when I create the release with the fixes 👍

Hi @skoshx , thanks for the fix. I really appreciate it. I haven't used anything other than .create() , .find() and .update().
I'm looking forward to a positive progress and future release based on fixes related to this issue

Hello @waptik , v0.1.2 is now released, with all the current known bugs fixed! :)

Hello @waptik , v0.1.2 is now released, with all the current known bugs fixed! :)

I can confirm that the bug i found has been fixed and no issue with findMany so far.
Thanks for help


Remove pa11y infrastructure from this documentation

Our pa11y build is broken causing all of our CI/CD to fail. I spend an hour trying to figure out how it works and un-break it, but I cannot figure out why it is failing, nor was I able to successfully get a pa11y audit working locally.
Given that:

We already test for some accessibility issues via Lighthouse
We do not have team knowledge of the pa11y infrastructure setup
That setup is now broken and can't easily be fixed
I didn't get any objections to the proposal to remove pa11y here.

This is a PR to remove pa11y from our documentation builds. It is unfortunate to remove some extra checks on accessibility, but I hope that we can make up for this by ensuring our Lighthouse builds are solid, and I think the tradeoff is worth the extra maintenance and complexity penalty we are paying.
closes https://github.com/pydata/pydata-sphinx-theme/issues/720

OK we have two 👍 - I'll plan to merge this in the next day or two unless anybody objects and proposes and alternate path forward.

OK, merging this one in! I am happy to review any future PRs that further improve upon our accessibility infrastructure via Lighthouse, or that find a way to build in pa11y support in a way that is sustainable/maintainable for our team of maintainers.


CHANGELOG doesn't describe 0.10.7

The CHANGELOG only goes up to 0.10.6, but 0.10.7 has been released. What's new in 0.10.7?

bmerry,
May I ask if you have been able to install 0.10.7 successfully?  I ask as I did a force reinstall and lost all functionality of this very helpful and needed package.  Thank you

Seems to be working for me.

This is now fixed.

Thanks!


Support external cluster cert signing processes

Enable users to use their own cluster cert signing process as an option. Continue with the default behavior of using self-signed CA cert and automating the process of signing the cluster cert.

Complete
https://github.com/aws-samples/aws-cloudhsm-cloudformation-template/commit/9d253078da8cf7739e2060866f0946a615bcab13


⚠ Fortnite has degraded performance

In bf007cd, Fortnite (https://fortnite.com) experienced degraded performance:

HTTP code: 200
Response time: 1639 ms

Resolved: Fortnite performance has improved in 271a7d4.


Segfault with --animation OBJ-cts

Problem with animation here. I tried to create frame-based animation in ospExampleViewer. When I import a sequence of static OBJ files it's OK, but, when I use --animation to create animated scene that segfault happens. I don't know where this exception was thrown. What's the problem?

hello, animations were broken on devel a while back.   It should work with an older version.  I can fix it, but I believe exampleViewer is currently being phased out in favor of "OSPRay Studio", which unfortunately does not currently support animations.

Ok, I see. Thank you


Allow multiple accounts

Allow user to generate multiple accounts on same browser by making local secret store unique.

Fixed with b616bb3654a2200a7355408c51f8d9f441be1c46


Tries to create project for an invalid language runner

Expected Behavior
If the language runner is not valid the project should not be created.
Actual Behavior
It creates the basic gauge structure for an invalid language runner
Steps to reproduce

mkdir testing
cd testing
create a project using invalid language runner name.

gauge --init sdf

Creates the basic gauge structure

Version
Gauge version: 0.4.1.nightly-2016-05-13

Plugins
-------
csharp (0.7.3.nightly-2016-05-13)
html-report (2.1.1.nightly-2016-05-13)
java (0.4.1.nightly-2016-05-13)
xml-report (0.1.2.nightly-2016-05-13)

this issue looks same as #396.
Fix should be available in nightly > 2016-05-15

@BugDiver
This is not because this leads to the issue
https://github.com/getgauge/gauge/issues/401


Move around the current PParams in the EpochState

In Conway EnactState type contains all the state that is control by governance, including current PParams. Currently, however, PParams are also stored in the EpochState as esPp. This results in two fields in the ledger state meaning the same thing, which is dangerous, even if they are kept in sync. This duplication can be voided by moving current PParams into the ShelleyGovernanceState for Shelley through Babbage eras. This will require a lens in the EraGovernance:
protocolParamsGovStateL :: Lens' (GovernanceState era) (PParams era)

Duplicate of #3550


make a copy of label across devices

what about here?
https://github.com/dpressel/mead-baseline/blob/7a543e93caeb99457ec9f257605bcb46f067086d/api-examples/pretrain-discrim.py#L429

i think you meant L411. Please see the update.


Read/Write buffer: fixed size

Installation specifics

Heating type: Vitotronic 200
Protocol: KW
Board: ESP8266

Symptom
Reading/Writing Datapoint KW with length > 4 does not work.
Extra info
First of all: Outstanding work!
I set MAX_DP_LENGTH to 8 to read  'cycle time' datapoints (DPRaw) with length 8, but got weird return values.
After digging into the code i figured out read/write buffers are limited to 4/6 bytes.
But i'm not an expert, so please have a look at my hack! :)
diff.txt

I tried to fix in the branch "MAX_DP_LENGTH".
Also applied to P300 protocol.


support leader being in its own subgroup

What would you like to be added:
Add the ability for the leader Pod to be in its own affinity group when using the subgroup feature.  For example, when deploying a leader Pod that should be scheduled on a CPU-only VM and worker Pods that should be scheduled on multiple TPU slices:
apiVersion: leaderworkerset.x-k8s.io/v1
kind: LeaderWorkerSet
metadata:
  name: my-lws
  annotations:
    leaderworkerset.sigs.k8s.io/subgroup-exclusive-topology: cloud.google.com/gke-nodepool
spec:
  replicas: 1
  leaderWorkerTemplate:
    subGroupPolicy:
      subGroupSize: 2
    size: 5
    leaderTemplate:
      spec:
        nodeSelector:
          cloud.google.com/machine-familty: n2
          node.kubernetes.io/instance-type: n2-standard-8
        containers:
        - name: leader
        ...
    workerTemplate:
      spec:
        nodeSelector:
          cloud.google.com/gke-tpu-accelerator: tpu-v5p-slice
          cloud.google.com/gke-tpu-topology: 2x2x2
        containers:
        - name: worker
          ...
          resources:
            limits:
              google.com/tpu: "4"

Currently the leader Pod is put in subgroup 0 which causes it to have the same affinity key as the workers in subgroup 0: https://github.com/kubernetes-sigs/lws/blob/main/pkg/webhooks/pod_webhook.go#L132.  This causes the leader Pod in my example to be unscheduable because of the CPU instance type node selectors.
Why is this needed:
To support deploying leader-worker architectures where the leader should be scheduled in separate topologies from the worker groups.
Completion requirements:
An option in subGroupPolicy that causes the leader to have its own affinity key.
This enhancement requires the following artifacts:

[ ] Design doc
[x] API change
[x] Docs update

The artifacts should be linked in subsequent comments.

@ahg-g

@Edwinhr716


spirv-val does not validate invalid ExtractComposite instruction

The attached SPIR-V contains invalid SPIR-V:
   %3475 = OpCompositeExtract %6 %3473 0
   %3476 = OpCompositeExtract %6 %3475 0

The second extract is trying to extract a float from a float (not legal)
%6 is type float.
A validator for SPIR-V should validate section 2.2.2 of the spec where it defines
what a composite is, and, couple that with the “ExtractComposite” instruction that
only operates on composite types.

SPIR-V file containing the error is located here: https://app.box.com/s/do85guirrzjir017igi7p4vwl2n2n63t

Hi Dan,
The validator is a work in progress and the type checking is not implemented in the current version.

I have actually fixed this via commit d1868b93618181cd765ea16aa4aec8de9f4d3b2b
I just ran the attached .spv file and got the following error (as expected):
error: 23182: OpCompositeExtract reached non-composite type while indexes still remain to be traversed.


updating web-token/jwt-signature and  web-token/jwt-key-mgmt

Is there an option to use: web-token/jwt-framework version 2.1 instead of requiring  "web-token/jwt-signature": "^1.0" and  "web-token/jwt-key-mgmt": "^1.0" ?
I can't resolve dependencies and i need to use web-token/jwt-framework version 2.1 in my project but i also need your library for webpush notifications.
Do you have in plan to soon update this library?

See #248

Available in v6 :)


KServe Blue Green Deployment issues with Virtual Service

Here's the Virtual Service
❯ k describe vs vit-classifier
Name:         vit-classifier
Namespace:    default
Labels:       <none>
Annotations:  <none>
API Version:  networking.istio.io/v1beta1
Kind:         VirtualService
Metadata:
  Creation Timestamp:  2023-11-22T17:09:06Z
  Generation:          3
  Owner References:
    API Version:     v1
    Kind:            configmap
    Name:            vit-classifier-routemap
    UID:             18a2f121-b763-499c-b2f2-8168de4de465
  Resource Version:  72552
  UID:               c77942e2-016d-4fa4-b3a6-5ea00dc957a4
Spec:
  Gateways:
    knative-serving/knative-ingress-gateway
    knative-serving/knative-local-gateway
    mesh
  Hosts:
    vit-classifier.default
    vit-classifier.default.svc
    vit-classifier.default.svc.cluster.local
  Http:
    Match:
      Headers:
        Branch:
          Exact:  vit-classifier-0
    Name:         vit-classifier-0
    Rewrite:
      Uri:  /v2/models/vit-classifier-0/infer
    Route:
      Destination:
        Host:  knative-local-gateway.istio-system.svc.cluster.local
      Headers:
        Request:
          Remove:
            branch
          Set:
            Host:  vit-classifier-0-predictor.default.svc.cluster.local
        Response:
          Add:
            App - Version:  vit-classifier-0
    Match:
      Headers:
        Branch:
          Exact:  vit-classifier-1
    Name:         vit-classifier-1
    Rewrite:
      Uri:  /v2/models/vit-classifier-1/infer
    Route:
      Destination:
        Host:  knative-local-gateway.istio-system.svc.cluster.local
      Headers:
        Request:
          Remove:
            branch
          Set:
            Host:  vit-classifier-1-predictor.default.svc.cluster.local
        Response:
          Add:
            App - Version:  vit-classifier-1
    Name:                   split
    Route:
      Destination:
        Host:  knative-local-gateway.istio-system.svc.cluster.local
      Headers:
        Request:
          Set:
            Branch:  vit-classifier-0
            Host:    vit-classifier.default
      Weight:        70
      Destination:
        Host:  knative-local-gateway.istio-system.svc.cluster.local
      Headers:
        Request:
          Set:
            Branch:  vit-classifier-1
            Host:    vit-classifier.default
      Weight:        30
Events:              <none>

Which doesn't work
/demo $ curl -H 'Content-Type: application/json'  http://vit-classifier.default/v1/models -s -D -
HTTP/1.1 404 Not Found
content-length: 22
content-type: application/json
date: Wed, 22 Nov 2023 17:33:49 GMT
server: envoy
x-envoy-upstream-service-time: 6
app-version: vit-classifier-1

But if i change
Headers:
        Request:
          Set:
            Branch:  vit-classifier-1
            Host:    vit-classifier.default

to
Headers:
        Request:
          Set:
            Branch:  vit-classifier-1
            Host:    vit-classifier-0-predictor.default.svc.cluster.local

It works!
❯ k describe vs/vit-classifier
Name:         vit-classifier
Namespace:    default
Labels:       <none>
Annotations:  <none>
API Version:  networking.istio.io/v1beta1
Kind:         VirtualService
Metadata:
  Creation Timestamp:  2023-11-22T17:09:06Z
  Generation:          10
  Owner References:
    API Version:     v1
    Kind:            configmap
    Name:            vit-classifier-routemap
    UID:             18a2f121-b763-499c-b2f2-8168de4de465
  Resource Version:  86112
  UID:               c77942e2-016d-4fa4-b3a6-5ea00dc957a4
Spec:
  Gateways:
    knative-serving/knative-ingress-gateway
    knative-serving/knative-local-gateway
    mesh
  Hosts:
    vit-classifier.default
    vit-classifier.default.svc
    vit-classifier.default.svc.cluster.local
  Http:
    Match:
      Headers:
        Branch:
          Exact:  vit-classifier-0
    Name:         vit-classifier-0
    Rewrite:
      Uri:  /v2/models/vit-classifier-0/infer
    Route:
      Destination:
        Host:  knative-local-gateway.istio-system.svc.cluster.local
      Headers:
        Request:
          Remove:
            branch
          Set:
            Host:  vit-classifier-0-predictor.default.svc.cluster.local
        Response:
          Add:
            App - Version:  vit-classifier-0
    Match:
      Headers:
        Branch:
          Exact:  vit-classifier-1
    Name:         vit-classifier-1
    Rewrite:
      Uri:  /v2/models/vit-classifier-1/infer
    Route:
      Destination:
        Host:  knative-local-gateway.istio-system.svc.cluster.local
      Headers:
        Request:
          Remove:
            branch
          Set:
            Host:  vit-classifier-1-predictor.default.svc.cluster.local
        Response:
          Add:
            App - Version:  vit-classifier-1
    Name:                   split
    Route:
      Destination:
        Host:  knative-local-gateway.istio-system.svc.cluster.local
      Headers:
        Request:
          Set:
            Branch:  vit-classifier-0
            Host:    vit-classifier-1-predictor.default.svc.cluster.local
        Response:
          Add:
            App - Version:  vit-classifier-0
      Weight:               70
      Destination:
        Host:  knative-local-gateway.istio-system.svc.cluster.local
      Headers:
        Request:
          Set:
            Branch:  vit-classifier-1
            Host:    vit-classifier-0-predictor.default.svc.cluster.local
        Response:
          Add:
            App - Version:  vit-classifier-1
      Weight:               30

/demo $ curl -H 'Content-Type: application/json'  http://vit-classifier.default/v1/models -s -D -
HTTP/1.1 200 OK
content-length: 27
content-type: application/json
date: Wed, 22 Nov 2023 17:40:48 GMT
server: envoy
x-envoy-upstream-service-time: 4
app-version: vit-classifier-0

/demo $ curl -H 'Content-Type: application/json'  http://vit-classifier.default/v1/models -s -D -
HTTP/1.1 200 OK
content-length: 27
content-type: application/json
date: Wed, 22 Nov 2023 17:40:49 GMT
server: envoy
x-envoy-upstream-service-time: 3
app-version: vit-classifier-1

{"models":["imagenet-vit"]}

@satyajitghana could you share the commands you used to start the test?

Here's the deployment: https://github.com/satyajitghana/canary-argocd-iter8-kserve/blob/master/vit-classifier/values.yaml
It was used with iter8 release helm chart
after which
I used the example container mentioned in iter8 blue green deployment
kubectl exec --stdin --tty "$(kubectl get pod --sort-by={metadata.creationTimestamp} -l app=sleep -o jsonpath={.items..metadata.name} | rev | cut -d' ' -f 1 | rev)" -c sleep -- /bin/sh

and tried to run
curl -H 'Content-Type: application/json'  http://vit-classifier.default/v1/models -s -D -

this simply tries to list the models
What I've observed is that,
this endpoint works fine
vit-classifier-0-predictor.default.svc.cluster.local

but this doesn't
vit-classifier.default

If i set the headers in curl it works
curl -H 'Content-Type: application/json' -H "Host: vit-classifier-0-predictor.default.svc.cluster.local"  http://vit-classifier.default/v1/models -s -D -

Also one more thing, how do i add additional domain name to my deployment?
NAME                                 GATEWAYS                                                                                HOSTS                                                                                AGE
vit-classifier                       ["knative-serving/knative-ingress-gateway","knative-serving/knative-local-gateway","mesh"]   ["vit-classifier.default","vit-classifier.default.svc","vit-classifier.default.svc.cluster.local"]                                                                                41m
vit-classifier-0                     ["knative-serving/knative-local-gateway","knative-serving/knative-ingress-gateway"]          ["vit-classifier-0.default.svc.cluster.local","vit-classifier-0.default.emlo.tsai"]                                                                                41m
vit-classifier-0-predictor-ingress   ["knative-serving/knative-ingress-gateway","knative-serving/knative-local-gateway"]          ["vit-classifier-0-predictor.default","vit-classifier-0-predictor.default.emlo.tsai","vit-classifier-0-predictor.default.svc","vit-classifier-0-predictor.default.svc.cluster.local"]   41m
vit-classifier-0-predictor-mesh      ["mesh"]                                                                                ["vit-classifier-0-predictor.default","vit-classifier-0-predictor.default.svc","vit-classifier-0-predictor.default.svc.cluster.local"]                                                  41m
vit-classifier-1                     ["knative-serving/knative-local-gateway","knative-serving/knative-ingress-gateway"]          ["vit-classifier-1.default.svc.cluster.local","vit-classifier-1.default.emlo.tsai"]                                                                                41m
vit-classifier-1-predictor-ingress   ["knative-serving/knative-ingress-gateway","knative-serving/knative-local-gateway"]          ["vit-classifier-1-predictor.default","vit-classifier-1-predictor.default.emlo.tsai","vit-classifier-1-predictor.default.svc","vit-classifier-1-predictor.default.svc.cluster.local"]   41m
vit-classifier-1-predictor-mesh      ["mesh"]                                                                                ["vit-classifier-1-predictor.default","vit-classifier-1-predictor.default.svc","vit-classifier-1-predictor.default.svc.cluster.local"]                                                  41m

Here you can see all Virutal Service have default.emlo.tsai but not vit-classifier which was created by iter8 controller. I've set the domain in KNative Serving using
kubectl patch configmap/config-domain \
      --namespace knative-serving \
      --type merge \
      --patch '{"data":{"emlo.tsai":""}}'

Also one more thing, how do i add additional domain name to my deployment?

This is not a feature we considered. I am not familiar with config change you made. Is the requirement to just add the domain name to the list already provided? Or to replace it? Perhaps you could create a separate issue for this feature request?

@satyajitghana Is the issue resolved? Can this issue be closed?
Also, if you're starting to use Iter8, could we request you to kindly add yourself to this list of adopters?
We are looking to approach CNCF soon, and hoping to drive up adoption in the lead up to that.

and tried to run

curl -H 'Content-Type: application/json'  http://vit-classifier.default/v1/models -s -D -

Please try:
curl -H 'Content-Type: application/json'  http://vit-classifier.default -s -D -

That is, remove the /v1/models. The virtual service that Iter8 creates identifies this hostname (vit-classifier.default) and rewrites the headers. In particular, adds the branch header. Another part of the virtual service then matches on this, rewrites the header/url and (finally) sends the request the blue or green endpoint.
When. you use the full host (-H "Host: vit-classifier-0-predictor.default.svc.cluster.local") you are sending the request to just this endpoint (the blue version) without the possibility of sending it to the green version.

I've this also, the same issue, same error. were you able to reproduce it?

Also one more thing, how do i add additional domain name to my deployment?

This is not a feature we considered. I am not familiar with config change you made. Is the requirement to just add the domain name to the list already provided? Or to replace it? Perhaps you could create a separate issue for this feature request?

okay, agreed, should be a different issue.
the thing is i wanted to use iter8 as it works with KServe Raw Deployment, rather than using KNative with KServe.

@satyajitghana Is the issue resolved? Can this issue be closed?
Also, if you're starting to use Iter8, could we request you to kindly add yourself to this list of adopters?
We are looking to approach CNCF soon, and hoping to drive up adoption in the lead up to that.

We're not really using K8S in my company right now, but in a very small scale. I am teaching a course of MLOps of The School Of AI, where i teach all the ways of deploying a model on K8S, and i landed on Iter8 as it gives a way to deploy a version and test it.


[SPARK-18873][SQL][TEST] New test cases for scalar subquery (part 1 of 2) - scalar subquery in SELECT clause

What changes were proposed in this pull request?
This PR adds new test cases for scalar subquery in SELECT clause.
How was this patch tested?
The test result is compared with the result run from another SQL engine (in this case is IBM DB2). If the result are equivalent, we assume the result is correct.

Attached are a slightly modified version of the submitted test file to adapt to IBM DB2 syntax, and the result of the run.
Modified version of the test file
Run result from DB2

Test build #72035 has started for PR 16712 at commit 48ff3c7.

@kevinyu, @gatorsmile. Also FYI to @hvanhovell.

Test build #72035 has finished for PR 16712 at commit 48ff3c7.

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

Merged build finished. Test PASSed.

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

The part-2 is for scalar subquery in predicates.

Thank you, @gatorsmile, for your time reviewing this test PR. I will wait for your suggestion on the pattern of the literals in the first columns of the tables if you do need to have them changed. Then I will make necessary changes to the files and do another push.

uh, I see. Maybe you can improve the PR title to
[SPARK-18873][SQL][TEST] New test cases for scalar subquery (part 1 of 2) - scalar subquery in SELECT clause

Test build #72171 has started for PR 16712 at commit 818df9e.

These two commands should give you the delta of the changes I made to address your comments.
https://github.com/apache/spark/pull/16712/commits/0db0bc3a1896c6187b42e04ac2fd11a67769007c
https://github.com/apache/spark/pull/16712/commits/818df9e75625354cb84af15a9f616e8d7f0ecf24

Test build #72171 has finished for PR 16712 at commit 818df9e.

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

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

Merged build finished. Test PASSed.

LGTM. cc @hvanhovell for final sign off

LGTM - merging to master. Thanks!

: ) Let me merge it to master.


[FEATURE] Build mechanism to store feedback regarding the assistant

Is your feature request related to a problem?
The assistant needs a proper feedback mechanism to store feedback information from the assistant, so it can be used to later improve and iterate on the assistant.

This could potentially save confidential information of the users on the cluster, so this should be in a system index to protect the data. Then only the super admin would be able to access the data in the security enabled cluster.


Add possibility of easy translation to other languages

Hi tweakunwanted,
Please see https://github.com/R3tr0R4z0r/OpenXC-Player.
I forked and translated to English in mine using the idioma.php
I am still in the process of verifying the translation and how well it works.
In addition i have added a note to the readme.md with install instructions for English version.
Feel free to integrate it into your master repo.


request help: 大概什么时候会出新的release版本，我看也快两个月过去了

大概什么时候会出新的release版本，我看也快两个月过去了

On the way, 1.2 rc1 has launched already.

@fanandactuaility Please use English in the public channel, thx
the 1.2 already released

Thank you for your answer.


Git version tags

Can you tag version of  your code, please?

I second this motion.  Even just a v0.0.1 tag on the top of master would be better than nothing

yes please everybody wants to fixate their dependencies versions.

Definitely yes, please!

Duplicate of #412


Use https for GitHub link

Description
This reduces unnecessary redirection from http://... to https://... when someone visits this gem's homepage via https://rubygems.org/gems/draper or some tools or APIs that use the gem's metadata.

@mishina2228 Thanks!


A lone hyphen in NDJSON is changed when read/written

Repro is with zq commit 2fe0e93.
$ echo '{"Hyphen": "-"}' | zq -f ndjson -
{"Hyphen":"\\u002d"}

I don't see the problem if the hyphen is embedded in other text.
$ echo '{"Hyphen": "foo-bar"}' | zq -f ndjson -
{"Hyphen":"foo-bar"}

jq has no problem with this:
$ echo '{"Hyphen": "-"}' | jq -c .
{"Hyphen":"-"}

Verified in zq commit b20a71ba. The lone hyphen is no longer escaped.
$ zq -version
Version: v0.23.0-59-gb20a71ba

$ echo '{"Hyphen": "-"}' | zq -f ndjson -
{"Hyphen":"-"}

Thanks @nwt!


Bug in new docs

See for example here. I'm not very sure what is dtype=<Mock name='mock.float32' id='140046414661200'> here.

Was due to numpy is blacklisted by using mock module, because numpy is not available in build machine. c.f. https://github.com/dmlc/mxnet/blob/master/docs/conf.py#L30
We should change default parameter to string type perhaps

Documents are updated. Closing it for now due to inactivity. Please feel free to reopen it for followup discussions.


Have a volunteering type dropdown for the volunteering application form

Upon consulting to https://journify.co/ founder Lamia and https://usepanda.com/ founder Ahmet and designer Siemon fro COVID accelerator, we should have a dropdown for volunteering type. We will need it organisational purposes in the future anyways. But it will convey legitimacy now as well.
We could have an enum column named team or role. Any better descriptions are welcome.
It should be the first item in the list. The dropdown should list the roles in the order they are presented at the page. There should be an "Other" option at the bottom. We should write not selected and "Other" options as nil to the DB.

@hantuzun what "type" of volunteers are we thinking ?

7 options:
The 5 types listed on the page now + "Operations Team" + "Other"
I'm going to try to name the teams now

@hantuzun so we are calling them teams? Something like:
class Volunteer < ApplicationRecord
  enum team: ["Help nurses in hospitals", ...]
  validates :email, presence: true, format: /\b[A-Z0-9._%a-z\-]+@(?:[A-Z0-9a-z\-]+\.)+[A-Za-z]{2,4}\z/
  validates :phone, presence: true, format: /\A\+?[\d\(\)\-\ ]{7,}\z/
  validates :name, :about, presence: true
  validates :email, uniqueness: true
end

Well yes, something along those lines. We should have the enum in the DB as well.

We are planning to have the following groups:

"Hospital Support" (Help nurses in hospitals)
"Triage Support" (Triage for patients at home: Telephone triage support & Mobile triage support)
"Healthcare Support" (Give care to dependents of healthcare workers)
"Elderly Support" (Cater to the needs of the elderly & those in need)
"Operations Support" (Helping the platform, coordinating the efforts of field staff)
"Research Communication" (Curate academic research for busy doctors: Researchers & ambassadors. Details: https://www.notion.so/Research-Communications-Team-4e02f9996dbf42dbb06b579a005b25d2) What about "Research Support"?

How do these names sound?
Then there is a question of how to call these groups. Because "Hospital Support Group", for instance, is misleading.

I like this names:
"Hospital Support Units"
"Triage Support Units"
"Healthcare Support Units"
"Elderly Support Units"
"Operations Support Units"
"Research Support Units"

They're specific enough. When calling the db column out of an instance of a volunteer could be something like volunteer.support_unit #=> "Hospital"

I like "Units" too. Let's get a few more opinions too.

Enums should be lowercase. I like this guide: https://sipsandbits.com/2018/04/30/using-database-native-enums-with-rails/
class Post < ApplicationRecord
  enum status: {
    draft: "draft",
    reviewed: "reviewed",
    published: "published"
  }
end

Enums should be lowercase. I like this guide: https://sipsandbits.com/2018/04/30/using-database-native-enums-with-rails/
class Post < ApplicationRecord
  enum status: {
    draft: "draft",
    reviewed: "reviewed",
    published: "published"
  }
end

Thinking about using integers for keys

I like "Units" too. Let's get a few more opinions too.

I'd like to be specific I don't know what you think about support_unit.
class Volunteer < ApplicationRecord
  enum support_unit {
    "Hospital" => 0,
    "Triage" => 1,
    "Healthcare" => 2,
    "Elderly" => 3,
    "Operations" => 4,
    "Research" => 5,
  }
  validates :email, presence: true, format: /\b[A-Z0-9._%a-z\-]+@(?:[A-Z0-9a-z\-]+\.)+[A-Za-z]{2,4}\z/
  validates :phone, presence: true, format: /\A\+?[\d\(\)\-\ ]{7,}\z/
  validates :name, :about, presence: true
  validates :email, uniqueness: true
end

I'm fine with support_unit.

But could you have a look at the title "Integer columns are hard to understand without actual context" of https://sipsandbits.com/2018/04/30/using-database-native-enums-with-rails/ ?
Also @kopchickm and @ScottDuane might have something to say about this issue.

Ok I'll wait for their feedback

No need to :)
Are you okay with the following as recommended in the article?
class Volunteer < ApplicationRecord
  enum group: {
    hospital: "hospital",
    triage: "triage",
    healthcare: "healthcare",
    elderly: "elderly",
    research: "research",
    operations: "operations",
    other: "other"
  }
  ...
end

A mentor recommends using:

"Hospital Groups"
"Triage Groups"
"Healthcare Groups"
"Elderly Groups"
"Operations Groups"
"Research Groups"

What do you think?

@hantuzun that could also work. Want to with Groups instead?

No need to :)
Are you okay with the following as recommended in the article?
class Volunteer < ApplicationRecord
  enum group: {
    hospital: "hospital",
    triage: "triage",
    healthcare: "healthcare",
    elderly: "elderly",
    research: "research",
    operations: "operations",
    other: "other"
  }
  ...
end

A mentor recommends using:

"Hospital Groups"
"Triage Groups"
"Healthcare Groups"
"Elderly Groups"
"Operations Groups"
"Research Groups"

What do you think?

She changed her mind :D
What do you think about "Crews"?

"Hospital Crews"
"Triage Crews"
"Healthcare Crews"
"Elderly Crews"
"Operations Crews"
"Research Crews"

Oooh I don't know about that one. Crew is a terminology used in hospitals as well as staff. And we need to make the distinction between a "volunteer" and a staff member

"Crew is a terminology used in hospitals as well as staff. And we need to make the distinction between a "volunteer" and a staff member"

Yes... But wouldn't they be just called "volunteers" at the hospital?


Remove check merges cleanly into compatible job from PRs -> release/2.0.0 ONLY

At present CI for PRs targetting release/2.0.0 are failing due to the unncesessary check merges cleanly into compatible job. This needs to be disabled ONLY for PRs targetting this branch.


Add brand guidelines page

The current brand guidelines live in https://github.com/cucumber-ltd/brand as a PDF.
We'd like to deprecate that PDF in favour of an HTML version of it, easily reachable on the website (cucumber.io/brand?).

[ ] Import content from the PDF into an HTML page
[ ] Review all guidelines for obsolete information, don't forget to:

[ ] Review colours
[ ] Fix font guidelines https://github.com/cucumber-ltd/brand/issues/3

I'm closing this as I don't want it hanging round in the backlog, and it feels like Romain has more important things to do. That said, I don't mind if you want to re-open this and JFDI :)


Get puppeteer + vite tests running

we have a docusaurus website running locally
and somehow even the jest tests are “working” when we run yarn test node,
however we get silent failure on browser tests:
when we comment out all modules, it starts but browser doesn’t find index.html on the specified port.

fixed in 9aaeb0261e28ec6f2f358f1dbb99d7118998c12d


In My project when I run the program, there was and error with the following message. "DATA XMLHttpRequest error.Error.

Hi @saiko123
can you please provide your flutter doctor -v
and your flutter run --verbose?
Also, to better address the issue, would be helpful
if you could post  a minimal code sample
or the steps to reproduce the problem.
Please refrain from posting pictures if not necessary.
Thank you

Hi iapicca,
thank you for your reply. here is my terminal result after i run flutter doctor -v

This is some of my code calling the API.

Hi @saiko123
Please refrain from posting pictures if not necessary.
Can you please provide flutter run --verbose ?
Thank you

@iapicca same issue over here
Result of --verbose
[  +30 ms] /usr/bin/xcrun simctl list --json devices
[ +131 ms] Artifact Instance of 'AndroidMavenArtifacts' is not required, skipping update.
[        ] Artifact Instance of 'AndroidGenSnapshotArtifacts' is not required, skipping update.
[        ] Artifact Instance of 'AndroidInternalBuildArtifacts' is not required, skipping update.
[        ] Artifact Instance of 'IOSEngineArtifacts' is not required, skipping update.
[   +1 ms] Artifact Instance of 'WindowsEngineArtifacts' is not required, skipping update.
[        ] Artifact Instance of 'MacOSEngineArtifacts' is not required, skipping update.
[        ] Artifact Instance of 'LinuxEngineArtifacts' is not required, skipping update.
[        ] Artifact Instance of 'LinuxFuchsiaSDKArtifacts' is not required, skipping update.
[        ] Artifact Instance of 'MacOSFuchsiaSDKArtifacts' is not required, skipping update.
[        ] Artifact Instance of 'FlutterRunnerSDKArtifacts' is not required, skipping update.
[        ] Artifact Instance of 'FlutterRunnerDebugSymbols' is not required, skipping update.
[  +51 ms] More than one device connected; please specify a device with the '-d <deviceId>' flag, or use '-d all' to act on all devices.
[  +59 ms] Chrome     • chrome     • web-javascript • Google Chrome 80.0.3987.87
[   +1 ms] Web Server • web-server • web-javascript • Flutter Tools
[  +14 ms] "flutter run" took 2,112ms.

#0      throwToolExit (package:flutter_tools/src/base/common.dart:14:3)
#1      RunCommand.validateCommand (package:flutter_tools/src/commands/run.dart:332:7)
<asynchronous suspension>
#2      FlutterCommand.verifyThenRunCommand (package:flutter_tools/src/runner/flutter_command.dart:649:11)
<asynchronous suspension>
#3      FlutterCommand.run.<anonymous closure> (package:flutter_tools/src/runner/flutter_command.dart:567:33)
<asynchronous suspension>
#4      AppContext.run.<anonymous closure> (package:flutter_tools/src/base/context.dart:150:29)
#5      _rootRun (dart:async/zone.dart:1126:13)
#6      _CustomZone.run (dart:async/zone.dart:1023:19)
#7      _runZoned (dart:async/zone.dart:1518:10)
#8      runZoned (dart:async/zone.dart:1465:12)
#9      AppContext.run (package:flutter_tools/src/base/context.dart:149:18)
#10     FlutterCommand.run (package:flutter_tools/src/runner/flutter_command.dart:557:20)
#11     CommandRunner.runCommand (package:args/command_runner.dart:197:27)
#12     FlutterCommandRunner.runCommand.<anonymous closure> (package:flutter_tools/src/runner/flutter_command_runner.dart:338:21)
<asynchronous suspension>
#13     AppContext.run.<anonymous closure> (package:flutter_tools/src/base/context.dart:150:29)
#14     _rootRun (dart:async/zone.dart:1126:13)
#15     _CustomZone.run (dart:async/zone.dart:1023:19)
#16     _runZoned (dart:async/zone.dart:1518:10)
#17     runZoned (dart:async/zone.dart:1465:12)
#18     AppContext.run (package:flutter_tools/src/base/context.dart:149:18)
#19     FlutterCommandRunner.runCommand (package:flutter_tools/src/runner/flutter_command_runner.dart:288:19)
#20     CommandRunner.run.<anonymous closure> (package:args/command_runner.dart:112:25)
#21     new Future.sync (dart:async/future.dart:224:31)
#22     CommandRunner.run (package:args/command_runner.dart:112:14)
#23     FlutterCommandRunner.run (package:flutter_tools/src/runner/flutter_command_runner.dart:231:18)
#24     run.<anonymous closure>.<anonymous closure> (package:flutter_tools/runner.dart:64:22)
#25     _rootRun (dart:async/zone.dart:1126:13)
#26     _CustomZone.run (dart:async/zone.dart:1023:19)
#27     _runZoned (dart:async/zone.dart:1518:10)
#28     runZoned (dart:async/zone.dart:1502:12)
#29     run.<anonymous closure> (package:flutter_tools/runner.dart:62:18)
<asynchronous suspension>
#30     AppContext.run.<anonymous closure> (package:flutter_tools/src/base/context.dart:150:29)
#31     _rootRun (dart:async/zone.dart:1126:13)
#32     _CustomZone.run (dart:async/zone.dart:1023:19)
#33     _runZoned (dart:async/zone.dart:1518:10)
#34     runZoned (dart:async/zone.dart:1465:12)
#35     AppContext.run (package:flutter_tools/src/base/context.dart:149:18)
#36     runInContext (package:flutter_tools/src/context_runner.dart:64:24)
#37     run (package:flutter_tools/runner.dart:51:10)
#38     main (package:flutter_tools/executable.dart:65:9)
#39     main (file:///usr/local/Cellar/flutter/dev/packages/flutter_tools/bin/flutter_tools.dart:8:3)
#40     _startIsolate.<anonymous closure> (dart:isolate-patch/isolate_patch.dart:299:32)
#41     _RawReceivePortImpl._handleMessage (dart:isolate-patch/isolate_patch.dart:168:12)

SOLVED !!!
try this
https://stackoverflow.com/a/14469443/13059465


Bugfixing

Found some bugs preventing the data generation via templates.
MAC address did not have a proper template function and "ConnectiveComparative" had a typo

Nice catch!


Fix DyNAS-T Hardware-Aware-Transformers Search

In the notebook [1] when plotting columns were not named properly, which caused errors. In this change this problem is fixed.
Additionally, the version of the DyNAS-T was bumped up to 1.5.2, which is aligned with the version installed in other available examples.
[1] examples/notebook/dynas/Transformer_LT_Supernet_NAS.ipynb

Thanks for fixing the spelling check. Could not find the previous PR that had this issue fixed to apply it to this one. Appreciated!


Run code

You can now run code in any of over 600 language using tio.run. With the command .run, that is.
Still a WIP, some bugs, but mostly functional.

Current bug: only allows one-word inputs such as print('something') as if you add more, it is seen as another argument.


Exceptions from XML docs doesn't work for all types

Extracting exceptions from XML doc doesn't seem to work on all types, whether in the same project or a dependency project, or class library.
Currently only works for .NET class library types.

I should resolve types from the Compilation, instead of the assembly in which the symbol is in.

Fixed


Cargo builders

@bors-servo r+

:pushpin: Commit 30ca9c4 has been approved by larsbergstrom

:hourglass: Testing commit 30ca9c4 with merge db70ea3...

:sunny: Test successful - travis


Fix offset and slope definitions for Linear Pauli Rotations (#9861)

Summary

[ ] * Fix offset  definitions for Linear Pauli Rotations

[ ] * Fix slope  definitions for Linear Pauli Rotations

A little bit of math
For a register of state qubits $\ket{x}$, a target qubit $\ket{0}$ the operation $Y$ of a linear  rotation on a zero-input qubit is:
$$|x\rangle |0\rangle \mapsto \cos(ax + b)|x\rangle|0\rangle + \sin(ax + b)|x\rangle |1\rangle$$
with $a=$ slope/2 and $b=$ offset/2.

link issue: https://github.com/Qiskit/qiskit-terra/issues/9861#issuecomment-1492126522
link documentation: https://arxiv.org/pdf/1806.06893.pdf,

Pull Request Test Coverage Report for Build<PHONE_NUMBER>

0 of 0   changed or added relevant lines in 0 files are covered.
No unchanged relevant lines lost coverage.
Overall coverage increased (+0.0005%) to 85.411%

Totals

Change from base Build<PHONE_NUMBER>:
0.0005%

Covered Lines:
67374

Relevant Lines:
78882

💛  - Coveralls


Added a settings page.

No more XML editing! I also attempted to clean up a few areas.
Here is what it looks like in game:

this is great. I'll pull it down tonight and check it out and try and get it released. ignore the build failure, I should have killed the appveyour project for this a while ago

I need to fix our thing before you merge. I just realized that even if you don't click save that the changes will still apply in game....  They just won't be saved to disk.

Okay, should be ready now. Let me know if I need to fix anything

How does this look? Do I need to fix anything?

hey, real life got in the way. I'm going to merge this in now but I suspect that After Dark might cause some overall breaking change with some of the new transport stuff. Not sure if releasing now makes sense or waiting until after AD is released.

It's all good. I know how that can be. You make a good point about After Dark. Many things could break. The only reason why it might be smart to merge now is because of the improvements to logging I made.
Maybe instead of merging this directly to master, maybe you should create an AfterDark branch. This can be pulled into that so the logging improvements can be used to fix any bugs that come up. Once that branch is stable, it can be merged to master and released.

Good call. Just created that branch with these changes. Hopefully with the new release things will go smoothly and it'll be a nice new polished mod for everyone revisiting the game with the new content.
I don't think there will be breaking changes, but based on how things like stations were included as a "route" make me worry about some of the new transport options. Hopefully they kept it simple, but you never know.
I'll leave this open and let it close automatically once we merge the after-dark branch into master

Awesome. If you find anything in that branch that needs to be fixed, let me know. Hopefully the amount of breaking changes is small.

well, good news and bad news. Good news is this PR fixed a null reference exception that was thrown. So I went ahead and published it to keep the game from crashing. The bad news is it looks it is detecting lines and applying colors but they aren't sticking. I'm at work right now so my debugging time is limited until tonight


TypeError: 'LineString' object is not iterable

Hello,
While running a program, the following arises in my system but runs well with my colleague. Only difference between us is the version of Shapely. I have downloaded the most recent version of shapely and my colleague is using Shapely.1.6.4.post2. Now Iam not able to install the older version of shapely too. Any help regarding this will be appreciated.
The error is as following...
Traceback (most recent call last):
File "E:\python\contour.py", line 128, in
giv = ps.ContourIntersection(Qm[0],Qm[1],w,d,Qback=Qm[2],gridPoints=200,nMin=nMin,nMax=nMax,kMin=kMin,kMax=kMax,axisOption=1,fig=fig1,ax=ax4)
File "C:\Users\Asus\AppData\Local\Programs\Python\Python38\lib\site-packages\PyMieScatt\Inverse.py", line 200, in ContourIntersection
m2 = find_intersections(scaChart,backChart)
File "C:\Users\Asus\AppData\Local\Programs\Python\Python38\lib\site-packages\PyMieScatt\Inverse.py", line 587, in find_intersections
for s in sol:
TypeError: 'LineString' object is not iterable

The LineString class is not iterable and was not iterable in version 1.6.4.post2. There must be some other factors involved.
$ pip list | grep Shapely
Shapely            1.6.4.post2
$ python
Python 3.6.8 (v3.6.8:3c6b436a57, Dec 24 2018, 02:04:31)
[GCC 4.2.1 Compatible Apple LLVM 6.0 (clang-600.0.57)] on darwin
Type "help", "copyright", "credits" or "license" for more information.
>>> from shapely.geometry import LineString
>>> list(LineString())
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
TypeError: 'LineString' object is not iterable

怎么样，问题解决了吗

@anzixuan555 "how, is the problem solved?" try using the .coords property:
from shapely.geometry import LineString

ls = LineString([(1.0, 2.0), (3.0, 4.0)])
for coord in ls.coords:
    print(coord)

be aware that other geometry types will store their coordinates differently, and this will only work for LineString and LinearRing types.

@anzixuan555 "how, is the problem solved?" try using the .coords property:
from shapely.geometry import LineString

ls = LineString([(1.0, 2.0), (3.0, 4.0)])
for coord in ls.coords:
    print(coord)

be aware that other geometry types will store their coordinates differently, and this will only work for LineString and LinearRing types.

我试着加上coords了，错误变成了
raise NotImplementedError(
NotImplementedError: Multi-part geometries do not provide a coordinate sequence.
我对shapely不了解。


Fix pre-commit issues

Thanks for checking this out, @feluelle ! I'm relieved to see the pre-commit bot didn't change the order of settings in the benchmark - but why/how?


Message width overflow

Fix bug where message overflows slightly if too long

Added issue to source repository https://github.com/fayeed/dash_chat/issues/65


ci(travis): Move fast_finish to jobs key

:house: Internal

Consolidated the matrix and jobs configuration in .travis.yml, since those two keys override each other.  This was causing Travis to run the default test script (yarn test) instead of running both the test and lint steps as desired (closes https://github.com/hshoff/vx/issues/638).

Note: the CI build for this this will (correctly) fail, since the linter will throw errors until https://github.com/hshoff/vx/pull/639 is merged. I've rebased over the latest master and force pushed, so I'd expect CI to pass now 🤞

Below are the speed results from my experiments in #641 for parallel linting + testing vs a single step that runs them sequentially. Overall the sequential job runs in about the amount of time as a single lint or test job (likely because it has to completely setup and yarn install the project for each parallel job as mentioned in #638).
So we don't get a speed gain by running them in parallel, but practically it doesn't make a huge difference since they're done in 8-9 min. All else equal, it seems like there is a benefit of keeping the tasks separate so you can identify which failed in the UI. Given that this is a strict improvement I think we should just merge it 🚀
Running test + lint in parallel

Running test + lint sequentially

Below are the speed results from my experiments in #641 for parallel linting + testing vs a single step that runs them sequentially. Overall the sequential job runs in about the amount of time as a single lint or test job (likely because it has to completely setup and yarn install the project for each parallel job as mentioned in #638).
So we don't get a speed gain by running them in parallel, but practically it doesn't make a huge difference since they're done in 8-9 min. All else equal, it seems like there is a benefit of keeping the tasks separate so you can identify which failed in the UI. Given that this is a strict improvement I think we should just merge it 🚀
Running test + lint in parallel link

Running test + lint sequentially link

Right on, thanks for benchmarking it!  Yeah, unfortunately the bulk of the time is taken by installing and building, so the parallelization doesn't speed things up much.  Agreed that it does make it clearer at a glance whether linting or testing caused the build to fail, so it doesn't hurt to keep them split up.


fix: cleans up principals lambda logic to separate policy doc

what

Clean up of the logic surrounding the var.principals_lambda policies

why

When this was originally implemented it was copy / pastad across multiple policy docs, which isn't necessary and creates a bunch of bloat.

references

Discovered in #98
Originally introduced in #88

/terratest

/terratest

/terratest


StaticArrays 0.12.1 compatibility

also enabling local copy of Base.reindex for all Julia version

Codecov Report

Merging #7 into master will increase coverage by 0.15%.
The diff coverage is 38.88%.

@@            Coverage Diff             @@
##           master       #7      +/-   ##
==========================================
+ Coverage    70.9%   71.05%   +0.15%
==========================================
  Files           9        9
  Lines         464      463       -1
==========================================
  Hits          329      329
+ Misses        135      134       -1

Impacted Files
Coverage Δ

src/ssubarray.jl
47.58% <38.88%> (+0.32%)
:arrow_up:

Continue to review full report at Codecov.

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


FoundationApi.publish('..', 'toggle') causes $digest already in progress error

I'm using dist/foundation-apps.js and calling FoundationApi.publish('[id_of_my_panel_goes_here]', 'toggle') on one of my controllers causes a $digest already in progress error. Digging through the codes, line number 2452 (of dist/foundation-apps.js) should be wrapped in an if(!scope.$root.$$phase) like so:
      if(!scope.$root.$$phase) {
        scope.$apply();
      }

@excessivedemon This issue is currently fixed in master, so you are free to pull that down and see if your controller is functioning as expected there.
Otherwise, we're releasing our 1.1 patch today that resolves this issue and will have a new foundation-apps.js file available.
Thanks!


Updated dependencies

Will return with a better PR

@lillem4n, you can chose to reopen this PR and remove node.js v6 from CI metric, since it reached end of life on 2019-04-30. Thanks!


[QUESTION] How to show customUnavailableHourItem in 2.0 ? Doing like 1.0 doesn't seems to work.

you can use renderCustomUnavailableHour in CalendarBody. I forgot to add it to the document

const _renderCustomUnavailableItem = () => useMemo(
    (props) => <BreakItem {...props} />,
    []
);

import React from 'react';

import Animated, { useAnimatedProps } from 'react-native-reanimated';
import Svg, { Defs, Line, Pattern, Rect } from 'react-native-svg';
const AnimatedRect = Animated.createAnimatedComponent(Rect);
const BreakItem = (props) => {
const patternSize = 5;
const rectProps = useAnimatedProps(() => ({
height: props.height
}));
return (

<Line
x1={0}
y={0}
x2={0}
y2={patternSize + 5}
stroke="#e8e8e8"
strokeWidth={1.5}
strokeLinecap="butt"
/>

);
};
export default BreakItem;

@howljs pattern doesn't seem to work now. I tried like above but its rendering only the default color.

@howljs pattern doesn't seem to work now. I tried like above but its rendering only the default color.

Full code:
import { UnavailableHourProps } from '@howljs/calendar-kit';
import React, { FC } from 'react';
import Animated, {
  SharedValue,
  useAnimatedProps,
} from 'react-native-reanimated';
import { Defs, Line, Pattern, Rect, Svg } from 'react-native-svg';

const AnimatedRect = Animated.createAnimatedComponent(Rect);

const CustomUnavailableHour: FC<
  UnavailableHourProps & {
    width: SharedValue<number>;
    height: SharedValue<number>;
  }
> = (props) => {
  const patternSize = 5;

  const rectProps = useAnimatedProps(() => ({
    height: props.height.value,
  }));

  return (
    <Svg>
      <Defs>
        <Pattern
          id="stripe-pattern"
          patternUnits="userSpaceOnUse"
          width={patternSize}
          height={patternSize}
          patternTransform="rotate(-45)">
          <Line
            x1={0}
            y={0}
            x2={0}
            y2={patternSize + 5}
            stroke="red"
            strokeWidth={1.5}
            strokeLinecap="butt"
          />
        </Pattern>
      </Defs>
      <AnimatedRect
        x="0"
        y="0"
        width="100%"
        fill="url(#stripe-pattern)"
        animatedProps={rectProps}
      />
    </Svg>
  );
};

export default CustomUnavailableHour;

```Calendar.tsx
 const renderCustomUnavailableHour = useCallback(
    (
      props: UnavailableHourProps & {
        width: SharedValue<number>;
        height: SharedValue<number>;
      }
    ) => {
      return <CustomUnavailableHour {...props} />;
    },
    []
  );

<CalendarBody
          renderCustomUnavailableHour={_renderCustomUnavailableHour}
        />

Result:

Thanks . Works perfectly!

https://github.com/user-attachments/assets/fcf8e673-639b-417e-8b60-353c2c0a8c89
Once check this as well it kinda looks like a bug.
When dragged only it triggers but doesn't trigger when not dragged

I’ve received the notification about this bug, and I will fix it in the next version.
https://github.com/howljs/react-native-calendar-kit/issues/130

ok Thanks closing this.

once check this as well when going from weekly to 3 days view.


nuget package push returns 400 if already exists - should be 409

Description
as per subject , nuget push of existing package should return 409 Conflict - but is returning 400 Bad request
Gitea Version
1.17.0
Can you reproduce the bug on the Gitea demo site?
No
Log Gist
No response
Screenshots
No response
Git Version
2.7.4
Operating System
ubuntu 16.04
How are you running Gitea?
downloaded binary
Database
MySQL

Wait for backport


Fixes #118

This solution fetches all tasks queued in the configured queue and unions them with the tasks associated with currently monitored translation engines. This means that there are two additional API calls per ClearMLMonitorService run (one to fetch the ids of tasks on the queue and another to fetch the complete info on those tasks). I think this is inevitable because the get-all-queues call only contains information about queued jobs (and, if you dig, currently running jobs), but not jobs that may have failed or completed.

This change is

Codecov Report
Attention: 10 lines in your changes are missing coverage. Please review.

Files
Coverage Δ

...chine.AspNetCore/Services/ClearMLMonitorService.cs
5.15% <0.00%> (-0.05%)
:arrow_down:

.../SIL.Machine.AspNetCore/Services/ClearMLService.cs
32.09% <0.00%> (-1.45%)
:arrow_down:

... and 2 files with indirect coverage changes
:loudspeaker: Thoughts on this report? Let us know!.


A different version of webpack was detected higher up in the tree

The build fails for me with the following error - I've tried identifying where webpack is in package.lock but could not find it.
Cloned directly from the repo (10/02/2020).
The react-scripts package provided by Create React App requires a dependency:

  "webpack": "4.41.5"

Don't try to install it manually: your package manager does it automatically.
However, a different version of webpack was detected higher up in the tree:

  C:\Users\sabat\node_modules\webpack (version: 4.42.0)

Manually installing incompatible versions is known to cause hard-to-debug issues.

npm ls webpack
+--<EMAIL_ADDRESS>| +--<EMAIL_ADDRESS>| | +--<EMAIL_ADDRESS>| | | `--<EMAIL_ADDRESS>| | |   `--<EMAIL_ADDRESS>| | |     `--<EMAIL_ADDRESS>extraneous

| | +--<EMAIL_ADDRESS>| | | `--<EMAIL_ADDRESS>extraneous
| | `--<EMAIL_ADDRESS>| |   `--<EMAIL_ADDRESS>extraneous
| `--<EMAIL_ADDRESS>|   `--<EMAIL_ADDRESS>|     `--<EMAIL_ADDRESS>extraneous
`--<EMAIL_ADDRESS>  `--<EMAIL_ADDRESS>

Odd - I haven't been able to replicate this however I don't use Windows for development (which judging by the path is what you use).
One option would be to just delete the node_modules folder & re-install.


Statusline and command area not rendering properly

Both lualine and the area where commands are typed do not reach the edge of the window.
My goneovim version is 0.4.13-1.

The command area also seems to not change color when transparency is set, leaving a grey-ish bar instead of making it the same color as everything else.
Full goneovim config:
[Editor]
Transparent = 0.8
SmoothScroll = true

[Message]
Transparent = 0.8

[Statusline]
Visible = false

When looking through other issues, one said to set termguicolors. I've tried this and it does not help. I can post any additional config or system information if needed.

@pollen00
Hi,
I'm sorry for the late reply. I was dealing with other high priority issues.
Regarding what you reported, Goneovim has a small margin at the edge of the window. The size of this margin can be reduced somewhat by setting the following in settings.toml, but it still leaves a small margin.
[Editor]
#...
Gap = 0
#...

This is a specification, but if it is absolutely necessary, we will consider extending the feature.
Also, the transparency settings for the message window should be set as follows:
[Message]
Transparent = 0.7

Setting Gap to 0 in the Editor section doesn't seem to change anything. The margin is still the same size.

@13k
This was originally hard-coded for implementation reasons.
Also, the extra space at the bottom or right side of the window beyond what is set is "left over" space from the window geometry and font metrics calculations. As you noted, it is understandable that it looks ugly.
I will respond to you on How to solve these issues in Issue #289.

It seems f0624e5b01e82bef701f0eac6d7d64abec2b2132 fixed the issue (tested on linux and macos)


Add  integration test for oauth2AuthorizedClient repository by issuedAt claim.

Add  integration test for oauth2AuthorizedClient repository by issuedAt claim.

/azp run java - spring - tests

/azp run java - spring - tests

/azp run java - spring - tests

/azp run java - spring - tests

Fixing the integration test in this PR: https://github.com/Azure/azure-sdk-for-java/pull/18845

Fixing the integration test in this PR: https://github.com/Azure/azure-sdk-for-java/pull/18845

/azp run java - spring - tests

/azp run java - spring - tests

/azp run java - spring - tests


pkg-config issues

I just experienced an interesting issue wherein pkg-conf did not pick up the system libcurl libraries and was hopeful that someone could enlighten me as to how we might properly address this behavior perhaps better than the way that I resolved the problem:
https://github.com/phusion/passenger/issues/1355#issuecomment-73828653
My main goal is to not have this happen again and so it would be good to understand what is happening and how to get pkg-config working properly in relation to the system pkg-config and what it is detecting, vs what the linuxbrew pkg-config is and is not detecting, etc.

The solution, I believe, is to set the PKG_CONFIG_PATH environment variable to include both the system paths and the Linuxbrew paths. The default, I believe, is to include just the Linuxbrew paths.


Add YuhsiangHsiao's file

created a branch, created a file and made a commit, and opened a pull request

created a branch, created a file and made a commit, and opened a pull request


Revert "Start using package for some APIs"

Reverts apple/swift-package-manager#7240

@swift-ci please test

Speculative revert due to build issues in some configurations, e.g., https://ci.swift.org/job/swift-PR-source-compat-suite-debug-macos/1297/consoleFull

Failure cause tracked by rdar://120925895


No updates for three days

Running brew update simply says Already up-to-date. brew doctor says ready to brew. What can I do to diagnose/fix?
% brew config
HOMEBREW_VERSION: 0.9.9
ORIGIN: https://github.com/Homebrew/brew.git
HEAD: 06fe347de97975dc01e726f87bf07a56a6fb713e
Last commit: 3 days ago
Core tap ORIGIN: https://github.com/Homebrew/homebrew-core
Core tap HEAD: bcb5cf680ae83de77e0ab35657f6d7fd014b28a0
Core tap last commit: 3 days ago
HOMEBREW_PREFIX: /usr/local
HOMEBREW_REPOSITORY: /usr/local
HOMEBREW_CELLAR: /usr/local/Cellar
HOMEBREW_BOTTLE_DOMAIN: https://homebrew.bintray.com
CPU: octa-core 64-bit ivybridge
Homebrew Ruby: 2.0.0-p648
Clang: 7.3 build 703
Git: 2.7.4 => /Library/Developer/CommandLineTools/usr/bin/git
Perl: /usr/bin/perl
Python: /usr/local/bin/python => /usr/local/Cellar/python/2.7.12/Frameworks/Python.framework/Versions/2.7/bin/python2.7
Ruby: /usr/bin/ruby => /System/Library/Frameworks/Ruby.framework/Versions/2.0/usr/bin/ruby
Java: N/A
OS X: 10.11.6-x86_64
Xcode: N/A
CLT: <IP_ADDRESS>.1.1461711523
X11: 2.7.9 => /opt/X11

% brew update
Already up-to-date.

% date
Sat Aug 13 09:34:47 CEST 2016

You hit a bug unfortunately. The fix is cd $(brew --repo); git fetch; git reset --hard origin/master; brew update.

Great, thank you very much!

Great!

Thanks! I had the same problem.

I had it too. How  many people have this problem and are unaware of the fix? I had to scroll down the list of open issues, and then the list of closed issues. Maybe there is a better place?

It's in the README (https://github.com/Homebrew/brew#update-bug), ISSUE_TEMPLATE (https://github.com/Homebrew/brew/blob/master/.github/ISSUE_TEMPLATE.md) and was posted on Twitter.

How did I miss all that?  Thanks!

How can people know they have an issue when there's no error? I was wondering if this was a slow week with no updates until I found time to look for it.
No idea what the bug is, but maybe you should break "brew update" in some way to make people aware of the issue?

No idea what the bug is, but maybe you should break "brew update" in some way to make people aware of the issue?

We cannot do anything to brew updates broken in this manner because it won't check for updates to itself. We've advertised it everywhere we think people would look but I'm open to suggestions of anywhere else to put it.

I don't know what "brew update" does under the hood, I suppose something similiar to "git pull"? Can't you make that origin url return 404 so brew update returns an error?
Something like

create new URL that clients should use
update brew to use this url
wait 14 days for "non broken" brew clients to update themselves
drop the original URL
broken clients now get a clear error so people know they have an issue and start googling

The problem with this bug was: it wasn't looking at any URL, ever. Trust me, if it was possible I'd have done it rather than asking people to run commands manually 😭

Oops. Never mind, then :-) Thanks.

Seriously, I don’t think it’s per se a bad thing, if people have exceptionally to run a few commands… Kudos to the maintainers for their great job!

@MikeMcQuaid perhaps adding a brew reset command that executed cd $(brew --repo); git fetch; git reset --hard origin/master; brew update would help folks have a recourse path if an issue like this ever happened again

@aren55555 We have that now pretty much in brew update --force which I added almost immediately afterwards.

I guess this is really a duplicate of #688

Yes.


Register by NitroType username

Users should be able to register for the bot using their nitrotype username. The bot will verify that the link exists and returns an error otherwise.

Uhh, you can do this via simple CURL requests that allow redirecting,  if they do redirect then its bad link basically

Yep.


Fire Webhooks per environment

Added test suite.
added guzzle as dev dependency to run laraval http client.
Apart from the description in issue  #67 this pr also runs webhooks that are numerically indexed in lasso config for backward compatibility.

Hey @ajuchacko thanks for this PR and sorry for the delay! I've just gone through and updated the codebase and added a Pest test suite. Would you be happy to update your PR to make the changes consistent with my latest update? Thank you

Hey @ajuchacko I appreciate the PR however I'm going to close it for now. Please let me know if you would like to discuss this feature in the future and I'd be happy to look at a fresh PR!