text:
PubSub.unsubscribe() can read a pubsub message instead of a response

When PubSub.unsubscribe() is called, it just reads the next response from the socket indiscriminately. Unfortunately, that may not always be the proper response, since there may be a pubsub message waiting:
>>> from redis import Redis
>>> r = Redis()
>>> p = r.pubsub()
>>> p.subscribe('foo')
['subscribe', 'foo', 1L]
>>> r.publish('foo', 'bar')
1L
>>> p.unsubscribe('foo')
['message', 'foo', 'bar']

That's a nuisance, but (probably) not very harmful. However, it gets worse if you call unsubscribe() a second time. The PubSub object will read the first unsubscribe command's response, realize that it's not subscribed to anything, and release its socket back into the connection pool -- even though the socket has an unread response waiting:
>>> p.subscription_count
1L
>>> p.unsubscribe('foo')
 ['unsubscribe', 'foo', 0L]
>>> p.subscription_count
0L
>>> r.get('asdf')
['unsubscribe', 'foo', 0L]

Any method that calls parse_response will have this behavior. It's particularly insidious in the case you outlined above (disconnect and drop messages). We ran into it in a slightly different use case: two messages were sent to a client, the first of which instructed the client to subscribe to a new channel. Since the subscribe call returns the result of a parse_response call, it was reading the second message sent to the client, rather than the server's response to the subscribe command. As a workaround, we call our message-handling code on the result of anything that calls parse_response.

authors: gsoltis leifkb

repo: andymccurdy/redis-py


text:
ValueError: too many values to unpack (expected 2)

When I run my own dataset, I have problems that I don't understand。
What should I do？
Initializing voxel volume...
Voxel volume size: 62 x 39 x 54 - # points: 130,572
Fusing frame 1/228
Traceback (most recent call last):
File "/snap/pycharm-professional/306/plugins/python/helpers/pydev/pydevd.py", line 1496, in _exec
pydev_imports.execfile(file, globals, locals)  # execute the script
File "/snap/pycharm-professional/306/plugins/python/helpers/pydev/_pydev_imps/_pydev_execfile.py", line 18, in execfile
exec(compile(contents+"\n", file, 'exec'), glob, loc)
File "/home/wang/tsdf-fusion-python-master/demo.py", line 55, in <module>
tsdf_vol.integrate(color_image, depth_im, cam_intr, cam_pose, obs_weight=1.)
File "/home/wang/tsdf-fusion-python-master/fusion.py", line 218, in integrate
im_h, im_w = depth_im.shape
ValueError: too many values to unpack (expected 2)

You might be missing the channel.

read your depth map with this function
depth_im = cv2.imread(depth_name, cv2.IMREAD_ANYDEPTH)

How to solve this？

@LINFF1023 it can depend on two things, your voxel size may be large; and your voxelization algorithm, which is our tsd-fusion. Try a different voxel size. For one thing your dataset might small but dense.

source: gharchive/issue

authors: AnasCHARROUD HquGhy LINFF1023 thebirdgr

repo: andyzeng/tsdf-fusion-python

license_type: permissive

license_source: github-api


text:
In 'state' condition: unknown entity binary_sensor

Version of the schedule_state component
0.17.0
Configuration
The configuration is the same as here.
The referenced binary_sensor configuration is:
- platform: workday
  country: HU
- platform: template
  sensors:
    workday_extra:
      friendly_name: 'Munkanap'
      icon_template: mdi:calendar-account
      value_template: >
        {{ states('binary_sensor.workday_sensor') if is_state('input_boolean.orverride_freeday', 'off') else 'off'}}

The purpose of this is just to have a manual override switch (input_boolean.orverride_freeday) for vacation days without having to manually add dates to the workday_sensor config.
Describe the bug
Log is filled with unknown entity binary_sensor.workday_extra although this entity is perfectly valid at the moment of the evaluation. The problem can be reproduced at any time by simply calling service schedule_state.reload - this is not caused only at boot when one can think of the binary_sensor not being yet ready.
Debug log

2022-10-13 17:42:31.937 WARNING (MainThread) [custom_components.schedule_state.sensor] Error evaluating condition in 'Heating 6 schedule':
In 'condition':
  In 'state':
    In 'state' condition: unknown entity binary_sensor.workday_extra
2022-10-13 17:42:31.938 ERROR (MainThread) [custom_components.schedule_state.sensor] Heating 6 schedule: 19.0: error evaluating condition - skipping, will try again in 2 minutes
2022-10-13 17:42:31.939 WARNING (MainThread) [custom_components.schedule_state.sensor] Error evaluating condition in 'Heating 6 schedule':
In 'condition':
  In 'state':
    In 'state' condition: unknown entity binary_sensor.workday_extra
2022-10-13 17:42:31.939 ERROR (MainThread) [custom_components.schedule_state.sensor] Heating 6 schedule: 19.0: error evaluating condition - skipping, will try again in 2 minutes
2022-10-13 17:42:31.940 WARNING (MainThread) [custom_components.schedule_state.sensor] Error evaluating condition in 'Heating 6 schedule':
In 'condition':
  In 'state':
    In 'state' condition: unknown entity binary_sensor.workday_extra
2022-10-13 17:42:31.941 ERROR (MainThread) [custom_components.schedule_state.sensor] Heating 6 schedule: 19.0: error evaluating condition - skipping, will try again in 2 minutes
2022-10-13 17:42:31.942 WARNING (MainThread) [custom_components.schedule_state.sensor] Error evaluating condition in 'Heating 6 schedule':
In 'condition':
  In 'state':
    In 'state' condition: unknown entity binary_sensor.workday_extra
2022-10-13 17:42:31.943 ERROR (MainThread) [custom_components.schedule_state.sensor] Heating 6 schedule: 21.0: error evaluating condition - skipping, will try again in 2 minutes
2022-10-13 17:42:31.944 WARNING (MainThread) [custom_components.schedule_state.sensor] Error evaluating condition in 'Heating 6 schedule':
In 'condition':
  In 'state':
    In 'state' condition: unknown entity binary_sensor.workday_extra
2022-10-13 17:42:31.944 ERROR (MainThread) [custom_components.schedule_state.sensor] Heating 6 schedule: 19.0: error evaluating condition - skipping, will try again in 2 minutes
2022-10-13 17:42:31.945 WARNING (MainThread) [custom_components.schedule_state.sensor] Error evaluating condition in 'Heating 6 schedule':
In 'condition':
  In 'state':
    In 'state' condition: unknown entity binary_sensor.workday_extra
2022-10-13 17:42:31.946 ERROR (MainThread) [custom_components.schedule_state.sensor] Heating 6 schedule: 19.0: error evaluating condition - skipping, will try again in 2 minutes
2022-10-13 17:42:31.947 WARNING (MainThread) [custom_components.schedule_state.sensor] Error evaluating condition in 'Heating 6 schedule':
In 'condition':
  In 'state':
    In 'state' condition: unknown entity binary_sensor.workday_extra
2022-10-13 17:42:31.948 ERROR (MainThread) [custom_components.schedule_state.sensor] Heating 6 schedule: 19.0: error evaluating condition - skipping, will try again in 2 minutes
2022-10-13 17:42:31.949 WARNING (MainThread) [custom_components.schedule_state.sensor] Error evaluating condition in 'Heating 6 schedule':
In 'condition':
  In 'state':
    In 'state' condition: unknown entity binary_sensor.workday_extra
2022-10-13 17:42:31.949 ERROR (MainThread) [custom_components.schedule_state.sensor] Heating 6 schedule: 19.0: error evaluating condition - skipping, will try again in 2 minutes
2022-10-13 17:42:31.950 WARNING (MainThread) [custom_components.schedule_state.sensor] Error evaluating condition in 'Heating 6 schedule':
In 'condition':
  In 'state':
    In 'state' condition: unknown entity binary_sensor.workday_extra
2022-10-13 17:42:31.951 ERROR (MainThread) [custom_components.schedule_state.sensor] Heating 6 schedule: 21.0: error evaluating condition - skipping, will try again in 2 minutes
2022-10-13 17:42:31.952 WARNING (MainThread) [custom_components.schedule_state.sensor] Error evaluating condition in 'Heating 6 schedule':
In 'condition':
  In 'state':
    In 'state' condition: unknown entity binary_sensor.workday_extra
2022-10-13 17:42:31.953 ERROR (MainThread) [custom_components.schedule_state.sensor] Heating 6 schedule: 19.0: error evaluating condition - skipping, will try again in 2 minutes

Are you sure your binary_sensor.workday_extra sensor is present? The template definition does not match the syntax in https://www.home-assistant.io/integrations/template/#binary_sensor

Yes:

I migrated it to modern format, lets's see...

I think this is likely a HA bug. With a template binary sensor in legacy format the error appears, with one in modern format, it doesn't.

authors: aneeshd nagyrobi


text:
Fix disconnect issues

Need to be tested!
I pushed a new version of pyfreshintellivent (v0.1.3). This version will hopefully fix some of the devices stuck in a connected state.
Also refactored some code when fetching data, to improve what BLE characteristics to fetch/write to. This saves some time.
And I introduced some retry functionality to retry a few times before going to an unavailable state.
What to test:

Does it work (running, no missing dependencies etc)
Less connection issues
ESPHome (BLE Proxy) still working
All sensors, numbers, switches still available

@LaStrada there was some more fixes to be done before we can release a new test version right ?

source: gharchive/pull-request

authors: LaStrada angoyd

repo: angoyd/freshintelliventHacs

license: MIT


text:
Unable to configure it on Port 53

I am unable to configure it on port 53 (TCP or UDP), connection getting reset  and I am getting Fatal TLS Error
I am on Amazon Lightsail

Does it work for other ports?

Yes, works for every other port I select. Only having issue with port 53 for both TCP and UDP.
Very strange, service is running and port is listing to server, but while connecting, getting error.

Tue Aug 20 19:24:41 2019 TLS Error: client->client or server->server connection attempted from [AF_INET]107.23.229.202:53
Tue Aug 20 19:24:43 2019 TLS Error: client->client or server->server connection attempted from [AF_INET]107.23.229.202:53
Tue Aug 20 19:24:47 2019 TLS Error: client->client or server->server connection attempted from [AF_INET]107.23.229.202:53
Tue Aug 20 19:24:55 2019 TLS Error: client->client or server->server connection attempted from [AF_INET]107.23.229.202:53

Successful on port 110
Tue Aug 20 19:30:23 2019 OpenVPN 2.4.6 x86_64-w64-mingw32 [SSL (OpenSSL)] [LZO] [LZ4] [PKCS11] [AEAD] built on Apr 26 2018
Tue Aug 20 19:30:23 2019 Windows version 6.2 (Windows 8 or greater) 64bit
Tue Aug 20 19:30:23 2019 library versions: OpenSSL 1.1.0h  27 Mar 2018, LZO 2.10
Tue Aug 20 19:30:23 2019 MANAGEMENT: TCP Socket listening on [AF_INET]127.0.0.1:25340
Tue Aug 20 19:30:23 2019 Need hold release from management interface, waiting...
Tue Aug 20 19:30:23 2019 MANAGEMENT: Client connected from [AF_INET]127.0.0.1:25340
Tue Aug 20 19:30:23 2019 MANAGEMENT: CMD 'state on'
Tue Aug 20 19:30:23 2019 MANAGEMENT: CMD 'log all on'
Tue Aug 20 19:30:24 2019 MANAGEMENT: CMD 'echo all on'
Tue Aug 20 19:30:24 2019 MANAGEMENT: CMD 'bytecount 5'
Tue Aug 20 19:30:24 2019 MANAGEMENT: CMD 'hold off'
Tue Aug 20 19:30:24 2019 MANAGEMENT: CMD 'hold release'
Tue Aug 20 19:30:24 2019 Outgoing Control Channel Encryption: Cipher 'AES-256-CTR' initialized with 256 bit key
Tue Aug 20 19:30:24 2019 Outgoing Control Channel Encryption: Using 256 bit message hash 'SHA256' for HMAC authentication
Tue Aug 20 19:30:24 2019 Incoming Control Channel Encryption: Cipher 'AES-256-CTR' initialized with 256 bit key
Tue Aug 20 19:30:24 2019 Incoming Control Channel Encryption: Using 256 bit message hash 'SHA256' for HMAC authentication
Tue Aug 20 19:30:24 2019 MANAGEMENT: >STATE:1566309624,RESOLVE,,,,,,
Tue Aug 20 19:30:24 2019 TCP/UDP: Preserving recently used remote address: [AF_INET]XX.XX.XX.XX:110
Tue Aug 20 19:30:24 2019 Socket Buffers: R=[65536->65536] S=[64512->64512]
Tue Aug 20 19:30:24 2019 Attempting to establish TCP connection with [AF_INET]XX.XX.XX.XX:110 [nonblock]
Tue Aug 20 19:30:24 2019 MANAGEMENT: >STATE:1566309624,TCP_CONNECT,,,,,,
Tue Aug 20 19:30:25 2019 TCP connection established with [AF_INET]XX.XX.XX.XX:110
Tue Aug 20 19:30:25 2019 TCP_CLIENT link local: (not bound)
Tue Aug 20 19:30:25 2019 TCP_CLIENT link remote: [AF_INET]XX.XX.XX.XX:110
Tue Aug 20 19:30:25 2019 MANAGEMENT: >STATE:1566309625,WAIT,,,,,,
Tue Aug 20 19:30:25 2019 MANAGEMENT: >STATE:1566309625,AUTH,,,,,,
Tue Aug 20 19:30:25 2019 TLS: Initial packet from [AF_INET]XX.XX.XX.XX:110, sid=af666e50 e32f93db
Tue Aug 20 19:30:25 2019 VERIFY OK: depth=1, CN=cn_oDJeikXs8Gj5r8MZ
Tue Aug 20 19:30:25 2019 VERIFY KU OK
Tue Aug 20 19:30:25 2019 Validating certificate extended key usage
Tue Aug 20 19:30:25 2019 ++ Certificate has EKU (str) TLS Web Server Authentication, expects TLS Web Server Authentication
Tue Aug 20 19:30:25 2019 VERIFY EKU OK
Tue Aug 20 19:30:25 2019 VERIFY X509NAME OK: CN=server_TZn2piBXHTCUIwAJ
Tue Aug 20 19:30:25 2019 VERIFY OK: depth=0, CN=server_TZn2piBXHTCUIwAJ
Tue Aug 20 19:30:26 2019 Control Channel: TLSv1.2, cipher TLSv1.2 ECDHE-ECDSA-AES128-GCM-SHA256, 256 bit EC, curve: prime256v1
Tue Aug 20 19:30:26 2019 [server_TZn2piBXHTCUIwAJ] Peer Connection Initiated with [AF_INET]XX.XX.XX.XX:110
Tue Aug 20 19:30:27 2019 MANAGEMENT: >STATE:1566309627,GET_CONFIG,,,,,,
Tue Aug 20 19:30:27 2019 SENT CONTROL [server_TZn2piBXHTCUIwAJ]: 'PUSH_REQUEST' (status=1)
Tue Aug 20 19:30:29 2019 PUSH: Received control message: 'PUSH_REPLY,dhcp-option DNS 1.0.0.1,dhcp-option DNS 1.1.1.1,redirect-gateway def1 bypass-dhcp,route-gateway 10.8.0.1,topology subnet,ping 10,ping-restart 120,ifconfig 10.8.0.3 255.255.255.0,peer-id 0,cipher AES-128-GCM'
Tue Aug 20 19:30:29 2019 OPTIONS IMPORT: timers and/or timeouts modified
Tue Aug 20 19:30:29 2019 OPTIONS IMPORT: --ifconfig/up options modified
Tue Aug 20 19:30:29 2019 OPTIONS IMPORT: route options modified
Tue Aug 20 19:30:29 2019 OPTIONS IMPORT: route-related options modified
Tue Aug 20 19:30:29 2019 OPTIONS IMPORT: --ip-win32 and/or --dhcp-option options modified
Tue Aug 20 19:30:29 2019 OPTIONS IMPORT: peer-id set
Tue Aug 20 19:30:29 2019 OPTIONS IMPORT: adjusting link_mtu to 1626
Tue Aug 20 19:30:29 2019 OPTIONS IMPORT: data channel crypto options modified
Tue Aug 20 19:30:29 2019 Outgoing Data Channel: Cipher 'AES-128-GCM' initialized with 128 bit key
Tue Aug 20 19:30:29 2019 Incoming Data Channel: Cipher 'AES-128-GCM' initialized with 128 bit key
Tue Aug 20 19:30:29 2019 interactive service msg_channel=0
Tue Aug 20 19:30:29 2019 ROUTE_GATEWAY 192.168.31.1/255.255.255.0 I=10 HWADDR=d4:25:8b:f6:0d:79
Tue Aug 20 19:30:29 2019 open_tun
Tue Aug 20 19:30:29 2019 TAP-WIN32 device [Ethernet 2] opened: \.\Global{C935EA68-F332-4977-9DAC-CE30BDB3C701}.tap
Tue Aug 20 19:30:29 2019 TAP-Windows Driver Version 9.21
Tue Aug 20 19:30:29 2019 Set TAP-Windows TUN subnet mode network/local/netmask = 10.8.0.0/10.8.0.3/255.255.255.0 [SUCCEEDED]
Tue Aug 20 19:30:29 2019 Notified TAP-Windows driver to set a DHCP IP/netmask of 10.8.0.3/255.255.255.0 on interface {C935EA68-F332-4977-9DAC-CE30BDB3C701} [DHCP-serv: 10.8.0.254, lease-time: 31536000]
Tue Aug 20 19:30:29 2019 Successful ARP Flush on interface [17] {C935EA68-F332-4977-9DAC-CE30BDB3C701}
Tue Aug 20 19:30:29 2019 do_ifconfig, tt->did_ifconfig_ipv6_setup=0
Tue Aug 20 19:30:29 2019 MANAGEMENT: >STATE:1566309629,ASSIGN_IP,,10.8.0.3,,,,
Tue Aug 20 19:30:29 2019 Block_DNS: WFP engine opened
Tue Aug 20 19:30:29 2019 Block_DNS: Using existing sublayer
Tue Aug 20 19:30:29 2019 Block_DNS: Added permit filters for exe_path
Tue Aug 20 19:30:29 2019 Block_DNS: Added block filters for all interfaces
Tue Aug 20 19:30:29 2019 Block_DNS: Added permit filters for TAP interface
Tue Aug 20 19:30:34 2019 TEST ROUTES: 1/1 succeeded len=0 ret=1 a=0 u/d=up
Tue Aug 20 19:30:34 2019 C:\WINDOWS\system32\route.exe ADD XX.XX.XX.XX MASK 255.255.255.255 192.168.31.1
Tue Aug 20 19:30:34 2019 ROUTE: CreateIpForwardEntry succeeded with dwForwardMetric1=50 and dwForwardType=4
Tue Aug 20 19:30:34 2019 Route addition via IPAPI succeeded [adaptive]
Tue Aug 20 19:30:34 2019 C:\WINDOWS\system32\route.exe ADD 0.0.0.0 MASK 128.0.0.0 10.8.0.1
Tue Aug 20 19:30:34 2019 ROUTE: CreateIpForwardEntry succeeded with dwForwardMetric1=3 and dwForwardType=4
Tue Aug 20 19:30:34 2019 Route addition via IPAPI succeeded [adaptive]
Tue Aug 20 19:30:34 2019 C:\WINDOWS\system32\route.exe ADD 128.0.0.0 MASK 128.0.0.0 10.8.0.1
Tue Aug 20 19:30:34 2019 ROUTE: CreateIpForwardEntry succeeded with dwForwardMetric1=3 and dwForwardType=4
Tue Aug 20 19:30:34 2019 Route addition via IPAPI succeeded [adaptive]
Tue Aug 20 19:30:34 2019 Initialization Sequence Completed
Tue Aug 20 19:30:34 2019 MANAGEMENT: >STATE:1566309634,CONNECTED,SUCCESS,10.8.0.3,XX.XX.XX.XX,110,192.168.31.74,53400

With Port 53
Tue Aug 20 19:34:23 2019 OpenVPN 2.4.6 x86_64-w64-mingw32 [SSL (OpenSSL)] [LZO] [LZ4] [PKCS11] [AEAD] built on Apr 26 2018
Tue Aug 20 19:34:23 2019 Windows version 6.2 (Windows 8 or greater) 64bit
Tue Aug 20 19:34:23 2019 library versions: OpenSSL 1.1.0h  27 Mar 2018, LZO 2.10
Tue Aug 20 19:34:23 2019 MANAGEMENT: TCP Socket listening on [AF_INET]127.0.0.1:25340
Tue Aug 20 19:34:23 2019 Need hold release from management interface, waiting...
Tue Aug 20 19:34:23 2019 MANAGEMENT: Client connected from [AF_INET]127.0.0.1:25340
Tue Aug 20 19:34:24 2019 MANAGEMENT: CMD 'state on'
Tue Aug 20 19:34:24 2019 MANAGEMENT: CMD 'log all on'
Tue Aug 20 19:34:24 2019 MANAGEMENT: CMD 'echo all on'
Tue Aug 20 19:34:24 2019 MANAGEMENT: CMD 'bytecount 5'
Tue Aug 20 19:34:24 2019 MANAGEMENT: CMD 'hold off'
Tue Aug 20 19:34:24 2019 MANAGEMENT: CMD 'hold release'
Tue Aug 20 19:34:24 2019 Outgoing Control Channel Encryption: Cipher 'AES-256-CTR' initialized with 256 bit key
Tue Aug 20 19:34:24 2019 Outgoing Control Channel Encryption: Using 256 bit message hash 'SHA256' for HMAC authentication
Tue Aug 20 19:34:24 2019 Incoming Control Channel Encryption: Cipher 'AES-256-CTR' initialized with 256 bit key
Tue Aug 20 19:34:24 2019 Incoming Control Channel Encryption: Using 256 bit message hash 'SHA256' for HMAC authentication
Tue Aug 20 19:34:24 2019 MANAGEMENT: >STATE:1566309864,RESOLVE,,,,,,
Tue Aug 20 19:34:24 2019 TCP/UDP: Preserving recently used remote address: [AF_INET]54.89.72.43:53
Tue Aug 20 19:34:24 2019 Socket Buffers: R=[65536->65536] S=[64512->64512]
Tue Aug 20 19:34:24 2019 Attempting to establish TCP connection with [AF_INET]54.89.72.43:53 [nonblock]
Tue Aug 20 19:34:24 2019 MANAGEMENT: >STATE:1566309864,TCP_CONNECT,,,,,,
Tue Aug 20 19:34:25 2019 TCP connection established with [AF_INET]54.89.72.43:53
Tue Aug 20 19:34:25 2019 TCP_CLIENT link local: (not bound)
Tue Aug 20 19:34:25 2019 TCP_CLIENT link remote: [AF_INET]54.89.72.43:53
Tue Aug 20 19:34:25 2019 MANAGEMENT: >STATE:1566309865,WAIT,,,,,,
Tue Aug 20 19:34:25 2019 Connection reset, restarting [0]
Tue Aug 20 19:34:25 2019 SIGUSR1[soft,connection-reset] received, process restarting
Tue Aug 20 19:34:25 2019 MANAGEMENT: >STATE:1566309865,RECONNECTING,connection-reset,,,,,
Tue Aug 20 19:34:25 2019 Restart pause, 5 second(s)
Tue Aug 20 19:34:30 2019 MANAGEMENT: >STATE:1566309870,RESOLVE,,,,,,
Tue Aug 20 19:34:30 2019 TCP/UDP: Preserving recently used remote address: [AF_INET]54.89.72.43:53
Tue Aug 20 19:34:30 2019 Socket Buffers: R=[65536->65536] S=[64512->64512]
Tue Aug 20 19:34:30 2019 Attempting to establish TCP connection with [AF_INET]54.89.72.43:53 [nonblock]
Tue Aug 20 19:34:30 2019 MANAGEMENT: >STATE:1566309870,TCP_CONNECT,,,,,,
Tue Aug 20 19:34:31 2019 TCP connection established with [AF_INET]54.89.72.43:53
Tue Aug 20 19:34:31 2019 TCP_CLIENT link local: (not bound)
Tue Aug 20 19:34:31 2019 TCP_CLIENT link remote: [AF_INET]54.89.72.43:53
Tue Aug 20 19:34:31 2019 MANAGEMENT: >STATE:1566309871,WAIT,,,,,,
Tue Aug 20 19:34:31 2019 TLS Error: client->client or server->server connection attempted from [AF_INET]54.89.72.43:53
Tue Aug 20 19:34:31 2019 Fatal TLS error (check_tls_errors_co), restarting
Tue Aug 20 19:34:31 2019 SIGUSR1[soft,tls-error] received, process restarting
Tue Aug 20 19:34:31 2019 MANAGEMENT: >STATE:1566309871,RECONNECTING,tls-error,,,,,
Tue Aug 20 19:34:31 2019 Restart pause, 5 second(s)
Tue Aug 20 19:34:36 2019 MANAGEMENT: >STATE:1566309876,RESOLVE,,,,,,
Tue Aug 20 19:34:36 2019 TCP/UDP: Preserving recently used remote address: [AF_INET]54.89.72.43:53
Tue Aug 20 19:34:36 2019 Socket Buffers: R=[65536->65536] S=[64512->64512]
Tue Aug 20 19:34:36 2019 Attempting to establish TCP connection with [AF_INET]54.89.72.43:53 [nonblock]
Tue Aug 20 19:34:36 2019 MANAGEMENT: >STATE:1566309876,TCP_CONNECT,,,,,,
Tue Aug 20 19:34:37 2019 TCP connection established with [AF_INET]54.89.72.43:53
Tue Aug 20 19:34:37 2019 TCP_CLIENT link local: (not bound)
Tue Aug 20 19:34:37 2019 TCP_CLIENT link remote: [AF_INET]54.89.72.43:53
Tue Aug 20 19:34:37 2019 MANAGEMENT: >STATE:1566309877,WAIT,,,,,,
Tue Aug 20 19:34:37 2019 Connection reset, restarting [0]
Tue Aug 20 19:34:37 2019 SIGUSR1[soft,connection-reset] received, process restarting
Tue Aug 20 19:34:37 2019 MANAGEMENT: >STATE:1566309877,RECONNECTING,connection-reset,,,,,
Tue Aug 20 19:34:37 2019 Restart pause, 5 second(s)

With Port 53
Tue Aug 20 19:34:23 2019 OpenVPN 2.4.6 x86_64-w64-mingw32 [SSL (OpenSSL)] [LZO] [LZ4] [PKCS11] [AEAD] built on Apr 26 2018
Tue Aug 20 19:34:23 2019 Windows version 6.2 (Windows 8 or greater) 64bit
Tue Aug 20 19:34:23 2019 library versions: OpenSSL 1.1.0h  27 Mar 2018, LZO 2.10
Tue Aug 20 19:34:23 2019 MANAGEMENT: TCP Socket listening on [AF_INET]127.0.0.1:25340
Tue Aug 20 19:34:23 2019 Need hold release from management interface, waiting...
Tue Aug 20 19:34:23 2019 MANAGEMENT: Client connected from [AF_INET]127.0.0.1:25340
Tue Aug 20 19:34:24 2019 MANAGEMENT: CMD 'state on'
Tue Aug 20 19:34:24 2019 MANAGEMENT: CMD 'log all on'
Tue Aug 20 19:34:24 2019 MANAGEMENT: CMD 'echo all on'
Tue Aug 20 19:34:24 2019 MANAGEMENT: CMD 'bytecount 5'
Tue Aug 20 19:34:24 2019 MANAGEMENT: CMD 'hold off'
Tue Aug 20 19:34:24 2019 MANAGEMENT: CMD 'hold release'
Tue Aug 20 19:34:24 2019 Outgoing Control Channel Encryption: Cipher 'AES-256-CTR' initialized with 256 bit key
Tue Aug 20 19:34:24 2019 Outgoing Control Channel Encryption: Using 256 bit message hash 'SHA256' for HMAC authentication
Tue Aug 20 19:34:24 2019 Incoming Control Channel Encryption: Cipher 'AES-256-CTR' initialized with 256 bit key
Tue Aug 20 19:34:24 2019 Incoming Control Channel Encryption: Using 256 bit message hash 'SHA256' for HMAC authentication
Tue Aug 20 19:34:24 2019 MANAGEMENT: >STATE:1566309864,RESOLVE,,,,,,
Tue Aug 20 19:34:24 2019 TCP/UDP: Preserving recently used remote address: [AF_INET]XX.XX.XX.XX:53
Tue Aug 20 19:34:24 2019 Socket Buffers: R=[65536->65536] S=[64512->64512]
Tue Aug 20 19:34:24 2019 Attempting to establish TCP connection with [AF_INET]XX.XX.XX.XX:53 [nonblock]
Tue Aug 20 19:34:24 2019 MANAGEMENT: >STATE:1566309864,TCP_CONNECT,,,,,,
Tue Aug 20 19:34:25 2019 TCP connection established with [AF_INET]XX.XX.XX.XX:53
Tue Aug 20 19:34:25 2019 TCP_CLIENT link local: (not bound)
Tue Aug 20 19:34:25 2019 TCP_CLIENT link remote: [AF_INET]XX.XX.XX.XX:53
Tue Aug 20 19:34:25 2019 MANAGEMENT: >STATE:1566309865,WAIT,,,,,,
Tue Aug 20 19:34:25 2019 Connection reset, restarting [0]
Tue Aug 20 19:34:25 2019 SIGUSR1[soft,connection-reset] received, process restarting
Tue Aug 20 19:34:25 2019 MANAGEMENT: >STATE:1566309865,RECONNECTING,connection-reset,,,,,
Tue Aug 20 19:34:25 2019 Restart pause, 5 second(s)
Tue Aug 20 19:34:30 2019 MANAGEMENT: >STATE:1566309870,RESOLVE,,,,,,
Tue Aug 20 19:34:30 2019 TCP/UDP: Preserving recently used remote address: [AF_INET]XX.XX.XX.XX:53
Tue Aug 20 19:34:30 2019 Socket Buffers: R=[65536->65536] S=[64512->64512]
Tue Aug 20 19:34:30 2019 Attempting to establish TCP connection with [AF_INET]XX.XX.XX.XX:53 [nonblock]
Tue Aug 20 19:34:30 2019 MANAGEMENT: >STATE:1566309870,TCP_CONNECT,,,,,,
Tue Aug 20 19:34:31 2019 TCP connection established with [AF_INET]XX.XX.XX.XX:53
Tue Aug 20 19:34:31 2019 TCP_CLIENT link local: (not bound)
Tue Aug 20 19:34:31 2019 TCP_CLIENT link remote: [AF_INET]XX.XX.XX.XX:53
Tue Aug 20 19:34:31 2019 MANAGEMENT: >STATE:1566309871,WAIT,,,,,,
Tue Aug 20 19:34:31 2019 TLS Error: client->client or server->server connection attempted from [AF_INET]XX.XX.XX.XX:53
Tue Aug 20 19:34:31 2019 Fatal TLS error (check_tls_errors_co), restarting
Tue Aug 20 19:34:31 2019 SIGUSR1[soft,tls-error] received, process restarting
Tue Aug 20 19:34:31 2019 MANAGEMENT: >STATE:1566309871,RECONNECTING,tls-error,,,,,
Tue Aug 20 19:34:31 2019 Restart pause, 5 second(s)
Tue Aug 20 19:34:36 2019 MANAGEMENT: >STATE:1566309876,RESOLVE,,,,,,
Tue Aug 20 19:34:36 2019 TCP/UDP: Preserving recently used remote address: [AF_INET]XX.XX.XX.XX:53
Tue Aug 20 19:34:36 2019 Socket Buffers: R=[65536->65536] S=[64512->64512]
Tue Aug 20 19:34:36 2019 Attempting to establish TCP connection with [AF_INET]XX.XX.XX.XX:53 [nonblock]
Tue Aug 20 19:34:36 2019 MANAGEMENT: >STATE:1566309876,TCP_CONNECT,,,,,,
Tue Aug 20 19:34:37 2019 TCP connection established with [AF_INET]XX.XX.XX.XX:53
Tue Aug 20 19:34:37 2019 TCP_CLIENT link local: (not bound)
Tue Aug 20 19:34:37 2019 TCP_CLIENT link remote: [AF_INET]XX.XX.XX.XX:53
Tue Aug 20 19:34:37 2019 MANAGEMENT: >STATE:1566309877,WAIT,,,,,,
Tue Aug 20 19:34:37 2019 Connection reset, restarting [0]
Tue Aug 20 19:34:37 2019 SIGUSR1[soft,connection-reset] received, process restarting
Tue Aug 20 19:34:37 2019 MANAGEMENT: >STATE:1566309877,RECONNECTING,connection-reset,,,,,
Tue Aug 20 19:34:37 2019 Restart pause, 5 second(s)

Did you check your instance's firewall?

It works for me on Lightsail with Debian 9, and with the correct ports open on the firewall. (I mean the Lightsail firewall, via the web console)

Hi,
I have all the ports opened, I am using this for my Lightsail
WordPress Certified by Bitnami and Automattic 5.1.1-2.
Distributor ID: Ubuntu
Description:    Ubuntu 16.04.6 LTS
Release:        16.04
Codename:       xenial
Ports: https://imgur.com/yroWaAf
Could you please give it a try with same image i am using.

It works for me. Are you sure OpenVPN is running?

I just deployed a new instances in Light sail in Oregon, with both TCP/UDP DNS port opened. Installation went fine, even I can telnet to port 53 on the server, but failed to establish connectivity, getting same error in TLS.
Tue Aug 20 22:09:25 2019 OpenVPN 2.4.6 x86_64-w64-mingw32 [SSL (OpenSSL)] [LZO] [LZ4] [PKCS11] [AEAD] built on Apr 26 2018
Tue Aug 20 22:09:25 2019 Windows version 6.2 (Windows 8 or greater) 64bit
Tue Aug 20 22:09:25 2019 library versions: OpenSSL 1.1.0h  27 Mar 2018, LZO 2.10
Enter Management Password:
Tue Aug 20 22:09:25 2019 MANAGEMENT: TCP Socket listening on [AF_INET]127.0.0.1:25341
Tue Aug 20 22:09:25 2019 Need hold release from management interface, waiting...
Tue Aug 20 22:09:25 2019 MANAGEMENT: Client connected from [AF_INET]127.0.0.1:25341
Tue Aug 20 22:09:25 2019 MANAGEMENT: CMD 'state on'
Tue Aug 20 22:09:25 2019 MANAGEMENT: CMD 'log all on'
Tue Aug 20 22:09:25 2019 MANAGEMENT: CMD 'echo all on'
Tue Aug 20 22:09:25 2019 MANAGEMENT: CMD 'bytecount 5'
Tue Aug 20 22:09:25 2019 MANAGEMENT: CMD 'hold off'
Tue Aug 20 22:09:25 2019 MANAGEMENT: CMD 'hold release'
Tue Aug 20 22:09:25 2019 Outgoing Control Channel Encryption: Cipher 'AES-256-CTR' initialized with 256 bit key
Tue Aug 20 22:09:25 2019 Outgoing Control Channel Encryption: Using 256 bit message hash 'SHA256' for HMAC authentication
Tue Aug 20 22:09:25 2019 Incoming Control Channel Encryption: Cipher 'AES-256-CTR' initialized with 256 bit key
Tue Aug 20 22:09:25 2019 Incoming Control Channel Encryption: Using 256 bit message hash 'SHA256' for HMAC authentication
Tue Aug 20 22:09:25 2019 TCP/UDP: Preserving recently used remote address: [AF_INET]54.190.160.15:53
Tue Aug 20 22:09:25 2019 Socket Buffers: R=[65536->65536] S=[64512->64512]
Tue Aug 20 22:09:25 2019 Attempting to establish TCP connection with [AF_INET]54.190.160.15:53 [nonblock]
Tue Aug 20 22:09:25 2019 MANAGEMENT: >STATE:1566319165,TCP_CONNECT,,,,,,
Tue Aug 20 22:09:26 2019 TCP connection established with [AF_INET]54.190.160.15:53
Tue Aug 20 22:09:26 2019 TCP_CLIENT link local: (not bound)
Tue Aug 20 22:09:26 2019 TCP_CLIENT link remote: [AF_INET]54.190.160.15:53
Tue Aug 20 22:09:26 2019 MANAGEMENT: >STATE:1566319166,WAIT,,,,,,
Tue Aug 20 22:09:26 2019 TLS Error: client->client or server->server connection attempted from [AF_INET]54.190.160.15:53
Tue Aug 20 22:09:26 2019 Fatal TLS error (check_tls_errors_co), restarting
Tue Aug 20 22:09:26 2019 SIGUSR1[soft,tls-error] received, process restarting
Tue Aug 20 22:09:26 2019 MANAGEMENT: >STATE:1566319166,RECONNECTING,tls-error,,,,,
Tue Aug 20 22:09:26 2019 Restart pause, 5 second(s)
Tue Aug 20 22:09:31 2019 TCP/UDP: Preserving recently used remote address: [AF_INET]54.190.160.15:53
Tue Aug 20 22:09:31 2019 Socket Buffers: R=[65536->65536] S=[64512->64512]
Tue Aug 20 22:09:31 2019 Attempting to establish TCP connection with [AF_INET]54.190.160.15:53 [nonblock]
Tue Aug 20 22:09:31 2019 MANAGEMENT: >STATE:1566319171,TCP_CONNECT,,,,,,
Tue Aug 20 22:09:32 2019 TCP connection established with [AF_INET]54.190.160.15:53
Tue Aug 20 22:09:32 2019 TCP_CLIENT link local: (not bound)
Tue Aug 20 22:09:32 2019 TCP_CLIENT link remote: [AF_INET]54.190.160.15:53
Tue Aug 20 22:09:32 2019 MANAGEMENT: >STATE:1566319172,WAIT,,,,,,
Tue Aug 20 22:09:32 2019 Connection reset, restarting [0]
Tue Aug 20 22:09:32 2019 SIGUSR1[soft,connection-reset] received, process restarting
Tue Aug 20 22:09:32 2019 MANAGEMENT: >STATE:1566319172,RECONNECTING,connection-reset,,,,,
Tue Aug 20 22:09:32 2019 Restart pause, 5 second(s)
Tue Aug 20 22:09:37 2019 TCP/UDP: Preserving recently used remote address: [AF_INET]54.190.160.15:53
Tue Aug 20 22:09:37 2019 Socket Buffers: R=[65536->65536] S=[64512->64512]
Tue Aug 20 22:09:37 2019 Attempting to establish TCP connection with [AF_INET]54.190.160.15:53 [nonblock]
Tue Aug 20 22:09:37 2019 MANAGEMENT: >STATE:1566319177,TCP_CONNECT,,,,,,
Tue Aug 20 22:09:38 2019 TCP connection established with [AF_INET]54.190.160.15:53
Tue Aug 20 22:09:38 2019 TCP_CLIENT link local: (not bound)
Tue Aug 20 22:09:38 2019 TCP_CLIENT link remote: [AF_INET]54.190.160.15:53
Tue Aug 20 22:09:38 2019 MANAGEMENT: >STATE:1566319178,WAIT,,,,,,
Tue Aug 20 22:09:38 2019 Connection reset, restarting [0]
Tue Aug 20 22:09:38 2019 SIGUSR1[soft,connection-reset] received, process restarting
Tue Aug 20 22:09:38 2019 MANAGEMENT: >STATE:1566319178,RECONNECTING,connection-reset,,,,,
Tue Aug 20 22:09:38 2019 Restart pause, 5 second(s)
Tue Aug 20 22:09:41 2019 SIGTERM[hard,init_instance] received, process exiting
Tue Aug 20 22:09:41 2019 MANAGEMENT: >STATE:1566319181,EXITING,init_instance,,,,,

The client can access the server, but the issue is Connection reset, restarting

Can you check the openvpn logs on the server?

This is very strange, nothing wrong OpenVPN, as today I discovered that something blocking the client while initiating the connectivity over home WiFi, it is actually dropping the request, and I really don't know why or what actually the root cause.
I am able to established the connectivity while using my mobile data.
Thanks for your help.

Interesting! Maybe some QoS on your router or something :man_shrugging:

authors: angristan iAmSaugata

repo: angristan/openvpn-install


text:
Add SSSC [language]

SSSC - This is an Esolang developed by yours truly, @spargle. It's purpose is golfing, and backend microprocessing. (Updated regularly)

I will update the link. Should I open a PR, or is it ok if I just leave it as an issue?
-thx

SSSC now has a Esolangs.org page!

Not trying to be annoying, but is my language going to be added to the list?

@spargle You can leave it as an issue, but usually it will be way quicker if you create the PR (+ the description by the creator of the language is usually better), by simply creating an issue, you would have to wait until someone takes some time to add it in a PR.
Regarding the language itself, as I see the implementation only consist of 5 commands, 2 of which are requests to an external endpoint. Obviously an esolang doesn't have to be feature complete or have a point, but considering how limited is the language in the current state I'm not sure if it really fits this list at the moment 😞

Ok. I am planning to add more features later, and that is when I will open a PR.
(ps do I have to fork this repo to open a PR?)

I will close this issue then (you can create the PR without creating an issue when you feel the language is ready)
Yes, you would have to create a fork (it can be deleted once the PR is merged, please refer to Github docs or Git docs regarding pull requests and merge if you don't know how to do them
Good luck with your language 👍

thx

authors: angrykoala spargle

repo: angrykoala/awesome-esolangs


text:
Multiple stores withDevtools not updating in Redux-DevTools

I have 2 working components using a signalStore. Both are initiated with "withDevtools".
When I open the 1. component at first (after reload), the Redux-DevTool is showing the correct state.
Also when I open the 2. component at first (after reload), everything is updated correctly.
But when I switch from the first component to the second without reloading (or vice versa), the Redux-DevTool doesn't update anymore.
Maybe I'm missing some configuration or implemented it the wrong way... or is it a bug?
After navigating I would have expected a new Entry in the Redux-DevTool Actions tab an two entries (one for each component) in the State.
Here is a minimalitic example: https://stackblitz.com/edit/stackblitz-starters-ehufa9?file=src%2Fapp%2Fapp.component.html

Hello @DanielPinkpank, I don't think you are missing there something. If a SignalStore with name "flights" is instantiated multiple times, what would you expect?
I'd say the first one is always "flights", and the following ones should be indexed. Like "flights-1", "flights-2", etc.?

Yes, the stores already have different names (like in the stackblitz example).
Here are some screenshots from my Redux DevTool. The 3. screenshot shows that the component is rendered correctly but the Redux DevTool isn't updated:

navigating to the first component after reload:

navigating to the second component after reload:

navigating from the first to the second component:

I’m experiencing a similar issue. I passed the signal-store to a component, but after the component is destroyed, the redux-devtools stop tracking actions from the other signal-stores.

Quick update on that. The fix will come with a different implementation and will be released with v19.

authors: DanielPinkpank bsarnii rainerhahnekamp

repo: angular-architects/ngrx-toolkit


text:
Subscriptions not firing

@SethDavenport, @bennett000 - as discussed at ng-Conf, I have created a slightly more complex example than the counter example supplied with ng2-redux. This one lets you enter a Github organization and displays the repositories associated with that organization. The Github project is located here. I have two implementations:

Angular2 only
Angular2 + ng2-redux

Unfortunately I am not able to get the ng2-redux implementation working. The actions are being dispatched correctly and the reducer is changing the state successfully. However the subscriptions are not being fired. Here's a console log of what I am seeing:
// This stuff is happening on app initialization
reducer - action: Object {type: "@@redux/INIT"}
reducer - curState: Object {orgName: null, errorMessage: null, repos: Array[0]}
reducer - nxtState: Object {orgName: null, errorMessage: null, repos: Array[0]}
reducer - action: Object {type: "@@redux/PROBE_UNKNOWN_ACTION_w.m.l.x.n.o.j.q.1.7.m.b.n.s.c.0.i.z.f.r"}
reducer - curState: Object {orgName: null, errorMessage: null, repos: Array[0]}
reducer - nxtState: Object {orgName: null, errorMessage: null, repos: Array[0]}
reducer - action: Object {type: "@@redux/INIT"}
reducer - curState: Object {orgName: null, errorMessage: null, repos: Array[0]}
reducer - nxtState: Object {orgName: null, errorMessage: null, repos: Array[0]}
----- orgNameSubscription -----
orgname: undefined
state.orgName: undefined
----- errorMessageSubscription -----
errorMessage: undefined
state.errorMessage: undefined
----- reposSubscription -----
repos: undefined
state.repos: undefined

// When I submit the form with orgName = "archfirst" the reducer is being called correctly
reducer - action: Object {type: "CHANGE_ORG_NAME", orgName: "archfirst"}
reducer - curState: Object {orgName: null, errorMessage: null, repos: Array[0]}
reducer - nxtState: Object {orgName: "archfirst", errorMessage: null, repos: Array[0]}

// However after this I see no call to orgNameSubscription

Would you be able to look at the implementation and tell me where I am going wrong? If we can get this working it would be a good second example for ng2-redux users. Thanks in advance for your time.

@nareshbhatia I'll take a look into this when I get the chance, thanks for providing the repo/implementation - it will help debug the issue.

I am seeing that the counter example has code to trigger change detection whenever the store changes:
this.unsubscribe = this.ngRedux.subscribe(() => {
  this.applicationRef.tick();
});

I don't understand the need for this because the same function has code that subscribes to the change in counter state which eventually updates the counter input in the Counter component:
this.counter$ = this.ngRedux
    .select(state => state.counter)

This should automatically trigger change detection, so there should be no need to trigger it manually.
In any case, I added a ngRedux.subscribe() call to my code in order to replicate the counter example. While I still don't see my select() subscriptions firing, I do see this ngRedux subscription firing whenever the store changes. That doesn't help me though because it's not easy to figure out what in the store changed.

Thanks, @e-schultz. Also, please feel free to provide comments/feedback on my approach.

@nareshbhatia taking a quick look into things. You're right - in the ngRedux.subscribe(()=>) - there shouldn't be a need for the developer to have to worry about applicationRef.tick() - I'll try and look into the cause of that.
For the other issues - the structure of your AppState is incorrect, when using combineReducers, the name of the reducer becomes a key in the state.
Your AppState should actually be:
import { Repo } from '../models/repo.model';

export class AppState {
    githubReducer: {
        orgName: string;
        errorMessage: string;
        repos: Repo[];
    }
}

export const initialState: AppState = {
    githubReducer: {
        orgName: null,
        errorMessage: null,
        repos:[]
    }
};

Then in your .select statements, you would have
 this.orgNameSubscription = this.ngRedux
            .select<string>(state =>  state.githubReducer.orgName)
// instead of
 this.orgNameSubscription = this.ngRedux
            .select<string>(state =>  state.orgName)

Submitted a PR against your repo showing the fixes - although will still need to check into the .subscribe needing an appref.tick()

@e-schultz - thanks so much for your help. I merged in your PR.
It doesn't look like applicationRef.tick() is really needed. I took it out and everything is working fine. I addition:

I fixed some issues with http error handling.
I now provide the initialState to the createStore() call. This prevents store subscribers receiving undefined values in the beginning.

Looks like the app is good to go as another example for ng2-redux!
Thanks again for your help.

@e-schultz @nareshbhatia the ApplicationRef.tick() is needed for redux devtools to work - changes to the store from redux devtools are made outside the angular zone.
Perhaps we can change the code to only turn it on if window.devToolsExtension is truthy.

@SethDavenport, thanks for the clarification. FYI, I did not play with devToolsExtension because I was getting some kind of an error from TypeScript. Now that everything else is working, may be I will give it a shot.
Also to note, I hacked index.html as follows to work around Redux's need to have a global variable called process:
process = {
    env: {
        NODE_ENV: 'development'
    }
}

I think the counter example includes other dependences to keep Redux happy, whereas I decided to keep the number of dependencies to a minimum. In fact, I see that the counter example depends on React - any idea why?

@nareshbhatia the process thing is likely related to #105 which should be fixed in the next patch release.
As for the react dependency in the example app, I believe this is left over from when we brought in the dev tools directly instead of using the Chrome extension. I'll remove it.
Finally, coming back to the appref.tick() - this will no longer be needed even for devtools in the upcoming 3.0 - we handle it internally.

Awesome! Thanks for the update.

I just created a more ambitious project with ng2-redux: https://github.com/sapientglobalmarkets/staffer. Also used angular-cli and angular-material2 to show how all these play well together. Would you like to link to this project in your README? It will be a great help for people ramping up on ng2-redux. As always, feedback and PRs welcome!

I'm not sure whether or not you've posted details in the documentation about how to structure the state when using the combineReducers function. If that is not accounted for it would be good to include that in an obvious way in usage examples. I stumbled on this article to solve a similar issue. We found it best to structure the app similar to what  @nareshbhatia was doing. The reducer as the key was the fundamental piece we missed.

authors: Gavintek SethDavenport e-schultz nareshbhatia

repo: angular-redux/store

license: mit

license_source: bigquery


text:
Tooltip for minValue and maxValue

I have read the docu and i havent found info about this ... So I think this functionality is not present ...
Any idea to add it?
I probe to use angular-material tooltips, but when moving the slice the tooltip does not move
angularjs-slider: ^6.4.0
Custom template:

           {{ t.value }}           {{ t.legend }}

It depends on how the tooltip is rendered. It needs to be inside the handle element so it follows it.

authors: ValentinH iTz-Maleficas

repo: angular-slider/angularjs-slider


text:
Angular translate gets resource string from .json file even if file is deleted.

###Angular translate gets resource string from .json file even if file is deleted.
Your environment

version of angular-translate -- v2.11.1 - 2016-07-17
version of angular -- v1.5.7
which browser and its version -- IE11 (11.0.9600.18282)

Steps to reproduce
i am using i18n/.json files for my translations.
if i select any language and run application, angular translation works properly and display strings according to selected language.
But, if i delete .json file of selected language and restart browser, it still works and show translated strings even if i deleted file from i18n folder.
If i press refresh/F5 browser then only it fails and shows strings of fallback language.
Is there any cache involved in this?
Expected behaviour
It should not show translated strings if i delete .json file from i18n folder
Actual behaviour
It shows translation even if corresponding .josn file of selected language is deleted.

We do not use a cache directly, however, you can provide additional configuration options for $http if you want (https://github.com/angular-translate/angular-translate/blob/2.12.0/src/service/loader-static-files.js#L47).
This should cover all options you can make in AngularJS for XHR. If this does not help, it is a server/app issue in general.

Thanks for your reply
This Post Disable Cache helped me, Not it is working fine.

repo: angular-translate/angular-translate


text:
Improved "Possibly unhandled rejection" error handling for AngularJS 1.6+

Subject of the issue
This is more of an enhancement request than a bug report.
Since AngularJS 1.6 rejected promises that are not handled by a catch block results in an exception with the message "Possibly unhandled rejection".
If I use the $translate service to get a translation by a dynamic id it gets very difficult to track down the source of the problem if undefined is passed as translationId.
Your environment

version of angular-translate: 2.18.1
version of angular: 1.7.2
which browser and its version: Google Chrome 69 on Windows 10

Steps to reproduce
http://next.plnkr.co/edit/nEpRbSKThpDXq3Qs?open=lib%2Fscript.js&deferRun=1
See the exceptions in the console.
Expected behaviour
More informative error handling. Stack trace would be nice.
Actual behaviour
The translationId is passed to the angular's exceptionHandler.

undefined as a translation id (aka input argument) should be checked right in the service, before even requesting the internal stack.
So I think returning the rejection asap is far besser. Maybe you want to make the PR?

How does "returning the rejection" give more information about where the invalid argument was passed? Not questioning at all I am just not very familiar with the source code.

Well, if a function is returning a promise, it would be a surprise handling for exceptions also. That's why Promise.reject() exist.

@knalli It took a little over a year but I have submitted PR #1891. Not sure if it is what you meant but it should pass unit tests.

good request.. .closed w/o a solution

@xhlatky What exactly is the "rude way" here?

no valid explanation for me
Dňa št 12. 11. 2020, 16:08 Jan Philipp notifications@github.com
napísal(a):

@xhlatky https://github.com/xhlatky What exactly is the "rude way" here?
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
https://github.com/angular-translate/angular-translate/issues/1860#issuecomment-726135965,
or unsubscribe
https://github.com/notifications/unsubscribe-auth/AD5CAMIBE7CJC2ZOCCCCCI3SPP253ANCNFSM4FY6H77Q
.

authors: gabbsmo knalli xhlatky


text:
datepicker cannot validate using the W3C validator (339 validation errors)

Bug description:
The angular-ui datepicker does not validate very well, because no data- prefix is appended to to the ng or uib attributes.  I get a total of 339 validation errors on the datepicker alone, but i suspect that this is a general problem to angular-ui.
Link to minimally-working plunker that reproduces the issue:
https://plnkr.co/edit/RFAxI1kaF1k8TfSSuMgM?p=preview
(Click the validate button)
Version of Angular, UIBS, and Bootstrap
Angular: 1.5.6
UIBS: 1.3.3
Bootstrap: 3.3.6

Closing as won't support - the W3C validator is not something most frontend developers cares about, it does some meaningless checks such as the data- prefix.

authors: moanrose wesleycho

repo: angular-ui/bootstrap


text:
docs: ng-repeat readme addition

Add explanation of how to use ui-layout with a repeat correctly

Landed in 0d2a5502ebed9a61df2ed80eb04110443bcba29a

repo: angular-ui/ui-layout


text:
TypeError: Illegal constructor

TypeError: Illegal constructor
  at triggerChangeEvent(~/angular-ui-mask/dist/mask.js:489:0)
  at HTMLInputElement.blurHandler(~/angular-ui-mask/dist/mask.js:477:0)
  at HTMLInputElement.jQuery.event.dispatch(~/jquery/dist/jquery.js:5087:0)
  at HTMLInputElement.elemData.handle(~/jquery/dist/jquery.js:4895:0)
  at HTMLInputElement.wrapped(~/raven-js/src/raven.js:265:0)

Happens on this line https://github.com/angular-ui/ui-mask/blob/master/src/mask.js#L479 on mobile devices with android 4.*  ( maybe other too, not sure)

Hmmm that is odd but it looks like you are running into this kind of an issue.
Thanks for pointing this out.

Im just collecting a js errors into sentry using raven.js and noticed this error to be happening on android 4.x with android build in browser, dont seem to be  happen for anyone else, at least in my userbase

1.8.7 should have the fix for this if you want to try it out. I was unable to recreate the issue myself.

repo: angular-ui/ui-mask


text:
Handling DOT character in params

Hello I have a problem that I tried to solve by going to StackOverflow but with no luck.
I am currently trying to login with Google I've set the route this way
      .state('/developer/auth/google', {
        url: '/developer/auth/google?code',
        templateUrl: 'views/developer/auth/google.html',
        controller: 'DeveloperAuthGoogleCtrl',
        resolve: {
          code: function($stateParams) {
            return $stateParams.code;
          }
        }
      })

And this is the url that is returned
http://localhost:9000/developer/auth/google?code=4/SgzNx1eEC2d5MhlYg5QbwWPLas-65P78SNMiAxFqUWc.UjzcCfSjj6AdoiIBeO6P2m8CFLl8kwI

it breaks the angular routing and gives me the typical server error
Cannot GET /developer/auth/google?code=4/SgzNx1eEC2d5MhlYg5QbwWPLas-65P78SNMiAxFqUWc.UjzcCfSjj6AdoiIBeO6P2m8CFLl8kwI

However when I remove the dot from the returned token it works just fine

@zyadsherif any idea if you figured out how to fix this for the grunt server? I can confirm that with a . in a query param grunt is not forwarding the request to the angular app.

authors: mkhatib zyadsherif

repo: angular-ui/ui-router


text:
Applying ui-mask on multiple fields on a form sets focus on the last masked input box automatically

This is a weird issue I came across and I wanted to see if I can do something so it does not set the focus on any particular input box.
I have multiple date inputs on a form and I am using ui-mask to set a date mask. Let's say I have 4 input boxes with the mask on them. Once the form renders the focus is set on the 4th (last) input box which has the date mask on it.
Is there any place I can disable that?

Any news about this ? I got the same issue.

No, I found no resolution to this. So I am just going to let it be for now.

+1 happens in IE11

I have a similar issue where the UI-Masked field in my form is being focused automatically. This only happens in IE.

Same issue here!

Same issue here :(

Same happens to me IE 10 and IE 11

I fixed this issue by changing the source code in the following manner. I don't have time at the moment if nobody fixes it by then, I will send a pull request:
   function getCaretPosition(input){
        if (!input) return 0;
        if (input.selectionStart !== undefined) {
          return input.selectionStart;
        } else if (document.selection) {
            if ($(input).is(':focus')) {
	            // Curse you IE
	            input.focus();
	            var selection = document.selection.createRange();
	            selection.moveStart('character', input.value ? -input.value.length : 0);
	            return selection.text.length;
            }
            return 0;
        }
        return 0;
      }

      function setCaretPosition(input, pos){
        if (!input) return 0;
        if (input.offsetWidth === 0 || input.offsetHeight === 0) {
          return; // Input's hidden
        }
        if (input.setSelectionRange) {
            if ($(input).is(':focus')) {
	            input.focus();
	            input.setSelectionRange(pos, pos);
            }
        }
        else if (input.createTextRange) {
        	// Curse you IE
            if ($(input).is(':focus')) {
	            var range = input.createTextRange();
	            range.collapse(true);
	            range.moveEnd('character', pos);
	            range.moveStart('character', pos);
	            range.select();
            }
        }
      }

I am having this same problem. Please send that pull request :)

I am having this is problem too.
I tested this fix Applying ui-mask on multiple fields on a form sets focus …  on IE 11. Fix is working OK.

closed by #415

This fix does not work on Chrome it randomly lose focus while typing. Maybe if you have another directive attached with ui-mask.

authors: CodeByChoice PowerKiKi asadighi bhushangahire fallXone gvlekke julienmartin k-makarov kellyprankin megion mveenstra

repo: angular-ui/ui-utils


text:
Lazy Routes Fail To Load, but Only with ng serve -prod

Please provide us with the following information:

OS?  Windows 7, 8 or 10. Linux (which distribution). Mac OSX (Yosemite? El Capitan?)

Windows 10

Versions:

angular-cli: 1.0.0-beta.6
node: 6.1.0
os: win32 x64

Repro steps. Was this an app that wasn't created using the CLI? What change did you
do on your code? etc.

Fresh install of a new project, when using version 3.0.0-alpha.6 of @angular/router, lazy routes are not able to load when using "ng serve -prod". The normal routes work fine under prod mode, and both lazy routes and normal routes work fine with just "ng serve"

The log given by the failure. Normally this include a stack trace and some
more information.

 EXCEPTION: Error: Uncaught (in promise): Error: Error: XHR error (404 Not Found) loading http://127.0.0.1:4200/app/lazy/lazy.js 	    at XMLHttpRequest.wrapFn [as _onreadystatechange] (http://127.0.0.1:4200/vendor/zone.js/dist/zone.js:769:30) 	    at ZoneDelegate.invokeTask (http://127.0.0.1:4200/vendor/zone.js/dist/zone.js:356:38) 	    at Object.onInvokeTask (http://127.0.0.1:4200/main.js:23:29322) 	    at ZoneDelegate.invokeTask (http://127.0.0.1:4200/vendor/zone.js/dist/zone.js:355:43) 	    at Zone.runTask (http://127.0.0.1:4200/vendor/zone.js/dist/zone.js:256:48) 	    at XMLHttpRequest.ZoneTask.invoke (http://127.0.0.1:4200/vendor/zone.js/dist/zone.js:423:34) 	Error loading http://127.0.0.1:4200/app/lazy/lazy.js zone.js:461 Unhandled Promise rejection: Error: XHR error (404 Not Found) loading http://127.0.0.1:4200/app/lazy/lazy.js 	    at XMLHttpRequest.wrapFn [as _onreadystatechange] (http://127.0.0.1:4200/vendor/zone.js/dist/zone.js:769:30) 	    at ZoneDelegate.invokeTask (http://127.0.0.1:4200/vendor/zone.js/dist/zone.js:356:38) 	    at Object.onInvokeTask (http://127.0.0.1:4200/main.js:23:29322) 	    at ZoneDelegate.invokeTask (http://127.0.0.1:4200/vendor/zone.js/dist/zone.js:355:43) 	    at Zone.runTask (http://127.0.0.1:4200/vendor/zone.js/dist/zone.js:256:48) 	    at XMLHttpRequest.ZoneTask.invoke (http://127.0.0.1:4200/vendor/zone.js/dist/zone.js:423:34) 	Error loading http://127.0.0.1:4200/app/lazy/lazy.js ; Zone: angular ; Task: Promise.then ; Value: Error: Error: XHR error (404 Not Found) loading http://127.0.0.1:4200/app/lazy/lazy.js(…)consoleError @ zone.js:461_loop_1 @ zone.js:490drainMicroTaskQueue @ zone.js:494ZoneTask.invoke @ zone.js:426 zone.js:463 Error: Uncaught (in promise): Error: Error: XHR error (404 Not Found) loading http://127.0.0.1:4200/app/lazy/lazy.js(…)

Closed as obsolete following #1455. We are working on updating routes though, and the async scenario is one of our top priority following the build system change.

authors: antonyRoberts filipesilva

repo: angular/angular-cli


text:
Unexpected EOF error even after clean node.js re-install

I got problem when installing angular-cli
npm install -g angular-cli
log below.
but I've successfully install other, such ionic
npm install -g ionic@beta
Solution I've tried:
npm cache clean
npm uninstall -g angular-cli
run command in administrator
delete %NPMPATH%/node_modules
update npm & node.js
clean re-install node.js
some other solution that I forgot
when trying above solution, npm give different error
sometimes its error: z_buff_...something
or unpack tar error
or else
(sorry no log for other error, since I've done a clean re-install)
any suggestion?
thanks

Please provide us with the following information:

OS?  Windows 7, 8 or 10. Linux (which distribution). Mac OSX (Yosemite? El Capitan?)
windows 8

Versions. Please run ng --version. If there's nothing outputted, please
node v4.4.6, no ng --version since its installation fail

Repro steps. Was this an app that wasn't created using the CLI? What change did you
do on your code? etc.

The log given by the failure. Normally this include a stack trace and some
more information.
86669 verbose fstream_class Extract 86670 verbose stack Error: unexpected eof 86670 verbose stack     at decorate (C:\Users\Gogon\AppData\Roaming\npm\node_modules\npm\node_modules\fstream\lib\abstract.js:67:36) 86670 verbose stack     at Extract.Abstract.error (C:\Users\Gogon\AppData\Roaming\npm\node_modules\npm\node_modules\fstream\lib\abstract.js:61:12) 86670 verbose stack     at Extract._streamEnd (C:\Users\Gogon\AppData\Roaming\npm\node_modules\npm\node_modules\tar\lib\extract.js:91:35) 86670 verbose stack     at BlockStream.<anonymous> (C:\Users\Gogon\AppData\Roaming\npm\node_modules\npm\node_modules\tar\lib\parse.js:51:8) 86670 verbose stack     at emitNone (events.js:67:13) 86670 verbose stack     at BlockStream.emit (events.js:166:7) 86670 verbose stack     at BlockStream._emitChunk (C:\Users\Gogon\AppData\Roaming\npm\node_modules\npm\node_modules\tar\node_modules\block-stream\block-stream.js:203:10) 86670 verbose stack     at BlockStream.resume (C:\Users\Gogon\AppData\Roaming\npm\node_modules\npm\node_modules\tar\node_modules\block-stream\block-stream.js:58:15) 86670 verbose stack     at Extract.Reader.resume (C:\Users\Gogon\AppData\Roaming\npm\node_modules\npm\node_modules\fstream\lib\reader.js:249:34) 86670 verbose stack     at Entry.<anonymous> (C:\Users\Gogon\AppData\Roaming\npm\node_modules\npm\node_modules\tar\lib\parse.js:261:8) 86671 verbose fstream_stack Extract._streamEnd (C:\Users\Gogon\AppData\Roaming\npm\node_modules\npm\node_modules\tar\lib\extract.js:91:35) 86671 verbose fstream_stack BlockStream.<anonymous> (C:\Users\Gogon\AppData\Roaming\npm\node_modules\npm\node_modules\tar\lib\parse.js:51:8) 86671 verbose fstream_stack emitNone (events.js:67:13) 86671 verbose fstream_stack BlockStream.emit (events.js:166:7) 86671 verbose fstream_stack BlockStream._emitChunk (C:\Users\Gogon\AppData\Roaming\npm\node_modules\npm\node_modules\tar\node_modules\block-stream\block-stream.js:203:10) 86671 verbose fstream_stack BlockStream.resume (C:\Users\Gogon\AppData\Roaming\npm\node_modules\npm\node_modules\tar\node_modules\block-stream\block-stream.js:58:15) 86671 verbose fstream_stack Extract.Reader.resume (C:\Users\Gogon\AppData\Roaming\npm\node_modules\npm\node_modules\fstream\lib\reader.js:249:34) 86671 verbose fstream_stack Entry.<anonymous> (C:\Users\Gogon\AppData\Roaming\npm\node_modules\npm\node_modules\tar\lib\parse.js:261:8) 86672 verbose cwd C:\WINDOWS\system32 86673 error Windows_NT 6.3.9600 86674 error argv "C:\\Program Files\\nodejs\\node.exe" "C:\\Users\\Gogon\\AppData\\Roaming\\npm\\node_modules\\npm\\bin\\npm-cli.js" "install" "-g" "angular-cli" 86675 error node v4.4.6 86676 error npm  v3.10.2 86677 error unexpected eof

Mention any other details that might be useful.

Thanks! We'll be in touch soon.

after npm uninstall -g angular-cli
and 'npm cache clean`
now angular-cli successfully installed,
it fail before. maybe it work after clean re-install node.js


text:
TypeError: Cannot read properties of undefined (reading '_applyBodyHighContrastModeCssClasses')

facing same issue as in https://github.com/angular/components/issues/22250
and https://github.com/angular/components/issues/24185
Angular CLI: 11.1.0
Node: 16.15.1
OS: darwin x64
Angular: 11.2.14
... animations, core
Ivy Workspace: Yes
Package                             Version
@angular-devkit/architect           0.1101.2
@angular-devkit/build-angular       0.1101.2
@angular-devkit/core                11.1.2
@angular-devkit/schematics          11.1.0 (cli-only)
@angular/cdk                        10.2.7
@angular/common                     11.1.2
@angular/compiler                   11.1.2
@angular/compiler-cli               11.1.2
@angular/forms                      11.1.2
@angular/http                       7.2.16
@angular/language-service           11.1.2
@angular/material                   10.2.7
@angular/platform-browser           11.1.2
@angular/platform-browser-dynamic   11.1.2
@angular/router                     11.1.2
@schematics/angular                 11.1.0 (cli-only)
@schematics/update                  0.1101.0 (cli-only)
rxjs                                6.6.7
typescript                          4.1.6
error:
main-es2015.86f82ddd897ee3dcee6a.js:1 TypeError: Cannot read properties of undefined (reading '_applyBodyHighContrastModeCssClasses')
at new t (main-es2015.86f82ddd897ee3dcee6a.js:1:2465560)
at Object.a [as factory] (main-es2015.86f82ddd897ee3dcee6a.js:1:1977349)
at Zs.hydrate (main-es2015.86f82ddd897ee3dcee6a.js:1:1977894)
at Zs.get (main-es2015.86f82ddd897ee3dcee6a.js:1:1975800)
at main-es2015.86f82ddd897ee3dcee6a.js:1:1976662
at Set.forEach ()
at Zs._resolveInjectorDefTypes (main-es2015.86f82ddd897ee3dcee6a.js:1:1976646)
at new Fl (main-es2015.86f82ddd897ee3dcee6a.js:1:2018220)
at Ll.create (main-es2015.86f82ddd897ee3dcee6a.js:1:2018916)
at main-es2015.86f82ddd897ee3dcee6a.js:1:2036511

Duplicate of https://github.com/angular/components/issues/22250#issuecomment-831351491

Hi @alan-agius4 , I have mentioned that this issue is sam as above two issues, but i do not see any version mismatch.

Your material and cdk packages are version 10 while I’m Angular framework is on 11.
Important to note that Angular 11 is not longer support, see: https://angular.io/guide/releases#support-policy-and-schedule


text:
ng init cannot find @angular/core after update

Please provide us with the following information:

OS?

Windows 10

Versions.

1.0.0-beta.16

Repro steps.

Update the angular-cli from 1.0.0-beta.15 to 1.0.0-beta.16 following the update procedure in README.md

The log given by the failure.
c:\Users\f.dehopre\devs\RnD\angular2\demo-app\angular2>ng init
Cannot find module '@angular/core'
Error: Cannot find module '@angular/core'
    at Function.Module._resolveFilename (module.js:440:15)
    at Function.Module._load (module.js:388:25)
    at Module.require (module.js:468:17)
    at require (internal/module.js:20:19)
    at Object.<anonymous> (C:\Users\f.dehopre\devs\RnD\angular2\demo-app\angular2\node_modules\@ngtools\webpack\src\plugin.js:4:14)
    at Module._compile (module.js:541:32)
    at Object.Module._extensions..js (module.js:550:10)
    at Module.load (module.js:458:32)
    at tryModuleLoad (module.js:417:12)
    at Function.Module._load (module.js:409:3)
    at Module.require (module.js:468:17)
    at require (internal/module.js:20:19)
    at Object.<anonymous> (C:\Users\f.dehopre\devs\RnD\angular2\demo-app\angular2\node_modules\@ngtools\webpack\src\index.js:6:10)
    at Module._compile (module.js:541:32)
    at Object.Module._extensions..js (module.js:550:10)
    at Module.load (module.js:458:32)
    at tryModuleLoad (module.js:417:12)
    at Function.Module._load (module.js:409:3)
    at Module.require (module.js:468:17)
    at require (internal/module.js:20:19)
    at Object.<anonymous> (C:\Users\f.dehopre\devs\RnD\angular2\demo-app\angular2\node_modules\angular-cli\models\webpack-build-typescript.js:5:17)
    at Module._compile (module.js:541:32)
    at Object.Module._extensions..js (module.js:550:10)
    at Module.load (module.js:458:32)
    at tryModuleLoad (module.js:417:12)
    at Function.Module._load (module.js:409:3)
    at Module.require (module.js:468:17)
    at require (internal/module.js:20:19)
    at Object.<anonymous> (C:\Users\f.dehopre\devs\RnD\angular2\demo-app\angular2\node_modules\angular-cli\models\webpack-config.js:2:34)
    at Module._compile (module.js:541:32)
    at Object.Module._extensions..js (module.js:550:10)
    at Module.load (module.js:458:32)
    at tryModuleLoad (module.js:417:12)
    at Function.Module._load (module.js:409:3)
    at Module.require (module.js:468:17)
    at require (internal/module.js:20:19)
    at Object.<anonymous> (C:\Users\f.dehopre\devs\RnD\angular2\demo-app\angular2\node_modules\angular-cli\tasks\build-webpack.js:6:24)
    at Module._compile (module.js:541:32)
    at Object.Module._extensions..js (module.js:550:10)
    at Module.load (module.js:458:32)
    at tryModuleLoad (module.js:417:12)
    at Function.Module._load (module.js:409:3)
    at Module.require (module.js:468:17)
    at require (internal/module.js:20:19)
    at Object.<anonymous> (C:\Users\f.dehopre\devs\RnD\angular2\demo-app\angular2\node_modules\angular-cli\commands\build.js:3:23)
    at Module._compile (module.js:541:32)
    at Object.Module._extensions..js (module.js:550:10)
    at Module.load (module.js:458:32)
    at tryModuleLoad (module.js:417:12)
    at Function.Module._load (module.js:409:3)
    at Module.require (module.js:468:17)
    at require (internal/module.js:20:19)
    at Class.module.exports.includedCommands (C:\Users\f.dehopre\devs\RnD\angular2\demo-app\angular2\node_modules\angular-cli\addon\index.js:20:16)
    at C:\Users\f.dehopre\devs\RnD\angular2\demo-app\angular2\node_modules\angular-cli\lib\models\project.js:392:61
    at Array.forEach (native)
    at Project.addonCommands (C:\Users\f.dehopre\devs\RnD\angular2\demo-app\angular2\node_modules\angular-cli\lib\models\project.js:391:15)
    at Project.eachAddonCommand (C:\Users\f.dehopre\devs\RnD\angular2\demo-app\angular2\node_modules\angular-cli\lib\models\project.js:426:30)
    at module.exports (C:\Users\f.dehopre\devs\RnD\angular2\demo-app\angular2\node_modules\angular-cli\lib\cli\lookup-command.js:33:13)
    at CLI.<anonymous> (C:\Users\f.dehopre\devs\RnD\angular2\demo-app\angular2\node_modules\angular-cli\lib\cli\cli.js:34:26)
    at tryCatch (C:\Users\f.dehopre\devs\RnD\angular2\demo-app\angular2\node_modules\rsvp\dist\rsvp.js:538:12)
    at invokeCallback (C:\Users\f.dehopre\devs\RnD\angular2\demo-app\angular2\node_modules\rsvp\dist\rsvp.js:553:13)
    at publish (C:\Users\f.dehopre\devs\RnD\angular2\demo-app\angular2\node_modules\rsvp\dist\rsvp.js:521:7)
    at flush (C:\Users\f.dehopre\devs\RnD\angular2\demo-app\angular2\node_modules\rsvp\dist\rsvp.js:2370:5)
    at _combinedTickCallback (internal/process/next_tick.js:67:7)
    at process._tickCallback (internal/process/next_tick.js:98:9)

:+1: I am experiencing the same issue on Ubuntu Linux 16.04

Same issue on OS X 10.11.6

Had the same, resolved with:
npm install

yep same issue

@Bulan npm install is a temporary workaround. ng init should work without installing npm packages manually as previous versions did.

I just want to add that performing ng init after npm install does not provide a list of diffs to the user. Angular-cli simply tells you:

It seems like you're using a project generated using an old version of the Angular CLI.
The latest CLI now uses webpack and includes a lot of improvements, include a simpler
workflow, a faster build and smaller bundles.

To get more info, including a step-by-step guide to upgrade the CLI, follow this link:
https://github.com/angular/angular-cli/wiki/Upgrading-from-Beta.10-to-Beta.12

Is this a bug that needs to be fixed? If so when will it be fixed?

@FabienDehopre just to confirm, did you follow the whole procedure as indicated in https://github.com/angular/angular-cli#updating-angular-cli, including deleting node_modules and doing npm install --save-dev angular-cli@latest?
npm uninstall -g angular-cli
npm cache clean
npm install -g angular-cli@latest
rm -rf node_modules dist tmp
npm install --save-dev angular-cli@latest
ng init

Hi Filipe,
yes I did all of that and then got the error message on ng init.
Regards,
------ Original Message ------
From: "Filipe Silva" notifications@github.com
To: "angular/angular-cli" angular-cli@noreply.github.com
Cc: "norricorp" john@norricorp.f9.co.uk; "Manual"
manual@noreply.github.com
Sent: 09/10/2016 01:07:22
Subject: Re: [angular/angular-cli] ng init cannot find @angular/core
after update (#2410)

@FabienDehopre just to confirm, did you follow the whole procedure as
indicated in
https://github.com/angular/angular-cli#updating-angular-cli, including
deleting node_modules and doing npm install --save-dev
angular-cli@latest?
npm uninstall -g angular-cli npm cache clean npm install -g
angular-cli@latest rm -rf node_modules dist tmp npm install --save-dev
angular-cli@latest ng init
—
You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub, or mute the thread.

@filipesilva yes, I did follow the whole update procedure. And I succeed to reproduce this issue on another project.

I have the same issue when updating from .16 to .17 and yes I followed the update procedure.
angular-cli: 1.0.0-beta.17
node: 6.7.0
os: win32 x64

Ok, just wanted to make sure since I'm having trouble reproducing this. This is what I did:
cd beta16-project # I keep a few versions around to test stuff
rm -rf node_modules dist tmp
npm install --save-dev angular-cli@latest
ng init

And just got the normal ng init output:
kamik@T460p MINGW64 /D/sandbox/beta16-project (master)
$ ng init
installing ng2
? Overwrite .editorconfig? (Yndh)

I don't understand how it's possible to get a Error: Cannot find module '@angular/core' error on at Object.<anonymous> (C:\Users\f.dehopre\devs\RnD\angular2\demo-app\angular2\node_modules\@ngtools\webpack\src\plugin.js:4:14) since all project dependencies should have been reinstalled on npm install --save-dev angular-cli@latest.
Are you maybe using a linked global install?
I'm sorry, I'm at a loss here :/

@filipesilva start with a beta 15 project and see maybe?

@Bulan for this scenario, there should be no difference between a beta.15 and a beta.17 project once you delete node_modules and the global CLI is at beta.17. Obviously there's something wrong though, so I'm asking for help.
Now I can spend 2 hours trying to repro this issue, which already has a workaround and doesn't seem to have a very big impact, trying every combination until I hit the bug. Or I can spend that time triaging and solving other issues and wait for a complete repro step that I can follow.
This repo generate a LOT of issues and it takes a long time going through all of them, so to optimize my time I tend to favor issues that I can quickly repro and debug.

Good call, kill the big bugs first!

See http://stackoverflow.com/questions/39780833/error-cannot-find-module-angular-core

@JanStureNielsen This is exactly that issue. I forgot to mention that I was using angular 2.0.1 instead of the 2.0.0 that angular-cli install by default.

@JanStureNielsen
This is the issue. I also upgraded angular to 2.0.1 and got this issue with ng init when updatet to beta16 and now also to beta17.

Great job finding the problem @JanStureNielsen! We now have either ^ or ~ for anything on @angular/* that is stable, so this shouldn't happen on upgrades again.

I get similar errors after attempting to follow instructions to update to
the latest version of angular-cli. You mentioned a workaround for this
...what would that be ?
Thanks
Cannot find module '@angular/core'
Error: Cannot find module '@angular/core'
at Function.Module._resolveFilename (module.js:455:15)
at Function.Module._load (module.js:403:25)
at Module.require (module.js:483:17)
at require (internal/module.js:20:19)
at Object.
(/Users/ageorge/HTML5/angular-tutorial/toh/node_modules/@ngtools/webpack/src/plugin.js:5:14)
at Module._compile (module.js:556:32)
at Object.Module._extensions..js (module.js:565:10)
at Module.load (module.js:473:32)
at tryModuleLoad (module.js:432:12)npm WARN
@angular/platform-server@2.1.0
On Mon, Oct 10, 2016 at 1:37 PM, Filipe Silva notifications@github.com
wrote:

@Bulan https://github.com/Bulan for this scenario, there should be no
difference between a beta.15 and a beta.17 project once you delete
node_modules and the global CLI is at beta.17. Obviously there's
something wrong though, so I'm asking for help.
Now I can spend 2 hours trying to repro this issue, which already has a
workaround and doesn't seem to have a very big impact, trying every
combination until I hit the bug. Or I can spend that time triaging and
solving other issues and wait for a complete repro step that I can follow.
This repo generate a LOT of issues and it takes a long time going through
all of them, so to optimize my time I tend to favor issues that I can
quickly repro and debug.
—
You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub
https://github.com/angular/angular-cli/issues/2410#issuecomment-252688211,
or mute the thread
https://github.com/notifications/unsubscribe-auth/AICCw9atXkH_5zCxI3Z-co2ZkYaFcnLjks5qynfRgaJpZM4KJrP6
.

@viewstack -- see http://stackoverflow.com/questions/39780833/error-cannot-find-module-angular-core

Exactly same issue

@filipesilva I thought this was now supported... but after updating the angular-cli to beta 18, I still have the same issue.
Here is my package.json
{
  "name": "portal",
  "version": "0.0.0",
  "license": "MIT",
  "angular-cli": {},
  "scripts": {
    "start": "ng serve",
    "lint": "tslint \"src/**/*.ts\"",
    "test": "ng test",
    "pree2e": "webdriver-manager update",
    "e2e": "protractor"
  },
  "private": true,
  "dependencies": {
    "@angular/common": "^2.0.0",
    "@angular/compiler": "^2.0.0",
    "@angular/core": "^2.0.0",
    "@angular/forms": "^2.0.0",
    "@angular/http": "^2.0.0",
    "@angular/platform-browser": "^2.0.0",
    "@angular/platform-browser-dynamic": "^2.0.0",
    "@angular/router": "^3.0.0",
    "angular2-jwt": "^0.1.24",
    "angular2-uuid": "^1.1.0",
    "auth0-js": "^7.2.1",
    "bootstrap": "^4.0.0-alpha.5",
    "bootstrap-social": "^5.0.0",
    "core-js": "^2.4.1",
    "font-awesome": "^4.6.3",
    "moment": "^2.15.1",
    "ng2-bootstrap": "^1.1.14",
    "ng2-storever-auth": "^1.0.0-alpha.7",
    "ng2-storever-common": "^1.0.0-alpha.12",
    "rxjs": "5.0.0-beta.12",
    "simple-line-icons": "^2.4.1",
    "ts-helpers": "^1.1.1",
    "zone.js": "^0.6.23"
  },
  "devDependencies": {
    "@types/jasmine": "^2.2.30",
    "@types/node": "^6.0.42",
    "angular-cli": "^1.0.0-beta.18",
    "codelyzer": "~0.0.26",
    "jasmine-core": "2.4.1",
    "jasmine-spec-reporter": "2.5.0",
    "karma": "1.2.0",
    "karma-chrome-launcher": "^2.0.0",
    "karma-cli": "^1.0.1",
    "karma-jasmine": "^1.0.2",
    "karma-remap-istanbul": "^0.2.1",
    "protractor": "4.0.9",
    "ts-node": "1.2.1",
    "tslint": "3.13.0",
    "typescript": "2.0.2"
  }
}

And the stack trace:
Cannot find module '@angular/core'
Error: Cannot find module '@angular/core'
    at Function.Module._resolveFilename (module.js:440:15)
    at Function.Module._load (module.js:388:25)
    at Module.require (module.js:468:17)
    at require (internal/module.js:20:19)
    at Object.<anonymous> (C:\Users\f.dehopre\devs\Portal\frontend\website\node_modules\@ngtools\webpack\src\plugin.js:5:14)
    at Module._compile (module.js:541:32)
    at Object.Module._extensions..js (module.js:550:10)
    at Module.load (module.js:458:32)
    at tryModuleLoad (module.js:417:12)
    at Function.Module._load (module.js:409:3)
    at Module.require (module.js:468:17)
    at require (internal/module.js:20:19)
    at Object.<anonymous> (C:\Users\f.dehopre\devs\Portal\frontend\website\node_modules\@ngtools\webpack\src\index.js:6:10)
    at Module._compile (module.js:541:32)
    at Object.Module._extensions..js (module.js:550:10)
    at Module.load (module.js:458:32)
    at tryModuleLoad (module.js:417:12)
    at Function.Module._load (module.js:409:3)
    at Module.require (module.js:468:17)
    at require (internal/module.js:20:19)
    at Object.<anonymous> (C:\Users\f.dehopre\devs\Portal\frontend\website\node_modules\angular-cli\models\webpack-build-typescript.js:5:17)
    at Module._compile (module.js:541:32)
    at Object.Module._extensions..js (module.js:550:10)
    at Module.load (module.js:458:32)
    at tryModuleLoad (module.js:417:12)
    at Function.Module._load (module.js:409:3)
    at Module.require (module.js:468:17)
    at require (internal/module.js:20:19)
    at Object.<anonymous> (C:\Users\f.dehopre\devs\Portal\frontend\website\node_modules\angular-cli\models\webpack-config.js:2:34)
    at Module._compile (module.js:541:32)
    at Object.Module._extensions..js (module.js:550:10)
    at Module.load (module.js:458:32)
    at tryModuleLoad (module.js:417:12)
    at Function.Module._load (module.js:409:3)
    at Module.require (module.js:468:17)
    at require (internal/module.js:20:19)
    at Object.<anonymous> (C:\Users\f.dehopre\devs\Portal\frontend\website\node_modules\angular-cli\tasks\build-webpack.js:6:24)
    at Module._compile (module.js:541:32)
    at Object.Module._extensions..js (module.js:550:10)
    at Module.load (module.js:458:32)
    at tryModuleLoad (module.js:417:12)
    at Function.Module._load (module.js:409:3)
    at Module.require (module.js:468:17)
    at require (internal/module.js:20:19)
    at Object.<anonymous> (C:\Users\f.dehopre\devs\Portal\frontend\website\node_modules\angular-cli\commands\build.js:3:23)
    at Module._compile (module.js:541:32)
    at Object.Module._extensions..js (module.js:550:10)
    at Module.load (module.js:458:32)
    at tryModuleLoad (module.js:417:12)
    at Function.Module._load (module.js:409:3)
    at Module.require (module.js:468:17)
    at require (internal/module.js:20:19)
    at Class.module.exports.includedCommands (C:\Users\f.dehopre\devs\Portal\frontend\website\node_modules\angular-cli\addon\index.js:21:16)
    at C:\Users\f.dehopre\devs\Portal\frontend\website\node_modules\angular-cli\lib\models\project.js:392:61
    at Array.forEach (native)
    at Project.addonCommands (C:\Users\f.dehopre\devs\Portal\frontend\website\node_modules\angular-cli\lib\models\project.js:391:15)
    at Project.eachAddonCommand (C:\Users\f.dehopre\devs\Portal\frontend\website\node_modules\angular-cli\lib\models\project.js:426:30)
    at module.exports (C:\Users\f.dehopre\devs\Portal\frontend\website\node_modules\angular-cli\lib\cli\lookup-command.js:33:13)
    at CLI.<anonymous> (C:\Users\f.dehopre\devs\Portal\frontend\website\node_modules\angular-cli\lib\cli\cli.js:34:26)
    at tryCatch (C:\Users\f.dehopre\devs\Portal\frontend\website\node_modules\rsvp\dist\rsvp.js:538:12)
    at invokeCallback (C:\Users\f.dehopre\devs\Portal\frontend\website\node_modules\rsvp\dist\rsvp.js:553:13)
    at publish (C:\Users\f.dehopre\devs\Portal\frontend\website\node_modules\rsvp\dist\rsvp.js:521:7)
    at flush (C:\Users\f.dehopre\devs\Portal\frontend\website\node_modules\rsvp\dist\rsvp.js:2373:5)
    at _combinedTickCallback (internal/process/next_tick.js:67:7)
    at process._tickCallback (internal/process/next_tick.js:98:9)

@FabienDehopre I did some more investigation and think I know what's happening now...
Basically, when we do npm install --save-dev angular-cli@latest AND there is a difference in @angular/core versions between your project and angular-cli, we don't get node_modules/@angular/core but rather node_modules/angular-cli/node_modules/@angular/core (notice the nesting).
On the other hand, the new-ish @ngtools/webpack has a peer dependency on @angular/core - which it can't find in the top-level of node_modules/. So ng init fails.
We definitely want @ngtools/webpack to use @angular/core as a peer dependency, to ensure compatibility with the current project.
So the solution here is to update the upgrade instructions and add the extra npm install step, that wasn't needed before but now is due to @ngtools/webpack.
Thank you for the reports and pushing this issue, it was very hard to reproduce due to the @angular/core versions, which didn't always change but were commonly different in projects that were upgraded several times.

npm ERR! Windows_NT 10.0.14393
npm ERR! argv "C:\Program Files\nodejs\node.exe" "C:\Program Files\nodejs\node_modules\npm\bin\npm-cli.js" "cache" "clean"
npm ERR! node v7.1.0
npm ERR! npm  v3.10.9
npm ERR! path C:\Users\TETAY\AppData\Roaming\npm-cache
npm ERR! code EPERM
npm ERR! errno -4048
npm ERR! syscall rmdir
npm ERR! Error: EPERM: operation not permitted, rmdir 'C:\Users\TETAY\AppData\Roaming\npm-cache'
npm ERR!  { Error: EPERM: operation not permitted, rmdir 'C:\Users\TETAY\AppData\Roaming\npm-cache'
npm ERR!   errno: -4048,
npm ERR!   code: 'EPERM',
npm ERR!   syscall: 'rmdir',
npm ERR!   path: 'C:\Users\TETAY\AppData\Roaming\npm-cache' }
npm ERR!
npm ERR! Please try running this command again as root/Administrator.
npm ERR! Please include the following file with any support request:
npm ERR!     D:\2016\Angular-2\npm-debug.log

when i tried npm cache clean the above happens

@PacejetRepository seems like a npm permissions thing. Try doing it again, or doing it as administrator I suppose. If you still have that error, report it to the npm issue tracker at https://github.com/npm/npm/issues.

Same Issue
any idea  to solve the problem?

@hashemnik What version of the CLI are you running?
Noting that the most recent version of the CLI no longer has the ng update/ng init commands available.
(https://github.com/angular/angular-cli/blob/master/CHANGELOG.md#breaking-changes has important updating steps for updating now).

@Equinox
Thanks
I update angular cli and it work fine.

authors: Bulan Equinox FabienDehopre JanStureNielsen PacejetRepository boardman elvirdolic filipesilva hashemnik jcodebrain jfmaeck jjstreet norricorp viewstack xtreemrage


text:
Production Build into Separate Directory

Please provide us with the following information:

OS?  Windows 7, 8 or 10. Linux (which distribution). Mac OSX (Yosemite? El Capitan?)
Windows 10

Versions. Please run ng --version. If there's nothing outputted, please
run in a Terminal:
node --version
And paste the result here.
angular-cli: 1.0.0-beta.2-mobile.3
node: 6.1.0
os: win32 x64

Repro steps. Was this an app that wasn't created using the CLI? What change did you
do on your code? etc.
n/a

The log given by the failure. Normally this include a stack trace and some
more information.
n/a

Mention any other details that might be useful.

Thanks! We'll be in touch soon.
Currently, dev and prod both are built to /dist. I am developing and pushing drafts to a site for teams (multiple geographical locations) to evaluate.

Is it possible to have the dev and prod builds go to separate directories (/dev and /prod)?

I dont think this is currently possible

@rkralston Can you please provide a possible use case for this functionality? It will become quite a bit more complicated when other environments are added beyond the current dev & prod.

The Use Case is in support of UAT: constant builds to a UAT server pushed by git.
I have an online UAT server to which I push stable builds for testing and approval. I am pushing to that server using git to allow for the full functionality of updates and rollbacks.
Currently, I have a prod directory at the same level as dist. My prod directory is ignored. The directory has its own git configuration. I build a prod build and manually copy dist to that prod directory. This gives me full git functionality to incrementally push stable builds to UAT.
It would be nice if ng build -prod could target that build directory saving me a few steps and allowing me to automate pushing stable builds to UAT.

Related https://github.com/angular/angular-cli/issues/682

Workaround in https://github.com/angular/angular-cli/issues/804

Closed in favor of https://github.com/angular/angular-cli/issues/817

authors: Brocco JonCubed filipesilva rkralston


text:
[Feature Request] ng e2e --config-file parameter

It looks like ng test has a --config-file parameter (see #966). A similar option for ng e2e would be cool.
For both commands my use case is a differentiation of tests if they run locally or on a CI server. Locally I would call ng e2e --config-file config/protractor-local.conf.js and the CI server would do a ng e2e --config-file config/protractor-ci.conf.js. Sure, you can build both cases into the same protractor.conf.js, but I'd like to have this separated. The same goes for ng test.

This is now supported via the --config flag.

authors: PhilippSoehnlein filipesilva


text:
'ng serve' and 'ng build' exit in the middle of compilation with no error

Versions
Angular CLI: 1.7.3
Node: 9.4.0
OS: win32 x64
Angular: 5.2.8
... animations, common, compiler, compiler-cli, core, forms
... http, platform-browser, platform-browser-dynamic
... platform-server, router
@angular/cdk: 5.2.4
@angular/cli: 1.7.3
@angular/flex-layout: 5.0.0-beta.13
@angular/material: 5.2.4
@angular-devkit/build-optimizer: 0.4.5
@ngtools/json-schema: 1.2.0
typescript: 2.6.2
webpack: 3.11.0
Windows (10)
Repro steps
-run 'ng serve' or 'ng build'
Observed behavior
-after the command, ang cli starts to compile, but the compilation line stops at something like this:
51% building modules 344/373 modules 29 active ...dules\core-js\modules_object-keys.js
It returns to command prompt, leaving that line visible. It's usually somewhere around 50+%, but the file is different every time.
I sometimes get it to work by installing the very latest typescript (the one not yet supported by angular) and reinstalling node_modules, but this isn't foolproof.
Desired behavior
If there's a problem with compilation in serve or build, there should be an error about what it is.
Mention any other details that might be useful (optional)
This project has worked for months, but suddenly this started.
For example, I just deleted node_modules, ran npm install and then ng serve. It started correctly without errors. I then hit CTRL-C and ran ng serve again. This time it won't run anymore. Some memory issue? Also build succeeds sometimes, but then the second time it doesn't.
In the recent days, I have upgraded to ang-cli 1.7.x (both .0 and current version result the same error). I also upgraded to latest angular recently, but it works sometimes. Installing different versions of typescript makes some change sometimes. Sometimes the build works, then the next time not.
Is there a way to get a more detailed log? Any ideas on how to find out more on this?
Could be related to this - I get the same behaviour from time to time: https://github.com/angular/angular-cli/issues/8422

Seeing same behavior but for me it was only with aot and/or prod and was failing at 14%. Went back down to cli 1.7.2 and it worked, went back up to 1.7.3 and its working so far...
ng serve silently failed but ng build gave me following in log. Perhaps its useful?
0 info it worked if it ends with ok
1 verbose cli [ 'C:\\Program Files\\nodejs\\node.exe',
1 verbose cli   'C:\\Program Files\\nodejs\\node_modules\\npm\\bin\\npm-cli.js',
1 verbose cli   'run',
1 verbose cli   'build-prod' ]
2 info using npm@5.6.0
3 info using node@v9.7.1
4 verbose run-script [ 'prebuild-prod', 'build-prod', 'postbuild-prod' ]
5 info lifecycle abc@0.0.42~prebuild-prod: abc@0.0.42
6 info lifecycle abc@0.0.42~build-prod: abc@0.0.42
7 verbose lifecycle abc@0.0.42~build-prod: unsafe-perm in lifecycle true
8 verbose lifecycle abc@0.0.42~build-prod: PATH: C:\Program Files\nodejs\node_modules\npm\node_modules\npm-lifecycle\node-gyp-bin;D:\dev\abc-app\node_modules\.bin;C:\Program Files (x86)\Intel\Intel(R) Management Engine Components\iCLS\;C:\Program Files\Intel\Intel(R) Management Engine Components\iCLS\;C:\Windows\system32;C:\Windows;C:\Windows\System32\Wbem;C:\Windows\System32\WindowsPowerShell\v1.0\;C:\Program Files (x86)\Intel\Intel(R) Management Engine Components\DAL;C:\Program Files\Intel\Intel(R) Management Engine Components\DAL;C:\Program Files (x86)\Intel\Intel(R) Management Engine Components\IPT;C:\Program Files\Intel\Intel(R) Management Engine Components\IPT;C:\Program Files\nodejs\;C:\Program Files (x86)\Microsoft SQL Server\Client SDK\ODBC\130\Tools\Binn\;C:\Program Files (x86)\Microsoft SQL Server\140\Tools\Binn\;C:\Program Files (x86)\Microsoft SQL Server\140\DTS\Binn\;C:\Program Files (x86)\Microsoft SQL Server\140\Tools\Binn\ManagementStudio\;C:\Program Files\Microsoft SQL Server\Client SDK\ODBC\130\Tools\Binn\;C:\Program Files\Microsoft SQL Server\140\Tools\Binn\;C:\Program Files\Microsoft SQL Server\140\DTS\Binn\;C:\Program Files\Git\cmd;C:\Program Files\PuTTY\;C:\Program Files\TortoiseHg\;C:\Program Files\dotnet\;C:\Program Files\Microsoft SQL Server\130\Tools\Binn\;C:\Users\slubo\AppData\Local\Microsoft\WindowsApps;C:\Users\slubo\AppData\Roaming\npm;C:\Program Files\Microsoft VS Code\bin;C:\Users\slubo\.dotnet\tools
9 verbose lifecycle abc@0.0.42~build-prod: CWD: D:\dev\abc-app
10 silly lifecycle abc@0.0.42~build-prod: Args: [ '/d /s /c',
10 silly lifecycle   'npm version patch && node ./replace.build.js && ng build --prod' ]
11 silly lifecycle abc@0.0.42~build-prod: Returned: code: 3221226356  signal: null
12 info lifecycle abc@0.0.42~build-prod: Failed to exec build-prod script
13 verbose stack Error: abc@0.0.42 build-prod: `npm version patch && node ./replace.build.js && ng build --prod`
13 verbose stack Exit status 3221226356
13 verbose stack     at EventEmitter.<anonymous> (C:\Program Files\nodejs\node_modules\npm\node_modules\npm-lifecycle\index.js:285:16)
13 verbose stack     at EventEmitter.emit (events.js:127:13)
13 verbose stack     at ChildProcess.<anonymous> (C:\Program Files\nodejs\node_modules\npm\node_modules\npm-lifecycle\lib\spawn.js:55:14)
13 verbose stack     at ChildProcess.emit (events.js:127:13)
13 verbose stack     at maybeClose (internal/child_process.js:936:16)
13 verbose stack     at Process.ChildProcess._handle.onexit (internal/child_process.js:220:5)
14 verbose pkgid abc@0.0.42
15 verbose cwd D:\dev\abc-app
16 verbose Windows_NT 10.0.16299
17 verbose argv "C:\\Program Files\\nodejs\\node.exe" "C:\\Program Files\\nodejs\\node_modules\\npm\\bin\\npm-cli.js" "run" "build-prod"
18 verbose node v9.7.1
19 verbose npm  v5.6.0
20 error code ELIFECYCLE
21 error errno 3221226356
22 error abc@0.0.42 build-prod: `npm version patch && node ./replace.build.js && ng build --prod`
22 error Exit status 3221226356
23 error Failed at the abc@0.0.42 build-prod script.

I've been testing around and just now I just hit 'ng serve' repeadetly - first 5 times it exited at around 50% with no error and on 6th attempt it succeeded.

Experiencing the same issue, but in both CLI version 1.7.2 and 1.7.3 (downgraded from 1.7.3).
I feel like this should get a higher prio when noone is able to run any applications properly.
Love to see a fix for this in 1.7.4 soon and maybe a merge to 6.0.0 (if same error occures).

Experiencing same error.WOrks on local Mac but fails on server Ubuntu 18.04.
Your global Angular CLI version (7.0.0-rc.1) is greater than your local
version (6.2.4). The local Angular CLI version is used.
To disable this warning use "ng config -g cli.warnings.versionMismatch false".
92% after chunk asset optimization SourceMapDevToolPlugin vendor.js generate SourceMapKilled

Probably the issue is with the ram or cpu.
The issue is resolved if the ram and cpu are increased, don't have set up to check whether its ram or cpu.
Showing an appropriate error msg would be better.

authors: haricodeharan krilllind lehtiniemi slubowsky


text:
error of npm run protractor

[22:17:08] I/local - Starting selenium standalone server...
[22:17:08] I/launcher - Running 1 instances of WebDriver
[22:17:08] E/launcher - spawn java ENOENT
[22:17:08] E/launcher - Error: spawn java ENOENT
at exports._errnoException (util.js:873:11)
at Process.ChildProcess._handle.onexit (internal/child_process.js:178:32)
at onErrorNT (internal/child_process.js:344:16)
at nextTickCallbackWith2Args (node.js:442:9)
at process._tickCallback (node.js:356:17)
[22:17:08] E/launcher - Process exited with error code 199

Do you have Java installed and on the PATH?

Sorry, I am the beginer of Angular and I have to commit the fact that I do not know too much about this . Actually, I am a Chinese  and my English is not pretty good .

This is not related to AngularJS. Do you have Java installed on your machine?

Sorry, I did not install Java .I had only installed PhP for it .will it influence this project ?

In order to use this project, make sure you follow the instructions in the tutorial.
There you can find detailed info about what you need to install on your machine and how to do it.
Closing, since this is not actionable.

BTW, for general support questions you can ask for help on one of the support channels.

Thank you very much.I will look the guidance booklet carefully when I go back.

authors: gkalpak lazyManLearn

repo: angular/angular-phonecat


text:
Allow search results to be opened in a new tab

Currently, I must left click a search result which opens in the same window.
This detracts from usability when I want to view multiple results as I can only view one result at a time and must repeat my search for each new page I want to view.
Example: When searching ngFor, I'd like to see both the api docs and see where its used the Displaying Data/Template Syntax guides.

With this setback and the fact that the search results cannot display on a separate page, I'm preferring to just use site-specific google searches, e.g.  ngFor site:https://angular.io/docs/ts/.

We are implemeting a new search box. We will have this in mind.

[issue.keep]

@lazaridis-com I am curious, is that an script or something you have? I see you write a lot of stuff between []

@Foxandxss , "[]" marks an "not directly related to the content" (e.g. when you place remarks into someone elses writings. Or in your own writings, it means "not directly related to the writing". So, if my comment contains something off-topic, its placed within "[]". And when its just an "issue.keep", like here, it just helps me to find issues later with a search, to continue.
I saw your "We will have this in mind.", and used "issue.keep", to help me keeping this issue in mind (as its closed now, and thus off my radar).
But you thought is correct, i could(!) be a script/tool, too - but it's not, it's a manual process.

authors: Blasz Foxandxss lazaridis-com


text:
docs(toh/dart): convert toh-4 to Dart

Based on #700 by @kasperpeulen.

Merging now...


text:
checkbox input updates bound variable to boolean instead of value

In regular HTML checkbox inputs send their value when checked.
Angular behaves differently, using only true/false.
<input type="checkbox" name="foo" value="5"/>

Should set foo=5 on check, but it sets to true.

This is already implemented by ng:true-value and ng:false-value directives...

authors: unirgy vojtajina


text:
docs(guide/Component Router): improving comms

What kind of change does this PR introduce? (Bug fix, feature, docs update, ...)
docs update

I agree that the current wording isn't very optimistic, but we shouldn't get people's hopes up about backporting the new router before a decision is made on this.

Landed. Thanks @PeEllAvaj

authors: Narretz PeEllAvaj petebacondarwin


text:
Batarang chrome plugin doesn't work anymore?

Batarang chrome plugin used to work earlier. but now it have stopped working. I see nothing in Batarang dev tools tab. Looking at the plugins review, looks like it is broken for all.

Something really wrong happened with Batarang. It was a nice tool we used in our team.  It seems that manual downgrade will work.

For real. What happened to this? I got upgraded to 0.7.4 and EVERYTHING is gone!!

Same here... What's going on?

@elvenking I tried older version as well. Nothing worked.

+1

@rakeshjuyal what about to try an older version of Chrome ?

0.4.3 Still works somewhat.

@elvenking I tried till 0.5 . It did not work.

+1. Borken :(

+1 All functionality is gone!

Haven't you read this issue.. The author is asking for help
https://github.com/angular/angularjs-batarang/issues/194

There are 800+ of us using Batarang.  If you've enjoyed it's benefits and probably made some money using it over the years, please offer your time.  There are enough +1's and issues posted on the chrome store to know it's busted.
Let's do what the open source world does well, let's pull together and fix this thing for all our benefit.

+1 @levithomason comment

@levithomason I'm agree with you but a roadmap of fixes could be great to begin it ! Because i think that the matter is not just a simple patch of few lines. So if someone can give informations i believe that everyone else can repair this awesome tool :) !

Couple places to start looking would be #194 "I need your help!" and the current PRs.  Seems the goal is to get some e2e tests going, which is a great start.  See #197 "Protractor tests with multiple profiles".
If you know of a bug that needs fixed, have a look at CONTRIBUTING.md.
My hope is that I get some time soon to tracedown the biggest issue I'm having and open a PR for the fix.

0.7.4 not working, nothing shown with the tab, just blank

0.7.4 Not working, using batarang i got an error 'app not defined', please fix it. when i uninstall it my page is working fine.

can't this at least be reverted to the last working version?

Closing this, as "not working" isn't terribly helpful and we don't need a general ticket for that.  It would be awesome if you guys could open new issues with your specific problems (as well as test cases for us to reproduce those issues).

authors: SomeKittens bluedusk chino23 divmgl elvenking hanfeisun jhgg levithomason manikantag photusenigma rakeshjuyal thomaspons vamsivarikuti webmaxru xylax11 zelk

repo: angular/angularjs-batarang


text:
MatSelect opens to the wrong direction

Bug, feature request, or proposal:
Bug
What is the expected behavior?
When enough space exists on the bottom, the mat-select should open downwards.
What is the current behavior?
Opens upwards.
What are the steps to reproduce?
https://in-office.wekudo.com/experience/12/new/time
Click on the number 12 to see the bug.
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?

mat-select tries to position the dropdown on top of the selected option. Since 12 is the last one, the panel has to open upwards. You can disable this behavior through the disableOptionCentering option.

Thank you

@crisbeto is there any plan to make this global by overriding a constant? adding this input to each and every select doesn't seem right.
thank you

authors: NitsanBaleli crisbeto eyalhakim

repo: angular/components


text:
feat(ScrollDispatcher): Register native elements to ScrollDispatcher service

Feature Description
As a developer you should have a chance to register native html elements to ScrollDispatcher service. Currently you can only add it by adding the angular directive which isn't allowed to be done dynamically.
Use Case
We are using AG-Grid and there we have implemented custom cells which include Mat-Autocomplete. The problem is that the grid has a nested box which is scrollable (not the outer container) and soI can't add the 'cdkScrollable' directive.

I took a quick look into this and it seems like adding it will be a breaking change. The problem is that we currently have some methods that return Observable<CdkScrollable> which will have to be changed to Observable<CdkScrollable|HTMLElement> which is going to cause compilation errors.

authors: crisbeto jnenning