[BUG] Error: Attempting to get amgpu ISA Details 'NoneType' object has no attribute 'group'

Describe the bug
It works well when I install it on a machine with AMD GPUs, while failed to build docker image on a non-gpu machine.
It returns None in triton get_arch_info, then throw below exception:
>>> import triton._C.libtriton.triton as _triton
>>> _triton.get_arch_info()

#17 [14/15] RUN pip install deepspeed==0.12.4
#17 0.825 Collecting deepspeed==0.12.4
#17 0.879   Downloading deepspeed-0.12.4.tar.gz (1.2 MB)
#17 3.489     ERROR: Command errored out with exit status 1:
#17 3.489      command: /opt/conda/envs/ptca/bin/python -c 'import sys, setuptools, tokenize; sys.argv[0] = '"'"'/tmp/pip-install-4icq4j45/deepspeed/setup.py'"'"'; __file__='"'"'/tmp/pip-install-4icq4j45/deepspeed/setup.py'"'"';f=getattr(tokenize, '"'"'open'"'"', open)(__file__);code=f.read().replace('"'"'\r\n'"'"', '"'"'\n'"'"');f.close();exec(compile(code, __file__, '"'"'exec'"'"'))' egg_info --egg-base /tmp/pip-pip-egg-info-o11xsn63
#17 3.489          cwd: /tmp/pip-install-4icq4j45/deepspeed/
#17 3.489     Complete output (21 lines):
#17 3.489     Traceback (most recent call last):
#17 3.489       File "<string>", line 1, in <module>
#17 3.489       File "/tmp/pip-install-4icq4j45/deepspeed/setup.py", line 37, in <module>
#17 3.489         from op_builder import get_default_compute_capabilities, OpBuilder
#17 3.489       File "/tmp/pip-install-4icq4j45/deepspeed/op_builder/__init__.py", line 18, in <module>
#17 3.489         import deepspeed.ops.op_builder  # noqa: F401 # type: ignore
#17 3.489       File "/tmp/pip-install-4icq4j45/deepspeed/deepspeed/__init__.py", line 16, in <module>
#17 3.489         import triton  # noqa: F401 # type: ignore
#17 3.489       File "/opt/conda/envs/ptca/lib/python3.8/site-packages/triton/__init__.py", line 20, in <module>
#17 3.489         from .runtime import (
#17 3.489       File "/opt/conda/envs/ptca/lib/python3.8/site-packages/triton/runtime/__init__.py", line 1, in <module>
#17 3.489         from .autotuner import Config, Heuristics, autotune, heuristics
#17 3.489       File "/opt/conda/envs/ptca/lib/python3.8/site-packages/triton/runtime/autotuner.py", line 7, in <module>
#17 3.489         from ..compiler import OutOfResources
#17 3.489       File "/opt/conda/envs/ptca/lib/python3.8/site-packages/triton/compiler.py", line 2025, in <module>
#17 3.489         @static_vars(amdgcn_bitcode_paths = _get_amdgcn_bitcode_paths())
#17 3.489       File "/opt/conda/envs/ptca/lib/python3.8/site-packages/triton/compiler.py", line 2004, in _get_amdgcn_bitcode_paths
#17 3.489         gfx_arch = _get_amdgcn_bitcode_paths.discovered_gfx_arch_fulldetails[1]
#17 3.489     TypeError: 'NoneType' object is not subscriptable
#17 3.489     Error: Attempting to get amgpu ISA Details 'NoneType' object has no attribute 'group'

What's the impact of HAS_TRITON = False only for installing?
try:
    import triton  # noqa: F401 # type: ignore
    HAS_TRITON = True
except ImportError:
    HAS_TRITON = False

https://github.com/microsoft/DeepSpeed/blob/master/deepspeed/__init__.py#L15C1-L20C1
To Reproduce
Steps to reproduce the behavior:
RUN  pip install https://download.pytorch.org/whl/rocm5.6/torch-2.1.1%2Brocm5.6-cp38-cp38-linux_x86_64.whl
RUN pip install deepspeed==0.12.4

Expected behavior
A clear and concise description of what you expected to happen.
ds_report output
Please run ds_report to give us details about your setup.
Screenshots
If applicable, add screenshots to help explain your problem.
System info (please complete the following information):

OS: [e.g. Ubuntu 18.04]
GPU count and types [e.g. two machines with x8 A100s each]
Interconnects (if applicable) [e.g., two machines connected with 100 Gbps IB]
Python version
Any other relevant info about your setup

Launcher context
Are you launching your experiment with the deepspeed launcher, MPI, or something else?
Docker context
Are you using a specific docker image that you can share?
Additional context
Add any other context about the problem here.

@unavailableun - we know that the op_builder has issues with building on machines with a different configuration than the hardware that you are running on.   But a few other questions, what is on the machine you have, any GPUs or just a CPU?  Outside of docker are you able to pip install deepspeed on that machine?

@loadams the installation failure happens on a CPU-only machine.
Outside of docker, below command succeed.
pip install pytorch-triton-rocm
pip install deepspeed==0.12.4

(test_deepspeed) root@9962e7a8b505:/home/local_git_sources/deeprank/lightning# pip install pytorch-triton-rocm
Collecting pytorch-triton-rocm
  Downloading pytorch_triton_rocm-2.1.0-cp38-cp38-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (169.3 MB)
     ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 169.3/169.3 MB 6.0 MB/s eta 0:00:00
Requirement already satisfied: cmake>=3.20 in /opt/conda/envs/ptca/lib/python3.8/site-packages (from pytorch-triton-rocm) (3.25.0)
Collecting lit
  Downloading lit-17.0.6.tar.gz (153 kB)
     ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 153.0/153.0 kB 5.5 MB/s eta 0:00:00
  Installing build dependencies ... done
  Getting requirements to build wheel ... done
  Installing backend dependencies ... done
  Preparing metadata (pyproject.toml) ... done
Requirement already satisfied: torch in /opt/conda/envs/ptca/lib/python3.8/site-packages (from pytorch-triton-rocm) (1.13.0)
Requirement already satisfied: filelock in /opt/conda/envs/ptca/lib/python3.8/site-packages (from pytorch-triton-rocm) (3.8.2)
Requirement already satisfied: nvidia-cudnn-cu11==<IP_ADDRESS> in /opt/conda/envs/ptca/lib/python3.8/site-packages (from torch->pytorch-triton-rocm) (<IP_ADDRESS>)
Requirement already satisfied: nvidia-cublas-cu11==<IP_ADDRESS> in /opt/conda/envs/ptca/lib/python3.8/site-packages (from torch->pytorch-triton-rocm) (<IP_ADDRESS>)
Requirement already satisfied: nvidia-cuda-nvrtc-cu11==11.7.99 in /opt/conda/envs/ptca/lib/python3.8/site-packages (from torch->pytorch-triton-rocm) (11.7.99)
Requirement already satisfied: nvidia-cuda-runtime-cu11==11.7.99 in /opt/conda/envs/ptca/lib/python3.8/site-packages (from torch->pytorch-triton-rocm) (11.7.99)
Requirement already satisfied: typing-extensions in /opt/conda/envs/ptca/lib/python3.8/site-packages (from torch->pytorch-triton-rocm) (4.8.0)
Requirement already satisfied: setuptools in /opt/conda/envs/ptca/lib/python3.8/site-packages (from nvidia-cublas-cu11==<IP_ADDRESS>->torch->pytorch-triton-rocm) (59.5.0)
Requirement already satisfied: wheel in /opt/conda/envs/ptca/lib/python3.8/site-packages (from nvidia-cublas-cu11==<IP_ADDRESS>->torch->pytorch-triton-rocm) (0.37.0)
Building wheels for collected packages: lit
  Building wheel for lit (pyproject.toml) ... done
  Created wheel for lit: filename=lit-17.0.6-py3-none-any.whl size=93255 sha256=73e2131c90b28ca6fcce5f4d14fd8ec817a6262dacad65bc78fa5ed29de9365d
  Stored in directory: /root/.cache/pip/wheels/c0/1b/ae/c752907c50ad9673ab23730ee731ce853f2cf69b2d98019dcd
Successfully built lit
Installing collected packages: lit, pytorch-triton-rocm
Successfully installed lit-17.0.6 pytorch-triton-rocm-2.1.0
WARNING: Running pip as the 'root' user can result in broken permissions and conflicting behaviour with the system package manager. It is recommended to use a virtual environment instead: https://pip.pypa.io/warnings/venv
(test_deepspeed) root@9962e7a8b505:/home/local_git_sources/deeprank/lightning# python
Python 3.8.13 (default, Mar 28 2022, 11:38:47)
[GCC 7.5.0] :: Anaconda, Inc. on linux
Type "help", "copyright", "credits" or "license" for more information.
>>> import triton
Error: Attempting to get amgpu ISA Details 'NoneType' object has no attribute 'group'
Error: Attempting to get amgpu ISA Details 'NoneType' object has no attribute 'group'
>>>
(test_deepspeed) root@9962e7a8b505:/home/local_git_sources/deeprank/lightning# pip install deepspeed==0.12.4
Collecting deepspeed==0.12.4
  Using cached deepspeed-0.12.4-py3-none-any.whl
Requirement already satisfied: psutil in /opt/conda/envs/ptca/lib/python3.8/site-packages (from deepspeed==0.12.4) (5.8.0)
Requirement already satisfied: ninja in /opt/conda/envs/ptca/lib/python3.8/site-packages (from deepspeed==0.12.4) (1.11.1)
Requirement already satisfied: packaging>=20.0 in /opt/conda/envs/ptca/lib/python3.8/site-packages (from deepspeed==0.12.4) (22.0)
Requirement already satisfied: pydantic in /opt/conda/envs/ptca/lib/python3.8/site-packages (from deepspeed==0.12.4) (2.5.0)
Collecting pynvml
  Downloading pynvml-11.5.0-py3-none-any.whl (53 kB)
     ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 53.1/53.1 kB 567.1 kB/s eta 0:00:00
Requirement already satisfied: py-cpuinfo in /opt/conda/envs/ptca/lib/python3.8/site-packages (from deepspeed==0.12.4) (8.0.0)
Requirement already satisfied: tqdm in /opt/conda/envs/ptca/lib/python3.8/site-packages (from deepspeed==0.12.4) (4.64.1)
Requirement already satisfied: hjson in /opt/conda/envs/ptca/lib/python3.8/site-packages (from deepspeed==0.12.4) (3.1.0)
Requirement already satisfied: numpy in /opt/conda/envs/ptca/lib/python3.8/site-packages (from deepspeed==0.12.4) (1.22.3)
Requirement already satisfied: torch in /opt/conda/envs/ptca/lib/python3.8/site-packages (from deepspeed==0.12.4) (1.13.0)
Requirement already satisfied: pydantic-core==2.14.1 in /opt/conda/envs/ptca/lib/python3.8/site-packages (from pydantic->deepspeed==0.12.4) (2.14.1)
Requirement already satisfied: typing-extensions>=4.6.1 in /opt/conda/envs/ptca/lib/python3.8/site-packages (from pydantic->deepspeed==0.12.4) (4.8.0)
Requirement already satisfied: annotated-types>=0.4.0 in /opt/conda/envs/ptca/lib/python3.8/site-packages (from pydantic->deepspeed==0.12.4) (0.6.0)
Requirement already satisfied: nvidia-cudnn-cu11==<IP_ADDRESS> in /opt/conda/envs/ptca/lib/python3.8/site-packages (from torch->deepspeed==0.12.4) (<IP_ADDRESS>)
Requirement already satisfied: nvidia-cublas-cu11==<IP_ADDRESS> in /opt/conda/envs/ptca/lib/python3.8/site-packages (from torch->deepspeed==0.12.4) (<IP_ADDRESS>)
Requirement already satisfied: nvidia-cuda-nvrtc-cu11==11.7.99 in /opt/conda/envs/ptca/lib/python3.8/site-packages (from torch->deepspeed==0.12.4) (11.7.99)
Requirement already satisfied: nvidia-cuda-runtime-cu11==11.7.99 in /opt/conda/envs/ptca/lib/python3.8/site-packages (from torch->deepspeed==0.12.4) (11.7.99)
Requirement already satisfied: wheel in /opt/conda/envs/ptca/lib/python3.8/site-packages (from nvidia-cublas-cu11==<IP_ADDRESS>->torch->deepspeed==0.12.4) (0.37.0)
Requirement already satisfied: setuptools in /opt/conda/envs/ptca/lib/python3.8/site-packages (from nvidia-cublas-cu11==<IP_ADDRESS>->torch->deepspeed==0.12.4) (59.5.0)
Installing collected packages: pynvml, deepspeed
  Attempting uninstall: deepspeed
    Found existing installation: deepspeed 0.7.3
    Uninstalling deepspeed-0.7.3:
      Successfully uninstalled deepspeed-0.7.3
Successfully installed deepspeed-0.12.4 pynvml-11.5.0
WARNING: Running pip as the 'root' user can result in broken permissions and conflicting behaviour with the system package manager. It is recommended to use a virtual environment instead: https://pip.pypa.io/warnings/venv

So to be sure, this only fails when building a docker image on a CPU only machine?  Can you run pip list before and share that or can you share the whole dockerfile you're attempting to build (or the smallest one that at least repros) so we can take a look?

Yes, this only fails when building a docker image on a CPU machine.
  And if so could you let us know?


When multiple models are loaded, postprocessing is performed only on the first one

Let's consider this code:

 main
 {
	function loadAndSolve(model_mod, model_dat) {
		writeln("Solving " + model_mod);
		var cplex1 = new IloCplex();
		var source1 = new IloOplModelSource(model_mod);
		var def1 = new IloOplModelDefinition(source1);
		var opl1 = new IloOplModel(def1, cplex1);
		var data1 = new IloOplDataSource(model_dat);

		opl1.settings.mainEndEnabled=true;
		opl1.addDataSource(data1);
		opl1.generate();

		if (cplex1.solve())
		{
			writeln("successfully solved " + model_mod);
			opl1.postProcess();
		}
		else {writeln("No solution found for " + model_mod);}

		opl1.end();
	}
	loadAndSolve("model1.mod", "model1.dat");
	loadAndSolve("model2.mod", "model2.dat");
 }

We expect that model1.mod is loaded/solved, then any output for model1.mod to be saved.
Then model2.mod is loaded/solved, then any output for model2.mod` is saved.
However only the output of model1.mod is triggered.

The reason for this behaviour is that db connection update() statements are triggered at postprocessing, but the postprocessing callback is only registered to the first model. Working on a fix + tests for this.

fixed in 1.13.4

1.3.4 did not contain the right changes
Right changes are in 1.3.5
Sorry


Prompt before performing critical operations

I have been testing rclone with ACD and I am very impressed with how well it performs, considering that ACD support has just recently been added.
One thing I am concerned with is the use of an operation such as rclone purge getting executed without prompt confirmation. Stating a wrong path could accidentally erase a lot of data with the blink of an eye. It would be nice if we could imlement a confirmation prompt (displaying the actual path that we're about to erase). And we could add an -f option to force the deletion without prompt.

Glad you are enjoying rclone!
The unix tradition is to make command line tools which don't prompt by default, but to add a flag (eg -i for interactive) which then prompts before critical operations.  What do you think of that idea?
In the specific case of ACD rclone can't actually delete anything, only put it in the trash (as there is no API for permanent delete available) so you can always rescue it out of the trash.

You're right - I didn't think of the trash bin functionality in ACD. And good point about the preference to avoid interactive commands. The issue I see here is that the purge command can be used for both, deleting individual files and whole paths without the addition of any flags. This makes accidents more likely.
As it is, the commands rclone rmdir and rclone purge seem kind of redundant. How about adopting unix style? We could use rclone rm and rclone rm -r, respectively. This way, if you just want to delete a file or files, you won't be able to accidently delete a whole path unless you define the recursive flag as well.

I second the request!
I'd like a switch to prompt confirmation before overwriting a remote file.
Btw staying in "batch mode" (no confirmations req.) by default is still good.

This looks to be covered in this issue:
https://github.com/rclone/rclone/issues/1574
And this is a bit stale as well so closing it out and we can refer to the one above.


intel_adsp_cavs15: run queue testcases failed on ADSP

Describe the bug
run tests/kernel/queue failed on ADSP
To Reproduce
Steps to reproduce the behavior:

twister -p intel_adsp_cavs15 --device-testing -T tests/kernel/queue --west-flash="/home/ztest/work/zephyrproject/zephyr/boards/xtensa/intel_adsp_cavs15/tools/flash.sh,/home/ztest/work/zephyrproject/modules/audio/sof/keys/otc_private_key.pem,/home/ztest/work/rimage/config,/home/ztest/work/rimage/build/rimage" --device-serial-pty="/home/ztest/work/zephyrproject/zephyr/boards/xtensa/intel_adsp_cavs15/tools/adsplog.py,--no-history"

Logs and console output

DEBUG   - DEVICE: START - test_multiple_queues
DEBUG   - DEVICE: PASS - test_multiple_queues in 0.1 seconds
DEBUG   - DEVICE: ===================================================================
DEBUG   - DEVICE: START - test_queue_multithread_competition
DEBUG   - DEVICE:
DEBUG   - DEVICE: Assertion failed at WEST_TOPDIR/zephyr/tests/kernel/queue/src/test_queue_contexts.c:452: high_prio_t1_wait_for_queue: (*ret == 0xaaa is false)
DEBUG   - DEVICE: The highest priority and waited longest get the queue data failed firstly
DEBUG   - DEVICE: FAIL - test_queue_multithread_competition in 0.61 seconds

Environment (please complete the following information):

OS: Fedora28
Toolchain: Zephyr-sdk-0.13.0
Commit ID: 7c2dfc1558e5

This works for me in current main.  Might potentially have been fixed by the multiprocessing PR that just went in?  Can you retest?

This works for me in current main. Might potentially have been fixed by the multiprocessing PR that just went in? Can you retest?

Blocked by #38446 . I will retest this one when #38446 is fixed.


(docs Reword description to clarify truncated text

If you read the docs page describing the user resource, the summary for
the expiry parameter says The expiry date for this user. Must be provided..., which might lead a user to believe that the parameter is
required.
This rewords the description so that the truncated version is clearly
not implying a required parameter.
I think there's a high chance that PUP-7663 originated as the user
mistakingly believing that they had to provide a value. (it's also
possible that they've specified defaults in login.defs and are trying
to override it for a specific user account.)

CLA signed by all contributors.

Typo in commit message, missing a paren.


The path to the noted .xml rule files is incorrect

The correct path the various VC++ rule files is actually something similar to:
C:\Program Files (x86)\Microsoft Visual Studio\2019\Enterprise\MSBuild\Microsoft\VC\v160\1033

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

ID: ed2a638e-e8fb-b704-a7fb-e7b60a2fed7b
Version Independent ID: 0691c76c-0241-fbbb-b2e0-09c5e2ccdf67
Content: Property Page XML rule files
Content Source: docs/build/reference/property-page-xml-files.md
Product: visual-cpp
Technology: cpp-tools
GitHub Login: @corob-msft
Microsoft Alias: corob

We are in the process of moving away from GitHub issues for C++ documentation (we still accept pull requests). For details, please see Announcing a new way to give feedback on Microsoft Learn This issue will be closed after it is copied to an internal tracking system.


POST/API EndUser corrected one

Description
Please provide a short summary explaining what this PR is about.
POST/API Enduser.
Fixes # (issue)
How to test?
Please provide a short summary how your changes can be tested?
Checklist

[ ] I have performed a self-review of my own code
[ ] I have commented my code, particularly in hard-to-understand areas
[ ] I have made corresponding changes to the documentation
[ ] This PR is ready to be merged and not breaking any other functionality

Please link to the issue and properly name the PR.


The default area has disappeared, and the node cannot be selected

Describe the Bug
The default area has disappeared, and the node cannot be selected

/assign @lysign

/area console

/close


Support aggregate functions in Eval expressions

Description
Aggregate functions could work in select clause even there is no group by as long as all items in select are aggregate functions.
Here are some examples:
select max(a) from t
select max(a), min(a), count(a) from t

But the following queries should throw exceptions
select a, max(a) from t
select a, max(a), min(a), count(a) from t
select *, max(a), min(a), count(a) from t

They could work with a group by
select a, max(a) from t group by b
select a, max(a), min(a), count(a) from t group by b
select *, max(a), min(a), count(a) from t group by b

Similar, aggregate functions in PPL could work in eval command, because an eval expression equals to add a projection to existing project list.
Here are some examples:
source=t | eval m = max(a) | fields m
source=t | eval m = max(a), n = count(a) | fields m, n
source=t | eval m = max(a) | n = count(a) | fields m, n

But the following PPL queries should throw exceptions
source=t | eval m = max(a) -- equals to all fields plus m
source=t | eval m = max(a), n = count(a) | fields a, m, n
source=t | eval m = max(a) | n = count(a) | fields a, m, n

Issues Resolved
https://github.com/opensearch-project/opensearch-spark/issues/755
Check List
~- [ ] Updated documentation (ppl-spark-integration/README.md)~

[x] Implemented unit tests
[x] Implemented tests for combination with other commands
[x] Commits are signed per the DCO using --signoff

By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license.
For more information on following Developer Certificate of Origin and signing off your commits, please check here.

@LantaoJin this is great !
can you please add the following paragraph to the stats command document ?
Description
Aggregate functions could work in select clause even there is no group by as long as all items in select are aggregate functions.
Here are some examples:

select max(a) from t
select max(a), min(a), count(a) from t
But the following queries should throw exceptions

select a, max(a) from t
select a, max(a), min(a), count(a) from t
select *, max(a), min(a), count(a) from t
They could work with a group by

select a, max(a) from t group by b
select a, max(a), min(a), count(a) from t group by b
select *, max(a), min(a), count(a) from t group by b
Similar, aggregate functions in PPL could work in eval command, because an eval expression equals to add a projection to existing project list.
Here are some examples:

source=t | eval m = max(a) | fields m
source=t | eval m = max(a), n = count(a) | fields m, n
source=t | eval m = max(a) | n = count(a) | fields m, n
But the following PPL queries should throw exceptions

source=t | eval m = max(a) -- equals to all fields plus m
source=t | eval m = max(a), n = count(a) | fields a, m, n
source=t | eval m = max(a) | n = count(a) | fields a, m, n

I am going to close this due to https://github.com/opensearch-project/opensearch-spark/issues/755#issuecomment-2404539545


Update LICENSE

As per discussion on #6

See https://github.com/chieffancypants/fast-mutex/issues/6#issuecomment-1412784259


angular2-token not working with latest version of angular-cli

node v4.5.0
npm 3.10.8
+-- UNMET PEER DEPENDENCY<EMAIL_ADDRESS>+-- UNMET PEER DEPENDENCY<EMAIL_ADDRESS>+-- UNMET PEER DEPENDENCY<EMAIL_ADDRESS>+-- UNMET PEER DEPENDENCY<EMAIL_ADDRESS>`--<EMAIL_ADDRESS>
npm WARN optional SKIPPING OPTIONAL DEPENDENCY<EMAIL_ADDRESS>(node_modules\ch
okidar\node_modules\fsevents):
npm WARN notsup SKIPPING OPTIONAL DEPENDENCY: Unsupported platform for fsevents@
1.0.14: wanted {"os":"darwin","arch":"any"} (current: {"os":"win32","arch":"x64"
})
npm WARN<EMAIL_ADDRESS>requires a peer of<EMAIL_ADDRESS>but none was installed.
npm WARN<EMAIL_ADDRESS>requires a peer of<EMAIL_ADDRESS>but
none was installed.
npm WARN<EMAIL_ADDRESS>requires a peer of<EMAIL_ADDRESS>b
ut none was installed.
npm WARN<EMAIL_ADDRESS>requires a peer of<EMAIL_ADDRESS> but none was installed.
npm WARN<EMAIL_ADDRESS>requires a peer of<EMAIL_ADDRESS>.1 but none was installed.
npm WARN<EMAIL_ADDRESS>requires a peer of @angular/platform-bro
<EMAIL_ADDRESS>but none was installed.

Hey, thanks for opening this issue. Seems like a problem with the angular version in use. Angular2-Token requires at least Angular2 Release (2.0.0). Which version do you use?

Thanks for your response:
I am using angular2 final release from this version of angular-cli  1.0.0-beta.16. When i check the version using ng version
Other details
node: 4.5.0
os: win32 x64

I did a clean install, I get this message
+-- UNMET PEER DEPENDENCY<EMAIL_ADDRESS>+-- UNMET PEER DEPENDENCY<EMAIL_ADDRESS>+-- UNMET PEER DEPENDENCY<EMAIL_ADDRESS>+-- UNMET PEER DEPENDENCY<EMAIL_ADDRESS>`--<EMAIL_ADDRESS>
npm WARN optional SKIPPING OPTIONAL DEPENDENCY<EMAIL_ADDRESS>(node_modules\ch
okidar\node_modules\fsevents):
npm WARN notsup SKIPPING OPTIONAL DEPENDENCY: Unsupported platform for fsevents@
1.0.14: wanted {"os":"darwin","arch":"any"} (current: {"os":"win32","arch":"x64"
})
npm WARN<EMAIL_ADDRESS>requires a peer of<EMAIL_ADDRESS>but none was installed.
npm WARN<EMAIL_ADDRESS>requires a peer of<EMAIL_ADDRESS>but
none was installed.
npm WARN<EMAIL_ADDRESS>requires a peer of<EMAIL_ADDRESS>b
ut none was installed.
npm WARN<EMAIL_ADDRESS>requires a peer of<EMAIL_ADDRESS> but none was installed.
npm WARN<EMAIL_ADDRESS>requires a peer of<EMAIL_ADDRESS>.1 but none was installed.
npm WARN<EMAIL_ADDRESS>requires a peer of @angular/platform-bro
<EMAIL_ADDRESS>but none was installed.

I've to try it on my machine. Gonna get back to you as soon as I can.

I'm on travel right now, so I probably won't be able to try it before Thursday.

Hmm, FWIW I'm using Angular CLI 1.0.0-beta.16 and Angular2-Token seems to be working fine for the most part.

I think it has to do with npm and sometimes, the corresponding version. check this link. I had to just copy and paste angular2-token to node_modules manually to get it to work on my windows. It worked effortlessly on a linux though.

Anything I can do to fix this? Don't have easy access to a windows machine with npm.

@neroniaky I think your package is okay. It should be npm troubles.


Added gif at left hand side of Navbar

Issue #64

It's not working dude...

hey insert the gif in the image folder and then link it may be then it'll work

hey insert the gif in the image folder and then link it may be then it'll work

I added it that way. Let me check again.

@RIKI-05 Could you check again?

@codewithrabeeh working fine


Run with rpicam noIR

Hi,
Before install and use your application, i would like to know if it runs with the rpi camera noIR v2 ?
Thank you :)

I do not have the noIR v2 so unfortunately I cannot comment if it will work or not. However, I assume it will work given the noIR version 1 works fine with the picamera module AstroPitography uses; and so in theory the noIR v2 should work with picamera too.
If you do install and run it, it will be great to hear back if it works!


fix(headless): update extendedResults on all fulfilled searches

The Issue
Fetching more results using the pager or the resultsPerPage component returns a new generativeQuestionAnsweringId but no new stream is initiated.
The Fix
Update the redux state with the new generativeQuestionAnsweringId causing a new stream to be triggered.

Back to draft. Still unsure about this behaviour.

Wasn't sure about this "fixed" behaviour. What was there before seems preferred and more in line with our question answering design as it already matched smart snippets. Going to reject this. If we get reports of this being an issue and contradicting use expectations we can revisit. The change is pretty minor in terms of code.


Caustic Identification and classification

I think I have the math figured out. Now the question is do I do this on the full simulation or as needed?
Things I need to calculate:

u, ubar, convergence, shear, shear derivative. All of these are for each star.

My two options are to do the full simulation and on an as-needed basis.
Of course, I could make it possible to do both. Start with as-needed, then I can add in the future any and all caustic identities. These can be returned as another result type, in addition to magmap and lightcurves, coordinates of caustics.

Thinking about it more, I might not have an option to do the calculation after the fact, because caustics are an image phenomenon, not a source plane phenomenon? I need to look more into this.


Julia launcher can't find other versions in VS-Code

The "julia" launched by vscode (Julia Language Server) can't find other versions of julia. The version seems stuck in 1.6.2 for the version release and juliaup update release doesn't fix it. The terminal of vscode does launch the correct version:

Also, when trying to specify a version different than the default juliaup profile, the version seems to be parsed correctly but not found:

It kinda looks like I might have 2 juliaups installed but I only downloaded it from the windows store so I don't think it's the case
I have only one julia in my PATH:
PS C:\Program Files\WindowsApps> where.exe julia
C:\Users\mittel\AppData\Local\Microsoft\WindowsApps\julia.exe

it really looks like vscode is using another julia launcher
when specifying another default, it's still the release that is launched

it became even worst with the 1.7 update, it can't launch at all

Le chemin d'accès spécifié est introuvable means it can't find the file

Seeing the same error in Julia v1.7.0, Julia-VSCode v1.5.6.

Ok, took another look at this today. There, indeed, seem to be two Julias installed, one in
C:\Users\kaltsoplyn\AppData\Local\Microsoft\WindowsApps\julia.exe
and another in
C:\Users\kaltsoplyn\.julia\juliaup\julia-1.7.0+0~x64\bin\julia.exe
Are these the same? I don't know.
[BTW, in my PATH there's no Julia entry. I thought juliaup handles that part, so I touched nothing, and it worked - until recently.]
In any case, for the time being, my sub-optimal workaround to get the Julia LS to start is to set the Julia executable path in the extension settings to the latter binary, C:\Users\kaltsoplyn\.julia\juliaup\julia-1.7.0+0~x64\bin\julia.exe. Leaving the field empty results to the LS crashing, with this error message:

presumably because it calls the WindowsApps julia.exe?
(although when I start a Julia REPL from VSCode commands, it fires up the .julia/juliaup version, which is the executable that works when I use it in the settings)

I believe the julia in WindowsApps is the julia launcher, which takes the +version argument to chose which version of julia to launch, the other one is the 1.7.0 version of julia, so when you specify this binary to vs code, it launches directly julia without juliaup (that's my way of fixing it too)

@MarcMush yeap, figured it'd be something like that. Question is what's changed? it used to work without specifying a hard path in the settings, and it was certainly better that way.

I'm pretty positive that https://github.com/julia-vscode/julia-vscode/pull/2374 will fix this. I'll try to merge that today and then we just need to get a new extension version out.
The background story here is that we start the language server with a modified JULIA_DEPOT argument, and juliaup picks that up. So the Julia instance that we start for the language server then doesn't have access to your default juliaup configuration which is in .julia/juliaup because it starts to read its configuration from the folder that JULIA_DEPOT points to. We do all of the JULIA_DEPOT to isolate the language server from any configuration users might have around Julia packages etc, but in this case the isolation is going a bit too far.
And @MarcMush's explanation is correct: the julia.exe  in Appdata\Local|\Microsoft\WindowsApps is the one that starts the julia launcher that ships with juliaup, and that folder is also on the PATH. I think the julia.exe there is actually a symbolic link to the "real" julialauncher.exe which is installed in yet another location. All those parts are handled by the MSIX installer on Windows for us :)

@davidanthoff thanks for the update, and, since I'm at it, thank you (and all other contributors, of course) for all the great work you've done and keep doing, and all the time and effort you've put into juliaup and the VSCode extension and everything.

I think this should now be fixed with the latest VS Code extension release, can we close this issue? Would be great if someone who had this problem could confirm that things are OK now.

Confirmed from my side:
VSCode v.1.63.2 (Windows_NT x64 10.0.19044) & Julia extension 1.5.8 --> everything ok.
Hopefully it's ok for the OP, too. @MarcMush?

I'll test it when I get back on my work PC in january

are versions completely ignored now ? is it intended ?

Yes, a bug in the extension. It is fixed on Master and will hopefully ship soon.

the initial issue is still here for me

Can this issue be re-opened?

What version of the Julia extension for VS Code are you using?

1.5.9, it says I'm up to date
1.5.2 for the julia launcher (with windows store)
and also, giving the complete path doesn't help:

Does it work if you just leave julia.executablePath empty entirely? I think I actually understand why it doesn't work if you have some value in that field, but I think the version that ships right now should work if you just leave that configuration setting empty.
I think what I'll have to do is actually add another configuration setting to the extension called julia.channel that allows one to specify a channel to be used for the Juliaup scenario...

yes, it works if it's empty
a julia.channel setting would work for me
btw I don't really care about the version of the julia language server, but it's the same setting for it and the terminal

I think what should work at the moment is that you leave the setting empty, and then change the default channel with juliaup. That still only gives you one global choice, though...

what I do for now is put the complete path of the julia version I want:
{
    "julia.executablePath": "C:\\Users\\mittel\\.julia\\juliaup\\julia-1.6.5+0~x64\\bin\\julia.exe"
}

I've thought a bit more about this, and I think the solution to this is probably to leave everything as is :)
So that would mean:

if julia.executablePath is empty, the extension will use the juliaup default channel. If one wants to configure a different machine wide default version, one does not have an option in the extension, instead one has to do that by changing the system default version via juliaup default.
For a workspace specific override we should just come up with a generic juliaup solution for that, and then the VS Code extension should pick that up, instead of having a VS Code extension specific solution for that.

So I think I'm going to close this issue for now.


c++ emory leak false positive

Found a false positie in `re2c codebase. Iccue looks similar to C bug in https://github.com/facebook/infer/issues/120 but given C++ is involved here I've decided to file a bug anyways.
Example source:
#include <algorithm>
#include <vector>

#include <stdlib.h> // malloc, free
#include <stddef.h> // size_t
#include <string.h> // memcpy

class Bag {
    std::vector<char*> ptrs_;
  public:
    Bag() : ptrs_ () {}
    // in reality add() is supposed to be a deduplicating
    // function that returns only unique data
    void * add (const char * real_payload, size_t n) {
        char * p = (char*)malloc (n);
        if (! p)
            exit (1);
        memcpy (p, real_payload, n);
        ptrs_.push_back (p);
        // in reality the code here is slightly smarter
        return ptrs_[0];
    }
    ~Bag() {
        for_each (ptrs_.begin(), ptrs_.end(), free);
    }
};

int main() {
    Bag b;
    b.add ("foo", 3);
    b.add ("bar", 3);
    return 0;
}

False positive output:
$ infer --  g++ a.cc -o a -Wall -Wextra -Weffc++ -O2 && valgrind ./a
Capturing in make/cc mode...
Starting analysis...

legend:
  "F" analyzing a file
  "." analyzing a procedure

Found 1 (out of 1) source files to be analyzed in /tmp/z/infer-out
per-procedure parallelism jobs:8
F....

Found 1 issue

a.cc:22: error: MEMORY_LEAK
   memory dynamically allocated to `p` by call to `malloc()` at line 15, column 27 is not reachable after line 22, column 5
  20.           // in reality the code here is slightly smarter
  21.           return ptrs_[0];
  22. >     }
  23.       ~Bag() {
  24.           for_each (ptrs_.begin(), ptrs_.end(), free);

Summary of the reports

  MEMORY_LEAK: 1
==8944== Memcheck, a memory error detector
==8944== Copyright (C) 2002-2015, and GNU GPL'd, by Julian Seward et al.
==8944== Using Valgrind-3.12.0 and LibVEX; rerun with -h for copyright info
==8944== Command: ./a
==8944==
==8944==
==8944== HEAP SUMMARY:
==8944==     in use at exit: 0 bytes in 0 blocks
==8944==   total heap usage: 5 allocs, 5 frees, 72,734 bytes allocated
==8944==
==8944== All heap blocks were freed -- no leaks are possible
==8944==
==8944== For counts of detected and suppressed errors, rerun with: -v
==8944== ERROR SUMMARY: 0 errors from 0 contexts (suppressed: 0 from 0)

Today's git version:
$ infer --version
Infer version v0.11.0-11967289
Copyright 2009 - present Facebook. All Rights Reserved.

There are bunch of reasons why infer reports this:

it doesn't understand std::for_each and function pointers
deallocation happens in destructor and right now infer doesn't understand those semantics (instead it skips all resource leaks it finds in constructors)

Overall resource resource leaks detection in C++ is not great. With modern C++ it's not an issue that often because RAII prevents most of those leaks

you means it is for memory leak

Found a false positie in `re2c codebase. Iccue looks similar to C bug in #120 but given C++ is involved here I've decided to file a bug anyways.
Example source:
#include <algorithm>
#include <vector>

#include <stdlib.h> // malloc, free
#include <stddef.h> // size_t
#include <string.h> // memcpy

class Bag {
    std::vector<char*> ptrs_;
  public:
    Bag() : ptrs_ () {}
    // in reality add() is supposed to be a deduplicating
    // function that returns only unique data
    void * add (const char * real_payload, size_t n) {
        char * p = (char*)malloc (n);
        if (! p)
            exit (1);
        memcpy (p, real_payload, n);
        ptrs_.push_back (p);
        // in reality the code here is slightly smarter
        return ptrs_[0];
    }
    ~Bag() {
        for_each (ptrs_.begin(), ptrs_.end(), free);
    }
};

int main() {
    Bag b;
    b.add ("foo", 3);
    b.add ("bar", 3);
    return 0;
}

False positive output:
$ infer --  g++ a.cc -o a -Wall -Wextra -Weffc++ -O2 && valgrind ./a
Capturing in make/cc mode...
Starting analysis...

legend:
  "F" analyzing a file
  "." analyzing a procedure

Found 1 (out of 1) source files to be analyzed in /tmp/z/infer-out
per-procedure parallelism jobs:8
F....

Found 1 issue

a.cc:22: error: MEMORY_LEAK
   memory dynamically allocated to `p` by call to `malloc()` at line 15, column 27 is not reachable after line 22, column 5
  20.           // in reality the code here is slightly smarter
  21.           return ptrs_[0];
  22. >     }
  23.       ~Bag() {
  24.           for_each (ptrs_.begin(), ptrs_.end(), free);

Summary of the reports

  MEMORY_LEAK: 1
==8944== Memcheck, a memory error detector
==8944== Copyright (C) 2002-2015, and GNU GPL'd, by Julian Seward et al.
==8944== Using Valgrind-3.12.0 and LibVEX; rerun with -h for copyright info
==8944== Command: ./a
==8944==
==8944==
==8944== HEAP SUMMARY:
==8944==     in use at exit: 0 bytes in 0 blocks
==8944==   total heap usage: 5 allocs, 5 frees, 72,734 bytes allocated
==8944==
==8944== All heap blocks were freed -- no leaks are possible
==8944==
==8944== For counts of detected and suppressed errors, rerun with: -v
==8944== ERROR SUMMARY: 0 errors from 0 contexts (suppressed: 0 from 0)

Today's git version:
$ infer --version
Infer version v0.11.0-11967289
Copyright 2009 - present Facebook. All Rights Reserved.

you means it is for memory leak


Cross-post "Why we are building an open source platform for ELT pipelines" on GitLab blog

Migrated from GitLab: https://gitlab.com/meltano/meltano/-/issues/2039
Originally created by @DouweM on 2020-05-15 16:37:51

View 3 previous comments from the original issue on GitLab


Top level: reappearance of unexpected variables in answer substitutions

?- length(L,N).
   L = [], N = 0
;  L = [L], N = 1 % unexpected
;  L = [L,N], N = 2 % unexpected
;  ... .

Same issue #487
On Thu, 10 Mar 2022, 16:27 UWN, @.***> wrote:

?- length(L,N).
L = [], N = 0
;  L = [L], N = 1 % unexpected
;  L = [L,N], N = 2 % unexpected
;  ... .
—
Reply to this email directly, view it on GitHub
https://github.com/trealla-prolog/trealla/issues/490, or unsubscribe
https://github.com/notifications/unsubscribe-auth/AFNKSEX56Z3SNJTSTOVKFWDU7GI6XANCNFSM5QLVAHIQ
.
You are receiving this because you are subscribed to this thread.Message
ID: @.***>