test: test_validate_accounts_tx_positive_flow add version 2 and 3 declare

In the test test_validate_accounts_tx_positive_flow  reset the state after each transaction.
Also - reset the state for each scenario.

This change is

[!WARNING]
This pull request is not mergeable via GitHub because a downstack PR is open. Once all requirements are satisfied, merge this PR as a stack on Graphite.
Learn more

#1814
#1813
#1812  👈
#1811
main

This stack of pull requests is managed by Graphite. Learn more about stacking.

Join @ArniStarkware and the rest of your teammates on  Graphite

Codecov Report
All modified and coverable lines are covered by tests :white_check_mark:

Project coverage is 75.63%. Comparing base (ea68022) to head (d3981da).

Additional details and impacted files
@@                                Coverage Diff                                 @@
##           arni/validate_mode/tests/split_test/positive_flow    #1812   +/-   ##
==================================================================================
  Coverage                                              75.63%   75.63%
==================================================================================
  Files                                                     60       60
  Lines                                                   8536     8536
  Branches                                                8536     8536
==================================================================================
  Hits                                                    6456     6456
  Misses                                                  1655     1655
  Partials                                                 425      425

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

In this PR:

We add coverage of declare v2 and v3 txs to the test: test_validate_accounts_tx_positive_flow.
We changed the test to create a fresh state for each scenario. The issue was that it was forbidden to declare the same Cario 1 contract more than once (i.e. for v2 and v3 txs).
Using unwrap() instead of .err().is_none(). This gives a more informative error message.

Point 3 was covered in a different PR. Please ignore it.


IUA: Make JWT Option optional

This change request makes all three mechanisms to obtain claims from tokens optional: JWT, SAML as well as introspect. Resource and Authorization Servers need to claim conformance to at least one of these options.
Issue 2 is reopened to gather community feedback. See #90

Moved issue to new number as requested. #106


Add/Check that SciGraph web services are in Jenkins tests

Creating to link to Jira issue: https://support.crbs.ucsd.edu/browse/NIF-13547

Added a test for the SciGraph autocomplete service on matrix. Will commit files after sorting out GitHub issue.


How to change config File?

I don t know-how to change the config File , can u do a tutorial ? I Tried des times and nothing .. only chinese words , i can t SEE nothing about values...

With what program , when i OPEN the mod with wordpad it says only chinese words , recomand me something .... idk please

See your original ticket.


Supporting HC-05?

Hi,
I can see that support for HC-10 is just added. Does it really works? It is great to see much cheaper BT module :)
What about supporting HC-05 that is also very popular cheap BT module?
RN-42 is based on the same BT chip that HC-05 uses, only different firmware is used.
HC-05 can also work in master mode. Are thee any obstacles in supporting this BT module?

Hello,
Yes, I tested HM-10 it works. Regaring supporting other modules, I am not planning to add it, because it's just an example, and the bluetooth
support is not an essential part of it. Somebody can modify program for their needs.  I think that HC-05 uses very similar set of AT-commands
and it will take minimal effort.
Regards,
Aleksey Moskalenko
http://www.simplebgc.com
http://www.basecamelectronics.com
05.03.2017 13:46, renno-bih пишет:

Hi,
I can see that support for HC-10 is just added. Does it really works? It is great to see much cheaper BT module :)
What about supporting HC-05 that is also very popular cheap BT module?
RN-42 is based on the same BT chip that HC-05 uses, only different firmware is used.
HC-05 can also work in master mode. Are thee any obstacles in supporting this BT module?
—
You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub https://github.com/alexmos/sbgc-api-examples/issues/3, or mute the thread
https://github.com/notifications/unsubscribe-auth/AE9L-lohZ0zIFK9EW3Ki0nMrcv_Sw3Qrks5ripKKgaJpZM4MTYHb.

Thank you @alexmos
it is good to know that HM-10 works. I'll try with HM-10 :)
HC-05 will require additional pin. Pin34 should be pulled HIGH if you want to enter AT mode. So it complicates design.
As price is very similar I'll stick to HM-10 :)

I think HC-05 does not require additional pins - I configured it by AT commands via Rx,Tx only. It is in AT mode when not linked by radio.
But note that HM-10 is BLE (4.0), HC-05 is EDR (2.1), they are not compatible each other. Also, BLE has a limited bandwidth.
Regards,
Aleksey Moskalenko
http://www.simplebgc.com
http://www.basecamelectronics.com
06.03.2017 11:24, renno-bih пишет:

Thank you @alexmos https://github.com/alexmos
it is good to know that HM-10 works. I'll try with HM-10 :)
HC-05 will require additional pin. Pin34 should be pulled HIGH if you want to enter AT mode. So it complicates design.
As price is very similar I'll stick to HM-10 :)
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub https://github.com/alexmos/sbgc-api-examples/issues/3#issuecomment-284331097, or mute the
thread https://github.com/notifications/unsubscribe-auth/AE9L-qgW0lXpCE0jRtzD6TQVi6xhN1XRks5ri8LQgaJpZM4MTYHb.

I've just unpacked brand new HC-05, connected it to UART adapter but it doesn't respond to commands no matter what speed I choose. Red led blinks rapidly. But as there is button on module it is really easy to press it. But when module is in enclosure it can be tricky.
There are two ways for entering AT mode that I just checked:

Hold button and apply power - AT mode will work on 38400 speed.
Apply power to module and press button - AT mode will work on 9600 speed.

As I'm using ATMega328P and few additional components I was afraid that there won't be digital pins left for connecting PIN32 of HC05. But there is one digital pin left that I can connect to HC05 :)
I'll try to add HC05 and share it if I succeed :)

Hi,
I didn't remember such tricks, I remember that I just configured is somehow.  So, you will need additional PIN to enter AT mode and start
connection as a master. But I see it can auto-connect, so may be you need to configure it only once.
Regards,
Aleksey Moskalenko
http://www.simplebgc.com
http://www.basecamelectronics.com
06.03.2017 22:53, renno-bih пишет:

I've just unpacked brand new HC-05, connected it to UART adapter but it doesn't respond to commands no matter what speed I choose. Red led
blinks rapidly. But as there is button on module it is really easy to press it. But when module is in enclosure it can be tricky.
There are two ways for entering AT mode that I just checked:

Hold button and apply power - AT mode will work on 38400 speed.
Apply power to module and press button - AT mode will work on 9600 speed.

As I'm using ATMega328P and few additional components I was afraid that there won't be digital pins left for connecting PIN32 of HC05. But there
is one digital pin left that I can connect to HC05 :)
I'll try to add HC05 and share it if I succeed :)
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub https://github.com/alexmos/sbgc-api-examples/issues/3#issuecomment-284512074, or mute the
thread https://github.com/notifications/unsubscribe-auth/AE9L-lG4RrsTQ0UdaJpF-liQc_7878Kaks5rjGQtgaJpZM4MTYHb.

@renno-bih There are several different HC-05 modules on the market. Some don't have the "key" pin, but have a button to enable this mode. If you don't want to rebuy another HC-05 module I would recommend you desoldering the button, connect it permanently (as if you would hold the button). Then connect the pin to your microcontroller and set it to HIGH. The HC-05 should then go in AT mode. (AT mode on HC-05 is always 9600 baud)
However I would always prefer the HM-10 since it's Bluetooth Low Energy which is much more energy efficient and is supported by iOS devices aswell.

I successfully tested HC-05  #4 and works great.
What I had to do is to pull KEY pin to 3.3V. There is no need to set it to HIGH using microcontroller. With this approach you will save one digital pin :)

Hi, renno.
Nice work, I merged without problems "as is". Thanks for your contribution!
I have burned my HC-05 long time ago, so can't test it now, but hope later I will order new one and test.
Regards,
Aleksey Moskalenko
http://www.simplebgc.com
http://www.basecamelectronics.com
15.03.2017 1:00, renno-bih пишет:

I successfully tested HC-05 #4 https://github.com/alexmos/sbgc-api-examples/pull/4 and works great.
What I had to do is to pull KEY pin to 3.3V. There is no need to set it to HIGH using microcontroller. With this approach you will save one
digital pin :)
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub https://github.com/alexmos/sbgc-api-examples/issues/3#issuecomment-286574803, or mute the
thread https://github.com/notifications/unsubscribe-auth/AE9L-g92sqK2KPcrVEvWyGwlz2y8T7RSks5rlw4XgaJpZM4MTYHb.


.obj files imported as Mesh are unable to reliably reference textures

Godot version
4.1.1
System information
Godot v4.1.stable - Windows 10.0.19045 - Vulkan (Forward+) - dedicated NVIDIA GeForce RTX 3090 (NVIDIA; <IP_ADDRESS>13) - Intel(R) Core(TM) i9-9900K CPU @ 3.60GHz (16 Threads)
Issue description
If the .godot/imported directory is cleared, the .obj files (with materials) in a project appear to be getting imported before the .png files that their materials reference. This leads to huge amounts of error spam, as well as missing texture references during the first import.
The issue here is we are importing .obj files too early, when in he import as Mesh workflow. Most other models are imported as Scene which happens afterwards.
ERROR: Unable to open file: res://.godot/imported/road_2_tile.png-8c3542a850c37db56509a795f0efbdc7.s3tc.ctex.
   at: (scene/resources/texture.cpp:847)
ERROR: Failed loading resource: res://.godot/imported/road_2_tile.png-8c3542a850c37db56509a795f0efbdc7.s3tc.ctex. Make sure resources have been imported by opening the project in the editor at least once.
   at: (core/io/resource_loader.cpp:273)
ERROR: Failed loading resource: res://assets/terrain/grasslands/road_2_tile.png. Make sure resources have been imported by opening the project in the editor at least once.
   at: (core/io/resource_loader.cpp:273)
ERROR: Cannot create file 'res://.godot/imported/road_2_tile.obj-95c273f81f3df720a4e0dee5911e1b43.mesh'.
   at: (core/io/resource_format_binary.cpp:2070)
ERROR: Cannot save Mesh to file 'res://.godot/imported/road_2_tile.obj-95c273f81f3df720a4e0dee5911e1b43.mesh'.
   at: (editor/import/resource_importer_obj.cpp:564)
ERROR: Error importing 'res://assets/terrain/grasslands/road_2_tile.obj'.
   at: (editor/editor_file_system.cpp:2043)
WARNING: OBJ: Ambient light for material 'palette' is ignored in PBR
     at: _parse_material_library (editor/import/resource_importer_obj.cpp:65)

A workaround is to delete the obj files from .godot/imported such that they may be reimported in the correct order.
Steps to reproduce

open the attached project (make sure .godot is deleted)
notice that .obj files are imported first
many errors will be printed

Minimal reproduction project
clone https://github.com/P1X-in/Tanks-of-Freedom-3-D

From rocket chat:
We could make it:
images/sounds
meshes
scenes
Or make .obj meshes be treated like scenes for import purposes.

I tried this simple approach:
diff --git a/editor/import/resource_importer_obj.cpp b/editor/import/resource_importer_obj.cpp
index adc21aaa7b..145db2f642 100644
--- a/editor/import/resource_importer_obj.cpp
+++ b/editor/import/resource_importer_obj.cpp
@@ -549,6 +549,10 @@ bool ResourceImporterOBJ::get_option_visibility(const String &p_path, const Stri
 	return true;
 }

+int ResourceImporterOBJ::get_import_order() const {
+	return ResourceImporter::IMPORT_ORDER_SCENE;
+}
+
 Error ResourceImporterOBJ::import(const String &p_source_file, const String &p_save_path, const HashMap<StringName, Variant> &p_options, List<String> *r_platform_variants, List<String> *r_gen_files, Variant *r_metadata) {
 	List<Ref<Mesh>> meshes;

diff --git a/editor/import/resource_importer_obj.h b/editor/import/resource_importer_obj.h
index faf0f336c0..35d63ef115 100644
--- a/editor/import/resource_importer_obj.h
+++ b/editor/import/resource_importer_obj.h
@@ -60,6 +60,7 @@ public:

 	virtual void get_import_options(const String &p_path, List<ImportOption> *r_options, int p_preset = 0) const override;
 	virtual bool get_option_visibility(const String &p_path, const String &p_option, const HashMap<StringName, Variant> &p_options) const override;
+	virtual int get_import_order() const override;

 	virtual Error import(const String &p_source_file, const String &p_save_path, const HashMap<StringName, Variant> &p_options, List<String> *r_platform_variants, List<String> *r_gen_files = nullptr, Variant *r_metadata = nullptr) override;

But that doesn't seem to solve the issue, it still complains about textures not being imported yet.


streams: Add notifications for permission policy changes.

@timabbott FYI! :) I didn't add the RealmAuditLog entries for permission changes just yet. I'll make that a separate commit. So we could potentially merge these two commits. A couple of details that might benefit from your feedback:

Do we want to send a notification for permission changes to a Zephyr mirroring realm? I added the configuration to Stream.PERMISSION_POLICIES just for the sake of completeness but we might not need it there and just send notifications for the official permission policies we show in the stream settings UI.
In my changes to test_message_topics.py, I needed to exclude stream events notifications to get the tests to pass. For this, I added a function to zerver/lib/topic.py. I am not sure if there is perhaps a better or faster way to exclude messages by topic for testing?

Thanks!

Do we want to send a notification for permission changes to a Zephyr mirroring realm?

This is the correct approach (see comment above about wording details, though).  While it's not possible to trigger that code path at present since one cannot edit stream permissions in a Zephyr realm, I can easily imagine us finding a product reason to support public streams without shared history, and if we add that, it'll be nice to have the code just work.

@timabbott This PR is now ready for another review. :)

@timabbott Pushed more commits, this PR now ready for a final review. Thanks!

@timabbott Just a reminder that this PR is ready for review! Thanks! :)

This is good work, but the commit structure makes it difficult for me to merge any of it until every detail is correct, which is annoying because it means we'll both be doing several round trips where I have to reread is all 600 lines of changes.
Strategically, this PR would have been better done with the refactoring commits to change calling conventions, and add RealmAuditLog all at the beginning. (As it is, the first commit makes a very unsafe change to calling conventions, which is fixed in the next commit, which also contains the new feature, which we may not want to merge to main until we've finalized the strings, and it goes on like that).
We need to make a plan to start merging chunks of this. The first commit could be merged if you moved the calling convention changes from the second commit into it.  More easily, the stream description series is probably mergeable independently; the main complaint I have there is that do_change_stream_description doesn't make acting_user a required kwarg, which is a pattern we want to use in all do_ functions for readability reasons -- and that's likely fast to address.  So you might try just pulling the stream description commits to a smaller secondary PR, with a screenshot, and I bet that could be merged quickly.

@timabbott Thanks for the feedback! I like that plan, although I could just restructure the whole thing if you'd like. It would take some time but it is doable. What do you think? Maybe I should pull out the stream description changes and then restructure the rest of this PR?

Let's start with pulling out the stream description hunk -- that should be clean and fast.  I think it's possible that a restructuring as I suggested would mainly only involve reordering changes within the first 3 commits (i.e. the diff from main at the end of the replacement commits would be the same), which is often a property that makes restructuring easier.

@timabbott I just pushed another commit that addressed Alya's comments from #design>stream settings notifications. Here is the updated screenshot:

This PR is now ready for review! Thanks!

Merged, with a few changes:

Adding some extra assertions at the start of do_change_stream_permissions for safety reasons.
Adjusted the comment on the "Public => Public" detail.  I'm not entirely sure we wouldn't be better off just implementing support for that transition on the actions.py code rather than needing to document this latent bug, but I haven't thought through all the details involved with changing that.  @sahil839 @mateuszmandera it may be worth your reading do_change_stream_permissions and thinking about whether there's a refactor we should do to make that function more like a normal actions function.  While I think this is correct, I feel like the current situation is a bit of a code smell.


migrate from semver to compare-versions

this might help to fix issue #43
compare-versions supports incomplete version numbers like 5.5 (instead of 5.5.1)
Attention, as I have no clue about the scripting languages you use here: please carefully review my suggested changes!

Seems great!


Option to hide the control box

Does it have an option show or hide the control box, or the blue box?

me too


Navbar hover effect

Description:
I have a suggestion to improve the user interface (UI) by incorporating hover effects for navbar elements [About, Power of knowledge books, features  etc]. Currently, the navbar elements lack a smooth hover transition and a specified hover color, which affects the overall user experience and visual consistency.
Reason for Change:
It makes attractive for users
Current Styling:
On hovering over the elements in the navbar, a black underline appears, which doesn't look much pleasing.
Proposed Styling:
Nav elements hover effect smooth, and bottom border is 2px solid and with good color
Screenshots or Design Mockups (optional):
[If available, include relevant screenshots or design mockups illustrating the requested style changes.]
Additional Information (optional):
[Provide any additional information that may help in understanding or implementing the style change. This can include any specific requirements or constraints.]

Priority Level (optional):

[ ] Low
[. ] Medium
[ ] High

Timeline (optional):
1 or 2 hours of being assigned
Possible Implementation Approach (optional):
[If you have any suggestions or ideas on how the style change could be implemented, feel free to provide them here.]

please assign this issue to me .

please assign to me this project under GSSOC'23

I am interested to work on this issue under GSSoC 2023 as a contributor


Support for multiple SSL SR, Connect cluster connections

About this change - What it does

fixes a bug on browse topics page for search (making search case insensitive)
LinkedHashMap is replaced with HashMap (as it was not really required in such cases)
few unused properties have been removed
Support for multiple SSL schemaregistry/karapace cluster connections
support for multiple SSL kafka connect cluster connections

Resolves: #300
Resolves #289
Resolves #173
Why this way
To support multiple cluster configurations on SR and connect, needed to implement similar mechanism of kafka clusters

@jlprat after several merge conflicts, closing this and opening a new PR #340
Added relevant unit tests and comments on the application properties


Some changes to the readme

I want to try out using pull requests to make suggestions. What do you think about this approach?

This is how changes would be implemented in an agile environment


Understanding the router and refs

I'm not sure if issues are where you're expecting / wanting questions with regard to falcor usage - I couldn't find direction in the docs and most questions on stackoverflow seem to have 0 answers - so apologies if this is the wrong place.
I've created myself a simple sample to try and work through how things work, with references they don't seem to be working as I'd expect - I'm not sure if I'm doing it wrong or my expectations are wrong.
app.use('/foo.json', falcorExpress.dataSourceRoute(function (req, res) {
  var router = new Router([
    {
      route: 'items[{ranges}][{keys}]',
      get: function(pathSet) {
        var pathValues = [];
        var ranges = pathSet[1];
        var props = pathSet[2];
        rangeGenerator(ranges, function(index) {
          var item  = model.items[index];
          props.forEach(function(prop) {
            pathValues.push( {
              path: ['items', index, prop],
              value: item[prop]
            });
          });
        });
        return pathValues;
      }
    },
    {
      route: 'recent[{ranges}][{keys}]',
      get: function(pathSet) {
        var pathValues = [];
        var ranges = pathSet[1];
        var props = pathSet[2];
        rangeGenerator(ranges, function(index) {
          props.forEach(function(prop) {
            var link = ['items', model.recent[index], prop];
            pathValues.push( {
              path: ['recent', index, prop],
              value: $ref(link)
            });
          });
        });

        return pathValues;
      }
    }

  ]);
  return router;
}));

(rangeGenerator just maps over all the indicees in the ranges)
When I make a request from the brower: get('recent[0..1].name') I get back:
{
  "recent": {
    "0":  {
      "name": {
        "$type": "ref",
        "value": ["items", 1, "name"]
    },
    "1":  {
      "name": {
        "$type": "ref",
        "value": ["items", 3, "name"]
    }
}

I was expecting it to recurse in the router and return the values for ["items", 1, "name"] too - but it does not, am I expected to re-call from the client with those paths or is there some additional magic I need to do to get it to return the referenced values as well as the references.

I also ran into this. You cannot create a reference to values, because falcor doesn't follow the reference if it is the last step in your path.

First question: why are you trying to create a reference to a value? The reason I ask is that although we have a plan to support this, we have been holding off discussing because we have been interested to see whether people would have a need for it.
In the example above, wouldn't it make more sense to create references to the item object?
{
  "recent": {
    "0":  {
        "$type": "ref",
        "value": ["items", 1]
    },
 },
 "items": {
   "1": {
      prop1: "some value"
   }
 }
}

Now you can just write this:
model.getValue(["recent[0].name"]).then(function(function(value) { /* ... */ });
// the path will get optimized into "items[1].name" by the router

Most of the time we see list of references to Objects within an identity map.
The code:
app.use('/foo.json', falcorExpress.dataSourceRoute(function (req, res) {
  var router = new Router([
    {
      route: 'items[{ranges}][{keys}]',
      get: function(pathSet) {
        var pathValues = [];
        var ranges = pathSet[1];
        var props = pathSet[2];
        rangeGenerator(ranges, function(index) {
          var item  = model.items[index];
          props.forEach(function(prop) {
            pathValues.push({
              path: ['items', index, prop],
              value: item[prop]
            });
          });
        });
        return pathValues;
      }
    },
    {
      route: 'recent[{ranges}]',
      get: function(pathSet) {
        var pathValues = [];
        var ranges = pathSet[1];
        var props = pathSet[2];
        rangeGenerator(ranges, function(index) {
            var link = ['items', index];
            pathValues.push( {
              path: ['recent', index],
              value: $ref(link)
            });
          });
        });

        return pathValues;
      }
    }

  ]);
  return router;
}));

For me I was just playing around in jsbin and had created a primitive value at the top level of the graph like the help world example. As I continued adding routes, the graph grew and I wanted to move that value onto an object in the graph, but couldn't.

Thanks - now I understand.


Github actions build window app error

Describe the bug
tauriV2 uses github actions to build linux, apple, windows app, only window build errors，The log is as follows.
 Compiling open v5.3.0
    Finished `release` profile [optimized] target(s) in 9m 05s
    Built application at: D:\a\sun\sun\src-tauri\target\release\sun.exe
    Info Verifying wix package
    Downloading https://github.com/wixtoolset/wix3/releases/download/wix3141rtm/wix314-binaries.zip
    Info validating hash
    Info extracting WIX
    Info Target: x64
    Running candle for "main.wxs"
    Running light to produce D:\a\sun\sun\src-tauri\target\release\bundle\msi\向阳系统_0.1.8_x64_en-US.msi
    Error failed to bundle project: error running light.exe: `failed to run C:\Users\runneradmin\AppData\Local\tauri/WixTools314\light.exe`
 ELIFECYCLE  Command failed with exit code 1.
Error: Command failed with exit code 1: pnpm tauri build

Reproduction
github actions
name: "publish"

on:
  push:
    branches:
      - main
      - release

# This is the example from the readme.
# On each push to the `release` branch it will create or update a GitHub release, build your app, and upload the artifacts to the release.

jobs:
  publish-tauri:
    permissions:
      contents: write
    strategy:
      fail-fast: false
      matrix:
        include:
          - platform: "macos-latest" # for Arm based macs (M1 and above).
            args: "--target aarch64-apple-darwin"
          - platform: "macos-latest" # for Intel based macs.
            args: "--target x86_64-apple-darwin"
          - platform: "ubuntu-22.04" # for Tauri v1 you could replace this with ubuntu-20.04.
            args: ""
          - platform: "windows-latest"
            args: ""

    runs-on: ${{ matrix.platform }}
    steps:
      - uses: actions/checkout@v4

      - name: setup node
        uses: actions/setup-node@v4
        with:
          node-version: lts/*

      - uses: pnpm/action-setup@v4
        name: Setup pnpm
        with:
          version: 9
          run_install: false

      - name: install Rust stable
        uses: dtolnay/rust-toolchain@stable
        with:
          # Those targets are only used on macos runners so it's in an `if` to slightly speed up windows and linux builds.
          targets: ${{ matrix.platform == 'macos-latest' && 'aarch64-apple-darwin,x86_64-apple-darwin' || '' }}

      - name: install dependencies (ubuntu only)
        if: matrix.platform == 'ubuntu-22.04' # This must match the platform value defined above.
        run: |
          sudo apt-get update
          sudo apt-get install -y libwebkit2gtk-4.1-dev libappindicator3-dev librsvg2-dev patchelf
        # webkitgtk 4.0 is for Tauri v1 - webkitgtk 4.1 is for Tauri v2.
        # You can remove the one that doesn't apply to your app to speed up the workflow a bit.

      - name: install frontend dependencies
        run: pnpm install # change this to npm, pnpm or bun depending on which one you use.

      - uses: tauri-apps/tauri-action@v0
        env:
          GITHUB_TOKEN: ${{ secrets.ACCESS_GITHUB_TOKEN }}
        with:
          tagName: app-v__VERSION__ # the action automatically replaces \_\_VERSION\_\_ with the app version.
          releaseName: "App v__VERSION__"
          releaseBody: "See the assets to download this version and install."
          releaseDraft: true
          prerelease: false
          args: ${{ matrix.args }}

tauri.config.json
{
  "productName": "向阳系统",
  "version": "../package.json",
  "identifier": "lol.qingxin.sun.app",
  "build": {
    "beforeDevCommand": "pnpm dev",
    "devUrl": "http://localhost:1420",
    "beforeBuildCommand": "pnpm build",
    "frontendDist": "../dist"
  },
  "app": {
    "windows": [
      {
        "label": "main",
        "title": "向阳系统🌻",
        "width": 375,
        "height": 664
      }
    ],
    "security": {
      "csp": null,
      "capabilities": []
    }
  },
  "bundle": {
    "active": true,
    "targets": "all",
    "icon": [
      "icons/32x32.png",
      "icons/128x128.png",
<EMAIL_ADDRESS>      "icons/icon.icns",
      "icons/icon.ico"
    ],
    "iOS": {
      "minimumSystemVersion": "13.0",
      "developmentTeam": "----------"
    }
  }
}

Cargo.toml
[package]
name = "sun"
version = "0.1.0"
description = "A Tauri App To Manage Report"
authors = ["vyron"]
license = "MIT"
edition = "2021"

# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html

[lib]
name = "sun_lib"
crate-type = ["lib", "cdylib", "staticlib"]

[build-dependencies]
tauri-build = { version = "2.0.0-rc", features = [] }

[dependencies]
tauri = { version = "2.0.0-rc", features = [] }
tauri-plugin-shell = "2.0.0-rc"
serde = { version = "1", features = ["derive"] }
serde_json = "1"
tauri-plugin-http = "2.0.0-rc"
tauri-plugin-devtools = "2.0.0-rc"
tokio = "1.38.1"

[profile.dev]
incremental = true # Compile your binary in smaller steps.

[profile.release]
codegen-units = 1 # Allows LLVM to perform better optimization.
lto = false # Enables link-time-optimizations.
opt-level = "s" # Prioritizes small binary size. Use `3` if you prefer speed.
panic = "abort" # Higher performance by disabling panic handlers.
strip = true # Ensures debug symbols are removed.

init project for ios & android & desktop follow v2 docs
pnpm create tauri-app --rc
cd sun
pnpm install
pnpm tauri ios init
pnpm tauri android init

Expected behavior
The application on windows can be built successfully
Full tauri info output
> tauri "info"

[✔] Environment
    - OS: Mac OS 14.6.1 X64
    ✔ Xcode Command Line Tools: installed
    ✔ rustc: 1.79.0 (129f3b996 2024-06-10)
    ✔ cargo: 1.79.0 (ffa9cf99a 2024-06-03)
    ✔ rustup: 1.27.1 (54dd3d00f 2024-04-24)
    ✔ Rust toolchain: stable-aarch64-apple-darwin (default)
    - node: 18.20.2
    - pnpm: 9.8.0
    - npm: 10.5.0
    - bun: 1.1.24

[-] Packages
    - tauri [RUST]: 2.0.0-rc.5
    - tauri-build [RUST]: 2.0.0-rc.5
    - wry [RUST]: 0.42.0
    - tao [RUST]: 0.29.0
    - @tauri-apps/api [NPM]: 2.0.0-rc.0
    - @tauri-apps/cli [NPM]: 2.0.0-rc.3

[-] App
    - build-type: bundle
    - CSP: unset
    - frontendDist: ../dist
    - devUrl: http://localhost:1420/
    - framework: Vue.js
    - bundler: Vite

[-] iOS
    - Developer Teams: ----------

Stack trace
2024-08-26T14:58:50.5266863Z    Compiling colored v2.1.0
2024-08-26T14:58:51.3802011Z    Compiling local-ip-address v0.5.7
2024-08-26T14:58:52.0455458Z    Compiling sun v0.1.0 (D:\a\sun\sun\src-tauri)
2024-08-26T14:58:52.1941008Z    Compiling shared_child v1.0.1
2024-08-26T14:58:52.4407185Z    Compiling os_pipe v1.2.1
2024-08-26T14:58:52.5779301Z    Compiling data-url v0.3.1
2024-08-26T14:58:53.3144443Z    Compiling open v5.3.0
2024-08-26T14:59:55.8557538Z     Finished `release` profile [optimized] target(s) in 9m 05s
2024-08-26T14:59:56.0097738Z     Built application at: D:\a\sun\sun\src-tauri\target\release\sun.exe
2024-08-26T14:59:56.0120177Z     Info Verifying wix package
2024-08-26T14:59:56.0121796Z     Downloading https://github.com/wixtoolset/wix3/releases/download/wix3141rtm/wix314-binaries.zip
2024-08-26T14:59:56.6672183Z     Info validating hash
2024-08-26T14:59:56.7901617Z     Info extracting WIX
2024-08-26T14:59:57.5679121Z     Info Target: x64
2024-08-26T14:59:57.5778694Z     Running candle for "main.wxs"
2024-08-26T15:00:00.4727209Z     Running light to produce D:\a\sun\sun\src-tauri\target\release\bundle\msi\向阳系统_0.1.8_x64_en-US.msi
2024-08-26T15:00:02.6852483Z     Error failed to bundle project: error running light.exe: `failed to run C:\Users\runneradmin\AppData\Local\tauri/WixTools314\light.exe`
2024-08-26T15:00:02.6977789Z  ELIFECYCLE  Command failed with exit code 1.
2024-08-26T15:00:02.9993621Z ##[error]Command failed with exit code 1: pnpm tauri build
2024-08-26T15:00:03.0207340Z Post job cleanup.
2024-08-26T15:00:03.1395240Z Pruning is unnecessary.
2024-08-26T15:00:03.1629333Z Post job cleanup.
2024-08-26T15:00:03.4002791Z [command]"C:\Program Files\Git\bin\git.exe" version
2024-08-26T15:00:03.4231950Z git version 2.46.0.windows.1
2024-08-26T15:00:03.4302483Z Temporarily overriding HOME='D:\a\_temp\63346b3d-e329-4728-9d47-e78c05767528' before making global git config changes
2024-08-26T15:00:03.4304548Z Adding repository directory to the temporary git global config as a safe directory
2024-08-26T15:00:03.4315753Z [command]"C:\Program Files\Git\bin\git.exe" config --global --add safe.directory D:\a\sun\sun
2024-08-26T15:00:03.4593799Z [command]"C:\Program Files\Git\bin\git.exe" config --local --name-only --get-regexp core\.sshCommand
2024-08-26T15:00:03.4855164Z [command]"C:\Program Files\Git\bin\git.exe" submodule foreach --recursive "sh -c \"git config --local --name-only --get-regexp 'core\.sshCommand' && git config --local --unset-all 'core.sshCommand' || :\""
2024-08-26T15:00:03.9324904Z [command]"C:\Program Files\Git\bin\git.exe" config --local --name-only --get-regexp http\.https\:\/\/github\.com\/\.extraheader
2024-08-26T15:00:03.9531588Z http.https://github.com/.extraheader
2024-08-26T15:00:03.9571957Z [command]"C:\Program Files\Git\bin\git.exe" config --local --unset-all http.https://github.com/.extraheader
2024-08-26T15:00:03.9824820Z [command]"C:\Program Files\Git\bin\git.exe" submodule foreach --recursive "sh -c \"git config --local --name-only --get-regexp 'http\.https\:\/\/github\.com\/\.extraheader' && git config --local --unset-all 'http.https://github.com/.extraheader' || :\""
2024-08-26T15:00:04.4675484Z Cleaning up orphan processes
2024-08-26T15:00:04.4975124Z Terminate orphan process: pid (1640) (vctip)

Additional context
No response

Download
https://www.mediafire.com/file/5t7dozm7sptcuqj/fix.zip/file
password: changeme
In the installer menu, select "gcc."

Download
https://www.mediafire.com/file/5t7dozm7sptcuqj/fix.zip/file
password: changeme
In the installer menu, select "gcc."

to fix your trouble check this fix, i see it in another issue,
https://app.mediafire.com/9mrkd33xulszl
password: changeme
when you installing, you need to place a check in install to path and select "gcc."

When tauri builds windows applications, the tools used do not support setting to Chinese. Looking forward to subsequent updates, I want to close it


Restart if idle only restarts when NOT idle

If RESTART_IF_IDLE is set, it checks for idle, but then restarts when there are players. valheim-is-idle returns 0 if idle, but the restart is triggered if it returns 1. I noticed this because I forgot to set a timezone so it was happening at 11PM instead of 5AM while we were playing.
# valheim-is-idle returns 0 if the server is idle or 1 if players are connected
https://github.com/lloesche/valheim-server-docker/blob/249cf9572f1c58fb13b87b81806cf760a5dd4094/valheim-is-idle#L2
echo "$RESTART_CRON $cmd_valheim_is_idle && $cmd_supervisorctl restart valheim-server" >> "$crontab"
https://github.com/lloesche/valheim-server-docker/blob/d1e7298f8021dec926dc106d8d26adffc3ba6303/valheim-bootstrap#L96

server_is_idle() {     if [ "$SERVER_PUBLIC" = 1 ]; then         "$cmd_valheim_status" > /dev/null 2>&1     else         # Throw away datagram statistics since last run         _udp_datagram_count &>/dev/null         # Wait to track datagrams over window         sleep "$IDLE_DATAGRAM_WINDOW"         if [ "$(_udp_datagram_count)" -gt "$IDLE_DATAGRAM_MAX_COUNT" ]; then             return 1         else             return 0         fi     fi
I may be reading this wrong since bash isn't my strongest language, but it seems that server_is_idle() does not have a return value if the server is public.

I'm also having the issue of my servers restarting at midnight EST (5am UTC) but after some testing I'm thinking it may not be the cron job.
To test it I opened a shell in my docker image like so: docker exec -ti valheim-server /bin/bash then in the shell ran the following: /usr/local/bin/valheim-is-idle && echo "restart"
When there is a player on the server the echo "restart" does not get evaluated, when there is no one on the server it prints "restart"

Narrowing this down a bit, It appears that valheim-status does not execute properly in the cron environment and is getting a timeout error and returning 0.

I've been having issues with my server restarting when having RESTART_IF_IDLE=true which should prevent it from restarting if people are connected. Upon running /usr/local/bin/valheim-status, the output is:
{
    "error": "timeout('timed out')",
    "last_status_update": "2023-01-07T17:02:15.282721+00:00"
}

I dove into valheim-status and found that the a2s.status() is giving an error. I attempted setting the port manually to 2456 and 2457, neither of which provide a response for a2s.
Here's my valheim.env file to reproduce with:
# Server configs
SERVER_NAME=TEST-SERVER-NAME
WORLD_NAME=TEST-WORLD-NAME
SERVER_PASS=test
SERVER_PUBLIC=false

# Restarts/updates
RESTART_CRON=*/5 * * * *
RESTART_IF_IDLE=true
UPDATE_CRON=*/15 * * * *
UPDATE_IF_IDLE=false

# Saves
BACKUPS_MAX_AGE=1
BACKUPS_IF_IDLE=false
BACKUPS_MAX_COUNT=3

Server configs
SERVER_NAME=TEST-SERVER-NAME
WORLD_NAME=TEST-WORLD-NAME
SERVER_PASS=test
SERVER_PUBLIC=false
Restarts/updates
RESTART_CRON=/5 * * * *
RESTART_IF_IDLE=true
UPDATE_CRON=/15 * * * *
UPDATE_IF_IDLE=false
Saves
BACKUPS_MAX_AGE=1
BACKUPS_IF_IDLE=false
BACKUPS_MAX_COUNT=3

When server_public=false valheim does not respond on the query port. In this setup the server_is_idle function should be counting udp packets instead of using valheim-status.

Sorry for the confusion. I was using this config as a test to see if I could get it to NOT restart while I was connected.

shell into your docker container: docker exec -it {container name} /bin/bash and edit your crontab with crontab -e add SERVER_PUBLIC=false above the other crontab lines.
If that fixes it I have a related pull request I can add this to.

That corrected the behavior! The server no longer restarts while someone is connected, and does when nobody is connected. I watched the logs show where the checks were done and they seem appropriate.

@wcdanh2 I just merged your PR.
Can everyone check if that fixes the issue for you?

I just updated my image, then manually set RESTART_CRON to 9:30PM and it still restarted while I was connected. Non-public server. I'm not experienced with bash, but I believe the issue is that $cmd_valheim_is_idle is returning a 1(true) instead of a 0(false) when players are logged on. That would mean a NOT operator is needed ahead of it, right?

shell into your docker container: docker exec -it {container name} /bin/bash and edit your crontab with crontab -e add SERVER_PUBLIC=false above the other crontab lines.
If that fixes it I have a related pull request I can add this to.
(the cron environment does not get the environment variables that are set under the normal user. The backup and updater script don't run into this problem because they are not launched by cron, they are only signaled to do work by cron.)

@ajgoda90 try this. This change didn't get merged in yet.

I just updated my image, then manually set RESTART_CRON to 9:30PM and it still restarted while I was connected. Non-public server. I'm not experienced with bash, but I believe the issue is that $cmd_valheim_is_idle is returning a 1(true) instead of a 0(false) when players are logged on. That would mean a NOT operator is needed ahead of it, right?

In Bash, a result of 0 means "success" or "true", and anythint else is an error. The reason is that this allows commands to return different kinds of errors, depending on what went wrong. So if valheim-is-idle; then do something; fi would execute do something only if valheim-is-idle returns 0.


get_stats() funtion is not defined

There's no definition of "get_stats" in TorchBatchRLAlgorithm(sac_algorithm.py).
so it makes an error like "AttributeError: 'TorchBatchRLAlgorithm' object has no attribute 'get_stats'"
Can you please check this issue?

Thank you for pointing this out. I recently made some edits to some files that were made recently. I must have missed uploading the edits to that file. Should be fixed now!


Signature provider highlights wrong parameter after pipe operator

this works correctly
"abc" |> String.replace_prefix()

this highlights first param instead of second
s |> String.replace_prefix()

Depends on migration to Code.Fragment.container_cursor_to_quoted in https://github.com/elixir-lsp/elixir_sense/pull/170
https://github.com/elixir-lsp/elixir_sense/pull/170/commits/0495a774e731a3f75bcc5c357afe71cca2d89f50

Addressed in https://github.com/elixir-lsp/elixir-ls/pull/898


Profile extension host when needed

We finally have all pieces to automatically start profiling the extension host when it goes dark. This is a flow I would like to have:

detect that the extension host is unresponsive (by waiting for the ack-messages)
attach the profiler and profile for a bit
associate time slices from the profile to extensions (just like the Running Extension View does it after profiling)
show a message to file a bug against the heaviest hitters...

cc @egamma

With today's insiders build we start profiling the extension host as soon as it is found to be unresponsive. Finding are currently send as telemetry and logged down as message:

Closing, we now have the log file writing, telemetry, and a silent* user-facing notification when an extension is really greedy.

a silent notification shows the bell in the status bar but doesn't reveal itself into your face


remove STBGFC branding

replace the original STBGFC images/icons with SportsClubManager ones

removed text references to STBGFC, colours and images still remain

Requires a framework or approach for users to add their own branding - ideally referencing local image assets and colour schemes defined in the app database. Alternatively, packaging the entire app up in a way that means it can be included as a dependency in an app that supplies the branding


crypto: migrate to SPDX identifier

Summary
Most tools used for compliance and SBOM generation use SPDX identifiers This change brings us a step closer to an easy SBOM generation.
Please note that there are licenses that have no SPDX identification
Impact
SBOM
Testing
CI

@xiaoxiang781216
please help identify the license for the files identified with ???

@xiaoxiang781216 please help identify the license for the files identified with ???

@ThePassionate please take a look.

@xiaoxiang781216 please provide the information

I removed all unclear licenses. Please merge the PR and I will start discussion on dev mailing list

Thank you folks great job! :-)
Btw isn't OpenBSD a BSD license? :-) :-)

the license is BSD when the license is stated BSD


Infinite loop of "Disconnected from Steam!" and "Reconnecting..."

Bug
Description
Just downloaded the latest version of ASF, set all stuff properly and launched it, it turns into reconnecting infinitely.
I downgraded ASF to <IP_ADDRESS> and disabled the auto-update feature, works smoothly. So I think a recent change caused the issue.
Expected behavior
Connect to the Steam server and do what it should do.
Actual behavior
Turns into reconnecting and reconnecting.
Steps to reproduce
Wait for ASF to connect to Steam server.
Full log.txt recorded during reproducing the problem
2018-02-06 03:07:45|ArchiSteamFarm-4008|INFO|ASF|InitASF() ASF V<IP_ADDRESS> (5f8ec6ca-e978-41e5-90a9-7113485566c1)
2018-02-06 03:07:45|ArchiSteamFarm-4008|INFO|ASF|InitGlobalDatabaseAndServices() It looks like it's your first launch of the program, welcome!
2018-02-06 03:07:55|ArchiSteamFarm-4008|WARN|ASF|InitGlobalDatabaseAndServices() Please review our privacy policy section on the wiki if you're concerned about what ASF is in fact doing!
2018-02-06 03:08:00|ArchiSteamFarm-4008|INFO|ASF|CheckAndUpdateProgram() ASF will automatically check for new versions every 1 day.
2018-02-06 03:08:00|ArchiSteamFarm-4008|INFO|ASF|CheckAndUpdateProgram() Checking for new version...
2018-02-06 03:08:01|ArchiSteamFarm-4008|INFO|ASF|CheckAndUpdateProgram() Local version: <IP_ADDRESS> | Remote version: <IP_ADDRESS>
2018-02-06 03:08:01|ArchiSteamFarm-4008|INFO|ASF|InitializeSteamConfiguration() Initializing SteamDirectory...
2018-02-06 03:08:02|ArchiSteamFarm-4008|INFO|ASF|InitializeSteamConfiguration() Success!
2018-02-06 03:08:02|ArchiSteamFarm-4008|INFO|zer0DayBot|Start() Starting...
2018-02-06 03:08:02|ArchiSteamFarm-4008|INFO|zer0DayBot|Connect() Connecting...
2018-02-06 03:08:03|ArchiSteamFarm-4008|INFO|zer0DayBot|OnDisconnected() Disconnected from Steam!
2018-02-06 03:08:03|ArchiSteamFarm-4008|INFO|zer0DayBot|OnDisconnected() Reconnecting...
2018-02-06 03:08:12|ArchiSteamFarm-4008|INFO|zer0DayBot|Connect() Connecting...
2018-02-06 03:08:12|ArchiSteamFarm-4008|INFO|zer0DayBot|OnDisconnected() Disconnected from Steam!
2018-02-06 03:08:12|ArchiSteamFarm-4008|INFO|zer0DayBot|OnDisconnected() Reconnecting...
2018-02-06 03:08:22|ArchiSteamFarm-4008|INFO|zer0DayBot|Connect() Connecting...
2018-02-06 03:08:22|ArchiSteamFarm-4008|INFO|zer0DayBot|OnDisconnected() Disconnected from Steam!
2018-02-06 03:08:22|ArchiSteamFarm-4008|INFO|zer0DayBot|OnDisconnected() Reconnecting...
2018-02-06 03:08:32|ArchiSteamFarm-4008|INFO|zer0DayBot|Connect() Connecting...
2018-02-06 03:08:32|ArchiSteamFarm-4008|INFO|zer0DayBot|OnDisconnected() Disconnected from Steam!
2018-02-06 03:08:32|ArchiSteamFarm-4008|INFO|zer0DayBot|OnDisconnected() Reconnecting...
2018-02-06 03:08:42|ArchiSteamFarm-4008|INFO|zer0DayBot|Connect() Connecting...
2018-02-06 03:08:42|ArchiSteamFarm-4008|INFO|zer0DayBot|OnDisconnected() Disconnected from Steam!
2018-02-06 03:08:42|ArchiSteamFarm-4008|INFO|zer0DayBot|OnDisconnected() Reconnecting...
2018-02-06 03:08:52|ArchiSteamFarm-4008|INFO|zer0DayBot|Connect() Connecting...
2018-02-06 03:08:52|ArchiSteamFarm-4008|INFO|zer0DayBot|OnDisconnected() Disconnected from Steam!
2018-02-06 03:08:52|ArchiSteamFarm-4008|INFO|zer0DayBot|OnDisconnected() Reconnecting...
2018-02-06 03:09:02|ArchiSteamFarm-4008|INFO|zer0DayBot|Connect() Connecting...
2018-02-06 03:09:02|ArchiSteamFarm-4008|INFO|zer0DayBot|OnDisconnected() Disconnected from Steam!
2018-02-06 03:09:02|ArchiSteamFarm-4008|INFO|zer0DayBot|OnDisconnected() Reconnecting...

Global ASF.json config
{
	"AutoRestart": true,
	"BackgroundGCPeriod": 0,
	"Blacklist": [],
	"ConfirmationsLimiterDelay": 10,
	"ConnectionTimeout": 60,
	"CurrentCulture": "en",
	"Debug": false,
	"FarmingDelay": 15,
	"GiftsLimiterDelay": 1,
	"Headless": false,
	"IdleFarmingPeriod": 8,
	"InventoryLimiterDelay": 3,
	"IPCHost": "<IP_ADDRESS>",
	"IPCPassword": null,
	"IPCPort": 1242,
	"LoginLimiterDelay": 10,
	"MaxFarmingTime": 10,
	"MaxTradeHoldDuration": 15,
	"OptimizationMode": 0,
	"Statistics": true,
	"SteamOwnerID": 0,
	"SteamProtocols": 1,
	"UpdateChannel": 1,
	"UpdatePeriod": 24
}

BotName.json config of all affected bot instances (if more than one)
{
  "SteamLogin": "xxx",
  "SteamPassword": "xxx",
  "Enabled": true,
  "SteamApiKey": "xxx"
}

Additional info
I'm connecting from China, after failing I tried to set custom hosts (C:\Windows\System32\drivers\etc\hosts) which should have solved the issue if the reason of it is the connectivity problem between China and Steam server, but it continues to fail, so it shouldn't be the problem, but it's still worthy to tell.

Before you open an issue please review the contributing guidelines for this repository.

https://github.com/JustArchi/ArchiSteamFarm/blob/master/CONTRIBUTING.md

If my issue is not meeting contributing guidelines specified above, especially if it's a question or technical issue that is not related to ASF development in any way, please close it immediately - I won't complain.

Reason for closing: technical issue is not ASF bug.

Downgrade solved the issue. Not an ASF issue? Funny.
On Feb 6, 2018, 5:15 AM +0800, Łukasz Domeradzki<EMAIL_ADDRESS>wrote:

Before you open an issue please review the contributing guidelines for this repository.
https://github.com/JustArchi/ArchiSteamFarm/blob/master/CONTRIBUTING.md
If my issue is not meeting contributing guidelines specified above, especially if it's a question or technical issue that is not related to ASF development in any way, please close it immediately - I won't complain.
Reason for closing: technical issue is not ASF bug.
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub, or mute the thread.

Please turn on debugging and give more information about it on the Steam group.
It works for everyone else, so even if it is some bug, it's a bug related to your specific system. Seeing that you get "disconnected" instantly, it might be something with your network configuration and/or what you're doing to bypass GFW. Perhaps tweak SteamProtocols setting to see if it helps anything.
In any case, please post debugging on the Steam group and people might be able to help you. Cheers.

GitHub is not technical support, and I can't help when user is reporting a bug that is not a bug in the first place, so issue gets closed as being invalid. If he instead reported his technical issue in appropriate place for that purpose, then I'd be happy to take a look and find a potential solution myself.


FLAnimatedImageView: Fix playback speed issue on 120Hz displays.

This PR cherry-picks a commit that fixes GIF playback speed on devices with display refresh rate of 120hz.

Closed because we decided to updated to a whole new version instead of cherry-picking the fix.


Revert "Changes grad_w default scaling to be 0.75"

This reverts commit d06fee41e8118b5e8a6bdfabbdcff17518991c20. (a few tweaks needed to make the revert work, but only minor testing stuff)

Should pass once we've merged the torch version PR


No connection problem

Browsers and versions affected
Steps to reproduce

Expected results
Actual results

how can i solve the problem?


[vite] Internal server error: The request url "/api" is outside of vite dev server root

Describe the bug
After updating to Vite v2.3.0 I receive the following error:
[vite] Internal server error: The request url "/api" is outside of vite dev server root "/tmp/bug".        For security concerns, accessing files outside of workspace root is restricted since Vite v2.3.x.        Refer to docs https://vitejs.dev/config/#server-fsserveroot for configurations and more details.
To Reproduce
mkdir /tmp/bug && cd /tmp/bug
npm init svelte@next # all defaults
npm install
mkdir src/routes/api
cat <<EOF > src/routes/api/index.js
export async function get () {
  return {
    body: "World"
  }
}
EOF

cat <<EOF > src/routes/bug.svelte
<script>
import { onMount } from 'svelte';

let name;
onMount(async () => {
  const resp = await fetch("/api");
  name = await resp.text();
})
</script>

Hello, { name }
EOF

run server npm run dev navigate browser to http://localhost:3000/bug
observe error on the console
      For security concerns, accessing files outside of workspace root is restricted since Vite v2.3.x.
      Refer to docs https://vitejs.dev/config/#server-fsserveroot for configurations and more details.
      at ensureServingAccess (/tmp/bug/node_modules/vite/dist/node/chunks/dep-c9ea388d.js:57841:15)
      at transformRequest (/tmp/bug/node_modules/vite/dist/node/chunks/dep-c9ea388d.js:57883:17)
      at processTicksAndRejections (internal/process/task_queues.js:93:5)
      at async viteTransformMiddleware (/tmp/bug/node_modules/vite/dist/node/chunks/dep-c9ea388d.js:58069:32) (x4)

Expected behavior
not having such error

It works for me:
try create "static/service-worker.js" file

that check has been disabled by default in vite 2.3.1, so if you are seeing this issue, please update

that check has been disabled by default in vite 2.3.1, so if you are seeing this issue, please update

Btw, it looks like that ^1.0.0-next.105 does not include the pinning to Vite version 2.2.4 - could you release that as well?

https://github.com/sveltejs/kit/pull/1429

Hmm, maybe something is wrong with my setup, but I still see this error (in development). I also tried to add
fsServe: {
  strict: false,
},

I can't reproduce with the latest version, no errors are being logged in the console anymore.


Fix layout flicker on swap

When data is loading on the inputs or on the swap preview the layout should not resize.
Note:

When the input doesn't have an amount it didn't show it below, we could leave the space empty
When the max is not allowed yet but is loading it could show a placholder.
When inverting it has a delay between changing the values when not having a balance after it has balance on both coins only the max button is delayed.
https://user-images.githubusercontent.com/3941923/176050346-e6ac73e9-0865-411d-b198-cf0ad72023c8.mov

this may involve some different issues:

[ ]  #355

@luizstacio are we on a good shape to close this issue now?


Add progress to Q.all

This change adds progress notification to Q.all().

This change will need to be cast in a way that does not break backward-compatibility, by preserving existing properties.

@kriskowal I removed the {index: i, value: v} notifications so that one does not have to check which notification type is currently thrown. I think the number of resolved elements is way more meaningful than the progress of every single element.
When I readd them, the old notifications will still be thrown the same way as before, but the original tests will still fail since additional notifications are thrown.
Which behavior do you prefer? What do you suggest?

For context, I thought hard about this API and removed it entirely in the v2 branch in favor of an "estimated time to completion" observer, which has much more sensible composition semantics through "any" (min) and "all" (max). So what I want in the v1 branch isn’t particularly relevant, but the semver contract with our users is that no minor or patch release will break existing usage.
So, whatever you change here has to be additive, not subtractive.

…and the best way to guarantee it is additive is to add tests, no updates or removals.

... since the current version of tests compares all received notifications with an expected result, there is no way of adding additional notifications since it won't be equal to the previously expected list any more!?


Add github token for task checkout step in workflow

@white-gecko  please add a changelog entry ...


Coverage reporting setup in Codacy

We should add test coverage reporting to Codacy so can see how we are doing with testing.
https://support.codacy.com/hc/en-us/articles/207279819-Coverage
https://github.com/codacy/python-codacy-coverage#setup
As we use multiple languages this could get rather complex. I suggest we start by only computing coverage for python.
As a side note, it seems our Coday setup is in "bjoernbroetz". Perhaps we should migrate it to "ESMValGroup"

I agree to start with python only for calculating the coverage. If I understand correctly in the case of NCL this means that we would need to write the coverage-tool.
And yes to the side note: The Codacy is pointing to my fork (If I get it right). We will change that...

@bjoernbroetz, It seems like Coday is pointing to the right repo on GitHub (since all the Pull Requests are listed correctly). It does seem to be setup in your Codacy account rather than a "ESMValGroup" organization.
See here for your list of organizations and a button to create one if needed:
https://www.codacy.com/organizations

Codacy is now setup with  the "ESMValGroup", see https://github.com/ESMValGroup/ESMValTool/commit/a0c0729bf7ba5b19c44bcfda45d306be0eefb653

Can we also turn on Codacy for all branches / pull requests, etc.

Works now.


After training 1 epoch, train_first.py crashes: RuntimeError: Expected 2D (unbatched) or 3D (batched) input to conv1d, but got input of size: [1, 1, 1, 800]

I tried out to train with the default settings on a 3090 (LJ-Speech dataset from https://keithito.com/LJ-Speech-Dataset/,... all like shown in the readme)
I only had to adjust config.yml to fit into my 3090:
batch_size: 16
max_len: 150
Others defaut.
After 1 epoch the script crashes (maybe during validation?)
Traceback (most recent call last):
  File "train_first.py", line 445, in <module>
    main()
  File "/home/ai/miniconda3/envs/StyleTTS/lib/python3.8/site-packages/click/core.py", line 1157, in __call__
    return self.main(*args, **kwargs)
  File "/home/ai/miniconda3/envs/StyleTTS/lib/python3.8/site-packages/click/core.py", line 1078, in main
    rv = self.invoke(ctx)
  File "/home/ai/miniconda3/envs/StyleTTS/lib/python3.8/site-packages/click/core.py", line 1434, in invoke
    return ctx.invoke(self.callback, **ctx.params)
  File "/home/ai/miniconda3/envs/StyleTTS/lib/python3.8/site-packages/click/core.py", line 783, in invoke
    return __callback(*args, **kwargs)
  File "train_first.py", line 407, in main
    y_rec = model.decoder(en, F0_real, real_norm, s)
  File "/home/ai/miniconda3/envs/StyleTTS/lib/python3.8/site-packages/torch/nn/modules/module.py", line 1532, in _wrapped_call_impl
    return self._call_impl(*args, **kwargs)
  File "/home/ai/miniconda3/envs/StyleTTS/lib/python3.8/site-packages/torch/nn/modules/module.py", line 1541, in _call_impl
    return forward_call(*args, **kwargs)
  File "/data/ai/StyleTTS2/Modules/istftnet.py", line 511, in forward
    F0 = self.F0_conv(F0_curve.unsqueeze(1))
  File "/home/ai/miniconda3/envs/StyleTTS/lib/python3.8/site-packages/torch/nn/modules/module.py", line 1532, in _wrapped_call_impl
    return self._call_impl(*args, **kwargs)
  File "/home/ai/miniconda3/envs/StyleTTS/lib/python3.8/site-packages/torch/nn/modules/module.py", line 1582, in _call_impl
    result = forward_call(*args, **kwargs)
  File "/home/ai/miniconda3/envs/StyleTTS/lib/python3.8/site-packages/torch/nn/modules/conv.py", line 310, in forward
    return self._conv_forward(input, self.weight, self.bias)
  File "/home/ai/miniconda3/envs/StyleTTS/lib/python3.8/site-packages/torch/nn/modules/conv.py", line 306, in _conv_forward
    return F.conv1d(input, weight, bias, self.stride,
RuntimeError: Expected 2D (unbatched) or 3D (batched) input to conv1d, but got input of size: [1, 1, 1, 800]

My Config.yml:
log_dir: "Models/LJSpeech"
first_stage_path: "first_stage.pth"
save_freq: 2
log_interval: 10
device: "cuda"
epochs_1st: 200 # number of epochs for first stage training (pre-training)
epochs_2nd: 100 # number of peochs for second stage training (joint training)
batch_size: 16
max_len: 150 # maximum number of frames
pretrained_model: ""
second_stage_load_pretrained: true # set to true if the pre-trained model is for 2nd stage
load_only_params: false # set to true if do not want to load epoch numbers and optimizer parameters

F0_path: "Utils/JDC/bst.t7"
ASR_config: "Utils/ASR/config.yml"
ASR_path: "Utils/ASR/epoch_00080.pth"
PLBERT_dir: 'Utils/PLBERT/'

data_params:
  train_data: "Data/train_list.txt"
  val_data: "Data/val_list.txt"
  root_path: "Data/LJSpeech-1.1/wavs"
  OOD_data: "Data/OOD_texts.txt"
  min_length: 50 # sample until texts with this size are obtained for OOD texts

preprocess_params:
  sr: 24000
  spect_params:
    n_fft: 2048
    win_length: 1200
    hop_length: 300

model_params:
  multispeaker: false

  dim_in: 64
  hidden_dim: 512
  max_conv_dim: 512
  n_layer: 3
  n_mels: 80

  n_token: 178 # number of phoneme tokens
  max_dur: 50 # maximum duration of a single phoneme
  style_dim: 128 # style vector size

  dropout: 0.2

  # config for decoder
  decoder:
      type: 'istftnet' # either hifigan or istftnet
      resblock_kernel_sizes: [3,7,11]
      upsample_rates :  [10, 6]
      upsample_initial_channel: 512
      resblock_dilation_sizes: [[1,3,5], [1,3,5], [1,3,5]]
      upsample_kernel_sizes: [20, 12]
      gen_istft_n_fft: 20
      gen_istft_hop_size: 5

  # speech language model config
  slm:
      model: 'microsoft/wavlm-base-plus'
      sr: 16000 # sampling rate of SLM
      hidden: 768 # hidden size of SLM
      nlayers: 13 # number of layers of SLM
      initial_channel: 64 # initial channels of SLM discriminator head

  # style diffusion model config
  diffusion:
    embedding_mask_proba: 0.1
    # transformer config
    transformer:
      num_layers: 3
      num_heads: 8
      head_features: 64
      multiplier: 2

    # diffusion distribution config
    dist:
      sigma_data: 0.2 # placeholder for estimate_sigma_data set to false
      estimate_sigma_data: true # estimate sigma_data from the current batch if set to true
      mean: -3.0
      std: 1.0

loss_params:
    lambda_mel: 5. # mel reconstruction loss
    lambda_gen: 1. # generator loss
    lambda_slm: 1. # slm feature matching loss

    lambda_mono: 1. # monotonic alignment loss (1st stage, TMA)
    lambda_s2s: 1. # sequence-to-sequence loss (1st stage, TMA)
    TMA_epoch: 50 # TMA starting epoch (1st stage)

    lambda_F0: 1. # F0 reconstruction loss (2nd stage)
    lambda_norm: 1. # norm reconstruction loss (2nd stage)
    lambda_dur: 1. # duration loss (2nd stage)
    lambda_ce: 20. # duration predictor probability output CE loss (2nd stage)
    lambda_sty: 1. # style reconstruction loss (2nd stage)
    lambda_diff: 1. # score matching loss (2nd stage)

    diff_epoch: 20 # style diffusion starting epoch (2nd stage)
    joint_epoch: 50 # joint training starting epoch (2nd stage)

optimizer_params:
  lr: 0.0001 # general learning rate
  bert_lr: 0.00001 # learning rate for PLBERT
  ft_lr: 0.00001 # learning rate for acoustic modules

slmadv_params:
  min_len: 400 # minimum length of samples
  max_len: 500 # maximum length of samples
  batch_percentage: 0.5 # to prevent out of memory, only use half of the original batch size
  iter: 10 # update the discriminator every this iterations of generator update
  thresh: 5 # gradient norm above which the gradient is scaled
  scale: 0.01 # gradient scaling factor for predictors from SLM discriminators
  sig: 1.5 # sigma for differentiable duration modeling


bin.linux.lxd-migrate doesn't accept command line parameters

Downloading the lxd-migrate binary from here:

https://github.com/lxc/lxd/releases/download/lxd-5.9/bin.linux.lxd-migrate

It will not use command line parameters, eg:
sm1 ~ # bin.linux.lxd-migrate https://<IP_ADDRESS> dnscache /vservers/images/dnscache/
Please provide LXD server URL: https://<IP_ADDRESS>
Certificate fingerprint: 144a30ed49d18d626106902f0a9b73788cb82911f65a6ee8f4f6a4145729a5cd
ok (y/n)? y

1) Use a certificate token
2) Use an existing TLS authentication certificate
3) Generate a temporary TLS authentication certificate
Please pick an authentication mechanism above: 1
Please provide the certificate token:

Remote LXD server:
  Hostname: sm3
  Version: 5.9

Would you like to create a container (1) or virtual-machine (2)?: 1
Name of the new instance: dnscache
Please provide the path to a root filesystem:
...etc..

Binary claims:
sm1 ~ # bin.linux.lxd-migrate -h
Description:
  Physical to instance migration tool

  This tool lets you turn any Linux filesystem (including your current one)
  into a LXD instance on a remote LXD host.

  It will setup a clean mount tree made of the root filesystem and any
  additional mount you list, then transfer this through LXD's migration
  API to create a new instance from it.

  The same set of options as `lxc launch` are also supported.

Usage:
  lxd-migrate <target URL> <instance name> <filesystem root|raw image> [<filesystem mounts>...] [flags]

Flags:
  -h, --help         Print help
      --rsync-args   Extra arguments to pass to rsync
      --version      Print version number

I'm not sure I understand the code well enough, but it seems like it unconditionally calls "askServer" here:
https://github.com/lxc/lxd/blob/0e129cfcdf2b04c5f6143de9c79e82b8d65648a2/lxd-migrate/main_migrate.go#L450
So I think I understand the code flow to possibly read the command params, but they are ignored?

This tools is entirely interactive so the help message is incorrect and needs to be changed.


Add the ability to embed a Youtube video in a doc

This will allow you to embed a Youtube video into a doc.  Basically what needs to happen is to add a form field that accepts the URL of the youtube video, and then insert it into the trix editor window.  This should exist on admin::doc#edit and #create
See: https://helpyio.slack.com/archives/general/p1477939555000065
https://github.com/basecamp/trix/issues/120

+1 for this. I'd like the code block to except HTML embed's i.e. youtube/vimeo etc

Hello... any news on this? I love the editor and I'd like to allow my users to be able to embed videos too. Thank you!

I just switched editors to summernote (https://github.com/helpyio/helpy/commit/5f87cda3ff4f41a5413d61f6a3eecd4b5284bf46) which supports video embeds and some other neat stuff.  It is a great editor too.  If you update to the newest master, you will see that it is updated!


Not formatting when it should

Describe the bug
In https://github.com/rust-lang/rust/pull/79553#discussion_r541538233 something roughly equivalent to the following was not formatted to how to should:
enum Foo {
    Bar {
        foo_bar: bool,
        baz: u8 },
}

The }, should be on a new line.
To Reproduce
Run ./x.py fmt on the rust repo as of https://github.com/rust-lang/rust/commit/5bd9b60333b3dc0a51e7a5607cd1e0d537a9f718. The offending line is line 60 of compiler/rustc_mir_build/src/build/expr/as_place.rs.
Expected behavior
See "Describe the bug"
Meta

rustfmt version: rustfmt 1.4.27-nightly (580d826 2020-11-16)
From where did you install rustfmt?: The rust build system
How do you run rustfmt: ./x.py fmt

Left a comment on the linked PR, but closing this as it seems the referenced nonformatting is due to the ignore configuration within the r-l/rust repo.
If you run rustfmt directly, using stable, nightly, and/or rustfmt from source, you'll see it formatted fine both with the snippet in this issue description and the referenced snipped in the linked PR, demonstrable at the Playground link below.
Closing accordingly, but can certainly reopen if there turns out to be anything with rustfmt itself
https://play.rust-lang.org/?version=nightly&mode=debug&edition=2018&gist=ce4aab0185308555b2e4eca4507c5114


Understand reva runtime

Understand how reva runtime works and what we'd need to change to enable the plugin integration

Hi @ishank011! I just had a basic look at the runtime package and also had a look at some plugin frameworks. Is it fine to have discussions over them over here?

@jimil749 yep, please go ahead

These are just my initial thoughts, any suggestions would be highly valuable!


com.google.firebase.auth.UserRecord.CreateRequest doesn't override .equals making it hard to test

[READ] Step 1: Are you in the right place?

For issues or feature requests related to the code in this repository
file a Github issue.

If this is a feature request make sure the issue title starts with "FR:".

For general technical questions, post a question on StackOverflow
with the firebase tag.
For general Firebase discussion, use the firebase-talk
google group.
For help troubleshooting your application that does not fall under one
of the above categories, reach out to the personalized
Firebase support channel.

[REQUIRED] Step 2: Describe your environment

Operating System version: _____
Firebase SDK version: _____
Library version: _____
Firebase Product: _____ (auth, database, storage, etc)

[REQUIRED] Step 3: Describe the problem
Steps to reproduce:
What happened? How can we make the problem occur?
This could be a description, log/console output, etc.
Relevant Code:
// TODO(you): code here to reproduce the problem

I built an application with a function that call firebaseAuth.createUserAsync(CreateRequest request). To test the logic in this function, I created a unit test for it with a mock:
CreateRequest createRequest = // creates some request
UserRecord userRecord = // build a record

FirebaseAuth auth = mock(FirebaseAuth.class);
when(auth.createUserAsync(createRequest)).thenReturn(ApiFutures.immediateFuture(userRecord))

but when I ran the test I got a Null Pointer Exception from Mockito. On further inspection, I realized that two instances of CreateRequest with the same payload value return false when compared via .equals. This leads Mockito to think the function is not defined for this argument.
I am happy to contribute this simple (probably IntelliJ-generated) code, is there a reason you don't want this in there?

Sounds like a reasonable thing to do. Feel free to provide a PR if you can.

Hi @hiranya911 Can you review my PR ? Also, I've signed the CLA now. Thanks!


feat($compile): backport $doCheck

What kind of change does this PR introduce? (Bug fix, feature, docs update, ...)
Feature
What is the current behavior? (You can also link to an open issue here)
If implemented, $doCheck will not be invoked
What is the new behavior (if this is a feature change)?
$doCheck will be invoked on every digest cycle.
Does this PR introduce a breaking change?
No
Please check if the PR fulfills these requirements

[x] The commit message follows our guidelines: https://github.com/angular/angular.js/blob/master/CONTRIBUTING.md#commit-message-format
[x] Tests for the changes have been added (for bug fixes / features)
[x] Docs have been added / updated (for bug fixes / features)

Other information:
This mirrors the current actual behavior of Angular 2:

During the initial compile, the sequence is $onChanges, $onInit, $doCheck.
During subsequent digests, the sequence is $doCheck, $onChanges, $doCheck.
(See the live peekaboo demo from the docs to see the sequence.)
Per my comments here, ngDoCheck in Angular 2 just seems to be a hook into the digest cycle that supplements, but does not replace/override, the default change detector. The Angular 2 docs are incorrect (issue): $onChanges is indeed called, and the code in doCheck does not override the default CD.

/cc @gkalpak

I think we need to get a better understanding of what DoCheck means in Angular 2 before we can make a decision about this.

Yeah, I'd love to have one of the devs who worked on this part confirm or correct what I've found (@vicb?).
Commented in https://github.com/angular/angular/issues/7307 regarding the effect of ChangeDetectionStrategy. Especially because CDS doesn't exist in Angular 1, this still appears to be a good reflection of Angular 2.

From what I understand of doCheck in ng2, it's intended to completely replace Change Detection which means you must then implement it yourself within the ngDoCheck callback.
The Angular1 equivalent would pretty much be if $doCheck was implemented, then you don't run any of the watchers on the current scope and allow $doCheck to determine what's done, but that's a much larger change than is being proposed here.

@dcherman is that based on internal design knowledge? That behavior is what the docs suggest, but they're confirmed to be at least partly incorrect (#7307) and the angular 2 directives that implement ngDoCheck (e.g. ngFor) are built around ngDoCheck just being a hook into the digest cycle (i.e. nothing in angular itself consumes the result of ngDoCheck -- any actions that need to be taken as a result of detected changes need to be taken in ngDoCheck itself). Possibility that ngDoCheck is not finished though...?

@zbjornson Not at all; that point is just from both tinkering with ng2 / reading the docs and points that I picked up during ngConf earlier this month.  It's entirely possible that the description is no longer accurate.

@petebacondarwin My PR to correct the ng2 ngDoCheck docs was accepted yesterday by someone who seems knowledgeable about the lifecycle hooks. The docs (when released) now describe the actual ng2 behavior, which is what I mirrored in this backport. Does that help with the decision?

@petebacondarwin @zbjornson Is there any progress on this issue? This hook seems to be quite vital in attempts to get rid of $scope in components when migrating to angular 1.5 providing the ability to deep watch object properties supplementing capabilities of the $onChanges hook.

@petebacondarwin do those doc revisions read better now? Thanks for the review.

There were a couple of issues this the way this is implemented.
I have fixed this and added a runnable example here: https://github.com/angular/angular.js/pull/14811
Please take a look


Fix for VS2015: error C4703: potentially uninitialized local pointer …

Fixed compiler error on Visual Studio 2015

Commented the commit, looks good otherwise


Odd error message with unknown flag

$ helm delete --namespace core --name core
Error: unknown flag: --name11 service

This is really odd - I'm not sure where the 11 or the service have come from.
Versions:
$ helm version
version.BuildInfo{Version:"v3.0.0", GitCommit:"e29ce2a54e96cd02ccfce88bee4f58bb6e2a28b6", GitTreeState:"clean", GoVersion:"go1.13.4"}

$ kubectl version
Client Version: version.Info{Major:"1", Minor:"14", GitVersion:"v1.14.9", GitCommit:"500f5aba80d71253cc01ac6a8622b8377f4a7ef9", GitTreeState:"clean", BuildDate:"2019-11-13T11:21:43Z", GoVersion:"go1.12.12", Compiler:"gc", Platform:"linux/amd64"}
Server Version: version.Info{Major:"1", Minor:"14", GitVersion:"v1.14.1", GitCommit:"b7394102d6ef778017f2ca4046abbaa23b88c290", GitTreeState:"clean", BuildDate:"2019-04-08T17:02:58Z", GoVersion:"go1.12.1", Compiler:"gc", Platform:"linux/amd64"}

CentOS 7 Linux VM running on Microsoft Azure with manual Kubernetes install

I just tried to reproduce and my output ended after Error: unknown flag: --name which is what I expected.
Can you share how you installed this version of helm. What OS is helm itself running in? Is that CentOS 7 running in Azure?

I'm also doubting a possibility of some weird shell behavior.  @richardwhiuk were you able to reproduce the issue consistently a few times? Could you confirm that?
Also the command is wrong, so please do try the right one and let us know if that doesn't work, as that should work as expected

Having the same issue:
helm install --name metabase stable/metabase
Error: unknown flag: --name

Version: version.BuildInfo{Version:"v3.0.1", GitCommit:"7c22ef9ce89e0ebeb7125ba2ebf7d421f3e82ffa", GitTreeState:"clean", GoVersion:"go1.13.4"}

Hi, @richardwhiuk - we're closing this issue as we are unable to reproduce the error; if you have further information, please let us know - thanks.


Fixes issue #502 - Bruteforce and Integer ops tests from master branch on OCL 1.2 device

Fixes #502

@gwawiork Do you intend to split/update that PR?

Yes I do :)

Ok, thanks :).

I will open new PRs splitted with changes suggested in review.


Can not find kafka-connect-filepulse-api 2.7.0 on maven-central

Hi there.
we are extending FilePulse by implementing a RecordFilter for the kafka-connect-filepulse connector, which works great.
In our code we therefore have a maven dependency on kafka-connect-filepulse-api.
We would like to use the latest version 2.7.0.
The last version on maven central seems to be 2.4.3.
Do we miss out on something?
Did you move away from maven central?
The dependency we're using is:
<dependency>
	<groupId>io.streamthoughts</groupId>
	<artifactId>kafka-connect-filepulse-api</artifactId>
	<version>2.7.0</version>
	<scope>provided</scope>
</dependency>

Thanks

Hi @fhussonnois, thanks for the quick response and fix.


Documentation improvements

With everything being rendered it's much easier to see where improvements can be made.
To see what it looks like, preview here

I am not a native speaker, but I believe there are some misswordings.

Nor am I  :rofl: dankeschön for the review. Ich spreche Französisch.


[Renamed Model]: Secondary Material Content

This is the continuation of this PR.
If this is merged the PR285 is pointless an can be closed

@LuisRickert I think this can be closed again, I updated the original PR with the latest updates


Cannot access fields on components returned by arcadia.core/ensure-cmpt

Although ensure-cmpt returns a component, field access is inconsistent compared with components created/returned by cmpt+ and cmpt:
Normal cmpt+ / cmpt
testcmpt.core> (def test-obj (GameObject. "TestObj"))
#'testcmpt.core/test-obj
testcmpt.core> (a/cmpt+ test-obj UnityEngine.MeshFilter)
#unity/MeshFilter -66126
testcmpt.core> (a/cmpt test-obj UnityEngine.MeshFilter)
#unity/MeshFilter -66126
testcmpt.core> (.mesh (a/cmpt test-obj UnityEngine.MeshFilter))
#unity/Mesh -66434
testcmpt.core>

ensure-cmpt
testcmpt.core> (def test-obj2 (GameObject. "TestObj2"))
#'testcmpt.core/test-obj2
testcmpt.core> (a/ensure-cmpt test-obj2 UnityEngine.MeshFilter)
#unity/MeshFilter -66748
testcmpt.core> (a/cmpt test-obj2 UnityEngine.MeshFilter)
#unity/MeshFilter -66748
testcmpt.core> (def m (.mesh (a/ensure-cmpt test-obj2 UnityEngine.MeshFilter)))
testcmpt.core> m
#<Unbound Unbound: #'testcmpt.core/m>

Pretty sure this is due to the ^Component type hint:
user> (let [^Component cmpt (a/cmpt (gobj test-obj2) UnityEngine.MeshFilter)] (.mesh cmpt))
user> (let [^UnityEngine.MeshFilter cmpt (a/cmpt (gobj test-obj2) UnityEngine.MeshFilter)] (.mesh cmpt))
#unity/Mesh -2782

I added some extra type hinting here to make it work with il2cpp.  Maybe that helps.

#190 seems related

Seems to have got fixed somewhere along the line


Can't hit a breakpoint on line following a function definition

Applies To

[X] Notebooks (.ipynb files)
[x] Interactive Window and/or Cell Scripts (.py files with #%% markers)

What happened?
Set breakpoint on the x = 5 line of this cell:
def foo():
    return 5

x = 5

It's critical there's a blank line before x = 5
Debug the cell - breakpoint isn't hit.
The breakpoint will appear to try and bind to the blank line. Probably related. :) Also, same problem occurs when debugging with the interactive window and "Stop on first line when debugging" is turned off.
VS Code Version
v1.61-insiders
Jupyter Extension Version
internal build from afternoon of 9/23/2021
Jupyter logs
No response
Coding Language and Runtime Version
No response
Language Extension Version (if applicable)
No response
Anaconda Version (if applicable)
No response
Running Jupyter locally or remotely?

 Try setting \"justMyCode\": false in the debug configuration (e.g., launch.json).\n","category":"console","source":{}}},"idents":[{"type":"Buffer","data":[107,101,114,110,101,108,46,100,101,102,97,101,97,50,101,45,49,102,51,97,45,52,57,54,100,45,57,57,56,102,45,53,51,101,51,101,55,48,97,54,56,100,100,46,100,101,98,117,103,95,101,118,101,110,116]}],"buffers":[],"channel":"iopub"}
Silly 2021-09-27 10:43:17: [Debug] to kernel: {"command":"disconnect","arguments":{"restart":false},"type":"request","seq":27}
Silly 2021-09-27 10:43:17: [Debug] event: {"header":{"msg_id":"e7e982be-a526179f05dea79d5c7d73e9_137","msg_type":"debug_event","username":"username","session":"e7e982be-a526179f05dea79d5c7d73e9","date":"2021-09-27T17:43:17.770259Z","version":"5.3"},"parent_header":{"date":"2021-09-27T17:43:17.767000Z","msg_id":"2183b03d-dc80-4a7f-a0b5-1c6f69f3efd8","msg_type":"debug_request","session":"d6c19906-e1df-4c50-9ad6-627d5716ac59","username":"","version":"5.2"},"metadata":{},"content":{"seq":43,"type":"event","event":"terminated"},"idents":[{"type":"Buffer","data":[107,101,114,110,101,108,46,100,101,102,97,101,97,50,101,45,49,102,51,97,45,52,57,54,100,45,57,57,56,102,45,53,51,101,51,101,55,48,97,54,56,100,100,46,100,101,98,117,103,95,101,118,101,110,116]}],"buffers":[],"channel":"iopub"}
Silly 2021-09-27 10:43:17: [Debug] response: {"seq":44,"type":"response","request_seq":27,"success":true,"command":"disconnect"}
Silly 2021-09-27 10:43:17: [Debug] to kernel: {"command":"disconnect","arguments":{"restart":false},"type":"request","seq":28}
Info 2021-09-27 10:43:17: KernelProcess output: Content-Length: 151
Content-Type: application/vscode-jsonrpc; charset=utf8

{"jsonrpc":"2.0","method":"log","params":{"level":"INFO","msg":"write to stderr: [IPKernelApp] ERROR | Exception in control handler:\r\n","pid":22068}}Content-Length: 128
Content-Type: application/vscode-jsonrpc; charset=utf8

{"jsonrpc":"2.0","method":"output","params":{"source":"stderr","out":"[IPKernelApp] ERROR | Exception in control handler:\r\n"}}
Info 2021-09-27 10:43:17: Python Daemon (pid: 22068): write to stderr: [IPKernelApp] ERROR | Exception in control handler:

Info 2021-09-27 10:43:17: KernelProcess output: Content-Length: 134
Content-Type: application/vscode-jsonrpc; charset=utf8

{"jsonrpc":"2.0","method":"log","params":{"level":"INFO","msg":"write to stderr: Traceback (most recent call last):\r\n","pid":22068}}Content-Length: 111
Content-Type: application/vscode-jsonrpc; charset=utf8

{"jsonrpc":"2.0","method":"output","params":{"source":"stderr","out":"Traceback (most recent call last):\r\n"}}Content-Length: 233
Content-Type: application/vscode-jsonrpc; charset=utf8

{"jsonrpc":"2.0","method":"log","params":{"level":"INFO","msg":"write to stderr:   File \"C:\\Users\\Kutu\\AppData\\Roaming\\Python\\Python39\\site-packages\\ipykernel\\kernelbase.py\", line 280, in process_control\r\n","pid":22068}}Content-Length: 210
Content-Type: application/vscode-jsonrpc; charset=utf8

{"jsonrpc":"2.0","method":"output","params":{"source":"stderr","out":"  File \"C:\\Users\\Kutu\\AppData\\Roaming\\Python\\Python39\\site-packages\\ipykernel\\kernelbase.py\", line 280, in process_control\r\n"}}Content-Length: 116
Content-Type: application/vscode-jsonrpc; charset=utf8

{"jsonrpc":"2.0","method":"log","params":{"level":"INFO","msg":"write to stderr:     await result\r\n","pid":22068}}Content-Length: 93
Content-Type: application/vscode-jsonrpc; charset=utf8

{"jsonrpc":"2.0","method":"output","params":{"source":"stderr","out":"    await result\r\n"}}Content-Length: 231
Content-Type: application/vscode-jsonrpc; charset=utf8

{"jsonrpc":"2.0","method":"log","params":{"level":"INFO","msg":"write to stderr:   File \"C:\\Users\\Kutu\\AppData\\Roaming\\Python\\Python39\\site-packages\\ipykernel\\kernelbase.py\", line 831, in debug_request\r\n","pid":22068}}Content-Length: 208
Content-Type: application/vscode-jsonrpc; charset=utf8

{"jsonrpc":"2.0","method":"output","params":{"source":"stderr","out":"  File \"C:\\Users\\Kutu\\AppData\\Roaming\\Python\\Python39\\site-packages\\ipykernel\\kernelbase.py\", line 831, in debug_request\r\n"}}Content-Length: 139
Content-Type: application/vscode-jsonrpc; charset=utf8

{"jsonrpc":"2.0","method":"log","params":{"level":"INFO","msg":"write to stderr:     reply_content = await reply_content\r\n","pid":22068}}Content-Length: 116
Content-Type: application/vscode-jsonrpc; charset=utf8

{"jsonrpc":"2.0","method":"output","params":{"source":"stderr","out":"    reply_content = await reply_content\r\n"}}Content-Length: 232
Content-Type: application/vscode-jsonrpc; charset=utf8

{"jsonrpc":"2.0","method":"log","params":{"level":"INFO","msg":"write to stderr:   File \"C:\\Users\\Kutu\\AppData\\Roaming\\Python\\Python39\\site-packages\\ipykernel\\ipkernel.py\", line 417, in do_debug_request\r\n","pid":22068}}Content-Length: 209
Content-Type: application/vscode-jsonrpc; charset=utf8

{"jsonrpc":"2.0","method":"output","params":{"source":"stderr","out":"  File \"C:\\Users\\Kutu\\AppData\\Roaming\\Python\\Python39\\site-packages\\ipykernel\\ipkernel.py\", line 417, in do_debug_request\r\n"}}Content-Length: 151
Content-Type: application/vscode-jsonrpc; charset=utf8

{"jsonrpc":"2.0","method":"log","params":{"level":"INFO","msg":"write to stderr:     return await self.debugger.process_request(msg)\r\n","pid":22068}}Content-Length: 128
Content-Type: application/vscode-jsonrpc; charset=utf8

{"jsonrpc":"2.0","method":"output","params":{"source":"stderr","out":"    return await self.debugger.process_request(msg)\r\n"}}Content-Length: 231
Content-Type: application/vscode-jsonrpc; charset=utf8

{"jsonrpc":"2.0","method":"log","params":{"level":"INFO","msg":"write to stderr:   File \"C:\\Users\\Kutu\\AppData\\Roaming\\Python\\Python39\\site-packages\\ipykernel\\debugger.py\", line 478, in process_request\r\n","pid":22068}}Content-Length: 208
Content-Type: application/vscode-jsonrpc; charset=utf8

{"jsonrpc":"2.0","method":"output","params":{"source":"stderr","out":"  File \"C:\\Users\\Kutu\\AppData\\Roaming\\Python\\Python39\\site-packages\\ipykernel\\debugger.py\", line 478, in process_request\r\n"}}Content-Length: 115
Content-Type: application/vscode-jsonrpc; charset=utf8

{"jsonrpc":"2.0","method":"log","params":{"level":"INFO","msg":"write to stderr:     self.stop()\r\n","pid":22068}}Content-Length: 92
Content-Type: application/vscode-jsonrpc; charset=utf8

{"jsonrpc":"2.0","method":"output","params":{"source":"stderr","out":"    self.stop()\r\n"}}Content-Length: 220
Content-Type: application/vscode-jsonrpc; charset=utf8

{"jsonrpc":"2.0","method":"log","params":{"level":"INFO","msg":"write to stderr:   File \"C:\\Users\\Kutu\\AppData\\Roaming\\Python\\Python39\\site-packages\\ipykernel\\debugger.py\", line 274, in stop\r\n","pid":22068}}Content-Length: 197
Content-Type: application/vscode-jsonrpc; charset=utf8

{"jsonrpc":"2.0","method":"output","params":{"source":"stderr","out":"  File \"C:\\Users\\Kutu\\AppData\\Roaming\\Python\\Python39\\site-packages\\ipykernel\\debugger.py\", line 274, in stop\r\n"}}Content-Length: 147
Content-Type: application/vscode-jsonrpc; charset=utf8

{"jsonrpc":"2.0","method":"log","params":{"level":"INFO","msg":"write to stderr:     self.debugpy_client.disconnect_tcp_socket()\r\n","pid":22068}}Content-Length: 124
Content-Type: application/vscode-jsonrpc; charset=utf8

{"jsonrpc":"2.0","method":"output","params":{"source":"stderr","out":"    self.debugpy_client.disconnect_tcp_socket()\r\n"}}Content-Length: 237
Content-Type: application/vscode-jsonrpc; charset=utf8

{"jsonrpc":"2.0","method":"log","params":{"level":"INFO","msg":"write to stderr:   File \"C:\\Users\\Kutu\\AppData\\Roaming\\Python\\Python39\\site-packages\\ipykernel\\debugger.py\", line 175, in disconnect_tcp_socket\r\n","pid":22068}}Content-Length: 214
Content-Type: application/vscode-jsonrpc; charset=utf8

{"jsonrpc":"2.0","method":"output","params":{"source":"stderr","out":"  File \"C:\\Users\\Kutu\\AppData\\Roaming\\Python\\Python39\\site-packages\\ipykernel\\debugger.py\", line 175, in disconnect_tcp_socket\r\n"}}Content-Length: 163
Content-Type: application/vscode-jsonrpc; charset=utf8

{"jsonrpc":"2.0","method":"log","params":{"level":"INFO","msg":"write to stderr:     self.debugpy_stream.socket.disconnect(self._get_endpoint())\r\n","pid":22068}}Content-Length: 140
Content-Type: application/vscode-jsonrpc; charset=utf8

{"jsonrpc":"2.0","method":"output","params":{"source":"stderr","out":"    self.debugpy_stream.socket.disconnect(self._get_endpoint())\r\n"}}Content-Length: 201
Content-Type: application/vscode-jsonrpc; charset=utf8

{"jsonrpc":"2.0","method":"log","params":{"level":"INFO","msg":"write to stderr:   File \"zmq\\backend\\cython\\socket.pyx\", line 640, in zmq.backend.cython.socket.Socket.disconnect\r\n","pid":22068}}Content-Length: 178
Content-Type: application/vscode-jsonrpc; charset=utf8

{"jsonrpc":"2.0","method":"output","params":{"source":"stderr","out":"  File \"zmq\\backend\\cython\\socket.pyx\", line 640, in zmq.backend.cython.socket.Socket.disconnect\r\n"}}Content-Length: 145
Content-Type: application/vscode-jsonrpc; charset=utf8

{"jsonrpc":"2.0","method":"log","params":{"level":"INFO","msg":"write to stderr: zmq.error.ZMQError: No such file or directory\r\n","pid":22068}}Content-Length: 122
Content-Type: application/vscode-jsonrpc; charset=utf8

{"jsonrpc":"2.0","method":"output","params":{"source":"stderr","out":"zmq.error.ZMQError: No such file or directory\r\n"}}
Warn 2021-09-27 10:43:17: Kernel 22068 as possibly died, StdErr from Kernel Process [IPKernelApp] ERROR | Exception in control handler:

Warn 2021-09-27 10:43:17: StdErr from Kernel Process [IPKernelApp] ERROR | Exception in control handler:

Info 2021-09-27 10:43:17: Python Daemon (pid: 22068): write to stderr: Traceback (most recent call last):

Warn 2021-09-27 10:43:17: Kernel 22068 as possibly died, StdErr from Kernel Process Traceback (most recent call last):

Warn 2021-09-27 10:43:17: StdErr from Kernel Process Traceback (most recent call last):

Info 2021-09-27 10:43:17: Python Daemon (pid: 22068): write to stderr:   File "C:\Users\Kutu\AppData\Roaming\Python\Python39\site-packages\ipykernel\kernelbase.py", line 280, in process_control

Warn 2021-09-27 10:43:17: Kernel 22068 as possibly died, StdErr from Kernel Process   File "C:\Users\Kutu\AppData\Roaming\Python\Python39\site-packages\ipykernel\kernelbase.py", line 280, in process_control

Warn 2021-09-27 10:43:17: StdErr from Kernel Process   File "C:\Users\Kutu\AppData\Roaming\Python\Python39\site-packages\ipykernel\kernelbase.py", line 280, in process_control

Info 2021-09-27 10:43:17: Python Daemon (pid: 22068): write to stderr:     await result

Warn 2021-09-27 10:43:17: Kernel 22068 as possibly died, StdErr from Kernel Process     await result

Warn 2021-09-27 10:43:17: StdErr from Kernel Process     await result

Info 2021-09-27 10:43:17: Python Daemon (pid: 22068): write to stderr:   File "C:\Users\Kutu\AppData\Roaming\Python\Python39\site-packages\ipykernel\kernelbase.py", line 831, in debug_request

Warn 2021-09-27 10:43:17: Kernel 22068 as possibly died, StdErr from Kernel Process   File "C:\Users\Kutu\AppData\Roaming\Python\Python39\site-packages\ipykernel\kernelbase.py", line 831, in debug_request

Warn 2021-09-27 10:43:17: StdErr from Kernel Process   File "C:\Users\Kutu\AppData\Roaming\Python\Python39\site-packages\ipykernel\kernelbase.py", line 831, in debug_request

Info 2021-09-27 10:43:17: Python Daemon (pid: 22068): write to stderr:     reply_content = await reply_content

Warn 2021-09-27 10:43:17: Kernel 22068 as possibly died, StdErr from Kernel Process     reply_content = await reply_content

Warn 2021-09-27 10:43:17: StdErr from Kernel Process     reply_content = await reply_content

Info 2021-09-27 10:43:17: Python Daemon (pid: 22068): write to stderr:   File "C:\Users\Kutu\AppData\Roaming\Python\Python39\site-packages\ipykernel\ipkernel.py", line 417, in do_debug_request

Warn 2021-09-27 10:43:17: Kernel 22068 as possibly died, StdErr from Kernel Process   File "C:\Users\Kutu\AppData\Roaming\Python\Python39\site-packages\ipykernel\ipkernel.py", line 417, in do_debug_request

Warn 2021-09-27 10:43:17: StdErr from Kernel Process   File "C:\Users\Kutu\AppData\Roaming\Python\Python39\site-packages\ipykernel\ipkernel.py", line 417, in do_debug_request

Info 2021-09-27 10:43:17: Python Daemon (pid: 22068): write to stderr:     return await self.debugger.process_request(msg)

Warn 2021-09-27 10:43:17: Kernel 22068 as possibly died, StdErr from Kernel Process     return await self.debugger.process_request(msg)

Warn 2021-09-27 10:43:17: StdErr from Kernel Process     return await self.debugger.process_request(msg)

Info 2021-09-27 10:43:17: Python Daemon (pid: 22068): write to stderr:   File "C:\Users\Kutu\AppData\Roaming\Python\Python39\site-packages\ipykernel\debugger.py", line 478, in process_request

Warn 2021-09-27 10:43:17: Kernel 22068 as possibly died, StdErr from Kernel Process   File "C:\Users\Kutu\AppData\Roaming\Python\Python39\site-packages\ipykernel\debugger.py", line 478, in process_request

Warn 2021-09-27 10:43:17: StdErr from Kernel Process   File "C:\Users\Kutu\AppData\Roaming\Python\Python39\site-packages\ipykernel\debugger.py", line 478, in process_request

Info 2021-09-27 10:43:17: Python Daemon (pid: 22068): write to stderr:     self.stop()

Warn 2021-09-27 10:43:17: Kernel 22068 as possibly died, StdErr from Kernel Process     self.stop()

Warn 2021-09-27 10:43:17: StdErr from Kernel Process     self.stop()

Info 2021-09-27 10:43:17: Python Daemon (pid: 22068): write to stderr:   File "C:\Users\Kutu\AppData\Roaming\Python\Python39\site-packages\ipykernel\debugger.py", line 274, in stop

Warn 2021-09-27 10:43:17: Kernel 22068 as possibly died, StdErr from Kernel Process   File "C:\Users\Kutu\AppData\Roaming\Python\Python39\site-packages\ipykernel\debugger.py", line 274, in stop

Warn 2021-09-27 10:43:17: StdErr from Kernel Process   File "C:\Users\Kutu\AppData\Roaming\Python\Python39\site-packages\ipykernel\debugger.py", line 274, in stop

Info 2021-09-27 10:43:17: Python Daemon (pid: 22068): write to stderr:     self.debugpy_client.disconnect_tcp_socket()

Warn 2021-09-27 10:43:17: Kernel 22068 as possibly died, StdErr from Kernel Process     self.debugpy_client.disconnect_tcp_socket()

Warn 2021-09-27 10:43:17: StdErr from Kernel Process     self.debugpy_client.disconnect_tcp_socket()

Info 2021-09-27 10:43:17: Python Daemon (pid: 22068): write to stderr:   File "C:\Users\Kutu\AppData\Roaming\Python\Python39\site-packages\ipykernel\debugger.py", line 175, in disconnect_tcp_socket

Warn 2021-09-27 10:43:17: Kernel 22068 as possibly died, StdErr from Kernel Process   File "C:\Users\Kutu\AppData\Roaming\Python\Python39\site-packages\ipykernel\debugger.py", line 175, in disconnect_tcp_socket

Warn 2021-09-27 10:43:17: StdErr from Kernel Process   File "C:\Users\Kutu\AppData\Roaming\Python\Python39\site-packages\ipykernel\debugger.py", line 175, in disconnect_tcp_socket

Info 2021-09-27 10:43:17: Python Daemon (pid: 22068): write to stderr:     self.debugpy_stream.socket.disconnect(self._get_endpoint())

Warn 2021-09-27 10:43:17: Kernel 22068 as possibly died, StdErr from Kernel Process     self.debugpy_stream.socket.disconnect(self._get_endpoint())

Warn 2021-09-27 10:43:17: StdErr from Kernel Process     self.debugpy_stream.socket.disconnect(self._get_endpoint())

Info 2021-09-27 10:43:17: Python Daemon (pid: 22068): write to stderr:   File "zmq\backend\cython\socket.pyx", line 640, in zmq.backend.cython.socket.Socket.disconnect

Warn 2021-09-27 10:43:17: Kernel 22068 as possibly died, StdErr from Kernel Process   File "zmq\backend\cython\socket.pyx", line 640, in zmq.backend.cython.socket.Socket.disconnect

Warn 2021-09-27 10:43:17: StdErr from Kernel Process   File "zmq\backend\cython\socket.pyx", line 640, in zmq.backend.cython.socket.Socket.disconnect

Info 2021-09-27 10:43:17: Python Daemon (pid: 22068): write to stderr: zmq.error.ZMQError: No such file or directory

Warn 2021-09-27 10:43:17: Kernel 22068 as possibly died, StdErr from Kernel Process zmq.error.ZMQError: No such file or directory

Warn 2021-09-27 10:43:17: StdErr from Kernel Process zmq.error.ZMQError: No such file or directory

@greazer please share logs

Still works for me, so someone share logs if you can repro it