Cannot find name 'Map'. Do you need to change your target library? Try changing the 'lib' compiler option to 'es2015' or later.

node_modules/.pnpm/@vue+reactivity@3.3.4/node_modules/@vue/reactivity/dist/reactivity.d.ts:348:17 - error TS2583: Cannot find name 'Map'. Do you need to change your target library? Try changing the 'lib' compiler option to 'es2015' or later.

348     oldTarget?: Map<any, any> | Set<any>;
                    ~~~

node_modules/.pnpm/@vue+reactivity@3.3.4/node_modules/@vue/reactivity/dist/reactivity.d.ts:348:33 - error TS2583: Cannot find name 'Set'. Do you need to change your target library? Try changing the 'lib' compiler option to 'es2015' or later.

348     oldTarget?: Map<any, any> | Set<any>;
                                    ~~~

node_modules/.pnpm/@vue+reactivity@3.3.4/node_modules/@vue/reactivity/dist/reactivity.d.ts:430:138 - error TS2583: Cannot find name 'Map'. Do you need to change your target library? Try changing the 'lib' compiler option to 'es2015' or later.

430 export declare function trigger(target: object, type: TriggerOpTypes, key?: unknown, newValue?: unknown, oldValue?: unknown, oldTarget?: Map<unknown, unknown> | Set<unknown>):
void;

                                                   ~~~

node_modules/.pnpm/@vue+reactivity@3.3.4/node_modules/@vue/reactivity/dist/reactivity.d.ts:430:162 - error TS2583: Cannot find name 'Set'. Do you need to change your target library? Try changing the 'lib' compiler option to 'es2015' or later.

430 export declare function trigger(target: object, type: TriggerOpTypes, key?: unknown, newValue?: unknown, oldValue?: unknown, oldTarget?: Map<unknown, unknown> | Set<unknown>):
void;

                                                                           ~~~

node_modules/.pnpm/@vue+reactivity@3.3.4/node_modules/@vue/reactivity/dist/reactivity.d.ts:432:12 - error TS2583: Cannot find name 'Set'. Do you need to change your target library? Try changing the 'lib' compiler option to 'es2015' or later.

432 type Dep = Set<ReactiveEffect> & TrackedMarkers;
               ~~~

node_modules/.pnpm/@vue+runtime-core@3.3.4/node_modules/@vue/runtime-core/dist/runtime-core.d.ts:819:20 - error TS2583: Cannot find name 'Map'. Do you need to change your target library? Try changing the 'lib' compiler option to 'es2015' or later.

819     leavingVNodes: Map<any, Record<string, VNode>>;
                       ~~~

node_modules/.pnpm/@vue+runtime-core@3.3.4/node_modules/@vue/runtime-core/dist/runtime-core.d.ts:1461:5 - error TS1170: A computed property name in a type literal must refer to an
expression whose type is a literal type or a 'unique symbol' type.

1461     [Symbol.iterator]?: never;
         ~~~~~~~~~~~~~~~~~

node_modules/.pnpm/@vue+runtime-core@3.3.4/node_modules/@vue/runtime-core/dist/runtime-core.d.ts:1461:6 - error TS2585: 'Symbol' only refers to a type, but is being used as a value here. Do you need to change your target library? Try changing the 'lib' compiler option to es2015 or later.

1461     [Symbol.iterator]?: never;
          ~~~~~~

node_modules/.pnpm/@vue+runtime-core@3.3.4/node_modules/@vue/runtime-core/dist/runtime-core.d.ts:1603:47 - error TS2304: Cannot find name 'Iterable'.

1603 export declare function renderList<T>(source: Iterable<T>, renderItem: (value: T, index: number) => VNodeChild): VNodeChild[];
                                                   ~~~~~~~~

node_modules/.pnpm/@vue+runtime-dom@3.3.4/node_modules/@vue/runtime-dom/dist/runtime-dom.d.ts:501:36 - error TS2583: Cannot find name 'Set'. Do you need to change your target library? Try changing the 'lib' compiler option to 'es2015' or later.

501     checked?: Booleanish | any[] | Set<any>;
                                       ~~~

node_modules/.pnpm/@vue+shared@3.3.4/node_modules/@vue/shared/dist/shared.d.ts:30:54 - error TS2583: Cannot find name 'Map'. Do you need to change your target library? Try changing the 'lib' compiler option to 'es2015' or later.

30 export declare const isMap: (val: unknown) => val is Map<any, any>;
                                                        ~~~

or TS2583: Cannot find name 'Set'. Do you need to change your target library? Try changing the 'lib' compiler option to 'es2015' or later.

31 export declare const isSet: (val: unknown) => val is Set<any>;
                                                        ~~~

Found 34 errors in 5 files.

Errors  Files
     6  node_modules/.pnpm/@vue+compiler-core@3.3.4/node_modules/@vue/compiler-core/dist/compiler-core.d.ts:63
    21  node_modules/.pnpm/@vue+reactivity@3.3.4/node_modules/@vue/reactivity/dist/reactivity.d.ts:64
     4  node_modules/.pnpm/@vue+runtime-core@3.3.4/node_modules/@vue/runtime-core/dist/runtime-core.d.ts:819
     1  node_modules/.pnpm

{
  "files": [],
  "references": [
    {
      "path": "./tsconfig.node.json"
    },
    {
      "path": "./tsconfig.app.json"
    }
  ]
}

{
  "extends"<EMAIL_ADDRESS>  "include": [
    "vite.config.*",
    "src/plugins/vite/index.ts",
    "src/plugins/vite/unplugin-auto-import.ts",
    "src/plugins/vite/unplugin-vue-components.ts"
  ],
  "compilerOptions": {
    "jsx": "preserve",
    "composite": true,
    "module": "ESNext",
    "types": ["node"]
  }
}

{
  "files": [],
  "references": [
    {
      "path": "./tsconfig.node.json"
    },
    {
      "path": "./tsconfig.app.json"
    }
  ]
}

Now I've specified lib in tsconfig.app.json, but type-check still prompts an error


Monitor conference states by one user from several devices

I will describe the task.
Let's say there is a chat, the user has it on several devices at once and he can use them at the same time. It is necessary to make it so that the user, talking on the ios client, can connect to the conference from the web and automatically leave conference on ios. From same account on all devices user can see statuses of participants: joined/muted/active lists, but only from one device at same time he can be joined to conference.
Currently, the live kit does not provide such an opportunity.
One solution I see is a creating  additional service layer to that users can connect and listen information about conference (who is joined, active/inactive state).
And my question )
What is better solution?

create own stand alone service that will collect conference states from Livekit server via webhooks and publish to connected users
My be cool thing to create some addon/extension for livekit, of course if its possible

I will happy to any advise from you!

What you are describing is exactly the connection model that livekit uses. If you are passing in a consistent identity for the user across devices. Only one client could remain connected. See connection docs.

in order to look at who's in the room before connecting to the room, you can either use the server APIs for this information. webhooks is a reasonable approach too.

Thanks!


use Location.back() instead of window.history.back()

I was just wondering if it would make more sense to use Location.back() instead of window.history.back() on this line. The latter seems to tightly coupled with the environment, in this case the browser.

In addition, in my case the back button led me to the correct URL but the views did not display any data at all. Like the router didn't make the associated components to call the ngOnInit method.
Did you experience this behaviour as well?

sure. you can choose your own path


How many Carla client can connect with one Carla Server?

I want to use Carla in a typical client server architecture. Intend is to connect multiple client with one server.  So I can scale both client and server independently. Every client will act as a vehicle for simulation so I can run same/multiple scenario with different conditions simultaneously. So want to know Do we have any limit on how many Carla client can connect with Carla server?

@amitji-tech there are no specific limitations for the number of clients connected to a server. Limitations/constraints could arise when considering the amount of computation required by the server, in case multiple clients are requesting sensor simulation, etc.


Add support for stale reads from Consul catalog

What does this PR do?
Allow to read stale data from Consul, thus spreading the read load across Consul agents rather than fetching from leader.
https://www.consul.io/api/index.html#consistency-modes
For most of the use-cases, stale read is preferred, when you're willing to take the consistency trade-off and enjoy faster reads and distributed load.
Fixes #2332
Motivation
Started using Traefik, and Consul catalog is the main provider.
As we're having multiple deployments of Traefik, and another systems that are actively fetching catalog
from the leaders, we see slowness of updates after some periods of time, especially when there's noise in Consul. Allowing to read stale data will reduce the load on the leaders, and serve better Traefik users.
More

[x] Added/updated documentation

Additional Notes
Currently, I set the default as false, only for backward compatibility purposes.
Looking forward, this option should be on by default, as vast majority of the cases it's the right way to work against Consul.

hey guys, any chance you checked the PR?


mantid user config init

fixes #89

Coverage increased (+0.03%) to 87.849% when pulling 30b80a94ba67137e734044b335d558a72788633d on 89-create-mantid-config into 54221def56f8b1e91990011369eb3fe2334e0076 on master.

This should simplify the notebook a bit. Make sure it works there.


Attempt to insert key already in map when killing first Gnome

I got the following error when killing the first Gnome:
raised CONSTRAINT_ERROR : Eepers.Hashed_Map_Items.Insert: attempt to insert key already in map
Unfortunately I wasn't able to reproduce it again due to the RNG. Maybe the gnome was at the bomb spawn point at the time of death and that caused a double insert to the hashmap with the same key, but I'm not 100%
Otherwise, the game is great and I totally understand if you don't have time to fix this.

Oh, I didn't think about this situation... Thank you for reporting it!

Tried to fix it in v1.1 https://github.com/tsoding/eepers/releases/tag/v1.1


[fix] Improve configmap controller

Changes

close #214

Decoupled configmap controller and controller main
This is a prerequisite of blocker binary

Submitter Checklist

[ ] Docs included if needed
[x] Tests included if needed
[x] Follows the good commit messages standard

@eddy-kor-92 @tom721 Review plz~


Create Login & Register Forms

https://jasonwatmore.com/post/2018/09/21/vuejs-basic-http-authentication-tutorial-example#user-service-js

alternate w/ django jwt library https://hackernoon.com/jwt-authentication-in-vue-js-and-django-rest-framework-part-2-788f0ad53ad5


Issue 515: Redesign Solr search process, particularly the Solr Core.

Description
This commit represents the results of the investagtion described in issue #515.
There are several things to consider and this takes a compatible approach focusing on re-using as much of the existing design as possible. There is some inconvenience or cost for taking this approach.
The use of df (default field) is not implemented with these changes but is strongly recommended for future Sage releases. This does not update the documentation (such as the Github documentation). That documentation needs to be updated following this set of changes.
Source Code Changes
Change the default query from *:* to just *.
This restricts the searches to just the fields being searched rather than searching on everything. This can be further improved by providing a df (default field). When multiple fields are to be searched, then the df may not be a good idea.
Searching using a selected field now provides a wild card when the search field value is empty. This allows for default searches without values to work correctly.
The filter query and wild card is being improperly added when there are multiple filters. The wild card filter search query is (improperly) being added when there are specific search values specified. Change the logic to only add the wild card filter search query when there are no filters selected.
Always enable sow by default.
Ideally this should be a configurable option and future versions should allow for this to be configured. This is very important to have when passing strings. This may need to be turned off when intentionally adding quoted searches. This should be explicitly investigated for regressions. Additional logic can be added to dynamically disable this if quoted strings are passed but this behavioral change is outside the scope of this change set.
Solr Core Changes
We should be using the managed schema with dynamic fields. This allows for fine-tuning the behavior on an as-needed basis on read and/or write. Much of the needed functionality to do this is actually present by design. This is strong evidence to the good quality in the planning and the simplicity of the original Sage design. However, there are additional changes that can be made to polish this interface. Such changes are outside the scope of this change set and are left for future Sage releases.
This implementation is a complete rewrite from scratch of the previous design. It favors dynamic fields while simultaneously providing backwards and forwards compatibility fields.
Some of the Core Fields are preserved mostly as-is. Aside from the Core Fields, Sage should exclusively utilize non-base field types and instead use the custom dynamic fields. The use of simple names are chosen for each of the dynamic fields but future versions of Sage should review and provide a more thorough plan on the naming scheme. Unfortunately, Solr Core has design limitations that prevents this from operating in an ideal manner.
The dynamic fields have a now standardized sub-type naming scheme. The default behavior is now always multi-valued.
To have single valued type, the sub-type _si must be at the very end of the field name. To have the field get copied into the _text_ field, commonly known as the "Everything" field, the sub-type _t must be at the very end of the field name. These two sub-types are the only combinable types for design simplicity and practicality reasons.
Due to a design limitation of Solr, complex regex combinations of say _si and _t cannot be used. To work-around this problem, all combinations have to be manually created. To avoid having to write all permutations, the order of specific sub-types are explicitly defined. The _si must come before _t and the _t must always be the last part (necessary for the copy field for _t to automatically work). For example, a single valued title field that is copied into _text_ should be named title_si_t. This can be done by adding this a new metadatum.
Not all combinations are supported for practicality reasons (and some might not make sense when combined).
The most notable dynamic fields are:

*_text (and its sub-types): All text fields and may have _si or _t.
*_string (and its sub-types): A dynamic field compatible variation of the base string type and may have _si or _t.
*_ws (and its sub-types): All text fields explicitly using the white-space splitting tokenizer and may have _si or _t.
*_facet (and its sub-types): All text fields that are designed to be used during faceting and must not have _si or _t.
*_whole (and its sub-types): All text fields being stored as a single field and the entire string must match, probably should never have _si or _t.

The original field schema structure is recreated utilizing these dynamic fields for compatibility reasons. Future versions of Sage ideally should not have most of these or should have none of these.
More complex "good to have" types such as URI are omitted. A URI type would be good to have because it would allow for partial matches against the URI (which could be a URN or a URL). For example searching for tamu.edu should match a full URL like https://library.tamu.edu/. At this time, these URI paths are using the _whole text type.
The research has revealed that searching using the white-space tokenizer results in more natural and more accurate searches. This is not well tested and there may be problems with this that are simply unknown due to my inexperience with the data and its intended daily or normal uses. The _ws Dynamic Field is available to provide control over switching between the standard and the white-space tokenizer algorithms by the Manager. This has a notable downside of adding even more fields to select from. This includes, perhaps, adding even more metadata.
Several of the problems with searching are solved by strongly separating the index and the query analyzers. Most of the time both the index and the query analyzers must be lower-case to match. This introduces a problem with the Faceting design provided by Sage. The tokenized results that are needed for both queries and indexes to operate in a proper or ideal manner interferes with the desired design of the faceting. The _facet Dynamic Field is added to address this problem. All facets should select the _facet Dynamic Field. This field is manually created using Copy Fields for compatibility reasons and to help avoid needing to create metadata for every single type to be faceted. This is an important design area that needs more design considerations for future Sage releases.
The _en_split text type is added to be compatible with the older Solr core designo. I do not know if this is needed and future development should consider the removal or further adoption of this.
Much of these changes create a strong desire to improve the Sage UI and UX to make handling all of the sub-types and Dynamic Fields more practical. Such changes are considered outside the scope of this issue and are ignored. This is another important area that needs more technical design planning.
The solrconfig.xml must be changed due to the re-write of the schema. The changes are kept to a bare minimum and are primarily focused around Field Name changes. The _str Copy Fields in the solrconfig.xml are entirely removed.
Basic stop words are added as an example.
This needs to be properly setup.
The _facet Dynamic Field utilizes these stop words. There may need to be more than one type, such as stopwords-facet.txt if the facets needs special handling beyond the normal stop words.
With this change, the system can have Dynamic Fields added through Sage itself. That means the Solr core does not need to be directly touched.
Be sure to rename managed-schema to managed-schema.xml when Solr Core gets updated to more recent versions.
Fixes #515
Type of change
Please delete options that are not relevant.

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

How Has This Been Tested?
Please describe the tests that you ran to verify your changes. Provide instructions so we can reproduce. Please also list any relevant details for your test configuration

[x] Manually through SAGE's UI.
[x] Manually directly through Solr's.
[x] Through unit tests.

Checklist:

[x] My code follows the style guidelines of this project
[x] I have performed a self-review of my code
[x] I have commented my code, particularly in hard-to-understand areas
[ ] I have made corresponding changes to the documentation
[x] My changes generate no new warnings
[x] New and existing unit tests pass locally with my changes

Coverage: 45.813% (-0.05%) from 45.866% when pulling 39ac00311140e085a2b99e1034dad0f9e2ed63ac on 515-solr_schema-redesign into ac124474e4790c9a79f5cd083f42ae8c320ac23c on staging.

I am interested to know how these changes might or might not impact existing discovery views. What, if any, impact do you think it would have?


CR unblocker no longer unblocks?

(Posting here because the addon repo is still down)
Since a few days ago the CR reloads, the language switches to English and there's a US flag in the footer instead of a German one, just like CR unblocker normally would, but I can't watch any of the region locked shows.
Example of a show that's not available in Germany:
https://www.crunchyroll.com/goblin-slayer

Sorry, due to licensing limitations, videos are unavailable in your region.

I've tried it in FF 64.0.2 on Android an Windows.
Is anyone able to reproduce this behavior?

Just an update as the extension is currently working again.

I wonder if the outage(s?) they have been having in the last couple of days couldn't be related.
.. Anyway, I can also confirm it works flawlessly.


Forward model tutorial not working (sample data problem?)

I'm trying to go through the tutorial on creating a forward solution here. I'm behind a proxy, so I wasn't able to download the data automatically. Instead I snagged the URL out of the source code and downloaded it manually. I then decompressed the folder and stuck it in my working directory.
The only change I made to the tutorial code was to specify
data_path = sample.data_path('./')

instead of using the default environment variables, since I want to keep the data with my script.
Following the tutorial exactly, I get an error at line 439 of surface.py in _fread3(fobj). The error is
ValueError: not enough values to unpack (expected 3, got 0)

The same error occurs both times that mne.viz.plot_bem() is called in the tutorial.
Can I safely ignore this error and move on with creating the forward solution, or is the fact that I can't plot the data indicative of a problem that is going to ruin the foward model?

Can you provide the full stack trace?

Something along these lines
Using surface: C:\Users\SHIUser\sumi-forward-model\MNE-sample-data/subjects\sample\bem\inner_skull.surf
Using surface: C:\Users\SHIUser\sumi-forward-model\MNE-sample-data/subjects\sample\bem\outer_skull.surf
Using surface: C:\Users\SHIUser\sumi-forward-model\MNE-sample-data/subjects\sample\bem\outer_skin.surf

---------------------------------------------------------------------------
ValueError                                Traceback (most recent call last)
<ipython-input-64-7847f8865159> in <module>()
----> 1 mne.viz.plot_bem(subject, subjects_dir, brain_surfaces='white', src=src, orientation='coronal')

C:\Users\SHIUser\Anaconda3\lib\site-packages\mne\viz\misc.py in plot_bem(subject, subjects_dir, orientation, slices, brain_surfaces, src, show)
    443     # Plot the contours
    444     return _plot_mri_contours(mri_fname, surfaces, src, orientation, slices,
--> 445                               show)
    446
    447

C:\Users\SHIUser\Anaconda3\lib\site-packages\mne\viz\misc.py in _plot_mri_contours(mri_fname, surfaces, src, orientation, slices, show)
    309     for file_name, color in surfaces:
    310         surf = dict()
--> 311         surf['rr'], surf['tris'] = read_surface(file_name)
    312         # move back surface to MRI coordinate system
    313         surf['rr'] = nib.affines.apply_affine(trans, surf['rr'])

C:\Users\SHIUser\Anaconda3\lib\site-packages\mne\surface.py in read_surface(fname, read_metadata, return_dict, verbose)

C:\Users\SHIUser\Anaconda3\lib\site-packages\mne\utils.py in verbose(function, *args, **kwargs)
    705         with use_log_level(verbose_level):
    706             return function(*args, **kwargs)
--> 707     return function(*args, **kwargs)
    708
    709

C:\Users\SHIUser\Anaconda3\lib\site-packages\mne\surface.py in read_surface(fname, read_metadata, return_dict, verbose)
    510     read_tri
    511     """
--> 512     ret = _get_read_geometry()(fname, read_metadata=read_metadata)
    513     if return_dict:
    514         ret += (dict(rr=ret[0], tris=ret[1], ntri=len(ret[1]), use_tris=ret[1],

C:\Users\SHIUser\Anaconda3\lib\site-packages\mne\fixes.py in _read_geometry(filepath, read_metadata, read_stamp)
     98     NEW_QUAD_MAGIC = 16777213
     99     with open(filepath, "rb") as fobj:
--> 100         magic = _fread3(fobj)
    101         if magic in (QUAD_MAGIC, NEW_QUAD_MAGIC):  # Quad file
    102             nvert = _fread3(fobj)

C:\Users\SHIUser\Anaconda3\lib\site-packages\mne\surface.py in _fread3(fobj)
    437 def _fread3(fobj):
    438     """Read 3 bytes and adjust."""
--> 439     b1, b2, b3 = np.fromfile(fobj, ">u1", 3)
    440     return (b1 << 16) + (b2 << 8) + b3
    441

ValueError: not enough values to unpack (expected 3, got 0)

That would suggest something is wrong with the surface files. Can you check if inner_skull.surf, outer_skull.surf and outer_skin.surf are present and readable? They should be in the bem folder of sample subject.

Thanks for the guidance. All three files are present, but have a file sizeo of 0 KB. I'll try to download the sample dataset again and let you know if that fixes the problem.

Closing for now, then.
Are you on Windows? I wonder if those are actually symbolic links that don't get resolved properly.

@Eric89GXL Your intuition was spot on.

Windows 8, 7zip.

Opening 7zip as administrator and rerunning the extraction solved the problem. Thanks for the guidance.


Use conda mambabuild not mamba mambabuild

With the release of conda 23.7.3, mamba mambabuild stopped working. With boa installed, conda mambabuild uses the mamba solver, so just use that instead.
See also https://github.com/rapidsai/cudf/issues/14068.

/okay to test

/merge


why does the compiled tool requires a MATLAB script as an input

I understand that to execute a matlab script one needs a license.
Yet the compiled tool docs say to start the tool one has to invoke matlab script AutomatedToolScript.m
https://github.com/CorentinLabelle/Brainstorm-Tool/blob/main/compiled_tool/README.md
brainstorm3.command <MATLABROOT> <AutomatedToolScript.m> <PathToAnalysisFile>
Are you sure your solution is completely license independent, or is it a typo?

Hi! Yes, the solution is license independent. From the Brainstorm documentation:

Brainstorm scripts can also be executed from the compiled version of Brainstorm, therefore not requiring a Matlab license, only the installation of the free MATLAB Runtime.

The Matlab script provided is a single function designed to execute the tool.

Hi @MontrealSergiy - Corentin added an update last week, could you please let us know if you think this would resolve the issue :
https://github.com/CorentinLabelle/Brainstorm-Tool/blob/main/cbrain_implementation/boutique_descriptor/bst-tool.json


Cooperating with genType-powered dependencies

I have three packages:

Client
Server
Common

All of them use genType for generating TS files. When I use something from Common.Something module (i.e. from 'Something.re' in the Common package) genType doesn't pick up correct definitions from the Common's package modules (i.e. I'd expect it to import refs from Common/Something.gen).
I realise it's a complex issue at the intersection of package management and buckle script itself (especially with namespaces enabled).
What's the best approach to take here? I'm currently creating and manually maintaining shims for the Common package which is turning out not to be that bad. I also needed to create index.ts inside Common package to reexport all generated definitions.

@wokalski do you have any suggestions on how to go about this?
I guess somewhere, knowledge of all the packages involved is required.

My line of thinking begins with BuckleScript; the dependency structure between generated TS files mirrors to the structure (and locations) of dependencies between Reason/OCaml files. I'm not familiar with neither internals of BuckleScript or genType but there is the knowledge of all packages involved in the BuckleScript's build environment.

Wondering if this is somehow related: https://github.com/BuckleScript/bucklescript/pull/3803

@wokalski How are you accomplishing this? I'm working on a project with the same structure (Common pkg used by server and client)
The one thing I'm not able to figure out is when the server or UI *.re files are generated, all the imports that use my common package end in .gen instead of .shim. Example: import {Company_companyPlanIndex as Universal_Company_companyPlanIndex} from '../../src/shims/Universal.gen';
I've tried various settings in bs-config.json to fix this but can't find a solution.

NM Noob moment. Had my shims object in the bsconfig outside of gentypeconfig. For anyone who runs into this you can set a custom path instead of just a name for where your shim is. Example:
"shims": {
      "Universal": "./src/shims/Universal.shim.ts"
    }

What happens even before running genType? Are the cross-references generated correctly by bucklescript, and how?

I'm assuming you're referring to using values (not types from my "common" package).
If the project that's dependent on the "common" package uses a value from it, bucklescript generates the import correctly. Example (Bcu is my
var Company$Bcu = require("bcu/src/Company.bs.js");

I took another approach, I created shim files which I maintain manually which just reexport stuff from genotyped files in another package. It's not ideal I admit.

That makse sense. I still needed a shim but since I re-exported everything from the common package index file, my shim looked like this:
export * from "common"

@thislogancall is Bcu in node_modules?

Yes

@thislogancall  OK then  I did not understand the context well enough.
It might be possible for genType to read the relevant part of bsconfig and look for files in the appropriate place in node_modules.

There's a PR now: https://github.com/cristianoc/genType/pull/301.
The convo can be continued there.

@thislogancall let me know if this is in line with what you need:
https://github.com/cristianoc/genType/pull/301/files#diff-4efc27d1cbc4824c8201fe740f82031cR11

This has an example of creating a library and using its types: https://github.com/cristianoc/genType/pull/301.

@cristianoc Yes, I believe it does. Once this is in the latest release I can confirm.

@cristianoc I believe this is only partially resolved. I still need to implement a shim file, but now I have to do it for each module within the universal package instead of the universal as a whole.
For instance, the following code is generated code from the UI. The source file for this is a .re and uses the universal package.
import {authedCompany as Company_authedCompany} from './Company.gen';

Really I would imagine that it would be importing it like this:
import {authedCompany as Company_authedCompany} from<EMAIL_ADDRESS>
Again, the universal package is written in Reason with genType. The UI is partially in Reason right now and also using genType. Let me know if more info would help!
The part that did seem to get fixed — genType previously was importing it like this so i now don't have to export authedCompany a second time as Company_authedCompany:
import {Company_authedCompany as Bcu_Company_authedCompany} from '...';

@cristianoc Actually, I thought i'd be able to setup a shim for the individual modules but it seems shims for the universal package that's also created with Re/gentype don't seem to be registering.
I'm trying to setup a shim for this to use the npm package:
import {authedCompany as Company_authedCompany} from './Company.gen';

My bsconfig:
{
"gentypeconfig": {
    "exportInterfaces": false,
    "language": "typescript",
    "importPath": "absolute",
    "module": "commonjs",
    "debug": {
      "all": false,
      "basic": false
    },
    "shims": {
      "Js": "Js",
      "Company": "Company",
      "User": "User",
      "ReactDOMRe": "ReactDOMRe",
      "ReactEvent": "ReactEvent",
      "Axios": "Axios",
      "Future": "Future",
      "Axios_types": "Axios",
      "Belt": "Belt",
      "Css": "Css",
      "ReasonReactRouter": "ReasonReactRouter"
    }
  },
  ...
}

Shim (Company.shim.ts)
export * from<EMAIL_ADDRESS>

@thislogancall I'd like to actually reduce the use of shims -- possibly eliminate them eventually.
E.g. if your code is in Reason, then you should not need shims.

Right, agreed, but the reason for the need here is because genType is generating the import statement incorrectly. It's looking for the Company module in the current directory when it should be pulling from an NPM package. Any suggestions?

@thislogancall what npm package, and do you have control over the package?
I had a little test where it was importing from eg bs-fetch, though of course it could not find the .gen file there, but the reference was correct.

@cristianoc It's the universal package I've been referencing this issue. It's a package in a private repository and yes I have control over it.

@thislogancall I think a good goal is to:

run genType on universal, and publish it so that it has .gen.ts files in addition to .bs.js ones.
reference it from bs-dependencies, also notice you need to opt-in by using use-bs-dependencies from any package using universal, see release notes https://github.com/cristianoc/genType/releases/tag/v3.4.2.

This "might" work (these are all new feature hence the "might").
Eventually I want to remove the opt-in part. It's there just to be on the safe side for now.

@cristianoc Perfect. I had done everything except add "use-bs-dependencies": true to my gentypeconfig. Everything is working as expected now, thank you.

@thislogancall oooh this is great!
I should document this, make the feature visible, and remove the opt-in part.


Rails 8 support

Hello,
tried upgrade rails to 8. But got error depends on rails >= 6.0, < 8. Please, add support for rails 8.0.0.
Thanks.

Will be fixed by https://github.com/instrumentl/rails-cloudflare-turnstile/pull/185

For anyone else blocked until this gem is updated (released), you can upgrade to rails 8 while using this gem by pointing directly to the main branch on GitHub in your Gemfile:
gem "rails_cloudflare_turnstile", git: "git@github.com:instrumentl/rails-cloudflare-turnstile.git"


Redundant local name for modified imports

isort 5.0.4 changes this
import urllib.parse as parse

...to this:
from urllib import parse as parse

I think as parse is redundant and should not be emitted, but just
from urllib import parse

FWIW pylint will issue useless-import-alias for the duplication.

More generally, perhaps isort should remove useless aliases whether isort generated them or not:
input:
from datetime import datetime as datetime

print(datetime.now())

current output: unchanged
expected output:
from datetime import datetime

print(datetime.now())

I agree. But for completeness, I've seen documented conventions where those "useless" aliases are actually used to mark an import being part of an API. So e.g. for a module that doesn't use foo itself at all, from bar import foo as foo with the alias serves to note that the import isn't accidental. I can't locate a reference to such a convention at the moment, nor do I actually personally find it a good one, but thought I'd mention it, FWIW.

This is fixed in develop and will be released in the 5.1.0 minor release slated for release by end of month at the latest. As part of this a new remove_redundent_aliases config option has been added - though no alias will now show up by default either way if there was not one present originally.
Thanks!
~Timothy

This has now been deployed to PyPI in the 5.1.0 release, thanks again!
~Timothy


Articulate list of data science principles

For now, pending feedback:

Analyses are reproducible and portable
Collaboration is easy

Data is accessible
Code is easy to read and interpret
Work is transparent

Code is trustworthy and robust
Clients can easily find and interpret analyses


Crash when harvester interacts with beetroots

When a harvester interacts with a beetroot the server will crash.
https://gist.github.com/nightred/042a72a4b0067ee834ed250bfc5f8b30

Also got this crash. Server crash when a harvester tries to interact with the Pam's Harvest Craft peanut crops.
crash-2016-11-19_10.28.32-server.txt


/bus/refresh took more than 40s

Hi, I got problems with spring cloud bus.
I got 2 eureka servers,  2 spring cloud config servers in two machine, with about 10 clients in each server.
Every time I sent a post request( /bus/refresh ) to one of the config servers, it took 40 seconds. Is this OK? Or maybe I lost some props? Anyone cloud help me? Many thanks.

No, but I also have no way of telling why. Can you provide more information, versions, logs, configuration? Maybe a project that reproduces the problem?

Firstly, thank you so much for reply.
My config-server was almost the same as this https://github.com/kratosB/config-service.
There were too much clients so that I could't show you.
The common properties for clients in application-test.yml was also in the repo.
The config-service.log in the repo was the log of the config-service (after I sent the post request "/bus/refresh")
The client-service.log in the repo was the log of one of the clients.
==============================================
2017-11-08 15:51:35.208  INFO 21753 --- [o-23006-exec-45] s.c.a.AnnotationConfigApplicationContext : Refreshing org.springframework.context.annotation.AnnotationConfigApplicationContext@6febfe2b: startup date [Wed Nov 08 15:51:35 CST 2017]; root of context hierarchy
2017-11-08 15:51:35.250  INFO 21753 --- [o-23006-exec-45] f.a.AutowiredAnnotationBeanPostProcessor : JSR-330 'javax.inject.Inject' annotation found and supported for autowiring
2017-11-08 15:51:35.309  INFO 21753 --- [o-23006-exec-45] o.s.c.c.s.e.NativeEnvironmentRepository  : Adding property source: file:/data/tomcat_3006/temp/config-repo-8443026401158727742/mobile-service/mobile-service-dev.yml
2017-11-08 15:51:35.309  INFO 21753 --- [o-23006-exec-45] o.s.c.c.s.e.NativeEnvironmentRepository  : Adding property source: file:/data/tomcat_3006/temp/config-repo-8443026401158727742/application-test.yml
2017-11-08 15:51:35.309  INFO 21753 --- [o-23006-exec-45] s.c.a.AnnotationConfigApplicationContext : Closing org.springframework.context.annotation.AnnotationConfigApplicationContext@6febfe2b: startup date [Wed Nov 08 15:51:35 CST 2017]; root of context hierarchy
By the way, the config-server kept in produce such logs, and I found some infomations in https://github.com/spring-cloud/spring-cloud-config/issues/423. However "spring.cloud.config.server.health.enabled=false " didn't work. According to https://github.com/spring-cloud/spring-cloud-config/pull/426, seems you guys had made health.config.enabled default to false?
Then why my server still produced these, which made me confused.
In our uat enviroment, the logs like this. Every 5-10 seconds.
2017-11-08 17:24:44.416  INFO 15355 --- [-23006-exec-128] s.c.a.AnnotationConfigApplicationContext : Refreshing org.springframework.context.annotation.AnnotationConfigApplicationContext@7c332a83: startup date [Wed Nov 08 17:24:44 CST 2017]; root of context hierarchy
2017-11-08 17:24:44.433  INFO 15355 --- [-23006-exec-128] f.a.AutowiredAnnotationBeanPostProcessor : JSR-330 'javax.inject.Inject' annotation found and supported for autowiring
2017-11-08 17:24:44.472  INFO 15355 --- [-23006-exec-128] s.c.a.AnnotationConfigApplicationContext : Closing org.springframework.context.annotation.AnnotationConfigApplicationContext@7c332a83: startup date [Wed Nov 08 17:24:44 CST 2017]; root of context hierarchy
2017-11-08 17:24:48.383  INFO 15355 --- [-23006-exec-176] s.c.a.AnnotationConfigApplicationContext : Refreshing org.springframework.context.annotation.AnnotationConfigApplicationContext@27989487: startup date [Wed Nov 08 17:24:48 CST 2017]; root of context hierarchy
2017-11-08 17:24:48.401  INFO 15355 --- [-23006-exec-176] f.a.AutowiredAnnotationBeanPostProcessor : JSR-330 'javax.inject.Inject' annotation found and supported for autowiring
2017-11-08 17:24:48.451  INFO 15355 --- [-23006-exec-176] s.c.a.AnnotationConfigApplicationContext : Closing org.springframework.context.annotation.AnnotationConfigApplicationContext@27989487: startup date [Wed Nov 08 17:24:48 CST 2017]; root of context hierarchy
2017-11-08 17:24:52.952  INFO 15355 --- [-23006-exec-162] s.c.a.AnnotationConfigApplicationContext : Refreshing org.springframework.context.annotation.AnnotationConfigApplicationContext@29359235: startup date [Wed Nov 08 17:24:52 CST 2017]; root of context hierarchy
2017-11-08 17:24:52.976  INFO 15355 --- [-23006-exec-162] f.a.AutowiredAnnotationBeanPostProcessor : JSR-330 'javax.inject.Inject' annotation found and supported for autowiring
2017-11-08 17:24:53.019  INFO 15355 --- [-23006-exec-162] s.c.a.AnnotationConfigApplicationContext : Closing org.springframework.context.annotation.AnnotationConfigApplicationContext@29359235: startup date [Wed Nov 08 17:24:52 CST 2017]; root of context hierarchy
2017-11-08 17:24:58.121  INFO 15355 --- [-23006-exec-184] s.c.a.AnnotationConfigApplicationContext : Refreshing org.springframework.context.annotation.AnnotationConfigApplicationContext@345b7634: startup date [Wed Nov 08 17:24:58 CST 2017]; root of context hierarchy
2017-11-08 17:24:58.140  INFO 15355 --- [-23006-exec-184] f.a.AutowiredAnnotationBeanPostProcessor : JSR-330 'javax.inject.Inject' annotation found and supported for autowiring
2017-11-08 17:24:58.179  INFO 15355 --- [-23006-exec-184] s.c.a.AnnotationConfigApplicationContext : Closing org.springframework.context.annotation.AnnotationConfigApplicationContext@345b7634: startup date [Wed Nov 08 17:24:58 CST 2017]; root of context hierarchy

Hi @spencergibb
I still couldn't find any useful information to solve my problem.
Could you please take a look? Many thanks.

Closing due to lack of requested feedback. If you would like us to look at this issue, please provide the requested information and we will re-open the issue.


show percentage in center donut

Is it possible to show the percentage in the center of the donut?

Any work round for this. its really important.


Typos in new JavaScript make an RPG game

Describe the Issue
There is a typo in Step 108, the word property is single while it should be properties.
Here is the typo
https://github.com/freeCodeCamp/freeCodeCamp/blob/6dd8c6241be330bd3b32b7af6756f60473fc88c7/curriculum/challenges/english/15-javascript-algorithms-and-data-structures-22/learn-basic-javascript-by-building-a-role-playing-game/62a8d81f539f004776dd9b1e.md#L12

in step 102, there is a missing code block in this line
https://github.com/freeCodeCamp/freeCodeCamp/blob/6dd8c6241be330bd3b32b7af6756f60473fc88c7/curriculum/challenges/english/15-javascript-algorithms-and-data-structures-22/learn-basic-javascript-by-building-a-role-playing-game/62a8d35660db4040ba292193.md#L20
it should be this

You should set goldText.innerText to gold.

in step 81, there are three missing code blocks in these line
https://github.com/freeCodeCamp/freeCodeCamp/blob/6dd8c6241be330bd3b32b7af6756f60473fc88c7/curriculum/challenges/english/15-javascript-algorithms-and-data-structures-22/learn-basic-javascript-by-building-a-role-playing-game/62a8c7322e42962ad53ad204.md#L35-L50
they should be

Your second weapons object should have the name set to dagger and the power set to 30.

Your third weapons object should have the name set to claw hammer and the power set to 50.

Your fourth weapons object should have the name set to sword and the power set to 100.

Additional context
If you would like to fix this issue, please make sure you read our guidelines for contributing, we prioritize contributors following the instructions in our guides. Join us in our chat room or the forum if you need help contributing, our moderators will guide you through this.
Sometimes we may get more than one pull requests. We typically accept the most quality contribution, followed by the one that is made first.
Happy contributing.

I would like to work on this.

@void-hr feel free to open a pull request, after you have read our guidelines for contributing.

@Sboonny I have opened a PR please let me know if there are any changes or improvements that needs to be done.


Parsedown stops parsing after  tag

Input:
test
# one
# two

expected result:

test

one

two

Got:
test
# one
# two

I've had a look at this, the problem seems to be using two html tags on a single line. I get the same erronous result with other tags. Also, it is not specifically the image tag, because when you put the image tag on a new line, it parses fine. I'll dig a bit deeper

I witness the same : if there are several HTML tags on the same line parsing stops for the rest of the document.
A simple test to showcase the bug is :
public function test_that_breaks() {
        $markdownWithHtml = <<<MARKDOWN

# Test
MARKDOWN;

        $expectedHtml = <<<EXPECTED_HTML

Test

EXPECTED_HTML;
        $parsedown = new Parsedown();
        $this->assertEquals($expectedHtml, $parsedown->text($markdownWithHtml));
    }

It fails with :
--- Expected
+++ Actual
@@ @@
 '

-
Test
'
+
+# Test'

I could pin down the cause to the regex test that checks if the opening element closes at the end of the line at line 714 https://github.com/erusev/parsedown/blob/master/Parsedown.php#L714 i.e.
                if (preg_match('/<\/'.$matches[1].'>[ ]*$/i', $remainder))
                {
                    $Block['closed'] = true;
                }

Not sure what's the best course of action here. Iterate over the remaining found elements in the line while we find them closed ?

Thanks @jvelo I'll investigate.

@erusev great ! Thanks.

This will be fixed in the next release, you'd just need to add a newline after HTML to tell Parsedown to process markdown again


resolve merge conflicts toolbar disappear

Does this issue occur when all extensions are disabled?: Yes

Version: 1.70.0 (user setup)
Date: 2022-08-04T04:38:16.462Z
Electron: 18.3.5
Chromium: 100.0.4896.160
Node.js: 16.13.2
V8: <IP_ADDRESS>-electron.0
OS: Windows_NT x64 10.0.19044

this is what I want:

and some days ago it works as expected, but today I found the toolbar just disappear.
but I get :

I've searched the question in Stackoverflow, and I got a similar question(https://stackoverflow.com/questions/47241098/accept-incoming-change-not-appearing-in-vs-code), and I've tried set editor.codeLens: true and diffEditor.codeLens: true, but it still not work.
Steps to Reproduce:

init a git repo and do some branch merge operation

This just happened to me too, the solution for me was to open settings (command+comma), search for merge, and disable Git: Merge Editor.

@256hz thanks! That helped resolve this.

This just happened to me too, the solution for me was to open settings (command+comma), search for merge, and disable Git: Merge Editor.

yes it works !!!!!!!!, but I don't know it is the proper way . I don't know what side effect it will cause .
and I installed github desktop and find I needn't it so uninstall it , so is there any chance that the github desktop is the culprit or it is just a vscode bug?

It's not a bug. As mentioned in the 1.70 release notes, the new merge editor has become the default. If you don't want to use it, clear that checkbox.

@gjsjohnmurray Was it this section? https://code.visualstudio.com/updates/v1_70#_3way-merge-editor-improvements
It might've been helpful to provide information on reverting using the checkbox option that @256hz mentioned earlier.

@gjsjohnmurray  yes it is mentioned in the release notes, but it says "The merge editor can be opened by clicking on a conflicting file in the Source Control view.", so I have to manually click the panel ? is there any way that it will jump to the editor automatically you type some merge operation in bash ?

It might've been helpful to provide information on reverting

Agreed. Anyway, here's a link to the info.
https://github.com/microsoft/vscode/issues/157268#issuecomment-1206670413

is there any way that it will jump to the editor automatically you type some merge operation in bash ?

Pinging @lszomoru about this.

thank you all and I hope release notes more image to demonstrate the differences .

Please don't close this issue.
I think this is a bug that we should fix

Please don't close this issue. I think this is a bug that we should fix

ok, reopend.

New merge tool itself is cool but the editor view without clear indication of the conflict is never I wanted.
I would like to have both. Is there any good reason to be them mutually exclusive?

Happy I found this issue - I've had to re-enable "git.mergeEditor": false - no matter what I do I can't seem to trigger/open the new merge editor when clicking on a file that is currently in conflict.
Would like to be able to try this - but from the file explorer or source control views - just can't get it to fire.

Being able to have both would be really neat! I love both ways of resolving conflicts, depending on the situation. Being able to have this configuration would be awesome!
"diffEditor.codeLens": true,
"git.mergeEditor": true,

@hediet, @jrieken could you please take a look? Thank you!

/duplicate #153800

I never would have figured out how to fix this if not for this issue (I assumed it was a bug and "Merge Editor" was the pre-1.70 thing I actually wanted to keep, so I was puttering around in "Merge Conflict" settings). I don't always read release notes since they're so lengthy (and judging by this thread, suspect I'm not the only one).
Honestly, what would really help is a "new since 1.70 (August 2022)" badge next to the setting. Then it would be immediately obvious. Bonus points for making such "new" settings searchable so I can quickly navigate through new settings.
Here's my cruel attempt with MS Paint:

Thoughts?

I don't like the new merge tool. If you want to try it out, there's no need to break functionality that devs are already used to. It's not even obvious "untick 'open the merge editor'" could be replaced with a checkbox ticked by default called "resolve conflicts inline".

This just happened to me too, the solution for me was to open settings (command+comma), search for merge, and disable Git: Merge Editor.

yes it works !!!!!!!!, but I don't know it is the proper way and what side effect it has .
Today I installed github desktop and find I needn't it then uninstall it , so is there any chance that the github desktop is the culprit or it is just a vscode bug?

i  set it but, still  doesn't work

This just happened to me too, the solution for me was to open settings (command+comma), search for merge, and disable Git: Merge Editor.

This worked for me as well. Thanks!


remove plain run: test

Applied mkpr on .github/workflows/update_package_lock.yml
sed /.*run: test/d

Pull Request Test Coverage Report for Build<PHONE_NUMBER>

0 of 0   changed or added relevant lines in 0 files are covered.
No unchanged relevant lines lost coverage.
Overall coverage remained the same at 98.485%

Totals

Change from base Build<PHONE_NUMBER>:
0.0%

Covered Lines:
61

Relevant Lines:
61

💛  - Coveralls


Improve SBOM Performance - implement forward proxy

Large maven projects take significant time to complete.
Most of the time is waiting for downloads of POM metadata from various Maven repos (e.g. Apache, Maven, others).
Trivy supports configuring a forward proxy for Maven (see https://trivy.dev/v0.25.4/docs/references/troubleshooting/#maven-rate-limiting-inconsistent-jar-vulnerability-reporting)
With sufficient cache, this could improve overall performance.

Does Trivy provide any kind of status or debug info indicating what it is doing while running - that we could output to console and use to monitor progress while generating an SBOM?

Does Trivy provide any kind of status or debug info indicating what it is doing while running - that we could output to console and use to monitor progress while generating an SBOM?

There is a debug mode we can enable, but it is extremely verbose and would just fill up the console.  I turned this on and it was effective for debugging the performance problem, but I think you would find it quite annoying as a mechanism for status.

It looks like to try the caching forward proxy, it would take 2 to 5 hours to:

Install and configure NGINX
Put in the recommended configuration from Trivy
Run a performance test

Here's an article on installing NGINX as a forward proxy: https://www.baeldung.com/nginx-forward-proxy

This looks like a lot more promising performance improvement: https://stackoverflow.com/a/9974627/28596164
The open source solution is no longer maintained.
Sonatype Nexus looks like a reasonable choice: https://www.sonatype.com/products/sonatype-nexus-repository
it is $12/month per user.
Not sure how to hook this into Trivy.
I started discussion https://github.com/aquasecurity/trivy/discussions/8118 to ask some advice from the Trivy team.

Here's a list of local repository managers from Maven documentation - looks like there are some open source alternatives we could explore:
Artipie (open source)
Bytesafe (commercial)
CloudRepo (commercial)
Cloudsmith Package (commercial)
Forgejo (open source)
Gitea (open source)
Inedo ProGet (commercial)
JFrog Artifactory Open Source (free, not open source)
JFrog Artifactory Pro (commercial)
MyGet (commercial)
OneDev (open source)
Sonatype Nexus OSS (free, not open source)
Sonatype Nexus Pro (commercial)
packagecloud.io (commercial)
Reposilite (open source)

From the response from Trivy - it looks like the forward proxy won't help.
Also not sure if the local artifact repository will help.
Here's the code that is fetching the URL's which are causing the performance issue: https://github.com/aquasecurity/trivy/blob/eedefdddba74904c2bd28fcd123569de0a826638/pkg/dependency/parser/java/pom/parse.go#L676
Trivy does try to load it from the local repo - .m2/repositories/... - so we could just store the files there.  However, I'm not sure how to initially populate them.
Trivy also caches the artifact information using trivy-java-db.
From the debug trace, it looks like it is trying to access JBoss repo - e.g.:
2024-12-04T01:49:53Z    DEBUG   [pom] Resolving...      group_id="org.locationtech.jts" artifact_id="jts-core" version="1.17
.0"
2024-12-04T01:49:54Z    DEBUG   [pom] Failed to fetch   url="https://repository.jboss.org/nexus/content/groups/public/org/lo
cationtech/jts/jts-core/1.17.0/jts-core-1.17.0.pom"
2024-12-04T01:49:54Z    DEBUG   [pom] Start parent      artifact="org.locationtech.jts:jts-modules:1.17.0"
2024-12-04T01:49:54Z    DEBUG   [pom] Failed to fetch   url="https://repository.jboss.org/nexus/content/groups/public/org/lo
cationtech/jts/jts-modules/1.17.0/jts-modules-1.17.0.pom"
2024-12-04T01:49:54Z    DEBUG   [pom] Start parent      artifact="org.locationtech.jts:jts:1.17.0"
2024-12-04T01:49:54Z    DEBUG   [pom] Failed to fetch   url="http://people.apache.org/repo/m2-ibiblio-rsync-repository/org/a
pache/lucene/lucene-backward-codecs/5.5.5/lucene-backward-codecs-5.5.5.pom"
2024-12-04T01:49:54Z    DEBUG   [pom] Failed to fetch   url="https://repository.jboss.org/nexus/content/groups/public/org/lo
cationtech/jts/jts/1.17.0/jts-1.17.0.pom"
2024-12-04T01:49:54Z    DEBUG   [pom] Exit parent       artifact="org.locationtech.jts:jts:1.17.0"
2024-12-04T01:49:54Z    DEBUG   [pom] Exit parent       artifact="org.locationtech.jts:jts-modules:1.17.0"

So this may only be a problem when the project POM file specifies a repo which is not accessible.

Analysis on performance improvement to repeat attempts to access failed URLs:
Trivy time before caching URLs - 8:58:19
Trivy time after caching URLs - 8:53:00
Hardly any difference - not worth the effort.
Note that Parly only takes about 15 minutes.


Root action to change profile type between individual / org

We often have people who have set up an account for an org as an individual profile type (example), or the opposite. This sometimes creates problems for the user, or for a host. For example, OCF has to review payments made to orgs and individuals in certain ways and having them set up as the wrong type makes the data noisy. It would be great if root admins could change an individual profile to an org and vice versa.

Specs
My implementation would be the following one. cc @znarf, I haven't done this in a while, feel free to correct.
Pre-checks

Must not be a host. Would be great to support that in the future, but that adds a lot of complexity to the MVP.

Action

Create a new USER entry in the Collectives table, re-using most info from the existing profile
Update the corresponding CollectiveId in Users to this new profile
Change the type of the original USER account to Organization


Implement plugin stop behavior

This fixes #5 adding shutdown behavior. There's a bare minimum of changes needed to mock stuff to make this testable.

LGTM!  I love that you cleaned up unnecessary ivars.  It's nicer to read now.

@untergeek thanks! I actually only did it because mocking with instance_variable_set was acting funky, but I agree, it makes the code less funky!


Getting right aligned text.

With some files, I get the text right aligned:

(May be it's the tabs?)
The command I'm using for this is difft original.php modified.php
difft -V
Difftastic 0.24.0

The files are attached.

On further investigation, the problem seems to be the line endings. The files have CRLF (windows) line endings. If I change them to just LF (Linux) difftastic works just fine.


chore(main): release 6.0.4

:robot: I have created a release beep boop
6.0.4 (2024-08-22)
Bug Fixes

closing split when opening directory (#403) (80e8dc4)

This PR was generated with Release Please. See documentation.

:robot: Created releases:

v6.0.4
:sunflower:


Meeting summary 2016-11-17

Some travis failures:
- ./_site/en/meetings/2016/11/17/index.html
  *  internally linking to en/meetings/2016/07/14/#notes--short-topics, which does not exist (line 428)
  *  internally linking to en/meetings/2016/11/10/#hybrid-spv, which does not exist (line 447)
  *  trying to find hash of en/meetings/2016/07/14/#notes--short-topics, but /home/travis/build/bitcoin-core/bitcoincore.org/_site/en/meetings/2016/11/17/en/meetings/2016/07/14 does not exist (line 428)
  *  trying to find hash of en/meetings/2016/11/10/#hybrid-spv, but /home/travis/build/bitcoin-core/bitcoincore.org/_site/en/meetings/2016/11/17/en/meetings/2016/11/10 does not exist (line 447)
htmlproof 2.6.4 | Error:  HTML-Proofer found 4 failures!


Param attributes stripped when functions have certain length

Create a file with this input:
fn a1(#[aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa] a: u8) {}
fn b1(#[aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa] bb: u8) {}
fn a2(#[aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa] a: u8) {}
fn b2(#[aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa] bb: u8) {}

Run cargo fmt. a1 and b1 will have their attributes stripped. Remove one letter from the line and it will not be stripped as seen in a2 and b2.
fn a1(a: u8) {}
fn b1(bb: u8) {}
fn a2(
    #[aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa] a: u8,
) {
}
fn b2(
    #[aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa] bb: u8,
) {
}

Confirmed bug that's still reproducible on master/v2.0.0-rc.1-nightly.
I believe this could be fixed by updating the Spanned impl for Param
Changing:
https://github.com/rust-lang/rustfmt/blob/facba6a58a50fbdb1592748bb25defd95b5322c4/rustfmt-core/rustfmt-lib/src/spanned.rs#L112-L120
to something like:
impl Spanned for ast::Param {
    fn span(&self) -> Span {
        if crate::items::is_named_param(self) {
            mk_sp(crate::items::span_lo_for_param(self), self.ty.span.hi())
        } else {
            self.ty.span
        }
    }
}


LoHa loss shoot through the roof

I have been trainina using the new LoHa tytpe and the Loss went through the roof... but using the previous LoCon method is working fine:

Command used for LoHa. LoCon was same except for using algo=lora:
accelerate launch --num_cpu_threads_per_process=2 "train_network.py" --enable_bucket --pretrained_model_name_or_path="D:/models/v1-5-pruned.ckpt" --train_data_dir="D:\dataset\trailbugprints\img_g8" --resolution=512,512 --output_dir="D:/lora/sd1.5/trailbugprints" --logging_dir="D:\dataset\trailbugprints\lora\logs" --network_alpha="384" --save_model_as=safetensors --network_module=lycoris.kohya --network_args "conv_dim=384" "conv_alpha=384" "algo=loha" --text_encoder_lr=0.00005 --unet_lr=0.0001 --network_dim=384 --output_name="trailbugprints_v1.0c" --lr_scheduler_num_cycles="4" --learning_rate="0.0001" --lr_scheduler="constant" --train_batch_size="8" --max_train_steps="600" --save_every_n_epochs="1" --mixed_precision="bf16" --save_precision="fp16" --caption_extension=".txt" --cache_latents --optimizer_type="AdamW8bit" --max_data_loader_n_workers="0" --caption_dropout_rate="0.05" --bucket_reso_steps=1 --xformers --bucket_no_upscale --noise_offset=0.05  --sample_sampler=dpmsolver++ --sample_prompts="D:/lora/sd1.5/trailbugprints\sample\prompt.txt" --sample_every_n_steps="100"

your dim is way too high,
you are not supposed to use dim > sqrt(original dim) in loha.
I will add a warning message on it...

@bmaltais or you can use lower lr for super high dim loha,
this is not a bug, and actually normal(.

@bmaltais Or you can fix on alpha=1, this may help you.

Thank you. I have been creating LoRA with the highest possible ranks thinking I would extract more from the dataset. I then do a sv_fro resize of the large LoRA to reduce it down to a smaller size (usually 92% reductio) without loosing much from the original model. I guess with LoHa I will need a different approach...
What would you say is a practical upper limit for rank and alpha? When doing LoRA I use 512 rank and 512 alpha... when doing LoCon I used 384 for all of them because otherwise I get OOM error.
Any recommendations?

@bmaltais LoHA is not working like conventional LoRA, you can not use any way to "resize" a LoHa, (or you want to merge it and then extract to LoCon?)
And for what you want to do, you should use dreambooth to train whole model and then extract.
BTW, the rank of LoHa is dim**2, which means you only need dim=64 to get 4096 rank.

@bmaltais  and for my own opinion, if you want to use any dim>128, you should use dreambooth and then extract. not just train a lora on it. different layer need different rank.
And use frobinous norm is not good to me BTW, I will use quantile/percentile of singular value to dynamic extract the  lora/locon.

@KohakuBlueleaf Interesting. I have not had great results in the past extracting from dreambooth models. LoRA trained with high rank produced much better results vs dreambooth extraction... But perhaps I should try it again.

I see your extraction tool is much different from kohya... perhaps my issue with extraction is the tool I use ;-) Do you have a recommendation for configuration when using your extract.py tool to extract from a dreambooth checkpoint?

@bmaltais You can refer this:
https://huggingface.co/alea31415/umamusume-full/tree/main/extracted_locons

@bmaltais basically start at 0.75/0.75 quantile for both linear and conv
and then reduce them until you are not like the result

@KohakuBlueleaf Tried running:
python tools\lycoris_locon_extract.py --mode quantile --safetensors --linear_quantile 0.75 --conv_quantile 0.75 --device cuda D:/models/v1-5-pruned.ckpt D:/models/cyberrealistic_v12.safetensors "D:/lora/sd1.5/cyberrealistic_v12.safetensors"
But I get:
  File "D:\kohya_ss\venv\lib\site-packages\lycoris\utils.py", line 96, in extract_linear
    lora_rank = max(1, lora_rank)
UnboundLocalError: local variable 'lora_rank' referenced before assignment

Is it possible the utils.py need a variable allocated earlier on?

This is because your lycoris_lora is on old version
I have push some fix for this
Include: fix sys.path for tools scripts
Add NotImpl error for this kind of situation
Plz make sure you are at the latest commit and latest version of the package

OK, I was pinned at 0.0.5. Now up to 0.0.9. Will give it another try. Thanks!
I am trying a LoHa at dim/alpha of 8 for Linear and Conv... will see how it goes. So far so good. Trying to update the GUI to support the new LoHa.

@bmaltais if you need further help for this project or track the new thing, you can consider join this dc.
https://discord.gg/6VEnAtSC87
Or contact me in the SAIL or 東方AI server


High memory consumption when opening a file

When I open a file the memory consumes up to a gb of memory

Please make sure you do not have a ~/.git folder, and if you do, it should be safe to rename it to ~/.git-backup.  If that does not fix the issue, please comment here and I'll reopen this issue.


Node 18+ updates #21

Alaska Airlines Pull Request
Please include a summary of the change and which issue is fixed. Please also include relevant motivation and context. List any dependencies that are required for this change.
Resolves: #248, #249, #250, #251
Summary:
#250 should be resolved already without more changes
Please summarize the scope of the changes you have submitted, what the intent of the work is and anything that describes the before/after state of the project.
Type of change:
Please delete options that are not relevant.

[x] Revision of an existing capability

Checklist:

[x] My update follows the CONTRIBUTING guidelines of this project
[x] I have performed a self-review of my own update

By submitting this Pull Request, I confirm that my contribution is made under the terms of the Apache 2.0 license.
Pull Requests will be evaluated by their quality of update and whether it is consistent with the goals and values of this project. Any submission is to be considered a conversation between the submitter and the maintainers of this project and may require changes to your submission.
Thank you for your submission!
-- Auro Design System Team

@fajar-apri-alaska please see new issue for missing updates
https://github.com/AlaskaAirlines/auro-input/issues/254

@fajar-apri-alaska please see new issue for missing updates

Missing updates for Node 18+ support  #254

Thanks for addressing the missing updates ~

:tada: This PR is included in version 2.14.0 :tada:
The release is available on:

npm package (@latest dist-tag)
GitHub release

Your semantic-release bot :package::rocket:


Quickkey not always returned

Hi,
Firstly, great bit of coding and very simple to get setup.
If the quickkey isn't returned (which seems the case 4 out of 10 attempts on larger files) is there an easy way using the api to get the quickkey for the file uploaded?
I can confirm the file is in mediafire and in the correct file but it didn't return the key for that file.
Many thanks.

I have the same Problem. But when i test it with a .png .jpg file it works. After i test it with a .mp4 File i get this error:
Array ( [result] => 0 [status] => 6 [description] => Verifying File [fileerror] => [quickkey] => [hash] => [filename] => [size] => [created] => [revision] => [resumable_upload] => [result_message] => Success [fileerror_message] => )
Hope you can help me


Uninstalling uProxy in Firefox doesn't stop proxy connection

To replicate, GET access on uProxy for Firefox (tested with the sharer also using Firefox, not sure if this happens yet if the sharer is on Chrome), then while getting access remove the Firefox add on.   You will still be getting access through the proxy connection, even though the add-on is gone (this can be verified by revoking access on the sharer, then you will see a broken proxy error page)

The peerconnection is still alive??

Apparently, pretty freaky right?!
On Fri, May 22, 2015 at 3:39 PM, trevj<EMAIL_ADDRESS>wrote:

The peerconnection is still alive??
—
Reply to this email directly or view it on GitHub
https://github.com/uProxy/uproxy/issues/1552#issuecomment-104750672.

Yeah this makes no sense, seems like a firefox bug, I'm not sure if they agree though.

closing, duplicate of #1934


[content-block-cards with-video]: Kaltura thumbnails not sized properly

Description
JIRA: https://jsw.ibm.com/browse/ADCMS-3370
card-cta video thumbnails appear blurry
Component(s) impacted
Card-CTA video type, as seen on https://ibm.com/products/envizi/resources

This may be limited to the card-cta component, as the video-player-container seems unaffected at https://www.ibm.com/products/envizi/scope-1-2-ghg-accounting-reporting

Browser
Chrome
Carbon for IBM.com version
v1.46.0
Severity
Severity 3 = The problem is visible or noticeable to users but does not impede the usability or functionality. Affects minor functionality, has a workaround.
Application/website
ibm.com
Package
@carbon/ibmdotcom-web-components
CodeSandbox example
https://ibm.com/products/envizi/resources
Steps to reproduce the issue (if applicable)
No response
Release date (if applicable)
No response
Code of Conduct

[X] I agree to follow this project's Code of Conduct
[X] I checked the current issues for duplicate issues

Fixed and merged to main.


Add the ability to flash NixOS to eMMC on AGX Orin

Description of changes
This pull request adds the ability to flash NixOS to the eMMC on Nvidia AGX Orin.
In this implementation I'm copying boot and rootfs partitions from the sd-image to the place where the flashing script expects them to be and passing the -r flag so that it doesn't try to rebuild them. I decided to use L4TLauncher as a UEFI bootloader in order to make it similar to how it is done in Nvidia SDK and for simplicity. However it shouldn't be to hard to switch to systemd-boot or something similar if needed.
I'm not sure if this is the best possible implementation because I'm still new to Nix. Feel free to improve it or suggest changes.
Hopefully it resolves #16
Testing
Tested on Nvidia AGX Orin Developer Kit using the following commands:
nix build .#flash-scripts.flash-orin-agx-devkit-emmc
sudo ./result/bin/flash-orin-agx-devkit

Closing this one since it's already outdated and can't be merge. It can be fixed and improved later on in case there is any interest in this feature in the community.


VSCode failing to debug python code in Ubuntu 16.04 LTS!

VSCode Version:
Version: 1.43.2
Commit: 0ba0ca52957102ca3527cf479571617f0de6ed50
Date: 2020-03-24T07:52:11.516Z
Electron: 7.1.11
Chrome: 78.0.3904.130
Node.js: 12.8.1
V8: 7.8.279.23-electron.0
OS: Linux x64 4.15.0-88-generic
OS Version: Ubuntu 16.04 LTS
Steps to Reproduce:

Create and open a python file (testing.py; add a single line to it)

print('... testing').

2.Configure launch.json to use python.
3. Select Python: Interpreter.
I have tried  with conda environments; and python 3.5; 3.6; 3.6 with same error result.
4. Run the debugger (F5).

Does this issue occur when all extensions are disabled?: Yes
Only python extension is enabled. Version : 2020.3.69010 (19 March 2020)
Error  list
Error Window Popup
Session[1] timed out waiting for <debugpy.adapter.components.missing.<locals>.Missing object at 0x7fb9e2753cc0> to connect

Console output
(TESTSUITE) rpglover@u832f94cf022e52:~/Desktop/deleteme$  env DEBUGPY_LAUNCHER_PORT=40883 /anaconda3/envs/TESTSUITE/bin/python /rpglover/.vscode/extensions/ms-python.python-2020.3.69010/pythonFiles/lib/python/debugpy/no_wheels/debugpy/launcher /rpglover/Desktop/deleteme/testing.py
Traceback (most recent call last):
  File "/anaconda3/envs/TESTSUITE/lib/python3.6/runpy.py", line 193, in _run_module_as_main
    "__main__", mod_spec)
  File "/anaconda3/envs/TESTSUITE/lib/python3.6/runpy.py", line 85, in _run_code
    exec(code, run_globals)
  File "/rpglover/.vscode/extensions/ms-python.python-2020.3.69010/pythonFiles/lib/python/debugpy/no_wheels/debugpy/launcher/__main__.py", line 80, in <module>
    main()
  File "/rpglover/.vscode/extensions/ms-python.python-2020.3.69010/pythonFiles/lib/python/debugpy/no_wheels/debugpy/launcher/__main__.py", line 42, in main
    launcher.connect(launcher_port)
  File "/rpglover/.vscode/extensions/ms-python.python-2020.3.69010/pythonFiles/lib/python/debugpy/no_wheels/debugpy/launcher/../../debugpy/launcher/__init__.py", line 27, in connect
    sock.connect(("<IP_ADDRESS>", launcher_port))
ConnectionRefusedError: [Errno 111] Connection refused

See attached file for outputs during debugging.
vscode not running python in ubuntu 16.04.txt

Please start by filing this issue against the python extension

I had a similar error today. I just reload VS Code with extensions disabled and after I reloaded again in normal state. The error has gone.

I am facing the same issue

Got same issue on a PYNQ linux running on a Xilinx ZC702 FPGA


⚠ SceneTime has degraded performance

In ebcfcff, SceneTime ($ST) experienced degraded performance:

HTTP code: 200
Response time: 2058 ms

Resolved: SceneTime performance has improved in cf3f6b3 after 18 minutes.


fix(workflows)!: updated how empty fields are handled on create

This is a breaking change.  I'm unabashedly copying the changes made to AiWorkflowsUpdateWorkflowInput in pull request #937 and applying them to AiWorkflowsCreateWorkflowInput.  I'm hoping this aligns workflow behavior between creates and updates around empty fields and JSON marshaling.  I'd really like to create workflows in a disabled state and this is one of the last little issues preventing me from upgrading to the 3.0+ provider.  I even created issue #932 a while back regarding this problem.
This is pushing my novice GO knowledge, so please let me know if I've made a questionable change, I'm not meeting standards, or if I've left out information.
Thanks!

 Thank you for your submission! We really appreciate it. Like many open source projects, we ask that you sign our Contributor License Agreement before we can accept your contribution.You have signed the CLA already but the status is still pending? Let us recheck it.

@usfdmiller Thank you for your contribution! Sorry for the delay on this. We're doing some feature work that we're hoping to get into v2 before releasing another major version since it's a bit of a hassle in Go. Happy to review once that work is finished.

It looks like my core issue here, being unable to create workflows in a disabled state, was resolved in PR #959.   That said, I'm going to close this PR.  Thanks!


Open local files with pdf.js viewer and electron.

So the issue i have here, is that i am using electron framework to develop desktop apps in html and js. And i need to show pdf documents, and for that i am using the pdf.js library. Now, what i want to do, is open a new window in electron, which is fairly simple, i do this by saying :
window.open("../../../pdf.js/web/viewer.html", "View");
However, what i want is to give user the freedom to select a pdf file on his machine. Now, i have tried passing the pdf file using the "?file=", but it is still not working. When my user selects a file using a file picker, the file picker returns me the entire file path, so, i have almost everything to make it work, but im missing that final piece. Is even possible to open files like that with viewer.html ?

Don't use viewer.html as a base in electron, it's bulky(not an issue actually) and depends on require.js which is not supported in electron and causes conflicts when you try to import anything else.
Go for a minimal reader if possible where you can use PDFJS.getDocument(url) to load the document.
Doing something similar is also possible with viewer.html .
I am writing a Book reader using electron and pdf.js and I started with viewer.html but decided against it.

Is even possible to open files like that with viewer.html ?

An electron application is a node.js application. So you can use e.g. process.args[2] in the main script to get to command line parameter and concat with "web/viewer.html?file=" and open it as your main window. WFM.
Closing the issue as answered. See also related issue #7135.


Replace bootstrap files web server with the middleware design

Design doc for middleware: https://www.notion.so/Design-HTTP-Canisters-Queries-d6bc980830a947a88bf9148a25169613

I think this is handled by the service worker now(?). Closing as most likely outdated.


TypeScript IntelliSense is not working in VS Code

Does this issue occur when all extensions are disabled?: Yes/No

VS Code Version: 1.77.3
OS Version: macOS 13.3.1

Description:
I created a Next.js 13 project with a typescript, but its not showing any error when I made any type error, neither it show the red wiggly line; below are my vs code typescript setting and tsconfig file

Did you try running the Start Extension Bisect command to investigate whether the problem is being caused by one of your extensions?

Did you disable the built-in typescript extension? Search @builtin typescript in the extensions view to check

Thank you, the builtin typescript extension was disabled; now that I enabled it, everything is working fine


Booking confirmation rule sent random messages again

to my guest Sophie

This should be fixed now.  Please let me know if it happens again.

sure thing


Auto-renewable subscriptions

Would be great to have supports of  auto-renewable subscriptions for ios and android.
iOS documentation: https://developer.apple.com/library/content/documentation/NetworkingInternet/Conceptual/StoreKitGuide/Chapters/Subscriptions.html
https://developer.apple.com/library/content/releasenotes/General/ValidateAppStoreReceipt/Introduction.html#//apple_ref/doc/uid/TP40010573
Android documentation: https://developer.android.com/google/play/billing/billing_subscriptions
https://developer.android.com/google/play/billing/realtime_developer_notifications

This was added in c3d3cc69ae69cf7f92469a63c8a574d2629af5a5 and is part available from Nakama v3.13.1 onwards.


Exception Handling Design

Created from https://github.com/GoogleCloudPlatform/google-cloud-python/pull/2936.
@dhermes I wasn't 100% sure if you had this all planned out or not, but if there are pieces to it or design questions we could talk about it here instead of in PRs.
The idea(to the best of my knowledge) is to better handle exceptions between our services that handle multiple transports. There is also a differentiation between exceptions that are raised from the upstream service and just normal transport exceptions.
We should have a clear distinction between service related exceptions and transport related exceptions and manage those consistently across all services.

Sure. The only TODO I am aware of is:

(At a high-level): Support RPC status codes for the transport exceptions we raise (this should be fine, since the HTTP errors usually/always? contain the RPC status code)

#3444 is the first step towards this:  it makes the RPC status code -> exception type mapping available everywhere, hoisting the '_catch_remap_gax_error()helper frombigtable.exceptionstocore.exceptions`.

Superceded by #3738.


Inconsistent conditional result types error in resource "aws_route53_record" / module records / terraform1.0.0

Description
After upgrading terraform from 0.14.5 to 1.0.0 the module stopped working correctly. It fails with the following error:
│ Error: Inconsistent conditional result types
│
│   on .terraform/modules/aws_route53_records_zeronorthinternal_com/modules/records/main.tf line 19, in resource "aws_route53_record" "this":
│   19:   for_each = var.create && (var.zone_id != null || var.zone_name != null) ? local.recordsets : tomap({})
│     ├────────────────
│     │ local.recordsets is object with 8 attributes
│
│ The true result value has the wrong type: element types must all match for conversion to map.

⚠ Note
Before you submit an issue, please perform the following first:

Remove the local .terraform directory (! ONLY if state is stored remotely, which hopefully you are following that best practice!): rm -rf .terraform/
Re-initialize the project root to pull down modules: terraform init
Re-attempt your terraform plan or apply and check if the issue still persists

Versions

Terraform: 1.0.0

Provider(s):

hashicorp/aws v3.44.0
hashicorp/local v2.1.0

Module:

app.terraform.io/0-North/cloudwatch-sharing/aws - 1.0.0
terraform-aws-modules/notify-slack/aws - 4.15.0
terraform-aws-modules/lambda/aws - 1.47.0
terraform-aws-modules/route53/aws - 2.1.0

Reproduction

Steps to reproduce the behavior:

Use the module with terraform 0.14.5
have at least one AWS Route 53 zone defined in terraform-aws-modules/route53/aws//modules/zones module
have a set of few different records - I got one MX, one A, two TXT, 4 CNAME
apply the module to create resources
upgrade terraform to the ver. 1.0.0
apply the module again

Terraform workspaces are not used.

Local terraform cache was cleared.

Code Snippet to Reproduce

Expected behavior

Just be able to create/ update Route53 resources after upgrading terraform.
Actual behavior
It's not possible to use the module after upgrading terraform because it isn't able to run it successfully.
Terminal Output Screenshot(s)

Additional context

I have a similar issue running Terraform 0.14.11 using module version 1.9.0. It works fine when I create the zones but fails when the create variable is set to false.
zones = {
    (local.private_zone_name) = {
      comment       = "Private DNS zone"
      force_destroy = false
      vpc           = local.vpc_zone_associations
    },
    (local.public_zone_name) = {
      comment       = "Public DNS zone"
      force_destroy = false
    }
  }

| Error: Inconsistent conditional result types
|
|   on .terraform/modules/route53_zones/modules/zones/main.tf line 2, in resource "aws_route53_zone" "this":
|    2:   for_each = var.create ? var.zones : tomap({})
|
| The false result value has the wrong type: map has no element for required
| attribute "<domain name of first map key>".

There seems to be fix for that #39 but I think we still have a problem.
As it is in the example we should wrap a records variable by the jsonencode(). In my case It did not help and I still got the same behaviour as yours. But I think that I found the issue... it is in the definition of this variable:
variable "records" {
  description = "List of maps of DNS records"
  type        = any
  default     = []
}

When I overwritten it via my module and set a type = list(any) and removed jsonencode(var.records) everything started to work properly! So my code looks like below:
module "records" {
  source  = "terraform-aws-modules/route53/aws//modules/records"
  version = "2.2.0"

  create       = var.create
  zone_id      = var.zone_id
  zone_name    = var.zone_name
  private_zone = var.private_zone
  records      = var.records
}

...some variables omitted

variable "records" {
  description = "List of maps of DNS records"
  type        = list(any)
  default     = []
}

...and now with Terraform v1.05 and Terragrunt v0.31.4 all works as expected.
@antonbabenko how do you see this? Could you check it and change the type of the records?

Works for my cases that didn't work previously.
Thank you for that fix!

@Jeinhaus I am really glad that the fix works as expected.
The more I work with Terraform, the more hacks I need to employ to get the job done. Hopefully, end-users of the terraform-aws-modules don't have to dive deep into the internals of the modules :)


Conductor Client multi-threaded environment

Hi,
We are using conductor-client in java multi-threaded environment.
Client has a static scope.
But I can see multiple threads picking the same task/workflow.
Please help me on this if there is a way to rectify java threads picking the same task.
Thanks

@anoopkhandelwal can you provide more details and point to the class/methods?


az mesh volume list --output table [Table output unavailable]

az mesh volume list is a workaround.

@abhishekram The table parsing is broken:
Traceback (most recent call last):
File "/home/linggeng/depot/azure-cli/env/lib/python3.5/site-packages/knack/output.py", line 56, in format_table
result = obj.table_transformer(result)
File "/home/linggeng/.azure/devcliextensions/mesh/azext_mesh/commands.py", line 97, in transform_volume_list
return [transform_volume(volume) for volume in result]
File "/home/linggeng/.azure/devcliextensions/mesh/azext_mesh/commands.py", line 97, in
return [transform_volume(volume) for volume in result]
File "/home/linggeng/.azure/devcliextensions/mesh/azext_mesh/commands.py", line 92, in transform_volume
('Provider', result['properties']['provider'])])
KeyError: 'properties'

This issue get fixed and it will be published while we release the next version of CLI.