Compilation problems on windows 11

hello! i am using a x86 machine and running windows 11 try to compile and install triton on it. so i follow the official instruction
git clone https://github.com/openai/triton.git;
cd triton/python;
pip install cmake; # build-time dependency
pip install -e .

but i got an error
  Building editable for triton (pyproject.toml) ... error
  error: subprocess-exited-with-error

  × Building editable for triton (pyproject.toml) did not run successfully.
  │ exit code: 1
  ╰─> [133 lines of output]

the full log is
PS C:\Users\admin\Desktop\triton\python> pip install -e .
Obtaining file:///C:/Users/admin/Desktop/triton/python
  Installing build dependencies ... done
  Checking if build backend supports build_editable ... done
  Getting requirements to build editable ... done
  Preparing editable metadata (pyproject.toml) ... done
Requirement already satisfied: filelock in c:\users\admin\appdata\local\programs\python\python310\lib\site-packages (from triton==2.1.0) (3.12.0)
Building wheels for collected packages: triton
  Building editable for triton (pyproject.toml) ... error
  error: subprocess-exited-with-error

  × Building editable for triton (pyproject.toml) did not run successfully.
  │ exit code: 1
  ╰─> [133 lines of output]
      running editable_wheel
      creating C:\Users\admin\AppData\Local\Temp\pip-wheel-ycx1h9gz\.tmp-_pb7yrz3\triton.egg-info
      writing C:\Users\admin\AppData\Local\Temp\pip-wheel-ycx1h9gz\.tmp-_pb7yrz3\triton.egg-info\PKG-INFO
      writing dependency_links to C:\Users\admin\AppData\Local\Temp\pip-wheel-ycx1h9gz\.tmp-_pb7yrz3\triton.egg-info\dependency_links.txt
      writing requirements to C:\Users\admin\AppData\Local\Temp\pip-wheel-ycx1h9gz\.tmp-_pb7yrz3\triton.egg-info\requires.txt
      writing top-level names to C:\Users\admin\AppData\Local\Temp\pip-wheel-ycx1h9gz\.tmp-_pb7yrz3\triton.egg-info\top_level.txt
      writing manifest file 'C:\Users\admin\AppData\Local\Temp\pip-wheel-ycx1h9gz\.tmp-_pb7yrz3\triton.egg-info\SOURCES.txt'
      reading manifest file 'C:\Users\admin\AppData\Local\Temp\pip-wheel-ycx1h9gz\.tmp-_pb7yrz3\triton.egg-info\SOURCES.txt'
      reading manifest template 'MANIFEST.in'
      warning: manifest_maker: MANIFEST.in, line 3: path 'triton/runtime/backends/' cannot end with '/'

      writing manifest file 'C:\Users\admin\AppData\Local\Temp\pip-wheel-ycx1h9gz\.tmp-_pb7yrz3\triton.egg-info\SOURCES.txt'
      creating 'C:\Users\admin\AppData\Local\Temp\pip-wheel-ycx1h9gz\.tmp-_pb7yrz3\triton-2.1.0.dist-info'
      C:\Users\admin\AppData\Local\Temp\pip-build-env-l7ll3ltg\overlay\Lib\site-packages\wheel\bdist_wheel.py:100: RuntimeWarning: Config variable 'Py_DEBUG' is unset, Python ABI tag may be incorrect
        if get_flag("Py_DEBUG", hasattr(sys, "gettotalrefcount"), warn=(impl == "cp")):
      creating C:\Users\admin\AppData\Local\Temp\pip-wheel-ycx1h9gz\.tmp-_pb7yrz3\triton-2.1.0.dist-info\WHEEL
      running build_py
      running build_ext
      Traceback (most recent call last):
        File "C:\Users\admin\AppData\Local\Temp\pip-build-env-l7ll3ltg\overlay\Lib\site-packages\setuptools\command\editable_wheel.py", line 155, in run
          self._create_wheel_file(bdist_wheel)
        File "C:\Users\admin\AppData\Local\Temp\pip-build-env-l7ll3ltg\overlay\Lib\site-packages\setuptools\command\editable_wheel.py", line 344, in _create_wheel_file
          files, mapping = self._run_build_commands(dist_name, unpacked, lib, tmp)
        File "C:\Users\admin\AppData\Local\Temp\pip-build-env-l7ll3ltg\overlay\Lib\site-packages\setuptools\command\editable_wheel.py", line 267, in _run_build_commands
          self._run_build_subcommands()
        File "C:\Users\admin\AppData\Local\Temp\pip-build-env-l7ll3ltg\overlay\Lib\site-packages\setuptools\command\editable_wheel.py", line 294, in _run_build_subcommands
          self.run_command(name)
        File "C:\Users\admin\AppData\Local\Temp\pip-build-env-l7ll3ltg\overlay\Lib\site-packages\setuptools\_distutils\cmd.py", line 318, in run_command
          self.distribution.run_command(command)
        File "C:\Users\admin\AppData\Local\Temp\pip-build-env-l7ll3ltg\overlay\Lib\site-packages\setuptools\dist.py", line 1243, in run_command
          super().run_command(command)
        File "C:\Users\admin\AppData\Local\Temp\pip-build-env-l7ll3ltg\overlay\Lib\site-packages\setuptools\_distutils\dist.py", line 988, in run_command
          cmd_obj.run()
        File "<string>", line 162, in run
        File "<string>", line 180, in build_extension
        File "<string>", line 93, in get_thirdparty_packages
        File "C:\Users\admin\AppData\Local\Programs\Python\Python310\lib\urllib\request.py", line 216, in urlopen
          return opener.open(url, data, timeout)
        File "C:\Users\admin\AppData\Local\Programs\Python\Python310\lib\urllib\request.py", line 503, in open
          req = Request(fullurl, data)
        File "C:\Users\admin\AppData\Local\Programs\Python\Python310\lib\urllib\request.py", line 322, in __init__
          self.full_url = url
        File "C:\Users\admin\AppData\Local\Programs\Python\Python310\lib\urllib\request.py", line 348, in full_url
          self._parse()
        File "C:\Users\admin\AppData\Local\Programs\Python\Python310\lib\urllib\request.py", line 377, in _parse
          raise ValueError("unknown url type: %r" % self.full_url)
      ValueError: unknown url type: ''
      C:\Users\admin\AppData\Local\Temp\pip-build-env-l7ll3ltg\overlay\Lib\site-packages\setuptools\_distutils\dist.py:988: _DebuggingTips: Problem in editable installation.
      !!

              ********************************************************************************
              An error happened while installing `triton` in editable mode.

              The following steps are recommended to help debug this problem:

              - Try to install the project normally, without using the editable mode.
                Does the error still persist?
                (If it does, try fixing the problem before attempting the editable mode).
              - If you are using binary extensions, make sure you have all OS-level
                dependencies installed (e.g. compilers, toolchains, binary libraries, ...).
              - Try the latest version of setuptools (maybe the error was already fixed).
              - If you (or your project dependencies) are using any setuptools extension
                or customization, make sure they support the editable mode.

              After following the steps above, if the problem still persists and
              you think this is related to how setuptools handles editable installations,
              please submit a reproducible example
              (see https://stackoverflow.com/help/minimal-reproducible-example) to:

                  https://github.com/pypa/setuptools/issues

              See https://setuptools.pypa.io/en/latest/userguide/development_mode.html for details.
              ********************************************************************************

      !!
        cmd_obj.run()
      downloading and extracting  ...
      Traceback (most recent call last):
        File "C:\Users\admin\AppData\Local\Programs\Python\Python310\lib\site-packages\pip\_vendor\pyproject_hooks\_in_process\_in_process.py", line 353, in <module>
          main()
        File "C:\Users\admin\AppData\Local\Programs\Python\Python310\lib\site-packages\pip\_vendor\pyproject_hooks\_in_process\_in_process.py", line 335, in main
          json_out['return_val'] = hook(**hook_input['kwargs'])
        File "C:\Users\admin\AppData\Local\Programs\Python\Python310\lib\site-packages\pip\_vendor\pyproject_hooks\_in_process\_in_process.py", line 273, in build_editable
          return hook(wheel_directory, config_settings, metadata_directory)
        File "C:\Users\admin\AppData\Local\Temp\pip-build-env-l7ll3ltg\overlay\Lib\site-packages\setuptools\build_meta.py", line 445, in build_editable
          return self._build_with_temp_dir(
        File "C:\Users\admin\AppData\Local\Temp\pip-build-env-l7ll3ltg\overlay\Lib\site-packages\setuptools\build_meta.py", line 401, in _build_with_temp_dir
          self.run_setup()
        File "C:\Users\admin\AppData\Local\Temp\pip-build-env-l7ll3ltg\overlay\Lib\site-packages\setuptools\build_meta.py", line 487, in run_setup
          super(_BuildMetaLegacyBackend,
        File "C:\Users\admin\AppData\Local\Temp\pip-build-env-l7ll3ltg\overlay\Lib\site-packages\setuptools\build_meta.py", line 338, in run_setup
          exec(code, locals())
        File "<string>", line 231, in <module>
        File "C:\Users\admin\AppData\Local\Temp\pip-build-env-l7ll3ltg\overlay\Lib\site-packages\setuptools\__init__.py", line 107, in setup
          return distutils.core.setup(**attrs)
        File "C:\Users\admin\AppData\Local\Temp\pip-build-env-l7ll3ltg\overlay\Lib\site-packages\setuptools\_distutils\core.py", line 185, in setup
          return run_commands(dist)
        File "C:\Users\admin\AppData\Local\Temp\pip-build-env-l7ll3ltg\overlay\Lib\site-packages\setuptools\_distutils\core.py", line 201, in run_commands
          dist.run_commands()
        File "C:\Users\admin\AppData\Local\Temp\pip-build-env-l7ll3ltg\overlay\Lib\site-packages\setuptools\_distutils\dist.py", line 969, in run_commands
          self.run_command(cmd)
        File "C:\Users\admin\AppData\Local\Temp\pip-build-env-l7ll3ltg\overlay\Lib\site-packages\setuptools\dist.py", line 1243, in run_command
          super().run_command(command)
        File "C:\Users\admin\AppData\Local\Temp\pip-build-env-l7ll3ltg\overlay\Lib\site-packages\setuptools\_distutils\dist.py", line 988, in run_command
          cmd_obj.run()
        File "C:\Users\admin\AppData\Local\Temp\pip-build-env-l7ll3ltg\overlay\Lib\site-packages\setuptools\command\editable_wheel.py", line 155, in run
          self._create_wheel_file(bdist_wheel)
        File "C:\Users\admin\AppData\Local\Temp\pip-build-env-l7ll3ltg\overlay\Lib\site-packages\setuptools\command\editable_wheel.py", line 344, in _create_wheel_file
          files, mapping = self._run_build_commands(dist_name, unpacked, lib, tmp)
        File "C:\Users\admin\AppData\Local\Temp\pip-build-env-l7ll3ltg\overlay\Lib\site-packages\setuptools\command\editable_wheel.py", line 267, in _run_build_commands
          self._run_build_subcommands()
        File "C:\Users\admin\AppData\Local\Temp\pip-build-env-l7ll3ltg\overlay\Lib\site-packages\setuptools\command\editable_wheel.py", line 294, in _run_build_subcommands
          self.run_command(name)
        File "C:\Users\admin\AppData\Local\Temp\pip-build-env-l7ll3ltg\overlay\Lib\site-packages\setuptools\_distutils\cmd.py", line 318, in run_command
          self.distribution.run_command(command)
        File "C:\Users\admin\AppData\Local\Temp\pip-build-env-l7ll3ltg\overlay\Lib\site-packages\setuptools\dist.py", line 1243, in run_command
          super().run_command(command)
        File "C:\Users\admin\AppData\Local\Temp\pip-build-env-l7ll3ltg\overlay\Lib\site-packages\setuptools\_distutils\dist.py", line 988, in run_command
          cmd_obj.run()
        File "<string>", line 162, in run
        File "<string>", line 180, in build_extension
        File "<string>", line 93, in get_thirdparty_packages
        File "C:\Users\admin\AppData\Local\Programs\Python\Python310\lib\urllib\request.py", line 216, in urlopen
          return opener.open(url, data, timeout)
        File "C:\Users\admin\AppData\Local\Programs\Python\Python310\lib\urllib\request.py", line 503, in open
          req = Request(fullurl, data)
        File "C:\Users\admin\AppData\Local\Programs\Python\Python310\lib\urllib\request.py", line 322, in __init__
          self.full_url = url
        File "C:\Users\admin\AppData\Local\Programs\Python\Python310\lib\urllib\request.py", line 348, in full_url
          self._parse()
        File "C:\Users\admin\AppData\Local\Programs\Python\Python310\lib\urllib\request.py", line 377, in _parse
          raise ValueError("unknown url type: %r" % self.full_url)
      ValueError: unknown url type: ''
      [end of output]

  note: This error originates from a subprocess, and is likely not a problem with pip.
  ERROR: Failed building editable for triton
Failed to build triton
ERROR: Could not build wheels for triton, which is required to install pyproject.toml-based projects

is any way to install triton on windows 11? thank you!

I also have the same problem

I'm also having the same issue on Win11 x64.
Triton-install-Log.txt

I also have the same problem

https://github.com/openai/triton#compatibility
Only supports Linux. (Or WSL2, but not guaranteed)

https://github.com/openai/triton#compatibility Only supports Linux. (Or WSL2, but not guaranteed)

But someone did make it work:
pip install https://huggingface.co/r4ziel/xformers_pre_built/resolve/main/triton-2.0.0-cp310-cp310-win_amd64.whl

https://github.com/openai/triton#compatibility Only supports Linux. (Or WSL2, but not guaranteed)

But someone did make it work:
pip install https://huggingface.co/r4ziel/xformers_pre_built/resolve/main/triton-2.0.0-cp310-cp310-win_amd64.whl

Thank you very much. I tried it and it only encapsulated a Whl file without modifying the Linux path inside. The error still exists

https://github.com/openai/triton#compatibility Only supports Linux. (Or WSL2, but not guaranteed)

But someone did make it work:
pip install https://huggingface.co/r4ziel/xformers_pre_built/resolve/main/triton-2.0.0-cp310-cp310-win_amd64.whl

It seems to have worked on my win 11 install!

https://github.com/openai/triton#compatibility Only supports Linux. (Or WSL2, but not guaranteed)

But someone did make it work:
pip install https://huggingface.co/r4ziel/xformers_pre_built/resolve/main/triton-2.0.0-cp310-cp310-win_amd64.whl

Thanks, you save my time, Triton is now installed in Windows 11

But someone did make it work:
pip install https://huggingface.co/r4ziel/xformers_pre_built/resolve/main/triton-2.0.0-cp310-cp310-win_amd64.whl

I get this error
ERROR: triton-2.0.0-cp310-cp310-win_amd64.whl is not a supported wheel on this platform.

https://github.com/openai/triton#compatibility僅支援Linux。 （或WSL2，但不保證）

但確實有人讓它成功了：
pip安裝https://huggingface.co/r4ziel/xformers_pre_built/resolve/main/triton-2.0.0-cp310-cp310-win_amd64.whl

謝謝，你節省了我的時間，Triton現在安裝在Windows 11中

I don't know how to modify it
def default_cache_dir():
return os.path.join(os.environ["HOMEPATH"], ".triton", "cache")
def libcuda_dirs():
locs = subprocess.check_output(["whereis", "libcuda.so"]).decode().strip().split()[1:]
return [os.path.dirname(loc) for loc in locs]
File "C:\Users\b9713\AppData\Roaming\Python\Python310\site-packages\triton\compiler.py", line 1155, in _build
cuda_lib_dirs = libcuda_dirs()
File "C:\Users\b9713\AppData\Roaming\Python\Python310\site-packages\triton\compiler.py", line 1134, in libcuda_dirs
locs = subprocess.check_output(["whereis", "libcuda.so"]).decode().strip().split()[1:]
File "G:\ProgramData\anaconda3\lib\subprocess.py", line 421, in check_output
return run(*popenargs, stdout=PIPE, timeout=timeout, check=True,
File "G:\ProgramData\anaconda3\lib\subprocess.py", line 503, in run
with Popen(*popenargs, **kwargs) as process:
File "G:\ProgramData\anaconda3\lib\subprocess.py", line 971, in init
self._execute_child(args, executable, preexec_fn, close_fds,
File "G:\ProgramData\anaconda3\lib\subprocess.py", line 1440, in _execute_child
hp, ht, pid, tid = _winapi.CreateProcess(executable, args,
FileNotFoundError: [WinError 2]

Please add Windows support already

see also https://github.com/openai/triton/pull/273

wsl.exe --set-default ubuntu


Backport patch for C++20 compatibility

This backports https://github.com/grpc/grpc/pull/36016 to latest gRPC available in BCR.

Hello @bazelbuild/bcr-maintainers, modules without existing maintainers (grpc) have been updated in this PR. Please review the changes.


Register

@JuliaRegistrator register()

Registration pull request created: JuliaRegistries/General/89625
After the above pull request is merged, it is recommended that a tag is created on this repository for the registered package version.
This will be done automatically if the Julia TagBot GitHub Action is installed, or can be done manually through the github interface, or via:
git tag -a v0.1.0 -m "<description of version>" 8cdea1d7091a0fadfb86b0ae8349cd61613d81f1
git push origin v0.1.0


Has someone successfully run the generate_vocab_file.py

How do I run this program from the pychar command line，how do I pass parameters（input_file、model、output_file）？

done！


info-tab DOI links

Main issue: https://github.com/dockstore/dockstore/issues/3673
Use Zenodo-badge DOI links on Info tab:

Copying the usage in the Versions tab:

Not sure about this LGTM alert... complaining that I should use href instead of ng-href, but doing so breaks the link

The LGTM thing is solved by using bound attributes, which is apparently the best way to do it now. It avoids the risk of a link being clickable with templating information in there. Gary mentioned that the *ngIf might put in enough of a guard to avoid this from happening. In either case, you can take a look at this PR that attempted to normalize our usage of templating in href links.
https://github.com/dockstore/dockstore-ui2/commit/4a30a57686c95406bb4153ce02bf09dcf5042bd3
https://github.com/dockstore/dockstore-ui2/pull/1034


Magic Resolution consistency/override

if I understand correctly from the video https://www.youtube.com/watch?v=f9E7lwUXfBM
for -1 use output resolution
for 0, use resolution from source if available, fallback on output resolution (resolution flows from left to right)
(else use the fixed width/height values)
Internally, this seemed to be handled through GetTextureSize, however, for instance inside CustomPixelShader,
the texture input is not connected to GetTextureSize which breaks expected behaviour (is this a bug? or a deliberate exception?)
I feel the concept outlined in the video is great, but in order for the user to have control over resolution in this intuitive way, all operators that internally uses an operator with a resolution should also expose a resolution input and handle it consistently.

The Blend operator causes odd behavior due to GetTextureSize being used in a way so that it only cares about one of the input images:

It's tempting to try to use context.RequestedResolution (like the new SetRequestedResolution), however I see 2 problems with this approach:

Result cache system would need to be more complex (dirty-flag per requested resolution or no cache support for updateActions when resolution is different)
I feel isolated resolution override is a different use case from what SetRequestedResolution offers, and offering the latter as a solution to the former would cause confusing behaviour (resolution override that transcends operator boundaries would have unintended consequences etc)

Thanks for the feedback. You're correct in that ideally all ops using [GetTextureSize] should publish this parameter to allow an override. In practice, I have to admit, I'm hesitant to implement everything that would be consistent because I'm afraid that that many operators would suffer from too many parameters. Also there is a small performance overhead by the added parameter.
On the other hand, I recently stumbled over the same issue. So I added [SetRequestedResultion] after our discussion on discord.


How to get total points scored by player

Hi,
First off, this library is incredible; I've been trying to do something with my league data for years but have always been blocked.
I'm trying to do an analysis to compare our draft to total points scored to figure out which have been the best/worst players drafted so far using a metric of points per dollar.
In order to do this I've constructed the draft by team to a dataframe and am pulling all active player data into another, however, the stats dict is rather difficult to work with. Is there a way anyone knows of to get total points scored by player?
Let me know; thank you!

`player_list = []
for i in range(len(team_rosters)):
roster = team_rosters[i]
for x in range(len(roster)):
# print(roster[x].name)
player_dict = {
'name': roster[x].name,
'playerId': roster[x].playerId,
'posRank': roster[x].posRank,
'eligibleSlots': roster[x].eligibleSlots,
'acquisitionType': roster[x].acquisitionType,
'proTeam': roster[x].proTeam,
'position': roster[x].position,
'injuryStatus': roster[x].injuryStatus,
'injured': roster[x].injured,
'stats': roster[x].player_stats
}
player_list.append(player_dict)
# print(roster[x].stats)
players_df = pd.DataFrame(player_list)
print(players_df['stats'][4])`

Thanks for creating an issue for this. Here is a discussion on the stats field and a little more break down of the dict #131. I think it would make sense to add two new fields for the Player class (total_points and projected_total_points) to make it a little easier to access.

Thank you! Definitely agree if those were added that would be pretty great.
On Tue, Sep 29, 2020 at 3:57 PM Christian Wendt<EMAIL_ADDRESS>wrote:

Thanks for creating an issue for this. Here is a discussion on the stats
field and a little more break down of the dict #131
https://github.com/cwendt94/espn-api/discussions/131. I think it would
make sense to add two new fields for the Player class (total_points and
projected_total_points) to make it a little easier to access.
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub
https://github.com/cwendt94/espn-api/issues/134#issuecomment-700951925,
or unsubscribe
https://github.com/notifications/unsubscribe-auth/AHCRQBK6VIGZBSPSWUQ77P3SII32FANCNFSM4R6F24AA
.


Bug: Clicking 'Save' on a variant doesn't save it

What?

The 'Save' Button in the edit variant modal calls the 'update' endpoint even for creation, but with id 'undefined'

Change the frontend by switching on the id, if it's undefined change the modal title and submit button to reflect the creation of a variant and the update of one

need help with this @olivermrbl with respect to the codebase walk through.

Closed #89


Workflow and markup for importing segmented audio

How should we denote segmentation of document reading audio files to import into the database to connect to annotated/translated paragraphs?

Ref: https://www.fon.hum.uva.nl/praat/manual/TextGrid_file_formats.html
My current thoughts are that while using Praat for audio, we would have to use their funky format for encoding audio segmentation. Not exactly ideal... A strong alternative should be able to use a more general markup format (or export to one) and allow easy alternation between listening and markup to keep the process somewhat streamlined.

This is captured on Jira/Trello and largely finished already


Separate input for ProductCreate and ProductUpdate

I want to merge this change because...
closes #2677
Screenshots

Pull Request Checklist

[x] Privileged views and APIs are guarded by proper permission checks.
[x] All visible strings are translated with proper context.
[x] All data-formatting is locale-aware (dates, numbers, and so on).
[x] Database queries are optimized and the number of queries is constant.
[x] The changes are tested.
[ ] The code is documented (docstrings, project documentation).

Thanks for your contribution @oldPadavan!


#778: re-add module name org.teavm.jso.apis

part 1/2 to fix #778

See #817

Can you please explain how you using this with JPMS?


[Snyk] Security upgrade org.springframework.boot:spring-boot-starter-web from 2.7.2 to 2.7.5

This PR was automatically created by Snyk using the credentials of a real user.Snyk has created this PR to fix one or more vulnerable packages in the `maven` dependencies of this project.
Changes included in this PR

Changes to the following files to upgrade the vulnerable dependencies to a fixed version:

pom.xml

Vulnerabilities that will be fixed
With an upgrade:

Severity
Priority Score (*)
Issue
Upgrade
Breaking Change
Exploit Maturity
Reachability

385/1000  Why? Recently disclosed, Has a fix available, CVSS 3.7
HTTP Request Smuggling SNYK-JAVA-ORGAPACHETOMCATEMBED-3097829
org.springframework.boot:spring-boot-starter-web:  2.7.2 -> 2.7.5
No
No Known Exploit
No Path Found

(*) Note that the real score may have changed since the PR was raised.
Check the changes in this PR to ensure they won't cause issues with your project.

Note: You are seeing this because you or someone else with access to this repository has authorized Snyk to open fix PRs.
For more information:
🧐 View latest project report
🛠 Adjust project settings
📚 Read more about Snyk's upgrade and patch logic

Learn how to fix vulnerabilities with free interactive lessons:
🦉 Learn about vulnerability in an interactive lesson of Snyk Learn.

Resolvido em 1a2094a


Time the i/o section

Would it be possible to time the i/o part of the code? Even better if we could time individually the writing of the properties catalogs, the parttype and the rest.

Yes, this should be possible I think. It would also alter probably the same portion of code touched by #27, I'll do this first though.

I should have given you some more context, sorry. It looks like compressing the .properties file saves a factor of 3 in disk space. We would like to see whether that does not come at a huge penalty in writing time. For instance, it could be that writing the compressed  id catalogue file is very slow for little benefit but the .properties is fast and compresses well.

Thanks @MatthieuSchaller for the extra context, it definitely helps in deciding how far to go with this. I'm doing something quite simple to begin with, and it sounds like it should be enough to do the comparisons you are describing.

How does this look as a first iteration? (output trimmed to final lines)
[...]
saving SO particle lists to lala.catalog_SOlist.0
Wrote lala.catalog_SOlist.0 in 3.104 [s]
Done SO masses for field objects in 20.098
Memory report, func = SortAccordingtoBindingEnergy--line--4719 task = 0 : Average = 1.746150 GB, Data = 1.640755 GB, Dirty = 0.000000 GB, Library = 0.000000 GB, Peak = 2.915272 GB, Resident = 1.612049 GB, Shared = 0.017147 GB, Size = 1.838261 GB, Text = 0.001534 GB,
Done
saving property data to lala.properties.0
Wrote lala.properties.0 in 51 [ms]
saving group catalog to lala.catalog_groups.0
saving particle catalog to lala.catalog_particles.0
Wrote catalogues in 2.816 [s]
saving hierarchy data to lala.catalog_groups.0
saving hierarchy data to lala.hierarchy.0
Wrote lala.hierarchy.0 in 3 [ms]
saving particle type info to lala.catalog_parttypes.0
Wrote particle type info in 202 [ms]
saving profiles lala.profiles.0
Wrote lala.profiles.0 in 10 [ms]
TIME::0 took 304.657 in all
0 : finished running VR

Yes, perfect. Exactly what I was hoping for.

I've pushed these changes to the io-timing branch, could you give them a try? If you're happy with how they look I'll merge to master.

saving property data to halos_0036.compressed.properties.0
Wrote halos_0036.compressed.properties.0 in 3.354 [s]
saving group catalog to halos_0036.compressed.catalog_groups.0
saving particle catalog to halos_0036.compressed.catalog_particles.0
Wrote catalogues in 1.198 [s]
saving hierarchy data to halos_0036.compressed.catalog_groups.0
saving hierarchy data to halos_0036.compressed.hierarchy.0
Wrote halos_0036.compressed.hierarchy.0 in 10 [ms]
saving particle type info to halos_0036.compressed.catalog_parttypes.0
Wrote particle type info in 762 [ms]
saving profiles halos_0036.compressed.profiles.0
Wrote halos_0036.compressed.profiles.0 in 307 [ms]
TIME::0 took 1391.607 in all

All looks good to me, thanks.

Merged to master now.


Payload don't generated with avro schema

Hi,
When I try to generate code with asyncapi specification with avro schema , payload class is not being generated.
I got classes references with names like AnonymousSchema5. Further, this class is not being generated
I have used 1.0.0-rc.7 generator version.
Attach the asyncapi specification used
asyncapi_kafka_avro.zip

@jonaslagoni what approach are you taking with the anonymous schemas in code generation? generating that as others, using anonymous schema id?
@alberto1980 try using here and in the other template a slightly different version of your file. Move payload schemas to components.schemas and in payload add $ref pointing to those schemas

@derberg  I use QuickType to handle the generation of schemas. Then there are some special cases that has to be managed i.e. root schema which had a null type.

@jonaslagoni how could I use the template to generate code with avro schema?
If move playload schemas to components.schemas I got errors like these:
{
"title": "/components/schemas/lightMeasuredPayload/type should be equal to one of the allowed values",
"location": {
"jsonPointer": "/components/schemas/lightMeasuredPayload/type",
"startLine": 46,
"startColumn": 7,
"startOffset": 1212,
"endLine": 46,
"endColumn": 19,
"endOffset": 1224
}
},
@derberg commented me that this is not possible with components.schemas because custom schemas, other that asyncapi is not allowed there
If I use $ref with schema external reference, code generation is finished without errors but payload generated is not right. I got this generation for playload class

Attach asyncapi
kafka_avro_ref_external.zip
yaml file

@jonaslagoni how could I use the template to generate code with avro schema?

I am not sure the template currently supports the anonymous messages which it receives when being converted to a JSON draft 7 schema in the parser. This is because the template uses the uid of the schema and if none are sat, i.e. not being done by the avro parser, it receives this anonymous message id by the parser. So that behavior is correct. However it seems like the template does not generate the correct reference to the avro schemas somehow. TLDR: looks like the template does not atm. support avro schemas even though the underlying parser does.
@alberto1980 can you add the document to a comment instead of a zip please, much easier 😄

Hi @jonaslagoni
Add the document:
asyncapi: '2.0.0'
info:
title: Streetlights API
version: '1.0.0'
description: |
The Smartylighting Streetlights API allows you
to remotely manage the city lights.
license:
name: Apache 2.0
url: 'https://www.apache.org/licenses/LICENSE-2.0'
servers:
production:
url: kafka.bootstrap:{port}
protocol: kafka
variables:
port:
default: '9092'
enum:
- '9092'
- '9093'
channels:
event.lighting.measured:
publish:
bindings:
kafka:
groupId: my-group
operationId: readLightMeasurement
message:
schemaFormat: 'application/vnd.apache.avro;version=1.9.0'
#$ref: 'https://raw.githubusercontent.com/alberto1980/apicurio-apis/master/schemas/external_avro_schema.json#'
payload:
$ref: 'https://raw.githubusercontent.com/alberto1980/apicurio-apis/master/schemas/external_avro_schema.json#'
subscribe:
operationId: updateLightMeasurement
message:
schemaFormat: 'application/vnd.apache.avro;version=1.9.0'
#$ref: 'https://raw.githubusercontent.com/alberto1980/apicurio-apis/master/schemas/external_avro_schema.json#'
payload:
$ref: 'https://raw.githubusercontent.com/alberto1980/apicurio-apis/master/schemas/external_avro_schema.json#'
By the way, a topic that I forgot to comment on before. What is the meaning/use of the class LightMeasured that is being generated?. This class contains payload class but it never used in the generated code,
thanks

@alberto1980 no idea, @Tenischev maybe you can help out here :smile:

@alberto1980 please format this asyncapi file example with ``` (markdown syntax for code samples) so it has all the indentations needed for simple copy/paste.

Sorry, this is the formatted file
`asyncapi: '2.0.0'
info:
title: Streetlights API
version: '1.0.0'
description: |
The Smartylighting Streetlights API allows you
to remotely manage the city lights.
license:
name: Apache 2.0
url: 'https://www.apache.org/licenses/LICENSE-2.0'
servers:
production:
url: kafka.bootstrap:{port}
protocol: kafka
variables:
port:
default: '9092'
enum:
- '9092'
- '9093'
channels:
event.lighting.measured:
publish:
bindings:
kafka:
groupId: my-group
operationId: readLightMeasurement
message:
schemaFormat: 'application/vnd.apache.avro;version=1.9.0'
#$ref: 'https://raw.githubusercontent.com/alberto1980/apicurio-apis/master/schemas/external_avro_schema.json#'
payload:
$ref: 'https://raw.githubusercontent.com/alberto1980/apicurio-apis/master/schemas/external_avro_schema.json#'
subscribe:
operationId: updateLightMeasurement
message:
schemaFormat: 'application/vnd.apache.avro;version=1.9.0'
#$ref: 'https://raw.githubusercontent.com/alberto1980/apicurio-apis/master/schemas/external_avro_schema.json#'
payload:
$ref: 'https://raw.githubusercontent.com/alberto1980/apicurio-apis/master/schemas/external_avro_schema.json#'`

Sorry, this is the formatted file
asyncapi: '2.0.0'
info:
  title: Streetlights API
  version: '1.0.0'
  description: |
    The Smartylighting Streetlights API allows you
    to remotely manage the city lights.
  license:
    name: Apache 2.0
    url: 'https://www.apache.org/licenses/LICENSE-2.0'

servers:
  production:
    url: kafka.bootstrap:{port}
    protocol: kafka
    variables:
      port:
        default: '9092'
        enum:
          - '9092'
          - '9093'

channels:
  event.lighting.measured:
    publish:
      bindings:
        kafka:
          groupId: my-group
      operationId: readLightMeasurement
      message:
        schemaFormat: 'application/vnd.apache.avro;version=1.9.0'
        #$ref: 'https://raw.githubusercontent.com/alberto1980/apicurio-apis/master/schemas/external_avro_schema.json#'
        payload:
            $ref: 'https://raw.githubusercontent.com/alberto1980/apicurio-apis/master/schemas/external_avro_schema.json#'
    subscribe:
      operationId: updateLightMeasurement
      message:
        schemaFormat: 'application/vnd.apache.avro;version=1.9.0'
        #$ref: 'https://raw.githubusercontent.com/alberto1980/apicurio-apis/master/schemas/external_avro_schema.json#'
        payload:
            $ref: 'https://raw.githubusercontent.com/alberto1980/apicurio-apis/master/schemas/external_avro_schema.json#'

Hi all,
Ok, just simple test to have a look what template receives:
        const asyncapi = generator.asyncapi;
        for (let [key, schema] of asyncapi.allSchemas()) {
            console.error(key, schema);
        }

out:
<anonymous-schema-1> Schema {
  _json: { type: undefined, 'x-parser-schema-id': '<anonymous-schema-1>' }
}
<anonymous-schema-2> Schema {
  _json: { type: undefined, 'x-parser-schema-id': '<anonymous-schema-2>' }
}

I do not know what we could expect from this.

on a parser, we also support $id (https://github.com/asyncapi/parser-js/blob/master/lib/models/schema.js#L24) but I guess it is of no use in case we get avro that needs to be converted into json schema.

Hi @alberto1980,
After latest fix template AnonymousMessage classes are named correctly...
Regarding this reference to Avro schema, I tried to run it with local copy of your external_avro_schema.json and got the same result.
By the looking on external_avro_schema.json I see mostly only the payloadExample without any real definition of properties for message and so on. I'm not familiar with Avro schemas, so maybe I understand something wrong.
But current template treats any object schema from AsyncAPI like a model class. This means that the content of your external_avro_schema.json was not reconsidered as object by parser... (As far as I could conclude)
@jonaslagoni , @derberg maybe you have ideas?

Yeap, I also think it is not a valid Avro schema. Valid example is https://github.com/asyncapi/avro-schema-parser/blob/master/tests/schemas/Person-1.9.0.avsc


Linux –– font too small, DPI cant be ajusted

System - Ubuntu Linux
Monitor: 24'' with 1920x1080
Font size is tiny and difficult to read. For comparison, look at attached image below.
Currently it seems there is no way to adjust font size via Xft//DPI.
Test shows that any DPI value I set in Ubuntu/Linux is overridden with value of 91. If number 91 is hardcoded into Godot, might there be an option to scale MaterialMaker  UI to improve font readability on Linux machines?

Material Maker only supports integer scaling, as proper non-integer scaling requires a feature to be added into Godot: https://github.com/godotengine/godot/pull/21446

@Calinou: IIRC some devices report DPI badly, on top of what you said?

@Zireael07 That too, but this is an entirely separate issue. Either way, we should add an option to force a specific UI scale once we add non-intger scaling.
It might be possible to add an option that changes just the font size, but this is bound to make many UI elements look uncanny or entirely broken.

I opened more general #132, because I like to make sure non-hdpi case is handled too. If so, I am perfectly fine #132 is seen as duplicate.
Does Godot use Monitor information to estimate DPI resolution?
91 == sqrt(1920**2+1080**2) / 24
There 91 DPI seems to come from.
Thinking about it, this DPI is formally correct for my screen. But it does not work for me as user. In my workflow I do use multiple monitors, each is 80cm to 100cm away from my eyes. Scaling DPI to 128 DPI balances out eye distance and font size, keeps computing agreeable.
Formally correct DPI for screen is not nescesarly the right size for a user. A user might need to scale UI independently from screen resolution to adapt UI to his needs, especially in multi monitoring workflows.
In Godot, a floating point option to scale UI would be great way to balance formally correct DPI with user needs.


Enable/disable luci test in a single file for framemwork

As we are migrating SDK to LUCI, a single file to enable/disable test is needed.
A manifest file similar to devicelab needs to be created, and will be referenced when triggering tests in web_hook.

Duplicate of https://github.com/flutter/flutter/issues/63437. Closing


discrepancy in parsing witness scope format on RPC side

The RPC method invokescript  supports passing optional signers. While investigating a wallet error reported by a user @hal0x2328 noticed that the Go node fails to parse a signer provided whereas the C# node doesn't.
Example request made;
{"params":["CxEMFM8qjpTLqLqEOKINSBGOosvj8jVKDBTPKo6Uy6i6hDiiDUgRjqLL4/I1ShTAHwwIdHJhbnNmZXIMFPVj6kC8KD1NDgXEjqMFs/Kgc0DvQWJ9W1I=",[{"account":"4a35f2e3cba28e11480da23884baa8cb948e2acf","scopes":1}]],"jsonrpc":"2.0","id":1234,"method":"invokescript"}

Go node response
{"id":1234,"jsonrpc":"2.0","error":{"code":-32602,"message":"Invalid Params","data":"not a signer: not a signer: json: cannot unmarshal number into Go struct field signerWithWitnessAux.scopes of type string"}}

Note how scopes is defined as a number not as a name of the flag, which C# successfully parses here

This in fact is a duplicate of #2563.

from #2563

It can be fixed in future if there is a demand, but for now we'll keep the current behavior.

How much demand do we need? We currently have a proxy between our Go nodes to patch the request, but a proper fix like #3060 is a much nicer solution.

I'm really surprised to see people using numeric inputs for this given that conversion from enumeration to JSON always produces strings and they're much more convenient in general. At the same time if this format is used by some software and people expect it to be supported (well, it's a second issue of this kind) we can adjust the node.
At the same time we'll still have some other types not covered, unfortunately.

I'm fully with you that it is unfortunately supported on the C# side. It's kind of hard to track who's producing what though


Prepare for v0.9.7 release

Bump the version to v0.9.7.
Update the change log.

Note: The future inflation issue is not has been addressed. Will open another PR for it.

Note: The future inflation issue is not has been addressed. Will open another PR for it.

Done via #222.


nextjs 11: Runtime.ImportModuleError: Error: Cannot find module '../chunks/9033.js'

Describe the bug
When deploying our website using next.js 11.0.1 we get the following error:
{
   "errorType":"Runtime.ImportModuleError",
   "errorMessage":"Error: Cannot find module '../chunks/9033.js'\nRequire stack:\n- /var/task/out_functions/next_index/next_index.js\n- /var/task/next_index.js\n- /var/runtime/UserFunction.js\n- /var/runtime/index.js",
   "trace":[
      "Runtime.ImportModuleError: Error: Cannot find module '../chunks/9033.js'",
      "Require stack:",
      "- /var/task/out_functions/next_index/next_index.js",
      "- /var/task/next_index.js",
      "- /var/runtime/UserFunction.js",
      "- /var/runtime/index.js",
      "    at _loadUserApp (/var/runtime/UserFunction.js:100:13)",
      "    at Object.module.exports.load (/var/runtime/UserFunction.js:140:17)",
      "    at Object.<anonymous> (/var/runtime/index.js:43:30)",
      "    at Module._compile (internal/modules/cjs/loader.js:999:30)",
      "    at Object.Module._extensions..js (internal/modules/cjs/loader.js:1027:10)",
      "    at Module.load (internal/modules/cjs/loader.js:863:32)",
      "    at Function.Module._load (internal/modules/cjs/loader.js:708:14)",
      "    at Function.executeUserEntryPoint [as runMain] (internal/modules/run_main.js:60:12)",
      "    at internal/main/run_main_module.js:17:47"
   ]
}

Using next.js 10.x the deployment works fine. We have also updated webpack to v5, as we used v4 before.
Building and running the website with target: "server" works locally.
Additionally, I see the 9033.js in the out_functions folder of the executed function, but it seems like it is not bundled in the actual netlify bundle.
If you need any additional information, please let me know.
To Reproduce
See repo with example code: https://github.com/amuttsch/nextjs11-netlify-module-not-found
We deploy our website using the netlify cli:
$ yarn run netlify:build && yarn run netlify:deploy

Expected behavior
The website to load properly :-)
Versions

Next.js: 11.0.1
plugin (if installed at fixed version): 3.6.2

If you're using the CLI to build

OS: Linux
netlify/cli version: 4.1.2

If you're using file-based installation

netlify.toml:

[build]
    command   = "yarn run build:serverless"
    functions = "out_functions"
    publish   = "out_publish"

[functions]
    node_bundler = "esbuild"
    external_node_modules = ["@ampproject/toolbox-optimizer"]

[[plugins]]
    package = "@netlify/plugin-nextjs"

[context.branch.environment]
    # Environment variable substitution is not supported, therfore we cannot
    # set SITE_ALIAS here.
    NEXT_SERVERLESS = "true"
    NODE_ENV = "production"

[dev]
    functions = "out_functions"
    publish   = "out_publish"
    # We manually set the framework to static, otherwise Netlify automatically
    # detects NextJS and redirects do not work.
    # Read more: https://github.com/netlify/cli/blob/master/docs/netlify-dev.md#project-detection
    framework = "#static"

I tried disabling the esbuild bundler, this seems to fix the issue :thinking:

And I got (not) working example repo here: https://github.com/amuttsch/nextjs11-netlify-module-not-found

Hi @amuttsch
This is an issue with esbuild and its handling of dynamic imports. We have a fix, but it's currently behind a feature flag. Try setting the env var NETLIFY_EXPERIMENTAL_PROCESS_DYNAMIC_IMPORTS to true and see if that fixes it.

@ascorbic Thanks for the quick reply, adding the env var works :tada:
Do you have any timeframe when this feature will be stable?

It should be soon. @eduardoboucas is just making sure that it's stable before unflagging it.

hey @amuttsch! since the feature flag works for you and this is a duplicate of https://github.com/netlify/netlify-plugin-nextjs/issues/337, i'm going to close this in favor of that! please track there :) ty!!! <3


Package request: Pep9

Project description
Pep/9 is a 16-bit computer emulator, designed to teach computer architecture, assembly language programming, and computer organization principles as described in the text Computer Systems, J. Stanley Warford, 5th edition.
Metadata

homepage URL: https://computersystemsbook.com/5th-edition/pep9/
source URL: https://github.com/StanWarford/pep9suite
license: GNU Version 3
platforms: Window, Linux, MacOS

I thought it was https://peps.python.org/pep-0009/ :p

I was able to build using this as my shell.nix file
let
	pkgs = import <nixpkgs> {};
in
pkgs.mkShell {
	packages = with pkgs; [
		# gcc
		# valgrind
		# pkg-config

		# cmake
		# meson
		# ninja

		# cairo
		# scdoc

		# wayland
		# wayland-protocols
		# libxkbcommon
	];

    buildInputs = [
		pkgs.qt5.full
		pkgs.qtcreator
    ];

}

After which I had to run qmake BUILD-ALL.pro followed by make
Pep9 executable was located in pep9asm dir. as a Pep9 file.


Update to Use .NET 5.x

[Enter feedback here]
Please update for instructions using the .NET 5 version.

Document Details
⚠ Do not edit this section. It is required for docs.microsoft.com ➟ GitHub issue linking.

ID: d6102ebf-9a84-413b-81f9-711f7e2ff9e1
Version Independent ID: 1a6dcb5b-cd4b-a09e-15ea-953cddf109f1
Content: Quickstart: Protect an ASP.NET Core web API with the Microsoft identity platform - Microsoft identity platform
Content Source: articles/active-directory/develop/quickstart-v2-aspnet-core-web-api.md
Service: active-directory
Sub-service: develop
GitHub Login: @jmprieur
Microsoft Alias: jmprieur

@ericnyc646
Thanks for your feedback! I've assigned this issue to the author who will investigate and update as appropriate.

@ericnyc646, this tutorial can be updated to net5.0 without changing anything. Just change the FrameworkVersion to net5.0 instead of netcoreapp3.1.
ASP.Net Core 3.1 is stil the LTS (Long term support), so we are going to leave this quickstart as is
#please-close


Deserialize pattern variables correctly

There was a missing case in the binary deserializer that meant we couldn't deserialize pattern variables (X : Sort) properly. This PR implements, tests and documents the missing case.
No change to the format version is required as the serializer was already handling this case properly, and all existing files that were previously valid remain so.
Fixes #779

In a k source level this is related to records uses like foo(x:Int)?

Thanks for the clarification @Baltoli!


Logging Error object [object Object] when running with --server

Looks like the runner is logging out and error object from the vendor file when I run my tests.  Not sure if this is happening for others, but it's occurring here:
https://github.com/sglanzer/ember-cli-blanket/blob/master/vendor/blanket-require.js#L96
It needs to be changed from console.log(err) to console.log(err.stack) or something similar.
Not sure if this is ember-cli-blanket or the vendor lib, but thought I should mention this issue regardless.

@vitapluvia still an issue with 0.9.1?  the code has changed a bunch since then and your file ref above doesn't give me a clue.
Please reopen if still an issue


Bumped webpack version from 4.32.2 to 5.91.0

Bumped webpack version from 4.32.2 to 5.91.0 and peer dependencies to improve security.

Bumped webpack-cli from 4.0.0 to 5.1.4
Bumped webpack-cli/serve from 1.7.0 to 2.0.5
Bumped webpack-dev-server from 4.11.1 to 5.0.4
Bumped css-loader from 1.0.1 to 7.1.1
Bumped file-loader from 1.1.11 to 6.2.0
Bumped url-loader from 1.0.1 to 4.1.1
Bumped sass-loader from 10.4.1 to 14.2.1
Bumped style-loader from 0.21.0 to 4.0.0
Bumped terser-webpack-plugin from 2.3.3 to 5.3.10
Removed<EMAIL_ADDRESS>from overrides

Fixed some breaking API schema changes as a result of bumping webpack.
It can be built with node 18

coverage: 45.955% (-21.6%) from 67.551%
when pulling 316c951db5d8715e54bd91705d520f2c64c303b6 on v-gandiddi/WebpackUpdate
into 012a6641077fe96c8155687f8e6ecb1ebffdc0e3 on main.

@gandiddi looks great except tests are failing, you should be able to debug locally via npm run test.
Check out this SO thread for possible fixes: https://stackoverflow.com/questions/64294706/webpack5-automatic-publicpath-is-not-supported-in-this-browser


[AutoDiff] Require same access level for original/derivative functions.

Require @derivative functions and their original declarations to have the
same effective access level. Diagnose effective access level mismatches.
Resolves TF-1099 and TF-1160.
@usableFromInline declarations are effectively public, so public original
functions can be internal @usableFromInline derivatives.
This simplifies AutoDiff symbol linkage rules and paves the way for
enabling cross-file derivative registration by default: TF-1097.
Todos:

Enable cross-file derivative registration by default and delete the
-Xfrontend -enable-experimental-cross-file-derivative-registration flag.
Upstream changes to master.

Examples:
// Good: public original ✅ ~public derivative.
public func original1(_ x: Float) -> Float { x }
@derivative(of: original1)
@usableFromInline
func derivative1(_ x: Float) -> (value: Float, pullback: (Float) -> Float) {
  fatalError()
}

// Bad: public original ❌ internal derivative.
public func original2(_ x: Float) -> Float { x }
@derivative(of: original2)
func derivative2(_ x: Float) -> (value: Float, pullback: (Float) -> Float) {
  fatalError()
}

// Bad: private original ❌ public derivative.
private func original3(_ x: Float) -> Float { x }
@derivative(of: original3)
public func derivative3(_ x: Float) -> (value: Float, pullback: (Float) -> Float) {
  fatalError()
}

test.swift:11:17: error: derivative functions for public or '@usableFromInline' original function 'original2' must also be public or '@usableFromInline', but 'derivative2' is internal
@derivative(of: original2)
                ^
test.swift:18:17: error: the original function of a public or '@usableFromInline' derivative function must also be public or '@usableFromInline', but 'original3' is private
@derivative(of: original3)
                ^

I accidentally deleted tensorflow branch, which closed this PR. That was not intentional, sorry!
It would be nice to protect tensorflow branch against deletion to prevent this from happening again.

This is obsolete after https://github.com/apple/swift/pull/31527 to master branch.


[WIP] Support other floating points

Currently F.n_step_rnn only accepts float32 on GPU if cuDNN is enabled.
In this PR, I add F.n_step_rnn a support of other dtypes of floating points.
ref: https://github.com/chainer/chainer/issues/7818

Thank you for the PR!
Please be aware that the test of F.n_step_rnn is just being refactored: #7804

Isn't this duplicate of https://github.com/chainer/chainer/pull/5808?

@crcrpar Thank you so much for letting me know.
You're right, it is duplicated of the PR you are pointing out. 🙇


Z-ordering of particles (foreground/background particles)

I am using one ParticleContainer for all the particles, is there any way to enforce some z-ordering in the particles?
I want to have, for example, the smoke ground particles always below the clouds particles, this could be easily done by always adding the ground particles as the first children of the particles array, instead of adding them at the end.

Oh, I think I can just use the addAtBack property.

Yeah, any ordering fancier than just the addAtBack toggle probably needs emitters to add particles to separate containers, because sorting hundreds/thousands of particles probably isn't great.


merge unknown shuttle rules into one rule

About the PR

instead of different rules, there is just one, that will select random shuttles from the list
along with datafield in LoadMapRuleComponent was changed to the list to support randomness
Why / Balance

fixes #28209 fixes #29087
Technical details

Media

https://github.com/user-attachments/assets/5d32f0e8-61ca-4c59-a25f-600daa3e5e20

[X] I have added screenshots/videos to this PR showcasing its changes ingame, or this PR does not require an ingame showcase

Breaking changes

Changelog

:cl:

fix: Fixed unknown shuttle gamerule appearing too often

So while this is nice for normal round progression.
It would be nice to still be able to select exactly which unknownshuttle spawns as an admin running an event

be admin running syndicate announcements from distance syndicate station
spawn 2-3 unknown shuttle syndicate survivors.
lore

This wouldn't be possible via a simple gamerule command and would need a fair amount more setup.

said setup just being loadgrid command

said setup just being loadgrid command

Which isn't logged, like addgamerule.

This has already been discussed, here we need another solution, unified with the Secret gamemode rule.  a rule that allows you to run one of the sub-rules based on weights

[#29320] currently waiting on this to merge for the same reasons.


Failed: Update autorest version to prerelease 3.0.0-alpha.20241103.1

Generated by Autorest Regen Preview build 20241103.1Triggered from pull request: https://github.com/Azure/autorest.csharp/pull/5107

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


Remove initial value for output of Keithley 2450

Setting an initial value for the keithley output is quite dangerous, especially when recovering from a kernel crash. Initializing the instrument should leave the output state unchanged<!--
Thanks for submitting a pull request against QCoDeS.
To help us effectively merge your pr please consider the following check list.

[ ] Make sure that the pull request contains a short description of the changes made.
[ ] If you are submitting a new feature please document it. This can be in the form of inline
docstrings, an example notebook or restructured text files.
[ ] Please include automatic tests for the changes made when possible.

Unless your change is a small or trivial fix please add a small changelog entry:

[ ] Create a file in the docs\changes\newsfragments folder with a short description of the change.

This file should be in the format number.categoryofcontribution. Here the number should either be the number
of the pull request. To get the number of the pull request one must
first the pull request and then subsequently update the number. The category of contribution should be
one of breaking, new, improved, new_driver improved_driver, underthehood.
If this fixes a known bug reported against QCoDeS:

[ ] Please include a string in the following form closes #xxx where ``xxx``` is the number of the bug fixed.

Please have a look at the contributing guide
for more information.
If you are in doubt about any of this please ask and we will be happy to help.
-->

Sorry about the mix up on the last pull request. Let me know if this change warrants newsfragment

@aaronsharpe thanks, I think it would be good with a neswfragment since this changes the behaviour even if it’s for the better

Added. Thanks for the feedback


Accessing to the 'visible' property of the Selector shouldn't interrupt a test execution

See example to reproduce
import { Selector } from 'testcafe';

fixture `Fixture`
	.page('https://devexpress.github.io/testcafe/example/');

test('i2383', async t => {
		const dummySelecotor = Selector('.dummy-class');

// Fails here
>		if (await dummySelecotor.visible) {
			console.log('Wrong!! Dummy Selector is visible');
		} else {
			console.log('Executed `else` statement');
		}
});

The test will interrupt with message 'Cannot obtain information about about the node because....'.
If I will change the await dummySelecotor.visible to await dummySelecotor.exists it works as expected.

testcafe version: 0.20.0

Hi @noamaankhan
We cannot provide you with precise time estimation. If this feature is important for you, the pull request would be appreciated. For more information, refer to the Contribution guide section in our documentation.

I may be interested in providing a PR for this. I'm struggling with this issue due to a loader element disappearing after an exists check.
Basically the following:
function waitForElementToDisappear(selector) {
    while (maxPollingChecksEtc && await selector.exists) {
        --- element disappears here ---
        let invisible = !await selector.visible; // test ends because visible depends on element existence (not sure why it does!)
        if (invisible) break;
        await t.sleep(pollDelay)
    }
}

In my opinion, an element that does not exist is not visible - and calling visible on an inexistant element should not throw an error.
If backwards compatibility is a concern, perhaps some Selector {} option that will make visible return false in this case (perhaps called relaxedVisibilityChecks)?

@SacredSkull
I agree with you. If the element does not exist, this means that it is not visible and the error should not be thrown.
I think we do not need any additional options for this.
Your PR will be appreciated.


Support offline

Use gatsby-plugin-offline.

It is necessary to add a PNG icon for gatsby-plugin-manifest. It supports with icon-gen.

Support size specification of PNG - Issue #97


Allow max_iter to be passed into fit_scores

In fit_model, max_iter is hard coded to 100. Would it be possible to allow the user to pass in max_iter to fit_scores? I am getting a failed to converge warning when model_type='linear':
**ConvergenceWarning: lbfgs failed to converge (status=1):
STOP: TOTAL NO. of ITERATIONS REACHED LIMIT.

Increase the number of iterations (max_iter) or scale the data as shown in**
    https://scikit-learn.org/stable/modules/preprocessing.html

Thankls, I will consider this suggestion, but I’m curious about the size of your dataset. Has it still not converged after 100 iterations?

Thank you for your feedback. You can try version 0.8 to see if it meets your needs.

Hi, thank you for considering this. These are the size of the classes that I am working with.
n majority:~180000
n minority:~5000

Your data is highly imbalanced, and relying solely on oversampling may lead to overfitting.
It’s recommended to apply some data augmentation techniques or adjust the ratio of positive and negative samples.
The lack of convergence could also be due to insufficient differentiation between positive and negative samples. You might want to first examine the feature importance and analyze the data performance before proceeding with modeling.


Service discovery bug fixes

Missing state transitions are added; that would fix:

https://github.com/rancherio/rancher/issues/678
https://github.com/rancherio/rancher/issues/676

Environment name is unique within the account, not globally

https://github.com/rancherio/rancher/issues/659

Disallow to remove the lb that was created as a part of LB service. This type of lb can be removed only when its service is removed

@sonchang @cjellick could you please review?

@ibuildthecloud

LGTM


Error: [@cedx/gulp-php-minify] promisify is not a function

Hello Sir. I got an issue when I applied your library in my current WordPress front-end setup. Here it is:
Error: [@cedx/gulp-php-minify] promisify is not a function
at Minifier._transform (/home/mguyromelle/web-projects/vvv/www/tagumgov/htdocs/wp-content/themes/wp-bootstrap-starter-child/node_modules//lib/minifier.js:94:30)
at runMicrotasksCallback (internal/process/next_tick.js:64:5)
at _combinedTickCallback (internal/process/next_tick.js:73:7)
at process._tickDomainCallback (internal/process/next_tick.js:128:9)
Hoping for an answer as soon as possible. Im currently working this for a client. Deadline is soon.

Hi! You're using a Node.js version that is too old. You need to upgrade your Node.js runtime to the latest version.
The util.promisify function used by this plug-in was introduced in Node version 8 (see: https://nodejs.org/api/util.html#util_util_promisify_original).


chore: remove cardinality statistic gathering for fixed width data block

This PR tries to remove the cardinality calculation for fixed width data block, so we can speed up the write speed.
#3069

to benchmark statistic gathering function turns out to be a bit tricky for a few reasons:
1: the datablock is stateful, statistics computing only happens for the first time we inquiring statistics, the remaining inquires is just a lookup in hashmap.
2: I don't see the need to introduce a clear_stat function to clear a datablock's statistics.
3: instantiate a new datablock involves memory copying and takes fair amount of time.
4: functions like max_bit_widths and cardinality are private to fixedWidth datablock and VariableWidth Datablock.

Codecov Report
Attention: Patch coverage is 90.00000% with 4 lines in your changes missing coverage. Please review.

Project coverage is 77.32%. Comparing base (c9f8a49) to head (2cd2017).

Files with missing lines
Patch %
Lines

rust/lance-index/src/scalar/inverted/index.rs
33.33%
2 Missing :warning:

rust/lance-encoding/src/statistics.rs
97.22%
1 Missing :warning:

rust/lance/src/dataset/transaction.rs
0.00%
1 Missing :warning:

Additional details and impacted files
@@            Coverage Diff             @@
##             main    #3076      +/-   ##
==========================================
- Coverage   77.35%   77.32%   -0.04%
==========================================
  Files         240      240
  Lines       79468    79322     -146
  Branches    79468    79322     -146
==========================================
- Hits        61475    61336     -139
+ Misses      14827    14822       -5
+ Partials     3166     3164       -2

Flag
Coverage Δ

unittests
77.32% <90.00%> (-0.04%)
:arrow_down:

Flags with carried forward coverage won't be shown. Click here to find out more.

:umbrella: View full report in Codecov by Sentry.
:loudspeaker: Have feedback on the report? Share it here.


C# GetOutput("logits") and logit setting Support

Is there any reason that the C# API wouldn't have the same interface for retrieving the logits that the python API (#956) and C API (#755) have? With the exposing of the adapters API #998 this would be incredibly helpful.
Also #956 introduced the set logits interface although I haven't seen much discussion of it's use cases. I may be wrong but if this allows for the force setting of tokens mid-generation then this would be incredibly useful (for example, generate tokens, check condition, add n tokens, generate more tokens). The current C# API does not currently (unless I am mistaken) allow for the altering of input_ids within the gen_params mid-inference. Is there an alternate method to doing this? Or is the set logits interface the appropriate method?

Realised the second part of my query is being addressed in "continuous decoding" as referenced in #828 and #967 so the request here is more a c# interface which I see is currently underway in aciddelgado/continuous

I think https://github.com/microsoft/onnxruntime-genai/pull/998 adds that API.
Note that the get logits API (in https://github.com/microsoft/onnxruntime-genai/pull/956) is different than the get outputs ("logits") API in that one of them get's you the logits as used by the search and sampling functions and the other gets you the raw model outputs.

GetOutput("logits") will return the raw output from the model. It requires that the underlying ONNX model has an output called logits

The `GetLogits` API is not added to C# yet. But we will add it soon.

I'll mark this issue as completed since we have the `GetOutput("logits")` API now.


Upgrading version to 0.7

Using last release PR (#907) as a template.

Running
$ git log 0.6.0..cut-0.6.1 \
> | grep 'Merge pull request ' \
> | awk -F ' ' '{print $4}' \
> | sort

yields
#910
#914
#915
#918
#921
#923
#930
#932
#934
#940
#941
#943
#946
#948
#950
#951
#953
#954
#956
#959
#960
#961
#963
#964
#965
#967
#971
#973
#975
#976
#977

@tseaver this is the current set of release notes
-   Implementing client in Pub/Sub, deprecating old
    implicit environment detection.
-   Fixing bug in `Blob.upload_from_file` where `os.fstat` is
    only called if the buffer object is a file.
-   Removing restriction of equality only filtering for
    `__key__` queries in datastore; also cleaning up filter
    checking in `Query` constructor.
-   Adding ability to sign URL from GAE.
-   Making `_BlobIterator` accumulate prefixes so that a
    storage list call that makes multiple requests can
    aggregate all the prefixes encountered.
-   Adding `namespace` to `datastore.Dataset` class (now
    called `datastore.Client`).
-   Adding HTTP method and URL to messages printed for
    exceptions caused by failed requests.
-   Renaming `datastore.Dataset` class as `datastore.Client`.
-   Removing `datastore.api` module and moving functionality
    into `datastore.Client`.
-   Implementing `storage.Client` class.
-   Removing `storage.api` module and moving functionality
    into `storage.Client`.

I'd like to wrap up #944 and #952 before cutting a release.

Given the new features (clients, etc.) and the backward-incompatibilities, we should be bumping the version to something like 0.7.

Good call. I'm going to try to wrap up client in storage first, then will bump it.

Commits since the last check:
#978
#979
#980
#982
#984
#985
#986
#987
#988
#989
#990
#991
#992
#993
#994
#996
#998

@tseaver Newly proposed release notes:
## Core

-   Adding ability to sign URL from GAE.
-   Adding documentation about using `generate_signed_url`
    with Compute Engine assertion credentials.
-   Adding HTTP method and URL to messages printed for
    exceptions caused by failed requests.

## Pub/Sub

-   Implementing client in Pub/Sub, deprecating old
    implicit environment detection. (#978, #979)
-   Upgrading Pub/Sub API to v1 (from v1beta).

## Storage

-   Implementing client in Storage, deprecating old
    implicit environment detection. (#984, #987, #988,
    #989, #990, #991)
-   Removing `storage.api` module and moving functionality
    into `storage.Client`.
-   Fixing bug in `Blob.upload_from_file` where `os.fstat` is
    only called if the buffer object is a file.
-   Making `_BlobIterator` accumulate prefixes so that a
    storage.list_blobs call that makes multiple requests can
    aggregate all the prefixes encountered.

## Datastore

-   Implementing client in Datastore, deprecating old
    implicit environment detection.
-   Removing `datastore.api` module and moving functionality
    into `datastore.Client`.
-   Renaming `datastore.Dataset` class as `datastore.Client`.
-   Adding `namespace` to `datastore.Dataset` class (now
    called `datastore.Client`).
-   Removing restriction of equality only filtering for
    `__key__` queries in datastore; also cleaning up filter
    checking in `Query` constructor.

## BigQuery

-   Beginning developer experience docs for BigQuery
    API (code to follow after design stage).

:+1:

@dhermes I updated the notes:

Use imperative voice for verbs.
Add PR #s.
Place bullets on single lines for markdown compatibility.

Also, I dropped any mention of the ongoing BigQuery design activity.  I think we could even create a release branch for 0.7 and delete the BQ docs entirely for it.

@tseaver I don't like the idea of a release branch. If we want a custom branch, it should be for the BQ docs.

We can ditch the release branch notion, but shouldn't mention BQ in the release notes (there is nothing of interest for a non-committer there).

OK Cool

https://pypi.python.org/pypi/gcloud/0.7.0 has been published


pin and upgrade lerna version

Lerna just released a new version here https://github.com/lerna/lerna/releases/tag/v2.0.0-beta.38
But I encountered this error after deleting yarn.lock and node_modules and tried to install again.
yarn
yarn install v0.21.3
info No lockfile found.
[1/4] 🔍  Resolving packages...
[2/4] 🚚  Fetching packages...
[3/4] 🔗  Linking dependencies...
[4/4] 📃  Building fresh packages...
success Saved lockfile.
$ lerna bootstrap
Lerna v2.0.0-beta.38
Independent Versioning Mode
Lerna version mismatch: The current version of lerna is 2.0.0-beta.38, but the Lerna version in `lerna.json` is 2.0.0-beta.37. You can either run `lerna init` again or install<EMAIL_ADDRESS>error Command failed with exit code 1.
info Visit https://yarnpkg.com/en/docs/cli/install for documentation about this command.

I don't know if we should upgrade to 2.0.0-beta.38 or just stay with 2.0.0-beta.37 in lerna.json?

Maybe it's better to upgrade? Looks like they added yarn support.

Well, better be safe than upgrading it without testing it first 😄

This is only used for monorepo installs, meaning it only affects those working on the core product -- meaning breaks aren't a super big deal.

Ok then, will upgrade it instead

You probably want to make the e2e execute lerna bootstrap --npm-client=yarn when [ "$USE_YARN" = "yes" ].

Hmm, not sure if i have the time for it right now... They also said that they will enable it as default if it stable enough.

The beauty of instabilities and our position is that we can test it heavily here in our CI with every commit and help uncover things faster for the masses. 😄

Yeah, i'm thinking about it too, do you want it just for lerna bootstrap or any npm install calls? If you want the latter I think it's better to write a function rather than manually check it every time.
Frankly, i'm not too familiar with bash programming 😄  and it would took a great deal of time to get it right on my side. Can we open this in another issue?

I would rather do this all in one PR. Using functions for this might make some things less painful, but it doesn't necessarily make sense for all calls. e.g. I wouldn't make a function for bootstrap but maybe a pkg_script which will switch between npm or yarn for install, pack, and links.

yeah, that way, if in a distant future there are other package manager that CRA wants to support, we just need to update it in one place. If you want, you can finish it up. My first intention is only to pin lerna to specific version in this pr 😄

@Timer can we please merge this first? I want to rebase to master in my branches so i don't need to tweak lerna.json and reset it every time i'm doing yarn installs 😢

Seems fine to me, lgtm. Would be nice to get followup PRs that switch to Yarn in Yarn mode.

@gaearon thanks! will revisit this when https://github.com/facebookincubator/create-react-app/pull/1707 finished cause it's quite a lot of lines to be updated :)


how about tokenizer training?

Great works and congratulation! I noticed opencoder works with a 96K-vocab tokenizer; would your releasing include the scripts and the dataset used for training it?

Our tokenizer is based on the INF-34B tokenizer, with added special tokens. Details on the training of the original INF-34B tokenizer can be found here: https://s.infly.cn/f/img/pdf/inf_34b_tech_report.pdf.

Many thanks!


Country Specific Nameserver Lists

Parse only the nameservers within the users country or nearby countries. This will increase the load time of the list and improve test times.
Definition of Done:

[x] The nameserver list only loads after the user has selected their country
[ ] The list contains surrounding countries as well

For now this will only retrieve the users current country when the program is opened. Retrieving the surrounding countries will be I feature I can add in the future.


Adding support for JsonSubTypes annotation

The generated polymorphic pojo classes had JsonType annotation for the parent class but was missing JsonSubTypes annotation. When using jackson for data binding, it was not able to recognize to which subclass it had to bind the data to and it needs JsonSubTypes annotation to figure out all possible subclasses. This was a requirment for a project that I am working on. Please let me know your feedback.
eg: Annotations for parent class Animal
@JsonTypeInfo(use = JsonTypeInfo.Id.NAME, include = JsonTypeInfo.As.WRAPPER_OBJECT, property = "name")
@JsonSubTypes({
    @JsonSubTypes.Type(value = Dog.class, name = "Dog"),
    @JsonSubTypes.Type(value = Cat.class, name = "Cat")
})

Couple of comments on this:

We should support either a string or array as the value of deserializationClassProperty, rather than splitting on ,.
I think you may be able to achieve what you need without using javaassist, and instead using jclass.owner().ref(subClass) to create a JType. Would this work?

Thank you for the feedback. Will update the pull request

I have updated the pull request after addressing your feedback.

Thanks, could you also squash these commits into one?

Done.
Is it possible to have a release version with these changes?

Is this part a breaking change for anyone using the existing deserializationClassProperty feature?
-            jsonTypeInfo.param("use", JsonTypeInfo.Id.CLASS);
-            jsonTypeInfo.param("include", JsonTypeInfo.As.PROPERTY);
-            jsonTypeInfo.param("property", annotationName);
+            jsonTypeInfo.param("use", JsonTypeInfo.Id.NAME);
+            jsonTypeInfo.param("include", JsonTypeInfo.As.WRAPPER_OBJECT);
+            jsonTypeInfo.param("property", "name");

Yeah, its not backward compatible. I missed it. Let me try to work on it.
But looks like when we use JsonTypeInfo.As.PROPERTY we need to use the annotationName(value of deserializationClassProperty) as a string which represents a key in the json object, not as the Sub class itself. The value of the key in json object will hold the details of the subclass. I was able to get jackson to bind the data just with JsonType annotation.
annotationName: type
Eg:
json object
{
"animal":{
"type":"Dog",
"colour":"black"
}
}
This object gets binded to the DOG class. But if we need JsonTypeInfo.As.WRAPPER_OBJECT then the annotationName will be a subClass in the schema. And the json will look like below
json object
{
"Dog":{
"colour":"black"
}
}

I think this is very useful especially to solve for user cases with class type hierarchy. But i think this change is not configurable enough.
I suggest we make it more configurable.

class and the name value could be different, and user must be able to specific that as well.

"deserializationClassProperty" : [
{
"class" : "SummaryReport",
"discriminiatorValue" : "SUMMARY"
},
{
"class" : "DetailReport",
"discriminiatorValue" : "DETAIL"
}
]
2. the key to derive the discriminiatorValue must also be configurable in schema instead of hardcode to name, it could be any other as well..

I would very much like to see this implemented. Couldn't be the solution making lsubramanya's change using a slightly different keyword, which would keep the original functionality but add the new one? Something like deserializationClassPropertyWithSubs. I would make the change and a pull request if it is agreeable or lsubramanya could do it.

I've updated the PR so that it does not break any existing changes. Thanks for the comments.

This PR could really use a couple of tests showing JSON input documents being deserialized and verifying that the correct types were used.

@joelittlejohn This would be a really useful feature for a project I'm working on at the moment. Are there plans to include this PR in a future release?

Any update on plans here?

This PR looks promising but its been gathering dust for a long time. What else does it need to move forward?

I have an legacy application and I need to unMarshall

After reading this thread if jsonschematopojo generates as shown below, I think xmlmapper might work.
@JsonTypeInfo(use = JsonTypeInfo.Id.NAME, include = JsonTypeInfo.As.EXISTING_PROPERTY, property = "type")
@JsonSubTypes(
    JsonSubTypes.Type(Car::class, name = "car"),
    JsonSubTypes.Type(Truck::class, name = "truck")

Here is my schema, I am not sure how to fix it.
vehicle.json
{
  "type": "object",
  "id": "#Vehicle",
  "additionalProperties": false,
  "javaType": "Vehicle",
  "deserializationClassProperty" : "Car.class,Truck.class",
  "properties": {
    "color": {
      "type": "string"
    }
  }
}
car.json
{
  "type": "object",
  "id": "#Car",
  "additionalProperties": false,
  "javaType": "Car",
  "extends": {
    "type": "object",
    "existingJavaType": "Vehicle"
  }
}
truck.json
{
  "type": "object",
  "id": "#Truck",
  "additionalProperties": false,
  "javaType": "Truck",
  "extends": {
    "type": "object",
    "existingJavaType": "Vehicle"
  }
}

inventoryitem.json
{
  "type": "object",
  "id": "#InventoryItem",
  "additionalProperties": false,
  "javaType": "InventoryItem",
  "properties": {
    "vehicle": {
      "#ref": "vehicle.json"
    }
  }
}

I am not sure how to use "deserializationClassProperty" in my json schema...
Here is what I have
  vehicle.json
   {
     "type": "object",
     "id": "#Vehicle",
     "additionalProperties": false,
     "javaType": "Vehicle",
     "deserializationClassProperty" : "Car.class,Truck.class",
     "properties": {
       "color": {
         "type": "string"
       }
     }
   }
   car.json
   {
     "type": "object",
     "id": "#Car",
     "additionalProperties": false,
     "javaType": "Car",
     "extends": {
       "type": "object",
       "existingJavaType": "Vehicle"
     }
   }
   truck.json
   {
     "type": "object",
     "id": "#Truck",
     "additionalProperties": false,
     "javaType": "Truck",
     "extends": {
       "type": "object",
       "existingJavaType": "Vehicle"
     }
   }

   inventoryitem.json
   {
     "type": "object",
     "id": "#InventoryItem",
     "additionalProperties": false,
     "javaType": "InventoryItem",
     "properties": {
       "vehicle": {
         "#ref": "vehicle.json"
       }
     }
   }

Here is my input that I am trying to unmarshall using XmlMapper
   <InventoryItem><Vehicle xis:type="Car"/></InventoryItem>
The generated code for the above schema
@JsonTypeInfo(use = JsonTypeInfo.Id.CLASS, include = JsonTypeInfo.As.PROPERTY, property = "Car.class, Truck.class")
  public class Vehicle

But I need to generate as shown below to get it working
I need to generate the following through json schema

        @JsonTypeInfo(use = JsonTypeInfo.Id.NAME, include = JsonTypeInfo.As.EXISTING_PROPERTY, property = "type")
    @JsonSubTypes ({
            @JsonSubTypes.Type(value = Truck.class, name = "truck"),
            @JsonSubTypes.Type(value = Car.class, name = "car")
    })
        public class Vehicle

Thanks for you time

ping @joelittlejohn

Hello, I would like to generate @JsonSubTypes same way like ravim786 mentioned.
Is there some possibility that this feature will be released?

Any update on this issue? I also have the same requirement.


Lint detects "include Stable.Latest"

Linter flags include Stable.Latest in structures. Those are bad, because they introduce bin_io functions outside of versioned modules.
Fixed the occurrences of that construct, except the ones already fixed in #3665 and #3681. Those aren't yet merged, so this is WIP.
Closes #3671.

@wu-s-john The check is done at preprocessing time, not at run time, so I don't think you can write a unit test. If you put include Stable.Latest in your code, it won't compile. If the dune file gives ppx_coda the flag -lint-version-syntax-warnings, then it will be a compile-time warning; eventually, that flag should disappear to make the construct into an error.


Support GitHub draft state

GitHub now supports marking pull requests as drafts. It would be super useful to be able to check for this in a Dangerfile.
Perhaps this could be a new addition to PullRequestState?
https://github.com/danger/swift/blob/869b5c82c820b4079a8aa43506b72ebe131ba0eb/Sources/Danger/GitHubDSL.swift#L58-L63

Double check the API responses on the GitHub developer site, this basically has to match that - but I bet it's probably what you recommend, then send along a PR 👍

Looks like draft state is available as a preview as of Feb 2019. Its noted as a boolean on a PR's response object:
 { ...
  "draft": false,
  "merged": false,
  "mergeable": true,
  "rebaseable": true,
  "mergeable_state": "clean",
  "merged_by": { ... },
  "comments": 10,
  "review_comments": 0,
  "maintainer_can_modify": true,
  "commits": 3,
  "additions": 100,
  "deletions": 3,
  "changed_files": 5
}

I believe this might require a change back in Octokit.swift though. I'll look into that.

I think you should be able to just add it to the Danger DSL, I suggest to use a separated property thought, as it is in the GitHub API, to avoid too much mess in the decoding, where you will have otherwise to merge the two decoded properties manually


Error.

Cannot open file, path = 'windows/packaging/exe/make_config.yaml' (OS Error: The system cannot find the path specified.
when run flutter_distributor release --name dev --jobs release-windows

Please create the make_config.yaml file according to the documentation
https://distributor.leanflutter.org/docs/makers/exe

Please create the make_config.yaml file according to the documentation https://distributor.leanflutter.org/docs/makers/exe

how can i get my unique app id?

Please create the make_config.yaml file according to the documentation https://distributor.leanflutter.org/docs/makers/exe

how can i get my unique app id?

It's a GUID, you can generate one with the guid generator

Please create the make_config.yaml file according to the documentation https://distributor.leanflutter.org/docs/makers/exe

how can i get my unique app id?

It's a GUID, you can generate one with the guid generator

Yeap, i did everything that you say. But when i open the my application and i click the install new version, i get a error like this "an error occured in retrieving update information; are you connected to the internet? Please try again later"

Make sure the url attribute of the enclosure node is a correct link (recommended to include hostname)
Make sure the signature's property name and value are correct, sparkle:edSignature for macOS and sparkle:dsaSignature for Windows.

can you give a example appcast.xml that is real? Because i am confused where i have to add something

See sparkle and winsparkle for documentation and examples of appcast.xml.
https://github.com/sparkle-project/Sparkle/blob/2.x/Resources/SampleAppcast.xml
https://github.com/vslavik/winsparkle/wiki/Appcast-Feeds

Thanks a lot. İ did.👍


Fix GitHub Icon #83

added inline_svg to gem file
uploaded sized svg "github icon" file
modified login button

Hi @l0n3, thanks for your interest in contributing. The issues in this repo are intended to provide an opportunity for people starting out in their software development career to gain experience. In order to maintain a safe learning environment and supportive community we only allow members to contribute code at this time.


docs: fix env variable name in logEventIfEnabled() docstring

Summary
fix typo for env variable POWERTOOLS_LOGGER_LOG_EVENT in logger.logEventIfEnabled
Changes

Please provide a summary of what's being changed

Fixed env details on typedoc for logger.logEventIfEnabled from POWERTOOLS_LOG_EVENT to POWERTOOLS_LOGGER_LOG_EVENT per discussion in #3196

Please add the issue number below, if no issue is present the PR might get blocked and not be reviewed

Issue number: #3196

By submitting this pull request, I confirm that you can use, modify, copy, and redistribute this contribution, under the terms of your choice.
Disclaimer: We value your time and bandwidth. As such, any pull requests created on non-triaged issues might not be successful.

No problem! I was looking for some easy wins this morning and came across that issue. Glad I could help!


Rename Refactor does not work for packages with init and PYTHONPATH

Environment data

VS Code version: 1.52.1
Extension version (available under the Extensions sidebar): 2020.12.424452561
OS and version: WIN 10
Python version (& distribution if applicable, e.g. Anaconda): 3.6, 64 bit
Type of virtual environment used (N/A | venv | virtualenv | conda | ...): N/A
Relevant/affected Python packages and their versions: rope, latest version
Relevant/affected Python-related VS Code extensions and their versions:
Value of the python.languageServer setting: Pylance

Expected behaviour
Refactor works in both ways regardess of how module import is implemented.
Actual behaviour
We have a following setup:

Project script(s) on a location A

Packages (internal libraries) on a locations B, C, D, ...
Each of these packages have its own __init__.py file, where relevant modules are imported. User use these libs as B.<something>, B.<somethingElse>

We have VSC workspace on a location A, but we open it with a batch file, that sets PYTHONPATH so all libs (B, C, D) are available to a project on A.

The problem is that refactoring does not work in both ways, meaning:

we can navigate to func definition, for example B.something.func() and refactor it there. This works, all relevant locations in VSC workspace are fixed, including scripts in A that use B.something.func()
however, we can't refactor B.something.func() directly from script from A.  VSC just show No results and that is it.

I assume this is not as expected, since, for example,
refactorTest.zip
PyCharm seems to handle this scenario somehow.
Steps to reproduce:

Open appended workspace via: SET_PYHON_PATH_OPEN_VSC.bat
Navigate to proj/app.py -> useLib(). Refactor lib.m1.func1() func1 to whatever. Will fail.
Navigate to func1() definition with F12. Refactor it to whatetever, will succeed.

Logs
No log statement is generated. However, GUI pop-up is issued, showing only: No results.

System Info

Item
Value

CPUs
Intel(R) Core(TM) i7-6820HQ CPU @ 2.70GHz (8 x 2712)

GPU Status
2d_canvas: enabledflash_3d: enabledflash_stage3d: enabledflash_stage3d_baseline: enabledgpu_compositing: enabledmultiple_raster_threads: enabled_onoop_rasterization: disabled_offopengl: enabled_onprotected_video_decode: unavailable_offrasterization: enabledskia_renderer: disabled_off_okvideo_decode: enabledvulkan: disabled_offwebgl: enabledwebgl2: enabled

Load (avg)
undefined

Memory (System)
15.92GB (5.24GB free)

Process Argv
--crash-reporter-id 919e0ed9-46f3-4ad4-9e28-f35755bf8266

Screen Reader
no

VM
0%

A/B Experiments
vsliv368cf:30146710
vsreu685:30147344
openlogontheside:30221877
python763:30178808
python383cf:30185419
vspor879:30202332
vspor708:30202333
vspor363:30204092
python504:30227505
vswsl492:30211401
wsl2prompt:30224612
pythonvsdeb440:30237827
unusedpromptcf:30224611
folderexplorer:30224614
openfilemenu:30224647
pythonvsded773cf:30236630
pythonvspyt859:30237612

@schperplata sorry for the back-and-forth on this. We plan to move to using Jedi for refactoring (#11333) which will then cause us to drop support for Rope (#10440). I will leave this issue open, though, as a reminder of the bug for anyone else who comes across it.

What's the solution in the meantime? Use a different language server altogether and set up Pyright separately?

@komodovaran I would use Pylance.

@komodovaran I would use Pylance.

Sorry. I was mistaken. There is a Rename in Pylance and the issue is most likely due to lazy loading.  We'll take the bug back

Sorry. I was mistaken. There is a Rename in Pylance and the issue is most likely due to lazy loading.  We'll take the bug back

Issue moved to microsoft/pylance-release #812 via ZenHub

Issue moved to microsoft/pylance-release #812 via ZenHub


Errors on start up

Trying to use locast but gives the following errors...
[2021-02-27 20:24:26,415] INFO - Found Origin: locast
[2021-02-27 20:24:26,415] INFO - Logging into Locast using username ************...
Checking and Installing Core Dependencies.
missing. Attempting installation
Installation failed
Traceback (most recent call last):
File "/app/main.py", line 16, in <module>
sys.exit(run.main(SCRIPT_DIR, fHDHR_web, deps))
File "/app/fHDHR/cli/run.py", line 129, in main
returned_code = start(args, script_dir, fHDHR_web, deps)
File "/app/fHDHR/cli/run.py", line 109, in start
return run(settings, logger, db, script_dir, fHDHR_web, plugins, versions, web, scheduler, deps)
File "/app/fHDHR/cli/run.py", line 32, in run
fhdhr = fHDHR_OBJ(settings, logger, db, plugins, versions, web, scheduler, deps)
File "/app/fHDHR/__init__.py", line 42, in __init__
self.fhdhr.origins = Origins(self.fhdhr)
File "/app/fHDHR/origins/__init__.py", line 25, in __init__
self.origin_selfadd()
File "/app/fHDHR/origins/__init__.py", line 43, in origin_selfadd
self.origins_dict[method] = self.fhdhr.plugins.plugins[plugin_name].Plugin_OBJ(plugin_utils)
File "/app/plugins/fHDHR_plugin_origin_locast/origin/__init__.py", line 25, in __init__
self.login()
File "/app/plugins/fHDHR_plugin_origin_locast/origin/__init__.py", line 142, in login
self.token = self.get_token()
File "/app/plugins/fHDHR_plugin_origin_locast/origin/__init__.py", line 172, in get_token
loginRes = loginReq.json()
File "/usr/local/lib/python3.8/site-packages/requests/models.py", line 900, in json
return complexjson.loads(self.text, **kwargs)
File "/usr/local/lib/python3.8/site-packages/simplejson/__init__.py", line 525, in loads
return _default_decoder.decode(s)
File "/usr/local/lib/python3.8/site-packages/simplejson/decoder.py", line 370, in decode
obj, end = self.raw_decode(s)
File "/usr/local/lib/python3.8/site-packages/simplejson/decoder.py", line 400, in raw_decode
return self.scan_once(s, idx=_w(s, idx).end())
simplejson.errors.JSONDecodeError: Expecting value: line 1 column 1 (char 0)

Did you donate?

I haven't. I am not in the US. I just wanted to see if it would work.

This should fix the error you're seeing. Locast requires a donation to watch, and also only works in the US*.
https://github.com/fHDHR/fHDHR_plugin_origin_locast/pull/22

Do the settings not fool it into working without a VPN?

Spoofing your location violates the Terms of Service for Locast, and I cannot condone doing so.
Those settings are used for when Locast detects a user in the wrong DMA.


✨ newest listed nfts

Responsive need some fix (mobile version) plus I've got some huge page loading issue
We could try to limit the numbers of displayed nfts, for now it's 10 (by row)
PR type

[x] Bugfix
[x] Feature

What's new?

[x] Newest List NFT with carrousel card list

Before submitting Pull Request, please make sure:

[x] My contribution builds clean without any errors or warnings
[x] I've merged recent default branch -- main and I've no conflicts
[x] I've tried to respect high code quality standards
[x] I've didn't break any original functionality
[x] I've posted a screenshot of demonstrated change in this PR

Screenshot

I've seen it work twice, where it did not load the latest sales.. just the newest list.. and this loading only the latest sales

Some network issue or endpoint hmm

mmm seems super rare...

lol wait seems more serious

okay bumped subsquid tho to airdrop some space

Don't merge this for now, something is blocking UI

Don't merge this for now, something is blocking UI

Might be errors with SubSquid?

SubSquid updated instance so it might be way better now


Attribute formatting for fields on multiple lines

Issue Description
I have a problem with a specific formatting. I use CSharp attribute on certain fields and I want them to be on the same line. Everything is fine until my field declaration needs to be wrap on a second line. When this happen the formatter force the attribute above the field
Steps to Reproduce

Declare a field with an attribute
Wrap the declaration on a second line
Trigger the formatter

Expected Behavior
The formatter keep the attribute on the first line of the field declaration

Actual Behavior
The formatter put the attribute above the first line of the field declaration

O# uses the Roslyn Formatter which can be configured by an .editorconfig. See details at https://learn.microsoft.com/en-us/dotnet/fundamentals/code-analysis/code-style-rule-options
If there is a particular formatting configuration you are looking for but with no option, you can open a feature request at https://github.com/dotnet/roslyn/issues


iOS: Hand tracking gpu example errors after upgrading Xcode to 13.3 and MacOS 12.3

Please make sure that this is a solution issue.
System information (Please provide as much relevant information as possible)

OS Platform and Distribution (MacOS 12.3):
MediaPipe version:
Bazel version: 4.2.
Solution (e.g. HandTrackingGpuApp):
Programming Language and version ( iOS):

bazel build -c opt --config=ios_arm64 mediapipe/examples/ios/handtrackinggpu:HandTrackingGpuApp --verbose_failures
Describe the expected behavior:
ERROR: /Users/pi/mediapipe/mediapipe/examples/ios/handtrackinggpu/BUILD:34:16: AssetCatalogCompile mediapipe/examples/ios/handtrackinggpu/HandTrackingGpuApp-intermediates/xcassets failed: (Exit 127): xctoolrunner failed: error executing command
(cd /private/var/tmp/_bazel_pi/42d475cadf09c8a581c9bfebea7fe9e7/execroot/mediapipe &&
exec env -
APPLE_SDK_PLATFORM=iPhoneOS
APPLE_SDK_VERSION_OVERRIDE=15.4
XCODE_VERSION_OVERRIDE=<IP_ADDRESS>E113
bazel-out/host/bin/external/build_bazel_rules_apple/tools/xctoolrunner/xctoolrunner actool --compile '[ABSOLUTE]bazel-out/applebin_ios-ios_arm64-opt-ST-50603ff4af65/bin/mediapipe/examples/ios/handtrackinggpu/HandTrackingGpuApp-intermediates/xcassets' --platform iphoneos --minimum-deployment-target 10.0 --compress-pngs --product-type com.apple.product-type.application --app-icon AppIcon --target-device iphone --target-device ipad --output-partial-info-plist '[ABSOLUTE]bazel-out/applebin_ios-ios_arm64-opt-ST-50603ff4af65/bin/mediapipe/examples/ios/handtrackinggpu/HandTrackingGpuApp-intermediates/xcassets-info.plist' '[ABSOLUTE]mediapipe/examples/ios/common/Assets.xcassets')
Execution platform: @local_execution_config_platform//:platform
env: python: No such file or directory
Target //mediapipe/examples/ios/handtrackinggpu:HandTrackingGpuApp failed to build
INFO: Elapsed time: 0.661s, Critical Path: 0.43s
INFO: 41 processes: 41 internal.
FAILED: Build did NOT complete successfully

https://github.com/bazelbuild/rules_apple/issues/243

Hi @Gaozhongpai ,
Still are you facing any issue w.r.t above issue?

I reinstalled the MacOS system back to 11 and solved the problem.

I am having this issue and would not like to revert my MacOS version. Any suggestions?

Hi @jackprescott ,
Could you restart your Macos back to 11 as per @Gaozhongpai .


Silent warning when argv.json has syntax errors

From https://github.com/microsoft/vscode/issues/212664
It seems that if the argv.json file has a syntax error (ie trailing comma), then we silently ignore all properties within. This is the reason why crash reporting wasn't enabled for me in https://github.com/microsoft/vscode/issues/212664. My full file was:
// This configuration file allows you to pass permanent command line arguments to VS Code.
// Only a subset of arguments is currently supported to reduce the likelihood of breaking
// the installation.
//
// PLEASE DO NOT CHANGE WITHOUT UNDERSTANDING THE IMPACT
//
// NOTE: Changing this file requires a restart of VS Code.
{
	// Use software rendering instead of hardware accelerated rendering.
	// This can help in cases where you see rendering issues in VS Code.
	// "disable-hardware-acceleration": true,
	// Allows to disable crash reporting.
	// Should restart the app if the value is changed.
	"enable-crash-reporter": true,
	// Unique id used for correlating crash reports sent from this instance.
	// Do not edit this value.
	"crash-reporter-id": "2f300b31-7453-4506-97d0-93411b2c21c7",
	"locale": "en",
	// "log-level": "trace"
}

Notice the trailing comma after locale.
A few ideas:

We should further sanitize the JSON such that trailing commas are removed before passing it to JSON.parse.
We should also show a warning notification on startup so the user is aware of the issue, with an action to open the file.

https://github.com/microsoft/vscode/pull/215551 adds support to parse including trailing commas and shows this warning if it fails on startup:

This bug has been fixed in the latest release of VS Code Insiders!
@joaomoreno, you can help us out by commenting /verified if things are now working as expected.
If things still don't seem right, please ensure you're on version c2e20cb17fae44eb26611cb9a4690059cea0e605 of Insiders (today's or later - you can use Help: About in the command palette to check), and leave a comment letting us know what isn't working as expected.
Happy Coding!


Cannot connect anymore after RPi upgrade (Jessie -> Stretch)

I have a installation of PiVPN running on a RPi3, it has run without problems for almost a year. Today I upgraded (apt-get dist-upgrade) from Jessie to Stretch, and now I cannot connect to the PiVPN anymore.
Now, my knowlegde of Linuz is very limited, and therefore troubleshooting is also dificult for me. I can SSH with putty to the RPi, so network-connectivity is up. I also checked if Internet could be accessed, and it can (I also have Domoticz running on the same Pi, and that fetches weather-data as usual).
I have tried to check if openVPN is running with the following commands (and their respective output):
sudo service openvpn status
● openvpn.service - OpenVPN service
   Loaded: loaded (/lib/systemd/system/openvpn.service; enabled; vendor preset: enabled)
   Active: active (exited) since Mon 2018-08-06 17:53:11 CEST; 7min ago
  Process: 450 ExecStart=/bin/true (code=exited, status=0/SUCCESS)
 Main PID: 450 (code=exited, status=0/SUCCESS)
   CGroup: /system.slice/openvpn.service

Aug 06 17:53:11 raspberrypi systemd[1]: Starting OpenVPN service...
Aug 06 17:53:11 raspberrypi systemd[1]: Started OpenVPN service.

ps auxww | grep openvpn
nobody     361  0.0  0.5   8564  5312 ?        Ss   17:53   0:00 /usr/sbin/openvpn --daemon ovpn-server --status /run/openvpn/server.status 10 --cd /etc/openvpn --config /etc/openvpn/server.conf --writepid /run/openvpn/server.pid
pi        1405  0.0  0.0   4372   556 pts/0    S+   18:01   0:00 grep --color=auto openvpn

Since I see no errors, I assume everything is up-and-running. However, when I try to connect using the native openVPN Android-app, it just sits their waiting for a connection.
Any ideas what might be wrong, or what I could try?
Edit: I also found Issue #343, but that is apparently not my issue, because I do not see a verify error after following through the first steps that are described.

Attempt a connection, then post the raspberry pi log, which you can read with cat /var/log/openvpn.log (omit your ip if necessary).

'''
Mon Aug  6 19:28:21 2018 router-ip:38643 VERIFY ERROR: depth=0, error=CRL $
Mon Aug  6 19:28:21 2018 router-ip:38643 OpenSSL: error:14089086:SSL routi$
Mon Aug  6 19:28:21 2018 router-ip:38643 TLS_ERROR: BIO read tls_read_plai$
Mon Aug  6 19:28:21 2018 router-ip:38643 TLS Error: TLS object -> incoming$
Mon Aug  6 19:28:21 2018 router-ip:38643 TLS Error: TLS handshake failed
'''
I see a verify error here, does this mean I do need to follow the directions in issue #343?

Yes, looks like it’s the same expired CRL error (even though your output is truncated).

Okay, I'll give his directions a try tonight or tomorrow and report back here.

Okay, couldn't contain myself, and turned the laptop back on :)
The truncating of the log-file is due to the fact that i copied it from my phone I think. When I look at the log-file on the laptop with putty, I see the complete lines.
Anyway: the solution worked like a charm! Thanks for your help @orazioedoardo !