Minute gets stuck in time function

Hi everyone
I observed a strange behaviour of the std::time function, that occurs quite rarely. I use to following function to plot a timestamp into a logfile:
  char lBuffer[10U];
  std::time_t lNow = std::time(nullptr);
  struct tm* lNowTM = std::localtime(&lNow);
  std::strftime(lBuffer, sizeof(lBuffer), "%T", lNowTM);

It happens very rarely, that the minute value gets stuck! It simply remains on a certain value, whereas the seconds and the hours keep counting:
I (08:33:29)
I (08:33:35) 2018-04-26T08:33:35+0200 - free heap: 64932 (int), 2830948 (ext)
I (08:33:35)
I (08:33:41) 2018-04-26T08:33:41+0200 - free heap: 64932 (int), 2834228 (ext)
I (08:33:41)
I (08:32:54) 2018-04-26T08:32:54+0200 - free heap: 64932 (int), 2834228 (ext)
I (08:32:54)
I (08:33:00) 2018-04-26T08:33:00+0200 - free heap: 65020 (int), 2834228 (ext)
I (08:33:00)
I (08:33:07) 2018-04-26T08:33:07+0200 - free heap: 65020 (int), 2834228 (ext)
I (08:33:07)
I (08:33:13) 2018-04-26T08:33:13+0200 - free heap: 65020 (int), 2834228 (ext)
I (08:33:13)
I (08:33:19) 2018-04-26T08:33:19+0200 - free heap: 65020 (int), 2834228 (ext)
I (08:33:19)
I (08:33:26) 2018-04-26T08:33:26+0200 - free heap: 65020 (int), 2834228 (ext)
I (08:33:26)
I (08:33:32) 2018-04-26T08:33:32+0200 - free heap: 65020 (int), 2834228 (ext)
I (08:33:32)
I (08:33:38) 2018-04-26T08:33:38+0200 - free heap: 65020 (int), 2834228 (ext)
I (08:33:38)
I (08:32:51) 2018-04-26T08:32:51+0200 - free heap: 65020 (int), 2834228 (ext)
I (08:32:51)
I (08:32:57) 2018-04-26T08:32:57+0200 - free heap: 65020 (int), 2834228 (ext)
I (08:32:57)
I (08:33:03) 2018-04-26T08:33:03+0200 - free heap: 65020 (int), 2834228 (ext)
I (08:33:03)
I (08:33:10) 2018-04-26T08:33:10+0200 - free heap: 65020 (int), 2834228 (ext)
I (08:33:10)
I (08:33:16) 2018-04-26T08:33:16+0200 - free heap: 65020 (int), 2834228 (ext)
I (08:33:16)
I (08:33:22) 2018-04-26T08:33:22+0200 - free heap: 65020 (int), 2834228 (ext)
I (08:33:22)
I (08:33:29) 2018-04-26T08:33:29+0200 - free heap: 65020 (int), 2834228 (ext)
I (08:33:29)
I (08:33:35) 2018-04-26T08:33:35+0200 - free heap: 65020 (int), 2834228 (ext)
I (08:33:35)

It already happend on 3 devices, which were running continuously for about a month. After a restart, everything works fine again. The time is synchronized using the SNTP-Client.
Has someone observed something similar?

Hi @tssh2005, could you please update the issue description to include the information requested in the issue template? Such as, IDF commit ID, what hardware is used, sdkconfig, some description of what happens in the source code (whether are you using deep sleep or light sleep, how are you initializing SNTP, and so on).

Hi, thanks for your reply!
I'm using the pre-release v3.0-rc1 and ESP-WROVER hardware with 8MB flash and 4MB RAM. The system is a webserver, running continuously and waiting for incoming requests. No deep sleep or light sleep.
SNTP inititialization:
bool CEsp32NTPService::start()
{
  if (getenv((char*)"TZ") == NULL)
  {
    setTimezone(TIME_DEFAULT_TIMEZONE_POSIX);
  }
  initializeSntp();
  return (true);
}

void CEsp32NTPService::initializeSntp()
{
  if (sntp_enabled() == true)
  {
    // re-initialize SNTP
    sntp_stop();
  }
  strncpy(smServerName, SNTP_SERVER_NAME, SNTP_SERVER_MAX_LENGTH);
  smServerName[SNTP_SERVER_MAX_LENGTH] = '\0';
  sntp_setoperatingmode(SNTP_OPMODE_POLL);
  sntp_setservername(0, smServerName);
  sntp_init();
}

Interestingly, if the minute is "stuck" for hours, the minute jumps after the following message:
W (7197640) wifi: wait next bcn cnt == 100, beacon_interval: 104448, dtim_period: 1, next_beacon_time:<PHONE_NUMBER>, now :2891653

When does this message appear? Is it possible that the wifi stack has an impact on the time module?
The whole excerpt of the log file:
I (20:57:36) 2018-04-25T20:57:36+0200 - free heap: 66388 (int), 2834092 (ext)
I (20:57:36)
I (20:57:42) 2018-04-25T20:57:42+0200 - free heap: 66388 (int), 2834092 (ext)
I (20:57:42)
I (20:57:48) 2018-04-25T20:57:48+0200 - free heap: 66388 (int), 2834092 (ext)
I (20:57:49)
I (20:57:55) 2018-04-25T20:57:55+0200 - free heap: 66388 (int), 2834092 (ext)
I (20:57:55)
I (20:58:01) 2018-04-25T20:58:01+0200 - free heap: 66388 (int), 2834092 (ext)
I (20:58:01)
I (20:58:07) 2018-04-25T20:58:07+0200 - free heap: 66388 (int), 2834092 (ext)
I (20:58:07)
I (20:58:14) 2018-04-25T20:58:14+0200 - free heap: 66388 (int), 2834092 (ext)
I (20:58:14)
I (20:58:20) 2018-04-25T20:58:20+0200 - free heap: 66388 (int), 2834092 (ext)
I (20:58:20)
I (20:58:26) 2018-04-25T20:58:26+0200 - free heap: 66388 (int), 2834092 (ext)
I (20:58:26)
I (20:57:39) 2018-04-25T20:57:39+0200 - free heap: 66388 (int), 2834092 (ext)
I (20:57:39)
I (20:57:45) 2018-04-25T20:57:45+0200 - free heap: 66388 (int), 2834092 (ext)
I (20:57:45)
W (7197640) wifi: wait next bcn cnt == 100, beacon_interval: 104448, dtim_period: 1, next_beacon_time:<PHONE_NUMBER>, now :2891653
I (21:32:45) 2018-04-25T21:32:45+0200 - free heap: 66296 (int), 2834092 (ext)
I (21:32:45)
I (21:32:52) 2018-04-25T21:32:52+0200 - free heap: 66296 (int), 2834092 (ext)
I (21:32:52)
I (21:32:58) 2018-04-25T21:32:58+0200 - free heap: 66296 (int), 2834092 (ext)
I (21:32:58)
I (21:33:04) 2018-04-25T21:33:04+0200 - free heap: 66296 (int), 2834092 (ext)
I (21:33:04)
I (21:33:11) 2018-04-25T21:33:11+0200 - free heap: 66296 (int), 2834092 (ext)
I (21:33:11)
I (21:33:17) 2018-04-25T21:33:17+0200 - free heap: 66296 (int), 2834092 (ext)
I (21:33:17)
I (21:32:30) 2018-04-25T21:32:30+0200 - free heap: 66296 (int), 2834092 (ext)
I (21:32:30)
I (21:32:36) 2018-04-25T21:32:36+0200 - free heap: 66296 (int), 2834092 (ext)
I (21:32:36)
I (21:32:42) 2018-04-25T21:32:42+0200 - free heap: 66296 (int), 2834092 (ext)
I (21:32:42)
I (21:32:49) 2018-04-25T21:32:49+0200 - free heap: 66388 (int), 2834092 (ext)
I (21:32:49)
I (21:32:55) 2018-04-25T21:32:55+0200 - free heap: 66388 (int), 2834092 (ext)
I (21:32:55)

What does std::time use as timebase? I've found that newlib/time.c takes esp_timer as timebase. And I found that there are serveral bugs fixed in esp_timer_esp32.c that have to do with an overflow in the timer: https://github.com/espressif/esp-idf/commits/master/components/esp32/esp_timer_esp32.c
Is it possible that my problem is related to those bugfixes? Unfortunately the error is very hard reproduce, so I can not say for sure if using the fixed timer solves my problem.

Yes, this could be related to to esp_timer bugs. Release v3.0 has the fixes you mention, so it is recommended to update from v3.0-rc1 to v3.0.

Closing this, please feel free to reopen if this is still an issue with v3.0.


Cannot compile deno_core since 0.249.0

Hello, I'm following this tutorial https://deno.com/blog/roll-your-own-javascript-runtime with some adaptations (the article was written for deno_core 0.142.0), latests versions doesn't compile from 0.249.0 (0.248.0 works), i got the following error:
   Compiling serde_v8 v0.158.0
   Compiling deno_ops v0.125.0
   Compiling deno_core v0.249.0
error[E0446]: private type `DynFutureInfoErased<T, C>` in public interface
  --> /Users/maxime/.cargo/registry/src/index.crates.io-6f17d22bba15001f/deno_core-0.249.0/runtime/op_driver/future_arena.rs:78:9
   |
26 | struct DynFutureInfoErased<T, C> {
   | -------------------------------- `DynFutureInfoErased<T, C>` declared as private
...
78 |   Arena(ArenaBox<DynFutureInfoErased<T, C>>),
   |         ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ can't leak private type

error[E0446]: private type `DynFutureInfo<T, C, M, F>` in public interface
   --> /Users/maxime/.cargo/registry/src/index.crates.io-6f17d22bba15001f/deno_core-0.249.0/runtime/op_driver/future_arena.rs:180:3
    |
36  | / struct DynFutureInfo<
37  | |   T: 'static,
38  | |   C: 'static,
39  | |   M: FutureContextMapper<T, C, F::Output>,
40  | |   F: Future,
41  | | > {
    | |_- `DynFutureInfo<T, C, M, F>` declared as private
...
180 | /   pub fn allocate<F, R, M: FutureContextMapper<T, C, R> + 'static>(
181 | |     &self,
182 | |     context: M,
183 | |     future: F,
...   |
186 | |     F: Future<Output = R> + 'static,
187 | |     DynFutureInfo<T, C, M, F>: ContextFuture<T, C>,
    | |___________________________________________________^ can't leak private type

For more information about this error, try `rustc --explain E0446`.
error: could not compile `deno_core` (lib) due to 2 previous errors

Here is the code to reproduce:
// main.rs
use std::rc::Rc;
use deno_core::error::AnyError;

async fn run_js(file_path: &str) -> Result<(), AnyError> {
  let current_dir = std::env::current_dir()?;
  let main_module = deno_core::resolve_path(file_path, current_dir.as_path()).unwrap();
  let mut js_runtime = deno_core::JsRuntime::new(deno_core::RuntimeOptions {
      module_loader: Some(Rc::new(deno_core::FsModuleLoader)),
      ..Default::default()
  });

  let mod_id = js_runtime.load_main_module(&main_module, None).await?;
  let result = js_runtime.mod_evaluate(mod_id);
  js_runtime.run_event_loop(deno_core::PollEventLoopOptions {
    wait_for_inspector: false,
    pump_v8_message_loop: false,
  }).await?;
  result.await?;
  Ok(())
}

fn main() {
  let runtime = tokio::runtime::Builder::new_current_thread()
    .enable_all()
    .build()
    .unwrap();

  if let Err(error) = runtime.block_on(run_js("./example.js")) {
    eprintln!("error: {}", error);
  }
}

Thanks for your amazing work!

Can you confirm the version of Rust you're using?

Cargo and rustc 1.72.0

Ahh. The minimum Rust version today for deno_core is approx. 1.74 and for Deno itself is 1.75. Unfortunately you'll have to bump your toolchain.

Updated to 1.75 and it works fine now, thank you :)


python3Packages.meshcat: init at 0.3.2

Description of changes
MeshCat is a remotely-controllable 3D viewer, built on top of three.js.
https://github.com/rdeits/meshcat-python
Things done

Built on platform(s)

[ ] x86_64-linux
[x] aarch64-linux
[ ] x86_64-darwin
[x] aarch64-darwin

[x] For non-Linux: Is sandbox = true set in nix.conf? (See Nix manual)
[ ] Tested, as applicable:

NixOS test(s) (look inside nixos/tests)
and/or package tests
or, for functions and "core" functionality, tests in lib/tests or pkgs/test
made sure NixOS tests are linked to the relevant packages

[ ] Tested compilation of all packages that depend on this change using nix-shell -p nixpkgs-review --run "nixpkgs-review rev HEAD". Note: all changes have to be committed, also see nixpkgs-review usage
[x] Tested basic functionality of all binary files (usually in ./result/bin/)
23.05 Release Notes (or backporting 22.11 Release notes)

[ ] (Package updates) Added a release notes entry if the change is major or breaking
[ ] (Module updates) Added a release notes entry if the change is significant
[ ] (Module addition) Added a release notes entry if adding a new NixOS module
[ ] (Release notes changes) Ran nixos/doc/manual/md-to-db.sh to update generated release notes

[x] Fits CONTRIBUTING.md.

This pull request has been mentioned on NixOS Discourse. There might be relevant details there:
https://discourse.nixos.org/t/prs-ready-for-review/3032/1651

nixpkgs-review happy, x64-NixOS:
4 packages built:
python310Packages.meshcat python310Packages.pyngrok python39Packages.meshcat python39Packages.pyngrok

This pull request has been mentioned on NixOS Discourse. There might be relevant details there:
https://discourse.nixos.org/t/prs-already-reviewed/2617/806


Add Pony LLDB Cheatsheet to "reference"

Based on Andrew Turley's original cheatsheet that saw limited public
visibility.

@sylvanc @Praetonus @jemc is the name mangling still the same from when this was original put together? i feel like it changed.
@sylvanc @aturley can you review and let me know if anything is out of date and needs to be updated?

Looks good. Reminds me that I still want to hack on both the DWARF output and better support for examining Pony values inside lldb, as support for that has got a lot better lately:
http://lldb.llvm.org/adding-language-support.html

@sylvanc since I am kind of back in the game now (finally), I would love helping you on this task.

@sylvanc do you know what the bug is that Andy was referring to in the initial doc?

@sblessing : excellent!
@SeanTAllen : I'm afraid not. I haven't tried calling Pony functions from inside the debugger in a while. I'll give it a try and see what happens.

@sylvanc awesome. if you could review that so we can more fully document what is going on and point to an issue, and if you could review the mangling stuff to make sure its still correct, that would be huge for me.
I think this is going to really help get people going past the "I poked at Pony" phase.

As we have consensus on the garish warning. I'm going to update this PR by squashing that and rebasing against master. I think GitHub will lose the comments from that, but we seem to have some consensus around those.

[ ] @sylvanc is going to look at what the bug with calling pony methods from the debugger is so we can document and address
[ ] we need to verify that mangled name information is still up to date.

Ok, I got mangling cleared by @sylvanc and we have an issue for the problematic bit.
I'm going to rebase against source and merge this.


can't install version 3.2.x with python2

I'm not able to install version 4.2.1, due to importlib.util not being found.
I'm not sure exactly which module I need to install to meet this dependency.
I didn't experience this issue with version 3.1.x
[root@black markdown-3.2.1]# python2.7 setup.py
Traceback (most recent call last):
  File "setup.py", line 39, in <module>
    __version__, __version_info__ = get_version()
  File "setup.py", line 32, in get_version
    import importlib.util
ImportError: No module named util

As noted in the release notes, we dropped support for Python 2.7 in version 3.2. You have two options:

Update to Python 3.5 or later.
Continue to use Python-Markdown 3.1 with Python 2.7.

I suppose we could test and add an error message to the setup.py script. We did include an error message for those who have a develop install of the package. And pip will refuse to install 3.2 on Python 2.7 due to the meta-data mismatch.

Thanks for pointing that out. I'll continue using Python-Markdown 3.1 for now. It looks like transitioning to Python3 is going to be inevitable at some point, which is ultimately a good thing.


[Bug][meta] Broker enter the loop to recreate zkSession failed, cause broker stuck

Search before asking

[X] I searched in the issues and found nothing similar.

Read release policy

[X] I understand that unsupported versions don't get bug fixes. I will attempt to reproduce the issue on a supported version of Pulsar client and Pulsar broker.

Version
zookeeper: 3.6.3
broker: 3.0.4
bookkeeper: 4.16.4
Minimal reproduce step
continue to do perf-produce to a 5-nodes cluster, with several broker restart operation.
What did you expect to see?
broker should reCreate zkSession success and not stuck.
What did you see instead?
Firstly, everything is ok. After running for some time, notice one of the five broker have no throughput, but broker process is alive.
Then it is found in log, the broker always retry recreate zkSession frequently but failed.
15:55:28.066 [ZKC-connect-executor-0-SendThread(ip3:2181)] INFO  org.apache.zookeeper.ClientCnxn - Session establishment complete on server ip3/ip3:2181, session id = 0x3016bf7f9583a32, negotiated timeout = 30000
15:55:28.066 [ZKC-connect-executor-0-EventThread] INFO  org.apache.bookkeeper.zookeeper.ZooKeeperWatcherBase - ZooKeeper client is connected now.
15:55:28.066 [metadata-store-38-1] INFO  org.apache.pulsar.metadata.impl.ZKSessionWatcher - Got ZK session watch event: WatchedEvent state:SyncConnected type:None path:null zxid: -1
15:55:28.066 [metadata-store-38-1] INFO  org.apache.pulsar.metadata.impl.ZKSessionWatcher - ZooKeeper client reconnection with server quorum. Current status: SessionLost
15:55:28.066 [metadata-store-38-1] INFO  org.apache.pulsar.broker.PulsarService - Received metadata service session event: Reconnected
15:55:28.066 [ZKC-connect-executor-0-EventThread] ERROR org.apache.pulsar.metadata.impl.ZKMetadataStore - Failed to recreate persistent watch on ZooKeeper: CONNECTIONLOSS
15:55:28.066 [ZKC-connect-executor-0-EventThread] INFO  org.apache.pulsar.metadata.impl.PulsarZooKeeperClient - ZooKeeper session 3016bf7f9583a32 is expired from ip1:2181,ip2:2181,ip3:2181.
15:55:28.066 [metadata-store-38-1] INFO  org.apache.bookkeeper.mledger.impl.ManagedLedgerFactoryImpl - Received MetadataStore session event: Reconnected
15:55:28.066 [metadata-store-coordination-service-47-1] INFO  org.apache.pulsar.metadata.coordination.impl.LockManagerImpl - Metadata store connection has been re-established. Revalidating locks that were pending.
15:55:28.066 [metadata-store-coordination-service-64-1] INFO  org.apache.pulsar.metadata.coordination.impl.LockManagerImpl - Metadata store connection has been re-established. Revalidating locks that were pending.
15:55:28.066 [metadata-store-coordination-service-40-1] INFO  org.apache.pulsar.metadata.coordination.impl.LockManagerImpl - Metadata store connection has been re-established. Revalidating locks that were pending.
15:55:28.172 [ZKC-connect-executor-0] INFO  org.apache.zookeeper.ZooKeeper - Session: 0x3016bf7f9583a32 closed
15:55:28.406 [ZKC-connect-executor-0] INFO  org.apache.zookeeper.ZooKeeper - Initiating client connection, connectString=ip1:2181,ip2:2181,ip3:2181 sessionTimeout=30000 watcher=org.apache.bookkeeper.zookeeper.ZooKeeperWatcherBase@1a78dacd
15:55:28.173 [ZKC-connect-executor-0-EventThread] INFO  org.apache.zookeeper.ClientCnxn - EventThread shut down for session: 0x3016bf7f9583a32

15:55:28.186 [ZKC-connect-executor-0-SendThread(ip2:2181)] INFO  org.apache.zookeeper.ClientCnxn - Session establishment complete on server ip2/ip2:2181, session id = 0x20d399292970a9d, negotiated timeout = 30000
15:55:28.186 [ZKC-connect-executor-0-EventThread] INFO  org.apache.bookkeeper.zookeeper.ZooKeeperWatcherBase - ZooKeeper client is connected now.
15:55:28.186 [metadata-store-38-1] INFO  org.apache.pulsar.metadata.impl.ZKSessionWatcher - Got ZK session watch event: WatchedEvent state:SyncConnected type:None path:null zxid: -1
15:55:28.186 [metadata-store-38-1] INFO  org.apache.pulsar.metadata.impl.ZKSessionWatcher - ZooKeeper client reconnection with server quorum. Current status: SessionLost
15:55:28.186 [metadata-store-38-1] INFO  org.apache.pulsar.broker.PulsarService - Received metadata service session event: Reconnected
15:55:28.186 [ZKC-connect-executor-0-EventThread] ERROR org.apache.pulsar.metadata.impl.ZKMetadataStore - Failed to recreate persistent watch on ZooKeeper: CONNECTIONLOSS
15:55:28.186 [ZKC-connect-executor-0-EventThread] INFO  org.apache.pulsar.metadata.impl.PulsarZooKeeperClient - ZooKeeper session 20d399292970a9d is expired from ip1:2181,ip2:2181,ip3:2181.
15:55:28.186 [metadata-store-38-1] INFO  org.apache.bookkeeper.mledger.impl.ManagedLedgerFactoryImpl - Received MetadataStore session event: Reconnected
15:55:28.186 [metadata-store-coordination-service-47-1] INFO  org.apache.pulsar.metadata.coordination.impl.LockManagerImpl - Metadata store connection has been re-established. Revalidating locks that were pending.
15:55:28.186 [metadata-store-coordination-service-40-1] INFO  org.apache.pulsar.metadata.coordination.impl.LockManagerImpl - Metadata store connection has been re-established. Revalidating locks that were pending.
15:55:28.186 [metadata-store-coordination-service-64-1] INFO  org.apache.pulsar.metadata.coordination.impl.LockManagerImpl - Metadata store connection has been re-established. Revalidating locks that were pending.
15:55:28.292 [ZKC-connect-executor-0] INFO  org.apache.zookeeper.ZooKeeper - Session: 0x20d399292970a9d closed
15:55:28.292 [ZKC-connect-executor-0] INFO  org.apache.zookeeper.ZooKeeper - Initiating client connection, connectString=ip1:2181,ip2:2181,ip3:2181 sessionTimeout=30000 watcher=org.apache.bookkeep
er.zookeeper.ZooKeeperWatcherBase@1a78dacd
15:55:28.294 [ZKC-connect-executor-0-EventThread] INFO  org.apache.zookeeper.ClientCnxn - EventThread shut down for session: 0x20d399292970a9d

15:55:28.300 [ZKC-connect-executor-0-SendThread(ip3:2181)] INFO  org.apache.zookeeper.ClientCnxn - Session establishment complete on server ip3/ip3:2181, session id = 0x3016bf7f9583a33, negotiated timeout = 30000
15:55:28.300 [ZKC-connect-executor-0-EventThread] INFO  org.apache.bookkeeper.zookeeper.ZooKeeperWatcherBase - ZooKeeper client is connected now.
15:55:28.300 [metadata-store-38-1] INFO  org.apache.pulsar.metadata.impl.ZKSessionWatcher - Got ZK session watch event: WatchedEvent state:SyncConnected type:None path:null zxid: -1
15:55:28.300 [metadata-store-38-1] INFO  org.apache.pulsar.metadata.impl.ZKSessionWatcher - ZooKeeper client reconnection with server quorum. Current status: SessionLost
15:55:28.300 [metadata-store-38-1] INFO  org.apache.pulsar.broker.PulsarService - Received metadata service session event: Reconnected
15:55:28.300 [ZKC-connect-executor-0-EventThread] ERROR org.apache.pulsar.metadata.impl.ZKMetadataStore - Failed to recreate persistent watch on ZooKeeper: CONNECTIONLOSS
15:55:28.300 [ZKC-connect-executor-0-EventThread] INFO  org.apache.pulsar.metadata.impl.PulsarZooKeeperClient - ZooKeeper session 3016bf7f9583a33 is expired from ip1:2181,ip2:2181,ip3:2181.
15:55:28.300 [metadata-store-38-1] INFO  org.apache.bookkeeper.mledger.impl.ManagedLedgerFactoryImpl - Received MetadataStore session event: Reconnected
15:55:28.300 [metadata-store-coordination-service-47-1] INFO  org.apache.pulsar.metadata.coordination.impl.LockManagerImpl - Metadata store connection has been re-established. Revalidating locks that were pending.
15:55:28.300 [metadata-store-coordination-service-40-1] INFO  org.apache.pulsar.metadata.coordination.impl.LockManagerImpl - Metadata store connection has been re-established. Revalidating locks that were pending.
15:55:28.300 [metadata-store-coordination-service-64-1] INFO  org.apache.pulsar.metadata.coordination.impl.LockManagerImpl - Metadata store connection has been re-established. Revalidating locks that were pending.
15:55:28.406 [ZKC-connect-executor-0] INFO  org.apache.zookeeper.ZooKeeper - Session: 0x3016bf7f9583a33 closed
15:55:28.406 [ZKC-connect-executor-0] INFO  org.apache.zookeeper.ZooKeeper - Initiating client connection, connectString=ip1:2181,ip2:2181,ip3:2181 sessionTimeout=30000 watcher=org.apache.bookkeeper.zookeeper.ZooKeeperWatcherBase@1a78dacd
15:55:28.408 [ZKC-connect-executor-0-EventThread] INFO  org.apache.zookeeper.ClientCnxn - EventThread shut down for session: 0x3016bf7f9583a33

There is some questions.

3-node Zk server is all runnable, it seems everything of zk server is OK. Actually the other 4 broker is OK, only 1 broker enter the loop to recreate ZkSession. And all Brokers located machine's load are low. I guess restart broker can fix this issue, but I do not do that, for the reason to preserve the problem site.  But actually broker should recover by itself.
Which case would result in this error log "Failed to recreate persistent watch on ZooKeeper: CONNECTIONLOSS" ?
Currently I prefer that this stuck is because of broker's way to reCreate zk session, but not zk itself.
I don't know whether should I update the zk version with pulsar version 3.0.

Anything else?
No response
Are you willing to submit a PR?

[ ] I'm willing to submit a PR!

Now I guess the issue is relevant of the config zookeeperSessionExpiredPolicy. Pulsar new version change zookeeperSessionExpiredPolicy default value from shutdown to reconnect. https://github.com/apache/pulsar/pull/13341
When I revert the config to shutdown, zk and pulsar cluster become more stable. And the issue currently not happen.


Is this project active?

I am interested to contribute towards gym environments purely in julia (https://julialang.org/jsoc/gsoc/flux/). What are the next steps towards development of Gym.jl?

ReinforcementLearningEnvironments.jl is a more active repo of RL environments in Julia.


[SQL][DOC] Fix incorrect code tag

What changes were proposed in this pull request?
This PR is to fix incorrect code tag in sql-programming-guide.md
How was this patch tested?
Manually.

Test build #68898 has started for PR 15941 at commit 8108d41.

Test build #68898 has finished for PR 15941 at commit 8108d41.

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

Merged build finished. Test PASSed.

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

OK. I looked for other instances, and didn't find any, but, found a pretty related problem with  in SQLConf.scala:
  val AUTO_BROADCASTJOIN_THRESHOLD = SQLConfigBuilder("spark.sql.autoBroadcastJoinThreshold")
    .doc("Configures the maximum size in bytes for a table that will be broadcast to all worker " +
      "nodes when performing a join.  By setting this value to -1 broadcasting can be disabled. " +
      "Note that currently statistics are only supported for Hive Metastore tables where the " +
      "commandANALYZE TABLE <tableName> COMPUTE STATISTICS noscan has been " +
      "run, and file-based data source tables where the statistics are computed directly on " +
      "the files of data.")

command needs a space

@srowen Thanks for the review. I have updated the PR.

Test build #68906 has started for PR 15941 at commit 502870d.

@weiqingy looks like you are going through the docs right now to find a lot of small fixes. Can you just submit them in one patch?

Hi, @rxin I am not sure if I will find more about the doc. If it is OK for you, I can just make this PR WIP. If I find more I will add them in. Thanks.

Test build #68906 has finished for PR 15941 at commit 502870d.

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

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

Merged build finished. Test PASSed.

Sounds good. We can merge this before the 2.1 rc.

Merged to master/2.1

Thanks for review this, @srowen


SAK-31901 - Support timezones other than GMT in external calnedar

I really don't like this fix but couldn't see anything else without a large chanrge to
org.sakaiproject.calendar.api.CalendarEvent
It storing the value as org.sakaiproject.time.apiTimeRange->org.sakaiproject.time.api.Time which doesn't actually seem to have any time zone details. It can return the local time as a string(toStringLocal) but not as a long, which doesn't make sense to me.
Maybe org.sakaiproject.time.api.Time needs a getTimeLocal ? These are all long deprecated though.

So I guess the options are

This (minor change to the external calendaring service)
Add to org.sakaiproject.api.Time to add long getTimeLocal or getTimeOffset (so it knows the local time in MS)
Use toStringLocal and convert that from a string back to a long in external calendaring service (doesn't make sense, seems like it should be in the kernel)

I'm kinda leaning on #2 now :/

Note, the only thing using this "external calendaring service" was signup and it looked like it always expected that the local time was going to be returned for this method, so the parameter really was redundant. This could be simplified to just always return the local time.

@jonespm looks like tests are failing: No bean named 'org.sakaiproject.time.api.TimeService'

Okay I updated the test to not fail on timeService. Should compile this time.


How to add a custom CSS file or a defaults file as options

Hi @ChrisChinchilla,
Let me take this opportunity to thank you for this plugin. It has increased my productivity by leaps and bounds when writing documents in Pandoc's markdown.
I would like to see how the final document would look on my website and was wondering if I could add a custom CSS file or a Pandoc defaults file option using the settings on the extension.
If not are there any other available alternatives?
Many thanks.

Hey @nandac, I can add this to the future feature list, but I can't guarantee when it will happen, sorry!


Custom activation fn example

This will help introduce people to the new activation registry API and overall just enhance the ease of use of this crate.

nvm looks like that error is an instance of #59

solved.


Editable Cells in a grid should indicate that they are editable

This could be something left up to the app developer, but it might be nice to have in the framework.
If built into the framework, it could be a config, either at gridmodel level or column level, that turns on a css rule on a cell when it is not being edited that helps indicate that the cell is editable.
The CSS could:
1: switch to pointer cursor on cell, to indicate that the cell would "respond in some way to a click"
2: put some special border or inset shadow on the cell to make it special.
The CSS could of course be overridden at the app level.
This feature would be especially useful in grids where only a few of the N columns are editable.  With this feature, new users don't have to guess or read the app docs to find out which columns are editable.

Need a css class as a handle for app changes.   Let's leave the styling to apps, however.


Make ProtectedHeader members public

This is a fix patch to make the ProtectedHeader member public, thus downstream can edit the fields.

@Xynnn007 Are you planning on submitting more changes? If not, I can update the crate.


Browserify/AMD compatibility

This library is using 'paper' as dependency, but if 'paper' is loaded through Browserify paper doesn't load, so try to use require also:
// line 5
var paper = global.paper; // require('paper');

Hi,
I'm not familiar with browserify.
Would something like
var paper;
if(typeof "require" === "function") {
    paper = require('paper');
}
else {
    paper = global.paper;
}

work with browserify, considering that theoretically the type of require can only be known at runtime and that afaik browserify runs during the build process ?

Yeah something like this

I'd appreciate if you could either test with the latest version of the file or provide me an example so that I can try your configuration myself.
I'm simply doing a require('paper'), which should work if you have installed paper.js with npm.
cheers

For me its working, maybe u can tag it, i'm currently loading from master.


fix(initClient) Using NewClient() function

initClient() throws:
./hiprus.go:63: too few values in struct initializer

Client struct (from andybons/hipchat) now has additionals fields (BaseURL) so
previous struct Client declaration won't work anymore.

Thanks @achied. Would be great if you could close this PR and open a new one with /nubo/hiprus/tree/hotfix/andybons-hipchat-client-signature-change set as the target. I have to merge with the git-flow scheme and this would make it a lot easier.


when authMechanism is NOT "PLAIN" we get error MongoServerError: Unsupported mechanism 'PLAIN'

Versions
0.8.1
What did you do?
try to connect with mongosh without specifying the authMechanism option. The default being SCRAM-SHA-1.
What did you expect to see?
I expected to see MongoServerError:  Unsupported mechanism 'SCRAM-SHA-1'
What did you see instead?
MongoServerError: Unsupported mechanism 'PLAIN'
Environment
- OS:
- Architecture:
- Version:
- Go:
- Git:
- Deployment:Docker
- Deployment details:

Thank you! That issue will be fixed in 0.9.0 release later today


chore(main): release siyuan-plugin-publisher 1.23.4

:robot: A new release will be created
1.23.4 (2024-11-16)
Bug Fixes

pic upload error in some cases (eee6c66)

This PR was generated with Release Please. See documentation.

:robot: Release is at https://github.com/terwer/siyuan-plugin-publisher/releases/tag/siyuan-plugin-publisher-v1.23.4 :sunflower:


expose the Blob contents as a reference

This is how Blob is defined...
pub struct Blob {
    inner: Vec<u8>,
}

impl Blob {
   ...
    /// Consumes the `Blob` and returns a `Vec<u8>` with its contents.
    pub fn into_inner(self) -> Vec<u8> {
        self.inner
    }
}

impl AsRef<[u8]> for Blob {
    fn as_ref(&self) -> &[u8] {
        &self.inner
    }
}

which means we cannot obtain a &Vec<u8> to the inner without cloning the Blob (or getting the slice and then making a new Vec, which amounts to the same thing).
Please make a pub fn inner() -> &Vec<u8> available so we don't have to copy all this data when optionally processing the contents.

Why is the type of the container important? Isn't a slice enough?

to interact with existing apis that take a &Vec<u8>. For example, many popular deserialisers.

Apologies for being obstinate, but could you link me an example of a deserializer that expects a &Vec instead of a slice?

I'm using prost to decode KPL aggregated kinesis records, https://docs.rs/prost/latest/prost/
That takes a
    fn decode(mut buf: impl Buf) -> Result<Self, DecodeError>

where the impl Buf is defined in tokio-rs... and now that I look even closer I see that there is an implementation for a slice, afterall, that I must have missed the first time around so I've been able to use the as_ref() and it works without the memory copy, sorry for the redundant feature request!


chore: Testable controllers

All Submissions:

[x] Have you signed our CLA?
[ ] Put closes #XXXX in your comment to auto-close the issue that your PR fixes (if there is one).
[ ] Update docs/release-notes/release-notes.md if your changes should be included in the release notes for the next release.

It doesn't need to be merged now, the approach can be discussed in case you have a different idea.
Once I have done it already, and it will help a lot with CI improvements, I decided to give it a start. If you guys are okay with it I'll extend to the other controllers next week.

I like the concept design, but not the names chosen. I miss a short description of the idea if possible.

An alternate naming scheme that might be closer to your original intent, but I think more precise would be to replace teh work manager, still very generic to me, for provider which I think, prefixed by the atlas package name, make it more obvious and descriptive:
Interface: atlas.Provider or atlas.CloudProvider
Production implementation: atlas.ProductionProvider or atlas.ProdProvider
Production constructor: atlas.NewProductionProvider or atlas.NewProdProvider
Test implementation: atlas.TestProvider
Test cosntructor: atlas.NewTestProvider

LGTM, apart from some naming consistencies.
I would fix those and merge. This is great work! Can't wait to have the ability to unit tests full reconciliation calls easily.

I think we can rebase and merge this one soon

I think we can rebase and merge this one soon

@josvazg I'll rebase and merge as soon as we finish the 2.0 release issues


Internal miniport create failed

I am trying to install PCF Dev and getting the following error

Anyone able to help?

Please re-open if you are still facing these concerns with the latest version. If you had recently enabled Hyper-V on your machine, I suspect that a reboot was in order.


chore: More efficient donations fetch script

This just updates the script to fetch one-time donations to use the new Open Collective API for doing so. Instead of making multiple requests and filtering, we can now just request the one-time donations directly. :tada:

Heads up: Deploy seems to be failing.

Yeah, looks like the same random break we got on that other PR. Doesn’t appear related to this PR specifically.


⚠ Bofrost.be has degraded performance

In 15bdc28, Bofrost.be (https://www.bofrost.be) experienced degraded performance:

HTTP code: 200
Response time: 1091 ms

Resolved: Bofrost.be performance has improved in 2050a41 after 52 minutes.


1D grating reciprocal lattice normalization

When I test the 1D grating diffraction, the results seem mismatch. In the harmonics.py, the function _k_matrix_1D to calculate the T1, if it needs normalization divide by k_0 like the _k_matrix_2D.

Perhaps #55 fixes this


Checkboxes in memos no longer work

Describe the bug
I just upgraded and checking boxes inside memos no longer works in the web interface.
Steps to reproduce

Create a new memo with - [ ] example text
View the memo and click on the check box
Nothing happens

The version of Memos you're using
v0.18.2
Screenshots or additional context
No response

Updated with https://github.com/usememos/memos/commit/454cd4e24f978e498031c57ff2dd399751d66633. You can pull the latest image again.


MSSQL: Update troubleshooting wiki for sslmode

Update troubleshooting wiki to reflect issues surrounding use of TLS support
Acceptance Criteria

[ ] Troubleshooting wiki updated

Additional cases to consider:

sslmode is require and the server can't do secure connections
sslmode is disable and the server can only do secure connections

@BradleyBoutcher once you have a wiki diff to share with the TWs to update the website documentation, please add the link for the diff to cyberark/secretless-docs#246

Initial commit posted
Diff: https://github.com/cyberark/secretless-broker/wiki/Troubleshooting-Guide/_compare/e189bb7e1a87553a0e4fd77e475422a570c9bddc...26b2fed497e74fecaa126a7858ff57bcf9ceb980


Extract math from Float trait

Rendered.

A single math trait doesn't make sense: the set of mathematical operations on floats is very different from those on integers, or even decimal or fixed point numbers.

I agree that there should be more traits, but on the other hand we shouldn't go insane with splitting them just for having generic code for any numeric type. It should be carefully evaluated.

It kind of reverse RFC #0369, but in my opinion it has been too radical which can be seen as num crate bring most of these traits back. This makes num crate kind of must have for any code related to math.

To be clear, the earlier RFC had this as an explicit goal:

Future-proofing for external numerics packages. The Cargo ecosystem should ultimately provide choices of sophisticated numeric hierarchies, and std::num should not get in the way.

As that RFC discusses, there was a long history of changes to std::num and no consensus about what a solid numeric hierarchy would look like. That doesn't mean there will never be one in std, but like many other areas we are leaving it up to crates.io to develop a good set of candidates.
The role of the current traits is primarily just to provide methods on the primitive numeric types, because they cannot be given inherent methods.

The float trait has been removed in favor of inherent methods. I'm going to close this RFC, since it no longer applies.
FWIW, generic programming over numeric types is a very important area of focus, but this is why we want to let a design bake in crates.io rather than freezing something suboptimal.


[Bug]: Choose reviewer(s) link is broken in GitHub PR template

What happened?
beam GitHub PR use PR template but a guide for choosing reviewers' link is broken
https://beam.apache.org/contribute/#make-your-change.
The actual template is here.
https://github.com/apache/beam/blob/a74e6196975ed05ccfa08dd6e51218a53aa0f5b2/.github/PULL_REQUEST_TEMPLATE.md?plain=1#L7
It confused beginner contributors who can not assign the appreciative reviewer.
should we use this link?
https://projects.apache.org/committee.html?beam
If someone suggests correct link, I will make the PR. Thanks!
Issue Priority
Priority: 2
Issue Component
Component: website

I actually think we can remove that line, since we have a bot that assigns a few reviewers from lists. Thanks for noticing! Would you like to submit a small change to remove that line?

OK let me try that 😄

It may refer to https://beam.apache.org/contribute/get-started-contributing/#get-reviewed but yes currently we have bot do this work


Prerequisites and dependencies

I just realized that smepmp might be a prerequisite for SS and LP.  It is not stated explicitly.  Could you please include a list of perquisites and dependencies?
Thanks.

Priv: Smepmp and Sv39/Sv48/Sv57
Unpriv: Zicsr, Ziccif, Ziccamoa, A, and C

Updated extension dependencies list in PR #90 with latest updates (Zcmop, compressed cfi insts, Ziccamoa) and the missing list of priv extensions.

Ved, before we close this issue, I'd like to probe a little more.
Why is there a dependency on smepmp?  What is it in smepmp that we require?

Smepmp introduces mseccfg CSR. The Zisslpcfi adds a field in this CSR. Zisslpcfi can be implemented without Smepmp, however without Smepmp, the shadow stack memory protection is not present.

When the Smepmp extension is implemented, a new WARL field sspmp is defined
in the mseccfg CSR to identify a PMP entry as the shadow stack memory region
for M-mode accesses.
When sspmp field is implemented and mseccfg.MML is 1 the following rules are
additionally enforced for M-mode memory accesses:

sspush, c.sspush, sspop, sspopchk, c.sspopchk, and ssamoswap
instructions must match PMP entry sspmp.

Write by instructions other than sspush, c.sspush, and ssamoswap that
match PMP entry sspmp cause an access violation exception.

Though it is possible to make dependence only on the mseccfg CSR and not the rest of the Smepmp.

Yes, that is the dependency we would prefer to see.
I am sitting here reading about MML, to make sure I have not overlooked anything.  We obviously need the encoding of pmpcfg.RW=01.

The MML if implemented would write protect sspmp field. The protection itself should not be dependent on MML - only whether sspmp field is implemented. See https://github.com/riscv/riscv-cfi/pull/90/commits


CB-11066 Remove uap prefixed capabilities when plugin has added regular ones

This fixes a problem when some of capabilities, added by plugin are being modified at 'prepare' stage due to special Windows logic and then aren't removed when uninstalling plugin. For details see CB-11066

@rakatyal to help review

Minor comments. Otherwise LGTM.

Thanks for review, merged


First commit for using Invoke instead of Fabric. This commit covers "inv initdb" and "inv test" command #357

You should install Invoke with the following command:
pip install invoke

Well done! Note that after merging your PR I "accidentally" continued to
work a bit on this ticket:
http://luc.lino-framework.org/blog/2016/0113.html
Luc
On 12/01/16 22:07, Hamza Khchine wrote:

You should install Invoke with the following command:
pip install invoke
—
Reply to this email directly or view it on GitHub
https://github.com/lsaffre/atelier/pull/1#issuecomment-171038282.


Drop documentation about Daml Ledger export

It is an alpha feature that is deprecated and does not support canton properly.

Should you then also remove the actual page for it?

3792262e1acd9712baa37cb2103c95093c05b3e8

For the build to work you'll need to drop it from _toc.yml too.


Broken SSR: You should not use  outside a  when I'm clearly using  inside a

Version
V5.0.1
Test Case
https://github.com/modsoussi/react-ssr
Steps to reproduce

git clone https://github.com/modsoussi/react-ssr.git
cd react-ssr
npm i
npm start
Go to localhost:5000/
Check logs for invariant error

Expected Behavior
Expect app to render. This is the code for App:
class App extends React.Component {
  render() {
    return (

<Link to="/">Hello</Link>

<Link to="/bye">Bye</Link>

        <Route path="/" exact component={Hello} />
        <Route path="/bye" component={Bye} />

    )
  }
}

On the client, it's rendered inside a BrowserRouter, and on the server it's rendered inside a StaticRouter.

Client:

hydrate(
    <BrowserRouter>
      <App />
    </BrowserRouter>, document.getElementById('app-root'));

Server:

const component = require('./dist');
const context = {};

const app = React.createElement(
  StaticRouter,
  { location: req.url, context: context },
  React.createElement(component)
);
const markup = renderToStaticMarkup(app);

Actual Behavior
renderToStaticMarkup(app) fails and throws Error: Invariant failed: You should not use <Link> outside a <Router>.

Similar issue - fixed by downgrading react-router-dom to 5.0.0.

Downgrading react-router-dom to 5.0.0 didn't work

OK, so you're using two instances of the Router context pair. (Side note: I'll explain things fully here, but I'm going to have to turn this into a saved response...)
There is a new React.createContext API that we use in 5.0 to replace the legacy context usage. This involves creating a "context" pair, a set of Provider and Consumer components. We create that in a singleton module that is imported into Router and Link directly. In this new API, you have to use the exact same instance. Two separately-created contexts will never match up and won't be visible to each other.
In your server, you're importing from your build output and from the react-router-dom module. This means that within your bundle, it's importing the bundle copy of context and in the server render, it's importing directly from the module (in node_modules). This results in the Provider in Router not being visible to the Consumer in Link.
How you solve this is up to you. The most ideal option is to not import your bundle, but import from src directly. (Note: that might involve using @babel/register if you're using JS features incompatible with your version of Node.) Another option is to export react-router-dom from your bundle and use that in your server renderer so that you have the same context pair. I can't tell you what is the best option, since you need to evaluate any tradeoffs.
One thing to add: This isn't fundamentally a React Router or even a React problem. Anything that uses a singleton module would be affected by this if you reference that singleton in your bundle and your server separately. It's the nature of JS itself, so the fixes I suggest are best for avoiding problems with other libraries as well.

Take a look at my answer for a possible solution here:
https://github.com/ReactTraining/react-router/issues/6769#issuecomment-505435886

Exporting StaticRouter from my bundle did the trick. I import it and use it in my server's code.


drizzle-kit introspect --keep-casing

As of now drizzle-kit introspects schema and make camelCase out of all names in the database. While being very useful for most of the users, we should have an opt-out mechanics for those who intend to keep casing or potentially have a particular one.
we might be able to do it with --keep-casing or have a enum --casing=camel, --casing=snake or maybe --snake-case and --camelCase

https://orm.drizzle.team/kit-docs/config-reference#casing


Menu not work in the touchableOpacity component

Hello everyone, I would like to understand why when I insert the  component inside an onLongPress of a  component, the menu does not appear. What am I doing wrong? Is it incompatible? Thank you

Can you share the code you have?

Sorry, but right now I can't show you the exact code, however it looks like this:
`
const componentOne = () =>{
<ToachableOpacity onPressLong={()=>{menuHanlder()}>[code]
}
const menuHandler = () => {

}
`
the code is about this, but if you need the details later I try to provide it.  Thanks for the prompt reply.

Okay from what I know, your code won't work, you can try this mini example below.
<MenuView
actions={[..actions]}
shouldOpenOnLongPress={true}  //this is what you probably need.

 {...the component you want to add the menu on.  //eg [code]}

The MenuView needs children passed into it, that way it knows what to render.

Perfect, the problem was just that, that the  component has to wrap all the other components. Now, however, on the iOS simulator it is fine, but on the android simulator it crashes. How come? Thanks for this beautiful component.

Glad it worked. You would need to share the error message you got, it's hard trying to figure out what it was.

I would do it if you gave me any errors, of any kind.  Unfortunately, however, I don't get any errors when I try to bring up the menu on android (in long press mode), the app just closes.

Hmmm, are you running on expo or bare react native?

I use yarn start command and start the project with expo, but I have eject expo, so, if the build isn’t on the simulator, I have to do  yarn iOS or  yarn android to create the builds and install them in the simulators / mobile phones

So, with this post, I close the issue, in practice, I started the build with android studio, and they gave me the error, that is, the title was missing in a menu action, crashing the app. Thanks for the support

Oh yeah, you can pass an empty string "" if you don't want a title. Always happy to help.


Enable Flax ResNet on v5e and v5p

Description
Enable Flax ResNet on v5e and v5p:

Capacities for both v5e and v5p are in project tpu-prod-env-automated
Currently I manually set up VPC peering and firewall rules to unblock PT test release, but we should do it in Terraform for management

Tests
Please describe the tests that you ran on Cloud VM to verify changes.
Instruction and/or command lines to reproduce your tests: ...
Upload to Airflow and test.
List links for your tests (use go/shortn-gen for any internal link): ...
Tests for v5e and v5p pass: link
Checklist
Before submitting this PR, please make sure (put X in square brackets):

[x] I have performed a self-review of my code.
[x] I have necessary comments in my code, particularly in hard-to-understand areas.
[x] I have run one-shot tests and provided workload links above if applicable.
[x] I have made or will make corresponding changes to the doc if needed.

Thanks Ran, can you mention some details about what VPC peering and firewall rules you have changed?


Newline/editing bugs in Android Browser

One problem is that you cannot easily delete newlines. Backspace doesn't work, but you can delete them as part of selection (shift-arrows or long-touch and high-precision dragging).
Another is that if you mess with this deletion for a bit, sometimes editor starts adding a newline for every character you type. I think that internal invisible input area can get a newline stuck in there.
This one happens in Android Browser coming with the OS
Don't confuse 'Browser' with Chrome mobile. Browser comes with Android open-source platform.
This 'Browser' thing reports itself as Chrome <IP_ADDRESS> in navigator.userAgent, so it's probably uses older cut of the Chrome under the hood.
However that Browser is a widespread app. And it probably closely matches WebView used to embed browser in other Android apps. So it really is a noticeable usage share.
Also see #3653 Arrow keys hide keyboard - Chrome mobile 46

Experienced same behavior, were there no solution for this? I've experienced this issue with unexpected newlines when entering text(if you pause and enter new symbol. newline appears before new input), but second was fixed by disabling "active-line" addon.

@burdiuz Are you seeing the issue in Chrome or in the 'Android Browser'. As far as I know 'Android Browser' has not been on life support since 2013, and Google is trying to get people to switch to Chrome, so I'm not really seeing the stock browser as an important target anymore.

I was trying to find the source of a problem that made editing on Android (in Chrome) completely impossible.  Newlines added all the time, the keyboard closing as I type, backspace not working as expected, really, it was too many issues to count.  I removed all of the options other than mode and theme and then systematically added back one option at a time and redeployed my application and tested.  It turns out that the active-line addon was the source of all my pain.
I am using the mode: 'javascript'.  I am not seeing all of the strange behavior I was seeing in my environment in the active-line demo (https://codemirror.net/demo/activeline.html), but there is some strange behavior in that demo on Android as it is.
Hope this helps others...

I see exactly all the issues mentioned by @swill on Android Chrome. But even removing active-line plugin doesn't fix it. Infact the issue is same on this CodeMirror demo -> https://codemirror.net/demo/theme.html

Yay, I found the issue GitHub's having.

This is a issue that's difficult to debug and would probably require a lot of work to fix.
We are working on a rewrite (CodeMirror 6) that will hopefully address this issue, and we are currently raising money for this work: See the announcement for more information about the rewrite and a demo.
Note that CodeMirror 6 is by no means stable or usable in production, yet. It is highly unlikely that we pick up this issue for CodeMirror 5, though.

Thanks for updating @adrianheine 👍

Just a heads up, this issue appears in chrome mobile as well, regardless of the version as far as I'm aware.
It also has a bit different behavior depending on used keyboard - code comes back all the time on samsung keyboard and it only comes back after removing all the code/stopping delete press on gboard.
We've tried many hacks but with no success. Has anyone figured that out?

We experience a similar error in CodiMD in Firefox on android (see link above). We also came to the conclusion that some keyboards work while others don't.

'the' current (soft) workaround for Android users is to download Keepass2Android and use its keyboard.

—https://github.com/hedgedoc/react-client/issues/437#issuecomment-572646473

'the' current (soft) workaround for Android users is to download Keepass2Android and use its keyboard.

—https://github.com/hedgedoc/react-client/issues/437#issuecomment-572646473

(The CodeMirror 6 beta is quite stable now, and should provide much better Android support.)

(The CodeMirror 6 beta is quite stable now, and should provide much better Android support.)


Allows on-call queries to be case-insensitive

Fixes #40
Prior to this PR, asking an on-call question, such as hubot who is on call for devops would only produce a result if the name of the PagerDuty schedule was exactly "devops", but not if it were "DevOps". This PR converts the query text and result set item to lowercase, allowing a more permissive match.

Looks good :+1:


Remove NNCF pruning and distillation in documentation

Remove NNCF pruning and distillation support. Will be added back for optimum-intel v1.7 release

The docs for this PR live here. All of your documentation changes will be reflected on that endpoint.

cc'ed @vuiseng9

Thank you for all your help! @echarlaix


ModuleNotFoundError: No module named 'checker'

Hi,
I'm running Slackware 14.2 x64 and I have python3 3.6.6 installed, and when I run the script I get this at the terminal;
Traceback (most recent call last):
File "extract_android_ota_payload.py", line 12, in
import update_payload
File "/home/foo/Downloads/update_payload/init.py", line 9, in
from checker import CHECKS_TO_DISABLE
ModuleNotFoundError: No module named 'checker'
I've noticed the command showing running it on a zip so I tried it that way too;
python3 extract_android_ota_payload.py CARBON-CR-6.1-NOCT-RELEASE-mata-20180811-0405.zip /home/foo/Downloads/CR
But then I also extracted the zip and ran the command on the payload.bin, I extracted the rom and placed the contents of extract_android_ota_payload in the same directory as below;
META-INF
README.md
care_map.txt
compatibility.zip
extract_android_ota_payload.py
payload.bin
payload_properties.txt
update_payload
But I get the same message;
Traceback (most recent call last):
File "extract_android_ota_payload.py", line 12, in
import update_payload
File "/home/foo/Downloads/CARBON-CR-6.1-NOCT-RELEASE-mata-20180811-0405/update_payload/init.py", line 9, in
from checker import CHECKS_TO_DISABLE
ModuleNotFoundError: No module named 'checker'
Thanks

Do you have access to / can you try with python 2.x ?

Sorry I forgot to mention, I tried 2 & 3 and it's all the same...
Thanks

Same here. Using windows and Python 3.6.

Can you try with revision d4882134c1912347a7ae6b9acb246f5c7c8ae3d4 ?

I think you need to install python-protobuf. Not sure what is the exact package name with Slackware...

@cyxx It's just protobuf or protobuf3 like it's normally called;
http://slackbuilds.org/repository/14.2/misc/protobuf3/
I hope I can use protobuf3 for python3?

@cyxx It's just protobuf or protobuf3 like it's normally called;
http://slackbuilds.org/repository/14.2/misc/protobuf3/
I hope I can use protobuf3 for python3?
Do you know anything about this googletest-release-1.8.0?
Google on my phone is about all I can stomach, but I certainly don't want any Google installed into my box, that's a big no no for me.

@cyxx It's just protobuf or protobuf3 like it's normally called;
http://slackbuilds.org/repository/14.2/misc/protobuf3/
I hope I can use protobuf3 for python3?
Do you know anything about this Google Test, Google's C++ test framework?
Google on my phone is about all I can stomach, but I certainly don't want any Google installed into my box, that's a big no no for me.
Does protobuf3 just use Google Test as a Compile Dependency?

I have no idea why googletest is listed on that page.
Can we close this ? The original issue should be fixed now.
I can update the README protobuf is a dependency, though.

@cyxx, ok I haven't tested this out yet, I was trying to figure out this Google, if it was just a build dependancy or what, so I'll get right back with you, and let you know if this helps.
Thanks

Sorry I should of just read the slack-desc which is the package description when you install, telling you what it is;
protobuf3 (Google's data interchange format)
Protocol Buffers are Google's language-neutral, platform-neutral,
extensible mechanism for serializing structured data.
So yeah lots of Google here...
Ok I installed protobuf3-3.5.2 and still more problems;
python3 extract_android_ota_payload.py payload.bin /tmp
Traceback (most recent call last):
File "extract_android_ota_payload.py", line 13, in
import update_metadata_pb2
File "/home/rog/Build/extract_android_ota_payload/update_metadata_pb2.py", line 4, in
from google.protobuf import descriptor as _descriptor
File "/usr/lib64/python3.6/site-packages/google/protobuf/descriptor.py", line 37, in
import six
ModuleNotFoundError: No module named 'six'

Looks like protobuf has a dependency on python-six.

@cyxx Hi, ok, I'll look into that...
By the way, when we get done, hopefully figuring this out, hehe, it would be great if you made up a Dependency List here for others to read, because from what I'm seeing, these are not commonly installed distros. These are extras someone needs to install, and without a list, no one is going to know the Dependencies of this... :)

@cyxx Hi, ok, I'll look into that...
By the way, when we get done, hopefully figuring this out, hehe, it would be great if you made up a Dependency List here for others to read, because from what I'm seeing, these are not commonly installed in distros. These are extras someone needs to install, and without a list, no one is going to know the Dependencies of this... :)

You are right, I will update the README with the protobuf dependency.
Dependencies of protobuf should probably be handled by the distro package manager itself, though.
Thanks,

Well I just installed six;
https://slackbuilds.org/repository/14.2/python/six/
And it's still giving me the same messege;

python3 extract_android_ota_payload.py payload.bin /tmp
Traceback (most recent call last):
File "extract_android_ota_payload.py", line 13, in
import update_metadata_pb2
File "/home/rog/Build/extract_android_ota_payload/update_metadata_pb2.py", line 4, in
from google.protobuf import descriptor as _descriptor
File "/usr/lib64/python3.6/site-packages/google/protobuf/descriptor.py", line 37, in
import six
ModuleNotFoundError: No module named 'six'

Well I just installed six;
https://slackbuilds.org/repository/14.2/python/six/
And it's still giving me the same messege;

python3 extract_android_ota_payload.py payload.bin /tmp
Traceback (most recent call last):
File "extract_android_ota_payload.py", line 13, in
import update_metadata_pb2
File "/home/foo/Build/extract_android_ota_payload/update_metadata_pb2.py", line 4, in
from google.protobuf import descriptor as _descriptor
File "/usr/lib64/python3.6/site-packages/google/protobuf/descriptor.py", line 37, in
import six
ModuleNotFoundError: No module named 'six'

@cyxx Six installed, at first I installed by mistake for python2 LOL...

python3 extract_android_ota_payload.py payload.bin /tmp
Traceback (most recent call last):
File "extract_android_ota_payload.py", line 13, in
import update_metadata_pb2
File "/home/foo/Build/extract_android_ota_payload/update_metadata_pb2.py", line 216, in
has_default_value=False, default_value=unicode("", "utf-8"),
NameError: name 'unicode' is not defined

@cyxx Six installed, at first I installed by mistake for python2 LOL...
New problem now...

python3 extract_android_ota_payload.py payload.bin /tmp
Traceback (most recent call last):
File "extract_android_ota_payload.py", line 13, in
import update_metadata_pb2
File "/home/foo/Build/extract_android_ota_payload/update_metadata_pb2.py", line 216, in
has_default_value=False, default_value=unicode("", "utf-8"),
NameError: name 'unicode' is not defined

It seems the protoc compiler used to generate the update_metadata_pb2 expects python 2.x for the runtime. I added a check to error out on any other version for now.
I will look at how to support python 3.x or generate code for protobuf3 (different issue).

@cyxx hi, is there anyway to write the code, so that extract_android_ota_payload can be self-contained without the need to install any dependencies?
I know these are only a couple of things, compiling and packaging them isn't the problem, I'd rather wish I could simply take the contents of the pkg for both protobuf & six and place them under the extract_android_ota_payload directory and let it look for everything in needs in it's own path and work.
Or maybe you can simply supply protobuf & six to it, and make this work? If you could that would really be great!
Thanks

@cyxx hi, is there anyway to write the code, so that extract_android_ota_payload can be self-contained without the need to install any dependencies?
I know these are only a couple of things, compiling and packaging them isn't the problem, I'd rather wish I could simply take the contents of the pkg for both protobuf & six and place them under the extract_android_ota_payload directory and let it look for everything it needs in it's own path and work.
Or maybe you can simply supply protobuf & six to it, and make this work? If you could that would really be great!
Thanks

Ahh, first time to see this, nice, I'll give it a go and let you know...
Thanks

Well I gave it a shot, so not sure if an issue with pyinstaller, or not liking the code/source of extract_android_ota_payload?
When I then tried running it as;
python extract_android_ota_payload payload.bin /tmp
I get this;
File "extract_android_ota_payload", line 1
SyntaxError: Non-UTF-8 code starting with '\xe8' in file extract_android_ota_payload on line 2, but no encoding declared; see http://python.org/dev/peps/pep-0263/ for details
Hey look, I understand this is not your concern, but if you're into this, maybe you can play with pyinstaller and make extract_android_ota_payload payload.bin into a self contained app.
It's just fun Geek stuff to play around with, if you don't mind? Me I'm lost and have no idea with this now... LOL
Thanks

Well I gave it a shot, so not sure if an issue with pyinstaller, or not liking the code/source of extract_android_ota_payload?
When I then tried running it as;
python extract_android_ota_payload payload.bin /tmp
I get this;
File "extract_android_ota_payload", line 1
SyntaxError: Non-UTF-8 code starting with '\xe8' in file extract_android_ota_payload on line 2, but no encoding declared; see http://python.org/dev/peps/pep-0263/ for details
To do this, I just ran; pyinstaller extract_android_ota_payload.py
Hey look, I understand this is not your concern, but if you're into this, maybe you can play with pyinstaller and make extract_android_ota_payload payload.bin into a self contained app.
It's just fun Geek stuff to play around with, if you don't mind? Me I'm lost and have no idea with this now... LOL
Thanks

Well I gave it a shot, so not sure if an issue with pyinstaller, or not liking the code/source of extract_android_ota_payload?
When I then tried running it as;
python extract_android_ota_payload payload.bin /tmp
I get this;
File "extract_android_ota_payload", line 1
SyntaxError: Non-UTF-8 code starting with '\xe8' in file extract_android_ota_payload on line 2, but no encoding declared; see http://python.org/dev/peps/pep-0263/ for details
To do this, I just ran; pyinstaller extract_android_ota_payload.py
Then I ran the command in the dist directory is creates, which is the completed app...
Hey look, I understand this is not your concern, but if you're into this, maybe you can play with pyinstaller and make extract_android_ota_payload payload.bin into a self contained app.
It's just fun Geek stuff to play around with, if you don't mind? Me I'm lost and have no idea with this now... LOL
Thanks

Well I gave it a shot, so not sure if an issue with pyinstaller, or not liking the code/source of extract_android_ota_payload?
When I then tried running it as;
python extract_android_ota_payload payload.bin /tmp
I get this;
./extract_android_ota_payload payload.bin
Traceback (most recent call last):
File "extract_android_ota_payload.py", line 17, in
File "/usr/lib64/python2.7/site-packages/PyInstaller/loader/pyimod03_importers.py", line 389, in load_module
exec(bytecode, module.dict)
File "update_metadata_pb2.py", line 4, in
File "/usr/lib64/python2.7/site-packages/PyInstaller/loader/pyimod03_importers.py", line 389, in load_module
exec(bytecode, module.dict)
File "site-packages/google/protobuf/init.py", line 39, in
ImportError: No module named pkgutil
Failed to execute script extract_android_ota_payload
To do this, I just ran; pyinstaller extract_android_ota_payload.py
I ran the command in the dist directory it creates, which is the completed app...
Hey look, I understand this is not your concern, but if you're into this, maybe you can play with pyinstaller and make extract_android_ota_payload payload.bin into a self contained app.
It's just fun Geek stuff to play around with, if you don't mind? Me I'm lost and have no idea with this now... LOL
By the way I found this other source and I used the two python files and ran pyinstaller on them and I was able to make this work.
Maybe you'll find this source of interest;
https://gist.github.com/ius/42bd02a5df2226633a342ab7a9c60f15
Thanks

Well I gave it a shot, so not sure if an issue with pyinstaller, or not liking the code/source of extract_android_ota_payload?
When I then tried running it I get this;
./extract_android_ota_payload payload.bin
Traceback (most recent call last):
File "extract_android_ota_payload.py", line 17, in
File "/usr/lib64/python2.7/site-packages/PyInstaller/loader/pyimod03_importers.py", line 389, in load_module
exec(bytecode, module.dict)
File "update_metadata_pb2.py", line 4, in
File "/usr/lib64/python2.7/site-packages/PyInstaller/loader/pyimod03_importers.py", line 389, in load_module
exec(bytecode, module.dict)
File "site-packages/google/protobuf/init.py", line 39, in
ImportError: No module named pkgutil
Failed to execute script extract_android_ota_payload
This is odd, so not sure what's going on, because pkgutil is in python2 and python3...
To do this, I just ran; pyinstaller extract_android_ota_payload.py
I ran the command in the dist directory it creates, which is the completed app...
Hey look, I understand this is not your concern, but if you're into this, maybe you can play with pyinstaller and make extract_android_ota_payload payload.bin into a self contained app.
It's just fun Geek stuff to play around with, if you don't mind? Me I'm lost and have no idea with this now... LOL
By the way I found this other source and I used the two python files and ran pyinstaller on them and I was able to make this work.
Maybe you'll find this source of interest;
https://gist.github.com/ius/42bd02a5df2226633a342ab7a9c60f15
Thanks

I have no experience with pyinstaller myself but I will try to check this.
Thanks a lot for sharing the gist. I was not aware of it, I wrote the tool as I did not find anything, I guess I did not look hard enough !


WARL values for hvictl.IID

Section 7.3.2 states that hvictl.IID is WARL. Can you please clarify what determines the legal values for this field, specifically:

whether there are any values in the standard interrupt range 0-15 that are always illegal, always legal or implementation-defined; and
what constraints are likely for values 16 and above.

Thanks.

Section 7.3.2. says

IID is a WARL unsigned integer field with at least 6 implemented bits

The document might be too terse, but what it means is that there are some number of implemented bits for IID, a minimum of 6 and a maximum of 12 (because IID is bits 27:16 of hvictl).  If the number of implemented bits for IID is k, the valid values are all those representable in k bits, i.e., those in the range 0 to 2^k - 1.  That's the only reason the field is tagged as WARL.

Hi John,
I'd like further to clarify what happens when hvictl.IID is set to a value that corresponds to an undefined or inappropriate standard interrupt. For example, what happens if it is set to value 4 (the old UTIE of the deprecated N extension) or 7 (M-mode MTIE, which would be inappropriate for VS-mode). When hvictl.VTI=1 and nothing else is pending, does this undefined or inappropriate interrupt get reported by vstopi? If some other interrupt is also pending, what priority would be used for this undefined or inappropriate interrupt in the highest-priority arbitration algorithm?
I was thinking that the WARL behavior of the IID field would exclude these cases, but from what you've said I'm not sure now that this is the case.
Thanks.

For example, what happens if it is set to value 4 (the old UTIE of the deprecated N extension) or 7 (M-mode MTIE, which would be inappropriate for VS-mode). When hvictl.VTI=1 and nothing else is pending, does this undefined or inappropriate interrupt get reported by vstopi?

It does, yes.  Software has the responsibility not to do something inappropriate.

If some other interrupt is also pending, what priority would be used for this undefined or inappropriate interrupt in the highest-priority arbitration algorithm?

This is fully handled by the algorithm of Section 7.3.3, "Virtual supervisor top interrupt CSR (vstopi)".  Assume for your example that hvictl has fields VTI = 1 and IID = 4 or 7, and check the complete list of bullet items at the top of that section.  The only other possible candidate for the top interrupt in vstopi is number 9, SEI, from the first two bullets.  The priority number for that candidate SEI is either taken from vstopei (first bullet) or is 256 (second bullet), so there's no uncertainty.

Ok, thanks.

I'm sorry, I'm still trying to understand the full details here, and I think I closed this too early.
Is it possible for there to be a tie in the indicated priority for an "undefined" virtual interrupt (e.g. when VTI=1, ID=4) and an SEI from the first two bullets? If so, how is the tiebreak performed, since the "undefined" virtual interrupt has no default priority specified for it?
Apologies in advance for my lack of understanding.

The problem with a virtual interrupt having a tie in priority number should be addressed by PR #33.


[backport] Make cupy.tensordot use Tensor Core also in case of compute-capability > 70

Backport of #2328

[automatic post] Jenkins, test this please.

Jenkins CI test (for commit a54cb2b9dc25a687da762d31f2151e3af9770d43, target branch v6) failed with status FAILURE.

Jenkins failure seems unrelated to this PR.

LGTM.


Unable to make release build on iOS

First off, great plugin, guys! It's crazy fast and on android it runs amazingly.
I have some issues on iOS though. I have a ionic framework project and when I build the project normally everything is OK. When I build it for release I have the output below.
I am running Cordova v 6.4.0 and xcode 8.0.
Thanks for the help and happy new year!
ld: warning: ignoring file /app/fitpass-user-app/platforms/ios/build/emulator/libCordova.a, file was built for archive which is not the architecture being linked (i386): /app/fitpass-user-app/platforms/ios/build/emulator/libCordova.a
Undefined symbols for architecture i386:
  "_CDVPageDidLoadNotification", referenced from:
      Fitpass_Romania.QRScanner.pluginInitialize () -> () in QRScanner.o
  "_CDVPluginHandleOpenURLNotification", referenced from:
      -[CDVInAppBrowser openInSystem:] in CDVInAppBrowser.o
  "_OBJC_CLASS_$_CDVAppDelegate", referenced from:
      _OBJC_CLASS_$_AppDelegate in AppDelegate.o
  "_OBJC_CLASS_$_CDVCommandDelegateImpl", referenced from:
      _OBJC_CLASS_$_MainCommandDelegate in MainViewController.o
  "_OBJC_CLASS_$_CDVCommandQueue", referenced from:
      _OBJC_CLASS_$_MainCommandQueue in MainViewController.o
  "_OBJC_CLASS_$_CDVInvokedUrlCommand", referenced from:
      objc-class-ref in QRScanner.o
  "_OBJC_CLASS_$_CDVPlugin", referenced from:
      _OBJC_CLASS_$_FacebookConnectPlugin in FacebookConnectPlugin.o
      _OBJC_CLASS_$_CDVInAppBrowser in CDVInAppBrowser.o
      _OBJC_CLASS_$_IntercomBridge in IntercomBridge.o
      _OBJC_CLASS_$_SQLitePlugin in SQLitePlugin.o
      _OBJC_CLASS_$_Diagnostic in Diagnostic.o
      _OBJC_CLASS_$_QRScanner in QRScanner.o
  "_OBJC_CLASS_$_CDVPluginResult", referenced from:
      objc-class-ref in FacebookConnectPlugin.o
      objc-class-ref in CDVInAppBrowser.o
      objc-class-ref in IntercomBridge.o
      objc-class-ref in SQLitePlugin.o
      objc-class-ref in Diagnostic.o
      objc-class-ref in QRScanner.o
  "_OBJC_CLASS_$_CDVUIWebViewDelegate", referenced from:
      objc-class-ref in CDVInAppBrowser.o
  "_OBJC_CLASS_$_CDVUserAgentUtil", referenced from:
      objc-class-ref in CDVInAppBrowser.o
  "_OBJC_CLASS_$_CDVViewController", referenced from:
      _OBJC_CLASS_$_MainViewController in MainViewController.o
  "_OBJC_METACLASS_$_CDVAppDelegate", referenced from:
      _OBJC_METACLASS_$_AppDelegate in AppDelegate.o
  "_OBJC_METACLASS_$_CDVCommandDelegateImpl", referenced from:
      _OBJC_METACLASS_$_MainCommandDelegate in MainViewController.o
  "_OBJC_METACLASS_$_CDVCommandQueue", referenced from:
      _OBJC_METACLASS_$_MainCommandQueue in MainViewController.o
  "_OBJC_METACLASS_$_CDVPlugin", referenced from:
      _OBJC_METACLASS_$_FacebookConnectPlugin in FacebookConnectPlugin.o
      _OBJC_METACLASS_$_CDVInAppBrowser in CDVInAppBrowser.o
      _OBJC_METACLASS_$_IntercomBridge in IntercomBridge.o
      _OBJC_METACLASS_$_SQLitePlugin in SQLitePlugin.o
      _OBJC_METACLASS_$_Diagnostic in Diagnostic.o
      _OBJC_METACLASS_$_QRScanner in QRScanner.o
  "_OBJC_METACLASS_$_CDVViewController", referenced from:
      _OBJC_METACLASS_$_MainViewController in MainViewController.o
  "_UTTypeConformsTo", referenced from:
      -[PodIntercom_FLAnimatedImage initWithAnimatedGIFData:optimalFrameCacheSize:predrawingEnabled:] in Intercom(FLAnimatedImage.o)
  "_UTTypeCopyPreferredTagWithClass", referenced from:
      -[PodIntercom_AFStreamingMultipartFormData appendPartWithFileURL:name:error:] in Intercom(AFURLRequestSerialization.o)
      ___60+[PodIntercom_ITBUpload createUploadForAssetUrl:completion:]_block_invoke in Intercom(ITBUpload.o)
  "_UTTypeCreatePreferredIdentifierForTag", referenced from:
      -[PodIntercom_AFStreamingMultipartFormData appendPartWithFileURL:name:error:] in Intercom(AFURLRequestSerialization.o)
  "_kUTTagClassFilenameExtension", referenced from:
      -[PodIntercom_AFStreamingMultipartFormData appendPartWithFileURL:name:error:] in Intercom(AFURLRequestSerialization.o)
  "_kUTTagClassMIMEType", referenced from:
      -[PodIntercom_AFStreamingMultipartFormData appendPartWithFileURL:name:error:] in Intercom(AFURLRequestSerialization.o)
      ___60+[PodIntercom_ITBUpload createUploadForAssetUrl:completion:]_block_invoke in Intercom(ITBUpload.o)
      -[PodIntercom_AFStreamingMultipartFormData appendPartWithFileURL:name:error:] in Intercom(AFURLRequestSerialization.o)
      ___60+[PodIntercom_ITBUpload createUploadForAssetUrl:completion:]_block_invoke in Intercom(ITBUpload.o)
  "_kUTTypeGIF", referenced from:
      -[PodIntercom_FLAnimatedImage initWithAnimatedGIFData:optimalFrameCacheSize:predrawingEnabled:] in Intercom(FLAnimatedImage.o)
ld: symbol(s) not found for architecture i386
clang: error: linker command failed with exit code 1 (use -v to see invocation)
** BUILD FAILED **
The following build commands failed:
    Ld /Users/macbookpro/Library/Developer/Xcode/DerivedData/Fitpass_Romania-awasfszkgkeiqlbnvhsazwixihie/Build/Intermediates/Fitpass\ Romania.build/Release-iphonesimulator/Fitpass\ Romania.build/Objects-normal/i386/Fitpass\ Romania normal i386
(1 failure)
Error: Error code 65 for command: xcodebuild with args: -xcconfig,/app/fitpass-user-app/platforms/ios/cordova/build-release.xcconfig,-workspace,Fitpass Romania.xcworkspace,-scheme,Fitpass Romania,-configuration,Release,-sdk,iphonesimulator,-destination,platform=iOS Simulator,name=iPhone 5s,build,CONFIGURATION_BUILD_DIR=/app/fitpass-user-app/platforms/ios/build/emulator,SHARED_PRECOMPS_DIR=/app/fitpass-user-app/platforms/ios/build/sharedpch

Thanks! Glad you're liking it.
Looking at the log you provided, I don't see any indication that this issue is caused by cordova-plugin-qrscanner. It looks like a project configuration issue (or maybe a cordova issue). Just looking around briefly, it seems similar to (but not the same as) this stack overflow issue. I'm afraid I'm not the best to help debug, but I would recommend you confirm you're running the latest version of Xcode and any other related software.
My other go-to for debugging Cordova issues is to just start a completely new Cordova/Ionic project, and try to install plugins until you can narrow down where the issue is happening.
Since this issue doesn't seem related to this repo, I'm going to close it for now, but please let me know if I should reopen it.


TestEvents - Remove Goerli

This is a sub-task to the issue #1758 that concerns the test TestEvents. The test is using the Goerli networks that will be deprecated soon.

@IronGauntlets, could I assign this one to you also? Thanks in advance!


Place the body of the texts a little lower when toggling focus mode

Dear developer, thank you for creating such great theme! I love the focus mode and the immersing experience when toggling it. Yet there is a little problem sometimes, when I try to click on the first line of the texts, this will bring the page header to the front more often. Also, when I zoom in a bullet list, it's really difficult to click on the navigation bar on the top, every time this action will toggle the page header instead. So I wonder if you could please consider placing the body of the contents a little lower to avoid contradiction. It would be so great if you could take my advice into account~

This should be fixed now


enable push nuget package to myget.org for every check-in

Current coverage is 76.22%

Merging #333 into master will not affect coverage as of d01a4ce

@@            master    #333   diff @@
======================================
  Files           41      41
  Stmts         4076    4076
  Branches       353     353
  Methods
======================================
  Hit           3107    3107
  Partial        148     148
  Missed         821     821

Review entire Coverage Diff as of d01a4ce

Powered by Codecov. Updated on successful CI builds.


PEP 541: ownership of the 'some' package

I believe that the some package on PyPI should be considered invalid per PEP 541:

A project published on the Package Index meeting ANY of the following is considered invalid and will be removed from the Index:

project is name squatting (package has no functionality or is empty);

since the package has exactly one release (over two years ago), consisting of a setup.py that contains only a description, an email address, and a URL for the home page (which doesn't exist, not even in archive.org), and no other meaningful files.
Please could ownership of the name be transferred to me so I can publish my own some package? My PyPI username is anowlcalledjosh.
I contacted the uploader via the email address listed in the package on the 15th of October, but have not received a reply.

Hi @anowlcalledjosh, apologies for the delay in processing this request.
The project is indeed invalid so we will proceed to transfer it if you are still interested.

No worries! I'm still interested in using that name, yep.

complete.


Progress on third Milestone

Hello, some time ago you announced that you are working on a new stable stable build. How is it going so far? Any new features coming? :-)

Hi thanks for asking :) Last release was 0.6.0, end of December, in case you missed it.
Not sure which milestone/feature you are referring to. According to your past comments in this repository I'm going to assume you are after https://github.com/juliandescottes/piskel/issues/293 .
It is currently worked on by @GMartigny in https://github.com/juliandescottes/piskel/pull/401 . Feel free to comment in the issue or in the PR if you want.
Regarding the overall milestones/roadmaps:
I gave up on roadmaps and planning for Piskel, because I can never plan how much time I will have to work on it. I just do a release as soon as enough features have piled up !
Next release will be 0.7.0. For now there is not enough material to do one. I want to do it as soon as https://github.com/juliandescottes/piskel/issues/293 and https://github.com/juliandescottes/piskel/issues/414 are implemented.
I am closing this as this is not an "issue" per se. Feel free to reach out by email or twitter if you want/need some information.

Oh, sorry for the confusion. I actually wrote that blindly while on being on a slow connection. Thanks for the answer. I won't annoy anymore :)

Don't worry, no harm done :) Github is missing some kind of integrated forum I guess.
We could use the Gitter chat available at https://gitter.im/juliandescottes/piskel for this kind of discussions. Not sure if I can get email notifications from this tool.


scala 2.10 branch for java 7

java7 branch is tracking scala 2.11

@andy1138 what version of java is the 1.0.1 release aimed at?
If it's java6, any chance of a proper 2.10/2.11 release for java7?

By 'aimed at' are you talking source code or binaries (as you know the
problem incompatibilities in the java source code not binaries )
Anything with version 1.x.x will be java6 source code ( 2.x.x  will be used
for java7 (and above) source code)
Both version have compiled targeting (ie -target:jvm-1.6 ). This AFAIK is
the same as the rest of the current scala distribution.
What is the advantage/reason  ?
On 19 January 2015 at 10:41, Sam Halliday<EMAIL_ADDRESS>wrote:

@andy1138 https://github.com/andy1138 what version of java is the 1.0.1
release aimed at?
If it's java6, any chance of a proper 2.10/2.11 release for java7?
—
Reply to this email directly or view it on GitHub
https://github.com/scala/scala-swing/issues/7#issuecomment-70474388.

I need source compat because we're compiling against scala-swing. Can you please release a 2.x.x for 2.10/2.11?

i.e. our java scala2.10 code won't compile if we compile against scala-swing compiled for java6.

You only need to include
libraryDependencies +=  "org.scala-lang.modules" %% "scala-swing" % "1.0.1"
in your build.sbt to make it work with any scala 2.10/11 and with
java6/7/8. You dont need to recompile the scala-swing source code for every
project.
On 19 January 2015 at 11:50, Sam Halliday<EMAIL_ADDRESS>wrote:

i.e. our java scala2.10 code won't compile if we compile against
scala-swing compiled for java6.
—
Reply to this email directly or view it on GitHub
https://github.com/scala/scala-swing/issues/7#issuecomment-70481810.

hmm, ok. Maybe things have changed, but this certainly didn't work in scala 2.9. I'll check and let you know.

you sure? http://search.maven.org/#search|ga|1|scala-swing

the "org.scala-lang scala-swing 2.10.4" artifact definitely doesn't work with java 7.

I also can't find scala-library for 2.10.4 in maven so do you know that
scala 2.10 is distributed that way?
I've just downloaded scala-2.10.4 and used java 1.7 to create a Frame. so I
would use the one included with the download, ie .zip/tgz (in the same way
as you are probably using scala-library )
Andys-MacBook-Pro:scala-2.10.4 andy$ scala
Welcome to Scala version 2.10.4 (Java HotSpot(TM) 64-Bit Server VM, Java
1.7.0_45).
Type in expressions to have them evaluated.
Type :help for more information.
scala> import scala.swing._
import scala.swing._
scala> import java.awt._
import java.awt._
scala> val f = new Frame("Hello")
f: java.awt.Frame =
java.awt.Frame[frame0,0,23,0x0,invalid,hidden,layout=java.awt.BorderLayout,title=Hello,resizable,normal]
scala> f.setVisible( true )
On 19 January 2015 at 15:07, Sam Halliday<EMAIL_ADDRESS>wrote:

the "org.scala-lang scala-swing 2.10.4" artifact definitely doesn't work
with java 7.
—
Reply to this email directly or view it on GitHub
https://github.com/scala/scala-swing/issues/7#issuecomment-70507906.

http://search.maven.org/#artifactdetails|org.scala-lang|scala-library|2.10.4|jar

so scala-swing-2.10.4 can be found at
http://search.maven.org/#artifactdetails|org.scala-lang|scala-swing|2.10.4|jar
On 19 January 2015 at 15:53, Sam Halliday<EMAIL_ADDRESS>wrote:

http://search.maven.org/#artifactdetails|org.scala-lang|scala-library|2.10.4|jar
—
Reply to this email directly or view it on GitHub
https://github.com/scala/scala-swing/issues/7#issuecomment-70515708.

yes, I used that, and that's the one that causes the source compile problems above.

for this to work, the java7 branch of scala-swing needs to be compiled with java 7 (optionally with java6 class format, for binary compatibility, not source). Since we are actually using the Swing API and the Scala Swing API, everything needs to be right at the source level.

FYI, this works if we build locally as mentioned above.

Hi
FYI, there is now a java7 build in mavin at
http://search.maven.org/#artifactdetails|org.scala-lang.modules|scala-swing_2.11|2.0.0-M1|bundle
it's more to see of we can do a build but may also be something you're
interested in
Thanks
Andy
On 19 January 2015 at 16:03, Sam Halliday<EMAIL_ADDRESS>wrote:

FYI, this works if we build locally as mentioned above.
—
Reply to this email directly or view it on GitHub
https://github.com/scala/scala-swing/issues/7#issuecomment-70517415.

oh cool! Will try this out

@andy1138 and for scala 2.10?

I'll see what I can do (now I'm getting better with the release process)
On 5 February 2015 at 12:53, Sam Halliday<EMAIL_ADDRESS>wrote:

@andy1138 https://github.com/andy1138 and for scala 2.10?
—
Reply to this email directly or view it on GitHub
https://github.com/scala/scala-swing/issues/7#issuecomment-73041293.

@andy1138 have a look at a few of my projects for travis and crossbuild ideas. Don't use SBT to manage the crossbuild, it's horrible. paulp's sbt script works like sbt ++2.10.4 deploy etc

ok, thanks
deploy is also tied-up with some scripts from the main scala build so there
is limited scope for maneuver  but I'll play around with things and see
what happens.
On 5 February 2015 at 13:19, Sam Halliday<EMAIL_ADDRESS>wrote:

@andy1138 https://github.com/andy1138 have a look at a few of my
projects for travis and crossbuild ideas. Don't use SBT to manage the
crossbuild, it's horrible. paulp's sbt script works like sbt ++2.10.4
deploy etc
—
Reply to this email directly or view it on GitHub
https://github.com/scala/scala-swing/issues/7#issuecomment-73044459.

@andy1138 any closer to a 2.10 binary?
Isn't it just a simple case of
sbt ++2.10.4 publish

??

fwiw, I wanted a version of 1.0.x that built on JDK 8, so I made one on a new java8-2.11.x branch. I ran a couple of the little demo programs with it and it seemed to work ok. I don't plan to publish an artifact from the branch.

oh I don't actually need this anymore. vote to close?

Hi @SethTisue
If your now creating JDK8 versions of the 1.0.x branch can you update the readme.md  on the https://github.com/scala/scala-swing  (the old plan was that 2.0.x was based on the change that you have now pulled into the 1.0x branch, I no longer know what the distinction is, or why you cant use the 2.0x version  )

@andy1138 This was purely in the context of Typesafe's Reactive Platform, which we're now building on JDK 8 instead of 6 like before. A core goal of the Reactive Platform is stability and using proven versions of things, so it would have felt odd to me to ship with a 2.0.x-labeled version of scala-swing given that there isn't an actual release in that series yet that isn't a milestone.
Also, I diffed the 1.0.x and 2.0.x trees and saw a lot of changes I'm not really in a position to evaluate (without sinking time into it, anyway), so sticking with 1.0.x but just flipping the 6 vs 8 switch seemed like the most conservative approach.
For a future version of RP, we'd consider including a 2.0.x release if by that time there is one that isn't a milestone.
I chose not to update the readme because I'm not really looking to give the branch I made any kind of "official" status outside the specific context of the Reactive Platform. If you're worried about users getting confused, another possible approach would be for us to relocate the branch to the typesafehub organization's fork of this repo. If you'd prefer that, let me know.
I have not followed scala-swing developments closely at all, so if any of the above seems misguided to you or based on incomplete or incorrect information, please let me know.  /cc @eed3si9n @adriaanm


Show the submit button to the end of the form, SDC

Name of feature to enhance
The save/submit button is in the dropdown in the top right menu. We want to show it at the bottom of the form inside a fixed bar.
Description of feature
Add the save/submit button as a button as seen below:

cc: @HenryRae

@rowo

Submit button is part of datacapture module.
questionnaireSubmitButtonStyle attribute is used to set the style.
Widget.Material3.Button is default style. It can be customized at the application level.
Button text and visibility can also be customized.
Currently the button position is right and bottom to the parent.

You can please try https://github.com/google/android-fhir/actions build.


Enhancing Lightbox Directive for Generic Application

Removed hardcoded instances of picture.image_url and picture.medium_url from the ofLightBox directive
Added thumbnailUrl and displayUrl which serve as final urls to be added into the templates for the Light Box directive

This is a generic change in code so that calls to this directive can be made without changing js code.

Coverage remained the same at 99.297% when pulling 042c3299d60a4c9a267034e15883682efd32b05c on TanSA05:tansa05_lightboxdir into 9b6ff7498fb083200764289378d6369aef7ccc9b on openfarmcc:master.

Coverage remained the same at 99.297% when pulling 3750c653728df2229e2cfc7ec68be762df1aa588 on TanSA05:tansa05_lightboxdir into 9b6ff7498fb083200764289378d6369aef7ccc9b on openfarmcc:master.


Add *.g8s wildcard

In Azure we need to have explicit *.g8s for
services like happa, api, etc. to work.
We don't use ingress dns at all, so just remove it.
This is not required in AWS.

Why we don't use ingress for happa, api, etc.?

We use ingress, we just need explicit wildcard DNS for ingress.
*.g8s.basedomain --> ingress load balancer
For AWS we don't need that and wildcard like this *.basedomain --> ingress load balancer is enough.

we just need explicit wildcard DNS for ingress

Does it mean that we'll have to create DNS entry for every guest cluster ingress our customer create?

no no. All will be working fine for any dns names as before.
Example, if you have
*.domain -> IP1
b.domain -> IP2
*.b.domain -> IP1

And want to resolve a.b.domain, so it will be reolved to IP1. Problem is that AWS allows to resolve this w/o 3rd entry (*.b.domain --> IP1), that's why we did not have 3rd entry in AWS. Azure just drops a.b.domain if there is b.domain, but no *.b.domain
As per RFC this looks right that Azure drops this :)

When the query name or a name between the wildcard domain and
the query name is know to exist.  For example, if a wildcard
RR has an owner name of "*.X", and the zone also contains RRs
attached to B.X, the wildcards would apply to queries for name
Z.X (presuming there is no explicit information for Z.X), but
not to B.X, A.B.X, or X.

I think we have a wildcard on AWS as well.

we do, but only one.


Mocha Sidebar test runner doesn't load global.js before the test?

Yeah, that's my question...
I tried to run a bunch of tests that depends on a global initializer for DB but the sidebar runner seems to ignore global.js and run just the test and its hooks (before, after, etc).
There's any thing I can do with options or something like that to force the global call?

How do you run the tests from the command line? Do you add global.js to
--requires?
If so, there is a mocha.requires option in the preferences
On Feb 20, 2018 10:41 PM, "milrren"<EMAIL_ADDRESS>wrote:
Yeah, that's my question...
I tried to run a bunch of tests that depends on a global initializer for DB
but the sidebar runner seems to ignore global.js and run just the test and
its hooks (before, after, etc).
There's any thing I can do with options or something like that to force the
global call?
—
You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub
https://github.com/maty21/mocha-sidebar/issues/67, or mute the thread
https://github.com/notifications/unsubscribe-auth/AF2uYyj_besBQc9z6ii8qh44b6_1Fh9Qks5tWyxPgaJpZM4SMn3r
.

Hi @yehiyam thanks for the answer!
I run my tests by a npm script mocha:
"mocha": "NODE_ENV=test ./node_modules/mocha/bin/mocha"
It goes throught my test folder and recognize either mocha.opts and global.js before running my tests with no need to use --require option.
I tried to include this option in mocha.require settings for sidebar and it just does not run my tests at all...
Consider this project structure:

package.json
test/global.js
test/mocha.opts
test/unit/test.js

How should I set the mocha.require?

hi @milrren
Is this global.js loading documented in mocha? Could you point me the either the documentation or the implementation?

+1 for me.. no way to understand how to pass to sidebar mocha the information that a file common.js should be executed because it contains the before function.

@milrren could you shared your solution in case you reached one?

I am facing the same issue.
When I run "npm test" [mocha './test/**/*.spec.js'], it has the same structure.
I have a setup.js (  @milrren  called it global.js) file in ./test but it's being ignore when I use mocha-sidebar.
To avoid this behavior with mocha-sidebar I have to add at the beginning of each test file this: require("../setup.spec");
//  setup.spec.js
const chaiAsPromised = require("chai-as-promised");
const chai = require("chai");

chai.use(chaiAsPromised);
chai.should();

const sequelize = require("../src/models/index");

before(async () => {
	await sequelize.sync({ force: true });
});

after(async () => {
	await sequelize.close();
});

I have this error:
TypeError: Cannot read property 'eventually' of undefined
If I add that file as required I have the message: "before is not defined"

{
	"folders": [
		{
			"path": "."
		}
	],
	"settings": {
		"mocha.env": {
			"NODE_ENV": "test",
			"DATABASE_URL": "mariadb://root:mypass@<IP_ADDRESS>:3306/node_test_travis",
			"DATABASE_USE_SSL": "false"
		},
		"mocha.files.glob": "./test/**/*.spec.js",
		"mocha.parallelTests": 1,
		// "mocha.coverage": null
		"mocha.requires": ["chai-as-promised", "chai", "mocha", "./test/setup.spec.js"],
		"mocha.runTestsOnSave": "true",
		"mocha.options": {

		}
	}
}

Does anyone know how can I run setup.spec.js before everything?
require("./setup.spec"); in each test file is not an option.

This question should be re-opened as we don't have an elegant solution as far as I can see


Update sbt-idea-plugin to 3.20.3

About this PR
📦 Updates org.jetbrains:sbt-idea-plugin from 3.20.2 to 3.20.3
📜 GitHub Release Notes - Version Diff
Usage
✅ Please merge!
I'll automatically update this PR to resolve conflicts as long as you don't change it yourself.
If you'd like to skip this version, you can just close this PR. If you have any feedback, just mention me in the comments below.
Configure Scala Steward for your repository with a .scala-steward.conf file.
Have a fantastic day writing Scala!

⚙ Adjust future updates
Add this to your .scala-steward.conf file to ignore future updates of this dependency:
updates.ignore = [ { groupId = "org.jetbrains", artifactId = "sbt-idea-plugin" } ]

Or, add this to slow down future updates of this dependency:
dependencyOverrides = [{
  pullRequests = { frequency = "30 days" },
  dependency = { groupId = "org.jetbrains", artifactId = "sbt-idea-plugin" }
}]

labels: sbt-plugin-update, early-semver-patch, semver-spec-patch, commit-count:1

Superseded by #389.


Specify version from pypi for jvc_projector module

Hi, I notice that your README specifies pip install -e git+https://github.com/bezmi/jvc_projector.git#egg=jvc-projector-remote for the package. Please change this to a release version from pypi. Development is done directly on the main branch, so stability issues may arise.
The current version is incompatible with python <=3.8 (fix coming):
oznu/docker-homebridge#491
bezmi/jvc_projector#19
Staying pinned to a working version and doing testing before bumping it would be preferable.

This was done in v1.3.1 - thanks for your input.

note, v0.2.3 has been released on pypi which fixes the python 3.8 compatibility issues.