text:
JAXBException breaks build

Hi!
I'm new in Kotlin, and trying to build this project following the Readme instructions.
I found that I need to add sdk.dir to the local.properties but it still fails on ./gradlew build
Here is the output, what do I do wrong?:
Starting a Gradle Daemon, 1 incompatible and 5 stopped Daemons could not be reused, use --status for details

> Task :app:kaptDebugKotlin FAILED
e: java.lang.NoClassDefFoundError: javax/xml/bind/JAXBException
        at java.base/java.lang.Class.getDeclaredConstructors0(Native Method)
        at java.base/java.lang.Class.privateGetDeclaredConstructors(Class.java:3138)
        at java.base/java.lang.Class.getConstructor0(Class.java:3343)
        at java.base/java.lang.Class.newInstance(Class.java:572)
        at org.jetbrains.kotlin.cli.jvm.plugins.ServiceLoaderLite.loadImplementations(ServiceLoaderLite.kt:51)
        at org.jetbrains.kotlin.cli.jvm.plugins.ServiceLoaderLite.loadImplementations(ServiceLoaderLite.kt:44)
        at org.jetbrains.kotlin.kapt3.ClasspathBasedKapt3Extension$loadProcessors$efficientProcessorLoader$1.doLoadProcessors(Kapt3Extension.kt:83)
        at org.jetbrains.kotlin.kapt3.base.ProcessorLoader.loadProcessors(ProcessorLoader.kt:45)
        at org.jetbrains.kotlin.kapt3.base.ProcessorLoader.loadProcessors$default(ProcessorLoader.kt:28)
        at org.jetbrains.kotlin.kapt3.ClasspathBasedKapt3Extension.loadProcessors(Kapt3Extension.kt:88)
        at org.jetbrains.kotlin.kapt3.AbstractKapt3Extension.analysisCompleted(Kapt3Extension.kt:171)
        at org.jetbrains.kotlin.kapt3.ClasspathBasedKapt3Extension.analysisCompleted(Kapt3Extension.kt:98)
        at org.jetbrains.kotlin.cli.jvm.compiler.TopDownAnalyzerFacadeForJVM$analyzeFilesWithJavaIntegration$2.invoke(TopDownAnalyzerFacadeForJVM.kt:95)
        at org.jetbrains.kotlin.cli.jvm.compiler.TopDownAnalyzerFacadeForJVM.analyzeFilesWithJavaIntegration(TopDownAnalyzerFacadeForJVM.kt:105)
        at org.jetbrains.kotlin.cli.jvm.compiler.TopDownAnalyzerFacadeForJVM.analyzeFilesWithJavaIntegration$default(TopDownAnalyzerFacadeForJVM.kt:80)
        at org.jetbrains.kotlin.cli.jvm.compiler.KotlinToJVMBytecodeCompiler$analyze$1.invoke(KotlinToJVMBytecodeCompiler.kt:398)
        at org.jetbrains.kotlin.cli.jvm.compiler.KotlinToJVMBytecodeCompiler$analyze$1.invoke(KotlinToJVMBytecodeCompiler.kt:65)
        at org.jetbrains.kotlin.cli.common.messages.AnalyzerWithCompilerReport.analyzeAndReport(AnalyzerWithCompilerReport.kt:107)
        at org.jetbrains.kotlin.cli.jvm.compiler.KotlinToJVMBytecodeCompiler.analyze(KotlinToJVMBytecodeCompiler.kt:389)
        at org.jetbrains.kotlin.cli.jvm.compiler.KotlinToJVMBytecodeCompiler.compileModules$cli(KotlinToJVMBytecodeCompiler.kt:118)
        at org.jetbrains.kotlin.cli.jvm.K2JVMCompiler.doExecute(K2JVMCompiler.kt:166)
        at org.jetbrains.kotlin.cli.jvm.K2JVMCompiler.doExecute(K2JVMCompiler.kt:56)
        at org.jetbrains.kotlin.cli.common.CLICompiler.execImpl(CLICompiler.kt:84)
        at org.jetbrains.kotlin.cli.common.CLICompiler.execImpl(CLICompiler.kt:42)
        at org.jetbrains.kotlin.cli.common.CLITool.exec(CLITool.kt:104)
        at org.jetbrains.kotlin.daemon.CompileServiceImpl$compile$1$1$2.invoke(CompileServiceImpl.kt:442)
        at org.jetbrains.kotlin.daemon.CompileServiceImpl$compile$1$1$2.invoke(CompileServiceImpl.kt:102)
        at org.jetbrains.kotlin.daemon.CompileServiceImpl$doCompile$$inlined$ifAlive$lambda$2.invoke(CompileServiceImpl.kt:1005)
        at org.jetbrains.kotlin.daemon.CompileServiceImpl$doCompile$$inlined$ifAlive$lambda$2.invoke(CompileServiceImpl.kt:102)
        at org.jetbrains.kotlin.daemon.common.DummyProfiler.withMeasure(PerfUtils.kt:138)
        at org.jetbrains.kotlin.daemon.CompileServiceImpl.checkedCompile(CompileServiceImpl.kt:1047)
        at org.jetbrains.kotlin.daemon.CompileServiceImpl.doCompile(CompileServiceImpl.kt:1004)
        at org.jetbrains.kotlin.daemon.CompileServiceImpl.compile(CompileServiceImpl.kt:441)
        at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
        at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
        at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
        at java.base/java.lang.reflect.Method.invoke(Method.java:567)
        at java.rmi/sun.rmi.server.UnicastServerRef.dispatch(UnicastServerRef.java:359)
        at java.rmi/sun.rmi.transport.Transport$1.run(Transport.java:200)
        at java.rmi/sun.rmi.transport.Transport$1.run(Transport.java:197)
        at java.base/java.security.AccessController.doPrivileged(AccessController.java:691)
        at java.rmi/sun.rmi.transport.Transport.serviceCall(Transport.java:196)
        at java.rmi/sun.rmi.transport.tcp.TCPTransport.handleMessages(TCPTransport.java:562)
        at java.rmi/sun.rmi.transport.tcp.TCPTransport$ConnectionHandler.run0(TCPTransport.java:796)
        at java.rmi/sun.rmi.transport.tcp.TCPTransport$ConnectionHandler.lambda$run$0(TCPTransport.java:677)
        at java.base/java.security.AccessController.doPrivileged(AccessController.java:391)
        at java.rmi/sun.rmi.transport.tcp.TCPTransport$ConnectionHandler.run(TCPTransport.java:676)
        at java.base/java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1128)
        at java.base/java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:628)
        at java.base/java.lang.Thread.run(Thread.java:830)
Caused by: java.lang.ClassNotFoundException: javax.xml.bind.JAXBException
        at java.base/java.net.URLClassLoader.findClass(URLClassLoader.java:436)
        at java.base/java.lang.ClassLoader.loadClass(ClassLoader.java:588)
        at java.base/java.lang.ClassLoader.loadClass(ClassLoader.java:521)
        ... 50 more

FAILURE: Build failed with an exception.

* What went wrong:
Execution failed for task ':app:kaptDebugKotlin'.
> Internal compiler 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

This may be related to the Java version used.  Can you ensure that Java 8 is installed and try again?

I have encountered the same problem.
My evn : Mac10.14.5.6 JDK1.8.0_241 Idea2019.3 SDK29
pauls-iMac:sunflower paul$ java -version
java version "1.8.0_241"
Java(TM) SE Runtime Environment (build 1.8.0_241-b07)
Java HotSpot(TM) 64-Bit Server VM (build 25.241-b07, mixed mode)

@shikefei89 are you using Android Studio or IntelliJ?  Try with the latest version of Android Studio (3.6).

the same problem:
Caused by: org.gradle.workers.internal.DefaultWorkerExecutor$WorkExecutionException: A failure occurred while executing org.jetbrains.kotlin.gradle.internal.KaptExecution
at org.gradle.workers.internal.DefaultWorkerExecutor$WorkItemExecution.waitForCompletion(DefaultWorkerExecutor.java:377)
at org.gradle.internal.work.DefaultAsyncWorkTracker.waitForItemsAndGatherFailures(DefaultAsyncWorkTracker.java:142)
at org.gradle.internal.work.DefaultAsyncWorkTracker.access$000(DefaultAsyncWorkTracker.java:34)
at org.gradle.internal.work.DefaultAsyncWorkTracker$1.run(DefaultAsyncWorkTracker.java:106)
at org.gradle.internal.Factories$1.create(Factories.java:26)
at org.gradle.internal.work.DefaultWorkerLeaseService.withoutLocks(DefaultWorkerLeaseService.java:260)
at org.gradle.internal.work.DefaultWorkerLeaseService.withoutProjectLock(DefaultWorkerLeaseService.java:171)
at org.gradle.internal.work.DefaultWorkerLeaseService.withoutProjectLock(DefaultWorkerLeaseService.java:165)
at org.gradle.internal.work.StopShieldingWorkerLeaseService.withoutProjectLock(StopShieldingWorkerLeaseService.java:95)
at org.gradle.internal.work.DefaultAsyncWorkTracker.waitForItemsAndGatherFailures(DefaultAsyncWorkTracker.java:102)
at org.gradle.internal.work.DefaultAsyncWorkTracker.waitForAll(DefaultAsyncWorkTracker.java:80)
at org.gradle.internal.work.DefaultAsyncWorkTracker.waitForCompletion(DefaultAsyncWorkTracker.java:68)
at org.gradle.api.internal.tasks.execution.ExecuteActionsTaskExecuter$3.run(ExecuteActionsTaskExecuter.java:547)
at org.gradle.internal.operations.DefaultBuildOperationExecutor$RunnableBuildOperationWorker.execute(DefaultBuildOperationExecutor.java:402)
at org.gradle.internal.operations.DefaultBuildOperationExecutor$RunnableBuildOperationWorker.execute(DefaultBuildOperationExecutor.java:394)
at org.gradle.internal.operations.DefaultBuildOperationExecutor$1.execute(DefaultBuildOperationExecutor.java:165)
at org.gradle.internal.operations.DefaultBuildOperationExecutor.execute(DefaultBuildOperationExecutor.java:250)
at org.gradle.internal.operations.DefaultBuildOperationExecutor.execute(DefaultBuildOperationExecutor.java:158)
at org.gradle.internal.operations.DefaultBuildOperationExecutor.run(DefaultBuildOperationExecutor.java:92)
at org.gradle.internal.operations.DelegatingBuildOperationExecutor.run(DelegatingBuildOperationExecutor.java:31)
at org.gradle.api.internal.tasks.execution.ExecuteActionsTaskExecuter.executeAction(ExecuteActionsTaskExecuter.java:524)
at org.gradle.api.internal.tasks.execution.ExecuteActionsTaskExecuter.executeActions(ExecuteActionsTaskExecuter.java:507)
at org.gradle.api.internal.tasks.execution.ExecuteActionsTaskExecuter.access$300(ExecuteActionsTaskExecuter.java:109)
at org.gradle.api.internal.tasks.execution.ExecuteActionsTaskExecuter$TaskExecution.executeWithPreviousOutputFiles(ExecuteActionsTaskExecuter.java:258)
at org.gradle.api.internal.tasks.execution.ExecuteActionsTaskExecuter$TaskExecution.execute(ExecuteActionsTaskExecuter.java:247)
at org.gradle.internal.execution.steps.ExecuteStep.lambda$execute$0(ExecuteStep.java:32)
at org.gradle.internal.execution.steps.ExecuteStep.execute(ExecuteStep.java:32)
at org.gradle.internal.execution.steps.ExecuteStep.execute(ExecuteStep.java:26)
at org.gradle.internal.execution.steps.CleanupOutputsStep.execute(CleanupOutputsStep.java:63)
at org.gradle.internal.execution.steps.CleanupOutputsStep.execute(CleanupOutputsStep.java:35)
at org.gradle.internal.execution.steps.ResolveInputChangesStep.execute(ResolveInputChangesStep.java:49)
at org.gradle.internal.execution.steps.ResolveInputChangesStep.execute(ResolveInputChangesStep.java:34)
at org.gradle.internal.execution.steps.CancelExecutionStep.execute(CancelExecutionStep.java:43)
at org.gradle.internal.execution.steps.TimeoutStep.executeWithoutTimeout(TimeoutStep.java:73)
at org.gradle.internal.execution.steps.TimeoutStep.execute(TimeoutStep.java:54)
at org.gradle.internal.execution.steps.CatchExceptionStep.execute(CatchExceptionStep.java:34)
at org.gradle.internal.execution.steps.CreateOutputsStep.execute(CreateOutputsStep.java:44)
at org.gradle.internal.execution.steps.SnapshotOutputsStep.execute(SnapshotOutputsStep.java:54)
at org.gradle.internal.execution.steps.SnapshotOutputsStep.execute(SnapshotOutputsStep.java:38)
at org.gradle.internal.execution.steps.CacheStep.executeWithoutCache(CacheStep.java:153)
at org.gradle.internal.execution.steps.CacheStep.execute(CacheStep.java:67)
at org.gradle.internal.execution.steps.CacheStep.execute(CacheStep.java:41)
at org.gradle.internal.execution.steps.BroadcastChangingOutputsStep.execute(BroadcastChangingOutputsStep.java:49)
at org.gradle.internal.execution.steps.StoreExecutionStateStep.execute(StoreExecutionStateStep.java:44)
at org.gradle.internal.execution.steps.StoreExecutionStateStep.execute(StoreExecutionStateStep.java:33)
at org.gradle.internal.execution.steps.RecordOutputsStep.execute(RecordOutputsStep.java:38)
at org.gradle.internal.execution.steps.RecordOutputsStep.execute(RecordOutputsStep.java:24)
at org.gradle.internal.execution.steps.SkipUpToDateStep.executeBecause(SkipUpToDateStep.java:92)
at org.gradle.internal.execution.steps.SkipUpToDateStep.lambda$execute$0(SkipUpToDateStep.java:85)
at org.gradle.internal.execution.steps.SkipUpToDateStep.execute(SkipUpToDateStep.java:55)
at org.gradle.internal.execution.steps.SkipUpToDateStep.execute(SkipUpToDateStep.java:39)
at org.gradle.internal.execution.steps.ResolveChangesStep.execute(ResolveChangesStep.java:76)
at org.gradle.internal.execution.steps.ResolveChangesStep.execute(ResolveChangesStep.java:37)
at org.gradle.internal.execution.steps.legacy.MarkSnapshottingInputsFinishedStep.execute(MarkSnapshottingInputsFinishedStep.java:36)
at org.gradle.internal.execution.steps.legacy.MarkSnapshottingInputsFinishedStep.execute(MarkSnapshottingInputsFinishedStep.java:26)
at org.gradle.internal.execution.steps.ResolveCachingStateStep.execute(ResolveCachingStateStep.java:94)
at org.gradle.internal.execution.steps.ResolveCachingStateStep.execute(ResolveCachingStateStep.java:49)
at org.gradle.internal.execution.steps.CaptureStateBeforeExecutionStep.execute(CaptureStateBeforeExecutionStep.java:79)
at org.gradle.internal.execution.steps.CaptureStateBeforeExecutionStep.execute(CaptureStateBeforeExecutionStep.java:53)
at org.gradle.internal.execution.steps.ValidateStep.execute(ValidateStep.java:74)
at org.gradle.internal.execution.steps.SkipEmptyWorkStep.lambda$execute$2(SkipEmptyWorkStep.java:78)
at org.gradle.internal.execution.steps.SkipEmptyWorkStep.execute(SkipEmptyWorkStep.java:78)
at org.gradle.internal.execution.steps.SkipEmptyWorkStep.execute(SkipEmptyWorkStep.java:34)
at org.gradle.internal.execution.steps.legacy.MarkSnapshottingInputsStartedStep.execute(MarkSnapshottingInputsStartedStep.java:39)
at org.gradle.internal.execution.steps.LoadExecutionStateStep.execute(LoadExecutionStateStep.java:40)
at org.gradle.internal.execution.steps.LoadExecutionStateStep.execute(LoadExecutionStateStep.java:28)
at org.gradle.internal.execution.impl.DefaultWorkExecutor.execute(DefaultWorkExecutor.java:33)
at org.gradle.api.internal.tasks.execution.ExecuteActionsTaskExecuter.executeIfValid(ExecuteActionsTaskExecuter.java:174)
... 30 more
Caused by: java.lang.reflect.InvocationTargetException
at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at org.jetbrains.kotlin.gradle.internal.KaptExecution.run(KaptWithoutKotlincTask.kt:146)
at org.gradle.workers.internal.AdapterWorkAction.execute(AdapterWorkAction.java:50)
at org.gradle.workers.internal.DefaultWorkerServer.execute(DefaultWorkerServer.java:50)
at org.gradle.workers.internal.NoIsolationWorkerFactory$1$1$1.create(NoIsolationWorkerFactory.java:65)
at org.gradle.workers.internal.NoIsolationWorkerFactory$1$1$1.create(NoIsolationWorkerFactory.java:61)
at org.gradle.internal.classloader.ClassLoaderUtils.executeInClassloader(ClassLoaderUtils.java:98)
at org.gradle.workers.internal.NoIsolationWorkerFactory$1$1.execute(NoIsolationWorkerFactory.java:61)
at org.gradle.workers.internal.AbstractWorker$1.call(AbstractWorker.java:44)
at org.gradle.workers.internal.AbstractWorker$1.call(AbstractWorker.java:41)
at org.gradle.internal.operations.DefaultBuildOperationExecutor$CallableBuildOperationWorker.execute(DefaultBuildOperationExecutor.java:416)
at org.gradle.internal.operations.DefaultBuildOperationExecutor$CallableBuildOperationWorker.execute(DefaultBuildOperationExecutor.java:406)
at org.gradle.internal.operations.DefaultBuildOperationExecutor$1.execute(DefaultBuildOperationExecutor.java:165)
at org.gradle.internal.operations.DefaultBuildOperationExecutor.execute(DefaultBuildOperationExecutor.java:250)
at org.gradle.internal.operations.DefaultBuildOperationExecutor.execute(DefaultBuildOperationExecutor.java:158)
at org.gradle.internal.operations.DefaultBuildOperationExecutor.call(DefaultBuildOperationExecutor.java:102)
at org.gradle.internal.operations.DelegatingBuildOperationExecutor.call(DelegatingBuildOperationExecutor.java:36)
at org.gradle.workers.internal.AbstractWorker.executeWrappedInBuildOperation(AbstractWorker.java:41)
at org.gradle.workers.internal.NoIsolationWorkerFactory$1.execute(NoIsolationWorkerFactory.java:53)
at org.gradle.workers.internal.DefaultWorkerExecutor$3.call(DefaultWorkerExecutor.java:217)
at org.gradle.workers.internal.DefaultWorkerExecutor$3.call(DefaultWorkerExecutor.java:212)
at org.gradle.internal.work.DefaultConditionalExecutionQueue$ExecutionRunner.runExecution(DefaultConditionalExecutionQueue.java:215)
at org.gradle.internal.work.DefaultConditionalExecutionQueue$ExecutionRunner.runBatch(DefaultConditionalExecutionQueue.java:164)
at org.gradle.internal.work.DefaultConditionalExecutionQueue$ExecutionRunner.run(DefaultConditionalExecutionQueue.java:131)
... 3 more
Caused by: java.util.ServiceConfigurationError: javax.annotation.processing.Processor: android.databinding.annotationprocessor.ProcessDataBinding Unable to get public no-arg constructor
at kotlin.collections.CollectionsKt___CollectionsKt.toCollection(_Collections.kt:1155)
at kotlin.collections.CollectionsKt___CollectionsKt.toMutableList(_Collections.kt:1188)
at kotlin.collections.CollectionsKt___CollectionsKt.toList(_Collections.kt:1179)
at org.jetbrains.kotlin.kapt3.base.ProcessorLoader.doLoadProcessors(ProcessorLoader.kt:80)
at org.jetbrains.kotlin.kapt3.base.ProcessorLoader.loadProcessors(ProcessorLoader.kt:45)
at org.jetbrains.kotlin.kapt3.base.Kapt.kapt(Kapt.kt:42)
... 29 more
Caused by: java.lang.NoClassDefFoundError: javax/xml/bind/JAXBException
... 35 more
Caused by: java.lang.ClassNotFoundException: javax.xml.bind.JAXBException
... 35 more

Closing this issue as I haven't been able to reproduce this error.
If you are still having trouble, please reply with the version of Android Studio used and the version of Java you're running.

authors: Malachiasz electrino-dj shikefei89 tiembo


text:
Progress bar displays with no network logo when internet connection is down.

Actual: Progress bar display with no network logo.

Expected: Progress bar should not be shown.

Fixed with #411

source: gharchive/issue

repo: android/uamp

license_type: permissive

license_source: bigquery


text:
VSCode 1.19 and git repository constantly reopening

The issue is that when I either open or close a file or even change a file tab I'm currently working on my git repository is reopened.

Here I changed only two files but it says I've got 6 changes:

I just uploaded a new release that should fix this (based on changes from the fork https://github.com/purocean/wslproxy).

license: MIT

license_source: github-api


text:
Fix "Issus" typo in README

Also move the dot after "Pull requests" inside the bold text just like it is in the "Issues" section.

Thanks!

You're welcome!

source: gharchive/pull-request

repo: andylokandy/byte


text:
Add a client info from func for parse_slowlog_get

Pull Request check-list
Please make sure to review and check all of these items:

[ ] Does $ tox pass with this change (including linting)?
[ ] Does travis tests pass with this change (enable it first in your forked repo and wait for the travis build to finish)?
[x] Is the new or changed code fully tested?
[ ] Is a documentation update included (if this change modifies existing APIs, or introduces new ones)?

NOTE: these things are not required to open a PR and can be done
afterwards / while the PR is open.
Description of change
Then I collection slow-log of redis,
I find that the logs lack source client info, like this：
r = redis.StrictRedis()
r.config_set(
    "slowlog-max-len", 1000,
    "slowlog-log-slower-than", 1 * 10
)

s = r.slowlog_get()
print(s)

response
[{'id': 17, 'start_time': 1619514582, 'duration': 23, 'command': b'CONFIG SET slowlog-max-len 1000'}, {'id': 16, 'start_time': 1619513328, 'duration': 35, 'command': b'SLOWLOG GET'}

We need get client info，for redisc-cli：

Please provide a description of the change here.

Ain't those fields redis-server 4.0 and above only? Taking this code and running this slowlog method on anything before that will then break as it is not written in backwards compatible fashion

authors: Grokzen JasonDevops

repo: andymccurdy/redis-py


text:
Can't run template notebooks "ModuleNotFoundError: No module named 'torch.utils._import_utils'"

Hi Angelo folks!
Trying to get started running the analysis notebooks. Followed the install directions in the readme, tried cloning & using conda and installing from pip and getting the same error when I try to load the libraries at the top of both notebook 1 & notebook 2:

ModuleNotFoundError                       Traceback (most recent call last)
Cell In[1], line 12
8 from matplotlib import rc_file_defaults
10 from ark.phenotyping import (pixel_cluster_utils, pixel_meta_clustering,
11                              pixel_som_clustering, pixie_preprocessing)
---> 12 from ark.utils import data_utils, example_dataset, plot_utils
13 from ark.utils.metacluster_remap_gui import (MetaClusterGui,
14                                              colormap_helper,
15                                              metaclusterdata_from_files)
File ~/miniconda3/envs/ark_env/lib/python3.10/site-packages/ark/utils/data_utils.py:25
23 from anndata.experimental import AnnCollection
24 from anndata.experimental.multi_files._anncollection import ConvertType
---> 25 from torchdata.datapipes.iter import IterDataPipe
26 from typing import Iterator, Optional
27 try:
File ~/miniconda3/envs/ark_env/lib/python3.10/site-packages/torchdata/datapipes/init.py:11
7 from torch.utils.data import DataChunk, functional_datapipe
9 from torchdata import _extension  # noqa: F401
---> 11 from . import iter, map, utils
13 all = ["DataChunk", "functional_datapipe", "iter", "map", "utils"]
16 from torchdata import deprecation_warning
File ~/miniconda3/envs/ark_env/lib/python3.10/site-packages/torchdata/datapipes/iter/init.py:79
68 from torchdata.datapipes.iter.transform.callable import (
69     BatchAsyncMapperIterDataPipe as BatchAsyncMapper,
70     BatchMapperIterDataPipe as BatchMapper,
(...)
76     ThreadPoolMapperIterDataPipe as ThreadPoolMapper,
77 )
78 from torchdata.datapipes.iter.util.bz2fileloader import Bz2FileLoaderIterDataPipe as Bz2FileLoader
---> 79 from torchdata.datapipes.iter.util.cacheholder import (
80     EndOnDiskCacheHolderIterDataPipe as EndOnDiskCacheHolder,
81     InMemoryCacheHolderIterDataPipe as InMemoryCacheHolder,
82     OnDiskCacheHolderIterDataPipe as OnDiskCacheHolder,
83 )
84 from torchdata.datapipes.iter.util.combining import (
85     IterKeyZipperIterDataPipe as IterKeyZipper,
86     MapKeyZipperIterDataPipe as MapKeyZipper,
87     RoundRobinDemultiplexerIterDataPipe as RoundRobinDemultiplexer,
88     UnZipperIterDataPipe as UnZipper,
89 )
90 from torchdata.datapipes.iter.util.cycler import CyclerIterDataPipe as Cycler, RepeaterIterDataPipe as Repeater
File ~/miniconda3/envs/ark_env/lib/python3.10/site-packages/torchdata/datapipes/iter/util/cacheholder.py:24
21 except ImportError:
22     portalocker = None
---> 24 from torch.utils._import_utils import dill_available
25 from torch.utils.data.datapipes.utils.common import _check_unpickable_fn
27 from torch.utils.data.graph import traverse_dps
ModuleNotFoundError: No module named 'torch.utils._import_utils'

Quick update here, I was able to unblock myself by installing torchdata 0.7.1! Seems like an incompatibility between torchdata 0.8.0 (newest release as of a month ago) and the torch==2.0.0 pin here

repo: angelolab/ark-analysis


text:
AttributeError: 'long' object has no attribute 'size'

When I use the CONCRETIZE option, the following error happens:
Traceback (most recent call last):
  File "./angr-test.py", line 142, in <module>
    dot = analyze_paths(p, p.addr, dot)
  File "./angr-test.py", line 40, in analyze_paths
    parent_p.step()
  File "/home/user/tools/code/angr-dev/angr/angr/path.py", line 432, in step
    self._make_sim_run()
  File "/home/user/tools/code/angr-dev/angr/angr/path.py", line 457, in _make_sim_run
    self._run = self._project.factory.sim_run(self.state, **self._run_args)
  File "/home/user/tools/code/angr-dev/angr/angr/factory.py", line 123, in sim_run
    r = self.sim_block(state, addr=addr, **block_opts)
  File "/home/user/tools/code/angr-dev/angr/angr/factory.py", line 69, in sim_block
    last_stmt=last_stmt)
  File "/home/user/tools/code/angr-dev/simuvex/simuvex/vex/irsb.py", line 62, in __init__
    self._handle_irsb()
  File "/home/user/tools/code/angr-dev/simuvex/simuvex/vex/irsb.py", line 92, in _handle_irsb
    self._handle_statements()
  File "/home/user/tools/code/angr-dev/simuvex/simuvex/vex/irsb.py", line 208, in _handle_statements
    s_stmt = translate_stmt(self.irsb, stmt_idx, self.last_imark, self.state)
  File "/home/user/tools/code/angr-dev/simuvex/simuvex/vex/statements/__init__.py", line 31, in translate_stmt
    s.process()
  File "/home/user/tools/code/angr-dev/simuvex/simuvex/vex/statements/base.py", line 26, in process
    self._execute()
  File "/home/user/tools/code/angr-dev/simuvex/simuvex/vex/statements/wrtmp.py", line 6, in _execute
    data = self._translate_expr(self.stmt.data)
  File "/home/user/tools/code/angr-dev/simuvex/simuvex/vex/statements/base.py", line 36, in _translate_expr
    e = translate_expr(expr, self.imark, self.stmt_idx, self.state)
  File "/home/user/tools/code/angr-dev/simuvex/simuvex/vex/expressions/__init__.py", line 14, in translate_expr
    e.process()
  File "/home/user/tools/code/angr-dev/simuvex/simuvex/vex/expressions/base.py", line 38, in process
    self._execute()
  File "/home/user/tools/code/angr-dev/simuvex/simuvex/vex/expressions/get.py", line 24, in _execute
    self._post_process()
  File "/home/user/tools/code/angr-dev/simuvex/simuvex/vex/expressions/base.py", line 59, in _post_process
    if self.expr.size() != self.size_bits():
AttributeError: 'long' object has no attribute 'size'

In https://github.com/angr/simuvex/blob/master/simuvex/vex/expressions/base.py#L94 make_concrete(self), the expr member is replaced by a long variable. So all subsequent calls to expr.to_bv() or expr.size() won't work.
Maybe we should create an BVV object :
self.expr = self.state.se.BVV(concrete_value, self.size_bits())
But I am not sure if we should add contraints (#L92 & #L93) based on BVV object or the original long value.

It's definitely a bug. Can you please print out self.expr?

I've added two debug prints in https://github.com/angr/simuvex/blob/master/simuvex/vex/expressions/base.py#L94
    def _post_process(self):
        if self._post_processed: return
        self._post_processed = True

        if o.SIMPLIFY_EXPRS in self.state.options:
            self.expr = self.state.se.simplify(self.expr)

        self.state.add_constraints(*self._constraints)
        print "_post_process(before make_concrete) self.expr = ", self.expr
        if self.state.se.symbolic(self.expr) and o.CONCRETIZE in self.state.options:
            self.make_concrete()
        print "_post_process(after make_concrete) self.expr = ", self.expr
        if self.expr.size() != self.size_bits():
            raise SimExpressionError("Inconsistent expression size: should be %d but is %d" % (self.size_bits(), self.expr.size()))

Output:
_post_process(before make_concrete) self.expr =  <BV32 0x7fff0000>
_post_process(after make_concrete) self.expr =  <BV32 0x7fff0000>
_post_process(before make_concrete) self.expr =  <BV32 0x7fff0000>
_post_process(after make_concrete) self.expr =  <BV32 0x7fff0000>
_post_process(before make_concrete) self.expr =  <BV32 0x24>
_post_process(after make_concrete) self.expr =  <BV32 0x24>
_post_process(before make_concrete) self.expr =  <BV32 0x7ffeffdc>
_post_process(after make_concrete) self.expr =  <BV32 0x7ffeffdc>
_post_process(before make_concrete) self.expr =  <BV32 0x7ffeffdc>
_post_process(after make_concrete) self.expr =  <BV32 0x7ffeffdc>
_post_process(before make_concrete) self.expr =  <BV32 0x7fff0000>
_post_process(after make_concrete) self.expr =  <BV32 0x7fff0000>
_post_process(before make_concrete) self.expr =  <BV32 0x4>
_post_process(after make_concrete) self.expr =  <BV32 0x4>
_post_process(before make_concrete) self.expr =  <BV32 0x7ffefffc>
_post_process(after make_concrete) self.expr =  <BV32 0x7ffefffc>
_post_process(before make_concrete) self.expr =  <BV32 BVS('reg_40_0_32', None, None, None, False)>
_post_process(after make_concrete) self.expr =  0
Traceback (most recent call last):
  File "./angr-test.py", line 147, in <module>
    dot = analyze_paths(p, p.addr, dot)
  File "./angr-test.py", line 40, in analyze_paths
    parent_p.step()
  File "/home/user/tools/code/angr-dev/angr/angr/path.py", line 432, in step
    self._make_sim_run()
  File "/home/user/tools/code/angr-dev/angr/angr/path.py", line 457, in _make_sim_run
    self._run = self._project.factory.sim_run(self.state, **self._run_args)
  File "/home/user/tools/code/angr-dev/angr/angr/factory.py", line 123, in sim_run
    r = self.sim_block(state, addr=addr, **block_opts)
  File "/home/user/tools/code/angr-dev/angr/angr/factory.py", line 69, in sim_block
    last_stmt=last_stmt)
  File "/home/user/tools/code/angr-dev/simuvex/simuvex/vex/irsb.py", line 62, in __init__
    self._handle_irsb()
  File "/home/user/tools/code/angr-dev/simuvex/simuvex/vex/irsb.py", line 92, in _handle_irsb
    self._handle_statements()
  File "/home/user/tools/code/angr-dev/simuvex/simuvex/vex/irsb.py", line 208, in _handle_statements
    s_stmt = translate_stmt(self.irsb, stmt_idx, self.last_imark, self.state)
  File "/home/user/tools/code/angr-dev/simuvex/simuvex/vex/statements/__init__.py", line 31, in translate_stmt
    s.process()
  File "/home/user/tools/code/angr-dev/simuvex/simuvex/vex/statements/base.py", line 26, in process
    self._execute()
  File "/home/user/tools/code/angr-dev/simuvex/simuvex/vex/statements/wrtmp.py", line 6, in _execute
    data = self._translate_expr(self.stmt.data)
  File "/home/user/tools/code/angr-dev/simuvex/simuvex/vex/statements/base.py", line 36, in _translate_expr
    e = translate_expr(expr, self.imark, self.stmt_idx, self.state)
  File "/home/user/tools/code/angr-dev/simuvex/simuvex/vex/expressions/__init__.py", line 14, in translate_expr
    e.process()
  File "/home/user/tools/code/angr-dev/simuvex/simuvex/vex/expressions/base.py", line 38, in process
    self._execute()
  File "/home/user/tools/code/angr-dev/simuvex/simuvex/vex/expressions/get.py", line 24, in _execute
    self._post_process()
  File "/home/user/tools/code/angr-dev/simuvex/simuvex/vex/expressions/base.py", line 59, in _post_process
    if self.expr.size() != self.size_bits():
AttributeError: 'long' object has no attribute 'size'

Hello, do you have a testcase that triggers this?

Not sure with the latest updates, but with the latest version from pip atleast:
import simuvex
import pyvex
import archinfo
s = simuvex.SimState()
s.options.add(simuvex.o.CONCRETIZE)
irsb = pyvex.IRSB("488b06".decode('hex'),0,archinfo.ArchAMD64())
si = simuvex.SimIRSB(s,irsb)

This does, in fact, happen with the latest version! I'll look into it right now.

...yep, the CONCRETIZE option is completely 100% broken and will always make this happen. One sec, I'll push a fix.

Sorry we took so long on this, the fix was incredibly simple.

But I am not sure if we should add contraints (#L92 & #L93) based on BVV object or the original long value.

You were absolutely on the right track! The answer to your question is that it doesn't matter, claripy will automatically coerce arguments to the right type if one of them is a python int and the other is a bitvector.

authors: Nixtron frederic ltfish rhelmot zardus

repo: angr/simuvex


text:
немає перекладу українською мовою

тi шо, москалi?

Благодаря новому движку фраз появилась возможность локализации, осталось лишь завезти настройки нормальные

authors: angrynaz blinov-vitek

repo: angrynaz/familybot


text:
Horizontal sorting of last tree level - is it possible?

Hi, I am creating an app where main component is tree view to which user drags components from toolbox. Everyting works fine, but I need to allow user sort items on last level of tree (as marked on image - http://prntscr.com/9yx30m)
Is it possible to define one level of tree as horizontal sort? I saw undocumented feature data-horizontal, but it doesn't seem to be working. I also tried to use another library for sorting (like ng-sortable) but it collides with angular-ui-tree directives (scopes maybe?).
I don't need complete solution, just hint how should I do this, or if you encountered similar problem, what was your solution?

Closing this issue due to inactivity. See #815 for more information.
Please create a new issue is this still occurs with the current version of the component.

authors: Pirozek jacobscarter

repo: angular-ui-tree/angular-ui-tree

license: mit


text:
$position returns wrong results for scaled components

I am scaling my widget with css:transform because it would be inserted via iframe to other sites.
I am using tooltips in it, but when I started scaling I figured that their positioning was wrong. I dug a little and I think, that the $position service is responsible for the bug.
Here is plunk showing what I am talking about:
http://plnkr.co/edit/LOzAdR64snNulWnatl8b?p=preview

This issue is well over a year old and was against version .10

This issue is well over a year old and was against version .10

authors: BobbieBarker nebril

repo: angular-ui/bootstrap


text:
BUG: Popover closes itself even though popover-is-open is set to true

Following are the options set:
    uib-popover="I am activated manually"
    popover-is-open="true"
    popover-trigger="none"
    popover-append-to-body="true"

When a route change occurs(ui-router) the popover closes itself.

Version Info:
Angular UI Bootstrap version: 1.1.0
UI-Router version: 0.2.15
Angularjs version: 1.4.7

Demonstration in PLUNKER

Can anyone please have a look at this: @wesleycho @icfantv

Looks like the culprit is https://github.com/angular-ui/bootstrap/blob/master/src/tooltip/tooltip.js#L544-L553 - this seems like odd code to me, and history seems to indicate that it is old as 041261b5366aa44a0c0314e8262c91d1d867f4d1 is the original commit.
I'm in favor of just removing this outright, the scope.$on('$destroy', ...) listener should be enough to catch this.


text:
docs(accordion): markdown cleanup

Also rephrased the template part a bit.

LGTM

authors: Foxandxss wesleycho


text:
Placeholder text?

Hi,
How do you add placeholder text to empty editors?
This Stackoverflow answer here shows one way to do it
Will it be a good idea to incorporate this into the library? What are your thoughts?
Thanks

+1

+1

+1

+1

Any ETA?  Thanks.

+1

+1

+1

authors: harshapps iosdev-republicofapps jkevingutierrez malavancs minutephp ramiy vickyrathee

repo: angular-ui/ui-ace


text:
Dynamic-params and Back button

Testing out "dynamic-params" branch.
My use-case is slideshow.
.state('presentation', {
    url: '/:presentation_id',
    templateUrl: '/partials/presentation.html',
    controller: "PresentationCtrl"
})
.state('presentation.slide', {
    url: '/:slide_id',
    templateUrl: '/partials/slide.html',
    controller: "SlideCtrl",
    params: {
        slide_id: {
            value: null,
            dynamic: true
        },
        presentation_id: { // For some reason I need this here for dynamic params to work. It's fine, it's not the question
            value: null,
            dynamic: false
        },
    }
})

From /presentation-id I open /presentation-id/slide-1,
then  /presentation-id/slide-1 -> /presentation-id/slide-2
Then when I press the Back button in the browser from  /presentation-id/slide-2 I get back to /presentation-id.
I would expect to go back to /presentation-id/slide-1.

https://gist.github.com/eddiemonge/f6a58169c2846731a1eb

authors: eddiemonge websirnik

repo: angular-ui/ui-router


text:
Url params leaking to unrelated states.

Using the angular-1.2 branch I have setup states/routes similar to this:
$stateProvider.
	state('foo', {
		url: '/foo/:date',
		templateUrl: 'views/foo.html',
		controller: 'FooCtrl'
	}).
	state('bar', {
		url: '/bar/:date',
		templateUrl: 'views/bar.html',
		controller: 'BarCtrl'
	});

I have menu links:
Foo //generates href="/#foo/"
Bar //generates href="/#bar/"

Assuming I am on url #/foo/2013 if i clik the link for "Bar" it's takes me to #/bar/2013 while i expect it to take me to url #/bar/. The route param of unrelated states should not be carried over.

https://gist.github.com/eddiemonge/f6a58169c2846731a1eb

authors: ADmad eddiemonge


text:
Only a object property can be bound to model

The following works:
HTML:
<ui-select
		data-ng-model="foo.month"
		data-ng-change="change()"
		>
...
</ui-select>

JS:
$scope.foo = {month:null};

$scope.change = function () {
	console.log($scope.foo.month); //"buz", the expected output.
};

But following doesn't:
HTML:
<ui-select
		data-ng-model="bar"
		data-ng-change="change()"
		>
...
</ui-select>

JS:
$scope.bar = null;

$scope.change = function () {
	console.log($scope.bar); //undefined
};

Why only object properties can be bound to model? This is not consistent with native Angular behaviour.

Following StackOverflow question address this issue as well: http://stackoverflow.com/questions/25937098/ng-model-is-not-getting-changed-in-ui-select

I can confirm this.When assigned a scope variable to the ui-select model it gives undefined.

Isn't that the common Angularjs-way?
If you try to assign a value to a variable in a scope that doesn't have that variable, the variable will be created on the current scope. This is happening even if the variable is present in any parent scope.
But if a parent variable is declared as an object and the object contains a variable that you try to assign a new value to in a childscope, then the parent object will be changed.

@Nadrendion I don't think it's the "common Angularjs-way".
As explained above, the variable is defined in the $scope beforehand. The only difference is that it works when the variable is a object ($scope.bar = {month:null}), and it doesn't work when the variable is just null ($scope.bar = null).
I don't think this is "common Angularjs-way" because both works when we use plain ol' <select>.

@budhajeewa A  is usually in the same scope as the scope variable, but here you have a child scope.
Let's say you have this layout:

{{bar}}

           {{bar}}

Both printouts will print the same value, but if you run some function in the childCtrl that assigns a new value to bar then only the inner bar will change.

@Nadrendion : What does that have to do with the issue I explained above?
See https://help.github.com/articles/github-flavored-markdown/#fenced-code-blocks on how to use code blocks in GitHub Flavored Markdown.

The ui-select has its own scope.
So for reading a parent variable that you send in, that isn't declared as a variable of an object, it works just fine, but when the ui-select controller is modifying the variable, it will only create a new variable with that name on its own isolated scope.
That is why you need to refer to the variable in an object from your own scope when sending it to the ui-select for modification.

Nope, that doesn't explain why $scope.foo.bar works but $scope.foo doesn't when assigned to as the ui-select's model.

@budhajeewa I would like to know why it doesn't explain it, but that is probably something that should be explained outside of this context.

@Nadrendion : Both foo.month and bar are variables in the same scope. Why would ui-select be able to bind to one but not other? The only difference is that foo.month is an object property and bar a plain ol' variable.
select works with either. So, the issue is with ui-select.

It is not the scope itself that is the issue, but the variable location.
No matter if you have your own parent and child-scopes or uses the isolated scope of the ui-select as a childscope it will work the same as soon as you involve a childscope and try to modify a parent scope variable.
No new scope is introduced when using a regular <select>so that is why there is no issue with that.

This is all I know:

I can bind ui-select's model to a foo.month, given that $scope.foo = { month: null };.
I can not bind ui-select's model to bar, given that $scope.bar = null.

All I see is ui-select being able to bind to a object property but not to a variable, both in same scope.

yes, and all I know is that the behavior you are experiencing is working as intended.
I think we will have to agree to disagree on this matter.

I think ui-select should adopt the method how the plain select works.

I'm not sure I fully understand the object of the debate, but this is clearly a bug that needs fixing, binding ng-model to the inside scope doesn't make any sense.

@RodolpheGohard : You can safely ignore the debate, which I think was not necessary.

Closing, as ng-model requires a dot as per http://stackoverflow.com/questions/17606936/angularjs-dot-in-ng-model and the ui-select wiki.

authors: Nadrendion RodolpheGohard budhajeewa randikagit user378230

repo: angular-ui/ui-select


text:
buggy focus behavior if no choice result when append-to-body="true" with ngAnimate

When append-to-body="true" and ngAnimate are present, the focus of the search input field is not working if there is no choice result. Clicking anywhere will then select this input.
I've located the issue in uiSelectController.js:
    if (ctrl.items.length > 0) {
      ctrl.$animate.on('enter', container[0], animateHandler);
    } else {
      ctrl.$animate.on('removeClass', searchInput[0], animateHandler);
    }

'removeClass' is never fired, thus the function animateHandler is never called. Calling directly animateHandler temporarily fixes the issue, but I don't think this is an acceptable solution.
    if (ctrl.items.length > 0) {
      ctrl.$animate.on('enter', container[0], animateHandler);
    } else {
      // ctrl.$animate.on('removeClass', searchInput[0], animateHandler);
      animateHandler(searchInput[0], 'start');
    }

Here is a minimal plunkr to test the behavior: http://plnkr.co/edit/D1A7L1dbJCNLQgDR8Kfx?p=preview

It also seems that the other event, 'enter', is buggy since it is called once per choice, causing focusSearchInput being called repeatedly (which can last for several seconds if there are many choices).


text:
Application from Angular 8.2 to Angular 10 upgrade

Error :
ng Serve
Unhandled Promise rejection: Component Component1 is not part of any NgModule or the module has not been imported into your module.
Component Component2 is not part of any NgModule or the module has not been imported into your module.
all Componenets are not getting included or identified
Inclueded all into Modules and every thing was working as expected in Angular 8,2, But once after upgrade getting above issue while loading in Browser but not on Build
Please help

Thanks for reporting this issue. However, you didn't provide sufficient information for us to understand and reproduce the problem. Please check out our submission guidelines to understand why we can't act on issues that are lacking important information.
If the problem persists, please file a new issue and ensure you provide all of the required information when filling out the issue template.

repo: angular/angular-cli


text:
Error: TypeError: Cannot read property 'createStringLiteral' of undefined

🐞 Bug report
Command (mark with an x)

[ ] new
[X ] build
[X ] serve
[ ] test
[ ] e2e
[ ] generate
[ ] add
[ ] update
[ ] lint
[ ] extract-i18n
[ ] run
[ ] config
[ ] help
[ ] version
[ ] doc

Is this a regression?

 Yes, the previous version in which this bug was not present was: ....
I was using the command ionic build and this error came:
Description
Error: TypeError: Cannot read property 'createStringLiteral' of undefined
at replacementVisitor (C:\ionic5_capacitor\node_modules@ngtools\webpack\src\transformers\import_factory.js:186:31)
at visitNodes (C:\ionic5_capacitor\node_modules\typescript\lib\typescript.js:73088:48)
at Object.visitEachChild (C:\ionic5_capacitor\node_modules\typescript\lib\typescript.js:73266:156)
 A clear and concise description of the problem...
The Ionic App using Angular CLI doesn't compile
🔬 Minimal Reproduction

🔥 Exception or Error

Error: TypeError: Cannot read property 'createStringLiteral' of undefined
    at replacementVisitor (C:\ionic5_capacitor\node_modules\@ngtools\webpack\src\transformers\import_factory.js:186:31)
    at visitNodes (C:\ionic5_capacitor\node_modules\typescript\lib\typescript.js:73088:48)
    at Object.visitEachChild (C:\ionic5_capacitor\node_modules\typescript\lib\typescript.js:73266:156)

🌍 Your Environment

Ionic:

   Ionic CLI                     : 5.0.0 (C:\Users\Usuario\AppData\Roaming\npm\node_modules\ionic)
   Ionic Framework               : @ionic/angular 5.1.1
   @angular-devkit/build-angular : 0.1102.4
   @angular-devkit/schematics    : 9.1.6
   @angular/cli                  : 9.1.6
   @ionic/angular-toolkit        : 2.3.3

Capacitor:

   Capacitor CLI   : 2.4.7
   @capacitor/core : 2.4.7

Cordova:

   Cordova CLI       : 9.0.0 (cordova-lib@9.0.1)
   Cordova Platforms : not available
   Cordova Plugins   : not available

Utility:

   cordova-res : 0.15.3
   native-run  : not installed

System:

   NodeJS : v14.16.0 (C:\Program Files\nodejs\node.exe)
   npm    : 6.14.8
   OS     : Windows 10

Anything else relevant?

Hi,
It looks like you are using @angular-devkit/build-angular@0.1102.4 which is only compatible with Angular and Angular CLI 11. Please downgrade this package to 0.901.15
If the problem persists, please file a new issue and ensure you provide all of the required information when filling out the issue template including a minimal reproduction.
You can read here why this is needed. A good way to make a minimal repro is to create a new app via ng new repro-app and adding the minimum possible code to show the problem. Then you can push this repository to github and link it here.
This might be related to your directory structure so its really important to get an accurate repro to diagnose this.

Thank You it worked perfectly


text:
Angular 12 ng serve does not update libraries

🐞 Bug report
Command (mark with an x)

[ ] new
[ ] build
[x] serve
[ ] test
[ ] e2e
[ ] generate
[ ] add
[ ] update
[ ] lint
[ ] extract-i18n
[ ] run
[ ] config
[ ] help
[ ] version
[ ] doc

Is this a regression?

 Yes, Angular 11.0.5 correctly responded to updates in a symlinked shared library
Description
 When using `ng serve` and having a shared library symlinked to the application, updates to that application are not brought in and the serve must be quit and restarted for each change. Due to really slow builds with large projects, this is a show stopping bug for us in Angular 12
🔬 Minimal Reproduction

In tab/console 1:
git clone https://github.com/arobinson/AngularLibraryUpdateIssue
cd AngularLibraryUpdateIssue/ExampleLibraries
npm i
ng b --watch

In tab/console 2:
cd AngularLibraryUpdateIssue/AngularLibraryUpdateIssue/
npm i
ng s -o

Open http://localhost:4200/ in a browser
Verify page rendered as:
Example library:
Library component version 1

Open ExampleLibraries/projects/example-library/src/lib/example-library.component.ts
Change versionNumber from 1 to 2:
export class ExampleLibraryComponent implements OnInit {
  versionNumber = 2

See that the library is rebuilt
See that ng serve refreshes the page
But the version number is still 1, the new changes were not included in the updated Javascript
🔥 Exception or Error

🌍 Your Environment

Angular CLI: 12.0.3
Node: 14.17.0
Package Manager: npm 6.14.13
OS: darwin x64

Angular:
...

Package                      Version
------------------------------------------------------
@angular-devkit/architect    0.1200.3 (cli-only)
@angular-devkit/core         12.0.3 (cli-only)
@angular-devkit/schematics   12.0.3 (cli-only)
@schematics/angular          12.0.3 (cli-only)

Anything else relevant?

Have considered the same problem. My temporary workaround is to set env variable 'export NG_BUILD_CACHE=false'.
In #20962 is already a discussion about this topic, which seems to be the same problem.

This is expected because node_modules are considered immutable in Webpack 5 unless the "version" property changes. If you want to opt-out from this behaviour you need to use NG_BUILD_CACHE=false environment variable.

Duplicate of #20962

authors: alan-agius4 arobinson blitzionian


text:
Global styles for angular libraries

Command
config
Description
Utilizing global styles in the Angular library packaged by ng-packgr at the moment is impossible or at least missing documentation.
It would be nice to have global styles as in normal angular applications so that developers won't need to import, e.g. bootstrap into each component separately.
Describe the solution you'd like
When specifying styleIncludePaths in ng-package.json, there should be an option that resolves and inlines css for each component globally.
Describe alternatives you've considered
Be able to create a global style file for the library.

You can use assets for this, which is covered in https://angular.io/guide/creating-libraries#managing-assets-in-a-library.
However, if you are using UI frameworks it is discouraged to import them directly and instead they should be explicitly imported in the application styles.css to avoid having duplicate CSS which may be the result of duplicate imports to same stylesheet. Example when both a library and the application depends on bootstrap.


text:
Calling external APIs from angular in .NET Core app returns 404.

Repro steps.
I setup .Net Core project following this tutorial. I added angular cli into the project, built it through command "ng build --prod". The angular app is served as static files from wwwroot folder in the .Net Core app.
I also setup proxy.config server to serve other APIs. When I start command "ng serve --proxy-config proxy.conf.json" the app starts and calling the other APIs within the app works fine. The issue is when I start .Net Core app as "dotnet run", the angular app loads and runs fine, but calling APIs returns 404. Do you know why it is? Do I miss anything?

Hello, we reviewed this issue and determined that it doesn't fall into the bug report or feature request category. This issue tracker is not suitable for support requests, please repost your issue on StackOverflow using tag angular-cli.
If you are wondering why we don't resolve support issues via the issue tracker, please check out this explanation.

Closing as above.

authors: delasteve marekdano sumitarora


text:
Feature request: onBeforeBuild and onAfterBuild

Bug Report or Feature Request (mark with an x)
- [ ] bug report -> please search issues before submitting
- [x] feature request

Desired functionality.
It will be great, if we can setup some npm run script, when using ng build -w.
For example, in angular-cli.json add optional key build:
"build": {     "onAfterBuild": "npm run after.js",     "onBeforeBuild": "npm run before.js" }
And when watch detect changes - run defined scripts in angular-cli.json.

The only thing you cannot do with npm scripts today is having hooks into incremental builds (watch stuff). May I ask what's the use case for the watch pre/post hooks please?
Cheers,

We use own internationalization. All translations saved in one file translate.json.
  "title": {
    "en": "...",
    "de": "...",
    "it": "...",
    "ru": "..."
  }

For each country we build different app based on one code, using different enviroment.ts.
After each build, we need  to read translate.json file and take translation only for one language and generate one file in dist folder(for example en.json).

Build hooks are something we're thinking of adding for an addon system, but at this moment we don't have any details to share.

authors: Meligy filipesilva smiera


text:
Cannot find module 'uglifyjs-webpack-plugin'

Versions 1.6.6
    _                      _                 ____ _     ___
   / \   _ __   __ _ _   _| | __ _ _ __     / ___| |   |_ _|
  / △ \ | '_ \ / _` | | | | |/ _` | '__|   | |   | |    | |
 / ___ \| | | | (_| | |_| | | (_| | |      | |___| |___ | |
/_/   \_\_| |_|\__, |\__,_|_|\__,_|_|       \____|_____|___|
               |___/

Angular CLI: 1.6.6
Node: 6.11.2
OS: win32 x64
Angular: 5.2.2
... animations, common, compiler, compiler-cli, core, forms
... http, language-service, platform-browser
... platform-browser-dynamic, router

@angular/cli: 1.6.6
@angular-devkit/build-optimizer: 0.0.42
@angular-devkit/core: 0.0.29
@angular-devkit/schematics: 0.0.52
@ngtools/json-schema: 1.1.0
@ngtools/webpack: 1.9.6
@schematics/angular: 0.1.17
typescript: 2.5.3
webpack: 3.10.0

Repro steps

ng new sample
cd sample
ng serve

Observed behavior
 ng serve
Cannot find module 'uglifyjs-webpack-plugin'
Error: Cannot find module 'uglifyjs-webpack-plugin'
    at Function.Module._resolveFilename (module.js:469:15)
    at Function.Module._load (module.js:417:25)
    at Module.require (module.js:497:17)
    at require (internal/module.js:20:19)
    at Object.<anonymous> (D:\sample\node_modules\@angular\cli\models\webpack-configs\production.js:13:24)
    at Module._compile (module.js:570:32)
    at Object.Module._extensions..js (module.js:579:10)
    at Module.load (module.js:487:32)
    at tryModuleLoad (module.js:446:12)
    at Function.Module._load (module.js:438:3)
    at Module.require (module.js:497:17)
    at require (internal/module.js:20:19)
    at Object.<anonymous> (D:\sample\node_modules\@angular\cli\models\webpack-configs\index.js:9:10)
    at Module._compile (module.js:570:32)
    at Object.Module._extensions..js (module.js:579:10)
    at Module.load (module.js:487:32)

Desired behavior
First, I expect this simple project to run.
Then I would expect to run ng build --prod on another project
Mention any other details that might be useful (optional)

I use 1.2.7 but I'm getting this error. I'm not creating a new one though. I tried removing node_modules and package-lock.json, to no avail. https://github.com/jonasarcangel/ModuleIssue/tree/master/ClientApp.

yes is wright


text:
feat(@angular/cli): improve unit test performance

This PR uses a new Karma plugin to enable vendor bundles in unit tests,
increasing rebuild performance.
On a medium size project rebuilds times were 15x smaller (16.5s to 0.9s).
Fix #5423

Cool stuff! Any benchmarks you could share?

@hccampos I forgot to fill in the PR message with the commit message, it's updated now. TLDR 15x to 30x improvement, probably less for big projects.

@filipesilva 👍 I just tried it, and it does start the test faster on rebuild. But to be honest, this does not completely fix #5423 (at least in my experiment): the progress report still go way slower on rebuild than on initial test:
Chrome 58.0.3029 (Mac OS X 10.12.4): Executed 102 of 102 SUCCESS (5.774 secs / 5.737 secs)
Chrome 58.0.3029 (Mac OS X 10.12.4): Executed 102 of 102 SUCCESS (28.755 secs / 28.73 secs)
Chrome 58.0.3029 (Mac OS X 10.12.4): Executed 102 of 102 SUCCESS (27.963 secs / 27.365 secs)

@cexbrayat bear in mind that we don't display how long building took, only how long karma took to run the tests. I haven't noticed delays while running the test though, so that's a relevant point.
Does this different in karma running time happen all the time, or only on some projects?

@filipesilva Yes I know, I was just pointing out that (I think) #5423 has 2 parts. This PR solved the first one (rebuild took a long time, and it's now faster thanks to your PR 👍 ) but not the second part that @wardbell was pointing out: the progress report is ticking slower on rebuilds.
I'm witnessing this on pretty much all my projects.

@cexbrayat I wen't through a couple of rebuilds on my machine with both a brand new project and an existing medium sized project and couldn't notice any significant deviation on the reported karma re-test speeds (0.183/0.163/0.155 and 19.403/19.595/20.556).
In your case there's a whooping 500% difference though. Are you sure you're not experience chrome background throttling on your tests? I know chrome recently introduced that, and that it's been pretty bad for unit tests.

Good point @filipesilva. @cexbrayat make sure that during your testing the Chrome window is visible all the time, never covered by any other window.
If this was the problem, it will soon stop being an issue - in about a month Chrome 59 will be released with support for headless browsing and Karma already supports that. For now you'd have to be using Chrome Canary or beta.

@filipesilva @mgol wasn't the background throttling disabled in Karma since a while ago? But you're right, it does indeed speed my tests if my browser is not on the background 🤔 So don't mind my comment, I may be experiencing a Chrome/Mac issue (possibly related to https://bugs.chromium.org/p/chromium/issues/detail?id=605498).

@cexbrayat Chrome has added a --disable-background-timer-throttling flag and karma-chrome-launcher uses it but, unfortunately, it doesn't fully unthrottle all the things.
The bug about that has been open for more than a year but, alas, nothing seems to be done on this front.

@mgol I gave a try to the disable-renderer-backgrounding flag and it does appear to solve my issue. Thx you and @filipesilva for putting me on right track 👍
So I opened a bug on karma-chrome-launcher to have this flag included and offered a PR. Let's see how it goes.
Meanwhile, for those experimenting the same issue than me, you can switch your karma.conf.js to:
    customLaunchers: {
      chromeBackground: {
        base: 'Chrome',
        flags: ['--disable-renderer-backgrounding']
      }
    },
    browsers: ['chromeBackground'],

@filipesilva sorry for polluting this thread 🙏

@cexbrayat not at all, this is valuable info for people looking through this next time!
I wonder if we should add that renderer flag, but probably it's better to instead add a --headless flag for ng test/e2e when Chrome 59 comes out.

@filipesilva The PR I submitted to karma-chrome-launcher has been merged and a new version released: no need for us to tweak the karma.conf.js, we can only bump the version of the launcher.
I submitted a PR to do so (see #6216 )

@cexbrayat that's pretty cool, kudos!

authors: cexbrayat filipesilva hccampos mgol


text:
npm run update-webdriver failed

0 info it worked if it ends with ok
1 verbose cli [ 'G:\\NodeJS\\node.exe',
1 verbose cli   'G:\\NodeJS\\node_modules\\npm\\bin\\npm-cli.js',
1 verbose cli   'run',
1 verbose cli   'update-webdriver' ]
2 info using npm@3.10.10
3 info using node@v6.10.0
4 verbose run-script [ 'preupdate-webdriver',
4 verbose run-script   'update-webdriver',
4 verbose run-script   'postupdate-webdriver' ]
5 info lifecycle angular-seed@0.0.0~preupdate-webdriver: angular-seed@0.0.0
6 verbose lifecycle angular-seed@0.0.0~preupdate-webdriver: unsafe-perm in lifecycle true
7 verbose lifecycle angular-seed@0.0.0~preupdate-webdriver: PATH: G:\NodeJS\node_modules\npm\bin\node-gyp-bin;F:\workSpace\angular-seed\node_modules\.bin;C:\Users\平常\bin;G:\Git\mingw64\bin;G:\Git\usr\local\bin;G:\Git\usr\bin;G:\Git\usr\bin;G:\Git\mingw64\bin;G:\Git\usr\bin;C:\Users\平常\bin;C:\ProgramData\Oracle\Java\javapath;C:\Windows\system32;C:\Windows;C:\Windows\System32\Wbem;C:\Windows\System32\WindowsPowerShell\v1.0;C:\Program Files (x86)\NVIDIA Corporation\PhysX\Common;G:\Git\cmd;C:\WINDOWS\system32;C:\WINDOWS;C:\WINDOWS\System32\Wbem;C:\WINDOWS\System32\WindowsPowerShell\v1.0;G:\NodeJS;F:\Ruby23-x64\bin;C:\Users\平常\AppData\Local\Microsoft\WindowsApps;C:\Users\平常\AppData\Roaming\npm;G:\Git\usr\bin\vendor_perl;G:\Git\usr\bin\core_perl
8 verbose lifecycle angular-seed@0.0.0~preupdate-webdriver: CWD: F:\workSpace\angular-seed
9 silly lifecycle angular-seed@0.0.0~preupdate-webdriver: Args: [ '/d /s /c', 'npm install' ]
10 silly lifecycle angular-seed@0.0.0~preupdate-webdriver: Returned: code: 0  signal: null
11 info lifecycle angular-seed@0.0.0~update-webdriver: angular-seed@0.0.0
12 verbose lifecycle angular-seed@0.0.0~update-webdriver: unsafe-perm in lifecycle true
13 verbose lifecycle angular-seed@0.0.0~update-webdriver: PATH: G:\NodeJS\node_modules\npm\bin\node-gyp-bin;F:\workSpace\angular-seed\node_modules\.bin;C:\Users\平常\bin;G:\Git\mingw64\bin;G:\Git\usr\local\bin;G:\Git\usr\bin;G:\Git\usr\bin;G:\Git\mingw64\bin;G:\Git\usr\bin;C:\Users\平常\bin;C:\ProgramData\Oracle\Java\javapath;C:\Windows\system32;C:\Windows;C:\Windows\System32\Wbem;C:\Windows\System32\WindowsPowerShell\v1.0;C:\Program Files (x86)\NVIDIA Corporation\PhysX\Common;G:\Git\cmd;C:\WINDOWS\system32;C:\WINDOWS;C:\WINDOWS\System32\Wbem;C:\WINDOWS\System32\WindowsPowerShell\v1.0;G:\NodeJS;F:\Ruby23-x64\bin;C:\Users\平常\AppData\Local\Microsoft\WindowsApps;C:\Users\平常\AppData\Roaming\npm;G:\Git\usr\bin\vendor_perl;G:\Git\usr\bin\core_perl
14 verbose lifecycle angular-seed@0.0.0~update-webdriver: CWD: F:\workSpace\angular-seed
15 silly lifecycle angular-seed@0.0.0~update-webdriver: Args: [ '/d /s /c', 'webdriver-manager update' ]
16 silly lifecycle angular-seed@0.0.0~update-webdriver: Returned: code: 1  signal: null
17 info lifecycle angular-seed@0.0.0~update-webdriver: Failed to exec update-webdriver script
18 verbose stack Error: angular-seed@0.0.0 update-webdriver: `webdriver-manager update`
18 verbose stack Exit status 1
18 verbose stack     at EventEmitter.<anonymous> (G:\NodeJS\node_modules\npm\lib\utils\lifecycle.js:255:16)
18 verbose stack     at emitTwo (events.js:106:13)
18 verbose stack     at EventEmitter.emit (events.js:191:7)
18 verbose stack     at ChildProcess.<anonymous> (G:\NodeJS\node_modules\npm\lib\utils\spawn.js:40:14)
18 verbose stack     at emitTwo (events.js:106:13)
18 verbose stack     at ChildProcess.emit (events.js:191:7)
18 verbose stack     at maybeClose (internal/child_process.js:877:16)
18 verbose stack     at Process.ChildProcess._handle.onexit (internal/child_process.js:226:5)
19 verbose pkgid angular-seed@0.0.0
20 verbose cwd F:\workSpace\angular-seed
21 error Windows_NT 10.0.14393
22 error argv "G:\\NodeJS\\node.exe" "G:\\NodeJS\\node_modules\\npm\\bin\\npm-cli.js" "run" "update-webdriver"
23 error node v6.10.0
24 error npm  v3.10.10
25 error code ELIFECYCLE
26 error angular-seed@0.0.0 update-webdriver: `webdriver-manager update`
26 error Exit status 1
27 error Failed at the angular-seed@0.0.0 update-webdriver script 'webdriver-manager update'.
27 error Make sure you have the latest version of node.js and npm installed.
27 error If you do, this is most likely a problem with the angular-seed package,
27 error not with npm itself.
27 error Tell the author that this fails on your system:
27 error     webdriver-manager update
27 error You can get information on how to open an issue for this project with:
27 error     npm bugs angular-seed
27 error Or if that isn't available, you can get their info via:
27 error     npm owner ls angular-seed
27 error There is likely additional logging output above.
28 verbose exit [ 1, true ]

I have runed npm start before , but it seems when I run npm run protractor ,it doesn't work

There is not enough info to investigate this. For some reason, it seems that npm update-webdriver fails.
What is the output of node_modules/.bin/webdriver-manager update (from within the project directory)?

#!/bin/sh
basedir=$(dirname "$(echo "$0" | sed -e 's,\\,/,g')")

case `uname` in
    *CYGWIN*) basedir=`cygpath -w "$basedir"`;;
esac

if [ -x "$basedir/node" ]; then
  "$basedir/node"  "$basedir/../protractor/bin/webdriver-manager" "$@"
  ret=$?
else
  node  "$basedir/../protractor/bin/webdriver-manager" "$@"
  ret=$?
fi
exit $ret

Thank you for your reply , the content of >node_modules/.bin/webdriver-manager update is as bellow:
#!/bin/sh
basedir=$(dirname "$(echo "$0" | sed -e 's,\\,/,g')")

case `uname` in
    *CYGWIN*) basedir=`cygpath -w "$basedir"`;;
esac

if [ -x "$basedir/node" ]; then
  "$basedir/node"  "$basedir/../protractor/bin/webdriver-manager" "$@"
  ret=$?
else
  node  "$basedir/../protractor/bin/webdriver-manager" "$@"
  ret=$?
fi
exit $ret

I meant what is the output of running the command node_modules/.bin/webdriver-manager update in your terminal (from within the project root).

events.js:160
      throw er; // Unhandled 'error' event
      ^

Error: connect ETIMEDOUT 74.125.23.128:443
    at Object.exports._errnoException (util.js:1022:11)
    at exports._exceptionWithHostPort (util.js:1045:20)
    at TCPConnectWrap.afterConnect [as oncomplete] (net.js:1087:14)

Is there any firewall that is blocking your network traffic?

No,but today , I try again ,  it works ,I dont't know the reason

The important thing is that it works :smiley:
Glad you were able to sort it out!

This happens intermittently for us. What information would be helpful to troubleshoot the issue?

authors: Sunny-Kid gkalpak walkerrandolphsmith

repo: angular/angular-seed


text:
Empty hash at the end of URL causes page reload in HTML5 mode

For example, If I open http://localhost/#, page is reloaded to http://localhost/.
Looks like issue happens here: https://github.com/angular/angular.js/blob/master/src/ng/location.js#L882
When http://localhost/# loaded $location.absUrl() returns http://localhost/ and $browser.url($location.absUrl(), true) called, which causes page reloading.

@dritus - would you like to try to fix this? We need a unit test the demonstrates the issue and then the fix, which is to strip empty hashes from the initialUrl before testing.

I can try to fix this, but right now I don't have time.

authors: dtritus petebacondarwin


text:
minErr: Make optional link on errors.angularjs.org

It's useful when you write tests and output tests' result to terminal.
On small displays query parameters for errors.angularjs.org occupy a large part of display and you have to switch to screen where run tests and scroll to the beginning of the error message.

That doesn't seem unreasonable, although I am not sure how you would tell minErr to not append the whole stack.

Running into this problem myself. As a workaround I'm piping test output through grep
grunt test | grep -v http://errors.angularjs.org

@phdesign I followed your advice, but just realized this is not a very good solution for most usages.
I put this into my package.json to have npm test:
"scripts": {
"test": "karma start --single-run | grep -v errors.angularjs.org",
}
Normally, when you run the test (karma start --single-run) and it fails, karma exits with non-zero exit code.
However when you pipe to grep, the exit code will be 0 even it failed! So suddenly all the tools, like build hooks that relied on npm test to return zero only for good tests (and non zero when there are issues, to immediately stop the build) are broken

Duplicate of #14744 and the the url length will be configurable in the future: https://github.com/angular/angular.js/pull/15707

authors: Narretz jakub-g maksimr phdesign


text:
$http.head does not return all headers

$http.head does not return all headers

This is probably a CORS problem. AngularJS doesn't modify or filter the headers that come out of the XHR call : http://stackoverflow.com/questions/8945587/xmlhttprequest-getallresponseheaders-not-returning-all-the-headers
For the future, please take note:
Hi, your issue reads like a support question. This github repo is only for bug reports and feature requests. Please try one of the listed Support Channels. Thanks!


text:
linky filter does not handle certain punctuation well

I'm submitting a ...

[x] bug report
[ ] feature request
[ ] other (Please do not submit support requests here (see above))

Current behavior:

Links like (www.example.com): include ): as part of the link when it is punctuation.
Expected / new behavior:

): should not be part of the link.
Minimal reproduction of the problem with instructions:

Type (www.example.com):  in the example https://docs.angularjs.org/api/ngSanitize/filter/linky
Angular version: 1.6.4

Browser: [all]

Anything else:

Closing as duplicate of #7213.

I just realized this something different than #7213. Yet, the main problem is discussed in #7213, which is that linky filter currently disallows certain characters that is should allow (per the spec), but aligning it with the spec would break people's expectations wrt to links in plain text.
There is also #13699, which discusses a more general problem, which is that the RegExp used in linky is pretty broken anyway :grin:
I'll keep this closed. Let's move the discussion on #7213 and/or #13699.


text:
Auth toPromise() didn't work.

When I subscribe for authentication it works pretty well:
this.authService.af.auth.subscribe(auth => {
console.log(auth); // works as expected
});
bu if I use toPromise(), the callback is never called;
this.authService.af.auth.toPromise().then(auth => {
console.log(auth); // this line is never called;
});
What am I doing wrong?
Thanks!

I placed a breakpoint and it looks like that the method has not been (yet) implemented in this object. If you want to perform a action just once you might try to unsubscribe in the first response:
    this.af.auth.subscribe( authData =>{

       //do stuff

        this.af.auth.unsubscribe();

    });

That said, I'm gonna close this issue.
Thank you.

authors: lfarroco paulogr


text:
Angular Material snack-bar Direction Type aliases is missing

Documentation Feedback
MatSnackBarConfig propert 'direction: Direction' the type Direction are not explained. It would be help full if it is defined in the Type Aliases like mentioned below.
Direction
Possible values for direction on MatSnackBarConfig.
type Direction = 'ltr' | 'rtl' ;
Affected documentation page: Insert a link to the affected page on material.angular.io
https://material.angular.io/components/snack-bar/api#type_aliases

Duplicate of #18414

authors: anieshvishnu jelbourn

repo: angular/components


text:
docs-bug(TYPOGRAPHY): Docs should use the 2018 typography config format

Documentation Feedback
Currently the docs mention typography levels defined by the outdated 2014 Material Design spec. However, the Angular Material scss API seems to support both formats (2014 and 2018). While the 2014 format might still be useful for ongoing legacy projects (and it would be useful to mention this option in the docs), the 2018 format should be the primary format in the docs (even though internally Angular Material might still convert the 2018 configs into 2014 format). The users creating new projects shouldn't be forced to use the outdated format, especially given that the new format is supported anyway, just the docs need to be updated.
Affected documentation page: https://material.angular.io/guide/typography#what-is-typography

Duplicate of #12974

authors: Maximaximum jelbourn


text:
bug(Timepicker): Integration with Datepicker does not work with FormControl

Is this a regression?

[ ] Yes, this behavior used to work in the previous version

The previous version in which this bug was not present was
No response
Description
When a Timepicker and Datepicker are bound to the same FormControl with a Date type, selecting a new value on either input will cause the data of the other input to be reset/removed. For example, when a date is already selected and then the time is selected, the date portion of the value will be reset to the current date.
The documentation only demonstrates the integration via ngModel. Consequently, it is unclear to me whether it should also work with FormControl. Based on the description, I would have expected it. If it is explicitly not supported, I suggest that a corresponding hint should be added since using Reactive Forms is one of the most common ways for managing the values of inputs.
Reproduction
StackBlitz link: https://stackblitz.com/edit/components-issue-starter-qszwe9ry?file=src%2Fapp%2Fexample%2Fexample.component.ts
Steps to reproduce:

Select a date that is not the current date (e.g tomorrow). The displayed value will correctly display the selected date.
Select any time. The displayed value will display the current date and the selected time instead of the selected date.
Select a date that is not the current date. The displayed date will display 0:00 as the time instead of selected time.

Expected Behavior

Selections in the Datepicker change the date portion of the FormControl, but keep the selected time.
Selections in the Timepicker change the time portion of the FormControl, but keep the selected date.

Actual Behavior

Selections in the Datepicker change the date portion of the FormControl and discard the selected time.
Selections in the Timepicker change the time portion of the FormControl and discard the selected date.

Environment

Angular: 19.0.3
CDK/Material: 19.0.3
Browser(s): Firefox 133, Chrome 131
Operating System (e.g. Windows, macOS, Ubuntu): Windows 11

Duplication of https://github.com/angular/components/issues/30135, https://github.com/angular/angular/issues/58522

Closing as a duplicate.

authors: Totati crisbeto janek64


text:
About development specification

feature request
Please see Paginator examples，
git address，
(page)="pageEvent = $event" code is not conforming to the development specification，here need a function，not an attribute。
You've changed the API again again again again.

damn! it seem like a  plaything. do as one pleases！

Please follow the issue template to help us understand your feature request. It's not clear to me what you are asking for

authors: JohnnyRuiGe andrewseguin baihech


text:
MATERIAL SIDENAV NOT WORKING

Bug, feature request, or proposal:
I am developing a web app for different devices : Desktop, Tablet, phone.
When I used the sidenav and mediaquery (import {MediaMatcher} from '@ angular / cdk / layout';), calling sidenav.toggle () the sidenav did not open
What is the expected behavior?
What is the current behavior?
What are the steps to reproduce?
Link of the bugged app:  Editor Url
What is the use-case or motivation for changing an existing behavior?
Which versions of Angular, Material, OS, TypeScript, browsers are affected?
Is there anything else we should know?

Sidenav works for me so this is more of a tech support issue.
I suggest joining the Gitter.im community for material 2 and asking for help there.

Please keep GitHub issues for bug reports / feature requests. Better avenues for troubleshooting / questions are stack overflow, gitter, mailing list, etc.

I have posted the question on the stackoverflow web site.
Stackoverflow question

authors: crisbeto jhonToni mightypenguin


text:
[mat-sort] causing warning when running unit tests: WARN: 'The "longpress" event cannot be bound because Hammer.JS is not loaded and no custom loader has been specified.'

What is the expected behavior?
Expect to not see a warning running a test
What is the current behavior?
Seeing a warning running a unit test
What are the steps to reproduce?
I cant seem to figuire out how to run a Jasmine test with StackBlitz, but I copied the example from the sorting section, and created the this unit test.
Which does pass, but throws the warning:

WARN: 'The "longpress" event cannot be bound because Hammer.JS is not loaded and no custom loader has been specified.'

Which versions of Angular, Material, OS, TypeScript, browsers are affected?
Angular 7.1.4 (down to 7.0.0)
Material 7.2.0
Jasmine 3.3.0
Karma 3.1.4
Is there anything else we should know?

It's because the sort header is using some gestures from Hammer.js. You should be able to work around it by providing a dummy Hammer loader:
providers: [{
  provide: HAMMER_LOADER,
  useValue: () => new Promise()
}]

That indeed worked for me, thank you very much @crisbeto!  Closing this issue.

If you use jest for testing you can import 'hammerjs' in your jest.ts file.

Adding import 'hammerjs'; into the test.ts solves the problem.
The one which appears in angular.json under:
"test": {
	"builder": "@angular-devkit/build-angular:karma",
	"options": {
		"main": "src/test.ts",
...

Adding HammerJs to the scripts section of angular.json (as @philmayfield suggested above) didn't help.

@crisbeto adding the code in app.module.ts unfortunately did not solve the issue for me :(

Adding import 'hammerjs'; into the test.ts solves the problem.
The one which appears in angular.json under:
"test": {
	"builder": "@angular-devkit/build-angular:karma",
	"options": {
		"main": "src/test.ts",
...

Adding HammerJs to the scripts section of angular.json (as @philmayfield suggested above) didn't help.

That precise suggestion ( from @philmayfield ) resolved my problem. That's weird.

I think you have to try both ways:  if it doesn't work when you import 'hammerjs' in test.ts, then try to to import import 'hammerjs' in app.module.ts.
The first way didn't work for me, but the second did.

authors: AKlaus DanielP42 crisbeto geyuqiu houh60 izerozlu philmayfield


text:
'No provider for RouterOutletMap!' error on adding "@angular/router": "3.0.0-alpha.8"

I had some working code that showed up a UI correctly.  But I had all my code in the main app.component.ts (including the html with member template).
Then I included routing (@angular/router": "3.0.0-alpha.8).  I did pretty much the same code as in another app with routing.  However, I get the error: 'No provider for RouterOutletMap!'.
On searching I found out another person had a misconfigured webpack.  I'm using system.js and mine seems to be ok.
My angular2 version is: 2.0.0-rc.3
I used ng-cli to generate both the --mobile app and the components.
My main.ts looks like this:
`
import { bootstrap } from '@angular/platform-browser-dynamic';
import { enableProdMode } from '@angular/core';
import { AppComponent, environment } from './app/';
import { APP_SHELL_RUNTIME_PROVIDERS } from '@angular/app-shell';
import { APP_ROUTER_PROVIDERS } from './app/app.routes';
if (environment.production) {
enableProdMode();
}
bootstrap(AppComponent, [
APP_SHELL_RUNTIME_PROVIDERS,
APP_ROUTER_PROVIDERS
]);
`
My app.component.ts is:
`
import { Component } from '@angular/core';
import { APP_SHELL_DIRECTIVES } from '@angular/app-shell';
import { Router, ROUTER_DIRECTIVES } from '@angular/router';
@Component({
moduleId: module.id,
selector: 'app-root',
template: <router-outlet></router-outlet>,
styles: [],
directives: [APP_SHELL_DIRECTIVES, ROUTER_DIRECTIVES]
})
export class AppComponent {
}
`
My app.routes.ts is:
`
import { provideRouter, RouterConfig } from '@angular/router';
import { TopicsRoutes } from './topics/topics.routes';
export const routes: RouterConfig = [
...TopicsRoutes
];
export const APP_ROUTER_PROVIDERS = [
provideRouter(routes)
];
`
My TopicsRoutes in topics.routes.ts is:
`
import { RouterConfig } from '@angular/router';
import { TopicsComponent } from './topics.component';
export const TopicsRoutes: RouterConfig = [
{ path: '',  component: TopicsComponent },
{ path: 'topics', component: TopicsComponent }
];
`

Any reason you don't use @angular/router": "3.0.0-beta.2"?
Triple-backticks would format your code properly. You can edit your post and fix it to make it more readable.

Updated with better formatting.  The alpha.8 version was what came by default when I did a ng new project-name --mobile.  So I assumed it had some dependency.  Let me try with beta.2 then.

But other than that, I'm also seeing this error now for the app:
EXCEPTION: Can't resolve all parameters for RouterOutlet: (RouterOutletMap, ViewContainerRef, ?, name).

p.s. I also had to update the default package.json: typings entry to 1.3.1 to do an npm install properly.

There were a couple of instructions here: StackOverflow - Can't resolve all parameters for RouterOutlet.  But none of them worked either.

I had the same issue, try with
<router-outlet *shellNoRender></router-outlet>

It will render the routes only when the app is fully loaded.

That doesn't work either.  :-(

@sathishvj since the --mobile flag enables server-side rendering with Universal, you need to include the router providers in main-app-shell.ts as well. Make sure that your server-side bootstrap configuration looks something like:
import { provide } from '@angular/core';
import { APP_BASE_HREF } from '@angular/common';
import { APP_SHELL_BUILD_PROVIDERS } from '@angular/app-shell';
import { APP_ROUTER_PROVIDERS } from './app/app.routes';
import { AppComponent } from './app/';
import {
  REQUEST_URL,
  ORIGIN_URL,
  NODE_LOCATION_PROVIDERS,
} from 'angular2-universal';

export const options = {
  directives: [
    // The component that will become the main App Shell
    AppComponent
  ],
  platformProviders: [
    APP_SHELL_BUILD_PROVIDERS,
    provide(ORIGIN_URL, {
      useValue: ''
    })
  ],
  providers: [
    // What URL should Angular be treating the app as if navigating
    APP_ROUTER_PROVIDERS,
    NODE_LOCATION_PROVIDERS,
    provide(APP_BASE_HREF, {useValue: '/'}),
    provide(REQUEST_URL, {useValue: '/'})
  ],
  async: true,
  preboot: false
};

That didn't work either.  I started a new project and tried and still having issues.  Also has this issue (https://github.com/angular/angular-cli/issues/1174) still.  I'm going to try this again after a while.

@sathishvj what error do you get after you add the APP_ROUTER_PROVIDERS to the Universal config?

@mgechev I'm facing the similar situation. Your workaround did work, but it prevents the application from being rendered by the server. If I change the async property to false then I got the following error:
Error: Command failed: node /Applications/XAMPP/xamppfiles/htdocs/hello-mobile/node_modules/angular2-broccoli-prerender/dist/child_proc.js  --sourceHtml=/Applications/XAMPP/xamppfiles/htdocs/hello-mobile/tmp/app_shell_plugin-input_base_path-jDgluh3c.tmp/0/index.html --optionsPath=/Applications/XAMPP/xamppfiles/htdocs/hello-mobile/tmp/app_shell_plugin-input_base_path-jDgluh3c.tmp/0/main-app-shell --outputIndexPath=/Applications/XAMPP/xamppfiles/htdocs/hello-mobile/tmp/app_shell_plugin-output_path-ZLcnh1Fq.tmp/index.html
DEPRECATION WARNING: `document` is no longer supported and will be removed in next release. Please use `template`
DEPRECATION WARNING: `Bootloader#serializeApplication` arguments has changed.Please use an `AppConfig` interface {providers: Array<any>, directives: Array<any>, template?: string}
TypeError: Cannot read property 'unsubscribe' of undefined

It seems that there's a problem between using templateUrl and template. Any thoughts?

authors: PBM42 agungsb mgechev sathishvj zoechi

repo: angular/mobile-toolkit


text:
Safari (MacOS) Switch tab/Manage tab unable to handle

Bug report

Node Version: 14.0.0
Protractor Version: 5.4.4
Angular Version: 8
Browser(s): Safari (MacOS)
Operating System and Version macOS  Catalina 10.15.4
Your protractor configuration file

Web
var AllureReporter = require('jasmine-allure-reporter');
var SpecReporter = require('jasmine-spec-reporter').SpecReporter;

exports.config = {
  framework: 'jasmine',
  seleniumAddress: 'http://localhost:4444/wd/hub',

  capabilities: {
    'browserName': 'safari',
  },

suites: {
  uat: "testcases/**/*spec.js",
  demo: 'testcases/Demo/**/*.js',
},
  getPageTimeout: 10000,
  jasmineNodeOpts: {
    showColors: true,
  },
  onPrepare: function () {
    browser.manage().window().maximize();
    browser.waitForAngularEnabled(false);
    jasmine.getEnv().addReporter(new AllureReporter({
      resultsDir: 'allure-results'
    }));
    jasmine.getEnv().afterEach(function (done) {
      browser.takeScreenshot().then(function (png) {
        allure.createAttachment('Screenshot', function () {
          return Buffer.from(png, 'base64')
        }, 'image/png')();
        done();
      })
    });
    jasmine.getEnv().addReporter(new SpecReporter({
      displayFailuresSummary: true,
      displayFailuredSpec: true,
      displaySuiteNumber: true,
      displaySpecDuration: true
    }));
  }
}

A relevant example test

 browser.getWindowHandle().then((parentGUID) => {
            // click the link that opens in a new window
            offerPage.privacycenter.click();
            // get the all the session ids of the opened tabs
            browser.getAllWindowHandles().then((allGUID) => {
                //console.log("Number of tabs opened: " + allGUID.length);
                // iterate through the tabs
                for (let guid of allGUID) {
                    //find the new browser tab
                    if (guid != parentGUID) {
                        // switch to the tab
                        browser.switchTo().window(allGUID[2]);
                        // break the loop
                        break;
                    }
                }
                // performing actions needed on the new tab
                commonfunc.waitForPrivacyCenter();
                commonfunc.verifyCurrentURL(offerPage.privacycenterUrl);
                // closing the new tab
                browser.close();
                // switching back to the parent tab
                browser.switchTo().window(allGUID[1]);
            });
        });

Output from running the test

On MacOS
- Failed: Request body does not contain required parameter 'handle'.
  Build info: version: '3.141.59', revision: 'e82be7d358', time: '2018-11-14T08:25:53'
  System info: host: 'XXXXXXXXXXX', ip: 'XXXXXXXX', os.name: 'Mac OS X', os.arch: 'x86_64', os.version: '10.15.4', java.version: '1.8.0_212'
  Driver info: driver.version: unknown

Steps to reproduce the bug
Pages which opens on new tab/window on click and then verifying the contents on the new tab and then switching back to Parent tab for operations

P.S
Works fine on Desktop Chrome(All Platforms) & Android Chrome browser.

First, I suggest using Protractor 7 and Node 12. Second, start using async/await. Like this:
it(`should opens a new tab`, async () => {
  const handles = await browser.getAllWindowHandles();

  await browser.switchTo().window(handles[1]);
});

Also, do you really need Safari for your tests?

First, I suggest using Protractor 7 and Node 12. Second, start using async/await. Like this:
it(`should opens a new tab`, async () => {
  const handles = await browser.getAllWindowHandles();

  await browser.switchTo().window(handles[1]);
});

Also, do you really need Safari for your tests?

Haven't tried with Protractor 7 version.
I don't really need to use safari but sometimes UI elements doesn't show properly in different browser so in order to catch that bug I want to include all the browsers available for testing.
Secondly same was happening in iOS Safari Browser, probably because of limited compatibility from Protractor with Safari.
But on the other hand Chrome for Desktop and Android works well.

@hemank5 You're right, support for Safari is poor.

repo: angular/protractor


text:
Cannot read property 'path' of undefined

Where i'm doing wrong. My stackoverflow link : http://stackoverflow.com/questions/30689909/angular-new-router-error-cannot-read-property-path-of-undefined

Issue fixed. It was because of old 'router.es5.js' file.

repo: angular/router


text:
CSS

CSS
User story
As a boot camp student
I want the prework notes to be structured on a webpage
So that I can easily find and read the information
Acceptance Criteria
GIVEN a Prework Study Guide website
WHEN I view the study guide
THEN I see a dark blue header and footer, and four boxes with a shadow

Decided that a dark blue header and footer wasn't on brand and as a result we went with a less saturated Yellow.

repo: animagine/prework-study-guide


text:
correction of an important suggestion

Describe your suggested feature
Brothers, don't suck my balls 😠🤬 What I wanted was to be able to convert any URL from any page into an Aniyomi extension, and now they tell me that they removed the manga from the app and that if I want manga extensions, I have to use external repositories. Plus, if I want a manga extension for a specific site, that repository must have that extension. So there's no freedom at all, what's the point? Please fix this shit.
Other details
please and thank you
Acknowledgements

[X] I have searched the existing issues and this is a new ticket, NOT a duplicate or related to another open or closed issue.
[X] I have written a short but informative title.
[X] If this is an issue with an official extension, I should be opening an issue in the extensions repository.
[X] I have updated the app to version 0.15.2.2.
[X] I will fill out all of the requested information in this form.

Is this what y'all have to deal with daily? @Secozzi

Unfortunately

lol didn't even know this exists

@Alex178190282 manga extensions are beyond our control, we have nothing to do with this and there is nothing we can do about it. Also, converting any URL to an extension isn't technically possible, each extension needs to be hand-crafted for each site.

Btw @Alex178190282 please don't be rude and don't open any more issues with bad titles like "important suggestion".
It really doesn't help anyone and I'll have to block you from opening issues if you don't stop this...

Describe your suggested feature
Brothers, don't suck my balls 😠🤬 What I wanted was to be able to convert any URL from any page into an Aniyomi extension, and now they tell me that they removed the manga from the app and that if I want manga extensions, I have to use external repositories. Plus, if I want a manga extension for a specific site, that repository must have that extension. So there's no freedom at all, what's the point? Please fix this shit.
Other details
please and thank you
Acknowledgements

[x]   I have searched the existing issues and this is a new ticket, NOT a duplicate or related to another open or closed issue.
[x]   I have written a short but informative title.
[x]   If this is an issue with an official extension, I should be opening an issue in the extensions repository.
[x]   I have updated the app to version 0.15.2.2.
[x]   I will fill out all of the requested information in this form.

It sounds like you're frustrated with the recent changes in Aniyomi regarding manga extensions and repositories. Here's a breakdown of your concerns and some possible steps to address them:
Understanding the Issue

Removed Manga from the App: It seems that Aniyomi has removed the built-in manga sources from the app.
External Repositories: Now, you need to use external repositories to get manga extensions.
Specific Site Extensions: The repositories must contain the specific manga site extensions you need.

Possible Solutions

Find and Add Repositories:

Look for trusted repositories that host the manga extensions you need. Some popular repositories might already include a wide range of extensions.
To add a repository, go to Aniyomi settings, find the "Extensions" section, and add the URL of the repository.

Creating Custom Extensions:

If the specific manga site you want isn't available in existing repositories, you might consider creating a custom extension. This requires some technical knowledge of how Aniyomi extensions work.
Aniyomi extensions are generally based on the Tachiyomi extension framework. You can refer to Tachiyomi's developer documentation to learn how to create and manage extensions.

Community Support:

Engage with the Aniyomi community. There might be other users who have faced similar issues and can offer solutions.
Join forums, Discord channels, or Reddit threads related to Aniyomi or Tachiyomi to get help from experienced users and developers.

Steps to Add a Repository in Aniyomi

Open Aniyomi: Launch the app on your device.
Go to Settings: Navigate to the settings menu.
Extensions: Find the section related to extensions.
Add Repository: Input the URL of the repository you want to add.

Resources for Help

Aniyomi GitHub: Check the official Aniyomi GitHub page for updates and documentation.
Aniyomi Discord: Join the Aniyomi Discord server for real-time help from the community.
Reddit: Visit subreddits like r/Tachiyomi or r/Aniyomi for community support and advice.

By following these steps and utilizing community resources, you should be able to find or create the manga extensions you need for Aniyomi. If you have any specific URLs or more detailed requirements, feel free to share, and I can guide you further on how to integrate them into Aniyomi.

ChatGPT ahhh reply

Reddit: Visit subreddits like r/Tachiyomi or r/Aniyomi for community support and advice.

We don't have an official subbredit

repo: aniyomiorg/aniyomi


text:
TypeError: can't quote Array (occasionally)

I'm not quite sure what's causing it, but sometimes, neighbor throws the following error:
[123, 132] in ~/.rbenv/versions/3.3.4/lib/ruby/gems/3.3.0/gems/neighbor-0.4.0/lib/neighbor/model.rb
   123|           column_attribute = klass.type_for_attribute(attribute_name)
   124|           vector = column_attribute.cast(vector)
   125|           Neighbor::Utils.validate(vector, dimensions: dimensions, column_info: column_info)
   126|           vector = Neighbor::Utils.normalize(vector, column_info: column_info) if normalize
   127|
=> 128|           query = connection.quote(column_attribute.serialize(vector))
   129|           order = "#{quoted_attribute} #{operator} #{query}"
   130|           if operator == "#"
   131|             order = "bit_count(#{order})"
   132|           end
=>#0    block {|attribute_name=:embedding_1536, vector=[0.011979911, -0.03421443, 8.979617e-05,..., options={:dimensions=>nil, :normalize=>nil}|} in has_neighbors (2 levels) at ~/.rbenv/versions/3.3.4/lib/ruby/gems/3.3.0/gems/neighbor-0.4.0/lib/neighbor/model.rb:128
  #1    [C] BasicObject#instance_exec at ~/.rbenv/versions/3.3.4/lib/ruby/gems/3.3.0/gems/activerecord-7.2.0/lib/active_record/relation.rb:548
  # and 46 frames (use `bt' command for all frames)
(ruby@bin/rails#63657) connection.quote(column_attribute.serialize(vector))
eval error: can't quote Array
  /Users/gjtorikian/.rbenv/versions/3.3.4/lib/ruby/gems/3.3.0/gems/activerecord-7.2.0/lib/active_record/connection_adapters/abstract/quoting.rb:87:in `quote'
  /Users/gjtorikian/.rbenv/versions/3.3.4/lib/ruby/gems/3.3.0/gems/activerecord-7.2.0/lib/active_record/connection_adapters/postgresql/quoting.rb:122:in `quote'
  (rdbg)//Users/gjtorikian/.rbenv/versions/3.3.4/lib/ruby/gems/3.3.0/gems/neighbor-0.4.0/lib/neighbor/model.rb:1:in `block (2 levels) in has_neighbors'

This is despite the fact that none of the arguments in the nearest_neighbors scope change.

Ah. Sometimes column_attribute is
#<Neighbor::Type::Vector:0x000000014de95d38 @precision=nil, @scale=nil, @limit=1536>

but other times, it's:
#<ActiveModel::Type::Value:0x000000014f97d588 @limit=nil, @precision=nil, @scale=nil>

Manually setting the cast_type works: attribute :embedding_1536, Neighbor::Type::Vector.new.

Hi @gjtorikian, I'm not sure how to reproduce the issue (one guess is another gem could be interfering with it). If you can create a minimal reproducible script, happy to look into it more.
require "bundler/inline"

gemfile do
  source "https://rubygems.org"

  gem "activerecord", require: "active_record"
  gem "neighbor", github: "ankane/neighbor"
  gem "pg"
end

ActiveRecord::Base.establish_connection adapter: "postgresql", database: "neighbor_repro"
ActiveRecord::Base.logger = ActiveSupport::Logger.new(STDOUT)

ActiveRecord::Schema.define do
  enable_extension "vector"

  create_table :items, force: :cascade do |t|
    t.column :embedding, :vector, limit: 3
  end
end

class Item < ActiveRecord::Base
  has_neighbors :embedding
end

Item.create!(embedding: [1,2,3])
p Item.nearest_neighbors(:embedding, [0.9, 1.3, 1.1], distance: "euclidean").first(5)

Maybe similar issue here. After upgrading to rails 7.2, the tests works on my Mac, but fail in GitHub Actions with:
TypeError: can't cast Array

Setting the type manually fixes it:
attribute :embedding, Neighbor::Type::Vector.new # <-- Fix
has_neighbors :embedding, dimensions: 3072

Seems like it may be something with Rails 7.2, possible related to https://github.com/rails/rails/issues/52607. Does changing config.eager_load or enabling/disabling parallel tests fix it?

Disabling parallelization in tests also seems to work.

Was able to reproduce with parallel tests and config.eager_load = true, but still trying to figure out the cause.
A temporary fix is to call reset_column_information in parallelize_setup.
class ActiveSupport::TestCase
  parallelize_setup do |worker|
    Item.reset_column_information
  end
end

This is fixed by https://github.com/rails/rails/pull/52703.

authors: ankane gjtorikian jkostolansky

repo: ankane/neighbor


text:
Homepage

closes #493

Wow Shreya. It's cool

Wow Shreya. It's cool

I guess you forget to label the level on it..

repo: anmode/grabtern-frontend


text:
🛑 Rainbow is down

In 5d93ea6, Rainbow (https://радуга-талантов.рф) was down:

HTTP code: 0
Response time: 0 ms

Resolved: Rainbow is back up in 7b8c7f8 after 29 minutes.

repo: ano-pedproject/repo


text:
Create validator.kimkhoathao.toml

Description
All previous genesis validators should name their PRs "Update {validator_alias}.toml for tesntet-15" and provide links to previous PRs merged.
If this is an UPDATE for a previous genesis validator
Checks are made against your net_address. If this has changed since the previous testnet, make sure you provide links of previous prs merged from your previous git username.
Thanks in advance!
Checklist before merging

[x] Only one toml is added in this PR
[x] The file being added is indeed a .toml file
[x] The toml being added is to the correct folder, and only to the correct folder
[x] The eth_hot_key and eth_cold_key are present
[x] The email, discord, elements telegram, and twitter fields are present and valid

Filename contains more than one dot (in addition to .toml)
This PR has been automatically closed because it does not follow the correct procedure for updating the genesis file.

authors: bengtlofgren kimkhoathao

repo: anoma/namada-testnets