text:
Scaling doesn't take ticks min/max into account

Expected Behavior
When the dataset is "filtered" by using min/max, the scaling of the y-axes should use the "filtered" dataset.
Current Behavior
The scaling is calculated from the full dataset and not the "filtered" dataset.
Possible Solution
Use the "filtered" dataset when calculating scaling?
Steps to Reproduce
https://jsfiddle.net/0426Lvsb/ (click magic and notice that the y-axis scale doesn't change)
Context
I'm using Chart.js to show download stats for Flathub and you can choose a interval (infinity, 365 days, 30 days, 14 days). Some of the data contains some high spikes, which means when you choose 14 days the scaling doesn't match the shown data (most of the chart is empty).
Link: https://klausenbusk.github.io/flathub-stats/
Environment
Chart.js version: 2.9.3
Browser: Firefox Nightly
Project: https://github.com/klausenbusk/flathub-stats/ (deployed here)

I believe this works the way you'd like it to with 3.0.0-alpha. Can you give it a try?

I believe this works the way you'd like it to with 3.0.0-alpha. Can you give it a try?

I just tried and it does: https://jsfiddle.net/b72kfd9e/14 I assume we can close this issue?

@benmccann didn't you guys default lineTension to 0 as part of https://github.com/chartjs/Chart.js/pull/7386?
clicking "magic" in this fiddle produces an "interesting" curve ;)

@leeoniya we did, but I believe that was after the first alpha release. I think we're quite close to a 2nd alpha (#7435 is the big thing we're trying to get in)

I'm closing this since it sounds like it's addressed. Let me know if there's still something that needs to be looked at

authors: benmccann etimberg klausenbusk leeoniya


text:
Refactoring to put browser specific code in a new class

First revision of the implementation of https://simonbrunel.gitbooks.io/chartjs-proposals/content/Platform.html#event-management
The BrowserPlatform class is attached to each chart to handle browser specific logic. This can be replaced on a different platform. BrowserPlatform implements IPlatform (the general interface that all platform implementations must support). Chart.Platform is the constructor for the platform object that is attached to the chart instance.
Plugins are notified about the event using the onEvent call. The legend plugin was converted to use onEvent instead of the older private handleEvent method.
Wrote test to check that plugins are notified about events

I'm not sure if it's better to have a single onEvent for plugins or if it's better to have one for each internal event type (ie. onMouseMove, onClick, etc)

source: gharchive/pull-request

license: MIT

license_type: permissive

license_source: github-api


text:
[FEATURE] 开启对话时，能否由AI先发起对话；输入问题后，能否在输入框前面举出更加符合的问题方式

功能描述 / Feature Description
开启对话时，能否由AI先发起对话；输入问题后，能否在输入框前面举出更加符合的问题方式
实现建议 / Implementation Suggestions

没有做这个功能

source: gharchive/issue

authors: gz-simon zRzRzRzRzRzRzR

repo: chatchat-space/Langchain-Chatchat


text:
merger resolving: Added relabelMergers() function to refine segmentation on Ilastik

The relabelMergers() function was added, and is called from within opConservationTracking in Ilastik to request frames with refined merger segmentations.

This definitely reduces the memory footprint, but it means relabelMergers() is run twice per frame.
Unfurtunately, fitting GMMs (our current merger relabeling technique) is not deterministic, and so one might get out a tracking solution that doesn't necessarily fit to the images.

We could add another method to our merger resolving plugin and use the fit that we have already computed and stored (we only use the fits of the previous frames here https://github.com/chaubold/hytra/pull/6/files#diff-060028ca83bd4e2a8b4f1914aed823f5R137).
By doing so, we could simply not call GMM.fit() in https://github.com/chaubold/hytra/blob/development/hytra/plugins/merger_resolver/gmm_merger_resolver.py#L39  but only call GMM.predict() to reassign the pixels.

authors: JaimeIvanCervantes chaubold

repo: chaubold/hytra

license: mit

license_source: bigquery


text:
use build rather than lint-build-test in workflow

This stops you having the unmet build step - see that all successful checks have passed below

This stops you having the unmet build step - see that all successful checks have passed below

Gotcha. Weird that the build steps hangs around!

authors: eleanorreem swetha-charles

repo: chaynHQ/bloom-frontend


text:
Support zsh and deactivate when leaving environment directories

Hi!
The conda-auto-env script is really handy but I missed two features, here added:

Support for zsh.
Deactivating environments when leaving their directories.

Also included some minor inconsequential changes to code and comments.
I hope these minor changes will be accepted.
zshell
Easybird gave an easy solution for modifying .zshrc to support the script but it is better if the script works with just source (and addresses some minor issues). At least, for me, I missed the comment and spent time on finding a workaround. The modification simply checks the active shell and hooks zsh differently.
Deactivating environments
When working, often one will jump around between directories and this introduces the issue that whatever environment one was working with last sticks in the terminal. E.g., if one's default/root Conda environment has different versions or packages, these will be not be available after having entered a project directory. This behavior also persists to new tabs in a terminal. A simple work-around was to deactivate the current environment, in favor of the default, when no longer in a subdirectory of the directory that an environment was activated in.
(New pull request because I accidentally included an extraneous file.)

Hi! The script works well (it activates and deactivates the environments) but when using it with a GNU bash, version 4.3.42(1)-release (x86_64-apple-darwin15.0.0).
I get the following errors:
$ source conda_auto_env.sh
ps: cmd: keyword not found
ps: no valid keywords; valid keywords:

Would be nice to get it merged though, I was looking exactly for this automatic switching on and off of environments, so thanks for that 👍

Hi, any news if this is going to be merged 😄?

Hi @emirlej. Thanks for the ping but I think this repo is presently stale. I would look through the 30 forks to find the one with features best matching your preferences. There is at least one other fork besides mine that adds the features of this PR. At the top of this PR, you can also find my branch. I haven't been using it for some time though so it may require updating.

authors: cwenner emirlej jeiros

repo: chdoig/conda-auto-env


text:
Typescript 5.0 esm

Fixes #24

✨LGTM✨

Thanks @samelliottdlt!

repo: checkdigit/typescript-config


text:
bug: __checkFilePath points to the wrong path when checkly resources are imported from different files

Node.js version
16
NPM version
8
@checkly/cli version
0.4.3
Steps to reproduce
Let's say you have your checkly resources in file called resources.js|ts and these are imported by a check file, group.check.js, the relative path entrypoint calculation will be wrong in this case. __checkFilePath will be set as group.check.js and the entrypoint relative path functionality will break
What is expected?
That we have a relative path built according to the file which created the resources
What is actually happening?
Explained in the steps to reproduce
Any additional comments?
No response

I've updated the docs to clarify this a bit, but it's still a tricky aspect of the CLI. Should we keep this issue open so that we can circle back to it later some day?

authors: clample umutuzgur

repo: checkly/checkly-cli


text:
Instagramアカウントを作りたい

被災地お役立ちツール、ボランティア役立ちツール、TIPSの共有・シェアのため。

作った。
https://www.instagram.com/cheerup.ehime/
#closed


text:
chef-client audit-mode exception when the audit cookbook is used

Cookbook version
audit 0.5.0
Chef-client version
12.5.1, 12.9.38
Platform Details
CentOS 6
Steps to Reproduce:
Run chef-client in audit mode with the audit::default in the runlist. The failure is not impacting in any way the chef-client run.
[root@vagrant-local-linux ~]# chef-client --audit-mode enabled
Starting Chef Client, version 12.5.1
resolving cookbooks for run list: ["audit::default"]
Synchronizing Cookbooks:
  - audit (0.5.0)
Compiling Cookbooks...
Converging 2 resources
Recipe: audit::default
  * compliance_profile[mylinux] action fetch
    * chef_gem[inspec] action install (up to date)
[2016-04-26T18:13:30+00:00] WARN: Using inspec version: (0.19.3)
    - install/update inspec
    * directory[/var/chef/cache/compliance] action create (up to date)
    - fetch compliance profile
    * chef_gem[inspec] action install (up to date)
    * directory[/var/chef/cache/compliance] action create (up to date)

  * compliance_profile[mylinux] action execute
    * chef_gem[inspec] action install (up to date)
[2016-04-26T18:13:30+00:00] WARN: Using inspec version: (0.19.3)
    - install/update inspec..F

Failures:

  1) Service iptables should be running
     Failure/Error: Unable to find admin/mylinux/controls/services_spec.rb to read failed line
       expected that `Service iptables` is running
     # admin/mylinux/controls/services_spec.rb:12:in `block (3 levels) in load'
     # /var/chef/cache/cookbooks/audit/libraries/profile.rb:112:in `block (2 levels) in <class:ComplianceProfile>'
     # /var/chef/cache/cookbooks/audit/libraries/profile.rb:93:in `block in <class:ComplianceProfile>'

Finished in 0.09885 seconds (files took 0.78511 seconds to load)
3 examples, 1 failure

Failed examples:

rspec  # Service iptables should be running

    - execute compliance profile
    * chef_gem[inspec] action install (up to date)
    * file[/var/chef/cache/compliance/admin_mylinux_report.json] action create
      - update content in file /var/chef/cache/compliance/admin_mylinux_report.json from 6f5303 to de6456
      - suppressed sensitive resource
      - restore selinux security context

  * compliance_report[chef-server] action execute
    - report compliance profiles' results
Starting audit phase
RSpec's reporter has already been initialized with #<IO:<STDOUT>> as the output stream, so your change to `output_stream` will be ignored. You should configure it earlier for it to take effect. (Called from /opt/chef/embedded/lib/ruby/gems/2.1.0/gems/chef-12.5.1/lib/chef/audit/runner.rb:120:in `set_streams')

[2016-04-26T18:13:31+00:00] ERROR: Audit phase failed with error message: undefined method `split' for nil:NilClass

Audit phase exception:
  undefined method `split' for nil:NilClass
  /opt/chef/embedded/lib/ruby/gems/2.1.0/gems/chef-12.5.1/lib/chef/audit/audit_event_proxy.rb:63:in `build_control_from'
  /opt/chef/embedded/lib/ruby/gems/2.1.0/gems/chef-12.5.1/lib/chef/audit/audit_event_proxy.rb:48:in `block in stop'
  /opt/chef/embedded/lib/ruby/gems/2.1.0/gems/chef-12.5.1/lib/chef/audit/audit_event_proxy.rb:47:in `each'
  /opt/chef/embedded/lib/ruby/gems/2.1.0/gems/chef-12.5.1/lib/chef/audit/audit_event_proxy.rb:47:in `stop'
  /opt/chef/embedded/lib/ruby/gems/2.1.0/gems/rspec-core-3.3.2/lib/rspec/core/reporter.rb:184:in `block in notify'
  /opt/chef/embedded/lib/ruby/gems/2.1.0/gems/rspec-core-3.3.2/lib/rspec/core/reporter.rb:183:in `each'
  /opt/chef/embedded/lib/ruby/gems/2.1.0/gems/rspec-core-3.3.2/lib/rspec/core/reporter.rb:183:in `notify'
  /opt/chef/embedded/lib/ruby/gems/2.1.0/gems/rspec-core-3.3.2/lib/rspec/core/reporter.rb:178:in `stop'
  /opt/chef/embedded/lib/ruby/gems/2.1.0/gems/rspec-core-3.3.2/lib/rspec/core/reporter.rb:152:in `block in finish'
  /opt/chef/embedded/lib/ruby/gems/2.1.0/gems/rspec-core-3.3.2/lib/rspec/core/reporter.rb:170:in `close_after'
  /opt/chef/embedded/lib/ruby/gems/2.1.0/gems/rspec-core-3.3.2/lib/rspec/core/reporter.rb:151:in `finish'
  /opt/chef/embedded/lib/ruby/gems/2.1.0/gems/rspec-core-3.3.2/lib/rspec/core/reporter.rb:79:in `report'
  /opt/chef/embedded/lib/ruby/gems/2.1.0/gems/rspec-core-3.3.2/lib/rspec/core/runner.rb:113:in `run_specs'
  /opt/chef/embedded/lib/ruby/gems/2.1.0/gems/chef-12.5.1/lib/chef/audit/runner.rb:189:in `do_run'
  /opt/chef/embedded/lib/ruby/gems/2.1.0/gems/chef-12.5.1/lib/chef/audit/runner.rb:35:in `run'
  /opt/chef/embedded/lib/ruby/gems/2.1.0/gems/chef-12.5.1/lib/chef/client.rb:721:in `run_audits'
  /opt/chef/embedded/lib/ruby/gems/2.1.0/gems/chef-12.5.1/lib/chef/client.rb:276:in `run'
  /opt/chef/embedded/lib/ruby/gems/2.1.0/gems/chef-12.5.1/lib/chef/application.rb:270:in `block in fork_chef_client'
  /opt/chef/embedded/lib/ruby/gems/2.1.0/gems/chef-12.5.1/lib/chef/application.rb:258:in `fork'
  /opt/chef/embedded/lib/ruby/gems/2.1.0/gems/chef-12.5.1/lib/chef/application.rb:258:in `fork_chef_client'
  /opt/chef/embedded/lib/ruby/gems/2.1.0/gems/chef-12.5.1/lib/chef/application.rb:224:in `block in run_chef_client'
  /opt/chef/embedded/lib/ruby/gems/2.1.0/gems/chef-12.5.1/lib/chef/local_mode.rb:44:in `with_server_connectivity'
  /opt/chef/embedded/lib/ruby/gems/2.1.0/gems/chef-12.5.1/lib/chef/application.rb:212:in `run_chef_client'
  /opt/chef/embedded/lib/ruby/gems/2.1.0/gems/chef-12.5.1/lib/chef/application/client.rb:408:in `block in interval_run_chef_client'
  /opt/chef/embedded/lib/ruby/gems/2.1.0/gems/chef-12.5.1/lib/chef/application/client.rb:398:in `loop'
  /opt/chef/embedded/lib/ruby/gems/2.1.0/gems/chef-12.5.1/lib/chef/application/client.rb:398:in `interval_run_chef_client'
  /opt/chef/embedded/lib/ruby/gems/2.1.0/gems/chef-12.5.1/lib/chef/application/client.rb:388:in `run_application'
  /opt/chef/embedded/lib/ruby/gems/2.1.0/gems/chef-12.5.1/lib/chef/application.rb:60:in `run'
  /opt/chef/embedded/lib/ruby/gems/2.1.0/gems/chef-12.5.1/bin/chef-client:26:in `<top (required)>'
  /usr/bin/chef-client:54:in `load'
  /usr/bin/chef-client:54:in `<main>'

  Running handlers:
  Running handlers complete
  Chef Client finished, 4/10 resources updated in 05 seconds
[2016-04-26T18:13:31+00:00] FATAL: Stacktrace dumped to /var/chef/cache/chef-stacktrace.out
[2016-04-26T18:13:31+00:00] ERROR: Found 1 errors, they are stored in the backtrace
[2016-04-26T18:13:32+00:00] FATAL: Chef::Exceptions::ChildConvergeError: Chef run process exited unsuccessfully (exit code 1)
[root@vagrant-local-linux ~]#

@alexpop Thanks for bringing this up. This is a result of using Serverspec and InSpec within the same run. The problem here is RSpec. It uses a global world and configuration. I assume we need to destroy our configuration in a inspec teardown phase.

chef-client's audit mode is deprecated and is due to be removed in chef-client 15.
that audit mode and this audit cookbook are strictly incompatible and this isn't a bug in this cookbook.

authors: alexpop chris-rock lamont-granquist

repo: chef-cookbooks/audit


text:
Fix Mac OS X Version Determination

to_f will strip trailing zeros, so 10.10 will result in 10.1

@bdwyertech Nice catch on 10.10 being entirely broken.  Is there any real reason to join the values back to together for the case statement?  It seems like once we're split we could just key off the minor version and avoid joining again.

repo: chef-cookbooks/build-essential


text:
adding missing chef_compat to dependency list in readme

Description
Adding the missing chef_compat dependency to setup and documentation section of the README.md
Issues Resolved
No existing issues exist for this.
Check List

[ ] All tests pass. See https://github.com/chef-cookbooks/community_cookbook_documentation/blob/master/TESTING.MD
[ ] New functionality includes testing.
[x] New functionality has been documented in the README if applicable
[x] The CLA has been signed. See https://github.com/chef-cookbooks/community_cookbook_documentation/blob/master/CONTRIBUTING.MD

Signed-off-by: Dayne Broderson broderson@gmail.com

Skipping DCO as this clarifies for the obvious fix rule. Thanks @dayne

repo: chef-cookbooks/chef-server


text:
Support for datastore clusters

Versions:

Version of Chef-Provisioning: 2.2.1
Version of Chef-Provisioning-vSphere: 1.1.2

Platform Details

Version of vSphere/vCenter: 6.0.0
Version of ESXi: 6.0.2

Scenario:
Trying to pass in a datastore cluster object instead of a specific datastore.
Steps to Reproduce:
Pass in datastore cluster object.
Expected Result:
Allow vSphere to determine which datastore should be used when passing in the datastore cluster object.
Actual Result:

------Exception-------
Class: Kitchen::ActionFailed
Message: 1 actions failed.
Failed to complete #create action: [no such datastore XXXXXXX] on HOSTNAME
Please see .kitchen/logs/kitchen.log for more details
Also try running kitchen diagnose --all for configuration

Has there been any progress on this?
I saw in issue #94 on the old repo that someone was going to look into it but hadn't seen any updates there and was told to come open a new issue here, though I was gladly beat to the punch.

@Brunzer Unfortunately I haven't the time to look more into it. I was attempting to incorporate admission control from RBVMOMI into the driver. It is something I am going to revisit soon hopefully.

Is there any progress / update on this?

We are more then willing to take patches from the community, but we (Chef) don’t have the investment in making new features in the near future.

authors: Brunzer bradwilliamson jjasghar johnsoja40 jonoped

repo: chef-partners/chef-provisioning-vsphere


text:
Stabilize cypress tests

User Story
Right now, the flaky test suite fails pretty much every time. :(
Example buildkite run: https://buildkite.com/chef/chef-automate-master-verify-private/builds/8844#21d12828-bb1f-4ac3-adf8-987e8a3e4949
The dream: all Cypress tests pass reliably and there's no need for a flaky test suite.
How we get there: This will require some investigation for each test. It will probably require some combination of improving the deterministic behavior of Automate UI and refactoring Cypress tests to wait for certain conditions to be true before proceeding.
Note: Since most of these flaky tests pass locally, steps should be taken to more closely match the conditions of buildkite runs: try slowing down the network of your Cypress test browser to Slow 3G, or set CYPRESS_BASE_URL=https://<some dev or acceptance environment>
Definition of Done

[ ] Cypress tests pass consistently both locally and in the buildkite pipeline
[ ] [stretch] there is no need for a separate flaky test suite

this work has been deprioritized.

authors: bcmdarroch susanev

repo: chef/automate


text:
Migration: Chef-server migration to A2HA

User Story
Chef-server Migration to A2HA Cluster
Setup the Infra

Install the Stand-alone chef-server.
Setup the A2HA (3 Node Cluster).

Note :Need to check dependency on the version on ES and PG.
Add Data to Chef-Server

Add the data to the chef-server node like Org, nodes, cookbooks, databag etc.
2.  Add at-least 3 Org, with more than 2 node in each org.
Each org will have number of cookbooks, data-bags etc...

List of the item store in the PG, ES and locally.

Testing

To do the backup (chef-server-ctl / knife) commands.Purpose of both command and difference.
Take the backup either in the zip/tar files.
Restore the backup to chef-server
Post restore, how the node will get to know the new a2ha-cluster URL.
Populate the new server url to all the node.
Make sure that it would received the data from the node.

note: Is there any way to move data directly from oe machine to another (not to create a zip.tar).
Definition of Done

List out the stand alone chef-server version to A2HA cluster(what we supports).
List out the data will migrate via command.
List out the data need to copy/migrate manually (which are the part of DB).
Steps by step guide to do the steps.
Capture the error in the FAQ section.(keep the error in text and image both the way separately).
Post restore the

Demo Script / Repro Steps

Script to do the task
ReadMe section

Closing this issue, as chef server migration to HA effort is getting tracked in below list of issues:
https://app.zenhub.com/workspaces/the-delta-quadrant-5fc7c4c3922dc10021323fa6/issues/chef/automate/5518
https://app.zenhub.com/workspaces/the-delta-quadrant-5fc7c4c3922dc10021323fa6/issues/chef/automate/5522

authors: karunesh-tech punitmundra


text:
chef provisioning vsphere doesnt work with chefdk 1.2.22

Description
I upgraded my chefdk ver 1.0.3 to 1.2.22 and now chef provisioning vsphere no longer works.
Briefly describe the issue
is the error i get while running : chef-client -c C:.chef\knife.rb chef_vsphere\recipe\side-b.rb
2017-03-03T12:38:13-05:00] ERROR: Running exception handlers
[2017-03-03T12:38:13-05:00] ERROR: Exception handlers complete
[2017-03-03T12:38:13-05:00] FATAL: Chef::Exceptions::CookbookNotFound: Cookbook @recipe_files not found. If you're loading @recipe_files from another cookbook, make sure you configure the depe ndency in your metadata
ChefDK Version
1.2.22
Tell us which version of the ChefDK you are running. Run chef --version to display the version.
12.18.31
Platform Version
windows 7
Tell us which operating system distribution and version ChefDK is running on.
windows 7
Replication Case
Tell us what steps to take to replicate your problem. See How to create a Minimal, Complete, and Verifiable example for information on how to create a good replication case.
install chefdk 1.2.22 on windows 7 and then run chef provisioning vsphere
Stacktrace:
C:/opscode/chefdk/embedded/lib/ruby/gems/2.3.0/gems/cheffish-4.1.0/lib/cheffish/merged_config.rb:6: warning: toplevel constant Mash referenced by Chef::Mash
[2017-03-03T12:38:13-05:00] WARN: Resource.dsl_name is deprecated and will be removed in Chef 13.  Use resource_name instead. (CHEF-5)C:/opscode/chefdk/embedded/lib/ruby/gems/2.3.0/gems/chef-p rovisioning-2.1.0/lib/chef/resource/machine_batch.rb:53:in `to_text'.
Please see https://docs.chef.io/deprecations_custom_resource_cleanups.html for further details and information on how to correct this problem. at C:/opscode/chefdk/embedded/lib/ruby/gems/2.3.0 /gems/chef-12.18.31-universal-mingw32/lib/chef/event_dispatch/dispatcher.rb:43:in `call'

================================================================================
Error executing action `converge` on resource 'machine_batch[default]'
================================================================================

ArgumentError
-------------
wrong number of arguments (given 0, expected 1..2)

Resource Declaration:
---------------------
# In C:/Users/tlee/chef-repo/cookbooks/chef_vsphere/recipes/side-b.rb

 72: machine_batch  do
 73:    1.upto(num_servers) do |i|
 74:      machine  "chef-Vsphere-#{i}" do
 75:
 76:        files '/etc/chef/trusted_certs/chef-manage_local.crt' => 'C:\Users\tlee\chef-repo\.chef\trusted_certs\chef-manage_local.crt',
 77:              '/etc/chef/trusted_certs/CA.crt' => 'C:\Users\tlee\chef-repo\.chef/trusted_certs\CA.crt',
 78:              '/etc/chef/trusted_certs/Intermediate_CA.crt' => 'C:\Users\tlee\chef-repo\.chef\trusted_certs\Intermediate_CA.crt'
 79:        action :converge
 80:        run_list ['set_env::default', 'lvm::default']
 81:      end
 82:   end
 83: end

Compiled Resource:
------------------
# Declared in C:/Users/tlee/chef-repo/cookbooks/chef_vsphere/recipes/side-b.rb:72:in `from_file'

machine_batch("default") do
  action [:converge]
  retries 0
  retry_delay 2
  default_guard_interpreter :default
  driver "vsphere://vcenter-b.local/sdk?use_ssl=true&insecure=true"
  chef_server {:chef_server_url=>"https://chef-manage.local/organizations/chef/", :options=>{:client_name=>"tlee", :signing_key_filename=>"C:/Users/tlee/chef-repo/.chef/tlee.pem", :ss
l_verify_mode=>:verify_none, :api_version=>"0"}}
  machine_options {:bootstrap_options=>{:use_linked_clone=>false, :num_cpus=>2, :memory_mb=>4096, :network_name=>["Data Monitoring DPortGroup B"], :datacenter=>"Datacenter - B", :resource_
pool=>"Cluster Data - B", :datastore=>"Datastore_B2", :template_name=>"Chef-Centos-7", :template_folder=>"AutoTest", :vm_folder=>"AutoTest", :additional_disk_size_gb=>[50, 20], :customization_ spec=>{:ipsettings=>{:dnsServerList=>["192.168.150.11", "192.168.150.12"]}, :domain=>"dev.local"}, :ssh=>{:user=>"vagrant", :password=>"vagrant", :paranoid=>false, :port=>22}, :options=>{:pref ix=>"sudo", :ssh_pty_enable=>true}, :convergence_options=>{:ssl_verify_mode=>:verify_none, :verify_api_cert=>false, :validator=>"chef-validator", :chef_server=>"https://chef-manage.local/ organizations/chef/", :ignore_failure=>true}}, :sudo=>true}
  declared_type :machine_batch
  cookbook_name "@recipe_files"
  recipe_name "C:/Users/tlee/chef-repo/cookbooks/chef_vsphere/recipes/side-b.rb"
  machines ["chef-Vsphere-1", "chef-Vsphere-2", "chef-Vsphere-3", "chef-Vsphere-4", "chef-Vsphere-5"]
end

Platform:
---------
i386-mingw32

[2017-03-03T12:38:13-05:00] WARN: Resource.dsl_name is deprecated and will be removed in Chef 13.  Use resource_name instead. (CHEF-5)C:/opscode/chefdk/embedded/lib/ruby/gems/2.3.0/gems/ch
ef-provisioning-2.1.0/lib/chef/resource/machine_batch.rb:53:in `to_text'.
Please see https://docs.chef.io/deprecations_custom_resource_cleanups.html for further details and information on how to correct this problem. at C:/opscode/chefdk/embedded/lib/ruby/gems/2.3.0 /gems/chef-12.18.31-universal-mingw32/lib/chef/event_dispatch/dispatcher.rb:43:in `call'
[2017-03-03T12:38:13-05:00] WARN: Resource.dsl_name is deprecated and will be removed in Chef 13.  Use resource_name instead. (CHEF-5)C:/opscode/chefdk/embedded/lib/ruby/gems/2.3.0/gems/chef-p rovisioning-2.1.0/lib/chef/resource/machine_batch.rb:53:in `to_text'.
Please see https://docs.chef.io/deprecations_custom_resource_cleanups.html for further details and information on how to correct this problem. at C:/opscode/chefdk/embedded/lib/ruby/gems/2.3.0 /gems/chef-12.18.31-universal-mingw32/lib/chef/event_dispatch/dispatcher.rb:43:in `call'
[2017-03-03T12:38:13-05:00] INFO: Running queued delayed notifications before re-raising exception
[2017-03-03T12:38:13-05:00] DEBUG: Re-raising exception: Chef::Exceptions::CookbookNotFound - Cookbook @recipe_files not found. If you're loading @recipe_files from another cookbook, make sure  you configure the dependency in your metadata
C:/opscode/chefdk/embedded/lib/ruby/gems/2.3.0/gems/chef-12.18.31-universal-mingw32/lib/chef/cookbook/cookbook_collection.rb:39:in `block in initialize'
  C:/opscode/chefdk/embedded/lib/ruby/gems/2.3.0/gems/ohai-8.23.0/lib/ohai/mash.rb:77:in `default'
  C:/opscode/chefdk/embedded/lib/ruby/gems/2.3.0/gems/ohai-8.23.0/lib/ohai/mash.rb:77:in `default'
  C:/opscode/chefdk/embedded/lib/ruby/gems/2.3.0/gems/chef-12.18.31-universal-mingw32/lib/chef/resource.rb:1456:in `[]'
  C:/opscode/chefdk/embedded/lib/ruby/gems/2.3.0/gems/chef-12.18.31-universal-mingw32/lib/chef/resource.rb:1456:in `cookbook_version'
  C:/opscode/chefdk/embedded/lib/ruby/gems/2.3.0/gems/chef-12.18.31-universal-mingw32/lib/chef/data_collector/resource_report.rb:82:in `to_hash'
  C:/opscode/chefdk/embedded/lib/ruby/gems/2.3.0/gems/chef-12.18.31-universal-mingw32/lib/chef/data_collector.rb:391:in `add_resource_report'
  C:/opscode/chefdk/embedded/lib/ruby/gems/2.3.0/gems/chef-12.18.31-universal-mingw32/lib/chef/data_collector.rb:459:in `block in detect_unprocessed_resources'
  C:/opscode/chefdk/embedded/lib/ruby/gems/2.3.0/gems/chef-12.18.31-universal-mingw32/lib/chef/data_collector.rb:456:in `each'
  C:/opscode/chefdk/embedded/lib/ruby/gems/2.3.0/gems/chef-12.18.31-universal-mingw32/lib/chef/data_collector.rb:456:in `detect_unprocessed_resources'
  C:/opscode/chefdk/embedded/lib/ruby/gems/2.3.0/gems/chef-12.18.31-universal-mingw32/lib/chef/data_collector.rb:167:in `converge_failed'
  C:/opscode/chefdk/embedded/lib/ruby/gems/2.3.0/gems/chef-12.18.31-universal-mingw32/lib/chef/event_dispatch/dispatcher.rb:43:in `call'
  C:/opscode/chefdk/embedded/lib/ruby/gems/2.3.0/gems/chef-12.18.31-universal-mingw32/lib/chef/event_dispatch/dispatcher.rb:43:in `block in call_subscribers'
  C:/opscode/chefdk/embedded/lib/ruby/gems/2.3.0/gems/chef-12.18.31-universal-mingw32/lib/chef/event_dispatch/dispatcher.rb:34:in `each'
  C:/opscode/chefdk/embedded/lib/ruby/gems/2.3.0/gems/chef-12.18.31-universal-mingw32/lib/chef/event_dispatch/dispatcher.rb:34:in `call_subscribers'
  (eval):2:in `converge_failed'
  C:/opscode/chefdk/embedded/lib/ruby/gems/2.3.0/gems/chef-12.18.31-universal-mingw32/lib/chef/client.rb:673:in `rescue in block in converge'
  C:/opscode/chefdk/embedded/lib/ruby/gems/2.3.0/gems/chef-12.18.31-universal-mingw32/lib/chef/client.rb:666:in `block in converge'
  C:/opscode/chefdk/embedded/lib/ruby/gems/2.3.0/gems/chef-12.18.31-universal-mingw32/lib/chef/client.rb:665:in `catch'
  C:/opscode/chefdk/embedded/lib/ruby/gems/2.3.0/gems/chef-12.18.31-universal-mingw32/lib/chef/client.rb:665:in `converge'
  C:/opscode/chefdk/embedded/lib/ruby/gems/2.3.0/gems/chef-12.18.31-universal-mingw32/lib/chef/client.rb:704:in `converge_and_save'
  C:/opscode/chefdk/embedded/lib/ruby/gems/2.3.0/gems/chef-12.18.31-universal-mingw32/lib/chef/client.rb:284:in `run'
  C:/opscode/chefdk/embedded/lib/ruby/gems/2.3.0/gems/chef-12.18.31-universal-mingw32/lib/chef/application.rb:277:in `run_with_graceful_exit_option'
  C:/opscode/chefdk/embedded/lib/ruby/gems/2.3.0/gems/chef-12.18.31-universal-mingw32/lib/chef/application.rb:253:in `block in run_chef_client'
  C:/opscode/chefdk/embedded/lib/ruby/gems/2.3.0/gems/chef-12.18.31-universal-mingw32/lib/chef/local_mode.rb:44:in `with_server_connectivity'
  C:/opscode/chefdk/embedded/lib/ruby/gems/2.3.0/gems/chef-12.18.31-universal-mingw32/lib/chef/application.rb:236:in `run_chef_client'
  C:/opscode/chefdk/embedded/lib/ruby/gems/2.3.0/gems/chef-12.18.31-universal-mingw32/lib/chef/application/client.rb:464:in `sleep_then_run_chef_client'
  C:/opscode/chefdk/embedded/lib/ruby/gems/2.3.0/gems/chef-12.18.31-universal-mingw32/lib/chef/application/client.rb:451:in `block in interval_run_chef_client'
  C:/opscode/chefdk/embedded/lib/ruby/gems/2.3.0/gems/chef-12.18.31-universal-mingw32/lib/chef/application/client.rb:450:in `loop'
  C:/opscode/chefdk/embedded/lib/ruby/gems/2.3.0/gems/chef-12.18.31-universal-mingw32/lib/chef/application/client.rb:450:in `interval_run_chef_client'
  C:/opscode/chefdk/embedded/lib/ruby/gems/2.3.0/gems/chef-12.18.31-universal-mingw32/lib/chef/application/client.rb:434:in `run_application'
  C:/opscode/chefdk/embedded/lib/ruby/gems/2.3.0/gems/chef-12.18.31-universal-mingw32/lib/chef/application.rb:59:in `run'
  C:/opscode/chefdk/embedded/lib/ruby/gems/2.3.0/gems/chef-12.18.31-universal-mingw32/bin/chef-client:26:in `<top (required)>'
  C:/opscode/chefdk/modules/chef/../../bin/chef-client:68:in `load'
  C:/opscode/chefdk/modules/chef/../../bin/chef-client:68:in `<main>'
[2017-03-03T12:38:13-05:00] ERROR: Running exception handlers
[2017-03-03T12:38:13-05:00] ERROR: Exception handlers complete
[2017-03-03T12:38:13-05:00] FATAL: Chef::Exceptions::CookbookNotFound: Cookbook @recipe_files not found. If you're loading @recipe_files from another cookbook, make sure you configure the depe ndency in your metadata
Please include the stacktrace.out output or link to a gist of it, if there is one.

NOTE: CHEFDK BUGS ONLY
This issue tracker is for the code contained within this repo -- chefdk.

Server issues
Chef-client issues
Cookbook Issues (see the https://github.com/chef-cookbooks repos or search Supermarket or GitHub/Google)

same error message here, but different bug:  https://github.com/chef/chef/issues/4997

I got the cookbook error when I used chefdk 1.0.3 and was still able to provision a vm. Now I am not able to do so. It may be related to the error below:
Error executing action converge on resource 'machine_batch[default]'
ArgumentError
wrong number of arguments (given 0, expected 1..2)

I can confirm the same thing here on multiple chef workstations. 1.0.3 & 1.1.16 work.

Brad,
There's a thread that says cheffish 4.1.0 is the issue. I can confirm that when I updated cheffish to 5.0.0 i can now provision. But unfortunately i had to uninstall cheffish 4.1.0. Once I did that i can no longer use chef gem to install gems due to a dependency issue. Do i need to submit a ticket to troubleshoot that issue?

From: Brad Williamson notifications@github.com
Sent: Wednesday, March 8, 2017 2:53:05 PM
To: chef/chef-dk
Cc: telee2; Author
Subject: Re: [chef/chef-dk] chef provisioning vsphere doesnt work with chefdk 1.2.22 (#1190)
I can confirm the same thing here on multiple chef workstations. 1.0.3 & 1.1.16 work.
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHubhttps://github.com/chef/chef-dk/issues/1190#issuecomment-285149640, or mute the threadhttps://github.com/notifications/unsubscribe-auth/AHSnUC7qk6N9GNsoSijffiWLWtD4SgrRks5rjwchgaJpZM4MU7yd.

I can confirm the same issue here on:
Chef Development Kit Version: 1.2.22
chef-client version: 12.18.31
kitchen version: 1.15.0
ArgumentError
-------------
wrong number of arguments (given 0, expected 1..2)
Resource Declaration:
---------------------
# In C:/chef/cache/cookbooks/windows_provision/recipes/default.rb

 59: machine 'sodabread01' do
 60:   recipe 'base_windows'
 61:   action :converge
 62: end

I've noticed the same issue has creeped into 1.3.40 and is also related to chef/chef-provisioning#567. The work around I used for 1.2.22 was to install cheffish-4.1.1 but that won't work with 1.3.40 since 5.0.1 seems to have the same issue.

This should be solved by updates to chef-provisioning and related gems. If not please open a new issue with current versions.

authors: bdevenney bradwilliamson cheeseplus lamont-granquist ramereth telee2

repo: chef/chef-dk


text:
Make the ElasticSearch shard and replica count configurable

The default values for ElasticSearch's shard count (5) and replica count (1) may not be best for all customer topologies (3 nodes).    This PR makes them configurable, but reserves opinions on what our default values should be.
Further reading:  https://www.elastic.co/guide/en/elasticsearch/guide/current/_scale_horizontally.html
Signed-off-by: Irving Popovetsky irving@getchef.com

@irvingpop Have any time to chat about this.  This particular PR looks fine but I'm wondering if we need some chef-backend features with respect to changing the replica count config as nodes join and leave the cluster.

hey @stevendanna I haven't done it with a build incorporating these changes yet, but I've been making extensive use of this bit of code to pre-create the chef index using a custom shard and replica count (based on what our bootstrap does):  https://github.com/irvingpop/cloudformation_automate/blob/master/backendless_chef.yaml#L413-L470

authors: irvingpop stevendanna

repo: chef/chef-server


text:
Add cookbook version numbers to chef-client output (CHEF-4446)

Re: https://tickets.opscode.com/browse/CHEF-4446
# chef-client --once
Starting Chef Client, version 11.6.0
resolving cookbooks for run list: ["users"]
Synchronizing Cookbooks:
  - users
Compiling Cookbooks...
Converging 0 resources
Chef Client finished, 0 resources updated
#

It would be awesome if the output of chef-client would tell us the version of a cookbook that it was installing.
Possible output style:
...
Synchronizing Cookbooks:
  - users [1.5.0]
...

This feature would have saved me hours of debugging.
(Note from Datamancer: This would have saved me hours of debugging too. Since it should take a seasoned Chef dev approximately 2.3 seconds to implement, would you mind?)

A Pull request has been created that resolves this ticket. It can be viewed here:
https://github.com/chef/chef/pull/3202

repo: chef/chef


text:
Mount provider should support sensitive property

Description
I am using Chef-vault to try and keep my passwords secure. I am currently using one of the vault Items to try and mount a share.
My problem is that the error output from chef printed the RAW password, not the encrypted or hashed out version, meaning anyone can circumvent the chef-vault by creating a bad mount recipe!
Would it not be better to hash out ALL 'password' attributes/fields in when printing them so that they are not shown to users (who might not be intended to see them!) or stored in log files?
Chef Version
Chef: 12.6.0
Platform Version
Windows 10
Replication Case
mount 'O:' do
device '\myShare\myFolder'
action :mount
domain 'myDomain'
username testUser['username']
password testUser['password']
end
Client Output
Error output:
mount("O:") do
action [:mount]
supports {:remount=>false}
retries 0
retry_delay 2
default_guard_interpreter :default
mount_point "O:"
device "'\myShare\myFolder'"
device_type :device
fsck_device "-"
fstype "auto"
options ["defaults"]
dump 0
pass 2
username "muUser"
password "myPassword"
domain "myDomain"
declared_type :mount
cookbook_name "sn_users"
recipe_name "test_user"
end

You should actually be able to pass it sensitive true and it may prevent that debug logging, I'm not sure if any changes to the provider are necessary.

It probably should do that by default when a password is passed to it, just to avoid this outcome.

so, ultimately though, this isn't much of a practical security issue.  the assumption here is that "anyone can create a bad mount resource".  under that threat model if you give me the ability to inject resources intoa chef-client run i can open up remote root access to the box and steal the client credentials.  i can also probably just use the mountpoint directly on the server since i have enough leverage to be able to break into it, so the password itself is probably moot anyway.  i can therefore always recover the password, or just inject logging commands to give myself the password.  chef-vault does nothing to protect credentials that the chef-client run can use against compromise from an attacker that can compromise the server at the root level or inject chef-client config or otherwise steal the chef client credentials.
OTOH, certainly wouldn't stand in the way of someone submitting a PR to set sensitive true if a password property was set on the resource (globally, for all resources most likely).

This was already fixed so I'm going to close it out.


text:
Chef::Log.info inside a ruby_block does nothing

Description
Using Chef::Log.info inside a ruby_block does nothing. Even if I run with chef-client --log_level debug.
Chef Version
Chef: 14.13.11
Platform Version
CentOS 7
Notes
See https://discourse.chef.io/t/re-re-logging-within-a-ruby-block/6379

but it does:
ruby_block "log it" do
  block do
    Chef::Log.info("LOG")
  end
end

results in:
% chef-client -z -j dna.json -c client.rb -l info
[2019-07-16T15:25:13-07:00] INFO: Auto-discovered chef repository at /Users/lamont/zero
[2019-07-16T15:25:13-07:00] INFO: Started Chef Infra Zero at chefzero://localhost:1 with repository at /Users/lamont/zero
  One version per cookbook

Starting Chef Infra Client, version 15.1.14
[2019-07-16T15:25:13-07:00] INFO: *** Chef Infra Client 15.1.14 ***
[2019-07-16T15:25:13-07:00] INFO: Platform: x86_64-darwin16
[2019-07-16T15:25:13-07:00] INFO: Chef-client pid: 4802
[2019-07-16T15:25:18-07:00] INFO: Setting the run_list to ["test::test"] from CLI options
[2019-07-16T15:25:18-07:00] INFO: Run List is [recipe[test::test]]
[2019-07-16T15:25:18-07:00] INFO: Run List expands to [test::test]
[2019-07-16T15:25:18-07:00] INFO: Starting Chef Infra Client Run for coredump.scriptkiddie.lan
[2019-07-16T15:25:18-07:00] INFO: Running start handlers
[2019-07-16T15:25:18-07:00] INFO: Start handlers complete.
resolving cookbooks for run list: ["test::test"]
[2019-07-16T15:25:18-07:00] INFO: Loading cookbooks [test@0.0.1]
Synchronizing Cookbooks:
  - test (0.0.1)
Installing Cookbook Gems:
Compiling Cookbooks...
Converging 1 resources
Recipe: test::test
  * ruby_block[log it] action run[2019-07-16T15:25:18-07:00] INFO: Processing ruby_block[log it] action run (test::test line 2)
**[2019-07-16T15:25:18-07:00] INFO: LOG**
[2019-07-16T15:25:18-07:00] INFO: ruby_block[log it] called

    - execute the ruby block log it
[2019-07-16T15:25:18-07:00] INFO: Chef Infra Client Run complete in 0.068658 seconds

Running handlers:
[2019-07-16T15:25:18-07:00] INFO: Running report handlers
Running handlers complete
[2019-07-16T15:25:18-07:00] INFO: Report handlers complete
Chef Infra Client finished, 1/1 resources updated in 04 seconds

easier to see with Chef::Log.warn output:
% chef-client -z -j dna.json -c client.rb
Starting Chef Infra Client, version 15.1.14
resolving cookbooks for run list: ["test::test"]
Synchronizing Cookbooks:
  - test (0.0.1)
Installing Cookbook Gems:
Compiling Cookbooks...
Converging 1 resources
Recipe: test::test
  * ruby_block[log it] action run[2019-07-16T15:50:23-07:00] WARN: LOG

    - execute the ruby block log it

Running handlers:
Running handlers complete
Chef Infra Client finished, 1/1 resources updated in 05 seconds

the funky looking line is due to:  #2931

Maybe because you are using chef-client 15.1.14 and it has been fixed in that later version.
The code I've used to test is more complicated than the one I posted here. Tomorrow I'll add a more complete example.

14.13.11 is the same behavior though:
% chef-client -z -j dna.json -c client.rb
Starting Chef Client, version 14.13.11
resolving cookbooks for run list: ["test::test"]
Synchronizing Cookbooks:
  - test (0.0.1)
Installing Cookbook Gems:
Compiling Cookbooks...
Converging 1 resources
Recipe: test::test
  * ruby_block[log it] action run[2019-07-16T15:59:52-07:00] WARN: LOG

    - execute the ruby block log it

Running handlers:
Running handlers complete
Chef Client finished, 1/1 resources updated in 04 seconds

even if i set the log_location:
% chef-client -z -j dna.json -c client.rb
Starting Chef Client, version 14.13.11
resolving cookbooks for run list: ["test::test"]
Synchronizing Cookbooks:
  - test (0.0.1)
Installing Cookbook Gems:
Compiling Cookbooks...
Converging 1 resources
Recipe: test::test
  * ruby_block[log it] action run[2019-07-16T16:01:35-07:00] WARN: LOG

    - execute the ruby block log it

Running handlers:
Running handlers complete
Chef Client finished, 1/1 resources updated in 04 seconds

There's also nothing special about a ruby_block that would affect Chef::Log, so I'm pretty certain that the title has to be inaccurate.

Found the cause. Kitchen is wierd https://stackoverflow.com/questions/32726592/how-to-capture-cheflog-info-in-kitchen-test

authors: Lasering lamont-granquist


text:
ERROR: knife encountered an unexpected error

I got
ERROR: knife encountered an unexpected error
This may be a bug in the 'ec2 server create' knife command or plugin
Please collect the output of this command with the -VV option before filing a bug report.
Exception: NoMethodError: undefined method `empty?' for nil:NilClass
log attached as
http://pastie.org/pastes/10703066/text?key=6i6mph7rsmfxaqqq6sv3gq

I also encountered this error when not specifying a run_list.  Providing a run_list seems to resolve the issue.  If you have no run_list to provide, a workaround currently appears to be to provide a blank run_list (e.g. knife ec2 server create [settings] -r '')

Hello,
I've came across that information yesterday and thought it would help you, read more here please http://githerdycra.anitaspottery.com/oivmpssb
Sincerely, hebgb@blueyonder.co.uk

This is a dupe of https://github.com/chef/knife-ec2/issues/370, which is fixed in knife-ec2 0.13.0, released on 8/8/16.

authors: btm gbish gmiranda23 vgul


text:
Require Ruby 2.2 and use Chefstyle

Also add contributing docs

Updated @thommay

repo: chef/mixlib-config


text:
CDC STM32 -> ESP32-S2

Hi there
i am trying to make a caller ID USB device into a WIFI WebSOCKET via ESP32-S2 USB HOST.
the device works on CDC ( when i connect it to a computer COM port will be shown and data will be recieved  on Hercules on 9600baudrate Without any driver being installed on the system ) and the Chip inside is an STM32 which i am pretty sure is programmed with STM32Cube .
can i use or modify (if needed) the TinyUSB for this project ? it seems FT and CH do not go this way cause they have their own Driver, what a bout CDC STM32?
thank you in advance

Yes, it should works, but you need to know protocol. Probably it is some AT based protocol.

Hello there again , actually the board is just a one way transmitter it transmits the number if a dialing is happening every 5 seconds until the person hangs up. unfortunately for last 2 days I do not get any call backs not on ring and not on connect , the program is almost what is in examples. no call backs are being trigged nor available shows any input data , i am reciving data on windows machine via Hercules serial port .
`
#include "cdcusb.h"
#if CFG_TUD_CDC
CDCusb MYUSB;
#define LED_BUILTIN 36
class MyUSBCallbacks : public CDCCallbacks {
public:
// ~CDCCallbacks() { };
bool onConnect(bool dtr, bool rts)
{
digitalWrite(LED_BUILTIN, HIGH);   // turn the LED on (HIGH is the voltage level)
delay(1000);                       // wait for a second
digitalWrite(LED_BUILTIN, LOW);    // turn the LED off by making the voltage LOW
delay(1000);
Serial.println("SERIAL");
return true;
};
 void onData() {
    digitalWrite(LED_BUILTIN, HIGH);   // turn the LED on (HIGH is the voltage level)
    delay(1000);                       // wait for a second
    digitalWrite(LED_BUILTIN, LOW);    // turn the LED off by making the voltage LOW
    delay(1000);
    Serial.println("SERIAL");
  };

 void onCodingChange(cdc_line_coding_t const* p_line_coding) {
    digitalWrite(LED_BUILTIN, HIGH);   // turn the LED on (HIGH is the voltage level)
    delay(1000);                       // wait for a second
    digitalWrite(LED_BUILTIN, LOW);    // turn the LED off by making the voltage LOW
    delay(1000);
    Serial.println("SERIAL");
    };

 void onWantedChar(char c) {        digitalWrite(LED_BUILTIN, HIGH);   // turn the LED on (HIGH is the voltage level)
    delay(1000);                       // wait for a second
    digitalWrite(LED_BUILTIN, LOW);    // turn the LED off by making the voltage LOW
    delay(1000);
    Serial.println("SERIAL");
    };

};
void setup() {
pinMode(LED_BUILTIN, OUTPUT);
// put your setup code here, to run once:
Serial.begin(9600);
Serial.println("HELLO THERE ! \n");
MYUSB.setCallbacks(new MyUSBCallbacks());
MYUSB.setWantedChar('9');
if (!MYUSB.begin())
Serial.println("Failed to start CDC USB stack");
}
void loop() {
// put your main code here, to run repeatedly:
//delay(500);
//MYUSB.onConnect();
//Serial.printf("NUmber is : %d \n",MYUSB.available());
}
#endif`
i cannot see why , if there is any problem i would be more than happy to hear from u

Hi there again
thanks but i have tested the device on PC and its just a one way transmit when the phone rings the caller ID sends data on 9600 baud rate to PC, unfortunately i encounter some problem , this is the code from ACM sample , it works correctly when i connect the device to Host but when i dial the number , it wont trig a data in , i got a little confused for 2 days , so i decided to ask
this is the code
#include "usb/usb_host.h"

#include "usb_host.hpp"
#include "usb_acm.hpp"

USBhost host;           // host is required to detect any device, before USB class is initialized
USBacmDevice *device;   // when USB class is detected from descriptor

void acm_events(int event, void *data, size_t len)
{
        Serial.println("EVENT");

    switch (event)
    {
    case CDC_CTRL_SET_CONTROL_LINE_STATE:
    {
    Serial.println("DATA");
        log_i("CDC_CTRL_SET_CONTROL_LINE_STATE");
        device->setLineCoding(9600, 0, 0, 8);
    }
    break;

    case CDC_DATA_IN:
    {
      Serial.println("DATA1");
    }
    break;

    case CDC_DATA_OUT:
    {
      Serial.println("DATA2");
    }
        break;

    case CDC_CTRL_SET_LINE_CODING:
    {
        Serial.println("DATA3");
        log_i("CDC_CTRL_SET_LINE_CODING");
    }
        break;
    }
}

void client_event_callback(const usb_host_client_event_msg_t *event_msg, void *arg)
{Serial.println("DATA4");
    if (event_msg->event == USB_HOST_CLIENT_EVENT_NEW_DEV)
    {
        host.open(event_msg);
        usb_device_info_t info = host.getDeviceInfo();
        log_i("device speed: %s, device address: %d, max ep_ctrl size: %d, config: %d", info.speed ? "USB_SPEED_FULL" : "USB_SPEED_LOW", info.dev_addr, info.bMaxPacketSize0, info.bConfigurationValue);
        const usb_device_desc_t *dev_desc = host.getDeviceDescriptor();
        int offset = 0;
        for (size_t i = 0; i < dev_desc->bNumConfigurations; i++)
        {
            const usb_config_desc_t *config_desc = host.getConfigurationDescriptor();
            for (size_t n = 0; n < config_desc->bNumInterfaces; n++)
            {
                const usb_intf_desc_t *intf = usb_parse_interface_descriptor(config_desc, n, 0, &offset);
                if (intf->bInterfaceClass == 0x0a) // CDC ACM
                {
                    device = new USBacmDevice(config_desc, &host);
                    n = config_desc->bNumInterfaces;
                    if (device)
                    {
                        device->init();
                        device->onEvent(acm_events);
                        device->setControlLine(0, 1);
                        device->INDATA();
                    }
                }

                printf("config: %d[%d], interface: %d[%d], intf class: %d\n", i, dev_desc->bNumConfigurations, n, config_desc->bNumInterfaces, intf->bInterfaceClass);
            }
        }
    }
    else
    {
        log_w("DEVICE gone event");
    }
}

void setup()
{
    Serial.begin(115200);
    host.registerClientCb(client_event_callback);
    host.init();
}

void loop()
{
    if (device && device->isConnected())
    {
    }
}

its more or less the same code its just i expected to see DATA2 when the phone rings , but i got nothing and i am not sure about the settings which i have given
this is my terminal output :
ESP-ROM:esp32s2-rc4-20191025
Build:Oct 25 2019
rst:0x1 (POWERON),boot:0x8 (SPI_FAST_FLASH_BOOT)
SPIWP:0xee
mode:DIO, clock div:1
load:0x3ffe6100,len:0x524
load:0x4004c000,len:0xa50
load:0x40050000,len:0x28cc
entry 0x4004c18c
DATA4
config: 0[1], interface: 0[2], intf class: 2
EP num: 1/1, len: 67, address: 0x83, EP max size: 8, dir: IN
EP num: 1/2, len: 67, address: 0x01, EP max size: 64, dir: OUT
EP num: 2/2, len: 67, address: 0x82, EP max size: 64, dir: IN
config: 0[1], interface: 2[2], intf class: 10
EVENT
DATA
E (977) USB HOST: Transfer num_bytes > data_buffer_size

and this a sample rec data from caller ID on hercules:
L1:RingsCount:01 EEE
L1:CallerID:************ 2012/01/01 11:11:11 EEE
L1:RingsCount:02 EEE

the * are my own number, this kind of data comes in with out any data being send to caller ID
thank you , i look forward to your guidance

It is possible, but i hope its not the case, its bug in my library:
https://github.com/espressif/esp-idf/issues/7164
I would suggest to enable debug level to debug or verbose.

authors: Saeedsaeb chegewara

repo: chegewara/EspTinyUSB


text:
Notification Bar not shown

How to populate notification on screen? I have gone through the documentation there is no method mentioned there to populate received message as notification popup on mobile(Android).

By saying notification popup I meant notification bar.

Did you get any solution yet.

I think starting from Android O, you have to subscribe to a notification channel (and send the notification to that channel), otherwise the notification won't show. I'm about to test it now...

How to add a channel?
On Sun, Jun 20, 2021 at 1:26 PM Bence Kovacs @.***>
wrote:

I think starting from Android O, you have to subscribe to a notification
channel (and send the notification to that channel), otherwise the
notification won't show. I'm about to test it now...
—
You are receiving this because you commented.
Reply to this email directly, view it on GitHub
https://github.com/chemerisuk/cordova-plugin-firebase-messaging/issues/148#issuecomment-864514810,
or unsubscribe
https://github.com/notifications/unsubscribe-auth/AHH6MNAZ4PBBFS6LKAIFSP3TTWNLFANCNFSM4NPZZ2CA
.

--
Thanks & Regards
Rakesh Kumar Baral (Mobile Application Developer)
[image: Inline image 5]
Nexus Technoware Solution Pvt.Ltd
(Microsoft Certified & STPI Registered Company)
(CIN : U72200OR2007PTC009685)
Plot No: 1692/4371, Nalini Nilaya,Green Park, Kalarahanga,
Near Kripalu Residency, Patia, Bhubaneswar-751024, India
Contact No- +91-9337705517, +91-8260003333
http://www.ntspl.co.in & http://www.ntsplhostin
http://www.ntsplhosting.com/g.com
https://www.ntsplhosting.com/security/ssl-certificate/
https://www.facebook.com/ntspl https://twitter.com/ntspl
https://in.linkedin.com/in/ntspl
https://www.youtube.com/user/ntsplhosting
https://www.impactguru.com/fundraiser/help-ntspl-foundation

Here is my code, I hope it will help you:
// get permission to force show notification:
cordova.plugins.firebase.messaging.requestPermission({forceShow: true});

// starting Android 8 we have to use a channel:
if (Number(device.version)>=8) {
  cordova.plugins.firebase.messaging.listChannels().then(function(channels) {
    var channel_txt = JSON.stringify(channels);
    // if the channel does not exist yet, we have to create it:
    if (channel_txt.indexOf('my_channel')<0) {
      cordova.plugins.firebase.messaging.createChannel({
        id: "my_channel",
        name: "My Channel",
        importance: 5
      });
    }
  });
}

(I think I've also hard-coded the name of the channel somewhere in the Java code...)
Of course when sending a notification, you will have to add the channel as well:
$notif = array (
  'title' => 'Test message',
  'text' => 'This is a test message.',
  'android_channel_id' => 'my_channel',
  'click_action' => 'FCM_PLUGIN_ACTIVITY'
);

Thanks for the quick reply.
On Mon, Jun 21, 2021 at 12:28 PM Bence Kovacs @.***>
wrote:

Here is my code, I hope it will help you:
// get permission to force show notification:
cordova.plugins.firebase.messaging.requestPermission({forceShow: true});
// starting Android 8 we have to use a channel:
if (Number(device.version)>=8) {
cordova.plugins.firebase.messaging.listChannels().then(function(channels) {
var channel_txt = JSON.stringify(channels);
// if the channel does not exist yet, we have to create it:
if (channel_txt.indexOf('my_channel')<0) {
cordova.plugins.firebase.messaging.createChannel({
id: "my_channel",
name: "My Channel",
importance: 5
});
}
});
}
(I think I've also hard-coded the name of the channel somewhere in the
Java code...)
Of course when sending a notification, you will have to add the channel as
well:
$notif = array (
'title' => 'Test message',
'text' => 'This is a test message.',
'android_channel_id' => 'my_channel',
'click_action' => 'FCM_PLUGIN_ACTIVITY'
);
—
You are receiving this because you commented.
Reply to this email directly, view it on GitHub
https://github.com/chemerisuk/cordova-plugin-firebase-messaging/issues/148#issuecomment-864779725,
or unsubscribe
https://github.com/notifications/unsubscribe-auth/AHH6MNB7LEHJ3LJSSPLPPS3TT3PK3ANCNFSM4NPZZ2CA
.

--
Thanks & Regards
Rakesh Kumar Baral (Mobile Application Developer)
[image: Inline image 5]
Nexus Technoware Solution Pvt.Ltd
(Microsoft Certified & STPI Registered Company)
(CIN : U72200OR2007PTC009685)
Plot No: 1692/4371, Nalini Nilaya,Green Park, Kalarahanga,
Near Kripalu Residency, Patia, Bhubaneswar-751024, India
Contact No- +91-9337705517, +91-8260003333
http://www.ntspl.co.in & http://www.ntsplhostin
http://www.ntsplhosting.com/g.com
https://www.ntsplhosting.com/security/ssl-certificate/
https://www.facebook.com/ntspl https://twitter.com/ntspl
https://in.linkedin.com/in/ntspl
https://www.youtube.com/user/ntsplhosting
https://www.impactguru.com/fundraiser/help-ntspl-foundation


text:
🛑 Homepage is down

In dd03424, Homepage (https://larrychen.tech) was down:

HTTP code: 0
Response time: 0 ms

Resolved: Homepage is back up in 78e3833.

repo: chendachao/uptime


text:
How to use with AutoRoute?

Hi
When i try to use defaultLifecycleObserver with AutoRoute
i got exception when navigate to other Route
======== Exception caught by widgets library =======================================================
The following assertion was thrown building WillPopScope(dependencies: [_ModalScopeStatus], state: _WillPopScopeState#d494e):
A GlobalKey was used multiple times inside one widget's child list.

The offending GlobalKey was: [LabeledGlobalKey<NavigatorState>#859d6]
The parent of the widgets with that key was: WillPopScope
  dependencies: [_ModalScopeStatus]
  state: _WillPopScopeState#d494e
The first child to get instantiated with that key became: Navigator-[LabeledGlobalKey<NavigatorState>#859d6]
  dirty
  state: NavigatorState#07176(lifecycle state: created)
The second child that was to be instantiated with that key was: WillPopScope
A GlobalKey can only be specified on one widget at a time in the widget tree.
The relevant error-causing widget was:
  EmptyRouterPage EmptyRouterPage:file:///some_project/lib/route/app_router.gr.dart:31:46
When the exception was thrown, this was the stack:
#0      Element._retakeInactiveElement.<anonymous closure> (package:flutter/src/widgets/framework.dart:3610:11)
#1      Element._retakeInactiveElement (package:flutter/src/widgets/framework.dart:3624:8)
#2      Element.inflateWidget (package:flutter/src/widgets/framework.dart:3655:33)
#3      Element.updateChild (package:flutter/src/widgets/framework.dart:3422:20)
#4      ComponentElement.performRebuild (package:flutter/src/widgets/framework.dart:4690:16)
#5      StatefulElement.performRebuild (package:flutter/src/widgets/framework.dart:4840:11)
#6      Element.rebuild (package:flutter/src/widgets/framework.dart:4355:5)
#7      StatefulElement.update (package:flutter/src/widgets/framework.dart:4872:5)
#8      Element.updateChild (package:flutter/src/widgets/framework.dart:3412:15)
#9      ComponentElement.performRebuild (package:flutter/src/widgets/framework.dart:4690:16)
#10     StatefulElement.performRebuild (package:flutter/src/widgets/framework.dart:4840:11)
#11     Element.rebuild (package:flutter/src/widgets/framework.dart:4355:5)
#12     StatefulElement.update (package:flutter/src/widgets/framework.dart:4872:5)
#13     Element.updateChild (package:flutter/src/widgets/framework.dart:3412:15)
#14     ComponentElement.performRebuild (package:flutter/src/widgets/framework.dart:4690:16)
#15     Element.rebuild (package:flutter/src/widgets/framework.dart:4355:5)
#16     ProxyElement.update (package:flutter/src/widgets/framework.dart:5020:5)
#17     Element.updateChild (package:flutter/src/widgets/framework.dart:3412:15)
#18     ComponentElement.performRebuild (package:flutter/src/widgets/framework.dart:4690:16)
#19     Element.rebuild (package:flutter/src/widgets/framework.dart:4355:5)
#20     ProxyElement.update (package:flutter/src/widgets/framework.dart:5020:5)
#21     Element.updateChild (package:flutter/src/widgets/framework.dart:3412:15)
#22     ComponentElement.performRebuild (package:flutter/src/widgets/framework.dart:4690:16)
#23     StatefulElement.performRebuild (package:flutter/src/widgets/framework.dart:4840:11)
#24     Element.rebuild (package:flutter/src/widgets/framework.dart:4355:5)
#25     BuildOwner.buildScope (package:flutter/src/widgets/framework.dart:2620:33)
#26     WidgetsBinding.drawFrame (package:flutter/src/widgets/binding.dart:882:21)
#27     RendererBinding._handlePersistentFrameCallback (package:flutter/src/rendering/binding.dart:319:5)
#28     SchedulerBinding._invokeFrameCallback (package:flutter/src/scheduler/binding.dart:1143:15)
#29     SchedulerBinding.handleDrawFrame (package:flutter/src/scheduler/binding.dart:1080:9)
#30     SchedulerBinding.scheduleWarmUpFrame.<anonymous closure> (package:flutter/src/scheduler/binding.dart:863:7)
(elided 4 frames from class _RawReceivePortImpl, class _Timer, and dart:async-patch)
====================================================================================================

do you have any explanation how to fix that?

I think this is a covert bug in AutoRoute, lifecycle does't use any Key or WillPopScope in source code yet AutoRoute does it.

Check your code where AutoRoute initialized, or post it here and i'll try to analyze it. 😄

here is example, try to navigate to DetailScreen by clicking Next page button
https://github.com/AlexShniperson-INO/lifecycle-with-autoroute

Try to remove the key param _navigatorKey  in here.

it doesn't help, try to play with that project

If i use an instance of NavigatorObserver, it can trigger this issue.
class MainApp extends StatelessWidget {
  final _appRouter = AppRouter(_navigatorKey);

  final _observer = NavigatorObserver();

  MainApp({
    Key? key,
  }) : super(key: key);

  @override
  Widget build(BuildContext context) {
    return MaterialApp.router(
      routerDelegate: AutoRouterDelegate(
        _appRouter,
        navigatorObservers: () => [_observer],
      ),
      routeInformationParser: _appRouter.defaultRouteParser(),
    );
  }
}

But use a new instance every time is ok:
class MainApp extends StatelessWidget {
  final _appRouter = AppRouter(_navigatorKey);

  MainApp({
    Key? key,
  }) : super(key: key);

  @override
  Widget build(BuildContext context) {
    return MaterialApp.router(
      routerDelegate: AutoRouterDelegate(
        _appRouter,
        navigatorObservers: () => [NavigatorObserver()],
      ),
      routeInformationParser: _appRouter.defaultRouteParser(),
    );
  }
}

And replace it to LifecycleObserver() is fine too.
class MainApp extends StatelessWidget {
  final _appRouter = AppRouter(_navigatorKey);

  MainApp({
    Key? key,
  }) : super(key: key);

  @override
  Widget build(BuildContext context) {
    return MaterialApp.router(
      routerDelegate: AutoRouterDelegate(
        _appRouter,
        navigatorObservers: () => [LifecycleObserver()],
      ),
      routeInformationParser: _appRouter.defaultRouteParser(),
    );
  }
}

You can open an issue for AutoRoute. 😢

hmm yes i see a new instance is working fine.
this is apparently some kind of auto_route weirdness.
thank you for help

`class MainApp extends StatelessWidget {
final _appRouter = AppRouter();
final _observer = LifecycleObserver();
MainApp({
Key? key,
}) : super(key: key);
@override
Widget build(BuildContext context) {
return MaterialApp.router(
routerDelegate: AutoRouterDelegate(
_appRouter,
navigatorObservers: () => [_observer],
),
routeInformationParser: _appRouter.defaultRouteParser(),
);
}
}`

repo: chenenyu/lifecycle


text:
elementui-plus按需引入在vue3 script-setup ts中报错问题

// main.ts
...
app.use(ElForm).use(ElFormItem).use(ElInput).use(ElButton).use(ElCard).use(ElMessage)
...
// Login.vue
<script setup lang="ts">
// 下面这一行不加进来vscode会报下图的错，但实际run serve又完全没问题，求问🧠是插件的问题么，应该怎么设置呢。
// import { ElForm, ElMessage } from "element-plus";
...
const form = ref<typeof ElForm | null>(null);
...
ElMessage.success("Login successfull");
<script>

饿了么plus没有用过…不过如果在 main 里做全局引入组件的话，应该用全局的 API 语法去调用吧，3.0用全局的方式会有点蛋疼。
这个报错是正常的，在组件里没有导入或者定义（不像template部分那样既可以  也可以 ），3.0 在用这些框架的时候，建议是在组件里按需导入，TS 定义类型也方便。
现在的饿了么我不太了解，但 Antd 和 Vant 都支持通过配置 babel-plugin-import 在打包的时候移除用不到的组件，减少构建出来的项目体积，可以看看官网的说明看看支不支持

确实  需要定义类型还是得在组件里再次导入，谢谢大佬解惑。


text:
🛑 tt is down

In b102f59, tt (https://telebot-app-serverless-i7z8-chenhaonanniubi.vercel.app/checkhealth) was down:

HTTP code: 500
Response time: 3277 ms

Resolved: tt is back up in 7705ff0 after 11 minutes.

repo: chenhaonanniubi/upptime


text:
服务不可用

http://www.btyunsou.co/ 服务出问题了，不可搜索了。

是的，等等看这个网站会不会被修复吧。不行再另外找一个

FIXED

authors: chenjiandongx wolfhong

repo: chenjiandongx/torrent-cli


text:
要怎样取消编译netdata？

大佬你好，在config（luci.config、other.config）里面netdata相关的都前面加#或者=n，另外build-openwrt.yml里面netdata相关的都删除了，固件编译完成后还是带有netdata这个插件。请教一下要怎样才能取消编译这个插件？谢谢

build-openwrt.yml里面netdata相关的并不需要删除，其实通过 https://github.com/smdx/OpenWrt-K/commit/6bf5234b4eaba8d3807fe2d65381be2eaf3e3b83 与 https://github.com/smdx/OpenWrt-K/commit/9c99196c19a56f2c850ec19a04b860a08b07e13f 这两个提交就已经取消编译netdata了，不过因为编译运行在 https://github.com/smdx/OpenWrt-K/commit/9c99196c19a56f2c850ec19a04b860a08b07e13f 之前，所以netdata仍然被编译了

之前的fork记得netdata相关的config都#或者no还是编译进包，又乱七八糟的修改了些东西就丢弃修改重新Sync fork了。
今天这个编译任务是定时的,修改config后忘记看时间了...我再开个任务看看。谢谢了

authors: chenmozhijin smdx

repo: chenmozhijin/OpenWrt-K


text:
Question: disable/remove redux?

Is it possible to use this project without redux? Sorry if this is a simple question - I am inexperienced.

It is possible but unfortunately you will have to strip it out on your own :( I personally think redux is overkill for a boilerplate. @dustintownsend, thoughts on this?

Anything on this yet people?

authors: amilajack hamidabdulmalik nolby

repo: chentsulin/electron-react-boilerplate


text:
v0.12.0

[x] Renamed and alphabetized npm scripts
[ ] Debugging main/renderer processes
[ ] Hot reload main process
[ ] Main process dll?

I'm experiencing the error after removed es2015-classes in main process:
SyntaxError: /Users/jhen/workspace/electron-react-boilerplate/app/menu.js:
  Decorators are not officially supported yet in 6.x pending a proposal update.

I think it may a bug for babel 6, it thrown even if we haven't use decorators. It looks like babel 7 (alpha) have been added back the decorators plugin, so I think currently the workaround is add transform-decorators-legacy to babelrc.

I can't find the commit that closes #1109 here. As I currently can't update to v0.12.0 because I can't get transform-decorators-legacy to work I just wanted to cherry-pick the fix for #1109.
Thanks!

authors: amilajack elsueno jhen0409


text:
🛑 El abridor is down

In ac730b5, El abridor (https://elabridor.chequeado.com/) was down:

HTTP code: 0
Response time: 0 ms

Resolved: El abridor is back up in 048cd3f.

repo: chequeado/status


text:
🛑 Chequeado is down

In 70ffd95, Chequeado (https://chequeado.com) was down:

HTTP code: 502
Response time: 9062 ms

Resolved: Chequeado is back up in d274ba6.


text:
RF 433 learning

Hi,
First, thanks for you work. now... is it possible to learn RF codes from other brands or just orvibo products? I have a pair of Livolo switchs and a 4 button rf remote control, but the orvibo seems to ignore it.

Hi!
Orvibo learns any RF codes with 433MHz frequency. Brand doesn't  matter.
Please check your device is 433MHz and let me see how do you use the script.

Hi,
Thanks for the really quick reply. I'm using a OSX with a "brewed"
installed python3. What i did:
lyra$ python3 orvibo.py
Orvibo[type=socket, ip=192.168.0.210, mac=accf2365a1c2]
Orvibo[type=irda, ip=192.168.0.207, mac=accf2351eaae]
lyra$ python3 orvibo.py -i 192.168.0.207 -t light1.rf
Orvibo[type=irda, ip=192.168.0.207, mac=accf2351eaae]
WARNING:Orvibo@192.168.0.207:Nothing happend during 15 sec
sometimes I get this:
lyra$ python3 orvibo.py -i 192.168.0.207 -t light1.rf
Orvibo[type=irda, ip=192.168.0.207, mac=accf2351eaae]
Traceback (most recent call last):
File "orvibo.py", line 572, in
signal = d.learn(teach)
File "orvibo.py", line 431, in learn
signal = signal_split[1][6:]
IndexError: list index out of range
On Sun, Jun 26, 2016 at 1:42 PM, Pavel notifications@github.com wrote:

Hi!
Orvibo learns any RF codes with 433MHz frequency. Brand doesn't matter.
Please check your device is 433MHz and let me see how do you use the
script.
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub
https://github.com/cherezov/orvibo/issues/5#issuecomment-228610103, or mute
the thread
https://github.com/notifications/unsubscribe/AEjpGn6hmnJ98RTf66PncSIS_vHFShkWks5qPqvdgaJpZM4I-lm6
.

--
Christian Lyra
PoP-PR/RNP

Orvibo[type=irda, ip=192.168.0.207, mac=accf2351eaae]
WARNING:Orvibo@192.168.0.207:Nothing happend during 15 sec

You emitted the RF signal on your device while red ring was blinking slowly on your AllOne, but AllOne didn't catch the signal while 15 seconds, right?
BTW, I've just googled livolo switches and figured out that they all works on 433.92MHz, which is a bit different than 433MHz Orvibo AllOne works on. Seems it is the root cause of your problem. Sorry.

i see... anyway, thank you for your support. The allinone will be only useful as a IR bridge to me which is still fine :-).

You are welcome!
Thanks for using the module and for your report :)

authors: cherezov clyra

repo: cherezov/orvibo


text:
Problème de chargement des images en mode grille

Les images ne chargent pas en mode grille. ()

8be6d041229106bf9650835920cd85491b71c6d7

T'as fuis le problème.... ca compte pas.

authors: Sylvain-Chu cherifad

repo: cherifad/CrousTillant


text:
No nightly builds on NPM

cc / @fkleuver This nightly builds are never published to NPM ?

I've put it back on warning mode. It should succeed the next round if the build or tests dont fail

@fkleuver Nightly build still failing. Can you try to fix this?

authors: KFlash fkleuver

repo: cherow/cherow

license: isc


text:
Bump CMake version required

We are using a feature that allows to install() targets from subdirs. Find in which version it was added and bump the CMake version required accordingly.

Fixed by #47.

authors: axic chfast

repo: chfast/evmone


text:
macOS でルートディレクトリを自動検出

Windows と同じ使い方にしました。

webm だけパスがおかしいのに気づいたので draft

直すついでに文字列補完に書き換えたりしました。

repo: chiepomme/TwitterMVGenerator


text:
Support Arrays?

What about supporting arrays?

@rjocoleman cheers! 😊

authors: chigwell rjocoleman

repo: chigwell/JsonExtractor


text:
Resolves an issue where the path key is set to a different path if it…

… is duplicated in the URL path
Resolves an issue where the path key is set to a different path if it is duplicated in the URL path
ex >
{
'/product' : 'http://product-service/'
'/example' : 'http://example-service/'
}
call url  : http://example.com/example/path/product
match route url :  'http://product-service/'

Motivation and Context
Found a problem as the route key was duplicated in the url path
How has this been tested?
Tested as a component currently under development
Types of changes

[x] Bug fix (non-breaking change which fixes an issue)
[ ] New feature (non-breaking change which adds functionality)
[ ] Breaking change (fix or feature that would cause existing functionality to not work as expected)

Checklist:

[x] My change requires a change to the documentation.
[ ] I have updated the documentation accordingly.

Thanks.
Can you add unit test in https://github.com/chimurai/http-proxy-middleware/blob/master/test/unit/router.spec.ts ?

Thanks.
Can you add unit test in https://github.com/chimurai/http-proxy-middleware/blob/master/test/unit/router.spec.ts ?

added unit test
describe('matching order of router config', () => {       it('should return another route key is use in url path configured', () => {         fakeReq.url = '/some/rest/path';         result = getTarget(fakeReq, proxyOptionWithRouter);         return expect(result).resolves.toBe('http://localhost:6007');       });     });

authors: chimurai lovelgw

repo: chimurai/http-proxy-middleware


text:
增加诗经数据

https://zh.wikipedia.org/wiki/诗经

《诗经》是中国最早的诗歌总集，溯自公元前11到前6世纪，原本叫《诗》，共有诗歌305首（除此之外还有6篇有题目无内容,即有目无辞，称为笙诗六篇，题目分别是南陔、白华、华黍、由庚、崇丘和由仪）[1]，又称《诗三百》。[2]从汉朝起儒家将其奉为经典，遂也称之谓《诗经》，而正式使用《诗经》一名，应该起于南宋初年[3]。早期诗经版本众多，其中最为著名也是流传至今的，是汉朝毛亨、毛苌注释的《诗经》，因此该版本又称为《毛诗》。《诗经》中的诗的作者，绝大部分已经无法考证。其所涉及的地域，主要是黄河流域，西起山西和甘肃东部，北到河北省西南，东至山东，向南也远及江汉流域。  --------- 维基百科

数据源要求

来源可靠
便于抓取
数目接近305首
有“四始六义”、音乐、表现手法分类
由于作者大多无法考证， 统一不记作者。

#64

authors: jackeyGao snowtraces

repo: chinese-poetry/chinese-poetry


text:
Add coverage for prvAddNewTaskToReadyList and vTaskCoreAffinitySet.

Add coverage tests for the functions mentioned in the title.
Add a subdirectory task_creation_covg to FreeRTOS/Test/CMock/smp/ and update the Makefile to include it in the list of test suites.
Note that one test, test_create_more_tasks_than_there_are_cores() does not currently reach one branch of a for loop. I think the functions static keyword may need to be removed so that a mock function can access it.
Test Steps
From the FreeRTOS/Test/CMock/smp subdirectory run 'make' against the default target followed by running 'make lcovhtml' to generate an HTML coverage report.
Related Issue
TS-24171, TS-24181
By submitting this pull request, I confirm that you can use, modify, copy, and redistribute this contribution, under the terms of your choice.

Create new folder only when the FreeRTOSConfig.h file is different
It looks like the task_creation_covg has similar FreeRTOSConfig.h with multiple_priorities_no_timeslice. Suggest we use the same folder and put the test in covg_multiple_priorities_no_timeslice_utest.c.

test_coverage_<API>_<tested behavior>
Example:
test_coverage_xTaskResumeFromISR_resume_lower_priority_suspended_task

The test case naming is different from the test format guideline. Suggest we update the test case naming.

@adam-scislowicz

Please create new different PRs for the new commits. This would help the reviewer focus on the changes. We can also contribute to the project gradually.

https://github.com/chinglee-iot/FreeRTOS/pull/6/commits/09ed1b7d6b80d04a201822124c0ddd1a8268d6f7
https://github.com/chinglee-iot/FreeRTOS/pull/6/commits/72609558b744a8882086c4da30ca63a8f4ee4fc1
https://github.com/chinglee-iot/FreeRTOS/pull/6/commits/e7de660dc0f6554c42e0758ad1854266bcb8a8c8

We agree to use doxygen comment format in the meeting. Suggest we also update the comments section. This can be referenced in the #4 .
printf is used in the test cases. I think they are for debug purpose. Suggest we remove it.
We suggest to use mocks and variables to implement the test cases ( reference #4 ). If there is difficulty we can't use mock or variable, please feedback the problem and we will discuss over it.

authors: adam-scislowicz chinglee-iot

repo: chinglee-iot/FreeRTOS


text:
Error Details aren't accruable if a title exists

I'm using this client against a rails server using the jsonapi-resources.
ActiveModel::Errors will only take a single string, The implementation on
resource.rb
only adds the details if the title is missing.
Is there any way to access the details?

I am facing the same issue, is there any news to this topic? How can I access the details even if the title is available?
Thanks!

authors: VinceBassman darkbushido


text:
Merge auth to dev

Purpose

Handle EDIT/DELETE routes for user

Approach/Fixes

Setup user profile page
Setup EDIT component for profile page
Edit username route

Handle edge cases

Delete user entirely

Re-route to homepage

Testing

Download this PR to your local device
Run npm install to make sure you're up to date on dependencies
Ensure your config directory is updated as well
Startup your local mongoDB with mongod in the terminal
Run npm run serve to fire up the app on localhost://8000
Create a new user
Check to make sure the user has been added in your mongo DB
Try editing the username

New usernames should save

Check in the DB that new username has saved

If the username is already taken, an alert box should appear

We will need to handle these errors differently later

Try deleting the user account altogether

Check in the DB that the user is completely removed

Notes

UI for profile page is minimal (skeleton, no styling)

looks good!

authors: odelavia ziggysauce


text:
DFT overrides after any logic on resets

https://github.com/chipsalliance/Cores-VeeR-EL2/blob/ff9ad9bdbd88aa6d0314d2a1d921122c34c182b8/design/el2_veer.sv#L859
Above code is used to add DFT override for scan testing on ATE.
If we change this to use two DFT signals instead like below , it will give a lot more flexibility to integrators as we can then independently reset this scan island between patterns without tie-ing it to entire SOC entering/exiting scan_mode.
Current form isn't suitable for DFT arch of large chips.
assign core_rst_l = rst_l & (scan_mode ? scan_reset_ :  dbg_core_rst_l);

Override only needed for asynchronous reset.
Where is the reset synchronization handled?

Assume reset synchronization and mux bypass are "external" to veer.

In the example above, scan_mode only qualifies the debug reset.  It does not prevent rst_l from being mux_bypassed at integration/wrapper level.
assign veer_rst_l = scan_mode ? my_rst_l scan_rst;
veer veer_inst (
...
.rst_l (veer_rst_l),
...
);

Hi. I'd like to help with this issue but it seems to me that the solution proposed by @nstewart-amd does not require any changes to veer RTL. Am I correct?

In the equation that I pointed, rst_l is a top level input and we can add a DFT override on it outside of EL2 core.
However dbg_core_rst_l is internally generated, and combined to generated the internal core_rst_l .
Using internally generated dbg_core_rst_l makes it uncontrollable for DFT.
So to make core_rst_l controllable again, we need to either separately add DFT override to dbg_core_rst_l or directly to core_rst_l .
Current logic adds DFT override to dbg_core_rst_l.  So current logic is good from DFT basics perspective.
I am requesting to split the override into two separate controls ( scan_mode, and scan_reset_) as this gives more flexibility for large SOCs that have more complex DFT.

@rahuljainNV It turned out that dbg_core_rst_l was actually undriven. I added a separate reset for scan chain. Currently it only affects core_rst_l. Please take a look https://github.com/chipsalliance/Cores-VeeR-EL2/pull/61

Looks like my bad.
While reviewing resets I saw these two and assumed the signal in second place is generated by first.
https://github.com/chipsalliance/Cores-VeeR-EL2/blob/ff9ad9bdbd88aa6d0314d2a1d921122c34c182b8/design/dbg/el2_dbg.sv#L274
https://github.com/chipsalliance/Cores-VeeR-EL2/blob/ff9ad9bdbd88aa6d0314d2a1d921122c34c182b8/design/el2_veer.sv#L859
Instead seems like el2_debug.sv is not even used/instantiated, and the dbg_rst_l is a top level input, so it can have DFT override outside.
If my reading of RTL is correct now then we can close this issue, nothing needs to be done.

Alright, I'm merging the PR and closing this issue.

authors: mkurc-ant nstewart-amd rahuljainNV


text:
[proper-parameter-declaration] parameter vs localparam in packages

Resolves #2160
This PR allows the user to configure the proper-parameter-declaration rule to allow either or both parameter and localparam in packages.
The default behaviour has changed to be more inline with the LRM, where the LRM encourages users to use localparam in packages as they cannot be overridden, so the rule defaults to only allow localparam's within packages.

The windows CI build seems to have broken with the latest runner release (windows2022 runner was updated 3rd June 2024).
The build seems to be failing due to a number of missing standard libraries. Example below:
ERROR: D:/a/verible/verible/common/util/BUILD:101:11: Compiling common/util/init_command_line.cc [for tool] failed: (Exit 1): clang-cl.exe failed: error executing command (from target //common/util:init-command-line) C:\Program Files\LLVM\bin\clang-cl.exe /nologo /DCOMPILER_MSVC /DNOMINMAX /D_WIN32_WINNT=0x0601 /D_CRT_SECURE_NO_DEPRECATE /D_CRT_SECURE_NO_WARNINGS /bigobj /Zm500 /EHsc /wd4351 /wd4291 /wd4250 /wd4996 ... (remaining 21 arguments skipped)
In file included from common/util/init_command_line.cc:15:
.\common/util/init_command_line.h(18,10): fatal error: 'string' file not found
#include <string>
         ^~~~~~~~
1 error generated.

I've tried the following:

Manually trigger the CI on an unmodified branch. Fails in a similar way.
Changing the runner to windows 2019 seems to build.
There is some conversation happening here https://github.com/actions/runner-images/issues about issues with clang-cl but nothing exactly like what I'm observing.

@corco, maybe you have some thoughts?

Created #2193 to investigate.

Thanks!
Can you now add a follow-up Pull Request so that we can change the default to warn about using parameter in packages (I really like the feature, just important to change code from changing default configuration).

I like it. I'll take a look.
On Wed, 12 June 2024, 3:34 am Henner Zeller, @.***>
wrote:

@.**** commented on this pull request.
In verilog/analysis/checkers/proper_parameter_declaration_rule.cc
https://github.com/chipsalliance/verible/pull/2190#discussion_r1635255985
:

@@ -79,11 +122,24 @@ void ProperParameterDeclarationRule::HandleSymbol(
} else if (ContextIsInsideModule(context) &&
!ContextIsInsideFormalParameterList(context)) {
violations_.insert(LintViolation(symbol, kParameterMessage, context));

 } else if (ContextIsInsidePackage(context)) {

   if (!package_allow_parameter_) {

     violations_.insert(LintViolation(symbol, kParameterMessage, context));

   }

We have a opportunity here to provide an autofix to change parameter to
localparam.
That way, in the language server it is just one click away to get fixed.
Might be a good follow-up change.
—
Reply to this email directly, view it on GitHub
https://github.com/chipsalliance/verible/pull/2190#pullrequestreview-2111073300,
or unsubscribe
https://github.com/notifications/unsubscribe-auth/ABVJSI3ZSKEU6TWSVGMGOPTZG4YJFAVCNFSM6AAAAABI4S2OM2VHI2DSMVQWIX3LMV43YUDVNRWFEZLROVSXG5CSMV3GSZLXHMZDCMJRGA3TGMZQGA
.
You are receiving this because you authored the thread.Message ID:
@.***>

authors: hzeller sconwayaus

repo: chipsalliance/verible


text:
Custom InlineLexer Rule

With Marked I can easily ovverride/add/change lexer rules during implementation, and its great!
For example I can force to use space between hash sign an text to make a header like this:
        var lexer = new marked.Lexer(options);
        console.log(lexer);
        lexer.rules.heading = /^\s*(#{1,6})\s+([^\n]+?) *#* *(?:\n+|$)/

        console.log(marked.parser(lexer.lex('#hashtag?'), options));
        //
#hashtag?

        console.log(marked.parser(lexer.lex('# heading?'), options));
        //
heading?

Cool!
But is there a way, to easily do same for inline lexer?
Like i need to make people be able to add an images with next sequence: %[My Image](http://example.com/img.jpg)?
So i modified:
var inlineLexer = marked.InlineLexer;
        inlineLexer.rules.link = /^[!%]{0,1}?\[((?:\[[^\]]*\]|[^\[\]]|\](?=[^\[]*\]))*)\]\(\s*<?([\s\S]*?)>?(?:\s+['"]([\s\S]*?)['"])?\s*\)/;

What should I do next?
How to bind a custom inlineLexer to a marked instance?
Please show me an example of how to do this! How can I modify/add custom inline lexer rules?

Actually there is a way, if you overwrite the prototype. (In this example I surpress parsing of em tags).
marked.prototype.constructor.Parser.prototype.parse = function (src) {
    this.inline = new marked.InlineLexer(src.links, this.options, this.renderer);
    this.inline.rules.em = { exec: $.noop }
    this.tokens = src.reverse();

    var out = '';
    while (this.next()) {
        out += this.tok();
    }

    return out;
};

@dotcore 's method solved my problem.
For people coming later, after overriding the constructor, you can also add custom renderer.

Closing as not part of the current focus. See #1106 and #1216

authors: Rugal dotcore elennaro joshbruce

repo: chjj/marked


text:
Return null on non-string input

I agree with what @scottgonzalez said here: https://github.com/chjj/marked/issues/417#issuecomment-42740178
I chose to return null instead of an empty string in order to let the user know there's a problem, and that it's probably his fault.
The TypeError is still thrown if a user calls manually Lexer.lex and then Parser.parse, but I think it's her/his business at this point.

We got several issues opened here because of this:
#168 #417 #447 #291 #442 #635 #658 and god knows how many more slipped my search.

Returning null is correct, IMO.  There's no string to parse, so it shouldn't be cast as one.

Just for reference, here are some more related issues that should be closed:
#681 #755 #758

#776

In my case I was using fs.readFileSync (yeah...I know) and passing it's output to marked() which failed with this replace error. Casting the output through String() did the trick for reasons I know not nor have time (for this project) to dig into...sadly. Hopefully the research is helpful, though!
Having marked() return null while correct would've made debugging things for me worse, though, I agree with @ericclemmons that it's likely the correct behavior technically--or perhaps throwing an deliberate Error would be best.

A reasonable alternative could be to return null on null input, and throw an exception on non-string input. That way the programmer can easily see he's calling marked on a wrong type.
It looks pretty pointless to pontificate further though, as it seems marked's development is completely stalled.

#802

authors: BigBlueHat Feder1co5oave ericclemmons


text:
Set range separator

Range separator should be "til" and not "to".

Coverage remained the same at 83.948% when pulling a43d081ec681311702a1498cc8e11171d3df3e95 on sebastianks:patch-2 into 78eaa16c665cc22c21ebaf4f50460ef395564ac2 on chmln:master.

Hello,
Please rebase the commit on top of src/l10n/da.js instead.
Thank you.

authors: chmln coveralls sebastianks

repo: chmln/flatpickr


text:
(autohotkey.portable) Release notes URL is incorrect

Chocolatey Version
2.2.2
Chocolatey License
Professional
Package Version
v2.0.0+
Current Behaviour
The package uses a canonical release notes URL (https://autohotkey.com/docs/AHKL_ChangeLog.htm) that redirects to the Changes & New Features page for v1.1 (https://www.autohotkey.com/docs/v1/AHKL_ChangeLog.htm). This behavior is incorrect for packages that consume v2+.
Expected Behaviour
Package should use a direct URL that corresponds to the consumed major version. Ideally, this would also include an anchor to the specific version section, but an anchorless URL is also acceptable.
Examples:
v1: https://www.autohotkey.com/docs/v1/AHKL_ChangeLog.htm#v1.1.37.01
v2: https://www.autohotkey.com/docs/v2/ChangeLog.htm#v2.0.7
Steps To Reproduce
Browse to the release notes URL for the package as published on the Community Repository.
Environment
- Operating System: Microsoft Windows NT 10.0.22621.0
- PowerShell Version: 5.1.22621.1778
- Shell: Windows PowerShell

Chocolatey Log
https://gist.github.com/brogers5/1478b4b1720f052fd020717ad3fb867e

Anything else?
Issue is also applicable to autohotkey.install, although no v2 packages for it currently exist (#1710).
Packages may require implementing streams if the intention is to support any future v1.1 releases.

Is this still relevant?

Yes.

If so, what is blocking it?

PR #2246 is still pending, which proposes packaging both AutoHotKey v2 and v1.1 in a singular installer package for backward compatibility with existing scripts written around v1.1. I feel it may be best to await its resolution, since it seems this would impact how it should be resolved (i.e. provide Release Note links for both of the consumed versions side-by-side, or just the singular packaged version, as is currently the case).

Is there anything you can do to help move it forward?

Yes, I would be happy to submit a PR to resolve this. This is mostly a metadata related concern, which should be straightforward to resolve.

On a related note, licenseUrl suffers from a similar issue, albeit its impact is limited, given that both versions currently share the same license. However, there's no guarantee this will remain the case for v2's lifetime.


text:
(#66) Adding Tests to ChocoCCM

Description Of Changes
This PR adds a few tests to the module.
Motivation and Context
I wanted to refactor something, but without tests to show that my changes didn't actually change the resulting operations (beyond a few fixes), I was unlikely to be able to convince folk to look at it.

Ideally, we will add some integration tests that can work against a running instance, but this is (hopefully) a great start for unit testing that can be run quickly at dev and build time!
Most missed testing is now in Set-CCMDeploymentStep (which is non-functional but lengthy, and has a bug open around fixing it - #68), Import-PDQDeployPackage (which I didn't have data to test against), the if not $script:session throw blocks, and argument completers.
There are a number of currently skipped tests that could do with a chat.
Testing
No changes to operational code were made, except for those that fixed bugs in functions. These should now work!
Operating Systems Testing

Windows 10

Change Types Made
...technically I suppose the changes to fix functions are breaking changes, but in a good way? I'd argue there are no truly breaking changes in here. There is a change to make a name match more exact that may break usage, but does not break what we say should happen. Happy to chat about that.

[x] Bug fix (non-breaking change).
[x] Feature / Enhancement (non-breaking change).
~[ ] Breaking change (fix or feature that could cause existing functionality to change).~
~[ ] Documentation changes.~
[x] PowerShell code changes.

Change Checklist

~[ ] Requires a change to the documentation.~
~[ ] Documentation has been updated.~
[x] Tests to cover my changes, have been added.
[x] All new and existing tests passed? (note: I removed some of the existing tests, but they all now pass!)
[ ] PowerShell code changes: PowerShell v2 compatibility checked?

Related Issue
Fixes #66

A few PSSA rules I need to follow in the tests before merging, it seems.

repo: chocolatey/ChocoCCM


text:
Chocolatey GUI is randomly unable to list all packages

Sometimes ChocolateyGUI is listing only few packages and searching for desired package doesn't return anything. Investigating issue with Fiddler - I see, that instead of
https://chocolatey.org/api/v2/Packages()?$filter=IsLatestVersion&$orderby=DownloadCount%20desc,Id&$skip=0&$top=30&searchTerm=%27%27&targetFramework=%27%27&includePrerelease=false
query, it's running this one:
https://chocolatey.org/api/v2/Search()?$filter=IsLatestVersion&$orderby=DownloadCount%20desc,Id&$skip=0&$top=30&searchTerm=%27%27&targetFramework=%27%27&includePrerelease=false
which is returning much less results.
I don't know if it's more related to API behavior than ChocolateyGUI, but please look at it and decide how to resolve it.

@Janek91 Do you happen to have a note of when this occured?  I wonder if this is related to this issue:
https://github.com/chocolatey/choco/issues/1494
Due to problems with the caching of the website that we have from time to time, package search results sometimes don't have back either at all, or only with a few results.

I can confirm this happening. For example, OBS (named "Open Broadcaster Software Studio"). Search "open broadcaster", "open AND broadcaster", "open broadcaster software", or "open broadcaster software studio", OBS does not come up. Put in "OBS", and OBS shows up as the fourth result, after... FFmpeg, a deprecated extension pack for VirtualBox, and GitLink?! Why does that even show up?
Anyway, if you leave out "Open", and instead just search "Broadcaster", it shows up as the first result. This seems like a bug?

Chocolatey GUI uses the same underlying search that Chocolatey itself uses, so if there is an issue, it is outside of this repository.  As such, I am going to close out this issue.

repo: chocolatey/ChocolateyGUI


text:
Unable to have package run successfully on reboot

What You Are Seeing?
I am trying to create a package that will make a few adjustments to windows and install Windows updates. As you know, updates can take several reboots. I created a Powershell script (see appropriate section), created a package for it, built the package, and then install the package using appropriate credentials. Upon first use, it seems to work. Windows updates are run, installed, and a reboot occurs. However, Boxstarter does not log back in and continue. I log in and a Boxstarter shell opens but it does nothing. I check Windows updates and there are more updates available. If I try to run the install again, it says it installed and completed, but it actually ran nothing (my script creates a log and there is no log)
My intention is to merge this into all the setup I already have working with Chocolately (setting roles and features, installing IIS, adding sites, app pools, installing apps, etc).
What am I doing wrong?
NOTE: I am worried that I see a message that Windows Updates are disabled by Boxstarter. Perhaps that has something to do with it? (see attached image below).
What is Expected?
I expect Boxstarter to apply Windows updates, reboot, check for more updates and repeat until there are no more updates to apply.
How Did You Get This To Happen? (Steps to Reproduce)
Below is the code/script for  'UpdateWindows.ps1' within package. There is a simple nuspec file and the nupkg file that is autogenerated. Its just one script file (shown below)
function global:Write-Notepad
(
    [string] $Message,
    [string] $ForegroundColor = 'Gray'
)
{
    Process
    {
        if($_){ Write-Host "$_`r" }
    }
    End
    {
        if($Message){ Write-Host "$Message`r" -ForegroundColor $ForegroundColor }
    }
}

try {
	#get-date -Format g
	Start-Transcript -Path "C:\temp\UpdateWindowsLog.log" -Append
	$msg = ("[{0}] {1}" -f (get-date -Format g), "Beginning 'Update Windows' script")
	Write-Notepad $msg
	$msg = ("[{0}] {1}" -f (get-date -Format g), "Setting Execution policy")
	Write-Notepad $msg
	Set-ExecutionPolicy Unrestricted -Force
	$msg = Write-Notepad ("[{0}] {1}" -f (get-date -Format g), "Importing Boxstarter and Chocolately modules")
	Write-Notepad $msg
	Import-Module Boxstarter.Chocolatey
	$msg = ("[{0}] {1}" -f (get-date -Format g), "Disabling UAC")
	Write-Notepad $msg
	Disable-UAC
	#Write-Notepad ("[{0}] {1}" -f (get-date -Format g), "Disabling Microsoft Update")
	#Disable-MicrosoftUpdate
	$msg = ("[{0}] {1}" -f (get-date -Format g), "Applying MS Explorer options")
	Write-Notepad $msg
	Set-ExplorerOptions -showHiddenFilesFoldersDrives -showProtectedOSFiles -showFileExtensions
	$msg = ("[{0}] {1}" -f (get-date -Format g), "Enabling Remote Desktop")
	Write-Notepad $msg
	Enable-RemoteDesktop
	$msg = ("[{0}] {1}" -f (get-date -Format g), "Disabling IE Enhanced Security")
	Write-Notepad $msg
	Disable-InternetExplorerESC
	$msg = ("[{0}] {1}" -f (get-date -Format g), "Enabling Windows Update")
	Write-Notepad $msg
	Enable-MicrosoftUpdate
	$msg = ("[{0}] {1}" -f (get-date -Format g), "Installing Windows Updates")
	Write-Notepad $msg
	Install-WindowsUpdate -AcceptEula -Criteria "IsInstalled=0 and Type='Software' and BrowseOnly=0"
	# Install-WindowsUpdate -Criteria "IsHidden=0 and IsInstalled=0 and Type='Software' and BrowseOnly=0 and Type='Driver'"
	$msg = ("[{0}] {1}" -f (get-date -Format g), "Enabling UAC")
	Write-Notepad $msg
	Enable-UAC
	$msg = ("[{0}] {1}" -f (get-date -Format g), "'Update Windows' script completed.")
	Write-Notepad $msg
	Stop-Transcript
} catch {
	$msg = ("[{0}] {1} {2}" -f (get-date -Format g), "WARNING!!! An unexpected error ocurred!",$($_.Exception.Message))
	Write-Notepad $msg
    throw $_
}

Simplified code if there was no logging:
try {
	Set-ExecutionPolicy Unrestricted -Force
	Import-Module Boxstarter.Chocolatey
	Disable-UAC
	Enable-RemoteDesktop
	Disable-InternetExplorerESC
	Enable-MicrosoftUpdate
	Install-WindowsUpdate -AcceptEula -Criteria "IsInstalled=0 and Type='Software' and BrowseOnly=0"
	Enable-UAC
} catch {
    throw $_
}

Output Log
No logs are generated in the Boxstarter log directory. See attached image of trying to rerun the installer.

If all you have in your package is a .nuspec file and UpdatesWindows.ps1 nothing will happen.
Rename UpdatesWindows.ps1 to chocolateyInstall.ps1 in your package or call Install-BoxstarterPackage -PackageName UpdateWindows.ps1 where Boxstarter will create a package for you.

I did run Install-BoxstarterPackage. First I did this:
New-BoxstarterPackage -Name "UpdateWindows" -Description "Applies windows updates and reboots as necessary" -Path "C:\temp\UpdateWindows"
Invoke-BoxstarterBuild UpdateWindows
Then I ran this:
$User = "NWLIC\domainuser"
$PWordFile = "C:\Temp\domainuser.pwd"
$KeyFile = "C:\temp\AES.key"
$Key = Get-Content $KeyFile
$PWord = (Get-Content $PWordFile | ConvertTo-SecureString -key $Key )
$cred=New-Object -TypeName System.Management.Automation.PSCredential -ArgumentList $User, $PWord
Install-BoxstarterPackage -PackageName UpdateWindows -Credential $cred

No response?

What is the contents of your UpdateWindows package and what is the contents of the chocolateyInstall.ps1 file inside of it?

Closing this as stale.

authors: TrevorWesterdahl pauby

repo: chocolatey/boxstarter


text:
[WIP] Get Travis working

Also update to the simpler conda-based travis scheme.

Thanks!

authors: jchodera kyleabeauchamp

repo: choderalab/pymbar


text:
Install DuckDB before this plugin

It might be worth adding this before the plugin install step so people don't see ugly error messages:

Before installing this plugin, go to the Plugins Menu -> Python Console. Then type:

import pip; pip.main(['install', 'duckdb'])

Ah, cool - that is a nicer way to install it than the instructions I have, will add it soon. Do you know if this works on windows too? I was following qduckdb, and they packaged duckdb for windows, but not for the others.
I'm also curious about just including duckdb directly in the plugin, but don't really understand the tradeoffs and what people normally do with qgis plugins.

@cholmes I would just add DuckDB to the plugin itself. It's not uncommon and solves a lot of headaches with people struggling to install themselves.
There are ways to build and deploy the plugin and with a pyproject.toml using and include all dependencies there

@cholmes yeah, that was on Windows 11.

@marklit - I got errors with this, but it seemed to work:
# Use iface to access QGIS API interface or type '?' for more info
# Security warning: typing commands from an untrusted source can harm your computer
import pip; pip.main(['install', 'duckdb'])
WARNING: pip is being invoked by an old script wrapper. This will fail in a future version of pip.
Please see https://github.com/pypa/pip/issues/5599 for advice on fixing the underlying issue.
To avoid this problem you can invoke Python with '-m pip' instead of running pip directly.

Are those typical? Or just the first time you use it? Want to guide people to be confident that the warnings ok and it worked.

QGIS 3.40 ships with Python 3.12.7 and the pip.main() calls run without issue as far as I can see, albeit with that warning.
I think the way QGIS calls the pip library might be similar to calling the virtualenv bash script where this sort of warning can come up. If the library believed it was called the same way python3 -m venv is called that warning wouldn't be seen.

@cholmes I just ran import pip; pip.main(['install', 'duckdb']) in my pixi/conda version of QGIS 3.40 it worked fine.
I had a look into this and think I've got this working now so DuckDB is installed before the plugin initiates.
Will send a PR over later.

Closing this, #35 and #36 should hopefully do it, we're now just calling this same method in the code.

authors: cholmes marklit mtravis