Select different anaconda environments

Description of your problem
What steps will reproduce the problem?

A new anaconda environment is created
I open spyder
I set this environment (anaconda/bin/...) as standard intepreter

What is the expected output? What do you see instead?
I want wo use this environment (send the code to the interpreter)
The interpreter breaks down.
Isn't there a way to switch different Anaconda envs within Spyder?
Please provide any additional information below
Versions and main components

Spyder Version: 3.1.3
Python Version: 3.5
Qt Version:
PyQt Version:
Operating system: Ubuntu 16.04

Dependencies
Please go to the menu entry Help > Optional Dependencies (or
Help > Dependencies), press the button Copy to clipboard
and paste the contents below:

The interpreter breaks down.

Could you be more specific?

Spyder is not limited to use in an Anaconda distribution.  I also use Spyder in a WinPython distribution.  I don't think it is practical for Spyder to know which package manager installed it and handle all the complexities of changing environments.
With both Anaconda and WinPython, I create a separate Windows batch file for each environment to run Spyder.  Discussion and example batch files are at https://github.com/winpython/winpython/issues/351

I still don't understand that well how you guys are talking about, but our plan to manage environments/virtualenvs in Spyder is by adding the possibility of a setting a particular Python interpreter per project.
That will be done in Spyder 3.3.

The interpreter breaks down.
Could you be more specific?

I go to "Preferences > Python interpreter > Use the following interpreter" and change it to the newly created environment:
/home/cord/.anaconda3/envs/test/bin/python3

Now I restart Spyder and get the error:
An error ocurred while starting the kernel
Your Python environment or installation doesn't have the ipykernel module installed on it. Without this module is not possible for Spyder to create a console for you.
You can install ipykernel by running in a terminal:
pip install ipykernel

So I install ipykernel with pip within the environment:
(test) cord@cord-Laptop:~/.anaconda3/bin$ pip install ipykernel
Successfully installed decorator-4.0.11 ipykernel-4.5.2 ipython-5.3.0 ipython-genutils-0.1.0 jupyter-client-5.0.0 jupyter-core-4.3.0 pexpect-4.2.1 pickleshare-0.7.4 prompt-toolkit-1.0.13 ptyprocess-0.5.1 pygments-2.2.0 pyzmq-16.0.2 simplegeneric-0.8.1 tornado-4.4.2 traitlets-4.3.2 wcwidth-0.1.7
(test) cord@cord-Laptop:~/.anaconda3/bin$

And if I open Spyder it still shows the anaconda default environment:
Python 3.5.2 |Anaconda custom (64-bit)| (default, Jul  2 2016, 17:53:06)

Would this generally be the right way to work with different environments?

Or is this the case because Spyder is started from another anaconda environment and I normally had to start it from the system python interpreter?

And if I open Spyder it still shows the anaconda default environment

Are you sure is that the default environment? Please try to import any package besides ipykernel to see if that's true or not.

And if I open Spyder it still shows the anaconda default environment
Are you sure is that the default environment? Please try to import any package besides ipykernel to see if that's true or not.

You are right, it somehow worked after restarting a couple of times because the kernel broke down it IPython console did not open.
I have installed pyPdf in the environment test-wise and importing works partly but then breaks:
import pyPdf
Traceback (most recent call last):

File "<ipython-input-1-a5780a4295f9>", line 1, in <module>
import pyPdf

File "/home/cord/.anaconda3/envs/test/lib/python3.5/site-packages/pyPdf/__init__.py", line 1, in  > <module>
from pdf import PdfFileReader, PdfFileWriter

ImportError: No module named 'pdf'

This might also related to pyPdf but let's put my question more generally away from debugging third party packages:
If you wanted to use Spyder and Anaconda on a Linux-System working on different Anaconda environments, what would be the steps to install Spyder and later change between the environments?

There's no easy way right now, except changing interpreters in Python interpreter.
However, when we add the possibility to associate a conda env to a project, then you would only need to create a project for your code, and decide what modules you'd like to use in your project (we'll also provide a graphical interface to install conda packages).
Does that sound good?

There's no easy way right now, except changing interpreters in Python interpreter.
However, when we add the possibility to associate a conda env to a project, then you would only need to create a project for your code, and decide what modules you'd like to use in your project (we'll also provide a graphical interface to install conda packages).
Does that sound good?

:+1:
The only thing I'd be interested in would then be the planned release date :smile:

This will be part of Spyder 3.3, to be released by the end of the summer.

Thanks!

@ckaldemeyer, please leave this one open so we don't forget to address it in 3.3 ;-)

@ckaldemeyer, please leave this one open so we don't forget to address it in 3.3 ;-)

:+1:

Spyder IDE specific enviroment workaround
Preliminary: need to install ipykernel into the specific enviroment @ckaldemeyer has this as above.
Get a list of your kernels (so you know which one to use)
anne@linux:~/anaconda3/envs> jupyter kernelspec list
Available kernels:
my_env        /home/anne/.local/share/jupyter/kernels/my_env
python3       /home/anne/anaconda3/share/jupyter/kernels/python3
Activate the environment:
anne@linux:~/anaconda3/envs> source activate ./my_env/
Launch Jupyter qtconsole (console, notebook) using the kernel associated with the enviroment you want to work with (ie the output from jupyter kernelspec list)
juypter qtconsole --kernel my_env/
Within the qtconsole (console, notebook) spawned from the step above use a magic number command to get all of the information you need for a connection
%connect_info
The output from the magic number (%connect_info) at the end, lists the name of the kernel.json file you can use to attach.  Alternatively copy the connection port information between the braces of the output %connect_info and save it as .json file.
Use Spyder IDE to connect to already running kernel:
From within the Spyder IDE-> select the gear icon in the Ipython Console panel-> dropdown menu: Connect to an existing kernel-> Browse to the .json file created in the step above.
Spyder will now be using the kernel specific to your enviroment.  Because you can use multiple Ipython console tabs, you can run/test code against different enviroments by just changing the tabs of the Ipython console

Is there anything wrong with doing something like the following to invoke spyder with a specific environment?
Install spyder in an existing second anaconda env (e.g. an env running Intel Python 3 vs. my vanilla 2.7).
Create an alias to spyder in that env folder.

alias spyder3='~/anaconda/envs/idp3/bin/spyder'

Call that alias to open spyder in that env.

Python 3.5.3 |Intel Corporation| (default, Apr 27 2017, 10:37:05)
Type "copyright", "credits" or "license" for more information.

I've been doing this to run spyder within alternate envs without problems. Is this OK, or have I just been lucky?

Is there anything wrong with doing something like the following to invoke spyder with a specific environment?

That is ok. In fact, there's a similar mechanism for Windows users provided automatically by Anaconda (i.e. Anaconda creates Start menu entries for each Spyder package in different envs).
We simply want to avoid this process and let users work with a single Spyder version for all their projects.

Hi all,
I use the Python 3.6. After I create a new ENV of Python 3.5 I have the same problem by switching Spyder between different ENVs. But I figure out. Here is what I did:
1.
Create a new env with:
conda create --name py35 python=3.5
2.
Change to the new created env with:
activate py35
3.
Install the Spyder with:
conda install spyder
4.
Start the Spyder and change the python.exe setting in Tools -> Preferences -> Python Intepreter -> Use the following Python Intepreter and select the Python.exe in the new created env.
Then close the Spyder
5.
Now start the Spyder but not the one from Python 3.6, but the one (double click) from the new created ENV.
That's all.

Hi Everyone;
Would you help me out about the python console is absent as a pane in spyder 3.6? I set up Anaconda 3 64 bit in my pc but I couldnt see the pane of python console in tool or view as a pane option. Thanks

@besli, the Python console was removed in Spyder 3.2: #4524.

how about the Spyder 3.6?

3.6 is the Python version, not the Spyder version.

sorry about that...  I mean spyder 3.2.6. i cant see the phyton console in spyder 3.2.6.

3.2.6 came after 3.2, so it doesn't have it either.
El 25/02/18 a las 14:58, besli escribió:

sorry about that... I mean spyder 3.2.6. i cant see the phyton console
in spyder 3.2.6.
—
You are receiving this because you modified the open/close state.
Reply to this email directly, view it on GitHub
https://github.com/spyder-ide/spyder/issues/4223#issuecomment-368339383,
or mute the thread
https://github.com/notifications/unsubscribe-auth/AAWS7bs1Aim2wPkqLZ0vaKZq3YrYWDxZks5tYbtogaJpZM4MSXT5.

how can i add it in that version?

is there anyone to help me out about this manner?

@besli, the Python console was removed, it's not hidden, it was simply removed, so you can't add it back. So please stop your comments here because there's nothing you can do about it.

I saw that the 3.2. Spyder has the python console in a video on youtube

hi again;
I have a problem here. I am receiving the syntax error in Iphone console. the problem is at the end of the program, i want the program quit if user response is 'No' or 'no'
thank you all.....
b=['a', 'b', 'c', 'd']
i=0
for c in b:
i=i+1
print('Exercise', i,'is',c )
a = input('Which exercise they would you like to run?')
print('Running Exercise '+ a +'')
while True:
d = input('Would you like to run another exercise?')
if d=='yes' or 'Yes':
    f=input('Which exercise they would you like to run?')
    print('Exercise '+ f +'')

elif d=='no' or 'No':
    break

Install and run spyder from your new conda env, works for me!

If I have 2 environments but I need to use both within a project, is there no way to switch between the environments within the Spyder IDE ? Similar to how we can modify the current working directory, can we have the ability to switch between environments  ?

is there no way to switch between the environments within the Spyder IDE ?

We'll add a UI for this in Spyder 4. @goanpeca knows how to do it.

Yes, we will provide two ways of doing this,

One via the environment switcher from the status bar (or from the Generic Switcher) to avoid the need to go into preferences
One associated to projects which will support conda envs (by default)

In the current version 3.3.5 can we change the interpreter inside Preferences to the virtual environment?  When I change to the python interpreter in Preferences and open a new console I get this message:
An error ocurred while starting the kernel
Traceback (most recent call last):
File "C:\Users\bjwil\Anaconda3\envs\oetoolkits\lib\runpy.py", line 193, in run_module_as_main
"main", mod_spec)
File "C:\Users\bjwil\Anaconda3\envs\oetoolkits\lib\runpy.py", line 85, in run_code
exec(code, run_globals)
File "C:\Users\bjwil\Anaconda3\Lib\site‑packages\spyder_kernels\console_main.py", line 11, in
start.main()
File "C:\Users\bjwil\Anaconda3\Lib\site‑packages\spyder_kernels\console\start.py", line 297, in main
from ipykernel.kernelapp import IPKernelApp
File "C:\Users\bjwil\Anaconda3\Lib\site‑packages\ipykernel_init.py", line 2, in
from .connect import *
File "C:\Users\bjwil\Anaconda3\Lib\site‑packages\ipykernel\connect.py", line 18, in
import jupyter_client
File "C:\Users\bjwil\Anaconda3\Lib\site‑packages\jupyter_client_init_.py", line 4, in
from .connect import *
File "C:\Users\bjwil\Anaconda3\Lib\site‑packages\jupyter_client\connect.py", line 23, in
import zmq
File "C:\Users\bjwil\Anaconda3\Lib\site‑packages\zmq_init_.py", line 47, in
from zmq import backend
File "C:\Users\bjwil\Anaconda3\Lib\site‑packages\zmq\backend_init_.py", line 40, in
reraise(*exc_info)
File "C:\Users\bjwil\Anaconda3\Lib\site‑packages\zmq\utils\sixcerpt.py", line 34, in reraise
raise value
File "C:\Users\bjwil\Anaconda3\Lib\site‑packages\zmq\backend_init_.py", line 27, in
ns = select_backend(first)
File "C:\Users\bjwil\Anaconda3\Lib\site‑packages\zmq\backend\select.py", line 27, in select_backend
mod = import(name, fromlist=public_api)
File "C:\Users\bjwil\Anaconda3\Lib\site‑packages\zmq\backend\cython_init.py", line 6, in
from . import (constants, error, message, context,
ImportError: cannot import name 'constants'

@BJWiley233, your error is not related to this issue, so I'm going to hide your message and ask you to open a new issue about it.

Hello, can I get any information on whether the "assign different python environment to each project" feature made it to the 3.3?
I am asking because i cannot find the mentioned feature anywhere.
I am currently using Spyder version 3.3.4

Hello!
Thanks for that discussion. I was running Spyder 4.0.0.b5, trying to run a project in a venv. When I try to launch the ipython console, the connection to kernel never ends. I've read other similar issues on MacOS, asking to change version of ipykernel, I tried it (even if I'm running Windows X) but is had no effect.
Reverting to Spyder 3.X, I realize that I have the same issue.
I'm sorry, I have no idea what changed in my config (I tried with a completely new environment, only installing spyder-kernels and ipykernel in it) and the problem is still there... I can't run spyder in a venv.
Last try, running spyder from the venv failed.
Any held would be really appreciated!
--
BTW, I tried to use Pycharm to continue using an IDE, and I faced kind of a similar issue with an error in import _ssl (sorry, once again I'm not sure where the error came from). The problem may come from a similar cause...

Hi, this is not the right place to ask for this. Please open a new issue about it.

Sorry . Done in #10346.
Thanks for your reactivity, and the work achieved in general.

Yes, we will provide two ways of doing this,

One via the environment switcher from the status bar (or from the Generic Switcher) to avoid the need to go into preferences
One associated to projects which will support conda envs (by default)

Hi, just installed Spyder 4.0.0 on Windows but struggle to find the described functionality. Could you briefly explain where I can find them?

You can clearly see that this issue is not closed. Therefore, this was not solved in Spyder 4.

the best way I found is to :
conda install spyder
then conda install conda-navigator
conda install spyder-kernels=0.*
and:
anaconda-navigator
then select the env in the top window
then start spyder

the best way I found is to :
conda install spyder
then conda install conda-navigator
conda install spyder-kernels=0.*
and:
anaconda-navigator
then select the env in the top window
then start spyder

Brilliant - that's the answer right there! Much appreciated.

This is also related with what @mrclary suggested we do to make the python interpreter configuration option in the preferences leaner.
I would like to hear your thoughts :-p .
I also agree we should probably use envs in general instead of interpreters, but there might be cases where one still needs to point to a specific interpreter.
Also some pointers, what should be the default behavior when switching to a different env (from the status bar), restart the consoles? only the current one? ask the user? add an option on preferences to do it automatically or ask the user all the time?

Also some pointers, what should be the default behavior when switching to a different env (from the status bar), restart the consoles? only the current one? ask the user? add an option on preferences to do it automatically or ask the user all the time?

What do you mean "switching to a different env (from the status bar)"? Do you mean just updating the status bar when switching console tabs? Presently, switching "interpreters" in the preferences only affects new console tabs, leaving existing console tabs in the environment (interpreter) they were started with; I think this is good. But it would be nice if the "interpreter" status in the status bar updated to reflect the current console tab, similar to the git status when switching editor documents.

Like what VSCode does.

Going to the preferences the way it is now it is very cumbersome and I would say a very bad UX. But changing the env and not having some immediate effect for it or even a option of what to do when that happens will provide still a very bad user experience.

Yeah, that would be really nice. My vote would be to always restart the current console or just start a new console with that environment.

The way VSCode changes the interpreters is very efficient and was hoping this was introduced in spyder. When will it be available?

I would like to see the same functionality as in VS Code as well, I have just switched from VS Code to Spyder but being a bit disappointed as this feature is missing.

I would like to see the same functionality as in VS Code as well, I have just switched from VS Code to Spyder but being a bit disappointed as this feature is missing.

@PackElend, since Spyder 4.2.0, you can go to
Tools > Preferences > Python interpreter

Check the option called Use the following interpreter and select your conda environment in the dropdown present there. That's better explained in our docs.

@PackElend, since Spyder 4.2.0, you can go to
Tools > Preferences > Python interpreter

Check the option called Use the following interpreter and select your conda environment in the dropdown present there. That's better explained in our docs.

I'm aware of this but this not as convenient as in VS Code.
The bad UX is well explained in #11362

I'm aware of this but this not as convenient as in VS Code.
The bad UX is well explained in #11362

This and #11362 are separate issues because they refer to different problems: one thing is being able to create an IPython console for any environment you have (this issue) and another one is to associate an env to a project (#11362).

This and #11362 are separate issues because they refer to different problems: one thing is being able to create an IPython console for any environment you have (this issue) and another one is to associate an env to a project (#11362).

all issues have in common, that I want to be able to switch the environment by a single click or environment is changed automatically when a project is selected with a custom environment.
There shall be no risk of using the wrong environment when switching between projects etc.

all issues have in common, that I want to be able to switch the environment by a single click or environment is changed automatically when a project is selected with a custom environment.
There shall be no risk of using the wrong environment when switching between projects etc.

Switching environments makes little sense in Spyder because a user can open as many consoles as they want. Therefore, we're planning to offer the ability to open a console with any detected environment.
If you want to participate in the discussion we're having about that, please leave your comment in https://github.com/spyder-ide/ux-improvements/issues/10.

Switching environments makes little sense in Spyder because a user can open as many consoles as they want. Therefore, we're planning to offer the ability to open a console with any detected environment.
If you want to participate in the discussion we're having about that, please leave your comment in https://github.com/spyder-ide/ux-improvements/issues/10.

@ccordoba12 @PackElend, I agree that these features are desirable but I think we can close this issue in favor of existing ones.

@ccordoba12 correctly described that Spyder doesn't change environments, but opens consoles in selected environments; how a user selects those environments will be improved by spyder-ide/ux-improvements#10
I think there is potential for several improvements to Spyder's project configuration, including project level interpreter selection which is addressed by #11362.

@ccordoba12 @PackElend, I agree that these features are desirable but I think we can close this issue in favor of existing ones.

@ccordoba12 correctly described that Spyder doesn't change environments, but opens consoles in selected environments; how a user selects those environments will be improved by spyder-ide/ux-improvements#10
I think there is potential for several improvements to Spyder's project configuration, including project level interpreter selection which is addressed by #11362.

I think we can close this issue in favor of existing ones.

I disagree. I think the PR that fixes spyder-ide/ux-improvements#10 should fix this one as well (this has a lot more history).

I think we can close this issue in favor of existing ones.

I disagree. I think the PR that fixes spyder-ide/ux-improvements#10 should fix this one as well (this has a lot more history).


Add supported feature and tests coverage for mesh in request mirror conformance

What would you like to be added:
Add supportedFeatures and tests coverage for mesh in request mirror conformance
Why this is needed:
Mesh implementations support request mirroring and there is no reason to not have test coverage to test the functionality with service as parentRef.
/area mesh

/cc @mikemorris @howardjohn @kflynn @robscott


[WIP] Move ems operations to operations worker

Set a queue_name for MiqQueue puts for the ems_operations role.
Depends:

[ ] https://github.com/ManageIQ/manageiq/pull/19476

travis failure looks legit

Yeah this one is far from done


Passkey support viem

What it solves
Resolves #
How this PR fixes it

Pull Request Test Coverage Report for Build<PHONE_NUMBER>3
Details

70 of 85 (82.35%)  changed or added relevant lines in 14 files are covered.
No unchanged relevant lines lost coverage.
Overall coverage decreased (-0.1%) to 77.405%

Changes Missing Coverage
Covered Lines
Changed/Added Lines
%

packages/sdk-starter-kit/src/utils/index.ts
0
2
0.0%

packages/relay-kit/src/packs/safe-4337/utils.ts
7
13
53.85%

packages/sdk-starter-kit/src/utils/sendTransaction.ts
1
8
12.5%

Totals

Change from base Build<PHONE_NUMBER>5:
-0.1%

Covered Lines:
984

Relevant Lines:
1199

💛  - Coveralls


The FiltersTableState type is no longer exported after PR #5413, It's a breaking change.

  This completely breaks that.
I'd be more than happy to help contribute If I could get some information on why the filters were split in the first place.
Originally posted by @matthawk60 in https://github.com/TanStack/table/issues/5413#issuecomment-2017393521

sorry, didn't know anyone was using these internal types. It was renamed to ColumnFiltersTableState


Role access tree / permissions has issues

[ ] table on crystal's account only showing her own records under "all invasiveBC records" - should show all records from all users for all roles.

@plasticviking any update on this?  I checked today and still can only see records when I have master administration access.  No records show for any other access level.


XML model are not regenerated for lightcurve

Hi,
After changing the catalog used for XML model (3FGL to 4FGL), I run enrico_xml and then enrico_sed. It's work fine.
Then I run enrico_lc, after light curve have run I note the XML models used by lightcurve are still the old one.
I suppress the lightcurve folder and rerun enrico_lc and there it was the right XML models which are used.
Cheers,

I don't really understand the question, could you reformulate it? Why do you need the xml file to be regenerated for the LC?. You mean that you were using the 3fgl before and there are still xml files for the LCs not updated to the 4fgl after running enrico_lc or enrico_xml?.


How can i use Virtual Elements provided by floating UI

Also interested in this, perhaps boundary will accept a VirtualElement?

need it too, hope the document can give an example


Trash and Spam links broken

I'm using your plugin for Chrome and noticed that clicking on Trash or Spam on the left side do nothing. Could you please fix?

It looks to me like they're only 'broken' if the labels are disabled in settings.
What happens in this case, is that these links aren't visible on the left, until the menu is expanded.
When expanded, the items shuffle themselves into position, and then stay there even after the menu is minimised.
eg. With these settings:

I see this initially:

Then this after expanding:

Then this after minimising again:

However, regardless of whether the menu is expanded or not, Draft/Sent/Trash/Spam don't do anything when marked as hidden in settings.
You recommend switching on all labels, but perhaps, if someone has Drafts/Sent/Trash/Spam/etc switched off, just don't show these?

I like to have "trash" hidden as well. A workaround is to type "in:trash" into search.  Thats actually faster for me than clicking "More > Trash".


[question] Could WSL2 be used for testing purpose?

What happened:
sudo kubectl -n koordinator-system logs koordlet-qbl4d | grep gpu

I0819 10:04:28.529389  152058 states_device_linux.go:147] gpu device not exist
I0819 10:04:28.556178  152058 states_device_linux.go:275] start to do gpu health check
W0819 10:04:28.556216  152058 collector_gpu_linux.go:72] nvml init gpu data, error unable to get device minor number: Not Supported
I0819 10:04:28.559193  152058 states_device_linux.go:281] get a unhealthy gpu GPU-dbb5557a-cd2e-0f27-531c-a2ca5524e4a3

What you expected to happen:
Found a healthy GPU in WSL2 environment for testing purpose
Environment:

Koordinator version: - v1.3.0
Kubernetes version (use kubectl version): v1.26.3+k3s1
docker/containerd version: containerd 20.10.25
OS (e.g: cat /etc/os-release): Ubuntu 22.04.3 LTS
Kernel (e.g. uname -a): <IP_ADDRESS>-microsoft-standard-WSL2

Anything else we need to know:
See the discussions and fixes in following page
https://github.com/NVIDIA/k8s-device-plugin/issues/332
https://gitlab.com/Vinrobot/nvidia-kubernetes-device-plugin/-/commit/8816d1d25a0c09543574f8db2f0f47abd6fbbfa1
Microsoft documentation:
https://learn.microsoft.com/en-us/windows/ai/directml/gpu-cuda-in-wsl

We have no plans to support WSL2, but welcome to contribute a PR if you are interested in this work.


Feature: automated generation of action's docker image

We need to automate the step of generating the container image

Use ghcr.io for serving this container which can be used in the GitHub action.
Also we could use cosign to sign this container with the keyless option.

ghcr.io

sounds good. I can't find the doc, but I think you're right it should be supported!

Can we move this to the scorecard-actions repository? IMO easier to track.

agreed, please go ahead. let's also create a v4 milestone there


Page is getting generated without data

🐞 Bug report
I have read access on services but page is getting generated without data
Description
Below is angular code. Getting called in ngInit
this.subSink.add(
      this.faqService.getAll().subscribe(
        (f) => {
          this.panels = f.map((x) => ({ active: false, ...x }));
        },
        (error) => {
          console.error(error);
        }
      )
    );

faq service is fetching data from firestore. That have universal read access.
🔬 Minimal Reproduction
💻Your Environment
Angular Version:

11.0.9

Scully Version:

^1.0.0

🔥 Exception or Error

Can you provide a reproduction repo for this?
My guess is that the faqService is returning a hot observable. When Scully is running this might take too long, so Scully is done extracting the HTML the results are not there?
Without access to a way to reproduce this issue, there is no way for me to know the actual cause.

Can you provide a reproduction repo for this?
My guess is that the faqService is returning a hot observable. When Scully is running this might take too long, so Scully is done extracting the HTML the results are not there?
Without access to a way to reproduce this issue, there is no way for me to know the actual cause.

@SanderElias  is it ok if I add you to gitlab private project? I am guessing your guess is right. Because I did face similar issue while doing form validation.

@SanderElias  is it ok if I add you to gitlab private project? I am guessing your guess is right. Because I did face similar issue while doing form validation.

@kunjee17 I would prefer the GitHub repo, as that would give someone having the same problem an insight into what is going on.

@kunjee17 I would prefer the GitHub repo, as that would give someone having the same problem an insight into what is going on.

Sure I ll do it. Basically I was skeptical about firebase access. I ll create temp project for same. Give me a day and it will be ready.

Sure I ll do it. Basically I was skeptical about firebase access. I ll create temp project for same. Give me a day and it will be ready.

@kunjee17, I think I'm seeing an issue where if the stream is passed through a pipe, data isn't being saved.
Are you using pipes?

@kunjee17, I think I'm seeing an issue where if the stream is passed through a pipe, data isn't being saved.
Are you using pipes?

@yringler yes. I'm using pipe. But subscribing at very end.

@yringler yes. I'm using pipe. But subscribing at very end.

TL;DR: I think we're having the same issue, see links for code.
Interesting.
I found in my case that scully only saved the data if I passed in the observable directly, but not if I first made a pipe.
Even though I also subscribed after.
Here's the commit which fixed it for me https://github.com/Health-Freedom/site/commit/e50a6eaef5dc6a86580c3df704a6643735283c03
A simpler diff when I ran into the problem again (I thought a simpler pipe would work) is here: https://github.com/Health-Freedom/site/commit/97ed0da53c79234f6cc1dc9e3c397fc23811b81f
Come to think of it, I'm probably dealing with a hot observable - from what I saw (see this commit for my workaround https://github.com/Health-Freedom/site/commit/a6002739ae90c5dc76935af4adfdfaea78602b22), Apollo Angular (which I'm using) runs the network queries even before the returned observable is subscribed to, which is I suppose the definition of a hot observable.

TL;DR: I think we're having the same issue, see links for code.
Interesting.
I found in my case that scully only saved the data if I passed in the observable directly, but not if I first made a pipe.
Even though I also subscribed after.
Here's the commit which fixed it for me https://github.com/Health-Freedom/site/commit/e50a6eaef5dc6a86580c3df704a6643735283c03
A simpler diff when I ran into the problem again (I thought a simpler pipe would work) is here: https://github.com/Health-Freedom/site/commit/97ed0da53c79234f6cc1dc9e3c397fc23811b81f
Come to think of it, I'm probably dealing with a hot observable - from what I saw (see this commit for my workaround https://github.com/Health-Freedom/site/commit/a6002739ae90c5dc76935af4adfdfaea78602b22), Apollo Angular (which I'm using) runs the network queries even before the returned observable is subscribed to, which is I suppose the definition of a hot observable.

@yringler I'll give it a try and get back in a day. This should work.

@yringler I'll give it a try and get back in a day. This should work.

Great! As I learn more about jamstack, I'm probably going to move to embracing it more fully

Only scully builds makes API calls
relying on ScullyRoutesService for any data I need
saving that data with transfer state
rebuilding with webhooks when data changes

which will avoid the whole issue, and also means I can start locking down my graphql server etc quite a bit more.
But depending on the domain, that probably isn't a solution for everyone.

Great! As I learn more about jamstack, I'm probably going to move to embracing it more fully

Only scully builds makes API calls
relying on ScullyRoutesService for any data I need
saving that data with transfer state
rebuilding with webhooks when data changes

which will avoid the whole issue, and also means I can start locking down my graphql server etc quite a bit more.
But depending on the domain, that probably isn't a solution for everyone.

Sorry I couldn't able to make it work. Here is reproduction repo . Run the application and go to faq page.

Sorry I couldn't able to make it work. Here is reproduction repo . Run the application and go to faq page.

@kunjee17 I'l work on this after I finish my current task

@kunjee17 I'l work on this after I finish my current task

No hurries @SanderElias . Code is working only, data is getting fetched runtime instead of scully time that is the only issue. So, it is not really a blocker as of now.

No hurries @SanderElias . Code is working only, data is getting fetched runtime instead of scully time that is the only issue. So, it is not really a blocker as of now.

@kunjee17 The problem is that your firebase driver runs outside of ngZone.
Because of that, Scully does extract the HTML before the data is available.
For use-cases like this, we have a manualIdle control. That way, you can tell Scully when the page is ready.
I did a PR to your reproduction that show how that would work.
first I updated your component to this:
@Component({
  selector: 'app-faq',
  templateUrl: './faq.component.html',
  styleUrls: ['./faq.component.less'],
})
export class FaqComponent {
  loading = true;
  panels$ = this.tss
    .useScullyTransferState(
      'faq',
      this.faqService.getAll().pipe(
        take(1), // as it is hot, we need to take only the first one
        /**
         * as firebase runs outside of zone, we need to manually tell Scully the page is "ready"
         * the setTimeout makes sure Angular has some time to paint the page, before we
         * will "scrape"
         */
        tap(() => setTimeout(() =>this.ims.fireManualMyAppReadyEvent(),10)), //
      )
    )
    .pipe(
      tap(() => (this.loading = false)),
      /** if you want to subscribe to future updates you can merge the 'hot'
       * service back in, or use a subject to push to. */
      // mergeMap(()=> this.faqService.getAll()),
      map((faq) => faq.map((x) => ({ active: false, ...x } as Panel)))
    );
  constructor(
    private faqService: FaqService,
    private tss: TransferStateService,
    private ims: IdleMonitorService
  ) {}
}

And in your config file I updated the route to use ManualIdele checking. like this:
  routes: {
    '/faq': {
      type: 'default',
      manualIdleCheck: true
   },
  },

After those changes, your app works like expected.
I'm going to close this issue because there is no action Scully can take. I will reopen the issue if there is a reason to do so!
Feel free to keep discussing in here. If you have more issues, don't hesitate to open up a new issue.

@kunjee17 The problem is that your firebase driver runs outside of ngZone.
Because of that, Scully does extract the HTML before the data is available.
For use-cases like this, we have a manualIdle control. That way, you can tell Scully when the page is ready.
I did a PR to your reproduction that show how that would work.
first I updated your component to this:
@Component({
  selector: 'app-faq',
  templateUrl: './faq.component.html',
  styleUrls: ['./faq.component.less'],
})
export class FaqComponent {
  loading = true;
  panels$ = this.tss
    .useScullyTransferState(
      'faq',
      this.faqService.getAll().pipe(
        take(1), // as it is hot, we need to take only the first one
        /**
         * as firebase runs outside of zone, we need to manually tell Scully the page is "ready"
         * the setTimeout makes sure Angular has some time to paint the page, before we
         * will "scrape"
         */
        tap(() => setTimeout(() =>this.ims.fireManualMyAppReadyEvent(),10)), //
      )
    )
    .pipe(
      tap(() => (this.loading = false)),
      /** if you want to subscribe to future updates you can merge the 'hot'
       * service back in, or use a subject to push to. */
      // mergeMap(()=> this.faqService.getAll()),
      map((faq) => faq.map((x) => ({ active: false, ...x } as Panel)))
    );
  constructor(
    private faqService: FaqService,
    private tss: TransferStateService,
    private ims: IdleMonitorService
  ) {}
}

And in your config file I updated the route to use ManualIdele checking. like this:
  routes: {
    '/faq': {
      type: 'default',
      manualIdleCheck: true
   },
  },

After those changes, your app works like expected.
I'm going to close this issue because there is no action Scully can take. I will reopen the issue if there is a reason to do so!
Feel free to keep discussing in here. If you have more issues, don't hesitate to open up a new issue.

Thanks @SanderElias that was quick. I ll surely have a look and keep you posted.

Thanks @SanderElias that was quick. I ll surely have a look and keep you posted.


Fix bug of cal manged and blackboxes number

Description

Actually, in most cases, there has no problem.
But in some special cases, there has a little problem. e.g. if we assign fraction = 0.99
  val newSize = 1000
  val fraction = 0.99
  val managed = Math.max(1, Math.ceil(newSize.toDouble * (1 - fraction)).toInt)
  val blackboxes = Math.max(1, Math.floor(newSize.toDouble * fraction).toInt)

The manged number in above codes will be 11
The blackboxes number will be 990
Obviously, the correct manged number should be 10.
So i think use Math.round may be more reasonable
Related issue and scope

[ ] I opened an issue to propose and discuss this change (#????)

My changes affect the following components

[ ] API
[ ] Controller
[ ] Message Bus (e.g., Kafka)
[x] Loadbalancer
[ ] Invoker
[ ] Intrinsic actions (e.g., sequences, conductors)
[ ] Data stores (e.g., CouchDB)
[ ] Tests
[ ] Deployment
[ ] CLI
[ ] General tooling
[ ] Documentation

Types of changes

[x] Bug fix (generally a non-breaking change which closes an issue).
[ ] Enhancement or new feature (adds new functionality).
[ ] Breaking change (a bug fix or enhancement which changes existing behavior).

Checklist:

[x] I signed an Apache CLA.
[x] I reviewed the style guides and followed the recommendations (Travis CI will check :).
[ ] I added tests to cover my changes.
[ ] My changes require further changes to the documentation.
[ ] I updated the documentation where necessary.

You need to rebase your branch to master to pick up a fix for Travis.

Codecov Report

Merging #4077 into master will increase coverage by 4.43%.
The diff coverage is 100%.

@@            Coverage Diff             @@
##           master    #4077      +/-   ##
==========================================
+ Coverage   76.67%   81.11%   +4.43%
==========================================
  Files         148      148
  Lines        7185     7185
  Branches      448      450       +2
==========================================
+ Hits         5509     5828     +319
+ Misses       1676     1357     -319

Impacted Files
Coverage Δ

...e/loadBalancer/ShardingContainerPoolBalancer.scala
84.21% <100%> (+54.73%)
:arrow_up:

...core/database/cosmosdb/RxObservableImplicits.scala
0% <0%> (-100%)
:arrow_down:

...core/database/cosmosdb/CosmosDBArtifactStore.scala
0% <0%> (-95.54%)
:arrow_down:

...sk/core/database/cosmosdb/CosmosDBViewMapper.scala
0% <0%> (-92.6%)
:arrow_down:

...whisk/core/database/cosmosdb/CosmosDBSupport.scala
0% <0%> (-83.34%)
:arrow_down:

...abase/cosmosdb/CosmosDBArtifactStoreProvider.scala
0% <0%> (-58.83%)
:arrow_down:

...la/whisk/core/database/cosmosdb/CosmosDBUtil.scala
92% <0%> (-4%)
:arrow_down:

...r/src/main/scala/whisk/core/controller/Rules.scala
89.93% <0%> (+0.67%)
:arrow_up:

...isk/core/controller/actions/PrimitiveActions.scala
86.8% <0%> (+1.38%)
:arrow_up:

...src/main/scala/whisk/core/controller/Actions.scala
93.03% <0%> (+1.49%)
:arrow_up:

... and 43 more

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 a8addf6...8b2a1f4. Read the comment docs.

This isn't actually a defect - it's true that 11 vs 10 is not perfect, but the reason for ceil/floor vs round is that for small number (say 2 invokers):
Let newSize = 2 and blackboxFrac = 0.1.
Current code:  managed = 2   blackboxes = 1
This PR:           managed = 1   blackboxes = 1

The point for small N up to the reciprocal of the fraction, both sets overlap.


Inconsistent Java package version detection

Is this a request for help?: No

Is this a BUG REPORT or a FEATURE REQUEST? (choose one): BUG REPORT

Version of Anchore Engine and Anchore CLI if applicable:
anchore-cli, version 0.4.1
What happened:
Detecting Java package dependency versions appears to be very inconsistent - while testing against images in the vulnhub/vulnhub repo, some JAR dependencies have undetected versions while others do, seemingly inconsistently:
anchore-cli image content docker.io/vulhub/jenkins:2.138 java
Package                                            Specification-Version        Implementation-Version        Location
...
jce                                       1.8                          1.8.0_181                        /usr/lib/jvm/java-8-openjdk-amd64/jre/lib/jce.jar
jcifs                                     N/A                          N/A                              /usr/share/jenkins/jenkins.war:WEB-INF/detached-plugins/windows-slaves.hpi:WEB-INF/lib/jcifs-1.3.17-kohsuke-1.jar
jcifs                                     N/A                          N/A                              /usr/share/jenkins/jenkins.war:WEB-INF/lib/jcifs-1.3.17-kohsuke-1.jar
jcl-over-slf4j                            N/A                          N/A                              /usr/share/jenkins/jenkins.war:WEB-INF/lib/jcl-over-slf4j-1.7.25.jar
jcommon                                   N/A                          N/A                              /usr/share/jenkins/jenkins.war:WEB-INF/lib/jcommon-1.0.12.jar
jdk-tool                                  N/A                          N/A                              /usr/share/jenkins/jenkins.war:WEB-INF/detached-plugins/jdk-tool.hpi
jdk-tool                                  N/A                          N/A                              /usr/share/jenkins/jenkins.war:WEB-INF/detached-plugins/jdk-tool.hpi:WEB-INF/lib/jdk-tool.jar
jenkins                                   N/A                          N/A                              /usr/share/jenkins/jenkins.war
jenkins-cli                               N/A                          N/A                              /usr/share/jenkins/jenkins.war:WEB-INF/jenkins-cli.jar
jenkins-core                              N/A                          N/A                              /usr/share/jenkins/jenkins.war:WEB-INF/lib/jenkins-core-2.138.jar
jenkins-war                               N/A                          N/A                              /usr/share/jenkins/jenkins.war:jenkins-war
jetty-alpn-server                         N/A                          N/A                              /usr/share/jenkins/jenkins.war:winstone.jar:jetty-alpn-server
jetty-http                                N/A                          N/A                              /usr/share/jenkins/jenkins.war:winstone.jar:jetty-http
jetty-io                                  N/A                          N/A                              /usr/share/jenkins/jenkins.war:winstone.jar:jetty-io
jetty-jmx                                 N/A                          N/A                              /usr/share/jenkins/jenkins.war:winstone.jar:jetty-jmx
jetty-security                            N/A                          N/A                              /usr/share/jenkins/jenkins.war:winstone.jar:jetty-security
jetty-server                              N/A                          N/A                              /usr/share/jenkins/jenkins.war:winstone.jar:jetty-server
jetty-servlet                             N/A                          N/A                              /usr/share/jenkins/jenkins.war:winstone.jar:jetty-servlet
jetty-util                                N/A                          N/A                              /usr/share/jenkins/jenkins.war:winstone.jar:jetty-util
jetty-webapp                              N/A                          N/A                              /usr/share/jenkins/jenkins.war:winstone.jar:jetty-webapp
jetty-xml                                 N/A                          N/A                              /usr/share/jenkins/jenkins.war:winstone.jar:jetty-xml
jffi                                      N/A                          N/A                              /usr/share/jenkins/jenkins.war:WEB-INF/lib/jffi-1.2.15.jar
...
thymeleaf-3.0.9.RELEASE                            3.0.9.RELEASE                3.0.9.RELEASE                 /spring-data-web-example-2.0.0.RELEASE.jar:BOOT-INF/lib/thymeleaf-3.0.9.RELEASE.jar
thymeleaf-extras-java8time-3.0.1.RELEASE           3.0.1.RELEASE                3.0.1.RELEASE                 /spring-data-web-example-2.0.0.RELEASE.jar:BOOT-INF/lib/thymeleaf-extras-java8time-3.0.1.RELEASE.jar
thymeleaf-spring5-3.0.9.RELEASE                    3.0.9.RELEASE                3.0.9.RELEASE                 /spring-data-web-example-2.0.0.RELEASE.jar:BOOT-INF/lib/thymeleaf-spring5-3.0.9.RELEASE.jar

Note how jenkins-core has no version - at first I thought nested archives were not handled, except was incorrect as thymeleaf is nested within the spring JAR and does get a version.
Another image:
anchore-cli image content docker.io/vulhub/spring-data-commons:2.0.5 java
Package                                            Specification-Version        Implementation-Version        Location
HikariCP                                           N/A                          N/A                           /spring-data-web-example-2.0.0.RELEASE.jar:BOOT-INF/lib/HikariCP-2.7.8.jar
US_export_policy                                   N/A                          N/A                           /usr/lib/jvm/java-8-openjdk-amd64/jre/lib/security/policy/limited/US_export_policy.jar
US_export_policy                                   N/A                          N/A                           /usr/lib/jvm/java-8-openjdk-amd64/jre/lib/security/policy/unlimited/US_export_policy.jar
antlr-2.7.7                                        N/A                          N/A                           /spring-data-web-example-2.0.0.RELEASE.jar:BOOT-INF/lib/antlr-2.7.7.jar
aspectjweaver-1.8.13                               1.8.13                       1.8.13                        /spring-data-web-example-2.0.0.RELEASE.jar:BOOT-INF/lib/aspectjweaver-1.8.13.jar
attoparser-2.0.4.RELEASE                           2.0.4.RELEASE                2.0.4.RELEASE                 /spring-data-web-example-2.0.0.RELEASE.jar:BOOT-INF/lib/attoparser-2.0.4.RELEASE.jar
ca-certificates-java                               N/A                          N/A                           /usr/share/ca-certificates-java/ca-certificates-java.jar
charsets                                           N/A                          N/A                           /usr/lib/jvm/java-8-openjdk-amd64/jre/lib/charsets.jar
classmate                                          1.3.4                        1.3.4                         /spring-data-web-example-2.0.0.RELEASE.jar:BOOT-INF/lib/classmate-1.3.4.jar
...
hibernate-core-5.2.14.Final                        5.2.14.Final                 5.2.14.Final                  /spring-data-web-example-2.0.0.RELEASE.jar:BOOT-INF/lib/hibernate-core-5.2.14.Final.jar
hibernate-jpa-2.1-api-1.0.0.Final                  2.1                          1.0.0.Final                   /spring-data-web-example-2.0.0.RELEASE.jar:BOOT-INF/lib/hibernate-jpa-2.1-api-1.0.0.Final.jar
hibernate-validator                                N/A                          N/A                           /spring-data-web-example-2.0.0.RELEASE.jar:BOOT-INF/lib/hibernate-validator-6.0.7.Final.jar
hsqldb-2.4.0                                       2.4.0                        2.4.0                         /spring-data-web-example-2.0.0.RELEASE.jar:BOOT-INF/lib/hsqldb-2.4.0.jar
...
jboss-logging                                      3.3.2.Final                  3.3.2.Final                   /spring-data-web-example-2.0.0.RELEASE.jar:BOOT-INF/lib/jboss-logging-3.3.2.Final.jar
jce                                                1.8                          1.8.0_162                     /usr/lib/jvm/java-8-openjdk-amd64/jre/lib/jce.jar
jsse                                               1.8                          1.8.0_162                     /usr/lib/jvm/java-8-openjdk-amd64/jre/lib/jsse.jar
...
spring-aop-5.0.4.RELEASE                           N/A                          N/A                           /spring-data-web-example-2.0.0.RELEASE.jar:BOOT-INF/lib/spring-aop-5.0.4.RELEASE.jar
spring-aspects-5.0.4.RELEASE                       N/A                          N/A                           /spring-data-web-example-2.0.0.RELEASE.jar:BOOT-INF/lib/spring-aspects-5.0.4.RELEASE.jar
spring-beans-5.0.4.RELEASE                         N/A                          N/A                           /spring-data-web-example-2.0.0.RELEASE.jar:BOOT-INF/lib/spring-beans-5.0.4.RELEASE.jar
spring-boot-2.0.0.RELEASE                          N/A                          N/A                           /spring-data-web-example-2.0.0.RELEASE.jar:BOOT-INF/lib/spring-boot-2.0.0.RELEASE.jar
spring-boot-autoconfigure-2.0.0.RELEASE            N/A                          N/A                           /spring-data-web-example-2.0.0.RELEASE.jar:BOOT-INF/lib/spring-boot-autoconfigure-2.0.0.RELEASE.jar
spring-boot-starter-2.0.0.RELEASE                  N/A                          N/A                           /spring-data-web-example-2.0.0.RELEASE.jar:BOOT-INF/lib/spring-boot-starter-2.0.0.RELEASE.jar
spring-boot-starter-aop-2.0.0.RELEASE              N/A                          N/A                           /spring-data-web-example-2.0.0.RELEASE.jar:BOOT-INF/lib/spring-boot-starter-aop-2.0.0.RELEASE.jar
spring-boot-starter-data-jpa-2.0.0.RELEASE         N/A                          N/A                           /spring-data-web-example-2.0.0.RELEASE.jar:BOOT-INF/lib/spring-boot-starter-data-jpa-2.0.0.RELEASE.jar
spring-boot-starter-jdbc-2.0.0.RELEASE             N/A                          N/A                           /spring-data-web-example-2.0.0.RELEASE.jar:BOOT-INF/lib/spring-boot-starter-jdbc-2.0.0.RELEASE.jar
spring-boot-starter-json-2.0.0.RELEASE             N/A                          N/A                           /spring-data-web-example-2.0.0.RELEASE.jar:BOOT-INF/lib/spring-boot-starter-json-2.0.0.RELEASE.jar
spring-boot-starter-logging-2.0.0.RELEASE          N/A                          N/A                           /spring-data-web-example-2.0.0.RELEASE.jar:BOOT-INF/lib/spring-boot-starter-logging-2.0.0.RELEASE.jar
spring-boot-starter-security-2.0.0.RELEASE         N/A                          N/A                           /spring-data-web-example-2.0.0.RELEASE.jar:BOOT-INF/lib/spring-boot-starter-security-2.0.0.RELEASE.jar
spring-boot-starter-thymeleaf-2.0.0.RELEASE        N/A                          N/A                           /spring-data-web-example-2.0.0.RELEASE.jar:BOOT-INF/lib/spring-boot-starter-thymeleaf-2.0.0.RELEASE.jar
...

Note how jce from the jdk library has no version in its PATH but still gets its version detected, while others like charsets do not. Similarly, attoparser-2.0.4.RELEASE has its version detected but spring-boot-2.0.0.RELEASE does not.
Manually extracting these JARs shows they do have a manifest with version information attached.
What did you expect to happen:
All JAR version were detected correctly, demonstrating known vulnerabilities (in this case, for Jenkins or Spring)

Any relevant log output from /var/log/anchore:
Nothing that seems out of the ordinary:
[service:worker] 2019-07-03 22:37:46+0000 [-] twistd 18.9.0 (/opt/rh/rh-python36/root/usr/bin/python3 3.6.3) starting up.
[service:worker] 2019-07-03 22:37:46+0000 [-] reactor class: twisted.internet.epollreactor.EPollReactor.
[service:worker] 2019-07-03 22:37:46+0000 [-] Site starting on 8228
[service:worker] 2019-07-03 22:37:46+0000 [-] Starting factory <twisted.web.server.Site object at 0x7f86d47d9f60>
[service:worker] 2019-07-03 22:38:10+0000 [-] "<IP_ADDRESS>" - - [03/Jul/2019:22:38:10 +0000] "GET /health HTTP/1.1" 200 - "-" "curl/7.29.0"
[service:worker] 2019-07-03 22:38:40+0000 [-] "<IP_ADDRESS>" - - [03/Jul/2019:22:38:40 +0000] "GET /health HTTP/1.1" 200 - "-" "curl/7.29.0"
[service:worker] 2019-07-03 22:39:10+0000 [-] "<IP_ADDRESS>" - - [03/Jul/2019:22:39:10 +0000] "GET /health HTTP/1.1" 200 - "-" "curl/7.29.0"
[service:worker] 2019-07-03 22:39:41+0000 [-] "<IP_ADDRESS>" - - [03/Jul/2019:22:39:40 +0000] "GET /health HTTP/1.1" 200 - "-" "curl/7.29.0"
[service:worker] 2019-07-03 22:40:11+0000 [-] "<IP_ADDRESS>" - - [03/Jul/2019:22:40:10 +0000] "GET /health HTTP/1.1" 200 - "-" "curl/7.29.0"
[service:worker] 2019-07-03 22:40:41+0000 [-] "<IP_ADDRESS>" - - [03/Jul/2019:22:40:40 +0000] "GET /health HTTP/1.1" 200 - "-" "curl/7.29.0"
[service:worker] 2019-07-03 22:40:47+0000 [-] [Thread-186] [anchore_engine.services.analyzer/process_analyzer_job()] [INFO] image dequeued for analysis: admin : sha256:cf842a4d075d1cef8b9ba98389000ff829c03f0a233cf2c4407afc21fea80e79
[service:worker] 2019-07-03 22:40:47+0000 [-] [Thread-186] [anchore_engine.services.analyzer/perform_analyze_nodocker()] [INFO] performing analysis on image: ['admin', 'docker.io/vulhub/spring-data-commons@sha256:cf842a4d075d1cef8b9ba98389000ff829c03f0a233cf2c4407afc21fea80e79', 'docker.io/vulhub/spring-data-commons:2.0.5']
[service:worker] 2019-07-03 22:40:47+0000 [-] [Thread-186] [anchore_engine.clients.localanchore_standalone/get_anchorelock()] [INFO] copying new config into place: /anchore_service/analyzer_config.yaml -> /home/anchore/.anchore/conf/analyzer_config.yaml
[service:worker] 2019-07-03 22:41:11+0000 [-] "<IP_ADDRESS>" - - [03/Jul/2019:22:41:10 +0000] "GET /health HTTP/1.1" 200 - "-" "curl/7.29.0"
[service:worker] 2019-07-03 22:41:41+0000 [-] "<IP_ADDRESS>" - - [03/Jul/2019:22:41:40 +0000] "GET /health HTTP/1.1" 200 - "-" "curl/7.29.0"
[service:worker] 2019-07-03 22:42:11+0000 [-] "<IP_ADDRESS>" - - [03/Jul/2019:22:42:10 +0000] "GET /health HTTP/1.1" 200 - "-" "curl/7.29.0"
[service:worker] 2019-07-03 22:42:40+0000 [-] [Thread-186] [anchore_engine.services.analyzer/perform_analyze_nodocker()] [INFO] performing analysis on image complete: docker.io/vulhub/spring-data-commons@sha256:cf842a4d075d1cef8b9ba98389000ff829c03f0a233cf2c4407afc21fea80e79
[service:worker] 2019-07-03 22:42:41+0000 [-] "<IP_ADDRESS>" - - [03/Jul/2019:22:42:40 +0000] "GET /health HTTP/1.1" 200 - "-" "curl/7.29.0"

What docker images are you using:

anchore/anchore-engine:v0.4.1 (latest)
vulhub/spring-data-commons:2.0.5
vulhub/jenkins:2.138

How to reproduce the issue:
anchore-cli image add docker.io/vulhub/spring-data-commons:2.0.5
anchore-cli image wait docker.io/vulhub/spring-data-commons:2.0.5
anchore-cli image content docker.io/vulhub/spring-data-commons:2.0.5 java

anchore-cli image add docker.io/vulhub/jenkins:2.138
anchore-cli image wait docker.io/vulhub/jenkins:2.138
anchore-cli image content docker.io/vulhub/jenkins:2.138 java

@stewartadam , thanks for the detailed write-up, we'll take a look. This is very helpful to reproduce and triage.

Hi @zhill, any updates on this? Thx


Add policy document condition error checking.

As an enhancement, it would be nice to have some error checking to make sure the supplied fields are valid. The nodejs approach is here.

Check that the expiration timestamp is valid.
Check the expiration date is not in the past.
Check that conditions contain correct amount of elements.

I'm not sure what the best way to tackle this is. Spit-balling some ideas:

Disallow modifying conditions directly and force the user to use the helper functions to create the conditions.

Use json.parse on the conditions and use the nljson API to determine if the supplied arguments are valid integers.

Have the user pass Options similar to SignedURL and the nodejs approach.

Use a heterogeneous std::vector instead of a std::vector<std::string>.

Approach 1 is the simplest approach, but we will also need to allow the user to set cache-control, cache-disposition, et al (see the docs for a full list).

cc @coryan as his PR's are changing relevant parts of code. We may as well go all out with approach 3.
Also the new guys @scotthart @mr-salty in case they have any ideas to contribute.

Close this? I think this would duplicate server-side error checking and I created this before I saw the ADR.

SGTM. Closing.


Add instructions to generate project without installing

TLDR: Generate a teams app project without installing packages globally using the following command: npm init yo teams
Generators like this one is not frequently used. Installing the package globally means it will most likely be outdated the next time you want to use it, and updating and keeping track of versions is a bit of a pain.
A convenient solution is to utilize npm's init-feature. It invokes npx which is a package runner. It gets the executable, runs the command, and then gets rid of the executable. This is preferable if you're not using the executable frequently.
I think it would be better to list these installation instructions instead of the current ones.
Again, the installation instructions should be:
npm init yo teams
Instead of:
npm install generator-teams --global
yo teams
Thanks

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

ID: 42e0cad5-f762-c253-7d3b-b23ae3cb5b1c
Version Independent ID: f1babe27-cbc7-f757-11b4-fc8fa1e36873
Content: Tutorial - Create your first app using the Yeoman generator - Teams
Content Source: msteams-platform/tutorials/get-started-yeoman.md
Product: msteams
GitHub Login: @laujan
Microsoft Alias: lajanuar

Hi @MrEmanuel, Thank you for the insights on the document. Taking this for internal discussion with team.

Hi @v-abirade Could you please replace npm init yo teams instead of yo teams and remove below snip in the documentation.

Fixed as part of Tutorials and Code Samples.

Issue closed as part of PR #3651


Mean reward first rises and then falls during the training process

Can you provide an  example training log of Go2?
It's weird that the mean reward first rises and then falls during the training process.
All settings follow the repository.

I encountered the same situation before. Through inspecting the simulation visualization, I found that the decline of mean_reward is mainly due to the decline of mean_episode_length. After training for several iterations, many environments will terminate not long after they start the episode. Due to the increase of short episode, the mean_episode_length declines, and the mean_reward is calced by dividing reward_sum by max_episode_length. Because of the shorter episode, the reward_sum becomes smaller, and so the mean_reward declines. You can check and refine your termination condition to possibly avoid this. Or you can also increase the information the agent receives, because the original version is a POMDP setting in my view.

Thanks for your kind advice. I have retried with a different random seed and got a normal result this time.
I will also look into the termination condition as your advice.


Add support for ModernBert

The docs for this PR live here. All of your documentation changes will be reflected on that endpoint. The docs are available until 30 days after the last update.


WSI not being converted to DZ file

Possible bug
Is this a possible bug in a feature of sharp, unrelated to installation?

[x] Running npm install sharp completes without error.
[x] Running node -e "require('sharp')" completes without error.

Are you using the latest version of sharp?

[x] I am using the latest version of sharp as reported by npm view sharp dist-tags.latest.

What is the output of running npx envinfo --binaries --system --npmPackages=sharp --npmGlobalPackages=sharp?
System:
    OS: Windows 10 10.0.22621
    CPU: (8) x64 Intel(R) Core(TM) i7-10510U CPU @ 1.80GHz
    Memory: 2.07 GB / 15.76 GB
  Binaries:
    Node: 18.12.0 - C:\Program Files\nodejs\node.EXE
    npm: 8.19.2 - C:\Program Files\nodejs\npm.CMD
  npmPackages:
    sharp: ^0.31.2 => 0.31.2

What are the steps to reproduce?

Create a new folder
Inside it, run the command npm install sharp
Create a file with the provided code
Run node ./<filename>.js

What is the expected behaviour?
The Aperio SVS image should be loaded and converted into a DZ file successfully.
Please provide a minimal, standalone code sample, without other dependencies, that demonstrates this problem
const sharp = require('sharp');

sharp('WSI.svs', { limitInputPixels: false })
    .toFile('./output.dz', (err, info) => {
        console.log(err);
        console.log(info);
    });

Error
Error: jp2k: libvips built without JPEG2000 support

The prebuilt binaries provided by sharp do not include support for OpenSlide or JPEG2000.
You'll need to build your own libvips, and please note this is unsupported on Windows.
https://sharp.pixelplumbing.com/install#custom-libvips


e: C:\flutter.pub-cache\hosted\pub.dartlang.org\blue_print_pos-

e: C:\flutter.pub-cache\hosted\pub.dartlang.org\blue_print_pos-0.0.12\android\src\main\kotlin\com\ayeee\blue_print_pos\BluePrintPosPlugin.kt: (51, 62): Unresolved reference: R
e: C:\flutter.pub-cache\hosted\pub.dartlang.org\blue_print_pos-0.0.12\android\src\main\kotlin\com\ayeee\blue_print_pos\BluePrintPosPlugin.kt: (52, 60): Unresolved reference: currentWindowMetrics
e: C:\flutter.pub-cache\hosted\pub.dartlang.org\blue_print_pos-0.0.12\android\src\main\kotlin\com\ayeee\blue_print_pos\BluePrintPosPlugin.kt: (53, 98): Unresolved reference: Type
FAILURE: Build failed with an exception.

What went wrong:
Execution failed for task ':blue_print_pos:compileDebugKotlin'.

Compilation error. See log for more details

Try:
Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output. Run with --scan to get full insights.

Get more help at https://help.gradle.org

BUILD FAILED in 18s
Exception: Gradle task assembleDebug failed with exit code 1

Upgrade your kotlin version to the latest.
Go to your build.gradle file in the root of your Android directory. As of the time of typing this, the latest is 1.6.10, so it should look like this:
ext.kotlin_version = '1.6.10'


Any way to keep the drop down open until user clicks elsewhere?

I'm running into an issue that when I select an item the drop down immediately closes. Then I have to reopen the dropdown to select another item. Is there any way around this? Apologies, I'm new to JS and still learning. Thanks.

I've released a new update to address a few bugs. Please grab it from the releases section.


Actors are not selectable when it should

@Mac1512 found that actor should be selectable here but it's not:

In the script, at the beginning of the game we have this:
actorSlotSelectable(OFF), that's why engge does not show the actor selection.
But I discovered that Thimbleweed Park does not display either the actor selection but if you put your cursor on the invisible actor selection, it appears.


[BUG] in contact page, in the section of "Enter your name " there are some bug which may include digits in name

There is a bug on the contact page in the "Enter your name" section that allows users to input digits into the name field. This issue can lead to confusion, as names typically do not contain numbers. To fix this, input validation should be implemented to restrict the field to alphabetic characters only. Additionally, providing users with clear instructions on acceptable input can enhance user experience and ensure that names are entered correctly.

@anish013326 Good. You can work on this.
Also, Could you please add the Label above input field (i.e, Your name, Your Email, Phone Number)

i want to work on this issue.

i want to work on this issue.

Already assigned to @anish013326.
@itsaryan917 You can still find and raise new issues.


Documentation for GITHUB_TOKEN required permissions

When default org level permissions as set to readonly for GITHUB_TOKEN, what required permissions are required for this Action in a workflows?
Please update documentation accordingly.
Thank you.

Thank you, I updated README.md.


Don't use innerHTML on SVG elements when setting donut title

Applying SVG/InnerHTML bug fix to 2.3.x branch

LGTM


/sys/fs/cgroup/memory/memory.limit_in_bytes: No such file or directory

Hi,
I want to start an oracle 19c database image locally on my Arch Linux system. The build was successfully. When I start the image with the following command line, I notice the following error in the runOracle.sh script.
$ docker run \
  --name oracle19c   \
  -p 1521:1521 \
  -p 5500:5500 \
  -e ORACLE_PDB=ORCL \
  -e ORACLE_PWD=password \
  -e ORACLE_MEM=4000 \
  -d   oracle/database:19.3.0-se2
$ docker logs 847
cat: /sys/fs/cgroup/memory/memory.limit_in_bytes: No such file or directory
cat: /sys/fs/cgroup/memory/memory.limit_in_bytes: No such file or directory
/opt/oracle/runOracle.sh: line 93: [: -lt: unary operator expected
...

Now, I want to know if have missed some settings and if my docker command is correct. Otherwise, consider this as an issue.
tech stack
docker
Client:
 Context:    default
 Debug Mode: false
 Plugins:
  app: Docker App (Docker Inc., v0.9.1-beta3)
  buildx: Build with BuildKit (Docker Inc., v0.5.1-tp-docker

Server:
 Containers: 1
  Running: 1
  Paused: 0
  Stopped: 0
 Images: 135
 Server Version: 20.10.6
 Storage Driver: btrfs
  Build Version: Btrfs v5.11.1
  Library Version: 102
 Logging Driver: journald
 Cgroup Driver: systemd
 Cgroup Version: 2
 Plugins:
  Volume: local
  Network: bridge host ipvlan macvlan null overlay
  Log: awslogs fluentd gcplogs gelf journald json-file local logentries splunk syslog
 Swarm: inactive
 Runtimes: io.containerd.runtime.v1.linux runc io.containerd.runc.v2
 Default Runtime: runc
 Init Binary: docker-init
 containerd version: 12dca9790f4cb6b18a6a7a027ce420145cb98ee7.m
 runc version: 2c7861bc5e1b3e756392236553ec14a78a09f8bf
 init version: de40ad0
 Security Options:
  seccomp
   Profile: default
  cgroupns
 Kernel Version: 5.10.37-1-lts
 Operating System: Arch Linux
 OSType: linux
 Architecture: x86_64
 CPUs: 24
 Total Memory: 62.82GiB
 Name: markus-pc
 Docker Root Dir: /var/lib/docker
 Debug Mode: false
 Registry: https://index.docker.io/v1/
 Labels:
 Experimental: false
 Insecure Registries:
  <IP_ADDRESS>/8
 Live Restore Enabled: false
 Default Address Pools:
   Base: <IP_ADDRESS>/18, Size: 24

WARNING: No kernel memory limit support
WARNING: No oom kill disable support

kernel
$ Linux markus-pc 5.10.37-1-lts #1 SMP Fri, 14 May 2021 13:37:05 +0000 x86_64 GNU/Linux

cpu
$ lscpu
Architecture:                    x86_64
CPU op-mode(s):                  32-bit, 64-bit
Byte Order:                      Little Endian
Address sizes:                   43 bits physical, 48 bits virtual
CPU(s):                          24
On-line CPU(s) list:             0-23
Thread(s) per core:              2
Core(s) per socket:              12
Socket(s):                       1
NUMA node(s):                    1
Vendor ID:                       AuthenticAMD
CPU family:                      23
Model:                           113
Model name:                      AMD Ryzen 9 3900X 12-Core Processor
Stepping:                        0
Frequency boost:                 enabled
CPU MHz:                         2155.824
CPU max MHz:                     6078.5151
CPU min MHz:                     2200.0000
BogoMIPS:                        7600.47
Virtualization:                  AMD-V
L1d cache:                       384 KiB
L1i cache:                       384 KiB
L2 cache:                        6 MiB
L3 cache:                        64 MiB
NUMA node0 CPU(s):               0-23
Vulnerability Itlb multihit:     Not affected
Vulnerability L1tf:              Not affected
Vulnerability Mds:               Not affected
Vulnerability Meltdown:          Not affected
Vulnerability Spec store bypass: Mitigation; Speculative Store Bypass disabled via prctl and seccomp
Vulnerability Spectre v1:        Mitigation; usercopy/swapgs barriers and __user pointer sanitization
Vulnerability Spectre v2:        Mitigation; Full AMD retpoline, IBPB conditional, STIBP always-on, RSB filling
Vulnerability Srbds:             Not affected
Vulnerability Tsx async abort:   Not affected
Flags:                           fpu vme de pse tsc msr pae mce cx8 apic sep mtrr pge mca cmov pat pse36 clflush mmx fxsr sse sse2 ht syscall nx mmxext fxsr_opt pdpe1gb rdtscp lm constant_tsc rep_good nopl nonstop_tsc cpuid extd_apicid ape
                                 rfmperf pni pclmulqdq monitor ssse3 fma cx16 sse4_1 sse4_2 movbe popcnt aes xsave avx f16c rdrand lahf_lm cmp_legacy svm extapic cr8_legacy abm sse4a misalignsse 3dnowprefetch osvw ibs skinit wdt tce topoex
                                 t perfctr_core perfctr_nb bpext perfctr_llc mwaitx cpb cat_l3 cdp_l3 hw_pstate sme ssbd mba sev ibpb stibp vmmcall sev_es fsgsbase bmi1 avx2 smep bmi2 cqm rdt_a rdseed adx smap clflushopt clwb sha_ni xsaveo
                                 pt xsavec xgetbv1 xsaves cqm_llc cqm_occup_llc cqm_mbm_total cqm_mbm_local clzero irperf xsaveerptr rdpru wbnoinvd arat npt lbrv svm_lock nrip_save tsc_scale vmcb_clean flushbyasid decodeassists pausefilter
                                  pfthreshold avic v_vmsave_vmload vgif umip rdpid overflow_recov succor smcabmi2 cqm rdt_a rdseed adx smap clflushopt clwb sha_ni xsaveo
                                 pt xsavec xgetbv1 xsaves cqm_llc cqm_occup_llc cqm_mbm_total cqm_mbm_local clzero irperf xsaveerptr rdpru wbnoinvd arat npt lbrv svm_lock nrip_save tsc_scale vmcb_clean flushbyasid decodeassists pausefilter
                                  pfthreshold avic v_vmsave_vmload vgif umip rdpid overflow_recov succor smca

memory
$ free -h
               total        used        free      shared  buff/cache   available
Mem:        65870120     9466580      605344    20171524    55798196    35505100
Swap:       30946300<PHONE_NUMBER>8

The runOracle.sh script is trying to ensure that the container has enough memory, see here.
However, apparently the cgroup file system is not mounted inside the container, hence:
cat: /sys/fs/cgroup/memory/memory.limit_in_bytes: No such file or directory
cat: /sys/fs/cgroup/memory/memory.limit_in_bytes: No such file or directory

and without the values of that file the if statement throws the unary operator expected error:
/opt/oracle/runOracle.sh: line 93: [: -lt: unary operator expected

The question is, why is there no /sys/fs/cgroup/memory?
Googling around suggests that perhaps the cgroup kernel memory feature is not enabled?
Although not a direct hit, there are numerous references to memory and the kernel not having the cgroup_enable=memory configured, see here, here, here and here.
There is also a kernel check script that might be worthwhile to run (see here), given that your Docker output reports:
WARNING: No kernel memory limit support
WARNING: No oom kill disable support

@gvenzl, I suspect the issue is that the host (and docker) is configured to use cgroup V2 which is not compatible with cgroup V1...
An solution might be to revert to cgroup V1 on the host (systemd.unified_cgroup_hierarchy=0)

Thanks @AmedeeBulle,
I assume that cgroup V2 provides alternative mechanisms?

@AmedeeBulle, yes cgroups v1 is not enabled by default on Arch Linux. A possible solution would be to reactivate  v1 by systemd.unified_cgroup_hierarchy=0 as kernel parameter, but I think it should be better to support v2, because I think more and more distributions will be move in future from one release to another to v2.

same issue : I think this image missed a script to " Check whether container has enough memory".
WARN[0000] /home/kazz/oracle-19c/docker-compose.yml: the attribute `version` is obsolete, it will be ignored, please remove it to avoid potential confusion
[+] Running 1/0
 ✔ Container oracle-19c  Created                                                                                0.0s
Attaching to oracle-19c
oracle-19c  | cat: /sys/fs/cgroup/memory/memory.limit_in_bytes: No such file or directory
oracle-19c  | cat: /sys/fs/cgroup/memory/memory.limit_in_bytes: No such file or directory
oracle-19c  | /opt/oracle/runOracle.sh: line 102: [: -lt: unary operator expected
oracle-19c  | ORACLE PASSWORD FOR SYS, SYSTEM AND PDBADMIN: kazz
oracle-19c  |
oracle-19c  | LSNRCTL for Linux: Version <IP_ADDRESS>.0 - Production on 23-JUL-2024 17:35:36
oracle-19c  |
oracle-19c  | Copyright (c) 1991, 2020, Oracle.  All rights reserved.
oracle-19c  |
oracle-19c  | Starting /opt/oracle/product/19c/dbhome_1/bin/tnslsnr: please wait...
oracle-19c  |
oracle-19c  | TNSLSNR for Linux: Version <IP_ADDRESS>.0 - Production
oracle-19c  | System parameter file is /opt/oracle/product/19c/dbhome_1/network/admin/listener.ora
oracle-19c  | Log messages written to /opt/oracle/diag/tnslsnr/363520476c87/listener/alert/log.xml
oracle-19c  | Listening on: (DESCRIPTION=(ADDRESS=(PROTOCOL=ipc)(KEY=EXTPROC1)))
oracle-19c  | Listening on: (DESCRIPTION=(ADDRESS=(PROTOCOL=tcp)(HOST=<IP_ADDRESS>)(PORT=1521)))
oracle-19c  |
oracle-19c  | Connecting to (DESCRIPTION=(ADDRESS=(PROTOCOL=IPC)(KEY=EXTPROC1)))
oracle-19c  | STATUS of the LISTENER
oracle-19c  | ------------------------
oracle-19c  | Alias                     LISTENER
oracle-19c  | Version                   TNSLSNR for Linux: Version <IP_ADDRESS>.0 - Production
oracle-19c  | Start Date                23-JUL-2024 17:35:37
oracle-19c  | Uptime                    0 days 0 hr. 0 min. 0 sec
oracle-19c  | Trace Level               off
oracle-19c  | Security                  ON: Local OS Authentication
oracle-19c  | SNMP                      OFF
oracle-19c  | Listener Parameter File   /opt/oracle/product/19c/dbhome_1/network/admin/listener.ora
oracle-19c  | Listener Log File         /opt/oracle/diag/tnslsnr/363520476c87/listener/alert/log.xml
oracle-19c  | Listening Endpoints Summary...
oracle-19c  |   (DESCRIPTION=(ADDRESS=(PROTOCOL=ipc)(KEY=EXTPROC1)))
oracle-19c  |   (DESCRIPTION=(ADDRESS=(PROTOCOL=tcp)(HOST=<IP_ADDRESS>)(PORT=1521)))
oracle-19c  | The listener supports no services
oracle-19c  | The command completed successfully
oracle-19c  | library initialization failed - unable to allocate file descriptor table - out of memory/opt/oracle/createDB.sh: line 63:    29 Aborted                 (core dumped) dbca -silent -createDatabase -responseFile $ORACLE_BASE/dbca.rsp
oracle-19c  | cat: /opt/oracle/cfgtoollogs/dbca/MYORCL/MYORCL.log: No such file or directory
oracle-19c  | cat: /opt/oracle/cfgtoollogs/dbca/MYORCL.log: No such file or directory
oracle-19c  | mv: cannot stat '/opt/oracle/product/19c/dbhome_1/dbs/spfileMYORCL.ora': No such file or directory
oracle-19c  | mv: cannot stat '/opt/oracle/product/19c/dbhome_1/dbs/orapwMYORCL': No such file or directory
oracle-19c  | mv: cannot stat '/opt/oracle/product/19c/dbhome_1/network/admin/tnsnames.ora': No such file or directory
oracle-19c  | ORACLE_HOME = [/home/oracle] ? ORACLE_BASE environment variable is not being set since this
oracle-19c  | information is not available for the current user ID .
oracle-19c  | You can set ORACLE_BASE manually if it is required.
oracle-19c  | Resetting ORACLE_BASE to its previous value or ORACLE_HOME
oracle-19c  | The Oracle base remains unchanged with value /opt/oracle
oracle-19c  | /opt/oracle/checkDBStatus.sh: line 26: sqlplus: command not found
oracle-19c  | #####################################
oracle-19c  | ########### E R R O R ###############
oracle-19c  | DATABASE SETUP WAS NOT SUCCESSFUL!
oracle-19c  | Please check output for further info!
oracle-19c  | ########### E R R O R ###############
oracle-19c  | #####################################
oracle-19c  | The following output is now a tail of the alert.log:
oracle-19c  | tail: cannot open '/opt/oracle/diag/rdbms/*/*/trace/alert*.log' for reading: No such file or directory
oracle-19c  | tail: no files remaining
oracle-19c exited with code 1


Where is the location of the Local Cache when using CloudCache?

Where is the location of the Local Cache when using CloudCache?

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

ID: 3ef9db9f-d2a5-e4be-57cc-265310659c02
Version Independent ID: baa86801-4ace-567b-a0e7-6d4ea072df5f
Content: Cloud Cache for resiliency and availability - FSLogix
Content Source: fslogix-docs/cloud-cache-resiliency-availability-cncpt.md
Product: fslogix
GitHub Login: @DougCoombs
Microsoft Alias: docoombs

This is documented in cloud cache configuration reference and is based on CacheDirectory setting with a default of c:\ProgramData\FSLogix\Cache


Connection error on node.js version >= 0.11.3

I get error when connecting to server with node.js v0.11.3 and up
vertica.connect({host:'<IP_ADDRESS>', user:'...', password:'...'}, function(err){
    console.log(err);
});

{ [Error: Invalid startup packet layout: expected terminator as last byte]
  message: 'Invalid startup packet layout: expected terminator as last byte',
  fields:
   { Severity: 'FATAL',
     Code: '08V01',
     Message: 'Invalid startup packet layout: expected terminator as last byte',
     File: '/scratch_a/release/vbuild/vertica/Session/ClientSession.cpp',
     Line: '3800',
     Routine: 'ProcessStartupPacket' },
  code: '08V01' }

@sudhakar Thanks for fixing this issue.

@wvanbergen Big thanks to you for this library. I have been using this in production for more than a year & super happy with its stability :sparkles:

I am no longer using this library myself. I have added you as a collaborator so you can fix issues if you run into any. Feel free to ping me for code reviews if you want to.

Awesome @wvanbergen. I missed to update the package.json on the last PR. Have updated & pushed in the last commit. Can you publish 0.5.3 to npm..

Release is pushed. Can you check if it's working as expected?


pull request for e2e test at 01/11/2017 20:26:13

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


[BUG] All docs.django-cms.org pages "Edit on GitHub" links lead to 404

Steps to reproduce

open any page on https://docs.django-cms.org/en/latest/
scroll to the bottom of the page and click on the "Edit on GitHub" link
it leads to https://github.com/django-cms/django-cms//develop/docs/index

Would love to help out here, but its hard to test it local. Because locally you dont have the "Edit on GitHub" Button.

I can't see any settings on RTD that would have caused this so it's still a bit of a mystery.
However it seems that the new docs theme doesn't have this link, so I'm going to close this.


Debug canvas context size does not update when using ScaleManager.RESIZE

Not a critical bug, but still a slightly annoying one.
I'm debugging the mouse pointer with this.game.debug.pointer(game.input.mousePointer); while using the automatic resize feature provided by ScaleManager.RESIZE.  The problem is the visual output is being cropped because the canvas context being used is still at the original size which was set when instantiating the Game.
See: Phaser.Utils.Debug#boot
This bug would affect all debug output types.
Edit: FYI: I've just instantiated the game at a larger size to work around it...

This only affects WEBGL; in CANVAS mode the debug information is written directly to the same-same output.

The bug exist in the ScaleManager class getParentBounds function.
I can't push changes to new branch and create pull request to fix it.
i am getting 403 on the push to new branch.

@nisimjoseph could you just paste the fix up here? I doubt it's that large?

Closing this one off as it's now (finally) fixed in dev.

I have the save problem in phaser v2.8.2 now

I use EXACT_FIT,  I found it resize debug bitmap to my canvas size in css style, not the width attribute in canvas. My canvas width in css is 667px, but my game and width in canvas is 1334.
Because the will work well in retina.

@yeluoqiuzhi you need to open the issue on the Phaser CE repo (with a test case)


How use translated permalink?

Unfortunately this doesn't work inside the permalink key inside front-matter:

---
layout: default
permalink: /titles.home/
title: titles.home

---

This return a titles.home (not translated) folder with the page inside. So my question is, how we can use and translate permalinks? Because is a no-sense translating pages and leave the permalink not translated.

Try the new 1.4.0 version of this plugin.

I'm having the same issue on 1.4.1. Titles aren't working either. There's no error or anything. I followed the instructions under 5.4. i18n in templates exactly.
Thanks for the amazing plugin!

Confirm this is not working. v1.5.1


Updated scalafix dependencies

One thing I noticed while updating the changelog is that the version will always be one step behind.  We can't bump this before it's in Maven Central.  I think it's fine, because the scalafix can be pulled from GitHub.
Maybe we could automate this by finding the most recent tag?


Introduced locate_segment_position() function

Given that SONATA format stores synapse positions as section ID + relative distance along the section, the task of locating the corresponding segment might be something needed repeatedly.
Not sure if NeuroM is the appropriate place for it, though.

Codecov Report

Merging #688 into master will not change coverage.
The diff coverage is 100%.

@@          Coverage Diff          @@
##           master   #688   +/-   ##
=====================================
  Coverage     100%   100%
=====================================
  Files          43     43
  Lines        2213   2219    +6
=====================================
+ Hits         2213   2219    +6


Supporting vue single files with lang="ts"

I'm using vue single files with typescript. The SonarJS Plugin is supporting those files but this is not for typescript. Is would be nice if the SonarTS Plugin can support this also. It will also mean that sonar.typescript.file.suffixes has to be supported.
<template>

Here is my markup

</template>

+1， want sonarTS support typescript checking in vue file


Unable to install

I have a FreeCAD workbench that uses the python  hausdorff package.
FreeCAD has been updated to use PythonPython 3.10.8 and when I try to install it and it tries to install numba and I get
the following error.
>>> import hausdorff
Traceback (most recent call last):
  File "/Users/keithsloan/Library/Application Support/FreeCAD/AdditionalPythonPackages/numba/core/typeconv/typeconv.py", line 4, in <module>
    from numba.core.typeconv import _typeconv
ImportError: cannot import name '_typeconv' from 'numba.core.typeconv' (/Users/keithsloan/Library/Application Support/FreeCAD/AdditionalPythonPackages/numba/core/typeconv/__init__.py)

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "<input>", line 1, in <module>
  File "/Applications/FreeCAD.app/Contents/Resources/lib/python3.10/site-packages/shiboken2/files.dir/shibokensupport/feature.py", line 139, in _import
    return original_import(name, *args, **kwargs)
  File "/Users/keithsloan/Library/Application Support/FreeCAD/AdditionalPythonPackages/hausdorff/__init__.py", line 1, in <module>
    from .hausdorff import *
  File "/Applications/FreeCAD.app/Contents/Resources/lib/python3.10/site-packages/shiboken2/files.dir/shibokensupport/feature.py", line 139, in _import
    return original_import(name, *args, **kwargs)
  File "/Users/keithsloan/Library/Application Support/FreeCAD/AdditionalPythonPackages/hausdorff/hausdorff.py", line 2, in <module>
    import numba
  File "/Applications/FreeCAD.app/Contents/Resources/lib/python3.10/site-packages/shiboken2/files.dir/shibokensupport/feature.py", line 139, in _import
    return original_import(name, *args, **kwargs)
  File "/Users/keithsloan/Library/Application Support/FreeCAD/AdditionalPythonPackages/numba/__init__.py", line 23, in <module>
    from numba.misc.special import (
  File "/Applications/FreeCAD.app/Contents/Resources/lib/python3.10/site-packages/shiboken2/files.dir/shibokensupport/feature.py", line 139, in _import
    return original_import(name, *args, **kwargs)
  File "/Users/keithsloan/Library/Application Support/FreeCAD/AdditionalPythonPackages/numba/misc/special.py", line 3, in <module>
    from numba.core.typing.typeof import typeof
  File "/Applications/FreeCAD.app/Contents/Resources/lib/python3.10/site-packages/shiboken2/files.dir/shibokensupport/feature.py", line 139, in _import
    return original_import(name, *args, **kwargs)
  File "/Users/keithsloan/Library/Application Support/FreeCAD/AdditionalPythonPackages/numba/core/typing/__init__.py", line 1, in <module>
    from .context import BaseContext, Context
  File "/Applications/FreeCAD.app/Contents/Resources/lib/python3.10/site-packages/shiboken2/files.dir/shibokensupport/feature.py", line 139, in _import
    return original_import(name, *args, **kwargs)
  File "/Users/keithsloan/Library/Application Support/FreeCAD/AdditionalPythonPackages/numba/core/typing/context.py", line 11, in <module>
    from numba.core.typeconv import Conversion, rules
  File "/Applications/FreeCAD.app/Contents/Resources/lib/python3.10/site-packages/shiboken2/files.dir/shibokensupport/feature.py", line 139, in _import
    return original_import(name, *args, **kwargs)
  File "/Users/keithsloan/Library/Application Support/FreeCAD/AdditionalPythonPackages/numba/core/typeconv/rules.py", line 2, in <module>
    from .typeconv import TypeManager, TypeCastingRules
  File "/Applications/FreeCAD.app/Contents/Resources/lib/python3.10/site-packages/shiboken2/files.dir/shibokensupport/feature.py", line 139, in _import
    return original_import(name, *args, **kwargs)
  File "/Users/keithsloan/Library/Application Support/FreeCAD/AdditionalPythonPackages/numba/core/typeconv/typeconv.py", line 16, in <module>
    raise ImportError(msg)
ImportError: Numba could not be imported.
--------------------------------------------------------------------------------
If you are seeing this message and are undertaking Numba development work, you may need to rebuild Numba.
Please see the development set up guide:

https://numba.readthedocs.io/en/stable/developer/contributing.html.

--------------------------------------------------------------------------------
If you are not working on Numba development, the original error was: 'cannot import name '_typeconv' from 'numba.core.typeconv' (/Users/keithsloan/Library/Application Support/FreeCAD/AdditionalPythonPackages/numba/core/typeconv/__init__.py)'.
For help, please visit:

https://numba.readthedocs.io/en/stable/user/faq.html#numba-could-not-be-imported

>>>

Thanks for the report @KeithSloan. Did you try the suggestions available in the URL in the "For help, please visit:..." part of the error message?

FreeCAD workbenches are installed via an Addon Manager which my understanding is uses pip to install required python libraries.
I have pm'ed the developer to see if, what they advise.
The https://numba.readthedocs.io/en/stable/developer/contributing.html. link gives me a 404 error

FreeCAD workbenches are installed via an Addon Manager which my understanding is uses pip to install required python libraries.
I have pm'ed the developer to see if, what they advise.

OK, thanks. The user FAQs linked above aim to assist with diagnosing and fixing the problem, they are based on a digest of helping many users with installation problems.

The https://numba.readthedocs.io/en/stable/developer/contributing.html. link gives me a 404 error

Was the . on the end in the URL perhaps accidentally included?

Okay fixed by using the version of Python installed in FreeCAD.
/Applications/FreeCAD.app/Contents/Resources/bin/python -m pip install --upgrade numba

Okay fixed by using the version of Python installed in FreeCAD.
/Applications/FreeCAD.app/Contents/Resources/bin/python -m pip install --upgrade numba

Thanks for confirming. Closing this as resolved.


Line symbol which only has one layer contained in fill symbols,it will lost layer Activeness info

Describe the bug
Not only the line symbol which contained in fill symbols lost activeness info,And marked symbols which contained in line symbol the same.
Screenshots
just like this is the fill symbol,some line symbol is contained in it:

the fill line symbol(only has one layer):

the parsed result:
"lineProperties_fillingLine": {
"name": "Filling Line",
"numberOfLineLayers": 1,
"lineLayer": [
{
"number": 1,
"type": "Simple Line",
"color_simpleLineColor": {
"name": "Simple Line Color",
"space": "RGB",
"firstField": 91.231851,
"secondField": -49.888863,
"thirdField": 80.838943
},
"width": 1.000000,
"style": "Solid"
}
]
},
"lineProperties_outline": {
"name": "Outline",
"numberOfLineLayers": 1,
"lineLayer": [
{
"number": 1,
"type": "Simple Line",
"color_simpleLineColor": {
"name": "Simple Line Color",
"space": "RGB",
"firstField": 54.043767,
"secondField": 0.000000,
"thirdField": 0.000000
},
"width": 1.000000,
"style": "Solid"
}
]
},
the fill line and outline don't have the activeness infos .

Sometimes the symbol file just doesn’t have that info, but I’ll definitely check it out.


Doc Feedback:Blacklist whitelist terms need to change to allowlist/denylist

Location : https://apim.docs.wso2.com/en/latest/learn/rate-limiting/blacklisting-whitelisting/

This is fixed in 3.2.0
https://apim.docs.wso2.com/en/next/learn/rate-limiting/access-control/

This issue is in progress

Closing the issue since it is already fixed in 3.2.0


Adding 50wUSDM-50wstETH pool

Description
Adding a newly created pool
Type of change

[ ] Bug fix (non-breaking change which fixes an issue)
[ ] New feature (non-breaking change which adds functionality)
[ ] Breaking change (fix or feature that would cause existing functionality to not work as expected)
[ ] Dependency changes
[ ] Code refactor / cleanup
[ ] Documentation or wording changes
[X] Other

Checklist:

[X] I have performed a self-review of my own code
[X] I have requested at least 1 review (If the PR is significant enough, use best judgement here)
[X] I have commented my code where relevant, particularly in hard-to-understand areas
[NA] If package-lock.json has changes, it was intentional.
[X] The base of this PR is master if hotfix, develop if not

Closing as is duplicated, apologies


Support PHP 8

https://github.com/bjuppa/laravel-blog/blob/46a5ee2b87b7c5580fdd163d475c2e698a7a3b42/composer.json#L17

There we go, now we just need to tag a new release!

New release out that supports PHP 8!
https://github.com/bjuppa/laravel-blog/releases/tag/v1.8.2


GitHub Action for testimonial should tag receiving user

Description
The GitHub Action that converts the issue to a testimonial json file should tag the user it was for so they can decide if they want to add it to their LinkFree profile
https://github.com/EddieHubCommunity/LinkFree/blob/main/.github/workflows/testimonial.yml
Screenshots
No response
Additional information
No response

Fixed


Unintentional use of produce can cause infinite loop

IMPORTANT: If you have a question or an idea for a new feature use Github Discussions instead
Hey, I am not sure if this is a bug or just some un/expected behaviour, so I keep in here for now.
Describe the bug
This code causes Maximum call stack size exceeded.
https://playground.solidjs.com/?hash=708751962&version=1.1.1
While if I use the line below, it is fine setStore('items', (items) => [...items, ref_]);
To Reproduce
https://playground.solidjs.com/?hash=708751962&version=1.1.1
Expected behavior
The it should not cause Maximum call stack size exceeded and ideally produce should behave the same way with spreading.
Reproduction
https://playground.solidjs.com/?hash=708751962&version=1.1.1
Additional context
Not sure if store.items.length causes the component to re-render then subsequently cause createEffect to re-trigger  and add more into store.items then subsequently cause re-render, which produce an infinite loop.

Thanks


In order to fix you need to add period in you Text when using MeasureText.
Before
TextRenderer.MeasureText(tab.Content.DockHandler.TabText, TextFont).Width +
TextGapLeft + TextGapRight;
After
TextRenderer.MeasureText(tab.Content.DockHandler.TabText+".", TextFont).Width +
TextGapLeft + TextGapRight;

That does not seem to be a valid fix. Can you share more information with us? A sample project would be the best.

Ok I got version 2.5 with the New Version 2.13 it is not happening anymore.
For some MeasureText old version have issue that you have to put period at the end to text so that i will not cut off.
Thanks,

http://docs.dockpanelsuite.com/en/latest/getting-started/history.html
2.5 is really an old release. You should always use our latest release if possible.


/top command

A /top command that teleports you to the highest point at your current position would be great, and I think it would fit in nicely with the other teleportation commands.

Think WorldEdit may be a bit better for this job?

To be clear, it wouldn't make a block at the highest point -- it would teleport you to the current highest block. So if you're in a cave, it puts you on the surface.

Thought about it some more, this isn't a feature I'd like to add to HuskHomes. Thanks for your interest, however.


[Changelog] Update for Sprint 92

[skip ci]

@miq-bot add_label documentation

@carbonin as you have time, can you review/merge.

Thanks @carbonin


Add JWT Credentials

 Thank you for your submission, we really appreciate it. Like many open source projects, we ask that you sign our Contributor License Agreement before we can accept your contribution.You have signed the CLA already but the status is still pending? Let us recheck it.

@CameronMcWilliam the tests were failing due to https://github.com/IBM-Swift/SwiftyRequest/issues/69
In https://github.com/IBM-Swift/KituraKit/pull/50/commits/c1f4d1d1a8ad8c1178e370f3909a43148c4a75be I have separated out the server side of the tests into a separate TestServer project.  This avoids the problem with SwiftyRequest (actually turns out to be a problem in libcurl), and also has the nice benefit of eliminating the Kitura and Swift-JWT dependencies from KituraKit.
What it does mean however is that, in order to run the KituraKit tests, you must first go into the TestServer directory and type swift run.

'Unauthorized' tests were failing with Swift 5.0.1 on Linux due to a known bug in Foundation (the equivalent tests for Google / Facebook tokens were actually #if'd out).
This was fixed in Swift 5.0.2 (https://github.com/apple/swift-corelibs-foundation/pull/2255) so I have updated the CI for this repo to that level, and re-enabled those tests.


Consider not always forcing scopes on dependencies in generated BOMs

It may not always be desirable for the Sundr Plugin to explicitly declare scopes on all dependencies. E.g specifying dependencies as 'compile' scope can screw up the dependency tree for projects which import the BOM.
For a real example, take a look at the dependency tree of:
https://github.com/fabric8io/ipaas-quickstarts/tree/master/quickstart/cdi/camel-jetty
Notice many of the Arquillian and ShrinkWrap dependencies have their scopes overridden to 'compile' as a result of importing fabric8-project-bom-with-platform-deps. They should be 'test' scoped.
Taking one ShrinkWrap dependency as an example:
$ mvn dependency:tree -Dincludes=org.jboss.shrinkwrap.resolver:shrinkwrap-resolver-api -Dverbose

[INFO] io.fabric8.quickstarts:cdi-camel-jetty:jar:2.3-SNAPSHOT
[INFO] +- io.fabric8:fabric8-arquillian:jar:2.2.139:test
[INFO] |  \- org.jboss.shrinkwrap.resolver:shrinkwrap-resolver-depchain:pom:2.2.2:compile (scope managed from test)

Maybe it's only worth doing this, if the scope of the artifact being processed != compile ??

BTW my motive for raising this was that any fat-jar generating plugins will likely pick up unwated stuff. Which results in larger jar sizes, more stuff on the classpath etc.

I don't mind doing so (having the scope only when its not compile). Do you want to send a PR, or you'd like me to quickfix it?

I'll submit a PR shortly.
Cheers.

Added 2 commits:

First one, retain the scope that has been explicitly specified on project artifacts.
The second allows inheritance of the test scope from test only transitive dependencies.

In most case the later is desirable, but there can be very rare exceptions. For those exception the projects dependency management has priority over this, and of course the user can override stuff.
@jamesnetherton: What do you think? If you are ok with it, I can release asap. If not I can rollback.

Sounds good. I tested out those changes and it seems to have had the desired effect.
If you can do a release, that'd be great.

Cool, release is on its way!

Tested the new release and it all seems fine.
I'll close this now.


0.7.1-alpha  can't receive any $SYS messages

0.7.1-alpha  can't receive any $SYS messages

09:59:32.321 [info] metrics PUBLISH to<EMAIL_ADDRESS>09:59:32.321 [info] metrics PUBLISH to<EMAIL_ADDRESS>09:59:32.321 [info] metrics PUBLISH to<EMAIL_ADDRESS>09:59:32.321 [info] metrics PUBLISH to<EMAIL_ADDRESS>09:59:35.492 [error] failed to start connection on <IP_ADDRESS>:1883 - enotconn
09:59:41.493 [error] failed to start connection on <IP_ADDRESS>:1883 - enotconn
09:59:47.494 [error] failed to start connection on <IP_ADDRESS>:1883 - enotconn
09:59:53.495 [error] failed to start connection on <IP_ADDRESS>:1883 - enotconn
09:59:59.496 [error] failed to start connection on <IP_ADDRESS>:1883 - enotconn
10:00:05.497 [error] failed to start connection on <IP_ADDRESS>:1883 - enotconn

10:51:23.693 <0.208.0> [info] metrics PUBLISH to<EMAIL_ADDRESS>10:51:23.693 <0.208.0> [info] metrics PUBLISH to<EMAIL_ADDRESS>10:51:23.693 <0.208.0> [info] metrics PUBLISH to<EMAIL_ADDRESS>10:51:23.693 <0.208.0> [info] metrics PUBLISH to<EMAIL_ADDRESS>10:51:23.694 <0.208.0> [info] metrics PUBLISH to<EMAIL_ADDRESS>10:51:23.694 <0.208.0> [info] metrics PUBLISH to<EMAIL_ADDRESS>10:51:23.694 <0.209.0> [info] broker PUBLISH to<EMAIL_ADDRESS>10:51:23.694 <0.208.0> [info] metrics PUBLISH to<EMAIL_ADDRESS>10:51:23.694 <0.209.0> [info] broker PUBLISH to<EMAIL_ADDRESS>10:51:23.694 <0.209.0> [info] broker PUBLISH to<EMAIL_ADDRESS>10:51:23.694 <0.209.0> [info] broker PUBLISH to<EMAIL_ADDRESS>10:51:24.232 <0.238.0> [error] failed to start connection on <IP_ADDRESS>:1883 - enotconn
In log file, print publish $SYS message, bug client can't received.

Please check your etc/acl.config. Default config only allow localhost to subscribe '$SYS/#':
{allow, {ipaddr, "<IP_ADDRESS>"}, pubsub, ["$SYS/#", "#"]}.

{deny, all, subscribe, ["$SYS/#", {eq, "#"}]}.

{allow, all}.


[ci] Fix warning/error mix-up in check_bazel_test_suites.py

Cherry picked over to prevent divergence

CI failure is spurious/unrelated. Merging