Distributed Tensorflow fails : no device

I am following the example in https://www.tensorflow.org/versions/r0.10/how_tos/distributed/  to create a distributed tensorflow model with a parameter server and n workers. I do not have any GPU, all work is distributed on CPU
In the chief worker, I want to save my variables every some steps, but invoking the saver results in the following exception :
Cannot assign a device to node 'save_1/RestoreV2_21':
Could not satisfy explicit device specification
'/job:ps/task:0/device:CPU:0' because no devices matching that
specification are registered in this process; available devices:
/job:localhost/replica:0/task:0/cpu:0

[[Node: save_1/RestoreV2_21 = RestoreV2[dtypes=[DT_INT32],
_device="/job:ps/task:0/device:CPU:0"](save_1/Const,
save_1/RestoreV2_21/tensor_names, save_1/RestoreV2_21/shape_and_slices)]]

I tried :
server = tf.train.Server(cluster,
                         job_name=self.calib.params['job_name'],
                         task_index=self.calib.params['task_index'],
                         config=tf.ConfigProto(allow_soft_placement=True)

I am using a supervisor as in the example in the documentation:
sv = tf.train.Supervisor(
                         is_chief=is_chief,
                       ...)

and creating my session as follows :
sess = sv.prepare_or_wait_for_session(server.target) as sess:

but I am still having the exact same error.
When I print server.target I obtain
grpc://localhost:xxxx

where xxxx is 2200 for my first worker, 2201 for my second worker and so on

Although this kind of questions should be asked on StackOverflow, I recommend you look up the latest documentation, the preferred way to do so seems to be MoniteredTrainingSession.

Can you share a complete reproducible example? As I mentioned on Stack Overflow, the direct cause of the error message is that a Session("") is being used to restore the checkpoint, whereas it should be a Session(server.target). It appears that you're doing the right thing by passing server.target to sv.prepare_or_wait_for_session(), so this could be a bug in the Supervisor or SessionManager code.
Can you also let us know which version of the code you are using, and the complete stack trace for the error? Thanks!

Hello,
I am using tensorflow1.0 and keras 1.2.2 to generate the model. Below is a complete code to reproduce the error. To test, please start the following three processes
python test.py --job_name ps
python test.py --job_name worker --task_index 0
python test.py --job_name worker --task_index 0

Here is the code of the file test.py
import os
import numpy as np
import pandas as pd
import argparse

from lcg import quilt

from keras.models import Sequential
from keras.layers.core import Dense
from keras.regularizers import l2
import tensorflow as tf
import keras

nb_samples = 50
nb_features = 5
X_train = np.random.randn(nb_samples * nb_features).reshape((nb_samples, nb_features))
Y_train = np.random.randn(nb_samples).reshape((nb_samples, 1))

def build_keras_model(input_dim):
  hidden_dim = 10

  model = Sequential()
  model.add(Dense(input_dim = input_dim,
                  output_dim=hidden_dim,
                  activation='tanh'
                  ))

  model.add(Dense(output_dim=1, activation='linear'))

  model.compile(loss='mse', optimizer='adam')

  return model

################################################
# DISTRIBUTE
################################################

parser = argparse.ArgumentParser(description='tensorflow')
parser.add_argument('--job_name', dest='job_name')
parser.add_argument('--task_index', dest='task_index', default=0)
args = parser.parse_args()

ps_hosts = ['localhost:2222']
worker_hosts = ['localhost:2223', 'localhost:2224']
job_name = args.job_name
task_index = int(args.task_index)

# Create a cluster from the parameter server and worker hosts.
cluster = tf.train.ClusterSpec({"ps": ps_hosts, "worker": worker_hosts})

server = tf.train.Server(cluster,
                         job_name=job_name,
                         task_index=task_index,
                         config=tf.ConfigProto(log_device_placement=True,
                                               inter_op_parallelism_threads=1,
                                               intra_op_parallelism_threads=1))

if job_name =='ps':
  server.join()

else:
  with tf.device(tf.train.replica_device_setter(
                              worker_device="/job:worker/task:%d" % task_index,
                              cluster=cluster)):

    keras.backend.set_learning_phase(1)
    keras.backend.manual_variable_initialization(True)

    model = build_keras_model(nb_features)
    preds = model.output
    targets = tf.placeholder(tf.float32, [None, 1])
    total_loss = tf.reduce_mean(
                        keras.objectives.mean_squared_error(targets, preds))

    global_step = tf.Variable(0, name="global_step", trainable=False)

    is_chief=(task_index == 0)

    opt = tf.train.AdamOptimizer()

    train_op = opt.minimize(total_loss, global_step=global_step)

    init_op = tf.global_variables_initializer()

    sv = tf.train.Supervisor(
          is_chief=is_chief,
          logdir="/tmp/train_logs",
          init_op=init_op,
          global_step=global_step)

    print '######################################### ALL CREATED'
    sess = sv.prepare_or_wait_for_session(server.target)
    print '#######  SESSION OK ********'
    local_step = 0
    while True:
      train_feed = {model.input: X_train, targets: Y_train}

      _, step = sess.run([train_op, global_step], feed_dict=train_feed)
      loss = sess.run(total_loss, feed_dict = train_feed)
      if is_chief:
        model.save_weights('weights.h5')
      local_step += 1
      print 'local_step : ', local_step, 'global_step :', step, 'total_loss:', loss

      if step >= 20:
        break

    # Ask for all the services to stop.
    sv.stop()

Can you please share the complete stack trace for the error you're seeing as well?

Here is the complete stack trace
Traceback (most recent call last):

File "tensorflow_data_parallel.py", line 113, in
model.save_weights('weights.h5')
File "..../keras-1.2.2-1/lib/python2.7/site-packages/keras/engine/topology.py", line 2652, in save_weights
self.save_weights_to_hdf5_group(f)
File "..../keras-1.2.2-1/lib/python2.7/site-packages/keras/engine/topology.py", line 2668, in save_weights_to_hdf5_group
weight_values = K.batch_get_value(symbolic_weights)
File "..../keras-1.2.2-1/lib/python2.7/site-packages/keras/backend/tensorflow_backend.py", line 1834, in batch_get_value
return get_session().run(xs)
File "..../tensorflow-1.0.0/lib/tensorflow/python/client/session.py", line 767, in run
run_metadata_ptr)
File "..../tensorflow-1.0.0/lib/tensorflow/python/client/session.py", line 965, in _run
feed_dict_string, options, run_metadata)
File "..../tensorflow-1.0.0/lib/tensorflow/python/client/session.py", line 1015, in _do_run
target_list, options, run_metadata)
File "..../tensorflow-1.0.0/lib/tensorflow/python/client/session.py", line 1035, in _do_call
raise type(e)(node_def, op, message)
tensorflow.python.framework.errors_impl.InvalidArgumentError: Cannot assign a device to node 'save/RestoreV2_19': Could not satisfy explicit device specification '/job:ps/task:0/device:CPU:0' because no devices matching that specification are registered in this process; available devices: /job:localhost/replica:0/task:0/cpu:0
[[Node: save/RestoreV2_19 = RestoreV2[dtypes=[DT_INT32], _device="/job:ps/task:0/device:CPU:0"](save/Const, save/RestoreV2_19/tensor_names, save/RestoreV2_19/shape_and_slices)]]
Caused by op u'save/RestoreV2_19', defined at:
File "tensorflow_data_parallel.py", line 101, in
global_step=global_step)
File "..../tensorflow-1.0.0/lib/tensorflow/python/training/supervisor.py", line 313, in init
self._init_saver(saver=saver)
File "..../tensorflow-1.0.0/lib/tensorflow/python/training/supervisor.py", line 459, in _init_saver
saver = saver_mod.Saver()
File "..../tensorflow-1.0.0/lib/tensorflow/python/training/saver.py", line 1051, in init
self.build()
File "..../tensorflow-1.0.0/lib/tensorflow/python/training/saver.py", line 1081, in build
restore_sequentially=self._restore_sequentially)
File "..../tensorflow-1.0.0/lib/tensorflow/python/training/saver.py", line 675, in build
restore_sequentially, reshape)
File "..../tensorflow-1.0.0/lib/tensorflow/python/training/saver.py", line 402, in _AddRestoreOps
tensors = self.restore_op(filename_tensor, saveable, preferred_shard)
File "..../tensorflow-1.0.0/lib/tensorflow/python/training/saver.py", line 242, in restore_op
[spec.tensor.dtype])[0])
File "..../tensorflow-1.0.0/lib/tensorflow/python/ops/gen_io_ops.py", line 668, in restore_v2
dtypes=dtypes, name=name)
File "..../tensorflow-1.0.0/lib/tensorflow/python/framework/op_def_library.py", line 763, in apply_op
op_def=op_def)
File "..../tensorflow-1.0.0/lib/tensorflow/python/framework/ops.py", line 2395, in create_op
original_op=self._default_original_op, op_def=op_def)
File "..../tensorflow-1.0.0/lib/tensorflow/python/framework/ops.py", line 1264, in init
self._traceback = _extract_stack()
InvalidArgumentError (see above for traceback): Cannot assign a device to node 'save/RestoreV2_19': Could not satisfy explicit device specification '/job:ps/task:0/device:CPU:0' because no devices matching that specification are registered in this process; available devices: /job:localhost/replica:0/task:0/cpu:0
[[Node: save/RestoreV2_19 = RestoreV2[dtypes=[DT_INT32], _device="/job:ps/task:0/device:CPU:0"](save/Const, save/RestoreV2_19/tensor_names, save/RestoreV2_19/shape_and_slices)]]

OK, I think this problem might be due to Keras creating its own session, based on this line in the stack trace:
      File "..../keras-1.2.2-1/lib/python2.7/site-packages/keras/backend/tensorflow_backend.py", line 1834, in batch_get_value
        return get_session().run(xs)

I'm not particularly familiar with Keras, but I think there's a K.set_session() method to which you can pass your own sess, and if you do that the error should be resolved.

This is very kind of you.. It solved it indeed

could you provide an example to use it ?

I am running into a similar problem. I am using VGG16 model in Keras, but when I attempt to call model.load_weights() inside the "with tf.device(tf.train.replica_device_setter(...))" block I get the same error because setting the weights runs Keras session. Any idea how you solved this?

could you provide an example to use it ?

import keras.backend as K
sess = tf.Session()
K.set_session(sess)


Incorporate SnowModel and MicroMet model code

Implemented Glen Liston's SnowModel Code,
MicroMet routines, and interface with NoahMP401.
Several new features are included, and the
model is incorporated in the new subLSM layer,
which Crocus v8.1 snow model is also found in.

This code commit supports and addresses LISF GitHub
issue #813 and #814;
https://github.com/NASA-LIS/LISF/issues/813
https://github.com/NASA-LIS/LISF/issues/814
Test case available for full LDT and LIS-SnowModel
testing for the pull request. The LDT and LIS testcases,
along with target outputs and log files, can be found here:
/discover/nobackup/karsenau/LISF_PR/LISF_SnowModel
Both LDT and LIS have been run with the latest Intel 2021
private module.  For the LIS test run, 72 processes are used
and run on a checked out compute node. SnowModel will
be run for 1-year with daily output and takes about 30-minutes
to run with 72 processes.

Note:
LIS-SnowModel will not compile without the following compiler  FFLAGS and FFAGLS77 flag:
-mcmodel=medium
Also, for LDT, please select "little-endian" when running the ./configure script.
The LDT and LIS config.adoc files have been updated with the config options and descriptions.  Please let me know if you need any further information for configure or compiling either LDT of LIS with SnowModel.

Hi @karsenau
Can you point us to your SLURM submission script?  Our test runs are failing, and I wonder if we need to limit the number of processes per node and/or target specific compute nodes.

@emkemp:
Please check out the slurm script:   slurm_sm_test.job
(in same testcase directory)
Also, make sure you compiled with:
LIS-SnowModel will not compile without the following compiler FFLAGS and FFAGLS77 flag:
-mcmodel=medium

Hi Kristi:
So @cmclaug2 is running your test case.  The case fails as-is because of a missing lis.config entry (SnowModel preprocess code option: is not in the config file).  When we add it and set it to 1, LIS stops in the preprocess code.
It seems your test case is not necessarily up to date given the problem with the lis.config file.  Can you (as time permits) try running the case again on your end?
BTW, @jvgeiger merged master back into your branch to resolve two merge conflicts.

Hi @emkemp and @cmclaug2:
Thank you for letting me know about the issue that you ran into with the lis.config file for this test case.
I will definitely run again on my end and let you know when the updated test case is ready.

Hi @emkemp and @cmclaug2:
Please try rerunning the testcase again - I have placed the updated files here (with a slurm script):
/discover/nobackup/karsenau/LISF_PR/LISF_SnowModel

Hi @karsenau:
I was able to use the updated files to reproduce the results for the LDT and LIS testcases.  I was also able to compile LDT and LIS with the gnu compiler.
Before merging, I want to double check with @emkemp that this is ready to go.

Hi @cmclaug2
We need to confer with @jvgeiger to decide how to handle that special compiler flag.  I'll take this into e-mail.

Hi @karsenau
We have concerns about the runtime performance and memory requirements when using -mcmodel=medium with non-Snowmodel cases.  @jvgeiger will run some experiments with the existing test suite to see if any surprises occur.  In the meantime, we plan to turn snowmodel off by default (same as with Crocus).  @cmclaug2 will also make a few tweaks to ensure consistent character variable lengths for some strings.

Hi @emkemp, @jvgeiger and @cmclaug2:
Thank you for testing the SnowModel and MicroMet implementations.
I definitely understand the hesitation to include the "-mcmodel=medium" addition for the library flags. SnowModel has difficulty compiling/ running without it. Also, that makes sense to turn off snowmodel in default.cfg setup.
Please let me know if you have any other questions or issues. Thanks!


Watcher Reconciler reconciles Kymas

Proposed changes

Refactor deploy and custom packages for the new watcher reconciler implementation

/test all


Adding clarity for LNPay webhooks

Codecov Report

Merging #205 (21aebba) into master (05139b3) will not change coverage.
The diff coverage is n/a.

@@           Coverage Diff           @@
##           master     #205   +/-   ##
=======================================
  Coverage   29.86%   29.86%
=======================================
  Files          31       31
  Lines        2213     2213
=======================================
  Hits          661      661
  Misses       1552     1552

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 6a59208...21aebba. Read the comment docs.


Typo "@@REMSERVER"→"@@REMSERVER"

https://docs.microsoft.com/en-us/sql/t-sql/functions/remserver-transact-sql?view=sql-server-ver15
#PingMSFTDocs

@hyoshioka0128 : Thanks for your contribution! The author(s) have been notified to review your proposed change.


in production region goes to 404 unless i override Region and put $displayInNavigation = true, but in local it works without it

Hi! Does this only happen for regions and not pages? What URL does it redirect you to? I can't reproduce this and need more info sadly.

redirect to 404
nova version: 3.27.0
as soon as i move .env file to production it happens, in local its not happening
also, if i overwrite those models its not happening


Add parameter "properties" in model "Trace"

Add the parameter "properties" introduced by commit 499408e3979cab403a5d58 in the server (incubator).
Link to the PR for the commit: https://github.com/eclipse-tracecompass-incubator/org.eclipse.tracecompass.incubator/pull/79

Note: the license check CI workflow is currently failing [*] in most of our cdt.cloud repos, on dependency npm/npmjs/-/electron-to-chromium/1.5.13.  We believe it's a false-positive.

@bhufmann We are getting that same 3PP license check failure in many of our repos now (for dependency electron-to-chromium/1.5.13 - see previous comment on this PR). The IP ticket is still under review - it might be closed today or two weeks from now, no way to know. I see two options:

add the dependency in question to the license check ignore list, in any/all repos where the failure happens
ignore license check failures, but only if/when only this specific dependency is the cause of the failure.

WDYT?


Unable to call hashCode() on empty Map, produces error: Cannot assign to read only property '__hash'

What happened
I haven't been able to find any references to this, but I'm not 100% sure it's not come up before.
I found I've had bugs with hashCode(), specifically an error (in Chrome):

TypeError:  Cannot assign to read only property '__hash' of object '[object Object]'

Caused by the hashCode function:
// ### Hashable Object

hashCode: function() {
  return this.__hash || (this.__hash = hashIterable(this));
}

The hashIterable was returning an integer, but it couldn't assign it to the __hash object. At first I thought this was an intermittent problem, but recently I think I've found a way to reproduce.
How to reproduce
It turns out I was using an filtering down to an empty map at some point. It was a valid Map, just with a size of 0, and when hashCode was called it produced the error.
I can reproduce it with:
let emptyMap = fromJS({});
console.log(emptyMap.hashCode());

I don't believe this is intended behavior?

I'm also getting "TypeError: Cannot add property __hash, object is not extensible" on Records.

Sorry, I can't reproduce your issue.
If you could please submit a PR with a failing test case, that would be great

I was about to open a new issue, but I think this is exactly the same problem. I strongly suggest looking in hashCode, as I think it is simply wrong to ever try to assign a hashCode on a theoretically immutable object.
Here is the copy of my issue text:

What happened
When working with records in collections, Immutable sometimes tries to set an hashCode of a frozen object, resulting in an exception.
Expected behavior: No exception, of course. I expect hashCode to be set when creating an instance, not generated later on.
The hashCode function looks like a getter but apparently it sets it too:
  hashCode: function hashCode() {
    return this.__hash || (this.__hash = hashCollection(this));
  },

How to reproduce
It started happening after upgrading from 4.0.0-rc.9 to 4.0.0-rc.12.
I am very sorry, but I was unable to create an example which triggers this behavior. It only occurs in a big react/redux/saga project, where the redux state is using Immutable collections and various Record types heavily.
The behavior can be reproduced in said project, it reliably appears in the same code location. However, it appears in weird places, e.g. at one point a call to orderedMap.has(itemRecord) throws it, somewhere else it is a list.valueSeq() that fails.
Furthermore, calling orderedMap.has(itemRecord) in some other location might not produce an error at all. It seems like it is an arcane order of things that need to happen, before the error occurs.
Anyway, here is an stacktrace, which was triggered by a seemingly simple orderedMap.has(itemRecord):
In this case, has() triggers hashCode() on the Record, which is already part of the orderedMap and (in my understanding) should already have set the hash code.
immutable.es.js:5032 Uncaught TypeError: Cannot assign to read only property '__hash' of object '[object Object]'
    at List.hashCode (immutable.es.js:5032)
    at hash (immutable.es.js:775)
    at immutable.es.js:5310
    at immutable.es.js:1111
    at ArraySeq.__iterate (immutable.es.js:452)
    at FromEntriesSequence.__iterate (immutable.es.js:1105)
    at hashCollection (immutable.es.js:5303)
    at FromEntriesSequence.hashCode (immutable.es.js:5032)
    at Record.hashCode (immutable.es.js:5479)
    at hash (immutable.es.js:775)


[Bug][Module Name] Bug title

Search before asking

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

What happened
When attempting to setup the Github connector with a private Github repo I receive the below error while it tries to clone the repositories.
devlake-1    | time="2024-05-28 19:27:13" level=error msg=" [pipeline service] [pipeline #2] [task #9] subtask Clone Git Repo ended unexpectedly\n\tWraps: (2) failed to deepen the cloned repo\n\tWraps: (3) exit status 128\n\tError types: (1) *hintdetail.withDetail (2) *hintdetail.withDetail (3) *exec.ExitError"

What do you expect to happen
I expect the onboarding wizard to setup my Github integration.
How to reproduce
Using the v0.21.0 Docker Compose...

Navigate to the onboarding wizard/workflow
Add Github as a data source.
Create a PAT with the required scopes for private repository access
Select a repository from the private org to import

Anything else
This issue happens consistently even with a fresh database, and local state.

Version
v0.21.0
Are you willing to submit PR?

[ ] Yes I am willing to submit a PR!

Code of Conduct

[X] I agree to follow this project's Code of Conduct

@dosu Please use English when responding to me.

I recreated the token using the documents I linked plus the expanded scope of the entire user claim based on your feedback.
See below.
The private repository is available over the open internet.  The onboarding tool successfully pulls the list of projects.
I've attached the logs below as well.

# Licensed to the Apache Software Foundation (ASF) under one or more
# contributor license agreements.  See the NOTICE file distributed with
# this work for additional information regarding copyright ownership.
# The ASF licenses this file to You under the Apache License, Version 2.0
# (the "License"); you may not use this file except in compliance with
# the License.  You may obtain a copy of the License at
#
#     http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
#
version: "3"
services:
  mysql:
    image: mysql:8
    volumes:
      - mysql-storage:/var/lib/mysql
    restart: always
    ports:
      - 3306:3306
    environment:
      MYSQL_ROOT_PASSWORD: admin
      MYSQL_DATABASE: lake
      MYSQL_USER: merico
      MYSQL_PASSWORD: merico
      TZ: UTC
    command: --character-set-server=utf8mb4
      --collation-server=utf8mb4_bin
      --skip-log-bin

  grafana:
    image: devlake.docker.scarf.sh/apache/devlake-dashboard:v1.0.0-beta8
    ports:
      - 3002:3000
    volumes:
      - grafana-storage:/var/lib/grafana
    environment:
      GF_SERVER_ROOT_URL: "http://localhost:4000/grafana"
      GF_USERS_DEFAULT_THEME: "light"
      MYSQL_URL: mysql:3306
      MYSQL_DATABASE: lake
      MYSQL_USER: merico
      MYSQL_PASSWORD: merico
      TZ: UTC
    restart: always
    depends_on:
      - mysql

  devlake:
    image: devlake.docker.scarf.sh/apache/devlake:v1.0.0-beta8
    ports:
      - 8080:8080
    restart: always
    volumes:
      - devlake-log:/app/logs
    env_file:
      - ./.env
    environment:
      LOGGING_DIR: /app/logs
      TZ: UTC
    depends_on:
      - mysql

  config-ui:
    image: devlake.docker.scarf.sh/apache/devlake-config-ui:v1.0.0-beta8
    ports:
      - 4000:4000
    env_file:
      - ./.env
    environment:
      DEVLAKE_ENDPOINT: devlake:8080
      GRAFANA_ENDPOINT: grafana:3000
      TZ: UTC
      #ADMIN_USER: devlake
      #ADMIN_PASS: merico
    depends_on:
      - devlake

volumes:
  mysql-storage:
  grafana-storage:
  devlake-log:

logging(1).tar.gz

@dosu
Setting the github token and no-shallow-clone envvar had no real impact.  The clone still fails with the same error.  My (redacted) .env file:
# Licensed to the Apache Software Foundation (ASF) under one or more
# contributor license agreements.  See the NOTICE file distributed with
# this work for additional information regarding copyright ownership.
# The ASF licenses this file to You under the Apache License, Version 2.0
# (the "License"); you may not use this file except in compliance with
# the License.  You may obtain a copy of the License at
#
#     http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
#

#############
# Lake core #
#############

# Lake plugin dir, absolute path or relative path
PLUGIN_DIR=bin/plugins

# Lake Database Connection String
DB_URL=mysql://merico:merico@mysql:3306/lake?charset=utf8mb4&parseTime=True&loc=UTC
E2E_DB_URL=mysql://merico:merico@mysql:3306/lake_test?charset=utf8mb4&parseTime=True&loc=UTC
# Silent Error Warn Info
DB_LOGGING_LEVEL=Error

# Lake REST API
PORT=8080
MODE=release

NOTIFICATION_ENDPOINT=
NOTIFICATION_SECRET=

API_TIMEOUT=120s
API_RETRY=3
API_REQUESTS_PER_HOUR=10000
PIPELINE_MAX_PARALLEL=1
# Debug Info Warn Error
LOGGING_LEVEL=
LOGGING_DIR=./logs
ENABLE_STACKTRACE=true
FORCE_MIGRATION=false
NO_SHALLOW_CLONE=true
GITHUB_AUTH_TOKEN=(redacted)
##########################
# Sensitive information encryption key
##########################
ENCRYPTION_SECRET=(redacted)

##########################
# Set if skip verify and connect with out trusted certificate when use https
##########################
IN_SECURE_SKIP_VERIFY=

##########################
# Set SKIP_COMMIT_FILES to 'false' to enable file collection. Any other value or absence of this parameter will skip collection.
##########################
# SKIP_COMMIT_FILES=true

##########################
# ENABLE_SUBTASKS_BY_DEFAULT: This environment variable is used to enable or disable the execution of subtasks.
# The format is as follows: plugin_name1:subtask_name1:enabled_value,plugin_name2:subtask_name2:enabled_value,plugin_name3:subtask_name3:enabled_value
##########################
# ENABLE_SUBTASKS_BY_DEFAULT="jira:collectIssueChangelogs:true,jira:extractIssueChangelogs:true,jira:convertIssueChangelogs:true,tapd:collectBugChangelogs:true,tapd:extractBugChangelogs:true,tapd:convertBugChangelogs:true,zentao:collectBugRepoCommits:true,zentao:extractBugRepoCommits:true,zentao:convertBugRepoCommits:true,zentao:collectStoryRepoCommits:true,zentao:extractStoryRepoCommits:true,zentao:convertStoryRepoCommits:true,zentao:collectTaskRepoCommits:true,zentao:extractTaskRepoCommits:true,zentao:convertTaskRepoCommits:true"

Hi, @mam8cc The git clone mechanism has been drastically changed since v1.0.0, can you try if beta-10 works for you?

using v1.0.0-beta10 I also get:
subtask Clone Git Repo ended unexpectedly Wraps: (2) git exit error Error types: (1) *hintdetail.withDetail (2) *errors.errorString

Thanks @klesh, that seems to have fixed it!

I have the same error in clone git repo step, but I got the complain about server certificate verification failed.
Then I set IN_SECURE_SKIP_VERIFY=true in .env file, and then it works fine to clone the git repo.
This is fine for testing, but how can we do in production? @klesh Thank you!

@diwangcanada

Get a valid certificate, Let's Encrypt is a great option if need sth free of charge.
Use a self-signed certificate and follow this guide to setup devlake container

Thank you, @klesh!
Does helm installation support custom ca cert install? Or do we have to modify helm chart to make it work?

@diwangcanada Not that I know of.
We are open for PR if you are willing to work on it.


Update instructions.md for Lua error handling

The instructions did not mention that the use of the error keyword is required. In addition, following the Concepts up to this exercise did not mention the error keyword, as such additional instructions have been added.
#496
Edit: https://forum.exercism.org/t/mentioning-of-the-error-keyword/12686

Or assert() -- https://www.lua.org/manual/5.4/manual.html#pdf-assert

Or assert() -- https://www.lua.org/manual/5.4/manual.html#pdf-assert

I tried it and that works as well for the exercise, so I added this to the description.


pgmgr: command not found

Following the instructions on the README and I got some output like this:
$ $GOPATH/bin/go-bootstrap -dir github.com/drichardson/howdy
2015/12/29 21:51:54 Creating /Users/doug/test/src/github.com/drichardson/howdy...
2015/12/29 21:51:54 Copying a blank project to /Users/doug/test/src/github.com/drichardson/howdy...
2015/12/29 21:51:54 Replacing placeholder variables on drichardson/howdy...
2015/12/29 21:51:54 Running go get github.com/rnubel/pgmgr...
2015/12/29 21:51:54 Creating database howdy...
scripts/db-bootstrap: line 4: pgmgr: command not found
Running migrations...
scripts/db-bootstrap: line 7: pgmgr: command not found
Creating database howdy-test
scripts/db-bootstrap: line 10: pgmgr: command not found
Running migration on postgres://doug@localhost:5432/howdy-test?sslmode=disable...
scripts/db-bootstrap: line 13: pgmgr: command not found
2015/12/29 21:51:54 Running go get ./...

I had created a new Go workspace for the project, and it turned out $GOPATH/bin wasn't in my PATH. Might want to update the README to have a new step 2, like:
PATH=$PATH:$GOPATH/bin

Ah thanks for the feedback!

Done. It is now mentioned as part of prerequisites.


Can't build release mode in android

What went wrong:
Execution failed for task ':app:lintVitalRelease'.

Could not resolve all artifacts for configuration ':app:dynamicProfileRuntimeClasspath'.
Could not resolve project :flutter_statusbarcolor.
Required by:
project :app
java.lang.NullPointerException (no error message)

Hi, what's your gradle version, try to upgrade your gradle version in
android\gradle\wrapper\gradle-wrapper.properties.

It's 4.10
#Sat Mar 09 16:28:18 ULAT 2019
distributionBase=GRADLE_USER_HOME
distributionPath=wrapper/dists
zipStoreBase=GRADLE_USER_HOME
zipStorePath=wrapper/dists
distributionUrl=https\://services.gradle.org/distributions/gradle-4.10.1-all.zip

Upgrade gradle  to 4.10.2 solved


tf_doctest.py fails on import

System information

OS Platform and Distribution (e.g., Linux Ubuntu 16.04): Ubuntu 20.04 LTS
Mobile device (e.g. iPhone 8, Pixel 2, Samsung Galaxy) if the issue happens on mobile device: N/A
TensorFlow installed from (source or binary): pip package
TensorFlow version: 2.2.0
Python version: 3.8.2
Installed using virtualenv? pip? conda?: pip
Bazel version (if compiling from source): N/A
GCC/Compiler version (if compiling from source): N/A
CUDA/cuDNN version: N/A
GPU model and memory: N/A

I was testing my changes to the documentation, specifically the doctests as specified in #40619, using the tf_doctest.py as described in documentation.
Unfortunately the command: python tf_doctest.py --file=../../python/module/module.py failed producing following error.
Traceback (most recent call last):
  File "tf_doctest.py", line 30, in <module>
    import tensorflow.compat.v2 as tf

ModuleNotFoundError: No module named 'tensorflow.compat'

I tried the same in container spun from devel image with similar results. In order to identify the issue I reinstalled tensorflow on my machine and for the good measure removed nightly packages. The result wasn't any better.
Please note that I only altered module.py file, as described in #40619

@jpodivin
Can you refer  #26546 and see if it helps you.Thanks!

@jpodivin
Can you refer #26546 and see if it helps you.Thanks!

That doesn't seem like really work. I have the right version of tensorflow installed, both in venv and in system itself.
The output of python -c "import tensorflow as tf; print(tf.__version__)" confirms it.

I reinstalled the tensorflow yet again on both system and venv. The only result is that now I get:
Traceback (most recent call last):
  File "tf_doctest.py", line 33, in <module>
    from tensorflow.tools.docs import tf_doctest_lib
ImportError: cannot import name 'tf_doctest_lib' from 'tensorflow.tools.docs' (/home/jpodivin/.local/lib/python3.8/site-packages/tensorflow/tools/docs/__init__.py)

Yeah.. I'l fix this.
@mihaimaruseac Do I need to add tf_doctest_lib to the pip package thing for it to get exported out?

I think so.

Hello,
I came across this issue recently as well while trying to test the changes I made to the python documentation in math_ops #42619. @yashk2810 I'd love to contribute if I could get some guidance!

@Harsh188 I've made some changes to math_ops as well. Any idea how you fixed this issue?

Any workarounds ? So far I have tried to change import to local file but that doesn't work too.

@Harsh188 I've made some changes to math_ops as well. Any idea how you fixed this issue?

Can you link your PR so I can take a look?

Sure @Harsh188 here it is #43758

@mihaimaruseac Could you help workout this issue? I took a peek at pip_package/BUILD but I'm not sure how I'm supposed to make the appropriate change.

Is this still an issue?
@Harsh188 you probably need to add to COMMON_PIP_DEPS list.

Is this still an issue?
@Harsh188 you probably need to add to COMMON_PIP_DEPS list.


Revisit Docker mount volume

Currently we mount /opt/harvest directory in harvest containers. This causes issues where volume needs to be manually updated before a new code can be deployed. We should revisit this is /opt/harvest mount is needed.
Also check harvest.yaml file mount if this is needed. We need to make sure that backward compatibility is supported.

Verified, commitc37b608
Modified conf directory and verified compose based pollers see changes and don't require volume updates.


ClearSVG does not erase highlighted outside of "Show top N"

Solved by adding clear SVG trigger and taking ClearSVG effect out of functions and into its own UseEffect.


API docs

Is your feature request related to a problem? Please describe.
The users should be referred to some docs on how to use the library.
Describe the solution you'd like
(?)
Some easy mechanism for a C++ code; parsing docstrings automatically would be nice.

Additional functions?
Compare to: https://www.boost.org/doc/libs/1_34_1/doc/html/boost_math/octonions.html

It seems that readthedocs can host doxygen documentation:
https://breathe.readthedocs.io/en/latest/index.html

readthedocs might be better for Python projects (Sphinx docs) but it seems that GitHub Pages is a promising alternative.
The outline:

Comment the code properly with docs blocks: https://www.doxygen.nl/manual/docblocks.html
Set a GH Action to build/deploy the docs (Doxygen): https://medium.com/front-end-weekly/ci-cd-with-github-actions-to-deploy-on-github-pages-73e225f8f131

Remember to include docs shield with the CI.


Boolean literals not correctly expanded for message types

package Test is
   type M1
      is message
         X : Boolean
            then null
               if X = True;
      end message;

   type M2
      is message
         Y : M1;
      end message;
end Test;

$ rflx check test.rflx
Parsing test.rflx
Processing Test
model: error: undefined variable "Test.True" referenced

Interpreting True and False as real boolean literals in the model leads to problems during code generation, as the expressions are not type-checked (#87). A workaround would be to interpret them as numbers 1 and 0.

Then we should do that (and mark it as workaround0 until we have type checking.

The issue is much simpler than I thought on Friday. No workaround is needed.


How to uninstall vim-todo-lists?

I don't know how to uninstall this plugin.
mac 10.14.3
Term
junegunn/vim-plug
Show me follow error when I press "o" after uninstall aserebryakov/vim-todo-lists with junegunn/vim-plug in mac 10.14.3 systerm.
E492: Not an editor command VimTodoListsCreateNewItemBelow

Not really a vim-todo-lists issue, you need to carry out the vim-plug removal process documented at the bottom of the vim-plug tutorial, here https://github.com/junegunn/vim-plug/wiki/tutorial:
Remove the Plug line adding vim-todo-lists, then running :PlugClean in vim.

You can also just :mapclear and then source $MYVIMRC if you want to unmap the keybindings (or, just restart Vim).

Not really a vim-todo-lists issue, you need to carry out the vim-plug removal process documented at the bottom of the vim-plug tutorial, here https://github.com/junegunn/vim-plug/wiki/tutorial:
Remove the Plug line adding vim-todo-lists, then running :PlugClean in vim.

It's not work.

It's work after I del the /.vim/view/ folder.

You can also just :mapclear and then source $MYVIMRC if you want to unmap the keybindings (or, just restart Vim).

It's gone. I have no chance to try it now.


Bump inmanta-dev-dependencies[async,extension,pytest] from 2.52.0 to 2.53.0 (#362)

Pull request opened by the merge tool on behalf of #362

Merged in f2b5c5cfef53771d8bf0e2f532c1964c64c6b5e2


dreprecated PageRouteBuilder.pageBuilder parameter

Description
The pageBuilder is confusing with the new page api. This pr deprecates the pagebuilder and rename it to bodyBuilder
page api pr https://github.com/flutter/flutter/pull/50362/files
Related Issues
https://github.com/flutter/flutter/issues/45938
Tests
I added the following tests:
Updates existing tests
Checklist
Before you create this PR confirm that it meets all requirements listed below by checking the relevant checkboxes ([x]). This will ensure a smooth and quick review process.

[ ] I read the Contributor Guide and followed the process outlined there for submitting PRs.
[ ] I signed the CLA.
[ ] I read and followed the Flutter Style Guide, including Features we expect every widget to implement.
[ ] I read the Tree Hygiene wiki page, which explains my responsibilities.
[ ] I updated/added relevant documentation (doc comments with ///).
[ ] All existing and new tests are passing.
[ ] The analyzer (flutter analyze --flutter-repo) does not report any problems on my PR.
[ ] I am willing to follow-up on review comments in a timely manner.

Breaking Change
Did any tests fail when you ran them? Please read Handling breaking changes.

[ ] No, no existing tests failed, so this is not a breaking change.
[ ] Yes, this is a breaking change. If not, delete the remainder of this section.

[ ] I wrote a design doc: https://flutter.dev/go/template Replace this with a link to your design doc's short link
[ ] I got input from the developer relations team, specifically from: Replace with the names of who gave advice
[ ] I wrote a migration guide: Replace with a link to your migration guide

 modulo test failures and comments

Closing this pr as we don't want to take this approach


Creatures 2 Crashes when Importing/Exporting Creatures

Here's the log:
_10628 11:12:07.069 Starting DxWrapper v1.0.6542.21
10628 11:12:07.069 Running from: E:\Users\Daniel's Files\Documents\Creatures\Creatures 2\dxwrapper.dll
10628 11:12:07.069 Reading config file: E:\Users\Daniel's Files\Documents\Creatures\Creatures 2\dxwrapper.ini
10628 11:12:07.069 ASUSTeK COMPUTER INC. PRIME B450M-K Rev X.0x (Desktop)
10628 11:12:07.069 NVIDIA GeForce RTX 3070
10628 11:12:07.070 Windows 10 Home 64-bit (10.0.19041)
10628 11:12:07.070 "creatures2.exe" (PID:4784)
10628 11:12:07.075 Environment variable _COMPAT_LAYER = "ElevateCreateProcess 16BitColor"
10628 11:12:07.075 Disabling High DPI Scaling...
10628 11:12:07.075 Loaded library: user32.dll
10628 11:12:07.075 Loaded library: shcore.dll
10628 11:12:07.076 Enabling dinputto8 wrapper
10628 11:12:07.076 Loading 'dinput.dll'...
10628 11:12:07.076 Loaded library: C:\Windows\system32\dinput.dll
10628 11:12:07.076 Hooking dinput.dll APIs...
10628 11:12:07.076 Enabling dinput8 wrapper
10628 11:12:07.076 Loading 'dinput8.dll'...
10628 11:12:07.077 Loaded library: C:\Windows\system32\dinput8.dll
10628 11:12:07.077 Loading 'ddraw.dll'...
10628 11:12:07.077 Hooking ddraw.dll APIs...
10628 11:12:07.077 Enabling ddraw wrapper
10628 11:12:07.077 Enabling d3d9 wrapper
10628 11:12:07.077 Loading 'd3d9.dll'...
10628 11:12:07.079 Loaded library: C:\Windows\system32\d3d9.dll
10628 11:12:07.079 Loaded library: gdi32.dll
10628 11:12:07.079 DxWrapper loaded!
10628 11:12:07.247 dd_DirectDrawCreate
10628 11:12:07.247 dd_DirectDrawCreateEx
10628 11:12:07.247 Redirecting 'DirectDrawCreate' IID_IDirectDraw to --> 'Direct3DCreate9'
10628 11:12:07.247 Creating interface m_IDirectDrawX::m_IDirectDrawX (0069F710) converting interface from v1 to v9
10628 11:12:07.247 d9_Direct3DCreate9
10628 11:12:07.247 Redirecting 'Direct3DCreate9' ...
10628 11:12:07.271 Creating interface m_IDirect3D9Ex::m_IDirect3D9Ex (006B2398)
10628 11:12:07.271 m_IDirectDrawX::CreateSurface2 Warning: MipMap not Implemented.
10628 11:12:07.271 Creating interface m_IDirectDrawSurfaceX::m_IDirectDrawSurfaceX (06223038) converting interface from v1 to v9
10628 11:12:07.271 Creating interface m_IDirectDrawClipper::m_IDirectDrawClipper (006616D8)
10628 11:12:07.271 m_IDirectDrawX::CreateSurface2 Warning: MipMap not Implemented.
10628 11:12:07.271 Creating interface m_IDirectDrawSurfaceX::m_IDirectDrawSurfaceX (06223228) converting interface from v1 to v9
10628 11:12:07.271 m_IDirectDrawX::CreateSurface2 Warning: MipMap not Implemented.
10628 11:12:07.271 Creating interface m_IDirectDrawSurfaceX::m_IDirectDrawSurfaceX (06223418) converting interface from v1 to v9
10628 11:12:07.271 m_IDirectDrawX::CreateSurface2 Warning: MipMap not Implemented.
10628 11:12:07.345 Creating interface m_IDirect3DDevice9Ex::InitDirect3DDevice (062044F8)
10628 11:12:07.346 Creating interface m_IDirect3DTexture9::m_IDirect3DTexture9 (063D9388)
10628 11:12:07.362 m_IDirectDrawSurfaceX::~m_IDirectDrawSurfaceX (06223228) deleting interface!
10628 11:12:07.362 Creating interface m_IDirect3DTexture9::m_IDirect3DTexture9 (063D91F0)
10628 11:12:07.365 m_IDirectDrawSurfaceX::Blt Error: could not find source surface! 0x007024F8
10628 11:12:07.365 Creating interface m_IDirect3DTexture9::m_IDirect3DTexture9 (063D9268)
10628 11:12:07.390 m_IDirectDrawSurfaceX::~m_IDirectDrawSurfaceX (06223228) deleting interface!
10628 11:12:07.400 m_IDirectDrawSurfaceX::Blt Error: could not find source surface! 0x007024F8
10628 11:12:07.492 m_IDirectDrawSurfaceX::Blt Error: could not find source surface! 0x007024F8
10628 11:12:07.506 m_IDirectDrawSurfaceX::Blt Error: could not find source surface! 0x007024F8
10628 11:12:07.562 m_IDirectDrawSurfaceX::Blt Error: could not find source surface! 0x007024F8
10628 11:12:07.662 m_IDirectDrawSurfaceX::Blt Error: could not find source surface! 0x007024F8
10628 11:12:07.762 m_IDirectDrawSurfaceX::Blt Error: could not find source surface! 0x007024F8
10628 11:12:07.863 m_IDirectDrawSurfaceX::Blt Error: could not find source surface! 0x007024F8
10628 11:12:07.962 m_IDirectDrawSurfaceX::Blt Error: could not find source surface! 0x007024F8
10628 11:12:08.062 m_IDirectDrawSurfaceX::Blt Error: could not find source surface! 0x007024F8
10628 11:12:08.162 m_IDirectDrawSurfaceX::Blt Error: could not find source surface! 0x007024F8
10628 11:12:08.262 m_IDirectDrawSurfaceX::Blt Error: could not find source surface! 0x007024F8
10628 11:12:08.362 m_IDirectDrawSurfaceX::Blt Error: could not find source surface! 0x007024F8
10628 11:12:08.462 m_IDirectDrawSurfaceX::Blt Error: could not find source surface! 0x007024F8
10628 11:12:08.562 m_IDirectDrawSurfaceX::Blt Error: could not find source surface! 0x007024F8
10628 11:12:08.662 m_IDirectDrawSurfaceX::Blt Error: could not find source surface! 0x007024F8
10628 11:12:08.762 m_IDirectDrawSurfaceX::Blt Error: could not find source surface! 0x007024F8
10628 11:12:08.862 m_IDirectDrawSurfaceX::Blt Error: could not find source surface! 0x007024F8
10628 11:12:08.963 m_IDirectDrawSurfaceX::Blt Error: could not find source surface! 0x007024F8
10628 11:12:09.062 m_IDirectDrawSurfaceX::Blt Error: could not find source surface! 0x007024F8
10628 11:12:09.162 m_IDirectDrawSurfaceX::Blt Error: could not find source surface! 0x007024F8
10628 11:12:09.262 m_IDirectDrawSurfaceX::Blt Error: could not find source surface! 0x007024F8
10628 11:12:09.362 m_IDirectDrawSurfaceX::Blt Error: could not find source surface! 0x007024F8
10628 11:12:09.462 m_IDirectDrawSurfaceX::Blt Error: could not find source surface! 0x007024F8
10628 11:12:09.562 m_IDirectDrawSurfaceX::Blt Error: could not find source surface! 0x007024F8
10628 11:12:09.662 m_IDirectDrawSurfaceX::Blt Error: could not find source surface! 0x007024F8
10628 11:12:09.670 m_IDirectDrawSurfaceX::Blt Error: could not find source surface! 0x007024F8
10628 11:12:09.762 m_IDirectDrawSurfaceX::Blt Error: could not find source surface! 0x007024F8
10628 11:12:09.862 m_IDirectDrawSurfaceX::Blt Error: could not find source surface! 0x007024F8
10628 11:12:09.962 m_IDirectDrawSurfaceX::Blt Error: could not find source surface! 0x007024F8
10628 11:12:10.062 m_IDirectDrawSurfaceX::Blt Error: could not find source surface! 0x007024F8
10628 11:12:10.162 m_IDirectDrawSurfaceX::Blt Error: could not find source surface! 0x007024F8
10628 11:12:10.262 m_IDirectDrawSurfaceX::Blt Error: could not find source surface! 0x007024F8
10628 11:12:10.398 m_IDirectDrawSurfaceX::Blt Error: could not find source surface! 0x007024F8
10628 11:12:10.462 m_IDirectDrawSurfaceX::Blt Error: could not find source surface! 0x007024F8
10628 11:12:10.562 m_IDirectDrawSurfaceX::Blt Error: could not find source surface! 0x007024F8
10628 11:12:10.662 m_IDirectDrawSurfaceX::Blt Error: could not find source surface! 0x007024F8
10628 11:12:10.762 m_IDirectDrawSurfaceX::Blt Error: could not find source surface! 0x007024F8
10628 11:12:10.862 m_IDirectDrawSurfaceX::Blt Error: could not find source surface! 0x007024F8
10628 11:12:10.962 m_IDirectDrawSurfaceX::Blt Error: could not find source surface! 0x007024F8
10628 11:12:11.062 m_IDirectDrawSurfaceX::Blt Error: could not find source surface! 0x007024F8
10628 11:12:11.244 m_IDirectDrawSurfaceX::Blt Error: could not find source surface! 0x007024F8
All .exe files are set to run in 16-bit apart from launcher.exe and start.exe.

Anyone?

Here is a fix for this issue.  It is now using Direct3D9 rather than GDI:  dxwrapper.zip

This issue should be fixed in the latest release:  https://github.com/elishacloud/dxwrapper/wiki/Creatures-2:-The-Albian-Years


Cannot find module 'moment-guess' or its corresponding type declarations.ts(2307)

VSCode is showing this error:
Cannot find module 'moment-guess' or its corresponding type declarations.ts(2307)

with versions:
    "moment": "^2.27.0",
    "moment-guess": "^1.1.1",

Hi @amcdnl, it's so because moment-guess is not intended to be used as a module(there's no main field in package.json, therefore you can't require/import it!). It's supposed to be used as a CLI utility. Kindly check its usage at https://github.com/apoorv-mishra/moment-guess#-usage
Thanks for reporting.

Oh - well thats sad - its a very useful package. I'm using an older version that I was able to get this to import as.

I see. Sorry for that. I wasn't expecting it since I never mentioned or encouraged anywhere in the docs to use it as a module :sweat_smile:
Based on discussions with fellow developers, I found that they were more comfortable using it as a CLI utility rather than as a module, therefore I decided to drop support for the latter(this also helped reduce the bundled size).
Anyways, I'll keep the issue open as it might be later decided to add back the support for using moment-guess as a module. Till then, I would suggest you to downgrade it to 1.0.10 to avoid breaking your code. Unfortunately, you won't be getting new features.

but how about us who needs it as a module...

Hi @buonzz , it will be added soon in the next release probably.

As of<EMAIL_ADDRESS>one can use it as a module via require/import syntax. @amcdnl @buonzz

Still getting this error with version 1.2.4


Fix issue where provider doesn't support namespaces

Expected behaviour
If a provider doesn't support namespaces, then the previous behaviour or a default behaviour should be used
Current behaviour
As outlined by @bmcstdio, the code will throw a fatal error instead.
https://github.com/openfaas-incubator/connector-sdk/blob/master/types/controller.go#L156-L159
Possible solution

Handle a 404 error gracefully
Retain existing fatal error behaviour for any other status code
Update unit tests

Context
faas-netes is unaffected, but users wanting to bring in the latest release of the connector-sdk will encounter issues when used with the operator or faas-swarm.

cc: @bmcstdio @viveksyngh @LucasRoesler


Document some options for using Docker Hub without hitting rate limits

On 2nd November 2020, Docker Hub will implement strict rate limits on image pulls. This new page lists a few mitigation options for customers who run into the rate limit.
We plan to add a banner to job logs that contain rate limit errors, with a link to this page.

Sorry if this isn't the right stage of draft/WIP for trivial typo fixes etc :)

It seems vim doesn't want to enable spellcheck in ERB mode. Thanks!

Urgh, GH doesn't handle the file move as well as I'd hoped. https://github.com/buildkite/docs/pull/847/commits/dd7cb673fd85d88af6d983451daf2a51b0b7de42 is better for seeing the copy edits.
@yob this is great stuff! Hope committing changes directly to your branch is ok.

I've rebased onto master and force pushed

I'm going to merge this so we have something to point folks at. More than happy to revise in a followup if required :heart:


Development

Codecov Report

Merging #75 (694f3ec) into main (31b581d) will not change coverage.
The diff coverage is n/a.

@@            Coverage Diff            @@
##              main       #75   +/-   ##
=========================================
  Coverage   100.00%   100.00%
=========================================
  Files           18        18
  Lines          149       149
  Branches        20        20
=========================================
  Hits           149       149

Impacted Files
Coverage Δ

src/index.js
100.00% <ø> (ø)


cmd/compile: shouldn't report argument mismatch errors for using unexported functions

What version of Go are you using (go version)?

$ go version go1.19.4 linux/amd64

Does this issue reproduce with the latest release?
Yes.
What operating system and processor architecture are you using (go env)?
go env Output
$ go env
GO111MODULE=""
GOARCH="amd64"
GOBIN=""
GOCACHE="/home/ross-spencer/.cache/go-build"
GOENV="/home/ross-spencer/.config/go/env"
GOEXE=""
GOEXPERIMENT=""
GOFLAGS=""
GOHOSTARCH="amd64"
GOHOSTOS="linux"
GOINSECURE=""
GOMODCACHE="/home/ross-spencer/git/go/pkg/mod"
GONOPROXY=""
GONOSUMDB=""
GOOS="linux"
GOPATH="/home/ross-spencer/git/go"
GOPRIVATE=""
GOPROXY="https://proxy.golang.org,direct"
GOROOT="/usr/local/go"
GOSUMDB="sum.golang.org"
GOTMPDIR=""
GOTOOLDIR="/usr/local/go/pkg/tool/linux_amd64"
GOVCS=""
GOVERSION="go1.19.4"
GCCGO="gccgo"
GOAMD64="v1"
AR="ar"
CC="gcc"
CXX="g++"
CGO_ENABLED="1"
GOMOD="/dev/null"
GOWORK=""
CGO_CFLAGS="-g -O2"
CGO_CPPFLAGS=""
CGO_CXXFLAGS="-g -O2"
CGO_FFLAGS="-g -O2"
CGO_LDFLAGS="-g -O2"
PKG_CONFIG="pkg-config"
GOGCCFLAGS="-fPIC -m64 -pthread -Wl,--no-gc-sections -fmessage-length=0 -fdebug-prefix-map=/tmp/go-build3868854645=/tmp/go-build -gno-record-gcc-switches"

What did you do?

package main

import (
	"fmt"
	"path/filepath"
)

func main() {
	fmt.Println("Hello, 世界")
	arr := []string{"dir", "path"}
	fmt.Println("arr")
	fmt.Println(filepath.join("a", "b"))
}

What did you expect to see?
Accidentally called .join (lower-case 'j') and expected an error, instead I am told I can supply a string array to the function.
What did you see instead?
./test.go:12:2: arr declared but not used
./test.go:14:23: join not exported by package filepath
./test.go:14:33: too many arguments in call to filepath.join
	have (string, string)
	want ([]string)

note there is the unexported error too:

./test.go:14:23: join not exported by package filepath

Simplified:
package main
import "path/filepath"
var _ = filepath.join("a", "b")

produces
$ go run x.go
# command-line-arguments
./x.go:3:18: join not exported by package filepath
./x.go:3:28: too many arguments in call to filepath.join
	have (string, string)
	want ([]string)

Ideally, the 2nd error shouldn't be reported.


Send email with attachments through SES SDK

What platform/OS are you using?
Windows 10
Which version of the SDK?
1,7,182
What compiler are you using? what version?
Visual Studio 2019 16.2.4
Is there a way how to send an attachment through c++ SDK  ?
I believe I checked all examples (https://docs.aws.amazon.com/code-samples/latest/catalog/code-catalog-cpp-example_code-ses.html) and google links but I didn't find any mention about attachments in c++.
I believe there has to be a way but there is no any MultiPart/Mime class in the source.
Thanks.

You are right, there is no MIME/MultiPart class defined natively in C++. You will have to use the SendRawEmail API and construct the RawMessage by yourself (or 3rd-party library) at this stage.
Java SDK example: https://docs.aws.amazon.com/ses/latest/DeveloperGuide/send-email-raw.html


Impossible to update the menu

Problem Description
On recent electron version, changing the menu using the example or other methods didnt work and the menu in the title bar simply disappear.
Steps to Reproduce
	// in the main
	const menu = new Menu()
	menu.append(
		new MenuItem({
			label: 'File',
			submenu: [
				{
					label: 'Import gltf/glb',
					click: () => {
						console.log('Open File')
					},
				},
				{
					type: 'separator',
				},
				{
					label: 'Close',
					click: () => {
						win.close()
					},
				},
			],
		}),
	)
	Menu.setApplicationMenu(menu)

Expected Behavior
The title bar is updated with the new menu
Current Behavior
the menu disappear
Additional Information

windows 11
node v20.5.0
electron 27.0.2 / also didn't work on ^26.0.0

Note:
Labels - bug

You should use titlebar.refreshMenu(), an asynchronous method that refreshes the menu with what is in Menu.getApplicationMenu(), after updating the menu with the sample code you showed above.

I update all menu like this:
// main.ts
import { app, BrowserWindow, Menu } from "electron";
import registerListeners from "./helpers/ipc/listeners-register";
import path from "path";

const inDevelopment = process.env.NODE_ENV === "development";

if (require("electron-squirrel-startup")) {
    app.quit();
}

import { setupTitlebar, attachTitlebarToWindow } from "custom-electron-titlebar/main";
import { MenuItem, MenuItemConstructorOptions } from "electron";

// setup the titlebar main process
setupTitlebar();

function createWindow() {
    const preload = path.join(__dirname, "preload.js");
    const mainWindow = new BrowserWindow({
        width: 800,
        height: 600,
        webPreferences: {
            sandbox: false,
            devTools: inDevelopment,
            contextIsolation: true,
            nodeIntegration: true,
            nodeIntegrationInSubFrames: false,
            preload: preload,
        },
        titleBarStyle: "hidden",
        frame: false, // Add this line
    });
    registerListeners(mainWindow);

    if (MAIN_WINDOW_VITE_DEV_SERVER_URL) {
        mainWindow.loadURL(MAIN_WINDOW_VITE_DEV_SERVER_URL);
    } else {
        mainWindow.loadFile(
            path.join(__dirname, `../renderer/${MAIN_WINDOW_VITE_NAME}/index.html`)
        );
    }

    if (inDevelopment) {
        mainWindow.webContents.openDevTools();
    }

    // Create menu template
    // Define the menu template
    const isMac = process.platform === "darwin";
    const template: (MenuItemConstructorOptions | MenuItem)[] = [
        ...(isMac
            ? [
                  {
                      label: app.name,
                      submenu: [
                          { role: "about" as const },
                          { type: "separator" as const },
                          { role: "services" as const },
                          { type: "separator" as const },
                          { role: "hide" as const },
                          { role: "hideOthers" as const },
                          { role: "unhide" as const },
                          { type: "separator" as const },
                          { role: "quit" as const },
                      ],
                  },
              ]
            : []),
        {
            label: "File",
            submenu: [isMac ? { role: "close" as const } : { role: "quit" as const }],
        },
        {
            label: "Edit",
            submenu: [
                { role: "undo" as const },
                { role: "redo" as const },
                { type: "separator" as const },
                { role: "cut" as const },
                { role: "copy" as const },
                { role: "paste" as const },
                ...(isMac
                    ? [
                          { role: "pasteAndMatchStyle" as const },
                          { role: "delete" as const },
                          { role: "selectAll" as const },
                          { type: "separator" as const },
                          {
                              label: "Speech",
                              submenu: [
                                  { role: "startSpeaking" as const },
                                  { role: "stopSpeaking" as const },
                              ],
                          },
                      ]
                    : [
                          { role: "delete" as const },
                          { type: "separator" as const },
                          { role: "selectAll" as const },
                      ]),
            ],
        },
        {
            label: "View",
            submenu: [
                { role: "reload" as const },
                { role: "forceReload" as const },
                { role: "toggleDevTools" as const },
                { type: "separator" as const },
                { role: "resetZoom" as const },
                { role: "zoomIn" as const },
                { role: "zoomOut" as const },
                { type: "separator" as const },
                { role: "togglefullscreen" as const },
            ],
        },
        {
            label: "Window",
            submenu: [
                { role: "minimize" as const },
                { role: "zoom" as const },
                ...(isMac
                    ? [
                          { type: "separator" as const },
                          { role: "front" as const },
                          { type: "separator" as const },
                          { role: "window" as const },
                      ]
                    : [{ role: "close" as const }]),
            ],
        },
        {
            role: "help",
            submenu: [
                {
                    label: "Learn More",
                    click: async () => {
                        const { shell } = require("electron");
                        await shell.openExternal("https://electronjs.org");
                    },
                },
            ],
        },
    ];

    const menu = Menu.buildFromTemplate(template);
    Menu.setApplicationMenu(menu);

    // attach fullScreen(f11 and not 'maximized') && focus listeners
    attachTitlebarToWindow(mainWindow);
}

// app.whenReady().then(createWindow);
app.whenReady().then(createWindow);

// osX only
app.on("window-all-closed", () => {
    if (process.platform !== "darwin") {
        app.quit();
    }
});

app.on("activate", () => {
    if (BrowserWindow.getAllWindows().length === 0) {
        createWindow();
    }
});
// osX only ends


Android support?

Hello,
Is there any chance of this gem get Android support?
Or any alternatives for "cattr_accessor", for example?
Thanks,

I don't have an Android device, so I'm not sure how much I can help you. What exactly is the problem when you use motion-support with Android? Off the top of my head, not a lot should be incompatible with Android.
You should be able to cherry-pick what you want from motion-support. cattr_accessor can be used via:
require 'motion-support/core_ext/class'

See the readme for details. Let me know if that works for you.

I see, Im going to try to require only "cattr_accessor", but the error that Im getting is this one:
error: Helper has private access in EditorCompat
public class Callback extends java.lang.Object implements com.android.internal.util.Predicate, android.support.v4.content.SharedPreferencesCompat.EditorCompat.Helper, com.android.volley.RequestQueue.RequestFilter {
You can see that Im using Volley for network requests, I'll try to remove Volley to see if that is the issue too, thanks.

Gemfile:
gem 'motion-support', require: false
Then I added to Rakefile:
require 'motion-support/core_ext/class'
The error that I got is:
Exception raised: NoMethodError: undefined method extract_options!' for [:manager]:Array 08-18 18:01:18.999 22129 22129 E br/com/rubythree/hello:       	from attribute_accessors.rb:31 in cattr_reader'
08-18 18:01:18.999 22129 22129 E br/com/rubythree/hello:       	from attribute_accessors.rb:165 in cattr_accessor' 08-18 18:01:18.999 22129 22129 E br/com/rubythree/hello:       	from user_manager.rb:3 in rb_scope2'
08-18 18:01:18.999 22129 22129 E br/com/rubythree/hello:       	from user_manager.rb:1 in `rb_scope1'
I see that extract_options is a method from Array, then I added to Rakefile:
require 'motion-support/core_ext/array'
and I get the error:
Exception raised: NoMethodError: undefined method class_exec' for UserManager:java.lang.Class 08-18 18:04:05.738 23007 23007 E br/com/rubythree/hello:       	from attribute_accessors.rb:34 in block in cattr_reader'
08-18 18:04:05.738 23007 23007 E br/com/rubythree/hello:       	from attribute_accessors.rb:32 in cattr_reader' 08-18 18:04:05.738 23007 23007 E br/com/rubythree/hello:       	from attribute_accessors.rb:165 in cattr_accessor'
08-18 18:04:05.738 23007 23007 E br/com/rubythree/hello:       	from user_manager.rb:3 in rb_scope2' 08-18 18:04:05.738 23007 23007 E br/com/rubythree/hello:       	from user_manager.rb:1 in rb_scope1'
08-18 18:04:05.738 23007 23007 E br/com/rubythree/hello: Uncaught exception when initializing `user_manager.rb.armv7.o' scope -- aborting
and now I dont know whats the next to include :D


Patient Record - Add NCDA [6h]

Issue
We have to make some changes to the way pediatric records are shown in the patient record section. Previously, pediatric patients just had one report card so there were no options at the top as there are for adults. Now that we are introducing the NCDA scorecard there are two options of reports for pediatric patients.
To accommodate the new report, we are updating the pediatric screen to mimic those of adults. They will have two options: Standard Pediatric Report and NCDA Scorecard. They will still be able to enter into pediatric encounters from either of these
This is what it should look like for the Standard Pediatric Report Option. We are just adding in the selection bar at the type. Nothing has changed on the report itself. The button on the bottom goes to start encounter (same as it is currently in patient record)

This is what it will look like for NCDA scorecard. The scorecard is the same as appears in encounters. We are just adding the selection bar at the top. It will also have the start encounter button at the bottom same as SPV record.

To Do:

Make adjustments to pediatric patient record - add in the selection bar, add in the NCDA scorecard.

https://nutrition-ihangane.pantheonsite.io/
QA Review
Found issues and questions:

Weight for height chart is missing from the Standard pediatric report.

Standard pediatric report

The Early childhood development section is horizontally wider than the screen, but it's not possible to scroll with the mouse or with the scrollbar (arrows on keyboard work, but on mobile devices they are not available.)

Checked and approved:

The two tabs display on the page, available encounter types match the ones in description.

Pediatric report
NCDA Scorecard

Encounters:

problems found found not related to this issue


Method failed 'StartsWith'

I am running chef-provisioning 1.4.1 and chef-provisioning-1.4.1.  Since upgrading my clients to chef-client 12.5.1 I am seeing the following error right before the nodes converge ...
- [TestServer01] write file C:\chef\install.ps1 on TestServer01
    [TestServer01] Method invocation failed because [Selected.System.String] does not contain a
                  method named 'StartsWith'.
    [TestServer01] -----> Chef Omnibus installation detected (12.5.1)

    [TestServer01] At C:\chef\install.ps1:19 char:7
                  +   if ($chef_version.StartsWith($version)) { return $false }
                  +       ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
                      + CategoryInfo          : InvalidOperation: (StartsWith:String) [], Runtim
                     eException
                      + FullyQualifiedErrorId : MethodNotFound

    - [TestServer01] run 'powershell.exe -ExecutionPolicy Unrestricted -NoProfile "& ""C:\chef\install.ps1"""' on TestServer01[2015-10-09T14:48:29+00:00] INFO: Processing chef_node[TestServer01] action create (basic_chef_client::block line 57)

    [TestServer02] Method invocation failed because [Selected.System.String] does not contain a
                   method named 'StartsWith'.
                   At C:\chef\install.ps1:19 char:7
                   +   if ($chef_version.StartsWith($version)) { return $false }
    [TestServer02] -----> Chef Omnibus installation detected (12.5.1)

    [TestServer02] +       ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
                       + CategoryInfo          : InvalidOperation: (StartsWith:String) [], Runtim
                      eException
                       + FullyQualifiedErrorId : MethodNotFound

It doesn't seem to stop the client from installing and everything seems to be working fine.

@ajeba99 What version of Windows are you starting up?

Microsoft Windows Server 2012 R2 Base - ami-dfccd1ef
... in AWS.

Hey @ajeba99 - thanks for the report.  We leverage Mixlib::Install to create the installation scripts on both Windows and Linux.  I'm going to close this bug because it is a dup of https://github.com/chef/mixlib-install/issues/16 - please ping there for questions or a progress report!


[AzureMonitorOpenTelemetryDisto] Read options from IConfiguration for Services.AddAzureMonitorOpenTelemetry()

Sample telemetry which has read connection string from appSettings.json
{"name":"Request","time":"2023-03-01T06:16:03.5424326Z","sampleRate":90,"iKey":"00000000-0000-0000-0000-000000000123","tags":{"ai.operation.id":"8739551e7827c7231a539bd2c43fc6a1","ai.user.userAgent":"Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/<IP_ADDRESS> Safari/537.36","ai.operation.name":"GET /favicon.ico","ai.location.ip":null,"ai.cloud.role":"unknown_service:Azure.Monitor.OpenTelemetry.Demo","ai.cloud.roleInstance":"rajrang-ai","ai.internal.sdkVersion":"dotnet7.0.3:otel1.4.0:ext1.0.0-alpha.20230228.1"},"data":{"baseType":"RequestData","baseData":{"id":"3d27f5119d5afbfb","name":"GET /favicon.ico","duration":"00:00:00.0146805","success":false,"responseCode":"404","url":"http://localhost:12256/favicon.ico","properties":{"http.flavor":"1.1","_MS.ProcessedByMetricExtractors":"(Name: X,Ver:\u00271.1\u0027)"},"ver":2}}}

API change check
API changes are not detected in this pull request.


Calculate deltaLines macOS

Calculate deltaLines from the existing scroll delta. Use the accessibility scaling in calculations.
Related to #115

Sorry, I need to get my hands on a mouse. Will check it out soon!

Okay I did some testing. Some new information:

It seems that value of com.apple.scrollwheel.scaling is already accounted by macOS. On higher setting, Chrome scrolls much faster, so I guess your app just starts receiving higher deltaY-s
Minimal deltaY seems to be 0.1 (one wheel tick), but if you do several one after the other, deltaY starts to get higher. That’s scroll acceleration, and again, you don’t have to do anything, macOS just sends you correct values.
By testing both Chrome and Safari, they seem to agree on value of 40 to get from deltaY to px offset. I suggest we do the same

I need you to change some calculations though. Roughly this:

Trackpad.

Detect by [event hasPreciseScrollingDeltas] == true
Get EventMouseScroll::deltaX/deltaY from [event scrollingDeltaX]/[event scrollingDeltaY]
Do not fill EventMouseScroll::deltaLines, as there is no by-line scrolling on trackpad

Mouse

Detect by [event hasPreciseScrollingDeltas] == true
Fill EventMouseScroll::deltaX/Y from [event deltaX/Y] * 40
Fill EventMouseScroll::deltaLines from [event deltaY] * 4 (≈ [event deltaY] * 40 / CGEventSourceGetPixelsPerLine)

As a side effect, this will let JWM clients distinguish trackpad from the mouse
Let me know if you have better ideas or questions

Of course, sorry about that. I'll change the calculations!

I promise I haven't forgotten about this! I have a lot of work at my full-time job this week, but when it clears up I will make the changes.


move_and_* does not work for pixel perfect collisions

Godot version: 3.2.1.stable.official
OS/device including version: Windows 10.0.18362
Issue description: building top down grid like movement game, move_and_slide/move_and_collide add erroneous position data so it moves out of being pixel perfect.  So if x, y position vector of 32,24 would become 32.01216, 24.9389 if told to move_and_slide/move_and_collide.
Steps to reproduce: tiles are 16x16, CollisionShape Collision2D is 16x16, and using move_and_* means that the node has a float position, causing the collision shapes to meet, causing the movement to stop.
Minimal reproduction project:
For reference, here's the level:

This is the issue when move_and_* is called:

The position according to Godot remote:

My solution is to have a smaller collision shape and an additional test move_and_collide and if there is a collision then don't move, and have a final round() when the node stops moving, to snap it back to pixel position.

Godot is inherently incapable of pixel perfect collision. If you want that, you'll need to write a physics engine based on Intergers and AABB tests exclusively.
So this isn't a bug, nor unexpected. You'll find this to be an issue with any Engine which does not feature a custom, pixel perfect, physics Engine.
I recommend you keep faking it. Like the entire rest of the games industry that rely on premade Engines.

To add to what @TheDuriel said, I believe 99% of pixel perfect games out there don't use physics at all, instead just changing transforms by hand.

Duplicate of #37798 and #23140 (the underlying issue is the same).

Something I forgot to mention that you might already be aware of, which did contribute to this, was that the move_and_slide perpetually moved downwards.  On my tilemap, the node ends up further down and to the left of it's final resting position, instead of "in the center" of the tile.  This may be part of a tilemap issue, which I'm about to create an Issue for.  With both of these issues I can't make any levels larger than the screen area because the player gets stuck.

Try position = Vector2(round(position.x), round(position.y)) at the end of _physics_process


Support parameters in workflows

coverage: 92.903% (+0.009%) from 92.894%
when pulling f3244ef73027e6cf7003bca6be5151e6883e68fc on antgonza:support-parameters-in-workflows
into 1c1a4a7112c3a2fbcc4b41f0bdd67d6bcb3a83a3 on qiita-spots:dev.


actual m_link_type value of any menu is not selected

Version information

Laravel: latest
Voyager: latest
PHP: 7.2
Database: MySQL 5.7

Description
m_link_type field of the menu edit popup is always url option selected
Steps To Reproduce
Steps to reproduce the behavior:

Go to Menu constructor
Open any item, change type to route, set the route value and save.
Reopen item
See route value and m_link_type field nomore dynamic.
If you save now, you will loose route value.

Expected behavior
m_link_type select box must be route value, if route is set.
Screenshots

I guess I don't follow what you're saying...
You edit a menu item and change the value to "Dynamic" and save.  You then reopen it and it doesn't show "Dynamic"..?

Yep. The field is empty.20 авг. 2019 г. 17:22 пользователь Eric Fletcher<EMAIL_ADDRESS>написал:I guess I don't follow what you're saying...
You edit a menu item and change the value to "Dynamic" and save.  You then reopen it and it doesn't show "Dynamic"..?
—You are receiving this because you authored the thread.Reply to this email directly, view it on GitHub, or mute the thread.

I think this is related to https://github.com/the-control-group/voyager/issues/4365 and was fixed in https://github.com/the-control-group/voyager/pull/4369
Please let us know if it wasn't fixed in 1.3 (after it is released of course)


SSL Certification error

 Issue by jonathanahumada
Mon May 29 03:18:05 2017
Originally opened as https://github.com/codelucas/newspaper/issues/372

Hi, everyone. I was happily using newspaper. However, since I started working on a mac, whenever I try to use the build() function, I get the error code depicted below. I'm new to programming so I don't know if the problem is related to the configuration of my HTTP/TCP settings, especially since on my other laptop I am able to use the build() function.
I'll be grateful for any help concerning the problem. Thank you very much.
I'm using a MacBook Pro with macOS Sierra v.10.12.4 and Python 3.6, if that's any help.
Exception reading Public Suffix List url http://mxr.mozilla.org/mozilla-central/source/netwerk/dns/effective_tld_names.dat?raw=1 - <urlopen error [SSL: CERTIFICATE_VERIFY_FAILED] certificate verify failed (_ssl.c:749)>.
Exception reading Public Suffix List url https://raw.github.com/mozilla/gecko-dev/master/netwerk/dns/effective_tld_names.dat - <urlopen error [SSL: CERTIFICATE_VERIFY_FAILED] certificate verify failed (_ssl.c:749)>.
No Public Suffix List found. Consider using a mirror or constructing your TLDExtract with `fetch=False`.

use verify=False (scince 0.9.2)


[DWARF] Remove GetLanguageAttributeValue().

While I'm around, a couple of small cleanups to reduce the diff.

@swift-ci test and merge


Prevent VM's "TerminationGracePeriod" from negative value

IMPORTANT: Please do not create a Pull Request without creating an issue first.
Problem:

Harvester can create or update VM's TerminationGracePeriod with a negative value.
Solution:

Prevent negative value for VM's TerminationGracePeriod during creation or update via vm validator webhook.
In addition, vm mutator sets the default value for TerminationGracePeriod field during the update. Make the handling consistent between creation and update.
Related Issue:
Issue #3946
Test plan:

Case1: Setting negative TerminationGracePeriod for VM creation

Create a virtual machine
Expand Advanced Options
Set a negative value to TerminationGracePeriod and save
We should see the operation be prohibited by webhook with msg Termination grace period can't be negative

Case2: Setting negative TerminationGracePeriod value for VM update

Create a virtual machine with default TerminationGracePeriod value
Open the edit page for the newly created VM
Set a negative value to TerminationGracePeriod and save
We should see the operation be prohibited by webhook

@mergify backport v1.2


longpress on iOS safari not work

It's not work

@jet10000 should be fixed in 1.1.1
use
if necessary


Feature request: send read-receipts to Matrix once matterbridge has received and processed a message

Is your feature request related to a problem? Please describe.
Currently the read-receipts at Matrix only sync/jump when a message is sent through Matterbridge to Matrix.
Describe the solution you'd like
I would like Matterbridge to tell Matrix when it has read a message so the read-receipts could tell more easily whether the bot is up/connected and in cases where majority of the room is at Matrix, that would make precense of Matterbridge more obvious.
Describe alternatives you've considered
Doing nothing is an option., this seems like a small thing.
Additional context
I have observed Mautrix-Telegram doing this.

I am told that this would be done by sending https://matrix.org/docs/spec/client_server/latest#post-matrix-client-r0-rooms-roomid-receipt-receipttype-eventid with receiptType m.read every room id and event id after processing the event.


Update LLVM and stablehlo to latest green commit

I upgraded LLVM to commit: b2cdf3cc4c08729d0ff582d55e40793a20bbcdcc
I also upgrade stablehlo to commit: cb42882825af722cc108e0051f760ec670321ce7
https://github.com/openxla/stablehlo/pull/1890/files
The reason why I upgraded stablehlo is because there are recent updates with LLVM that stablehlo also pulled in, so we need both updates in order to avoid errors.
LLVM Update:
In TypeSupport.h a new parameter was added about 3 weeks ago to include the attribute names in AbstractType -> https://github.com/llvm/llvm-project/commit/3dbac2c007c114a720300d2a4d79abe9ca1351e7
stablehlo Update
In stablehlo we needed to replace mlir::DenseIntElementsAttr with mlir::DenseI64ArrayAttr, except for in the case of ConstantOp, mlir::DenseI64ArrayAttr is not supported yet so instead I used  mlir::DenseElementsAttr to bypass errors -> https://github.com/openxla/stablehlo/pull/1887/files

@jenkins-droid test this please

@ashay Hello!! I can use your expertise here :)
I am so close to building this PR successfully but I get this error only on Linux nodes when running the CI:
[ 65%] Linking CXX shared library ../../../../Release/lib/libStablehloPasses.so
CMakeFiles/obj.StablehloPasses.dir/StablehloInstrumentWithProbe.cpp.o: In function `std::unique_ptr<mlir::Dialect, std::default_delete<mlir::Dialect> > llvm::function_ref<std::unique_ptr<mlir::Dialect, std::default_delete<mlir::Dialect> > ()>::callback_fn<mlir::MLIRContext::getOrLoadDialect<mlir::stablehlo::interpreter::InterpreterDialect>()::{lambda()#1}>(long)':
StablehloInstrumentWithProbe.cpp:(.text._ZN4llvm12function_refIFSt10unique_ptrIN4mlir7DialectESt14default_deleteIS3_EEvEE11callback_fnIZNS2_11MLIRContext16getOrLoadDialectINS2_9stablehlo11interpreter18InterpreterDialectEEEPT_vEUlvE_EES6_l[_ZN4llvm12function_refIFSt10unique_ptrIN4mlir7DialectESt14default_deleteIS3_EEvEE11callback_fnIZNS2_11MLIRContext16getOrLoadDialectINS2_9stablehlo11interpreter18InterpreterDialectEEEPT_vEUlvE_EES6_l]+0x28): undefined reference to `mlir::stablehlo::interpreter::InterpreterDialect::InterpreterDialect(mlir::MLIRContext*)'
CMakeFiles/obj.StablehloPasses.dir/StablehloInstrumentWithProbe.cpp.o: In function `mlir::stablehlo::interpreter::ProbeOp mlir::OpBuilder::create<mlir::stablehlo::interpreter::ProbeOp, mlir::Value&, mlir::StringAttr>(mlir::Location, mlir::Value&, mlir::StringAttr&&)':
StablehloInstrumentWithProbe.cpp:(.text._ZN4mlir9OpBuilder6createINS_9stablehlo11interpreter7ProbeOpEJRNS_5ValueENS_10StringAttrEEEET_NS_8LocationEDpOT0_[_ZN4mlir9OpBuilder6createINS_9stablehlo11interpreter7ProbeOpEJRNS_5ValueENS_10StringAttrEEEET_NS_8LocationEDpOT0_]+0x80): undefined reference to `mlir::stablehlo::interpreter::ProbeOp::build(mlir::OpBuilder&, mlir::OperationState&, mlir::Value, mlir::StringAttr)'
StablehloInstrumentWithProbe.cpp:(.text._ZN4mlir9OpBuilder6createINS_9stablehlo11interpreter7ProbeOpEJRNS_5ValueENS_10StringAttrEEEET_NS_8LocationEDpOT0_[_ZN4mlir9OpBuilder6createINS_9stablehlo11interpreter7ProbeOpEJRNS_5ValueENS_10StringAttrEEEET_NS_8LocationEDpOT0_]+0xb0): undefined reference to `mlir::detail::TypeIDResolver<mlir::stablehlo::interpreter::ProbeOp, void>::id'
[ 65%] Building CXX object src/Accelerators/NNPA/Dialect/ZHigh/CMakeFiles/OMZHighOps.dir/ZHighOps/StickForGRU/StickForGRU.cpp.o
clang-16: error: linker command failed with exit code 1 (use -v to see invocation)
make[2]: *** [third_party/stablehlo/stablehlo/transforms/CMakeFiles/StablehloPasses.dir/build.make:152: Release/lib/libStablehloPasses.so.18git] Error 1
make[1]: *** [CMakeFiles/Makefile2:8396: third_party/stablehlo/stablehlo/transforms/CMakeFiles/StablehloPasses.dir/all] Error 2
make[1]: *** Waiting for unfinished jobs....

Have you seen this before? Maybe I made a slight mistake with my edits. Let me know your thoughts please. Thanks again!

Hey @hamptonm1, this looks like a problem in the (upstream) Stablehlo build.  The StablehloInstrumentWithProbePass::probeValue() in StablehloInstrumentWithProbe.cpp, there's a reference to interpreter::ProbeOp, which is defined (through TableGen) in InterpreterOps.td.  Going by stablehlo/reference/CMakeLists.txt, the interpreter::ProbeOp symbol gets defined in the InterpreterOps library target, but this target is not added to the dependencies of the StablehloPasses passes, and so your build fails with an undefined reference error.
I'll submit a patch to Stablehlo (I hope that's the only issue), but you could try the change locally and see if that gets your build to pass.

Hey @hamptonm1, this looks like a problem in the (upstream) Stablehlo build. The StablehloInstrumentWithProbePass::probeValue() in StablehloInstrumentWithProbe.cpp, there's a reference to interpreter::ProbeOp, which is defined (through TableGen) in InterpreterOps.td. Going by stablehlo/reference/CMakeLists.txt, the interpreter::ProbeOp symbol gets defined in the InterpreterOps library target, but this target is not added to the dependencies of the StablehloPasses passes, and so your build fails with an undefined reference error.
I'll submit a patch to Stablehlo (I hope that's the only issue), but you could try the change locally and see if that gets your build to pass.

Ahhh thank you!!!

Can you keep me posted with the upstream fix please?

Sorry for the delay.  I had to rebuild LLVM and StableHLO to make sure that my patch didn't cause any other problems.  Here's the PR to fix the problem: https://github.com/openxla/stablehlo/pull/1894.

Can you keep me posted with the upstream fix please?

Sorry for the delay. I had to rebuild LLVM and StableHLO to make sure that my patch didn't cause any other problems. Here's the PR to fix the problem: openxla/stablehlo#1894.

No worries! Thanks for the quick fix of adding the target! Once that is merged in, I will switch the commit I am using for stablehlo.

@jenkins-droid test this please

@ashay Okay so now I get this error with your latest upstream fix:

+<EMAIL_ADDRESS>[2023-12-20 13:48:40][073] INFO: docker run --rm -u 111:117 -v /var/lib/jenkins/workspace/ONNX-MLIR-Pipeline-Docker-Build@pr_2662/mnist:/workdir/mnist onnxmlirczar/onnx-mlir:2662 --EmitLib /workdir/mnist/mnist.onnx
onnx-mlir: error while loading shared libraries: libInterpreterOps.so.18git: cannot open shared object file: No such file or directory

I see.  Can you try adding InterpreterOps to STABLEHLO_LIBS in src/Conversion/ONNXToStableHlo/CMakeLists.txt?

I see. Can you try adding InterpreterOps to STABLEHLO_LIBS in src/Conversion/ONNXToStableHlo/CMakeLists.txt?

Okay let me try now

@jenkins-droid test this please

@ashay It finally passed! I had to add all targets mentioned in stablehlo/reference/CMakeLists.txt for this to work. Thanks for your help along the way! Please feel free to review when you have a free minute :)

@Connor-XY I was able to get this to build successfully, please review given you have expertise in Stablehlo. Thanks!

Could we remove EXCLUDE_FROM_ALL so that we don't need to manually install the required libraries? https://github.com/onnx/onnx-mlir/blob/2b287731f6826e7fa38be3c4d22bc8f4db4145a4/CMakeLists.txt#L174

Could we remove EXCLUDE_FROM_ALL so that we don't need to manually install the required libraries?
https://github.com/onnx/onnx-mlir/blob/2b287731f6826e7fa38be3c4d22bc8f4db4145a4/CMakeLists.txt#L174

@ashay Was there a reason why we have the EXCLUDE_FROM_ALL ? I just want to make sure before changing the value to false to include all libraries as @Connor-XY suggested.

Jenkins Linux s390x Build #13787 [push] Update LLVM and stablehl... started at 10:49

Jenkins Linux amd64 Build #13760 [push] Update LLVM and stablehl... started at 09:49

Jenkins Linux ppc64le Build #12784 [push] Update LLVM and stablehl... started at 10:55

Was there a reason why we have the EXCLUDE_FROM_ALL ?

Sorry, I have no idea.  I simply updated the line from the previous MHLO-based build to point to StableHLO, so I don't think I am the original author of that line.

Jenkins Linux s390x Build #13787 [push] Update LLVM and stablehl... passed after 1 hr 54 min

Jenkins Linux amd64 Build #13760 [push] Update LLVM and stablehl... passed after 2 hr 12 min

Jenkins Linux ppc64le Build #12784 [push] Update LLVM and stablehl... passed after 2 hr 52 min

Was there a reason why we have the EXCLUDE_FROM_ALL ?

Sorry, I have no idea. I simply updated the line from the previous MHLO-based build to point to StableHLO, so I don't think I am the original author of that line.

@Connor-XY I can test this out before updating and wait until the stakeholders come back from vacation before asking if we should remove this EXCLUDE or not. Thanks.


Fix type for grpcWeb.Error to grpcweb.RpcError

What this PR does / why we need it:
I found the type some errors. This is for type grpcWeb.RpcError.
From grpc-web 1.3.0, grpcWeb.Error has changed to grpcWeb.RpcError.
https://github.com/grpc/grpc-web/releases/tag/1.3.0

Major Features
#1139 Improve error type with RpcError & internal code sync (contributor: @TomiBelan)
(experimental) Typescript users need to update type references from Error -> RpcError

I checked the type error for grpcWeb.Error disappeared.
Before
% npm run typecheck                                                                   (git)-[fix-type-for-grpcWeb-error]

><EMAIL_ADDRESS>typecheck
> tsc --noEmit

src/__fixtures__/dummy-application-live-state.ts:60:14 - error TS2741: Property 'ecs' is missing in type '{ applicationId: string; healthStatus: ApplicationLiveStateSnapshot.Status.HEALTHY; kind: ApplicationKind.KUBERNETES; pipedId: string; version: { index: number; timestamp: number; }; ... 4 more ...; kubernetes: { ...; }; }' but required in type 'Required<AsObject>'.

60 export const dummyApplicationLiveState: ApplicationLiveState = {
                ~~~~~~~~~~~~~~~~~~~~~~~~~

  model/application_live_state_pb.d.ts:72:5
    72     ecs?: ECSApplicationLiveState.AsObject,
           ~~~
    'ecs' is declared here.

src/api/client.ts:10:17 - error TS2694: Namespace '"grpc-web"' has no exported member 'Error'.

10   (err: grpcWeb.Error, response: { toObject: () => Res }): void;
                   ~~~~~

Found 2 errors.

After
% npm run typecheck                                                                   (git)-[fix-type-for-grpcWeb-error]

><EMAIL_ADDRESS>typecheck
> tsc --noEmit

src/__fixtures__/dummy-application-live-state.ts:60:14 - error TS2741: Property 'ecs' is missing in type '{ applicationId: string; healthStatus: ApplicationLiveStateSnapshot.Status.HEALTHY; kind: ApplicationKind.KUBERNETES; pipedId: string; version: { index: number; timestamp: number; }; ... 4 more ...; kubernetes: { ...; }; }' but required in type 'Required<AsObject>'.

60 export const dummyApplicationLiveState: ApplicationLiveState = {
                ~~~~~~~~~~~~~~~~~~~~~~~~~

  model/application_live_state_pb.d.ts:72:5
    72     ecs?: ECSApplicationLiveState.AsObject,
           ~~~
    'ecs' is declared here.

Found 1 error.

Which issue(s) this PR fixes:
Fixes #
Does this PR introduce a user-facing change?:

How are users affected by this change:
Is this breaking change:
How to migrate (if breaking change):

Sorry about that, lol.


Host only migration

In VMware it is possible to do a "host only" migration, and leave the VM on its current (shared) datastore.
The docs here say for vm migrate "Resource pool and datastore are mandatory."
but... I can't find any way (with knife-vsphere) to query which datastore the vm lives on in the first place.
Seems like datastore should be an optional parameter if --dest-host is supplied, indicating a host-only migration.

Hi, the docs say the datastore is optional - The datastore where the virtual machine should be located. If not specified, the current datastore is used., so yea, it could be optional.


readme.md files

It would be good if someone could update the readme files in each of the directories.
Comment below if interested. This would help to maintain proper documentation.
I will provide the format if someone wants to try

Assign this issue to me!


Start/Stop GDB Server

It might be worth looking into the possibility of starting and stopping GDB server for basic command-line or IDE based debugging based on either Segger's free GDB Server or GDB support in OpenOCD with the STLink/V2.
Perhaps three commands could be implemented:

--gdbstart Start running GDB server in the background so that an IDE or user can connect via Telnet
--gdbstop Stop running GDB server in the background
--gdb <filename> Start GBD in interactive mode from the command line (manually entering commands)

This will make certain things easier once we start integrating the boards into the Arduino IDE, and to give a low cost option to see what's going on inside the MCU.
GDB isn't very well understood, but it's quite powerful and I can make a simple tutorial to explain the basics like reading/writing registers and setting breakpoints.
Related Links

Segger GDB Server
Short GDB Tutorial (PDF)

JLink's free debugger tool can be used for reasonably complex debugging, including setting watch points, break points, etc., so this probably isn't an issue that immediately needs to be addressed.  I'll close the issue and we can reopen it later if necessary.


Add Network Kinds and add popup enable option

resolves: #34

Add RangeOnly and NetworkOnly to kind in host_network.rs
Add enable_pop_up to input so inputs don't always need popups


Only name="Size" works in Filters

Hi @Skornos , In android filters work fine but in Ios it takes only name="Size" otherwise it never shows.
Even it doesn't recognize "size" it only works when name="Size". The real problem is that the name is also shown as label(in android and ios both).

@MuhammadAmmad thanks for reporting the issue.
We have just added a new feature on our backend - Filters are no longer hardcoded as they are dynamically downloaded from the server.
I will implement this feature on iOS during the weekend.

OK i m waiting

Hi @Skornos , any enhancement?

Hi @MuhammadAmmad, it is still in progress, I am working on couple of other tasks at the moment. I will inform you when the work is done.

@Skornos Are u working on it?

@MuhammadAmmad sorry for the delay, we are working on multiple project improvements and this will be added as a part of the release in the upcoming days :)

@Skornos Thanks. Although I added the filters which I need in your way in the code for temporary soluiton.

@Skornos Hi, Can you please create another branch for development as in openshop.io android repository? So that we can view on which module you are currently working. Thanks

Any improvements?


Interrupted by signal 11:SIGSEGV

I got the issue "Process finished with exit code 139 (interrupted by signal 11: SIGSEGV)"
when i am trying to reproduce the same results over the ukp data set.
The problem appears while running exp_train_test.py using the arguments "ukp --method rnn-struct --model strict [--dynet-seed=42]"
The console output is as follows:
[dynet] random seed:<PHONE_NUMBER>
[dynet] allocating memory: 512MB
[dynet] memory allocation done.
2017-07-18 12:27:07,154 - root - INFO - rnn-struct strict on ukp ({'max_iter': 10, 'mlp_dropout': 0.15})
2017-07-18 12:27:13,659 - root - INFO - Setting node class weights Claim: 1.0, MajorClaim: 1.0, Premise: 1.0
2017-07-18 12:27:13,660 - root - INFO - Setting link class weights False: 1.0, True: 4.725530458590007
2017-07-18 12:27:13,660 - root - INFO - Overriding n_embeds to glove size 300
2017-07-18 12:27:13,671 - root - INFO - Initializing embeddings...
2017-07-18 12:27:13,799 - root - INFO - ...done
Process finished with exit code 139 (interrupted by signal 11: SIGSEGV)
Do you know what can be causing this problem ?, and i am using dynet v1.1

Hi!
I have never seen this particular issue before, but we should be able to get to the bottom of it.
First: this probably has nothing to do with the error, but you should not include the brackets in [--dynet-seed=42]. In the usage string, the brackets are a convention denoting that the argument is optional. As evidence, the first line of output should not say [dynet] random seed:<PHONE_NUMBER> but [dynet] random seed: 42 if the seed is set correctly. Try removing the brackets.
Second, have you tried other configurations, for instance --model=bare, --model=full, or --method=rnn --model=bare? Do those also trigger the issue?
Finally, to pinpoint what triggers the segfault, could you try turning on the Python debugger by adding the line import pdb; pdb.set_trace() to the exp_train_test.py file, and then, when running it, proceeding step-by-step using s until you encounter the error, and then let me know what line the error occurs at?
The error should come from either ad3, dynet, or (very unlikely) pystruct. Could you also tell me how you installed all these 3 libs?
Thanks!

So, I ran it using --method=rnn --model=bare and it worked.
I tried tracing the code to find the line that triggers the issue. and i think this is the one
y_hat, status = self._inference(doc, potentials, relaxed=True,
exact=self.exact_inference,
constraints=self.constraints)
line 500 in argrnn.py.

regarding installing dynet,i installed it following the manual installation process in here "http://dynet.readthedocs.io/en/latest/python.html", after i downloaded version 1.1 instead of 2
ad3: i installed this version "http://www.cs.cmu.edu/~ark/AD3/"
pystruct: i installed it using (either pip or conda) on anaconda

Thanks, your analysis is great!
Both signs point to the fact that the AD3 inference is the culprit. In particular, --method=rnn --model=bare does not use AD3 inference at all, which is why you don't see the error.
At the moment marseille requires a few changes in the ad3 python wrapper, so the current release from the website you linked does not work.  Please uninstall your current version of ad3 and then install the one from my fork here. I am working on making a new release of ad3 more easily available and easier to install. If you are having issues installing the version from my fork, let me know. Thanks!

I installed the AD3 version you sent me, i am still facing the same issue while running the "strict" variant.

Hmm, maybe there are some issues with your AD3 install. Can you try running the AD3 python examples and the python unit tests?
It might be worth trying to install all the dependencies in a fresh, empty virtualenv to make sure that old versions are not accidentally used.

I made sure that i am using the fresh installation of the AD3, then
I tried running two examples (example.py & example_grid_diversity.py).
I also tried the two test files (test_basic.py & test_pystruct.py)
And everything works just fine.

Yet the error with Marseille is still there?
This is odd. It would be great if you could still try installing everything in a fresh virtualenv. What OS are you using?

Linux, Ubuntu

That is exactly the same as what I am using, so it is probably not about that. Let me know what the results are in a fresh virtualenv.
BTW, what happens if you use cdcp instead of ukp (but still with rnn-struct strict)? How about the linear-struct strict models?

I still didn't try cdcp, however I tried the linear-struct strict model. It fails too, the output is as follows
[dynet] random seed:<PHONE_NUMBER>
[dynet] allocating memory: 512MB
[dynet] memory allocation done.
2017-07-27 18:44:48,226 - root - INFO - linear-struct strict on ukp ({'C': 0.03})
2017-07-27 18:46:24,845 - root - INFO - Setting node class weights Claim: 1.0, MajorClaim: 1.0, Premise: 1.0
2017-07-27 18:46:24,845 - root - INFO - Setting link class weights False: 1.0, True: 4.801313628899836
2017-07-27 18:46:24,845 - root - INFO - Joint feature size: 29033
Iteration 0
Process finished with exit code 139 (interrupted by signal 11: SIGSEGV)

I just tried making an empty virtualenv and installing all the dependencies from scratch, and I still could not reproduce this problem.
What version of python are you using?
When you stepped through the code via the debugger, did it manage to get through any documents before crashing, or does it crash at the very first call to inference?
In any case I am working on making AD3 a bit safer to naked memory accesses, which might help pinpoint what's going on here. I plan to make a new release soon.

I just released AD3 v2.1 which can be installed with pip install --upgrade ad3. Would you mind trying again using this release?


Listed plugins incompatible with latest YOURLS

Code of Conduct

[X] I agree to follow this project's Code of Conduct.

Submission validity

[X] This is not a personal support request, that should be posted on discussions community.
[X] I checked current issues and this request isn't a duplicate of an existing issue, opened or closed.

Self troubleshooting

[X] I've read the documentation and made sure to follow it.
[X] I've read the troubleshooting first steps and frequent issues guides.

Version
1.9.2
Description
The listed plugins APC Cache and YAPCache are not compatible with the latest version(s) of YOURLS. They are calling DB class properties that are not public anymore... Best to remove them?
I'm working on a replacement plugin that is compatible with APCu and YOURLS v1.9.2 on https://github.com/RavanH/APCu-Cache if anyone is interested...
Expectation
No response
Reproduction steps
No response
Context
No response

Rather that unlist them, I'd rather link to an updated version when available, and leave to the user the decision of what to do when they come across a plugin that hasn't been updated in years. Most will work fine. Some will break.
Unlisting them would imply :

to maintain a compatibily list and test everything against every future YOURLS version, blargh
to remove the opportunity that someone updates them when they see a need, like you're doing with APC (neat!)

(When your plugin is functional and tested, be sure to file a PR on Awesome YOURLS to get it listed!)

Maybe add a warning or compatibility info? The plugins will cause an error 500 when installed... My alternative on https://github.com/RavanH/APCu-Cache appears to be working (testing phase) so far.


Code blocks with Rust Playground?

Just wondering - I noticed there's new work for copying code blocks to the clipboard.
What about an additional "playground" button for rust code blocks? See rustdoc for examples: https://doc.rust-lang.org/rustdoc/what-is-rustdoc.html
There is an additional feature here they use to hide boilerplate code, too.

No worries, thanks for doing the research. I'll close it ;P


feat(core): Add autoStart feature

Add an autostart feature into multiple tours.
Issue attached: #50

any update on this?