Exception occurred when processing

Hello. I have this error for all my erb files in project
Exception occurred when processing: app/views/shared/_header.html.erb
If this file cannot be processed by erb-lint, you can exclude it in your configuration file.
No such file or directory @ rb_sysopen - /home/andrew/MyApps/vhospital/.better-html.yml
/home/andrew/.rbenv/versions/3.2.4/lib/ruby/gems/3.2.0/gems/erb_lint-0.5.0/lib/erb_lint/file_loader.rb:26:in `read'
/home/andrew/.rbenv/versions/3.2.4/lib/ruby/gems/3.2.0/gems/erb_lint-0.5.0/lib/erb_lint/file_loader.rb:26:in `read_content'
/home/andrew/.rbenv/versions/3.2.4/lib/ruby/gems/3.2.0/gems/erb_lint-0.5.0/lib/erb_lint/file_loader.rb:14:in `yaml'
/home/andrew/.rbenv/versions/3.2.4/lib/ruby/gems/3.2.0/gems/erb_lint-0.5.0/lib/erb_lint/linters/erb_safety.rb:58:in `better_html_config'
/home/andrew/.rbenv/versions/3.2.4/lib/ruby/gems/3.2.0/gems/erb_lint-0.5.0/lib/erb_lint/linters/erb_safety.rb:48:in `block in testers_for'
/home/andrew/.rbenv/versions/3.2.4/lib/ruby/gems/3.2.0/gems/erb_lint-0.5.0/lib/erb_lint/linters/erb_safety.rb:47:in `map'
/home/andrew/.rbenv/versions/3.2.4/lib/ruby/gems/3.2.0/gems/erb_lint-0.5.0/lib/erb_lint/linters/erb_safety.rb:47:in `testers_for'
/home/andrew/.rbenv/versions/3.2.4/lib/ruby/gems/3.2.0/gems/erb_lint-0.5.0/lib/erb_lint/linters/erb_safety.rb:24:in `run'
/home/andrew/.rbenv/versions/3.2.4/lib/ruby/gems/3.2.0/gems/erb_lint-0.5.0/lib/erb_lint/linter.rb:59:in `run_and_update_offense_status'
/home/andrew/.rbenv/versions/3.2.4/lib/ruby/gems/3.2.0/gems/erb_lint-0.5.0/lib/erb_lint/runner.rb:28:in `block in run'
/home/andrew/.rbenv/versions/3.2.4/lib/ruby/gems/3.2.0/gems/erb_lint-0.5.0/lib/erb_lint/runner.rb:27:in `each'
/home/andrew/.rbenv/versions/3.2.4/lib/ruby/gems/3.2.0/gems/erb_lint-0.5.0/lib/erb_lint/runner.rb:27:in `run'
/home/andrew/.rbenv/versions/3.2.4/lib/ruby/gems/3.2.0/gems/erb_lint-0.5.0/lib/erb_lint/cli.rb:161:in `block in run_with_corrections'
/home/andrew/.rbenv/versions/3.2.4/lib/ruby/gems/3.2.0/gems/erb_lint-0.5.0/lib/erb_lint/cli.rb:159:in `times'
/home/andrew/.rbenv/versions/3.2.4/lib/ruby/gems/3.2.0/gems/erb_lint-0.5.0/lib/erb_lint/cli.rb:159:in `run_with_corrections'
/home/andrew/.rbenv/versions/3.2.4/lib/ruby/gems/3.2.0/gems/erb_lint-0.5.0/lib/erb_lint/cli.rb:130:in `run_on_file'
/home/andrew/.rbenv/versions/3.2.4/lib/ruby/gems/3.2.0/gems/erb_lint-0.5.0/lib/erb_lint/cli.rb:86:in `block in run'
/home/andrew/.rbenv/versions/3.2.4/lib/ruby/gems/3.2.0/gems/erb_lint-0.5.0/lib/erb_lint/cli.rb:83:in `each'
/home/andrew/.rbenv/versions/3.2.4/lib/ruby/gems/3.2.0/gems/erb_lint-0.5.0/lib/erb_lint/cli.rb:83:in `run'
/home/andrew/.rbenv/versions/3.2.4/lib/ruby/gems/3.2.0/gems/erb_lint-0.5.0/exe/erblint:9:in `<top (required)>'
/home/andrew/.rbenv/versions/3.2.4/bin/erblint:25:in `load'
/home/andrew/.rbenv/versions/3.2.4/bin/erblint:25:in `<top (required)>'
/home/andrew/.rbenv/versions/3.2.4/lib/ruby/gems/3.2.0/gems/bundler-2.3.5/lib/bundler/cli/exec.rb:58:in `load'
/home/andrew/.rbenv/versions/3.2.4/lib/ruby/gems/3.2.0/gems/bundler-2.3.5/lib/bundler/cli/exec.rb:58:in `kernel_load'
/home/andrew/.rbenv/versions/3.2.4/lib/ruby/gems/3.2.0/gems/bundler-2.3.5/lib/bundler/cli/exec.rb:23:in `run'
/home/andrew/.rbenv/versions/3.2.4/lib/ruby/gems/3.2.0/gems/bundler-2.3.5/lib/bundler/cli.rb:484:in `exec'
/home/andrew/.rbenv/versions/3.2.4/lib/ruby/gems/3.2.0/gems/bundler-2.3.5/lib/bundler/vendor/thor/lib/thor/command.rb:27:in `run'
/home/andrew/.rbenv/versions/3.2.4/lib/ruby/gems/3.2.0/gems/bundler-2.3.5/lib/bundler/vendor/thor/lib/thor/invocation.rb:127:in `invoke_command'
/home/andrew/.rbenv/versions/3.2.4/lib/ruby/gems/3.2.0/gems/bundler-2.3.5/lib/bundler/vendor/thor/lib/thor.rb:392:in `dispatch'
/home/andrew/.rbenv/versions/3.2.4/lib/ruby/gems/3.2.0/gems/bundler-2.3.5/lib/bundler/cli.rb:31:in `dispatch'
/home/andrew/.rbenv/versions/3.2.4/lib/ruby/gems/3.2.0/gems/bundler-2.3.5/lib/bundler/vendor/thor/lib/thor/base.rb:485:in `start'
/home/andrew/.rbenv/versions/3.2.4/lib/ruby/gems/3.2.0/gems/bundler-2.3.5/lib/bundler/cli.rb:25:in `start'
/home/andrew/.rbenv/versions/3.2.4/lib/ruby/gems/3.2.0/gems/bundler-2.3.5/exe/bundle:48:in `block in <top (required)>'
/home/andrew/.rbenv/versions/3.2.4/lib/ruby/gems/3.2.0/gems/bundler-2.3.5/lib/bundler/friendly_errors.rb:103:in `with_friendly_errors'
/home/andrew/.rbenv/versions/3.2.4/lib/ruby/gems/3.2.0/gems/bundler-2.3.5/exe/bundle:36:in `<top (required)>'
/home/andrew/.rbenv/versions/3.2.4/bin/bundle:25:in `load'
/home/andrew/.rbenv/versions/3.2.4/bin/bundle:25:in `<main>'

.erb-lint.yml
---
EnableDefaultLinters: true
linters:
  ErbSafety:
    enabled: true
    better_html_config: .better-html.yml
  Rubocop:
    enabled: true
    rubocop_config:
      inherit_from:
        - .rubocop.yml

rubocop 1.64
What is wrong in my config?

you don't have a .better_html config file. You either need to create it, or remove better_html_config: .better-html.yml entirely from your .erb_lint.yml
I fell into the same trap: copied the example config file and tried to run it. they should really point this out in the readme

Please PR an update to the README 🙏


Splitting StyxHttpClient functionality into two separate logically ty…

Splitting StyxHttpClient functionality into two separate logically tYpes. It is a first step in a refactoring process of decoupling the logic.

Not necessary.


Fix local Docker development environment

Changes in this PR:
This fixes the local Docker development environment, which has been broken for a while. I can now successfully:

run the server with bin/dstart and access it at http://localhost:3000/admin
run the tests with bin/dtest-server and bin/dspec

Updating your local environment
You'll need to update your local docker-compose.env with the new DATABASE_URL from docker-compose.env.sample.
Caveats
There are some database-related errors on first startup:

ActiveRecord::ConcurrentMigrationError, or
PG::DuplicateObject: ERROR:  constraint "fk_rails_11d9b07d76" for relation "agreement_framework_lots" already exists

I think these come from the web and worker containers both trying to set up the database at the same time. But I'm pretty sure this is not a new issue. I remember it happening a while back too. If I have a chance, I'll see what we can do about that, too. I worked around it by running docker-compose up web before bin/dstart.

@lawrence-forooghian Should we expect bin/drebuild to work just yet? If not, how do I initiate a fresh thing before trying to run bin/dstart?

I never tested bin/drebuild. I used bin/dclean-slate to reset things.

I'm not getting any of those errors, I'm getting
data-submission-service-api_web | could not connect to server: Connection refused
data-submission-service-api_web | 	Is the server running on host "localhost" (<IP_ADDRESS>) and accepting
data-submission-service-api_web | 	TCP/IP connections on port 5432?

I would like to unassign myself, and leave it to someone who can successfully run it. Then I can look for help in fixing my setup, since something is clearly wrong beyond any recognition...

@CristinaRO the problem you are seeing is because the web app is not waiting for the database to start. this is a known problem with docker compose. you can see we are getting round it in bin/dtest-server this brings up the database and then the web app.
with the normal set up it should keep on restarting until its there.


Some Youtube m3u8 formats fail to download with a 404

DO NOT REMOVE OR SKIP THE ISSUE TEMPLATE

[X] I understand that I will be blocked if I intentionally remove or skip any mandatory* field

Checklist

[X] I'm reporting that yt-dlp is broken on a supported site
[X] I've verified that I'm running yt-dlp version 2023.07.06 (update instructions) or later (specify commit)
[X] I've checked that all provided URLs are playable in a browser with the same IP and same login details
[X] I've checked that all URLs and arguments with special characters are properly quoted or escaped
[X] I've searched known issues and the bugtracker for similar issues including closed ones. DO NOT post duplicates
[X] I've read the guidelines for opening an issue
[ ] I've read about sharing account credentials and I'm willing to share it if required

Region
Netherlands
Provide a description that is worded well enough to be understood
This video (https://www.youtube.com/watch?v=V5yN4xSKxRM) cannot be downloaded, exiting with the error
ERROR: unable to download video data: HTTP Error 404: Not Found.
I can play the video in a browser just fine, even without being logged in on Youtube. Other videos from the channel can be downloaded without issues. I remember encountering the same problem on another video some time ago (unfortunately I am not sure whether it was the same channel), but thought then it was just a temporary glitch.
Provide verbose output that clearly demonstrates the problem

[X] Run your yt-dlp command with -vU flag added (yt-dlp -vU <your command line>)
[ ] If using API, add 'verbose': True to YoutubeDL params instead
[X] Copy the WHOLE output (starting with [debug] Command-line config) and insert it below

Complete Verbose Output
~ yt-dlp -vU https://www.youtube.com/watch\?v\=V5yN4xSKxRM
[debug] Command-line config: ['--config-location', '/Users/alekoe/yt-dlp/config', '-vU', 'https://www.youtube.com/watch?v=V5yN4xSKxRM']
[debug] | Config "/Users/alekoe/yt-dlp/config": ['-o', '/Users/alekoe/Movies/Youtube/%(uploader)s/%(title)s.%(ext)s', '-f', 'bv*[ext=mp4]+ba[ext=m4a]/b[ext=mp4] / bv*+ba/b', '--download-archive', '/Users/alekoe/yt-dlp/archive.txt']
[debug] Encodings: locale UTF-8, fs utf-8, pref UTF-8, out utf-8, error utf-8, screen utf-8
[debug] yt-dlp version<EMAIL_ADDRESS>[b532a3481] (zip)
[debug] Python 3.11.4 (CPython arm64 64bit) - macOS-13.4.1-arm64-arm-64bit (OpenSSL 3.1.1 30 May 2023)
[debug] exe versions: ffmpeg 6.0 (setts), ffprobe 6.0
[debug] Optional libraries: sqlite3-2.6.0
[debug] Proxy map: {}
[debug] Loaded 1855 extractors
[debug] Loading archive file '/Users/alekoe/yt-dlp/archive.txt'
[debug] Fetching release info: https://api.github.com/repos/yt-dlp/yt-dlp/releases/latest
Available version<EMAIL_ADDRESS>Current version<EMAIL_ADDRESS>Current Build Hash: cedf44a9cf3c241520a692c1006d276e6f434d4d945727c47cb1a70d32953f4a
yt-dlp is up to date<EMAIL_ADDRESS>[youtube] Extracting URL: https://www.youtube.com/watch?v=V5yN4xSKxRM
[youtube] V5yN4xSKxRM: Downloading webpage
[youtube] V5yN4xSKxRM: Downloading ios player API JSON
[youtube] V5yN4xSKxRM: Downloading android player API JSON
[debug] Loading youtube-nsig.0e6aaa83 from cache
[debug] [youtube] Decrypted nsig 3b4yG4cOBVYUqfLKTB => xREnxB6z0FDm4Q
[youtube] V5yN4xSKxRM: Downloading m3u8 information
[debug] Sort order given by extractor: quality, res, fps, hdr:12, source, vcodec:vp9.2, channels, acodec, lang, proto
[debug] Formats sorted by: hasvid, ie_pref, quality, res, fps, hdr:12(7), source, vcodec:vp9.2(10), channels, acodec, lang, proto, size, br, asr, vext, aext, hasaud, id
[info] V5yN4xSKxRM: Downloading 1 format(s): 617+140
[debug] Invoking hlsnative downloader on "https://manifest.googlevideo.com/api/manifest/hls_playlist/expire/1690951820/ei/LIzJZOPlJMLQ1gLf5YHYDg/ip/2a02:a212:2241:3b80:8c17:9ec9:1d0:a29d/id/579c8de3148ac513/itag/617/source/youtube/requiressl/yes/ratebypass/yes/pfa/1/wft/1/sgovp/clen%3D441607860%3Bdur%3D1517.016%3Bgir%3Dyes%3Bitag%3D303%3Blmt%3D1690855624695842/hls_chunk_host/rr2---sn-5hneknee.googlevideo.com/mh/Un/mm/31,29/mn/sn-5hneknee,sn-5hne6nsy/ms/au,rdu/mv/m/mvi/2/pl/28/initcwndbps/2168750/bui/AYlvQAubp_5xZFxoJPwO7ClBPOCe_5Ur5ozlzjVc_eok-DdjFybKUS0ezqzuH9TPNWtm26AidxufaWGJioOKZMvZpvHXuF0Y/vprv/1/playlist_type/DVR/dover/13/txp/3309224/mt/1690929897/fvip/4/short_key/1/keepalive/yes/fexp/24007246,51000014/beids/24350018/sparams/expire,ei,ip,id,itag,source,requiressl,ratebypass,pfa,wft,sgovp,bui,vprv,playlist_type/sig/AOq0QJ8wRQIga-bVEuOKllOaG83nAEVb4_nto79dDK0EPCMhwGijWowCIQC4Vds1rER_wDnsZ3z2SIh9VTnoUM4CTUNJpDifNn44qg%3D%3D/lsparams/hls_chunk_host,mh,mm,mn,ms,mv,mvi,pl,initcwndbps/lsig/AG3C_xAwRQIgdZAKONrPWnHIAbaHkCP1PlquuGJIX9R2K4d-vbJ0zmwCIQDrH0ScbgVeyaxze8_DV5TQ7O7l65mAnQQtw1t0XjqEmA%3D%3D/playlist/index.m3u8"
[hlsnative] Downloading m3u8 manifest
ERROR: unable to download video data: HTTP Error 404: Not Found
Traceback (most recent call last):
  File "/usr/local/bin/yt-dlp/yt_dlp/YoutubeDL.py", line 3345, in process_info
    partial_success, real_download = self.dl(fname, new_info)
                                     ^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/local/bin/yt-dlp/yt_dlp/YoutubeDL.py", line 3084, in dl
    return fd.download(name, new_info, subtitle)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/local/bin/yt-dlp/yt_dlp/downloader/common.py", line 461, in download
    ret = self.real_download(filename, info_dict)
          ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/local/bin/yt-dlp/yt_dlp/downloader/hls.py", line 77, in real_download
    urlh = self.ydl.urlopen(self._prepare_url(info_dict, man_url))
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/local/bin/yt-dlp/yt_dlp/YoutubeDL.py", line 3863, in urlopen
    return self._opener.open(req, timeout=self._socket_timeout)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File<EMAIL_ADDRESS>line 525, in open
    response = meth(req, response)
               ^^^^^^^^^^^^^^^^^^^
  File<EMAIL_ADDRESS>line 634, in http_response
    response = self.parent.error(
               ^^^^^^^^^^^^^^^^^^
  File<EMAIL_ADDRESS>line 563, in error
    return self._call_chain(*args)
           ^^^^^^^^^^^^^^^^^^^^^^^
  File<EMAIL_ADDRESS>line 496, in _call_chain
    result = func(*args)
             ^^^^^^^^^^^
  File<EMAIL_ADDRESS>line 643, in http_error_default
    raise HTTPError(req.full_url, code, msg, hdrs, fp)
urllib.error.HTTPError: HTTP Error 404: Not Found

See https://github.com/yt-dlp/yt-dlp/issues/7510#issuecomment-1620828844
This is an issue on Youtube's end where newly uploaded videos have their iOS m3u8 formats listed as available before Youtube has finished processing those formats. After some hours have passed format 617 will be able to be downloaded.
In the meantime, you can ujse --check-formats, or, if you want to avoid the iOS formats altogether, use --extractor-args "youtube:player_client=android,web"

I just ran into this problem with a different video.
Is it possible to detect this case and give the user a better error message than a generic 404, or even fall back to another format automatically? (when enabled/not disabled by the user of course).

... possible to detect this case and ... even fall back to another format automatically

--check-formats with a format selection that doesn't specifically require the broken format will do that.

... possible to detect this case and ... even fall back to another format automatically

--check-formats with a format selection that doesn't specifically require the broken format will do that.

That did not work for me...

--check-formats is broken in last release

I would second the idea of having some way to automatically workaround this. I've encountered it a few times, and while it's good that the manual workaround exists (re. --extractor-args "youtube:player_client=android,web"), it's a bit annoying having to do it manually. I think a lot of people also just wouldn't know this workaround exists.

Still an issue on yt-dlp 2023.09.24
OPs video works for me, but https://www.youtube.com/watch?v=1YGD94lSor8 has the issue now.

[info] o4GZUCwVRLs: Downloading 1 format(s): 617+140
ERROR: unable to download video data: HTTP Error 404: Not Found

can repro.
$ yt-dlp -O upload_date o4GZUCwVRLs
20231115

it is outside the lookback window for automatic format testing, so I think we need to do this:
diff --git a/yt_dlp/extractor/youtube.py b/yt_dlp/extractor/youtube.py
index f6caf0970..3328b3238 100644
--- a/yt_dlp/extractor/youtube.py
+++ b/yt_dlp/extractor/youtube.py
@@ -4563,7 +4563,7 @@ def process_language(container, base_url, lang_code, sub_name, query):
         if upload_date and live_status not in ('is_live', 'post_live', 'is_upcoming'):
             # Newly uploaded videos' HLS formats are potentially problematic and need to be checked
             upload_datetime = datetime_from_str(upload_date).replace(tzinfo=datetime.timezone.utc)
-            if upload_datetime >= datetime_from_str('today-1day'):
+            if upload_datetime >= datetime_from_str('today-2days'):
                 for fmt in info['formats']:
                     if fmt.get('protocol') == 'm3u8_native':
                         fmt['__needs_testing'] = True

as a workaround for now (and as mentioned earlier in the thread), pass --check-formats

Yes, this was uploaded on 2023-11-15 at 23:15 or thereabouts (I recall posting a link to a friend, and it said "1 hour ago" at the time), so it's been up for 20 hours or so -- so makes sense the detection code didn't catch it if the only thing you can get is the day of the upload, not the exact upload timestamp.

Forcing --check-formats is always "safe", it just may slow down extraction bc it will request each format as a sanity check

When it tests the formats, it downloads a (hopefully[^1]) small chunk of the target format to a tempfile in your temp dir and then immediately removes it. So if you are OK with the extra network overhead and disk writes, then it should be fine
[^1]: usually no larger than 10KB, but this may vary with fragmented formats: sometimes the first fragment can several MB

I tested it 10 minutes ago, and terminated the attempt after 2 minutes of it being stuck on [info] Testing format 617

This was likely caused by either https://github.com/yt-dlp/yt-dlp/issues/7894#issuecomment-1722904568 or #8579


Need Get-ComputerInfo on Linux

Ubuntu 16.04 LTS
PS /home/lit/src/t> Get-ComputerInfo
Get-ComputerInfo : The term 'Get-ComputerInfo' is not recognized as the name of a cmdlet, function, script
file, or operable program. Check the spelling of the name, or if a path was included, verify that the path
is correct and try again.
At line:1 char:1

Get-ComputerInfo

  + CategoryInfo          : ObjectNotFound: (Get-ComputerInfo:String) [], CommandNotFoundException
  + FullyQualifiedErrorId : CommandNotFoundException

PS /home/lit/src/t> $PSVersionTable
Name                           Value

PSVersion                      6.0.0-alpha
PSEdition                      Core
PSCompatibleVersions           {1.0, 2.0, 3.0, 4.0...}
BuildVersion                   <IP_ADDRESS>
GitCommitId                    v6.0.0-alpha.12
CLRVersion
WSManStackVersion              3.0
PSRemotingProtocolVersion      2.3
SerializationVersion           <IP_ADDRESS>

It would be great if someone from Red Hat or Ubuntu would pick this up. Are there any contacts like this here on github?

I think this port could be done in stages and it doesn't have to be all or nothing.  Some of the info should be relatively easy to get from the Linux filesystem parsing text files.

I agree with stages. Whatever it is needs to be open to the variety of vendors and distros. The OsOrganization member should be able to return 'Red Hat', 'Ubuntu', 'Arch', 'Mint', 'Centos', etc.
It has always been frustrating to me that uname -a only returns a kernel version number. As important as that is, uname should (in my opinion) reveal the distro name.

We can use /etc/release https://www.freedesktop.org/software/systemd/man/os-release.html

There are a number of place we can get info on Linux. Very few of which will work on mac os, by the way.

Dupe of https://github.com/PowerShell/PowerShell/issues/419


[WIP] add testcase for describe-level pending string only

When a pending entry is added on a describe level, then it will get lost if it doesn't have a function argument.
The added test shows the behaviour, but I haven't been able to add a fix, because of the way the code is structured (heavily event based).
Any help would be appreciated.

What needs to be done here?

a hint how to fix this?

I'll try to refamiliarize myself with the code and get back with a fix then.

It works like this:
diff --git i/spec/cl_pending.lua w/spec/cl_pending.lua
index 00fa725..8f6938e 100644
--- i/spec/cl_pending.lua
+++ w/spec/cl_pending.lua
@@ -12,5 +12,9 @@ describe('Tests the busted pending functions through the commandline>
       error('this should not run')
     end)
   end)
+
+  local it = pending(' (pending_reason)')
+  it('is made pending', function()
+    assert(false)
+  end)
 end)
-
diff --git i/spec/cl_spec.lua w/spec/cl_spec.lua
index ff3929c..33e4e46 100644
--- i/spec/cl_spec.lua
+++ w/spec/cl_spec.lua
@@ -564,8 +564,8 @@ describe('Tests pending through the commandline', function()
     local line1 = result:match('.-\n')
     local _, pendingDots = line1:gsub('%.', '')
     local _, numPending = result:gsub('Pending %-> .-\n', '')
-    assert.is_equal(2, pendingDots)
-    assert.is_equal(2, numPending)
+    assert.is_equal(3, pendingDots)
+    assert.is_equal(3, numPending)
   end)

   it('--suppress-pending option is honored', function()

The reason is that without a fn argument it returns the publish function itself: https://github.com/Olivine-Labs/busted/blob/8bbf64d4fa5fc8ba2cd67783da9f045b29c49764/busted/core.lua#L275
See also https://github.com/Olivine-Labs/busted/issues/610#issuecomment-543256635.

replaced by #636


CLI parameter to overwrite MTA parameters

Description
Hi everyone,
In my project, I have a resource which needs to be passed a secret token during deployment. This is why I wouldn't want to put the token into the repository as part of mta or extension (even if putting credentials into the extension seems to be recommended), but inject it to the cf deploy command from the CD pipeline.
As a workaround, we've currently modeled the resource as existing-service and manually create the service instance. For dev-spaces, however, we'd like to use a development plan of the service, which doesn't need the secret token. However, we still have to manually create the service, as we can't change the resource type to managed-service from the mta extension.
In an ideal world, I would be able to, in my mta.yaml (or any extension), specify a parameter like this:
ID: test
_schema-version: 3.3.0
version: 0.0.0

parameters:
  secret: fillme

resources:
  ...

In the CLI, I would only now need to be able to overwrite the parameters via an additional CLI parameter, e.g.:
cf deploy my.mtar --parameter secret=thesecret

Would it be possible to add such a feature?
I've checked cf help deploy but didn't find any hint into this direction...
I don't know if server-side support is necessary here, but in the worst case the CLI could generate an transient mta extension with the parameters and just send it along.
Thank you very much for your support!
Kind regards
Lukas

Hi Lukas & thanks for sharing your feedback!
Until the service starts supporting such capabilities, the closest experience I can propose is templating the secret in the *.mtaext right before deployment. This is also a bit more flexible, as one can pick from a variety of templating tools. The downside is obvious - extra templating has to be done over the mta model, which already kind of supports templating with its  properties/parameters references.
From the top of my head I see security shortcomings with both mentioned approaches so far

if sensitive data is passed as cli options, it may leak - by getting cached in shell history or get printed by "ps" etc.
if sensitive data is persisted to disk even right before deployment, it may be red & leaked to other processes having access to the file

The security mindful options I can think of are

to read a json with params from an env variable,
to stream the sensitive data to stdin of the cf deploy command ,

be it only parameters in some structure we invent
or entire extension descriptor(s) in yaml.

None of those options are trivial enhancements to the service. Only the last one is at least contained only in the client code(this repo). I'll run them through the team before we decide on any implementation.
Best regards!

Hi Dido,
thank you very much for the reply!
I didn't consider the leaking, I think in the past I observed Jenkins marking secrets regardless of where they are used, but I might be wrong.
I like the idea about passing it via environment variables directly, as this is already supported by our pipeline framework's model of reading secrets from the credential store -- they are put into arbitrarily nameable environment variables. No extra steps to provide them as CLI parameters as well.
(This is also what other projects seem to do in similar situations. I sometimes use the static site generator Hugo (written in Go as well), that has this baked in for configuration: https://gohugo.io/getting-started/configuration/#configure-with-environment-variables -- you can give configuration via a YAML or TOML file and overwrite it via CLI parameters or environment variables.)
So thank you for looking into this!
Kind regards
Lukas

@ddonchev : We do have a similar requirement. Any updates on the feature?


Make prime growth policy arrays class members

Namespace-scope const-qualified variables have internal linkage, wasting both storage and CPU cache space due to each translation unit having its own copies of these variables.
For example, with unmodified code "ShowGlobals" utility from https://www.chromium.org/developers/windows-binary-sizes shows:
#Dups   DupSize   Size  Section Symbol name                PDB name
199     63680        0  0       tsl::sh::detail::PRIMES    xyz.pdb
199     63680        0  0       tsl::sh::detail::MOD_PRIME xyz.pdb

and the size of the final binary is 23'767'552 bytes.
With this change "ShowGlobals" doesn't show these arrays (prime growth policy is not used in that project so I don't know why compiler and/or linker didn't remove them) and the binary is reduced to 23'619'072 bytes.

GCC 8.3 and MSVC 2017 didn't have any complaints when I checked this change. I'll need some time to fix it for, at least, Clang and MSVC 2015.

Hi,
Thank you for the report. I effectively didn't pay attention to that and I'm surprised that the compiler doesn't optimize the array out when prime_growth_policy is used.
Another way to do it which works with GCC 4.8 is the following:
class prime_growth_policy {
public:
    explicit prime_growth_policy(std::size_t& min_bucket_count_in_out) {
        auto it_prime = std::lower_bound(primes().begin(),
                                         primes().end(), min_bucket_count_in_out);
        if(it_prime == primes().end()) {
            throw std::length_error("The hash table exceeds its maxmimum size.");
        }

        m_iprime = static_cast<unsigned int>(std::distance(primes().begin(), it_prime));
        if(min_bucket_count_in_out > 0) {
            min_bucket_count_in_out = *it_prime;
        }
        else {
            min_bucket_count_in_out = 0;
        }
    }

    std::size_t bucket_for_hash(std::size_t hash) const noexcept {
        return mod_prime()[m_iprime](hash);
    }

    std::size_t next_bucket_count() const {
        if(m_iprime + 1 >= primes().size()) {
            throw std::length_error("The hash table exceeds its maxmimum size.");
        }

        return primes()[m_iprime + 1];
    }

    std::size_t max_bucket_count() const {
        return primes().back();
    }

    void clear() noexcept {
        m_iprime = 0;
    }

private:
    static const std::array<std::size_t, 40>& primes() {
        static const std::array<std::size_t, 40> PRIMES = {{
            1ul, 5ul, 17ul, 29ul, 37ul, 53ul, 67ul, 79ul, 97ul, 131ul, 193ul, 257ul, 389ul, 521ul, 769ul, 1031ul,
            1543ul, 2053ul, 3079ul, 6151ul, 12289ul, 24593ul, 49157ul, 98317ul, 196613ul, 393241ul, 786433ul,
            1572869ul, 3145739ul, 6291469ul, 12582917ul, 25165843ul, 50331653ul, 100663319ul, 201326611ul,
            402653189ul, 805306457ul,<PHONE_NUMBER>ul,<PHONE_NUMBER>ul,<PHONE_NUMBER>ul
        }};

        static_assert(std::numeric_limits<decltype(m_iprime)>::max() >= PRIMES.size(),
                      "The type of m_iprime is not big enough.");

        return PRIMES;
    }

    static const std::array<std::size_t(*)(std::size_t), 40>& mod_prime() {
        // MOD_PRIME[iprime](hash) returns hash % PRIMES[iprime]. This table allows for faster modulo as the
        // compiler can optimize the modulo code better with a constant known at the compilation.
        static const std::array<std::size_t(*)(std::size_t), 40> MOD_PRIME = {{
            &mod<0>, &mod<1>, &mod<2>, &mod<3>, &mod<4>, &mod<5>, &mod<6>, &mod<7>, &mod<8>, &mod<9>, &mod<10>,
            &mod<11>, &mod<12>, &mod<13>, &mod<14>, &mod<15>, &mod<16>, &mod<17>, &mod<18>, &mod<19>, &mod<20>,
            &mod<21>, &mod<22>, &mod<23>, &mod<24>, &mod<25>, &mod<26>, &mod<27>, &mod<28>, &mod<29>, &mod<30>,
            &mod<31>, &mod<32>, &mod<33>, &mod<34>, &mod<35>, &mod<36>, &mod<37> , &mod<38>, &mod<39>
        }};

        return MOD_PRIME;
    }

    template<unsigned int IPrime>
    static std::size_t mod(std::size_t hash) {
        return hash % primes()[IPrime];
    }

private:
    unsigned int m_iprime;
};

Your solution is nice but I'm afraid returning references to local statics may hurt compile-time optimizations.

From the tests I did with Clang and GCC, there was no difference. I still have to check MSVC.

As a side note: after discovering this problem I got an idea that it would be nice to use the same growth policy file for all relevant containers. That would simplify both maintenance (made some improvements in one project — just copy the file to other repositories) and compiler's life in projects which use several containers (for example, sparse_map as a space-efficient long-term storage and robin_map for tasks where speed is more important).

Yes, I pondered previously some way to share part of the code of the different tsl libraries as they have some small portions of similar code. But in the end I want to keep each library in its own separate self-sufficient repository instead of putting everything in a common tsl repository. I could have a small common repository as sub-module of each lib but I prefer to keep it as it is for now. But yeah the current solution mean that the prime array is duplicated when using two libs and prime_growth_policy.


Process is not terminating on its own

What happened?
After finishing to setup code-pushup in my project i ran the command npx code-pushup.
The command was successful but it never exited the process.
To teminate the process i ad to run control C
What would you expect to happen?
At the end of the process i would expect it to trow an error or to exite with code 0.
What steps did you take?
Currently the bug it pressent inside this MR
https://github.com/push-based/user-flow/pull/262
This is present when running locally. I have not tested in the CI.
What operation system are you on?
Windows
Node version
18
Relevant log output
Categories

┌─────────────────────────────────────────────────────────────┬───────┬────────┐
│ Category                                                    │ Score │ Audits │
├─────────────────────────────────────────────────────────────┼───────┼────────┤
│ Bug prevention                                              │    94 │     35 │
├─────────────────────────────────────────────────────────────┼───────┼────────┤
│ Code style                                                  │    78 │     27 │
└─────────────────────────────────────────────────────────────┴───────┴────────┘

Made with ❤ by code-pushup.dev

Experienced the same problem, seems to be caused by Nx.
https://github.com/nrwl/nx/issues/21779
It looks fixed for 18.0.8+

Also seems to be reported as an issue on progress bar lib that we are using, we are planning to get rid of it soon and also merge an nx 19 update, so one of that should take care of it.


fdcan not building

Im trying to implement fdcan on my stm32h743 nucleo but i cannot get the fdcan crate to build nor be recognized by the compiler when imported like "use fdcan..."

Hi Francisco. As well as including stm32h7xx-hal in the Cargo.toml [dependencies] of your project, you also need to include fdcan = "0.2"


feat: compact strains

Adds the compact_strains feature (enabled by default) to mitigate out-of-memory issues caused by maliciously long maps like /b/3739922 and/or very low clock rates.
Note that these cases are still expensive to calculate due to the fact that the ratio map length / section length is very large, but at least they don't flood the RAM anymore. Until that is resolved too, clock rates will remain clamped.
Unfortunately, this feature comes with a decrease in performance, roughly 4% in release mode and 10% in debug mode.

Related to https://github.com/ppy/osu/pull/22596 with some key differences

Only consecutive zeros are stored compactly, allowing for list entries to have the same size as f64 since strains are known to always be non-negative so that "negative" values can be treated as a number for amount of consecutive zeros.
Since only +0.0 is treated in a special way, comparing values does not require the usual awkward float comparison (a - b).abs() < eps), but instead we can just check if the value is literally zero. Not only does this speed up the comparison, it also prevents any floating-point inaccuracies.
Although strains are stored compactly, they are not calculated with the same potential optimization in mind. If a map has a lot of consecutive zeros, they are still each processed individually instead of taking the shortcut "because strains cannot decay further than zero". The reason is that it seems relatively rare for strains to reach exactly zero since it requires a very long break. This means only few maps would benefit from the additional check but for most maps it would just introduce pointless branching.


Two copy publish URL buttons displayed

Required Information

[x] AEM Version - 6.5, including Service Packs
[x] ACS AEM Commons Version: 4.9.2 and 4.10
[x] Reproducible on Latest? yes

Expected Behavior
When I click on the copy publish URL button, only one copy button should be visible.
Actual Behavior
Two copy buttons are visible when I try to upgrade the acs commons version. This is due to the incorrect filter definition in acs-commons package.  It should have been "/apps/dam/gui/content/assets/metadataeditor/jcr:content/content/items/dialogpublishurl" but was found "/apps/dam/gui/content/assets/metadataeditor/jcr:content/content/items/col1/dialogpublishurl"
Steps to Reproduce
On author instance, try to upgrade the acs-commons package by updating the version number in the pom.xml. I tried to upgrade from 4.7.0 to 4.9.2
Links
Attaching the screenshot of the dialog:

Look fine to me using the original paths?

Can you verify that you dont have multiple nodes under the cqpublishdialog node? You should only have 2.


meteor-git: init at 0.22.0 (and add self to maintainer-list.nix)

Description of changes
https://github.com/stefanlogue/meteor
closes: https://github.com/NixOS/nixpkgs/issues/332795
Things done
add nixpkgs/pkgs/by-name/me/meteor-git/package.nix

Built on platform(s)

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

For non-Linux: Is sandboxing enabled in nix.conf? (See Nix manual)

[ ] sandbox = relaxed
[ ] sandbox = true

[ ] Tested, as applicable:

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

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

[ ] (Package updates) Added a release notes entry if the change is major or breaking
[ ] (Module updates) Added a release notes entry if the change is significant
[ ] (Module addition) Added a release notes entry if adding a new NixOS module

[ ] Fits CONTRIBUTING.md.

Add a :+1: reaction to pull requests you find important.

Result of nixpkgs-review pr 335282 run on aarch64-darwin 1

1 package built:

meteor-git

@afh I don't have any darwin machines. I have split up the commit that adds myself to the maintaier-list and adds the package into two commits

Result of nixpkgs-review pr 335282 run on aarch64-darwin 1

1 package built:

meteor-git

Thanks for making the changes, @nebunebu, much appreciated. Any particular reason you dislike or oppose the changes suggested to meta.description?

@afh I just overlooked it while making other changes.

Result of nixpkgs-review pr 335282 run on x86_64-linux 1

1 package built:

meteor-git

Thanks for addressing all the suggestions, @nebunebu, much appreciated and welcome to nixpkgs 🙂


Add a button to put the card at the end of the queue and review it later [FEAT]

Is your feature request related to a problem? Please describe.
When I encounter a difficult card and choose 'hard', the card will only appear tomorrow. I just want to skip it and review it later.
Describe the solution you'd like
I hope to add a button to put the card at the end of the queue temporarily and review it later
Additional context
Thanks for the plugin, it is really helped me a lot !!!

+1. Like the "Again" on ANKI. Again option allows us to review it in small interval without necessarily setting its progress to zero.

I've been thinking about this as well. I think the skip functionality isn't that hard to add. Somewhat related is #414 I think.


M3-4566 CMR Action menu refinements

Description
More action menu refinements from Jay:
• Updating styles for focus/hover states on the inline actions on details landing/details
• Removing 'View Backups' and 'Settings' actions from all Linode action menu variants
• Making 'Reboot' second action (after power on/off, before launch console for all variants)- when reviewing please note we only display 'Reboot' on powered on Linodes.
Type of Change

Non breaking change ('update')

Looks good. Related, there's still something strange with the "Reboot" icon in the Details Header. Seems like there's a quick animation after hover (when leaving the element). Reproduced on Chrome and FF.

I fixed that in https://github.com/linode/manager/pull/6912

Good find, @johnwcallahan ! I removed the transitions.


[BUG] System.IO.IOException: The file or directory is corrupted and unreadable. : 'Favorite.png'

Acknowledgement of preliminary instructions

[X] I have read the preliminary instructions, and I am certain that my problem has not already been addressed.
[X] I have thoroughly looked through the available Wiki articles and could not find a solution to my problem.
[X] I am using the latest version of Bloxstrap.
[ ] I did not answer truthfully to all the above checkboxes.

Bloxstrap Version
v2.8.1
What problem did you encounter?
Whenever i try to launch Roblox through Bloxstrap. Anytime it would try to load. It will crash and gives me the "System.IO.IOException: The file or directory is corrupted and unreadable. : 'Favorite.png'" Error and eventually close out. I tried to reinstall it. Worked once and then the issue comes back.
Screenshot of the Error:

Bloxstrap Log
2024-12-15T17:32:18Z [App::OnStartup] Starting Bloxstrap v2.8.1
2024-12-15T17:32:18Z [App::OnStartup] Compiled Wednesday, 30 October 2024 at 1:35:23 AM from commit 2be2f4d0d275e60eabf2f63ecbbe4e38b2aa0773 (tag/v2.8.1)
2024-12-15T17:32:18Z [App::OnStartup] Loaded from %UserProfile%\AppData\Local\Bloxstrap\Bloxstrap.exe
2024-12-15T17:32:18Z [App::OnStartup] Temp path is %UserProfile%\AppData\Local\Temp\Bloxstrap
2024-12-15T17:32:18Z [App::OnStartup] WindowsStartMenu path is %UserProfile%\AppData\Roaming\Microsoft\Windows\Start Menu\Programs
2024-12-15T17:32:18Z [Logger::Initialize] Initializing at %UserProfile%\AppData\Local\Bloxstrap\Logs\Bloxstrap_20241215T173218Z.log
2024-12-15T17:32:18Z [Logger::Initialize] Finished initializing!
2024-12-15T17:32:18Z [JsonManager<Settings>::Load] Loading from %UserProfile%\AppData\Local\Bloxstrap\Settings.json...
2024-12-15T17:32:18Z [JsonManager<Settings>::Load] Loaded successfully!
2024-12-15T17:32:18Z [JsonManager<State>::Load] Loading from %UserProfile%\AppData\Local\Bloxstrap\State.json...
2024-12-15T17:32:18Z [JsonManager<State>::Load] Loaded successfully!
2024-12-15T17:32:18Z [FastFlagManager::Load] Loading from %UserProfile%\AppData\Local\Bloxstrap\Modifications\ClientSettings\ClientAppSettings.json...
2024-12-15T17:32:18Z [FastFlagManager::Load] Loaded successfully!
2024-12-15T17:32:19Z [LaunchHandler::LaunchRoblox] Initializing bootstrapper
2024-12-15T17:32:19Z [LaunchHandler::LaunchRoblox] Initializing bootstrapper dialog
2024-12-15T17:32:19Z [Bootstrapper::Run] Running bootstrapper
2024-12-15T17:32:19Z [Bootstrapper::SetStatus] Connecting to Roblox...
2024-12-15T17:32:19Z [Deployment::TestConnection<https://setup.rbxcdn.com>] Connecting...
2024-12-15T17:32:19Z [HttpClientLoggingHandler::ProcessRequest] GET https://setup.rbxcdn.com/versionStudio
2024-12-15T17:32:20Z [Deployment::InitializeConnectivity] Testing connectivity...
2024-12-15T17:32:21Z [HttpClientLoggingHandler::ProcessResponse] 200 OK https://setup.rbxcdn.com/versionStudio
2024-12-15T17:32:21Z [Deployment::InitializeConnectivity] Got https://setup.rbxcdn.com as the optimal base URL
2024-12-15T17:32:21Z [Bootstrapper::Run] Connectivity check finished
2024-12-15T17:32:21Z [Bootstrapper::CheckForUpdates] Checking for updates...
2024-12-15T17:32:21Z [HttpClientLoggingHandler::ProcessRequest] GET https://api.github.com/repos/bloxstraplabs/bloxstrap/releases/latest
2024-12-15T17:32:21Z [HttpClientLoggingHandler::ProcessResponse] 200 OK https://api.github.com/repos/bloxstraplabs/bloxstrap/releases/latest
2024-12-15T17:32:22Z [Bootstrapper::CheckForUpdates] No updates found
2024-12-15T17:32:22Z [Bootstrapper::GetLatestVersionInfo] Got channel as production
2024-12-15T17:32:22Z [HttpClientLoggingHandler::ProcessRequest] GET https://bloxstraplabs.com/metrics/post?key=robloxChannel&value=zflag
2024-12-15T17:32:22Z [Deployment::GetInfo] Getting deploy info for channel zflag
2024-12-15T17:32:22Z [HttpClientLoggingHandler::ProcessRequest] GET https://clientsettingscdn.roblox.com/v2/client-version/WindowsPlayer/channel/zflag
2024-12-15T17:32:22Z [HttpClientLoggingHandler::ProcessResponse] 429 Too Many Requests https://bloxstraplabs.com/metrics/post?key=robloxChannel&value=zflag
2024-12-15T17:32:22Z [HttpClientLoggingHandler::ProcessResponse] 200 OK https://clientsettingscdn.roblox.com/v2/client-version/WindowsPlayer/channel/zflag
2024-12-15T17:32:22Z [Deployment::GetInfo] Getting deploy info for channel production
2024-12-15T17:32:22Z [HttpClientLoggingHandler::ProcessRequest] GET https://clientsettingscdn.roblox.com/v2/client-version/WindowsPlayer
2024-12-15T17:32:23Z [HttpClientLoggingHandler::ProcessResponse] 200 OK https://clientsettingscdn.roblox.com/v2/client-version/WindowsPlayer
2024-12-15T17:32:23Z [RegistryKeyEx::SetValueSafe] Writing 'zflag' to HKEY_CURRENT_USER\SOFTWARE\ROBLOX Corporation\Environments\RobloxPlayer\Channel\www.roblox.com
2024-12-15T17:32:23Z [ApplicationSettings::Fetch.PCClientBootstrapper.zflag] Fetching fast flags
2024-12-15T17:32:23Z [HttpClientLoggingHandler::ProcessRequest] GET https://clientsettingscdn.roblox.com/v2/settings/application/PCClientBootstrapper/bucket/zflag
2024-12-15T17:32:23Z [HttpClientLoggingHandler::ProcessResponse] 200 OK https://clientsettingscdn.roblox.com/v2/settings/application/PCClientBootstrapper/bucket/zflag
2024-12-15T17:32:23Z [HttpClientLoggingHandler::ProcessRequest] GET https://setup.rbxcdn.com/channel/common/version-b71c150c7c1f40de-rbxPkgManifest.txt
2024-12-15T17:32:23Z [HttpClientLoggingHandler::ProcessResponse] 200 OK https://setup.rbxcdn.com/channel/common/version-b71c150c7c1f40de-rbxPkgManifest.txt
2024-12-15T17:32:23Z [Bootstrapper::SetStatus] Installing {product}...
2024-12-15T17:32:23Z [LaunchHandler::LaunchRoblox] Bootstrapper task has finished
2024-12-15T17:32:23Z [LaunchHandler::LaunchRoblox] An exception occurred when running the bootstrapper
2024-12-15T17:32:23Z [App::FinalizeExceptionHandling] (0x80070570) System.IO.IOException: The file or directory is corrupted and unreadable. : 'Favorite.png'
   at System.IO.FileSystem.RemoveDirectoryRecursive(String fullPath, WIN32_FIND_DATA& findData, Boolean topLevel)
   at System.IO.FileSystem.RemoveDirectory(String fullPath, Boolean recursive)
   at Bloxstrap.Bootstrapper.UpgradeRoblox()
   at Bloxstrap.Bootstrapper.Run()
   at Bloxstrap.Bootstrapper.Run()
2024-12-15T17:32:23Z [HttpClientLoggingHandler::ProcessRequest] POST https://bloxstraplabs.com/metrics/post-exception

UPDATE as of December 16: I reinstalled the bootstrapper to the D drive and now it works. Another problem im facing is i'm unable to delete the install folder due to it being corrupted. But i will close this for now


Auto imports showing imports from ../../node_modules/@types

Manually moving https://github.com/Microsoft/vscode/issues/47005 to TS Repo to continue investigation
@techsin reports that they are seeing auto import suggestions for paths such as ../../../node_modules/@types. They are using TypeScript 2.7.2 and have a jsconfig.json with proper excludes configured.
Here's the TS Server log: tsserver.log

This is how node.js module lookup works, and there are workflows that rely on the current lookup behaviour. For example monorepos using tools like lerna will have their node modules at the monorepo root, which may be several directories up from the package.json of packages declaring the dependencies.

@yortus one should be able to disable lookup beyond root directory using jsconfig.json at least. Otherwise, autosuggest feature becomes a obstacle. It causes random auto imports, which you might not be aware of if you were working at line 80.

@techsin I just noticed that this had been labeled as a bug and wanted to point out that the current behaviour is not a bug. An option sounds appropriate.

there is an option in jsconfig / tsconfig that tells what to exclude, but despite telling it to exclude node_modules, it doesn't. Not one in project root, or above in user directory.
{
	"compilerOptions": {
		"target": "es6"
	},
	"exclude": [
		"node_modules", <--- no effect
		"../../node_modules", <--- no effect
		"**/node_modules/*" <--- no effect
	]
}

Ok, got it now. The issue title makes it look like the lookup behaviour is the problem, but it's actually the exclude behaviour. I should have read the original issue, sorry!

No, Problem. I just want it fixed, more than 10 times, I've pressed tab thinking it'd something I want and end up importing random stuff which doesn't go away with 1 ctrl+z. So you have to delete whatever it expanded to and delete the line at top that says import InksljdEjlkdjksl from "../../../AppData/Microsoft/Typescript/node_modules/Something/@types/something/something"
kind makes you never use autocomplete again.

@techsin I'm having trouble reproducing this with typescript@next. I get import completions for foo and not for ../node_modules/foo. Try doing npm install -g typescript@next and pointing vscode to it (instructions). If it's still happening, could you try to get a sample project that reproduces the error that you could share?

https://github.com/techsin/vscodeAutoCompleteBug

When I try that with typescript@next:

First, I need to add export {} to turn the file into an ES6 module, otherwise we won't add import completions due to #22951
Second, I'm getting the import from "babel-types/index" and not from ../node_modules/@types/babel-types/index. (The /index is because we default to using "classic" module resolution, you can add "moduleResolution": "node" to get it to just babel-types.

I'm not sure I understand what you're saying. But auto complete suggestion aren't broken just for import statements, they're broken for almost every combination of letters 3 to 5 you write.

What I'm saying is that I tried reproducing the error, but I don't get the behavior you're seeing. I see an auto import from "babel-types/index", not ../node_modules/@types/babel-types/index. Could you double-check that you're testing with typescript@next? Vscode should show you in the bottom-right, what language server version you're using.

In VS Code, auto import suggestions broke in a similar way for me. I use Yarn's workspaces feature in a monorepo, i.e. a single repo with many packages in a packages folder. All these packages have their own package.json but yarn places the combined imports together in a node_modules folder in the repo root. All of my packages are namespaced like @stardazed/. Yarn workspaces will put links to all the subpackages in the root node_modules folder.
With VSCode 1.24.1 (latest as of now) which has TypeScript 2.9.1 bundled I get proper auto import suggestions: i.e. auto-import X from "@stardazed/package", but I have TS 2.9.2 installed globally and I set the TSDK preference to use that then suddenly auto-imports starts suggesting both:auto-import X from "../../node_modules/@stardazed/package and auto-import X from "../../node_modules/@stardazed/package/src
I changed back to 2.9.1 but this is a reproducible regression in 2.9.2, simply by enabling or disabling the TSDK preference and reloading the VSC window I can break/repair auto-imports. Not sure if this is a separate issue from this one, please advise @mhegazy

@zenmumbler can you share more info? like a sample project

I'm seeing this as well.

@mike-north just to confirm, you do not see issues when you update to typescript@next. Is this accurate?

Correct, although I wish I didn't have to update to @next because there are other issues causing trouble now. A 2.9.x patch release would be nice

<EMAIL_ADDRESS>should be available with the fix tomorrow.

This started happening for me too - when I need to import something from the node_modules folder it includes the relative path to it import { MatSnackBar } from '../../../../../node_modules/@angular/material'; for instance...when it should be just '@angular/material'
I can't update to<EMAIL_ADDRESS>ot typescript@next because of this error:
ERROR in The Angular Compiler requires TypeScript >=2.7.2 and <2.8.0 but 3.0.0-dev.20180712 was found instead.
And ot top of that it used to wirk properly and I haven't changed anything in my projects and typescript versions...I think it started happening after Code update...

I am having exactly the same issues as @sapabg (seems like after VS Code update)

@MadKonst Could you create an issue containing a full sample project (probably just a tsconfig.json and a single file with a missing import)? And also test with typescript@next?

A possible solution for those dealing with relative node_modules imports.

Installing latest Typescript (at least 3.x!) locally and using it worked. Hopefully, VSCode itself updates it too.

@sapabg try if there's any other bugs. My colleague tried 2.8.x but found it has problems in importing other modules.

Thanks @Jrubzjeknf Solution on the link worked for me (Angular 6 project).

2.9.2 makes this problem. so, i downgrade version to 2.8.1,
therefore it works now ( it fixes problem, like ../../nodemodules )

I am having exactly the same issue and resolved by setting typescript verison to use workspace version instead of VS Code version. Thanks

what if you are not using typescript, and thus can't update typescript!

@techsin The latest version of vscode should already have this fixed. If it's still happening, try doing npm install -g typescript@next and setting up vscode to use the version from npm rather than its own; if there's still a problem please file a new issue.


Disable User petition with setting

Closes #227
Introduce new DISABLE_USER_PETITION setting
Redirect to dashboard users trying to create a user petition with a warning
Users still can use org petitions
Also some linting on the base settings

TODO :

[ ] Document new setting

there seem to be an unrelated error in the CI : PermissionError: [Errno 13] Permission denied: '/var/lib/jenkins/workspace/Pytition_PR-237/pytition/mediaroot/julia/logo.png'

About the CI issue,maybe try to rebase your branch on updated master and force push your branch?

About the doc, I can add it to the config file with description and here https://pytition.readthedocs.io/en/latest/configuration.html ? Is that it ?

About the doc, I can add it to the config file with description and here https://pytition.readthedocs.io/en/latest/configuration.html ? Is that it ?

Yes, in settings.py and in doc/configuration.rst

I don't understand why the CI is still red, but I guess that's not important, as long as when merged in master CI is green which I guess it will be!

I've just been thinking about something: we should also forbid users to transfer petitions to organizations while the DISABLE_USER_PETITION setting is set.
So that a previously created petition could not be transferred to circumvent the blocking.
That would be somewhere in there: https://github.com/pytition/Pytition/blob/master/pytition/petition/views.py#L1613

Will work on that tonight


Re-implement secrets controller as an event handler

The secrets controller that watched certificates has been re-implemented as an event handler in the EnvoyConfigRevision controller, which is the proper way to do it. The old secrets controller was code required for it to work with pre 1.0 operator-sdk releases.
/kind feature
/priority important-longterm
/assign

/ok-to-test

/lgtm

/approve


12-Factor data App. Taken from https://youtu.be/3Ut6Qdd2FHY talk

Please add relevant design notes for this project if/when in incubation.

Hi, @charyorde,
Sorry for the delayed response, but I just recently noticed that this PR existed. Thanks for the contribution, but we'll wait for a concrete proposal for volume management in Diego to be published to the community until we start to introduce concepts for it in the Diego Design Notes. We do expect this to occur in the next few months.
Thanks again,
Eric, CF Runtime Diego PM


merge voting from suda branch

Fix conflict from https://github.com/skolakoda/programerski-citati/pull/22

@suda86


Can I train a text encoder without pretrain embedding

Can I train a text encoder without a pretrained embedding?  I am wondering the usage of fast text

So if I want to train a text encoder,  I must train a word embedding first. Right?`


Add Llama-3-Instruct-8B-RainbowPO to AlpacaEval

Hi Yann,
We initiated this request to add Llama-3-Instruct-8B-RainbowPO (paper) to AlpacaEval leaderboard. Many thanks in advance!

Hi @YannDubs Could you please review this PR and let us know if there are any additional steps we need to take for approval? Thank you in advance!

Impressive, congrats 💯


Blackscholes error in parallel backend

With Python 3.5:
PYTHONHASHSEED=2 python blackscholes_pa.py
throws an error during parfor lowering in the parallel gufunc backend. sequential lowering works.

The problem looks like different behavior of fusion that leaves cndf2 inside the loop body but its definition outside the loop. So if the loop body contains:
    $0.30 = global(cndf2: <numba._DUFunc 'cndf2'>) ['$0.30']
    $expr_out_var.68 = call $0.30($arg_out_var.69, args=[Var($arg_out_var.69, blackscholes_pa.py (21))], func=$0.30, kws=(), vararg=None) ['$0.30', '$arg_out_var.69', '$expr_out_var.68']

Then there won't be any issue. But if the assignment of $0.30 gets pulled outside the parfor loop, then the produced kernel function will have it as one of the parameters, and eventually raises NotImplementedError("cannot convert %s to native value" % (typ,)) error.
The problem is spotted by comparing different outputs between:
NUMBA_DUMP_IR=1 NUMBA_DEBUG_ARRAY_OPT=1 NUMBA_DIFF_IR=1 python3 blackscholes_pa.py

and
PYTHONHASHSEED=2 NUMBA_DUMP_IR=1 NUMBA_DEBUG_ARRAY_OPT=1 NUMBA_DIFF_IR=1 python3 blackscholes_pa.py

Also with PYTHONHASHSEED=2 not all loops are fused, so it ends with several kernels.

BTW, I can only reproduce this problem in one of my setups (on psephi03). I cannot reproduce it in my other two setups (one with python 3.5.2, the other one with python 3.6.1)

Fixed.


404 Redirect to search page

When a URL tries to reach a post that does not resolve to a real page, such as
http://community.algolia.com/algoliasearch-jekyll-hyde/whatever
currently the visitor is shown the 404.html page.
But now that we have Search, how about having JavaScript take the "whatever" and put it in the search form, and automatically issue a search?

That's a very interesting idea.
I'd gladly take a PR for that if you're interested.

I will rework on the Hyde integration to make it compatible with the upcoming v1 of the plugin. I'll try to add your suggestion at that time.

Hey @wilsonmar, I'm archiving this repository as for the new version of the plugin, I've moved to using the default minima theme as an example instead of Hyde.
Your idea is still a very good idea, and I've opened an issue there to keep track of it. Ideally I'd like to work with theme authors to incorporate that.
If you actually did it in one of your projects, feel free to share the code.


css errors in bootstrap

.topbar input {
  background-color: #444;
  background-color: rgba(255, 255, 255, 0.3);
  font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
  font-size: normal;
  font-weight: 13px;

Should be:
font-size: 13px
font-weight: normal

This isn't an issue in 2.0-wip—we won't be resolving this in master.


Implement secp256k1 support as a standalone module

Per the discussion in https://github.com/libp2p/js-libp2p-crypto/pull/60
This basically just pulls the guts out of that PR into this module, so that it can be required into the keys object of the main libp2p-crypto module.  I'll push the change to that branch in a second :)

Can you copy over the support files from libp2p-crypto as well please?

.travis.yml
.npmignore
.gitignore
circle.yml

hmm, it looks like the travis VMs may be running out of entropy when generating keys?
(https://github.com/travis-ci/travis-ci/issues/1494)
I've seen on my local machine that the tests will occasionally hang until I wiggle the mouse...  Have you run into this before with other libp2p projects?


optimize: authentication ignore "/error" and update spring-boot to 2.7.x

[ ] I have registered the PR changes.

Ⅰ. Describe what this PR did
Ⅱ. Does this pull request fix one issue?

fixes #5324
Ⅲ. Why don't you add test cases (unit test/integration test)?
Ⅳ. Describe how to verify it
Ⅴ. Special notes for reviews

Codecov Report

:exclamation: No coverage uploaded for pull request base (2.x@3097fd6). Click here to learn what that means.
The diff coverage is n/a.

:mega: This organization is not using Codecov’s GitHub App Integration. We recommend you install it so Codecov can continue to function properly for your repositories. Learn more

@@          Coverage Diff           @@
##             2.x    #5336   +/-   ##
======================================
  Coverage       ?   48.81%
  Complexity     ?     4215
======================================
  Files          ?      764
  Lines          ?    26870
  Branches       ?     3351
======================================
  Hits           ?    13117
  Misses         ?    12378
  Partials       ?     1375


error: could not compile " error[E0046]: not all trait items implemented, missing: Pair"

After receiving the substrate from git master, adding the just following pallet(substrate-validator-set) to the node-templete and while building the error is as follows. Can you see why?
for the below error missing, i add type Pair = Type, but still same error after build.
In primitives/application-crypto/src/lib.rs for substrate master git, the part where there are no declarations actually seems to be the problem.
-Cargo.lock (substrate) : sp-application-crypto version = "2.0.0"
-> library confilct not found
-cargo version : cargo 1.46.0 (149022b1d 2020-07-17)
-rustc version : rustc 1.46.0 (04488afe3 2020-08-24)
-linux : centos 7
-https://github.com/gautamdhameja/substrate-validator-set (pallet)
-error
error[E0046]: not all trait items implemented, missing: Pair
--> /home/final/v1/primitives/application-crypto/src/lib.rs:240:3
|
240 | impl $crate::CryptoType for Public {}
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ missing Pair in implementation
|
::: /home/final/v1/primitives/application-crypto/src/ed25519.rs:29:5
|
29 | crate::app_crypto!(super, ED25519);
| ----------------------------------- in this macro invocation
|
= note: this error originates in a macro (in Nightly builds, run with -Z macro-backtrace for more info)
= help: implement the missing item: type Pair = Type;
error[E0046]: not all trait items implemented, missing: Pair
--> /home/final/v1/primitives/application-crypto/src/lib.rs:433:3
|
433 | impl $crate::CryptoType for Signature {}
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ missing Pair in implementation
|
::: /home/final/v1/primitives/application-crypto/src/ed25519.rs:29:5
|
29 | crate::app_crypto!(super, ED25519);
| ----------------------------------- in this macro invocation
|
= note: this error originates in a macro (in Nightly builds, run with -Z macro-backtrace for more info)
= help: implement the missing item: type Pair = Type;
error[E0046]: not all trait items implemented, missing: Pair
--> /home/final/v1/primitives/application-crypto/src/lib.rs:240:3
|
240 | impl $crate::CryptoType for Public {}
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ missing Pair in implementation
|
::: /home/final/v1/primitives/application-crypto/src/sr25519.rs:29:5
|
29 | crate::app_crypto!(super, SR25519);
| ----------------------------------- in this macro invocation
|
= note: this error originates in a macro (in Nightly builds, run with -Z macro-backtrace for more info)
= help: implement the missing item: type Pair = Type;
error[E0046]: not all trait items implemented, missing: Pair
--> /home/final/v1/primitives/application-crypto/src/lib.rs:433:3
|
433 | impl $crate::CryptoType for Signature {}
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ missing Pair in implementation
|
::: /home/final/v1/primitives/application-crypto/src/sr25519.rs:29:5
|
29 | crate::app_crypto!(super, SR25519);
| ----------------------------------- in this macro invocation
|
= note: this error originates in a macro (in Nightly builds, run with -Z macro-backtrace for more info)
= help: implement the missing item: type Pair = Type;
error[E0046]: not all trait items implemented, missing: Pair
--> /home/final/v1/primitives/application-crypto/src/lib.rs:240:3
|
240 | impl $crate::CryptoType for Public {}
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ missing Pair in implementation
|
::: /home/final/v1/primitives/application-crypto/src/ecdsa.rs:28:5
|
28 | crate::app_crypto!(super, ECDSA);
| --------------------------------- in this macro invocation
|
= note: this error originates in a macro (in Nightly builds, run with -Z macro-backtrace for more info)
= help: implement the missing item: type Pair = Type;
error[E0046]: not all trait items implemented, missing: Pair
--> /home/final/v1/primitives/application-crypto/src/lib.rs:433:3
|
433 | impl $crate::CryptoType for Signature {}
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ missing Pair in implementation
|
::: /home/final/v1/primitives/application-crypto/src/ecdsa.rs:28:5
|
28 | crate::app_crypto!(super, ECDSA);
| --------------------------------- in this macro invocation
|
= note: this error originates in a macro (in Nightly builds, run with -Z macro-backtrace for more info)
= help: implement the missing item: type Pair = Type;
error: aborting due to 6 previous errors
For more information about this error, try rustc --explain E0046.
error: could not compile sp-application-crypto
To learn more, run the command again with --verbose.
warning: build failed, waiting for other jobs to finish...
error: build failed
warning: build failed, waiting for other jobs to finish...
error: build failed

Please stop opening the same issue twice. You closed the other one, so I will close this one as well.

Sorry. I just changed the place to upload the issue because the old place is not substrate channel

Please stop opening the same issue twice. You closed the other one, so I will close this one as well.

Sorry. I just changed the place to upload the issue because the old place is not substrate channel (maybe named subp...)

It was still Substrate and I moved it by reason.

anyway thanks!


add a cancel button to Offence History form

Should take user back to the Offence history list page.
Changes in this PR
Screenshots of UI changes
Before

After

Release checklist
As part of our continuous deployment strategy we must ensure that this work is
ready to be released at any point. Before merging to main we must first
confirm:
Pre merge checklist

[ ] Are any changes required to the e2e tests?
[ ] If you've added a new route, have you added a new
auditEvent? (see server/routes/apply.ts for examples)
[ ] Are there environment variables or other infrastructure configuration which needs to be included in this release?
[ ] Are there any data migrations required. Automatic or manual?
[ ] Does this rely on changes being deployed to the CAS API?

Post merge checklist
Once we've merged it will be auto-deployed to the dev environment.
Find the build-and-deploy job in CircleCI.
Should a release fail at any step, you as the author should now lead the work to
fix it as soon as possible.

https://trello.com/c/kBofxIPG/418-epic-offence-history-add-a-previous-offence


Rename ESP32 and add chip detection info

cc @MabezDev @SergioGasquez
I'm still mildly uncomfortable here but maybe fearing an invisible monster hurts more than it helps right now. Keeping the target's name aligned with the actual HAL feature name has some benefits that I want to build on.

It also turns out that we can read GPIO_STRAP_REG at any time to have an idea which variant we are working with. This is read after a system reset, which we can't trigger from probe-rs (the user may still press the reset button, and that will influence things).
If we can somehow specify the level at which TDI should idle, we can read the strapping register during connection to minimize the time period during which pressing the reset button is problematic.

Should be all right, I disabled esp32 on the smoke tester temporarily.


[Enhancement] add a UDF Add exmaple case

What type of PR is this：

[ ] BugFix
[ ] Feature
[x] Enhancement
[ ] Refactor
[ ] UT
[ ] Doc
[ ] Tool

Which issues of this PR fixes ：

Fixes #
Problem Summary(Required) ：

Checklist:

[ ] I have added test cases for my bug fix or my new feature
[ ] I have added user document for my new feature or new function

run starrocks_admit_test


Not able to use pysnmp

I am trying to run a script from examples but getting below errors -(examples/v1arch/asyncore/manager/ntfrcv/listen-on-ipv4-and-ipv6-interfaces.py)
  File "listen-on-ipv4-and-ipv6-interfaces.py", line 23, in <module>
    from pysnmp.carrier.asyncore.dispatch import AsyncoreDispatcher
ImportError: No module named pysnmp.carrier.asyncore.dispatch

Interestingly on interpreter, I am able to import them. But during runtime only this problem appearing.
Environment
Python 3.6.7
pysnmp==4.4.9

Perhaps pysnmp in not in your search path. Or may be you have multiple pythons on your system.
May be try running your script with -v (python -v <script.py>) to see what modules it actually uses.

I was running with sudo to acquire 162 port under virtual-environment. Seems like this is the issue. Finally able to run by specifying absolute path to python interpreter.
Thanks for help.


Fix api-extractor issues due to missing typescript feature

API Extractor is missing support for the 'import() types' concept in Typescript. This is leading to it mis-representing the types and therefore grabbing everything after that Symbol including the docs.
The main workaround is to import the required type into the module so that Typescript doesn't need to use the 'import()' syntax.
I did this by doing an explicit import and then not using the Type at all.  Technically it'd be better if I just used it directly on the type of the Symbol but decided against that since these two would have a really large type definition.
The issue to track for getting this officially resolved, and consequentially allowing us to move up API Extractor versions, is here, https://github.com/microsoft/rushstack/pull/1916.  The PR has been open for a while but hopefully they'll get it resolved soon and we can have a true fix.
FWIW, I did also try to update our API Extractor version to the latest after figuring out the workaround and there were just too many places this popped up to make it feasible to do.  So we'll just want to wait until they add the support.

/azp run


External replacing global variable in browser

I'm using the externals option to specify the xmlhttprequest module as an external. This worked fine in version 2.2.1. I specify the external as follows:
  externals: {
    "xmlhttprequest": "XMLHttpRequest"
  }

In the .js file, I have the following code:
if (typeof window === 'undefined') {
  // Seems like we are using Node.js
  var XMLHttpRequest = require('xmlhttprequest').XMLHttpRequest;
}

which worked perfectly fine.
What is the current behavior?
I decided to switch to the latest version, and now my project gives an error when used on the browser: XMLHttpRequest is not a constructor. So for some reason, it seems to override the global XMLHttpRequest variable.
Which is weird, because if I call new XMLHttpRequest() in the console, it works fine.
If the current behavior is a bug, please provide the steps to reproduce.
Don't really have an easy way for this.
What is the expected behavior?
When using Node.js, the global variable XMLHttpRequest should be replaced by the external module. In the browser, the global variable should remain unaffected.
Please mention other relevant information such as the browser version, Node.js version, webpack version and Operating System.
webpack: 3.0.0
browser: Chrome
OS: Windows 10
Node.js: 8.1.3

See my repository here. If you replace the variable name NodeXMLHttprequest with XMLHttpRequest and then compile it with webpack, it won't work anymore for the browser.


SMS backup not backing up 2-23-2016

SMS backup+ not auto backing up.  It's been working fine for months and all of a sudden it stopped.  It will back up manually but not auto.  I have it set for every 30 minutes and every minute on incoming.  I have a Samsung Galaxy S5 Active.  Any assistance you can offer is greatly appreciated.
Thanks,
Melissa

I'm having the same issue since I switched to the Galaxy S6.  Does anyone know how to fix this?  Maybe a specific beta update?

This is probably related: #608

Every so often it stops backing up. Manual backup won't work. The app thinks it has backed up to a date in the future.
I've had to reinstall the app several times in the past couple years in order to get backups started again. Since there's no way of backing up only the missing days, the app backs up everything, causing duplicates each time.
I've reported this problem via email and got no reply. Today I found this forum, I hope this will initiate a bug fix.
Samsung Note 3

FWIW I am having the same issue (automatic backup stopped working but manual works fine)   on an LG G5
Android 7.0
Kernel 3.18.31
Build NRD90U
SW version V20b-ISR-X.X

Closing as duplicate (#572)


Activate disabled tests in nonce suite when HIP-844 images are updated in local node

Problem
Some tests need HIP-844 in order to succeed.
Solution
Update local node dev dependency with the latest which includes HIP-844.
Alternatives
No response

Resolved by https://github.com/hashgraph/hedera-smart-contracts/pull/676


Provide API to disable Status bar height in Navigationbar

Version
Tell us which versions you are using:

react-native-router-flux v4.0.0-beta.31 (v3 is not supported)
react-native v0.55.3

Expected behaviour
We should be able to optionally remove the status bar height from navigation header.
Actual behaviour
Navigation bar height always includes status bar height.
This is an issue in portrait mode if we wrap the Router with a react-native SafeAreaView.
Since the SafeAreaView comes with its own insets for the Status bar in portrait mode, this height getting added to the Navigation bar is extra and looks incorrect.
Adding the Safe area view inside the Router does not work correctly as the SafeAreaView does not then provide the correct insets
SafeAreaView
Router
/SafeAreaView

Steps to reproduce
For non-obvious bugs, please fork this component, modify Example project to reproduce your issue and include link here.

Wrap your Router inside a SafeAreaView from react-native

Why was this issue closed? I have been digging through the documentation and code for quite a while now and trying various things, but I haven't found a way to pass the forceInset param through the Scene, other than perhaps constructing my own navBar.

I finally realized you can just pass headerForceInset directly as a property of the Scene:
<Scene
    key="foo"
    component={Foo}
    hideNavBar={false}
    title="Foo"
    headerForceInset={{ top: 'never' }}
    navigationBarStyle={{ backgroundColor: '#ffffff' }}
/>


HyperV: network disruption after creating internal switch

Building the desktop image for the first time on the WowRacks build machine failed right after creating the internal HyperV network.  Powershell reported that it couldn't do a DNS lookup for the current workstation.
I remember that we see a network disruption warning when we create this switch manually via the HyperV Manager.  I suspect that we'll need to wait for the network to become ready after creating the switch to resolve this.
This is actually a pretty bad bug and may impact many users.  We haven't really seen this ourselves because our workstations have had the internal switch created for months, if not years, and we also don't setup neon desktop very often.  I did test desktop installation several times on the 16GB laptop without trouble a couple months ago without trouble though.  Perhaps the network was disrupted for longer on the build machine for some reason.

FIXED: I added a 5 second delay after creating the internal switch and then added a 30 second retry policy around a ListVMs() call.


Update documentation and scripts to utilize plugin directives instead of deprecated bundle

Fixes #658. Vundle has deprecated use of BundleInstall, BundleClean, etc. Added +qa to all documentation references to quit all vim windows after installing/cleaning bundles.

 You should sign our Contributor License Agreement in order to get your pull request merged.


Add Hugging Face demo shield

As suggested in https://github.com/mindee/doctr/pull/492#issuecomment-929182770

Hi @osanseviero :wave:
Following up on #543, the demo deployed on HF Spaces is failing and should be updated :sweat_smile:
Is there a way to add me as a contributor so that you don't have to do those updates yourself on HF Spaces?
Best!


is possible to git clone an earlier version

Hello alphafold team,
I want to reproduce a test in the initial version. how do I git clone v2.0.0?
I tried the command
git clone https://github.com/deepmind/alphafold.git --branch v2.0.0
--- this does git clone anything
I saw tar.gz source in v2.0.0, should I use this?
Thank you for your advise.
Rong

Could you try:
git clone -b 'v2.0.1' --single-branch --depth 1 https://github.com/deepmind/alphafold.git

If this doesn't work, downloading the tar.gz should work too.
I also strongly recommend using v2.0.1 instead of v2.0.0 since it has a lot of fixed bugs.

@Augustin-Zidek : Thank you! 👍
Your git clone command works for me.


Better/incorrect example in the user guide for "Extending Native Libraries"

In http://codeigniter.com/user_guide/general/creating_libraries.html
You gave an example of extending the CI_Email class with the following:
class MY_Email extends CI_Email {
public function __construct()
{
    parent::__construct();
}

}
It would be a lot better if you can also include the config array in the example as extending most native libraries involves passing in parameters for the construction class. In the case of CI_Email, the configurations from email.php config file is not loaded unless you do the following instead.
class MY_Email extends CI_Email
{
public function __construct($config = array())
{
    parent::__construct($config);
}

}

https://github.com/EllisLab/CodeIgniter/commit/1d571971be8be78a92d31aad27dda4009770043f


ID type cannot be selected

According to #35 omitting $id-attributes can be done by select ID-type None in the LHS-menu.
I'm unable to find this option in the menu. In which section is it located?

Click the hamburger menu in the top left to open the side nav. From there you should find options for URI fragment:


Unable to Change Settings or Add New Command Bindings

Until a few weeks ago I was madly in love with this plugin. I still love it, but the romance took a nasty spill when I tried to change the settings and add a new command and associated hotkey for it about 12 days ago.
Currently, even after reinstalling the plugin, deleting the plugin data or adding the plugin to a completely clean install of Obsidian and a completely new vault with no modified settings, when you go to Doubleshift's plugin settings page, the hotkey for the Command Palette command (the default, single command the plugin ships with, which is bound to double SHIFT, of course) doesn't show, and is unable to be changed. Where the hotkey should be shown, there is only a small blank rectangle, which does nothing upon clicking it.
It is also not possible to create any new bindings or modify any that already exist. The original command still works when pressing double SHIFT to open the command palette, but without the additional functionality the value of the plugin is limited. I've tried this on several different PC's running Windows with no change in the issue.
I know the live preview might not have even been out when Doubleshift was released last (in April), but even when live preview mode is disabled it doesn't work. Anyway, thanks in advance for any fix. If I were more familiar with TypeScript/JavaScript and the Obsidian API I'd be happy to look into it myself, and I did, indeed, fork the repository to have a look, but I'm having little luck in fixing it. It's an amazingly awesome plugin and I'm hoping it will be fixed if I am unable to do so myself.
There really isn't anything to add, but if any additional information is needed, please ask and I'll provide it. Have a good day! 👋

Hi, thank you for the kind words. Weirdly I am not having any of the problems described on any of my systems. Could you tell me which version of obsidian you are using? (Settings/About)

My apologies, Qwyntex. After extensive testing with different vaults, plugins and settings, I realized I was wrong about several things. It turns out that, at least in my experience:

It works completely fine in new vaults.
It works completely fine with other settings changed, as well as with other plugins enabled.

The only case where I have trouble is when I install the plugin Better Command Palette. It doesn't matter if the alternative command palette is installed or even enabled. Your plugin still works fine. The only problem is when the core plugin "Command Palette" is disabled. Doubleshift even works fine when both command palette plugins are enabled and in use, but if only the community plugin ("Better Command Palette") is enabled, or if—for any reason—the core plugin Command Palette is disabled, Doubleshift will present the strange behavior.
I don't know if you feel like trying it out to reproduce the "bug", because technically it's not your bug; it's a bug dealing with either the core plugin Command Palette or the community plugin Better Command Palette. My personal feeling is that it is the fault of the core plugin, because the issue only occurs when the former isn't enabled, whether the latter is enabled or not. Maybe it's not even possible to fix due to the way the API works, or maybe the core plugin needs to be fixed? I'm not familiar enough with JavaScript to do so or I'd look into it more.
But I would like to bring it to your attention, if only so you don't think that your code has an unresolved issue. I apologize once again for being so quick to blame your plugin, as well as for mis-reporting the conditions in which the issue can be reproduced. I hope you have a great day, and that I didn't cost you any worries. :wink:
Yours most sincerely,
-Jackphrost (aka frostbyte/Sean S.)

P.S. Forgive me for commenting yet again, but I forgot to let you know that I appreciate you getting back to me right away, especially after it took me a few days to get back to you. :smile:

No problem. I would rather have users that submit issues that turn out to be unnecessary than users that wont bring actual bugs to my attention and be annoyed about them. As for the weird behavior if a plugin isn't enabled i will fix that.
thank you.

You are awesome. Thank you, Qwyntex. I'm glad to know there are devs like you! :smile: 👍


UIKit calls on a background thread?

Hi,
It seems that your code calls some methods from UIKit and put on a background thread?
The problem is that with iOS7 you get a black screen when using the camera function if something is in a background thread from UIKit. If I use the search photo function and later use the take photo it will come with a black screen and it takes at least 30 seconds when the camera preview comes back.
See simular problem here: http://stackoverflow.com/questions/16746839/idevice-camera-shows-black-instead-of-preview
Is there a way to remove these from the background thread?
Thanks!

From my understanding, [DZNPhotoEditorViewContoller editImage] is accessed from a BG thread on the [DZNPhotoEditorViewController acceptEdition] method, since the code creates new background queue and invokes editImage inside the BG dispatch block.
Since the editImage accesses several properties of views this triggers the UI Thread checker of iOS.
Maybe this is where the problem lies.
=================================================================
Main Thread Checker: UI API called on a background thread: -[UIView bounds]
PID: 5925, TID: 12886857, Thread name: (none), Queue name: com.apple.root.background-qos, QoS: 9
Backtrace:
4   DZNPhotoPickerController            0x000000010fa1fb00 -[DZNPhotoEditorViewController cropSize] + 208
5   DZNPhotoPickerController            0x000000010fa1fdaa -[DZNPhotoEditorViewController guideRect] + 250
6   DZNPhotoPickerController            0x000000010fa212c5 -[DZNPhotoEditorViewController editedImage] + 245
7   DZNPhotoPickerController            0x000000010fa22d96 __46-[DZNPhotoEditorViewController acceptEdition:]_block_invoke + 54
8   libdispatch.dylib                   0x000000011514c595 _dispatch_call_block_and_release + 12
9   libdispatch.dylib                   0x000000011514d602 _dispatch_client_callout + 8
10  libdispatch.dylib                   0x000000011515e1eb _dispatch_root_queue_drain + 832
11  libdispatch.dylib                   0x000000011515e9af _dispatch_worker_thread2 + 130
12  libsystem_pthread.dylib             0x000000011553c70e _pthread_wqthread + 619
13  libsystem_pthread.dylib             0x000000011553c435 start_wqthread + 13
2018-12-01 12:34:27.442665-0500 Covey QA[5925:12886857] [reports] Main Thread Checker: UI API called on a background thread: -[UIView bounds]
PID: 5925, TID: 12886857, Thread name: (none), Queue name: com.apple.root.background-qos, QoS: 9
Backtrace:
4   DZNPhotoPickerController            0x000000010fa1fb00 -[DZNPhotoEditorViewController cropSize] + 208
5   DZNPhotoPickerController            0x000000010fa1fdaa -[DZNPhotoEditorViewController guideRect] + 250
6   DZNPhotoPickerController            0x000000010fa212c5 -[DZNPhotoEditorViewController editedImage] + 245
7   DZNPhotoPickerController            0x000000010fa22d96 __46-[DZNPhotoEditorViewController acceptEdition:]_block_invoke + 54
8   libdispatch.dylib                   0x000000011514c595 _dispatch_call_block_and_release + 12
9   libdispatch.dylib                   0x000000011514d602 _dispatch_client_callout + 8
10  libdispatch.dylib                   0x000000011515e1eb _dispatch_root_queue_drain + 832
11  libdispatch.dylib                   0x000000011515e9af _dispatch_worker_thread2 + 130
12  libsystem_pthread.dylib             0x000000011553c70e _pthread_wqthread + 619
13  libsystem_pthread.dylib             0x000000011553c435 start_wqthread + 13


🔨(bin) stop using env variable to activate sites

Purpose
The developper experience was not good as we had to run bin/activate and then export a variable. Many users forgot to export the variable expecting the activate script to do what it claims to do...
Proposal
We now use a .site file to record the active site as it is done in terraform. This allows a much better DX as running bin/activate now effectively activates the site.

Is there no way to export an environment variable through a shell script ? Because currently there is one remaining drawback. We have to export RICHIE_SITE variable to be able to run docker compose commands not managed into Makefile.

Your other comment about moving the .site file to env.d gave me an idea. This new proposal makes use of the .env file to which docker-compose defaults to load environment variables. This way both the docker-compose and the Makefile work when a site is activated.
I also improved the scripts a bit to automatically activate the site when there is only one.
WDYT?


Novalize with TenancyForLaravel

Hi,
I'm trying to use your lib but my problem is that I use Tenancy for laravel and so
when I launch novalize, it's unable to detect if I exec the code into tenant or into landlord main database.
Can you help to fix it?
Regards

Hello, I'm sorry but I never saw this issue. I'll take a look tomorrow and see what I can do. 🙏


Add foster email flow

Description
Right now, creating a foster results in the fosterer receiving the same email as if an adoption was created. This is because the email is sent via a callback in the Match model and fosters and adoptions are both types of Matches.
We want to send a different email to fosterers when they have been assigned a foster pet.
It would also be good to remove the callback first during this task and move the sending of the email to the controller. This email in the callback muddles up the testing environment.
Acceptance criteria

[ ] Remove   after_create_commit :send_reminder from Match
[ ] Change MatchMailer to AdoptionMailer
[ ] Rename related view files for new mailer name
[ ] Send AdoptionMailer method in Organizations::Staff::MatchesController#create
[ ] Create FosterMailer
[ ] Send FosterMailer method in Organizations::Staff::ManageFostersController#create
[ ] Create new FosterMailer email views

The content of the foster email can look something like this:

We are thrilled to inform you that you have been assigned a new foster pet! Thank you for opening your heart and home to <%= @pet.name %>. Your dedication and support make a significant difference in the lives of the animals we care for.

Could you please assign this to me , I would like to try this.

@Naraveni I got you


Feedback hub like Notepad

Notepad has a feedback hub where you can search and +1 existing feedback requests.
You can also see help pages on "what Microsoft doees with this feedback".

I'd love to see this feature in VSC (Basically a custom vscode-github-issues-prs view).
Maybe my feedback requests would get more traction? (Like #124901)

possible issue reporter improvement

I think this is a neat idea. That screenshot looks nice! I've added it to the backlog candidates. Let's see how the community feels.

why not use github discussions for that ?

I don't believe github discussions solves the issue - in fact, there's less filtering options

@YoussefBouzekri I think theres been a misunderstanding - I'm not suggesting a separate program, although the screenshot example/state-of-the-art is a separate program for reasons I don't comprehend


Import / Export Profile sorting of columns in mapping not working properly

Sorting (arrow up / arrow down) is not working properly - Each field can only be moved one position up or one position down, not more.

[public] Automated response: This issue is linked to the internal issue https://shopware.atlassian.net/browse/NEXT-37762.
[created from NEXT-37762, comment 487809]

[public]The issue is already covered by the following ticket:https://github.com/shopware/shopware/issues/4448
[created from NEXT-37762, comment 488115]