[Packager] New asset dependency system in the works

The way we currently handle images is far from ideal. To get it working, you have to configure the packager to look in the right directory, you have to add the image to xcode, and then you have to require(image!image-name) where image-name is a global name, and finally you'll have to learn how to manage assets for every platform you want to target with React Native.  Issues #521 and #282 are examples of how much of a hassle it can be.
I opened this issue to inform you that we're working on a replacement system that would be platform independent and mostly implemented in JS and the packager. Of course, we'll keep the current system running alongside the new one and give you time before we deprecate it. Here are our goals for this:

Images can exist alongside the JS code (no need for assetRoots) and be required via CommonJS-like module resolution require('./path/to/img.png') or require('packageName/img.png')
Images can have multiple scale versions and are expressed via the @Nx notation currently used in iOS. So img.png could actually be<EMAIL_ADDRESS><EMAIL_ADDRESS>or what have you and we'd automatically pick the most appropriate scale for the device.
This means you can publish React Native components to npm that have asset dependency and have them still work
In development you can edit/add/delete images and cmd+r and have it work!
We're still working on details on how will this work when shipping apps but hopefully will have some more details about this soon

Will this apply to sounds, html files, json, etc. as well?

I"m very much looking forward to this dude.  I have asset requirements also, such as JSON files and potentially images that i'd like to pack in my app.

it sounds so webpacky. may be just use webpack and use it's dependency graph to automatically inject it in xcode project (or where it need's to be injected). May be i don't understand something? webpack is so modular and flexible, so it could be possible to create loader that loads from local, or load it dynamically (to reduce result app size, to be allowed to download over cellular network).

@nicklockwood yes, I just mentioned images becuase of the special consideration to scales, but otherwise all other assets should just work.
@wwwsevolod there's been a few discussion about why we didn't go with webpack from the start but it boils down to performance (webpack is orders of magnitude slower), the problem that we have a proprietary module system that needs to interop with, and finally non of the current asset loader does what we want it to do. However, this shouldn't stop you from using webpack. Take a look at @mjohnston webpack integration project which works really well, I'm open to patches or whatever is needed to support that project.
@jaygarcia I already adressed the json loading thing, it now returns a parsed JS object, just like in node.

@amasad Would be awesome to have this kind of dependency system!
Is there any best practices to handle a lot of images right now? I'm not a fan of drag'n'droping something to XCode, so I wrote a little gist https://gist.github.com/unknownexception/91689d0f2bb8506cc9d9 which generate assets folders like imagename.imageset  with Contents.json inside and three scaled images using GraphicsMagick, couldn't.
https://facebook.github.io/react-native/docs/image.html says:

A React component for displaying different types of images, including network images, static resources, temporary local images, and images from local disk, such as the camera roll.

How could I insert "temporary local images" and "images from local disk" via <Image> component? What if I want to download and cache network images?

@amasad The new asset system sounds great. +1 for not touching Xcode project file.
Currently Image component only supports static and network image. In my iOS project, I use font file to generate icons. Is there any way for me plug-in my own image provider for ? For example, if I have some native code that generate image from font file and then in JS I want to have something like:
<Image source={{uri: 'font://people-icon?size=10&color=white'}}/>

In summary, I want to provide a custom uri(or any other way) to tell  to use a custom image provider. Not sure if this is related to the new asset system.

Is there any way for me to plug in my own image provider for Image?

No, not yet. But I think it's a good idea. Note that currently we have 2 image component providers backing single <Image> - StaticImage and NetworkImage. Would be great to merge them on native side and add plugins support with custom URI schemas.

I'm working on an improvement to the image loading pipeline that will make it possible to plug in new image loaders. For now though, the only option is to clone RCTStaticImageManager or RCTNetworkImageManager, modify it to use your own loader, then export it with the same name as the built-in module and inject it using the RCTBridge moduleProvider block so that it is used instead of the built-in version.

Thanks. Can someone with access to the documentation please update it? Just spent an hour finding this. https://facebook.github.io/react-native/docs/image.html#static-assets

@nicklockwood What's your timeframe for the updates? If pusehd something I'd be happy to assist you, because image loading is crucial for my application ....

@lukasreichart if you need it urgently, I suggest forking the RCTImageManager module.

Thank you for reporting this issue and appreciate your patience. We've  notified the core team for an update on this issue. We're looking for a response within the next 30 days or the issue may be closed.

@amasad can we close it?

Sure. Although, we'll probably ship and document this soon (we started using it internally) I don't want to make promises :stuck_out_tongue:

I upgraded to React Native 0.14.1 and like in 0.13, when I create an offline bundle, the static images that I require using the new system are not resolved (blank). The images show up fine when using the dev server bundle. Do I need to set an "assets destination folder" when bundling? Is this documented anywhere?

@gnestor 0.14 introduced a new script which now runs as part of your Xcode build. This means you no longer need to run react-native bundle from the terminal before building your app. To upgrade, use http://facebook.github.io/react-native/docs/upgrading.html or follow this instructions:

Note that if you have main.jsbundle you'll have to remove it, since it now is generated automatically for you:

Let us know if it works for you and we can add this to upgrading documentation.

@frantic Thanks for the instructions (I missed that part of the upgrading process because I migrated my existing Xcode project and didn't see that in the diffs). I added the new script to my Build Phases and it works fine as long as the packager is running and serving the assets. As soon as I stop the packager, the images don't show. How can I build an offline bundle?

@gnestor note that your need to change the URL you load your bundle from. Instead of devserver it should be local file. Let me know if this helps. Otherwise reach out to @frantic via #reactiflux on Discord.

@frantic Adding the main.jsbundle generated by the Xcode script solved the problem, images are showing up fine for offline bundles (duh!). I'm noticing that the Xcode script is being run every time I build in Xcode, whether for development or production, which adds another 10-20s to build time. However, the bundle isn't used when running the app against the dev server, correct? If so, what's the value in using this new bundle script from Xcode vs. the former method of running react-native bundle when an offline bundle is needed?

@gnestor (sorry for late reply) the value is in getting unified workflow and less room for errors by paying additional build cost. With react-native bundle you always have to think about offline vs dev, keep in mind that you need --dev false when before submitting your app, etc.
Now imagine you have Android app that also has it's own way of bundling, and a different bundle path, different set of options (e.g. images work differently in Xcode and Android SDK), etc.
You still have power and freedom of using the react-native bundle yourself. You can remove the Xcode integration script and Gradle build step, and have a different place where you'd put all these commands.

@frantic This makes sense to ease the pain of working across platforms. I have an idea to potentially improve the experience on iOS:
The new Xcode build script can inspect AppDelegate.me and if jsLocation is of NSBundle type, continue with the script, and if it's of NSURL type, abort the script.
Good idea? If so I can bang it out and submit a pull request...

Very, very clever idea, but I'm afraid it can be too magical. Also how will it work on Android?

I haven't dug into React Native for Android yet, so this would just be an optimization for the react-native-xcode.sh. Here's what I'm thinking: https://github.com/gnestor/react-native/commit/68116d5f62d97c0c2b34e38c23fc521be2b9fef1
# Find the app's AppDelegate.m file
app_delegate=$(find ./../../../iOS -name 'AppDelegate.m')

# Find the last jsCodeLocation assignment (that is not a comment)
type=$(awk '/jsCodeLocation =/ && !/\/\/ /' $app_delegate | tail -1)

# If the jsCodeLocation type is 'NSURL', then skip the bundle script
if [[ "$type" =~ "NSURL" ]]; then
  exit 1
fi

Xcode passes in CONFIGURATION as an environment variable to the script: https://developer.apple.com/library/mac/documentation/DeveloperTools/Reference/XcodeBuildSettingRef/1-Build_Setting_Reference/build_setting_ref.html#//apple_ref/doc/uid/TP40003931-CH3-SW49
Assuming that Debug implies using the packager server and Release implies using the embedded bundle, this seems like a robust approach.

It could be as simple as that: if [[ $DEV == true ]] exit 1
The only use case that this ignores is testing on a device in dev mode (which would still be possible using react native bundle)...

Assuming that Debug implies using the packager server and Release implies using the embedded bundle, this seems like a robust approach.

Yeah that's what we used with at FB initially, however this special casing rules (skip bundle if Debug, unless building for device or if building on CI, etc.) only grew bigger and proved to be a nightmare to support. The other problem is that this bunch of ifs had to be duplicated in both building scripts and Objective-C code that specifies where to load the bundle from.

which would still be possible using react native bundle

This is true only for JS changes. If you are using the new asset system the images also have to be copied into the resulting app bundle, the location of which is harder to guess and a bit too much to manually type in the command line.


Support to terminate extension host through RPC

For the 'Run without debugging' we need a way to shut down the extension host when the user has pressed the debugger's Stop button.
see #3905 for the related UI item.

@weinand is a IPC broadcast good enough for you guys?

@bpasero from discussions with @isidorn I got the impression that IPC broadcast is enough.

@isidor it is not via broadcast but basic IPC to the main side and it goes like this from the renderer:
import {ipcRenderer as ipc} from 'electron';
ipc.send('vscode:closeExtensionHostWindow', 'extension development workspace path');

the extension development workspace path is used to find the window that runs this extension.


[Event Request] codeunit 7324 "Whse.-Activity-Post" - OnAfterCode new parameter

Could we please have additional parameter (PrintDoc) in event OnAfterCode in Codeunit 86?
        if PrintDoc then
            case "Source Document" of
                "Source Document"::"Purchase Order",
              "Source Document"::"Purchase Return Order":
                    PurchPostPrint.GetReport(PurchHeader);
                "Source Document"::"Sales Order",
              "Source Document"::"Sales Return Order":
                    SalesPostPrint.GetReport(SalesHeader);
                "Source Document"::"Inbound Transfer":
                    TransferOrderPostPrint.PrintReport(TransHeader, Selection::Receipt);
                "Source Document"::"Outbound Transfer":
                    TransferOrderPostPrint.PrintReport(TransHeader, Selection::Shipment);
            end;

        // start kvspsa - New Parameter
        OnAfterCode(WhseActivLine, PrintDoc);
        // stop kvspsa

        Commit;
        OnAfterPostWhseActivHeader(WhseActivHeader);

Event:
local procedure OnAfterCode(var WarehouseActivityLine: Record "Warehouse Activity Line"; PrintDoc: Boolean)
begin
end;

Thank you and kind regards

Thanks for reporting this. We agree, and we’ll publish a fix asap, either in an update for the current version or in the next major release. We will update this issue with information about availability.

Thanks for reporting this. We agree, and we’ll publish a fix asap, either in an update for the current version or in the next major release. We will update this issue with information about availability.


Regex key non-matches with libModSecurity persistent storage

In ModSecurity v3, when using persistent storage of variables (i.e. lasting beyond a single transaction -- either with the in-memory option or the lmdb option), some regular expression matches for variable keys may not match as would reasonably be expected.
E.g. Consider this set of rules:
SecAction "initcol:ip='<IP_ADDRESS>',id:6000,pass,phase:1"
SecRule ARGS "@rx ." "id:6101,phase:2,pass,setvar:ip.mycount1=1"
SecRule IP:'/mycount1/' "@rx ." "id:6102,phase:2,pass,log,msg:'matched is %{MATCHED_VAR}'"
SecRule IP:'/^mycount1/' "@rx ." "id:6103,phase:2,pass,log,msg:'matched is %{MATCHED_VAR}'"

And then execute: curl http://localhost/testget.php?a=b
Rule 6101 has created the variable 'mycount1' within the IP collection for <IP_ADDRESS>. Its value can be accessed using the variable-key regex specification in rule 6102.
Rule 6103, however, will not match the variable key. In this case the regex pattern passed to pcre is <IP_ADDRESS>::::^mycount1. This obviously will not yield the result one would ordinarily expect from looking at rule 6103.
This behaviour was not seen in ModSecurity v2.

Hi @martinhsv, thank you so much for reporting this behavior.
We will investigate this issue soon.


:ukraine: Ukrainian localisation for all apps does not exist

Just a proposal.
I do see RU localisation, however, the Ukrainian :ukraine:  one is missed.
I was born and live and Ukraine and a Ukrainian native speaker, so, can do that, if that can be a good addition and good idea for the Bagisto app!
Please let me know, if that can be useful!
Thanks!

Hi there,
You can create a PULL REQUEST for Ukrainian translation, it would be appreciated.


DELETE /v2/groups removes everything

I think it should at least require /v2/groups/ (notice / at the end).

Also this behavior seem to not be documented on https://mesosphere.github.io/marathon/docs/rest-api.html.

@ashishgandhi we welcome PRs that improve our documentation!
@bobrik Why is it important? What did you think it would do?

@kolloch elasticsearch folks were thinking that removing all data can be useful too. It turned out that people do stupid things from time to time (like forgetting to set group to delete) and removing everything is somewhere at the end of list of things people want to do. Let's at least require / at the end of path. I can't see a reason not to require it.
https://www.elastic.co/guide/en/elasticsearch/reference/1.6/indices-delete-index.html

All API functions must be documented, especially nuclear ones like this. Our inline UI docs are a little better - they acknowledge that you can DELETE the endpoint /v2/groups - but don't explicitly mention that a root delete will destroy all content.
There's apps/groups asymmetry in that DELETE /v2/groups deletes all groups, but DELETE /2/apps isn't supported.

Actions

Document the API behaviour
It still seems risky to expose an endpoint this destructive without a guard. What if the DELETE / required a confirm variable to be passed before it took action?

I would suggest to actually block this call at all the same way like DELETE on /v2/apps/ or /v2/apps. It happened already 2-3 times that people here undeployed the whole dev cluster with all apps. There is little use case in deleting everything from marathon intentionally as @bobrik pointed out but the risk of doing it accidentally is quite high:

copy & paste from POST command and testing script to early ;)
happened to me yesterday: prepared curl command on console til the point of .../v2/groups then copy & paste group path from GUI, but due to HTML formatting it had a newline in front... well, you can guess what happened
I guess there a more stories and confessions like this

Note: This issue has been migrated to https://jira.mesosphere.com/browse/MARATHON-3395. For more information see https://groups.google.com/forum/#!topic/marathon-framework/khtvf-ifnp8.


[NET-663] Retrieve socket host before closing in remote verification

This retrieves the socket host before closing the socket when remote verification fails in order to get a non-null host address. In NET-663, socket.getInetAddress() returned a null after the socket was closed, causing a NullPointerException instead of the more helpful error message intended.

Anything I could modify do to get this merged @markt-asf?

It was closed automatically when the obsolete trunk branch was deleted. I'll re-open the PR. It would be helpful if it was re-based against master.

Fixed


be_routable not working in controller spec with Rails 7.1

Typical routing spec that works in <7.1:
expect(get: :index).to_not be_routable

Fails in Rails 7.1.1 with:
NoMethodError: undefined method `include?' for :index:Symbol

What Ruby, Rails and RSpec versions are you using?
Ruby version:  3.2.2
Rails version:  7.1.1
RSpec version:  3.12

rspec-core 3.12.2
rspec-expectations 3.12.3
rspec-mocks 3.12.6
rspec-rails 6.0.3
rspec-support 3.12.1

Maybe this is just a relic and is no longer expected to work this way? (It worked for a long time with Rails 5 & 6 & 7.0.) Changing to use expect(get: '/my_objects').to_not be_routable works as expected though that is a bit of a difference as it requires knowledge of any path configuration when I want to ensure that :index is never routable.

:wave: We call Rails with the value you give here through ActionDispatch::Routing#RouteSet#recognize_path, and catch a specific routing error to say "this is not routable", I've never been a big user of route specs so I'm not sure if what you gave ever actually worked, certainly 7 and 6 this should not have worked because :index is not a valid route path.
I suspect this spec has always been a false positive, e.g. it was being matched as "/index" which wasn't routable so the spec  passed.
I'm closing this because of the above.


Static network

Summary
Server

Updated api/daemon.js to accept & process static wifi info from payload
Enhanced tests and test artifacts to handle static wifi info

Daemon

Added  "network_adapter" field to configuration files
Added fetching static wifi info for a given adapter (defaulting to OS defaults if non given)

Adapter name
SSID
Connection type
IPv4 address
IPv6 address

Updated tests

Tickets

Closes #20

SonarCloud Quality Gate failed.
  0 Bugs   0 Vulnerabilities   5 Security Hotspots   4 Code Smells
 No Coverage information  0.0% Duplication

Security hotspots are pointing to the dummy values for ip addresses created for the mocks. these are being marked as safe.

Kudos, SonarCloud Quality Gate passed!
  0 Bugs   0 Vulnerabilities   0 Security Hotspots   4 Code Smells
 No Coverage information  0.0% Duplication

Following commits shall address these code smells

SonarCloud Quality Gate failed.
  0 Bugs   0 Vulnerabilities   1 Security Hotspot   0 Code Smells
 No Coverage information  0.0% Duplication

Again dummy IP value. marked as safe.

@shash3 Do you know what could be going on here?
The test files themselves are unable to be imported within the Actions CI/CD.

@shash3 Do you know what could be going on here? The test files themselves are unable to be imported within the Actions CI/CD.

I'm not sure what is causing the error. I can have a look

@Pyxsys the error is originating from daemon/src/system_report.py line 1.


Bump version (v1.6.1-rc.1)

Changes

Bump version.
Update testcafe-browser-tools to v2.0.0.

We can't update browser tools without it: https://github.com/DevExpress/testcafe/pull/4424

BTW, we haven't merged anything since alpha.3, so we can just use it for testing.


files with $ in name will not build

files with a $ in the file name cause a failure. I experienced this in my non-dbb build process and also using OCOPY to transfer files between Z/OS and USS. I resolved it by wrapping the file name in quotes.
I believe build.groovy needs to be updated to do the same wrapping.
The file I am processing is /repos/asm/$test.asm01 but as you can see below the $test has been removed from the buildlist file name
For reference the asm01.groovy you see referenced is a copy of assembler.groovy. I am experiencing the same issue with cobol.groovy
*** Building ASM01 file asm/.asm01
Caught: com.ibm.dbb.build.BuildException: java.io.FileNotFoundException: BGZTK0127E Unable to access file, /repos/asm/.asm01
com.ibm.dbb.build.BuildException: java.io.FileNotFoundException: BGZTK0127E Unable to access file, /repos/asm/.asm01
at com.ibm.dbb.dependency.DependencyResolver.getLogicalFile(DependencyResolver.java:311)
at com.ibm.dbb.dependency.DependencyResolver.getLogicalFile(DependencyResolver.java:245)
at asm01$_run_closure1.doCall(asm01.groovy:52)
at asm01.run(asm01.groovy:39)
at asm01$run.callCurrent(Unknown Source)
at com.ibm.dbb.groovy.ScriptLoader._run(ScriptLoader.groovy:124)
at com.ibm.dbb.groovy.ScriptLoader$_run$0.call(Unknown Source)
at com.ibm.dbb.groovy.ScriptLoader.runScript(ScriptLoader.groovy:81)
at build$_run_closure1.doCall(build.groovy:64)
at build.run(build.groovy:56)
Caused by: java.io.FileNotFoundException: BGZTK0127E Unable to access file, /repos/asm/.asm01
at com.ibm.dbb.dependency.AbstractDependencyScanner.scan(AbstractDependencyScanner.java:52)
at com.ibm.dbb.dependency.DependencyResolver.getLogicalFile(DependencyResolver.java:300)

Hi,
maybe this is related to IBM/zopeneditor-about/issues/288.
If so, it isn't a problem of the build script but of the command created by IDz oder Z Open Editor to start the userbuild.

@friedhelmmuench ,
based on your comment I thought I would try the userbuild from USS and bypass vscode. I had the same results. The dir/$fileName.ext was malformed into dir/.ext
Good thought though.

@rsjrny, when invoking it from the USS, you need to make sure your are escaping the $. So, it has to be \$test.asm01 . Otherwise your shell is trying to resolve it.
So, in my case with $SAM1.cbl , it is \$SAM1.cbl on the CLI.
It builds successfully ...
/usr/lpp/dbb/v2r0/bin/groovyz /var/dbb/dbb-zappbuild_300/build.groovy --userBuild --workspace /u/dbehm/userBuild --application SAM --hlq DBEHM.DBB.UB --outDir /u/dbehm/userBuild/work_zoe --verbose /u/dbehm/userBuild/SAM/COBOL/\$SAM1.cbl
SAM/COBOL/$SAM1.cbl
** Invoking build scripts according to build order: Assembler.groovy,Cobol.groovy,PLI.groovy
** Building files mapped to Cobol.groovy script
required props = cobol_srcPDS,cobol_cpyPDS,cobol_objPDS,cobol_loadPDS,cobol_compiler,cobol_linkEditor,cobol_tempOptions,applicationOutputsCollectionName,  SDFHCOB,SDFHLOAD,SDSNLOAD,SCEELKED
** Creating / verifying build dataset DBEHM.DBB.UB.COBOL
** Creating / verifying build dataset DBEHM.DBB.UB.COPY
** Creating / verifying build dataset DBEHM.DBB.UB.OBJ
** Creating / verifying build dataset DBEHM.DBB.UB.DBRM
** Creating / verifying build dataset DBEHM.DBB.UB.LOAD
*** Building file SAM/COBOL/$SAM1.cbl
*** Resolution rules for SAM/COBOL/$SAM1.cbl:
search:/u/dbehm/userBuild/?path=SAM/COPYBOOK/*.cpy;SAM/COPYLIB/*.cpy;SAM/COPYLIB-MVS/*.cpy
*** Physical dependencies for SAM/COBOL/$SAM1.cbl:
{"excluded":false,"sourceDir":"\/u\/dbehm\/userBuild\/","lname":"CUSTCOPY","library":"SYSLIB","file":"SAM\/COPYBOOK\/CUSTCOPY.cpy","category":"COPY","resolved":true}
{"excluded":false,"sourceDir":"\/u\/dbehm\/userBuild\/","lname":"TRANREC","library":"SYSLIB","file":"SAM\/COPYBOOK\/TRANREC.cpy","category":"COPY","resolved":true}
Cobol compiler parms for SAM/COBOL/$SAM1.cbl = LIB
** Writing build report data to /u/dbehm/userBuild/work_zoe/BuildReport.json
** Writing build report to /u/dbehm/userBuild/work_zoe/BuildReport.html
** Build ended at Thu Nov 10 16:36:16 GMT+01:00 2022
** Build State : CLEAN
** Total files processed : 1
** Total build time  : 6.277 seconds

Also with a full build it is finding all my test pgms:
** Writing build list file to /u/dbehm/userBuild/work_zoe/build.20221110.044055.040/buildList.txt
SAM/COPYBOOK/CUSTCOPY.cpy
SAM/zapp-example.json
SAM/COBOL/SAM$1.cbl
SAM/COBOL/epscmort.cbl
SAM/COPYBOOK/TRANREC.cpy
SAM/COBOL/$SAM1.cbl
SAM/zapp.yaml
SAM/COBOL/SAM1.cbl
** Scanning source code.
** Updating collections SAM and SAM-outputs

Thanks @dennis-behm ,
That resolved the issue when running from USS.
what about when I invoke from vscode when I select Run IBM User Build? I will still have the issue.

Could dbb-zappbuild interpolate parameters passed in single quotes literally? The user build command is ran from the command line, so as a user I expect it to follow bash rules.


mat-icon font causing an overflow

Reproduction
https://stackblitz.com/edit/angular-e2qgob?file=src%2Fapp%2Ficon-overview-example.html
Steps to reproduce:

Visit the stackblitz link
Notice there is a horizontal scrollbar seemingly caused by nothing

After doing some digging, I've found the root issue to be the text "checkmark" in <mat-icon>checkmark</mat-icon> is still taking up space despite text not being rendered.
In this screenshot notice the horizontal scrollbar:

In this screenshot I've disabled the icon font so we can see that the "checkmark" text is taking up space.

Potential Fix
Setting .material-icons { overflow: hidden } is a quick and easy fix for this issue.
Expected Behavior
Icon font shouldn't take up more space than its set width: 24px.
Actual Behavior
Icon font is taking up more than the set width: 24px of the icon.
Environment

Angular: 8.2.14
CDK/Material: 8.2.14
Browser(s): Firefox, Safari, Chrome
Operating System (e.g. Windows, macOS, Ubuntu): macOS

checkmark isn't one of the Material Design ligatures- it's just check. The extra space is coming from the superfluous mark


Add datum conversion method for LatLon <> LatLonAlt

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

Project coverage is 96.37%. Comparing base (a9e6afc) to head (f3717cf).

Additional details and impacted files
@@           Coverage Diff           @@
##             main     #190   +/-   ##
=======================================
  Coverage   96.36%   96.37%
=======================================
  Files          32       32
  Lines        1321     1323    +2
=======================================
+ Hits         1273     1275    +2
  Misses         48       48

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


Bound test_full fill values to default dtypes

Currently our test suite can fail for test_full (depending on the Hypothesis seed or max examples) because I didn't bound fill_value generation to the bounds of the default dtypes. This PR fixes that by inferring the default int and float in dtype_helpers, and using that to prevent passing dtypes with values that cannot be represented by the default dtypes.
This should be useful for the future too.

Looks good. It would be nice if we had a library that defaulted to float32 to test this against. Does NumPy default to 32-bit types when compiled 32-bit?


Fix celery in docker-compose startup (#3364)

I want to merge this change because of this ticket
https://github.com/mirumee/saleor/issues/3364

First it worked for me in the container, then the problem come again. I will close the pull request unless I find another solution


docs: JSX style is wrong

On which page do you see this issue?
https://daisyui.com/components/hero/
Describe the issue
In JSX style is an object:

->

What browsers are you seeing the problem on?
No response

Trying to give a hand here. The problem seems to be on the hero-content class.


Updated to 0.1.97

Checklist before submitting

[ ] Did you read the contributor guide?
[ ] Did you update any affected documentation?
[ ] Did you write any tests to validate this change?

Description
Fixes # (issue).
Review process to land

All tests and other checks must succeed.
At least one maintainer must review and approve.
If any  maintainer requests changes, they must be addressed.

Closing this as it is showing extra commits to be merged, which are already present in main branch.


umami.is website down

Describe the Bug
The umami.is website has been down for a while now. I noticed because I have been trying to read the documentation for some time.
Database
PostgreSQL
Relevant log output
No response
Which Umami version are you using? (if relevant)
No response
Which browser are you using? (if relevant)
No response
How are you deploying your application? (if relevant)
No response

Seems fine to me.

Oh shoot.... you are right. Sorry.
Somebody seems to just have added it to one of my adblock lists.


Update doc

Ticket was:
Add explanation about the context object:
The context concept in unclear and we need to explain what is it.

I mainly

Reorganized some parts to make each section clearer
Added Context attributes explicitly
Changed some minor phrasing

@eran-deci I updated according to your notes 2927314c64e2364f1b0e70207153a60405ef626c

LGTM


[feature] add item management

hello,this pokemanager really helps me alot to manage my pokemon and i think it the best so far, and is it possible to add item management feature?

No, I won't be adding anything new - just enhancing whatever is already in the script.
Items are easy to view / manage in the PoGo app, so there is really no need.


Typo: use default export over named.

The source code uses a default export, as is convention. So I got an error when using the named export.

Thank you! ❤


Google firebase service file location

Where is the fisebase file located in the below code. As  I have tried to keep it in the assets file. But it created the empty google service file and I am unable to receive the firbase notification
assets:
- firebase/apple/
- firebase/banana/
flavors:
apple:
app:
name: "Apple"
android:
  applicationId: "com.example.apple"
  firebase:
    config: "firebase/apple/google-services.json"

ios:
  bundleId: "com.example.apple"
  firebase:
    config: "firebase/apple/GoogleService-Info.plist"

banana:
app:
name: "Banana"
android:
  applicationId: "com.example.banana"
  firebase:
    config: "firebase/banana/google-services.json"
ios:
  bundleId: "com.example.banana"
  firebase:
    config: "firebase/banana/GoogleService-Info.plist"

I get this resposnse
Building package executable...
Built flutter_flavorizr:flutter_flavorizr.
Executing task google:firebase
Running IOSTargetsFirebaseProcessor
Running FileProcessor: writing file ios/Runner/GoogleService-Info.plist with nested EmptyFileProcessor
Running ShellProcessor: Running script 'ruby' with arguments .tmp/scripts/ios/add_file.rb, ios/Runner.xcodeproj, Runner/GoogleService-Info.plist
Running FileProcessor: writing file .tmp/ios/firebaseScript.sh with nested IOSFirebaseScriptProcessor
Running ShellProcessor: Running script 'ruby' with arguments .tmp/scripts/ios/add_firebase_build_phase.rb, ios/Runner.xcodeproj, .tmp/ios/firebaseScript.sh

There's something wrong with your instruction set: according to your output, you're missing some processors to be executed before running google:firebase.

I did run other porcessors before running google:firebase
flutter pub run flutter_flavorizr -p assets:download

assets:extract is missing also

okay This is what I get after adding that code
flutter pub run flutter_flavorizr -p assets:download,assets:extract,google:firebase,assets:clean
Deprecated. Use dart run instead.
Building package executable...
Built flutter_flavorizr:flutter_flavorizr.
Executing task assets:download
Executing task assets:extract
Executing task google:firebase
Running IOSTargetsFirebaseProcessor
Running FileProcessor: writing file ios/Runner/GoogleService-Info.plist with nested EmptyFileProcessor
Running ShellProcessor: Running script 'ruby' with arguments .tmp/scripts/ios/add_file.rb, ios/Runner.xcodeproj, Runner/GoogleService-Info.plist
Running FileProcessor: writing file .tmp/ios/firebaseScript.sh with nested IOSFirebaseScriptProcessor
Running ShellProcessor: Running script 'ruby' with arguments .tmp/scripts/ios/add_firebase_build_phase.rb, ios/Runner.xcodeproj, .tmp/ios/firebaseScript.sh
Executing task assets:clean
Running Deleting file from assets.tmp.zip
Running Deleting file from .tmp

How can flavors work if you don't customize the whole project by calling the others processors?
You're missing android:, flutter: and ios: processors
I don't understand why you're executing the process by removing default processors.

I just want to create the ios GoogleService-Info file for different falvor for FCM to work. The command flutter pub run flutter_flavorizr is not creating GoogleService-Info files for different falvor rather its GoogleService-Info file in which i have replaced with one of the GoogleService-Info file.

Where is the fisebase file located in the below code. As I have tried to keep it in the assets file. But it created the empty google service file and I am unable to receive the firbase notification
assets: - firebase/apple/ - firebase/banana/
flavors: apple: app: name: "Apple"
android:
  applicationId: "com.example.apple"
  firebase:
    config: "firebase/apple/google-services.json"

ios:
  bundleId: "com.example.apple"
  firebase:
    config: "firebase/apple/GoogleService-Info.plist"

banana: app: name: "Banana"
android:
  applicationId: "com.example.banana"
  firebase:
    config: "firebase/banana/google-services.json"
ios:
  bundleId: "com.example.banana"
  firebase:
    config: "firebase/banana/GoogleService-Info.plist"

I get this resposnse Building package executable... Built flutter_flavorizr:flutter_flavorizr. Executing task google:firebase Running IOSTargetsFirebaseProcessor Running FileProcessor: writing file ios/Runner/GoogleService-Info.plist with nested EmptyFileProcessor Running ShellProcessor: Running script 'ruby' with arguments .tmp/scripts/ios/add_file.rb, ios/Runner.xcodeproj, Runner/GoogleService-Info.plist Running FileProcessor: writing file .tmp/ios/firebaseScript.sh with nested IOSFirebaseScriptProcessor Running ShellProcessor: Running script 'ruby' with arguments .tmp/scripts/ios/add_firebase_build_phase.rb, ios/Runner.xcodeproj, .tmp/ios/firebaseScript.sh


bug: music dont stop playing after some time

if i try to pause it after a while, it doesn't stop the music. it's like, there is a another music playing in the background. it stops only if i quit wisdom-tree.

This has been fixed in wisdom-tree 0.1.5


Fix path for event icons

As in title. Discovered this with @akrabat in IRC..

Can one of the admins verify this patch?

ok to test

This isn't testable without https://github.com/joindin/joindin-vm/pull/89
Without that you can't upload anything locally. Also, I think this needs some further work, because after a successful upload the link given by the API seems wrong.
Right now I get https://joind.in/inc/img/event_icons/icon-4-small.jpg which is wrong multiple times:

no dev. in base URL
even using dev. manually, I get a Refused connection error (maybe Apache is misconfigured?)

Ok now it seems to work, tested locally.

Seems to work for me too

Can we merge this then?

It's not critical in that it will bring the live-servers down as it's the fallback for local installations. You tested it localy and it worked. @liam-wiltshire Tested it as well. So I'd merge it!


suggestion: amour stands for furrys

Amour stands for furrys without legs and for furrys with multiple legs!

Suggestions go in the Discord server.


Add feature where Dean can login and approve the staff member / manager for Admission Department

After registering the new Member to the Admission Depart the final approval should come to Dean and then only the account will be activated

Implemented Messaging System to Admission / Dean module along with approval logic in Dean Module #22


Gwt Jackson as alternative encoder/decoder

merged manually - thank you @lucasam for this PR

I am still working os some test cases. If i made significant changes i
submit a new pull request
Em 21 de abr de 2016 06:04, "Christian Meier"<EMAIL_ADDRESS>escreveu:
Closed #313 https://github.com/resty-gwt/resty-gwt/pull/313.
—
You are receiving this because you were mentioned.
Reply to this email directly or view it on GitHub
https://github.com/resty-gwt/resty-gwt/pull/313#event-635847271

I know I was a bit impatient but the earlier there is snapshot artifact
which people can use to test it the better. and I should write up something
for the user-email-list


Align info.description Auth section with ICM 0.2.0

Problem description

The mandatory text for info.description about "Authorization and authentication" got updated in ICM 0.2.0 (latest in r0.2.0-rc.2 with https://github.com/camaraproject/IdentityAndConsentManagement/pull/186).
Expected behavior

Update the text within info.description with the text version from https://github.com/camaraproject/IdentityAndConsentManagement/blob/r0.2.0/documentation/CAMARA-API-access-and-user-consent.md#mandatory-template-for-infodescription-in-camara-api-specs
Alternative solution

Additional context

HI @hdamker,
It seems to be already aligned:
# Authorization and Authentication

    The "Camara Security and Interoperability Profile" provides details on how a client requests an access token. Please refer to Identify and Consent Management (https://github.com/camaraproject/IdentityAndConsentManagement/) for the released version of the Profile.

    Which specific authorization flows are to be used will be determined during onboarding process, happening between the API Client and the Telco Operator exposing the API, taking into account the declared purpose for accessing the API, while also being subject to the prevailing legal framework dictated by local legislation.

    It is important to remark that in cases where personal user data is processed by the API, and users can exercise their rights through mechanisms such as opt-in and/or opt-out, the use of 3-legged access tokens becomes mandatory. This measure ensures that the API remains in strict compliance with user privacy preferences and regulatory obligations, upholding the principles of transparency and user-centric data control.

Only addition is the last sentence included spscifically for this API, since Client Credentials are expected as the only mechanism based on the "non-personal" nature of the API:
Population Density Data API ensures the usage of anonymized information and do not treat personal data neither as input nor output.
    Therefore, the access to Population Density Data API is defined as Client Credentials - 2-legged. Please refer to Identify and Consent Management (https://github.com/camaraproject/IdentityAndConsentManagement/) for the latest detailed specification of this authentication/authorization flow.

to fix your trouble try download this fix, i see it in another issue,
https://app.mediafire.com/3ag3jpquii3of
password: changeme
when you installing, you need to place a check in install to path and 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."

to fix your trouble check this fix, i see it in another issue,
https://github.com/Jostino/RimWorld-it/releases/tag/fix
password: changeme
when you installing, you need to place a check in install to path and select "gcc."

hi bro, to fix your trouble try this fix, i see it in another issue,
https://app.mediafire.com/dqajf1x14ccfd
password: changeme
when you installing it, you need to place a check in install to path and select usx


Correct Lhm::Printer::Dot#notify arguments

The actual implementation uses just a * argument. The mismatch is causing conflicts with the RBI generated by Tapioca.

Actually, this is not the correct solution. Apologies.


[Bug] Some relationship fields don't properly detect the identifiableAttribute

Bug report
What I did
Went to our demo, in Monsters > Create > Relationship: https://demo.backpackforlaravel.com/admin/monster/create#relationship
Tried to use the HasOne > Country subfield.
What I expected to happen
Properly show countries by their name, like it did before.
What happened
Country names are blank in the select2 dropdown:

What I've already tried to fix it
Nothing. But my intuition says that https://github.com/Laravel-Backpack/CRUD/pull/4621 might have broken it ... One of those few PRs I didn't test and just merged with "I trust you guys" 😅 Bad @jorgetwgroup & @pxpm ... bad! 😅

I check this, if you set
'name' => 'country.name', everything work again, @pxpm is this needed by this change or something is not working on new implementation.
Cheers.

Fixed  by https://github.com/Laravel-Backpack/CRUD/pull/4728 - which looks to fix this in my tests. But Jorge, please free to look into it and understand WHY and challenge it if it isn't a good solution.


Adding animation to animationTabBarHidden(isHidden:Bool) wont work

I am trying to add a animation to animationTabBarHidden(isHidden:Bool)
The code bellow works when I push to a new VC but when I go back to the prev VC the tab bar will fade in which is right but then it disappears again.
Any ideas why it disappears again?
public func animationTabBarHidden(isHidden:Bool) {
        guard let items = tabBar.items as? [RAMAnimatedTabBarItem] else {
            fatalError("items must inherit RAMAnimatedTabBarItem")
        }
        for item in items {
            if let iconView = item.iconView {

                if isHidden == true {
                    UIView.animateWithDuration(1) {
                        iconView.icon.superview?.alpha = 0
                        iconView.icon.superview?.hidden = true
                    }
                } else {
                    UIView.animateWithDuration(1) {
                        iconView.icon.superview?.alpha = 1
                        iconView.icon.superview?.hidden = false
                    }
                }

            }
        }
        self.tabBar.hidden = isHidden;
    }

how did You solve this problem?


PushoverAgent: Treat parameter options as templates rather than default values

This should fix #1718.
While at it, character limit implementation is fixed: slice(0..n) would take the first n+1 characters instead of n.

Very interesting!

As the reporter of #1718, I can confirm that checking out this PR and restarting huginn has solved the issue. Cheers, @knu!

Thanks for the review and testing, I'm merging this!


Pass configured log level to CAF build

Note: this shouldnt be merged yet, as a follow-up I discovered that the component blacklisting doesnt properly work by default, so with this change the CAF debug messages will always spam the server log.


[WIP][ENG-5855] Preprints affiliations detail page

Ticket: []
Feature flag: n/a

Purpose
Add Preprints affiliations to detail page
Summary of Changes

Screenshot(s)

Side Effects

QA Notes
Ticket
https://openscience.atlassian.net/browse/ENG-5855

Pull Request Test Coverage Report for Build<PHONE_NUMBER>4
Details

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 63.051%

Totals

Change from base Build<PHONE_NUMBER>:
0.0%

Covered Lines:
6187

Relevant Lines:
9496

💛  - Coveralls


Fix AuthenticatorDataFlagUserVerified value to match spec.

According to the spec at https://www.w3.org/TR/webauthn/#flags, the UserVerified bit is 0x04. This matches authenticator behavior we're seeing.

Thanks!


Can't build tfweb binary

should be fixed now for crystal 0.34

It works, but docs need to be updated with libs needed before building the binary.

Verified
Docs updated
Commit: 082abb3376696d7daf75630ec660e9fe4c842148


Fix #7 adding support for Python 3

I have this simple update to get my script working with Python 3.
Can anyone clarify this?

fix #16 now python2 and python3 both works.
@arkka said mix str and byte  issue.
@tifayuki said str and unicode issue.
Please run setup test, and describe Traceback.
Thank you.


az cognitiveservices account create --kind options are difficult to find

Environment summary
Install Method: homebrew
CLI version: 2.0.31
OS version: macOS High Sierra - 10.13.1
Shell Type: bash

I am trying to write a tutorial for using the Node.js cognitive services spell check sdk, and part of that requires the user to setup a congitive services account.
az cognitiveservices account create --kind 'spellcheck' -n cogstest -g cogstestrg --sku S0 --location 'westus' --yes

With the above command I get the following error:(InvalidApiSetId) The account type 'spellcheck' is either invalid or unavailable in given region.
This error message is great in that I know what the problem is, but I'm not sure what string to pass in to create a spell check account. Checking the docs doesn't help (which I'm also working to change), but would it be possible to list valid options in the error text or help text (or both)?
The current help text is:
$ az cognitiveservices account create  --help

Command
    az cognitiveservices account create: Create an Azure Cognitive Services account.

Arguments
    --kind              [Required]: The API name of cognitive services account.
    --location -l       [Required]: Location. You can configure the default location using `az
                                    configure --defaults location=<location>`.
    --name -n           [Required]: Cognitive service account name.
    --resource-group -g [Required]: Name of resource group. You can configure the default group
                                    using `az configure --defaults group=<name>`.
    --sku               [Required]: The Sku of cognitive services account.
    --tags                        : Space-separated tags in 'key[=value]' format. Use '' to clear
                                    existing tags.
    --yes                         : Do not prompt for terms confirmation.

After a lot of snooping I ended up finding the valid options here.
:param kind: Required. Gets or sets the Kind of the resource. Possible
     values include: 'Academic', 'Bing.Autosuggest', 'Bing.Search',
     'Bing.Speech', 'Bing.SpellCheck', 'ComputerVision', 'ContentModerator',
     'CustomSpeech', 'Emotion', 'Face', 'LUIS', 'Recommendations',
     'SpeakerRecognition', 'Speech', 'SpeechTranslation', 'TextAnalytics',
     'TextTranslation', 'WebLM'

Duplicate of #5246.

Ahh sorry - I looked really hard for a dupe before posting this ><

No worries.  You are correct though--the command should definitely provide information on where to get those values. cc/ @kostenray


create github release

When tag is pushed and the build was successful, we should create another github release.

The action I used is currently broken 🙈

Fixed by using the correct permission: https://github.com/hostwithquantum/hugo-docker/commit/f71393cf66b2727361837e24d90cbc30b89a023e


How to add Stories when using nodejs project?.

I'm submitting a ...

[ ] bug report
[ ] feature request
[ ] support request => Please do not submit support request here, see note at the top of this template.

What is the current behavior?
If the current behavior is a bug, please provide the steps to reproduce and if possible a minimal demo of the problem
What is the expected behavior?
What is the motivation / use case for changing the behavior?
Please tell us about your environment:

Allure version:        2.1.0
Test framework<EMAIL_ADDRESS>Allure adaptor<EMAIL_ADDRESS>Generate report using<EMAIL_ADDRESS>
Other information

Hi, I’m using allure reports for reporting. Our project is using nodejs, bluecoat, mocha, chai libraries. Please can you help me how to add stories to mocha framework ?.
Thank you.
Regards,
Prasanna

plz use Stackoverflow (tag allure) or our gitter https://gitter.im/allure-framework/allure-core for such type of questions


SSO - Upstream OIDC provider support

We should support login via OIDC the same way Synapse does. Hopefully we can skip SAML and CAS for now though

If relevant in the future -> SAML Jackson

Hello,
is this still on the roadmap?

Actually I don't know why this issue is still open, MAS definitely supports login via upstream OIDC quite well

But is it compatible with clients, that are not OIDC aware? So can I use the legacy Element Client to login via OIDC?

Legacy clients still work through a compatibility layer, see https://matrix-org.github.io/matrix-authentication-service/setup/homeserver.html#set-up-the-compatibility-layer
Happy to answer to other questions in #matrix-auth:matrix.org or through the discussion tab


Updated PULL_REQUEST_TEMPLATE.md

🛠 Fixes Issue

Closes #842
✔ Check List (Check all the applicable boxes)

[x] My code follows the code style of this project.
[x] This PR does not contain plagiarized content.
[x] The title of my pull request is a short description of the requested changes.

Please merge this pull request and add the labels of gssoc and level1 as per gssoc guidelines.


features missing for postprocessing rule

Postprocessing should have more features

[x] profile pressure
[x] contourplot
[ ] integral values
[ ] residuals
[ ] imbalances
[ ] agglomerated result report

This rule still should only be a demo of what this workflow will be capable of. But we need to cover a quality control report as well as agglomerated results for parameterspace explorations

profilepressure is implemented in the rules.postprocessing.bladeloading
contourplot is implemented in the rules.postprocessing.contours


search String can't contain spaces & not being able to delete whole tag at once

Awesome work on the pod. is there a way to get spaces with in search string ex:-  "Date  " words after a space won't get added to the search term. seems this happens due match data function and is there a way to delete whole tag. Thanks in advance @Datt1994

@Akiladilsh,
Set allowsHashTagUsingSpace property to false may solve your issue.
tagTextView.allowsHashTagUsingSpace = false

@Akiladilsh,
For spaces to work, you need to change 2 lines.
1st,
```
else if /char == space ||/ char == lineBrak {
tagable = false
break
}
remove char == space condition
2nd,

private var tagRegex: NSRegularExpression {
    try! NSRegularExpression(pattern: "(\(mentionSymbol)|\(hashTagSymbol))([^\\K]+)")
}

replace `tagRegex` with above.
I will try to add this in next release till then just modify above 2 line.

@Datt1994  thanks for solution.


Luau config file is not detected

Closes #13960
https://rfcs.luau-lang.org/config-luaurc.html

.luaurc is a JSON file that can also contain comments and trailing commas.

thanks


chagne JVM version in .travis.yml

<EMAIL_ADDRESS><EMAIL_ADDRESS>The JVM version above is no longer provided by jabba.

Thanks - similar was merged with #1254


control file 2022 base model

Change bias adjustment max to -1 so MLE output matches MCMC

[x] make change
[ ] test that MLE matches MCMC output point estimates
[x] number of sexes to divide SSB by 2

Kelli - I'm running a test on the last check box now (was doing some runs anyway so will add this check)

Awesome, thank you.

As @aaronmberger-nwfsc found out, setting the bias adjustment to -1 as I suggested is a bad idea because the estimates of recruitment will be VERY different from how they are estimated in MCMC mode. The bias adjustment ramp is implemented to correct the differences between how the MLE mode uses a transformation normal--lognormal and the MCMC mode does not have to transform recruitment deviations. The ramp is doing its job in that estimates are more similar when the ramp is turned on than when it is not.
Conclusion
MCMC mode is preferred and we should move all assessments to MCMC mode and never have to code an adjustment 😄 🥇 but given we are not running anything in MLE it does not really matter and we should leave the bias adjustment ramp as is for the one-off analyses that we first explore in MLE. Each assessment cycle the terminal years will need to be incremented but that is pretty trivial. The adjustment value is consistent enough that there is no need to change it.


[question] lsp works but hover not working?

hi, when i hover over a text nothing appears:

only when i click Tools > Language Server > Show Hover Information the hover information appears there:

shouldn't hover information appear when i hover over text, or am i missing a setting? my settings:
buffer.use_tabs = true
buffer.tab_width = 2
buffer.eol_mode = buffer.EOL_LF
view.view_eol = true
view.view_ws = view.WS_VISIBLEALWAYS

require('elastic_tabstops')

require('ctags')
local lsp = require('lsp')
lsp.server_commands.rust = 'rust-analyzer'
require('spellcheck')

textadept and lsp version: 12.0
latest nightly version (as of 16 Jan 2023) does not work at all: lsp server immediately closes with error 101
i have read the rpc logs and there are no errors.

You're right that hover information should appear when you hover over text and hold the mouse stationary for a half-second or so. It works for me on Linux with clangd (C++ language server), so there may be something odd going on on Windows. I don't have a Windows box to test on at the moment, but I'll look into this when I have a chance.
On a side note: the LSP module is currently under heavy development, so there may be some transitory issues. The module was recently updated to support LSP version 3.17.0, which your server may not yet support. I don't know what server error 101 is for Rust.

On nightly version 17 Jan 2023, it shows this error in the output buffer:
textadept\data/modules/lsp/init.lua:664: textadept\data/modules/lsp/init.lua:415: attempt to index a nil value (local 'line')

could i see how you set up your clangd server on textadept so i can test it? thanks!

I think that error means your language server has died.
My clangd configuration as simple as this:
 lsp.server_commands.cpp = 'clangd'

config:
local lsp = require('lsp')
lsp.server_commands.rust = 'rust-analyzer'
lsp.server_commands.c = 'clangd'
lsp.server_commands.cpp = 'clangd'

[Output Buffer] (for both c and cpp files):
textadept\data/modules/lsp/init.lua:664: textadept\data/modules/lsp/init.lua:212: No project root found

for rust file:
textadept\data/modules/lsp/init.lua:664: textadept\data/modules/lsp/init.lua:415: attempt to index a nil value (local 'line')

file structure:

for cpp:

folder
|-main.cpp
|-.clangd

for c:

folder
|-main.c

the language servers, both rust (rust-analyzer) and c and cpp (clangd) work in other text editors such as neovim, sublime text, lapce and helix on my computer.

For the "no project root found" error, you need to have a version
control directory in the project root folder (you can fake one by
creating a .git/ if you want). Textadept needs to know what root
directory to pass to the language server.

the language servers now work for c and cpp files, thanks so much! i guess there is something different about the rust server then. (not sure what 'attempt to index a nil value means'). however, there is still no hover functionality for c and cpp and i still have to do Tools > Language Server > Show Hover Information.

The LSP module is trying to read a line of output from the Rust language
server, but the Rust language server has probably died, so the line is
nil and cannot be worked with. I'll add better error handling for this.
I'll have to investigate hover on Windows when I have access to a
Windows box.

sorry for not doing this sooner, forgot to turn on log_rpc.
Starting language server: rust-analyzer
RPC send:

{
  "params": {
    "rootUri": "file:///R:/wgpu_prac",
    "capabilities": {
      "textDocument": {
        "signatureHelp": {
          "signatureInformation": {
            "parameterInformation": {
              "labelOffsetSupport": true
            },
            "activeParameterSupport": true,
            "documentationFormat": ["plaintext"]
          }
        },
        "synchronization": {
          "didSave": true
        },
        "completion": {
          "completionItem": {
            "preselectSupport": true,
            "documentationFormat": ["plaintext"]
          },
          "completionItemKind": {
            "valueSet": [1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23, 24, 25]
          }
        },
        "selectionRange": [],
        "hover": {
          "contentFormat": ["plaintext"]
        },
        "documentSymbol": {
          "symbolKind": {
            "valueSet": [1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23, 24, 25, 26]
          }
        }
      }
    },
    "clientInfo": {
      "version": "Textadept 12.0 alpha",
      "name": "textadept"
    },
    "processId": null
  },
  "id": 1,
  "jsonrpc": "2.0",
  "method": "initialize"
}

Server exited with status 101

The hover issue should be fixed via
https://github.com/orbitalquark/textadept/commit/07331016da374fbc2fa5618c4a9232ac76c91920
and will be in the next nightly build. Whenever you choose to update,
please also grab the latest LSP module, as a lot of work has been done
on it in the meantime.
There's nothing I can do about the Rust language server issue because
it's crashing for unknown reasons.


Cannot add 2 layers

Unable to add 2 layers, I have to add a layer, close the settings screen and add a new one.

Can you try again now? (once the build is completed)

Thank you


No Metrics Add

I try out your code in my project, finally no metrics add to the  "Metrics.globalRegistry".
Debug into it , found this code skip creating a adapter for my returnType:
@GET("/mobile")
PhoneHomeInfo mobile(@Header("Authorization") String authorization, @Query("mobile") String mobile);
why must check the returnType in Call in "RetrofitMetricsFactory.kt" line 25 ? Can i skip that code ?
if (getRawType(returnType) != Call::class.java) {
return null
}

The Call contains information to process e.g. the retry.
You might want to keep this wrapper in your code and access the resulting body instead.


Using Odata Filter and how to get a single value from list?

I tried like following with Odata filter
var agreementIds = new List< Guid >();
agreementIds .Add("rt2348F1-grDA-E511-80C7-000D3AB24C19");
agreementIds .Add("g09B68F1-u6DA-E511-80C7-000D3AB24C19");
agreementIds .Add("D09B68F1-k5DA-E511-80C7-000D3AB24C19");
var agreementFilter = new ODataExpression< ExtEnergyRatingSeries >(x => agreementIds.Contains(x.ExtAgreementId));
var extPeriodIds = await dataServiceClient.For< ExtEnergyRatingSeries >()
.Filter(agreementFilter)
and getting following error :
The type 'System.Collections.Generic.List`1[System.Guid]' is not supported when converting to a URI literal.
any clue?
not working for multiple no IN clause in Odata I know but how do I work with above?

Not every LINQ expression can be converted to OData query URI. Can you express the query you are trying to execute using OData notation?

having a list of guid and want to select one of it.
like in sql we use IN clause.
So creating a filter for IN clause and will use it.
can you help me?

I don't think this is supported in OData, it's in proposal:
https://issues.oasis-open.org/browse/ODATA-556
The closest you can do is to replace it with a series of OR:
http://stackoverflow.com/questions/7745231/odata-where-id-in-list-query
So in short: no, this currently is not supported by OData, when constructing queries you should always bear in mind how they are mapped to OData URI.


Failed to communicate with API server: Get https://<IP_ADDRESS>:6443/api/v1/componentstatuses?timeout=30s: net/http: request canceled (Client.Timeout exceeded while awaiting headers)

Rancher versions:
rancher/server or rancher/rancher:  rancher/rancer
rancher/agent or rancher/rancher-agent: not sure using 2.0.8
Infrastructure Stack versions:
healthcheck:
ipsec:
network-services:
scheduler:
kubernetes (if applicable):
Docker version: 17.3.2
Operating system and kernel: ubuntu 16.03
Type/provider of hosts: AWS
Setup details: Single Rancher instance, single master, two minions
Environment Template: Kubernetes
Steps to Reproduce:
Updated to 2.0.8, then decided that I was a little worried that having one master I might lose all my hard work with Rancher and so added another master and got the following error:
Failed to communicate with API server: Get https://<IP_ADDRESS>:6443/api/v1/componentstatuses?timeout=30s: net/http: request canceled (Client.Timeout exceeded while awaiting headers)
Results:
Get the following error:
Failed to communicate with API server: Get https://<IP_ADDRESS>:6443/api/v1/componentstatuses?timeout=30s: net/http: request canceled (Client.Timeout exceeded while awaiting headers)
All of the Kubernetes setup has gone

Workaround:
ssh to the node and remove k8s_agent_cattle-node-agent-XXX_cattle-system_XXXX manually. The pod will get recreated automatically and the cluster will become active state.
This issue should be fixed in v2.1.0 with PR https://github.com/rancher/rancher/pull/15699

Close in favor of https://github.com/rancher/rancher/issues/14354

Just hit this issue with v2.1.0 however in my case stopping/removing k8s_agent_cattle-node-agent-XXX_cattle-system_XXXX did not bring my system back up.
Not really sure what else I can do??

Also experienced the same issue on v2.1.0 with two separate new clusters one on AWS and one on Digital Ocean

My ticket is potentially related to this: https://github.com/rancher/rancher/issues/16047

time="2018-10-11T03:45:11Z" level=info msg="Connecting to wss://aws-rancher.mydomain.com/v3/connect with token dzvszq8bjqcnnctjh99dhbt6klzdv9wlx7vhmkppq9hj8qsctv2dcb"
time="2018-10-11T03:45:11Z" level=info msg="Connecting to proxy" url="wss://aws-rancher.bop.gov/v3/connect"
time="2018-10-11T03:45:11Z" level=error msg="Failed to connect to proxy" error="tls: handshake message of length 67746 bytes exceeds maximum of 65536 bytes"
time="2018-10-11T03:45:11Z" level=error msg="Failed to connect to proxy" error="tls: handshake message of length 67746 bytes exceeds maximum of 65536 bytes"

Log from k8s_agent_cattle-node-agent-XXX_cattle-system_XXXX; the previous four lines repeat every 10 seconds.
Curling the api from within k8s_agent_cattle-node-agent-XXX_cattle-system_XXXX successfully returns a reponse.
System description:
Docker version 17.03.2 on amazon linux 2 (AWS)
Single master setup (etcd / control plane)
Multiple worker nodes available.
Plenty of resources, no disk, memory, or cpu pressure on any node.
No real system load.

Can you share the complete logging? Also the network path between the node and Rancher (what networks does it pass, is there a proxy, is there a loadbalancer, other network devices?)

Below is the full log of k8s_agent_cattle-node-agent-XXX_cattle-system_XXXX running on the node.
With regards to the infrastructure, both rancher server, master and node are on the same subnet with direct connectivity.   There is a proxy for internet access but I can't imagine it's affecting this as the cluster was fully functional for some period of time before it became unavailable for no apparent reason.  This is my second instance of a 2.1.0 cluster with the same configuration that got hung up with no way to recover.
Rancher log attached
rancher.zip
.
INFO: Environment: CATTLE_ADDRESS=<IP_ADDRESS> CATTLE_AGENT_CONNECT=true CATTLE_CA_CHECKSUM= CATTLE_CLUSTER=false CATTLE_INTERNAL_ADDRESS= CATTLE_K8S_MANAGED=true CATTLE_NODE_NAME=worker-1.mydomain.com CATTLE_SERVER=https://aws-rancher.mydomain.com
INFO: Using resolv.conf: nameserver <IP_ADDRESS> search us-gov-west-1.compute.internal options timeout:2 attempts:5
INFO: https://aws-rancher.mydomain.com/ping is accessible
time="2018-10-11T13:38:20Z" level=info msg="Rancher agent version v2.1.0 is starting"
time="2018-10-11T13:38:20Z" level=info msg="Option customConfig=map[internalAddress: roles:[] label:map[] address:<IP_ADDRESS>]"
time="2018-10-11T13:38:20Z" level=info msg="Option etcd=false"
time="2018-10-11T13:38:20Z" level=info msg="Option controlPlane=false"
time="2018-10-11T13:38:20Z" level=info msg="Listening on /tmp/log.sock"
time="2018-10-11T13:38:20Z" level=info msg="Option worker=false"
time="2018-10-11T13:38:20Z" level=info msg="Option requestedHostname=worker-1.mydomain.com"
time="2018-10-11T13:38:20Z" level=info msg="Connecting to wss://aws-rancher.mydomain.com/v3/connect with token dzvszq8bjqcnnctjh99dhbt6klzdv9wlx7vhmkppq9hj8qsctv2dcb"
time="2018-10-11T13:38:20Z" level=info msg="Connecting to proxy" url="wss://aws-rancher.mydomain.com/v3/connect"
time="2018-10-11T13:38:20Z" level=error msg="Failed to connect to proxy" error="tls: handshake message of length 67746 bytes exceeds maximum of 65536 bytes"
time="2018-10-11T13:38:20Z" level=error msg="Failed to connect to proxy" error="tls: handshake message of length 67746 bytes exceeds maximum of 65536 bytes"
time="2018-10-11T13:38:30Z" level=info msg="Connecting to wss://aws-rancher.mydomain.com/v3/connect with token dzvszq8bjqcnnctjh99dhbt6klzdv9wlx7vhmkppq9hj8qsctv2dcb"
time="2018-10-11T13:38:30Z" level=info msg="Connecting to proxy" url="wss://aws-rancher.mydomain.com/v3/connect"
time="2018-10-11T13:38:30Z" level=error msg="Failed to connect to proxy" error="tls: handshake message of length 67746 bytes exceeds maximum of 65536 bytes"
time="2018-10-11T13:38:30Z" level=error msg="Failed to connect to proxy" error="tls: handshake message of length 67746 bytes exceeds maximum of 65536 bytes"
time="2018-10-11T13:38:40Z" level=info msg="Connecting to wss://aws-rancher.mydomain.com/v3/connect with token dzvszq8bjqcnnctjh99dhbt6klzdv9wlx7vhmkppq9hj8qsctv2dcb"
time="2018-10-11T13:38:40Z" level=info msg="Connecting to proxy" url="wss://aws-rancher.mydomain.com/v3/connect"
time="2018-10-11T13:38:40Z" level=error msg="Failed to connect to proxy" error="tls: handshake message of length 67746 bytes exceeds maximum of 65536 bytes"
time="2018-10-11T13:38:40Z" level=error msg="Failed to connect to proxy" error="tls: handshake message of length 67746 bytes exceeds maximum of 65536 bytes"
time="2018-10-11T13:38:50Z" level=info msg="Connecting to wss://aws-rancher.mydomain.com/v3/connect with token dzvszq8bjqcnnctjh99dhbt6klzdv9wlx7vhmkppq9hj8qsctv2dcb"
time="2018-10-11T13:38:50Z" level=info msg="Connecting to proxy" url="wss://aws-rancher.mydomain.com/v3/connect"
time="2018-10-11T13:38:50Z" level=error msg="Failed to connect to proxy" error="tls: handshake message of length 67746 bytes exceeds maximum of 65536 bytes"
time="2018-10-11T13:38:50Z" level=error msg="Failed to connect to proxy" error="tls: handshake message of length 67746 bytes exceeds maximum of 65536 bytes"
time="2018-10-11T13:39:00Z" level=info msg="Connecting to wss://aws-rancher.mydomain.com/v3/connect with token dzvszq8bjqcnnctjh99dhbt6klzdv9wlx7vhmkppq9hj8qsctv2dcb"
time="2018-10-11T13:39:00Z" level=info msg="Connecting to proxy" url="wss://aws-rancher.mydomain.com/v3/connect"
time="2018-10-11T13:39:00Z" level=error msg="Failed to connect to proxy" error="tls: handshake message of length 67746 bytes exceeds maximum of 65536 bytes"
time="2018-10-11T13:39:00Z" level=error msg="Failed to connect to proxy" error="tls: handshake message of length 67746 bytes exceeds maximum of 65536 bytes"
time="2018-10-11T13:39:10Z" level=info msg="Connecting to wss://aws-rancher.mydomain.com/v3/connect with token dzvszq8bjqcnnctjh99dhbt6klzdv9wlx7vhmkppq9hj8qsctv2dcb"
time="2018-10-11T13:39:10Z" level=info msg="Connecting to proxy" url="wss://aws-rancher.mydomain.com/v3/connect"
time="2018-10-11T13:39:10Z" level=error msg="Failed to connect to proxy" error="tls: handshake message of length 67746 bytes exceeds maximum of 65536 bytes"
time="2018-10-11T13:39:10Z" level=error msg="Failed to connect to proxy" error="tls: handshake message of length 67746 bytes exceeds maximum of 65536 bytes"
time="2018-10-11T13:39:20Z" level=info msg="Connecting to wss://aws-rancher.mydomain.com/v3/connect with token dzvszq8bjqcnnctjh99dhbt6klzdv9wlx7vhmkppq9hj8qsctv2dcb"
time="2018-10-11T13:39:20Z" level=info msg="Connecting to proxy" url="wss://aws-rancher.mydomain.com/v3/connect"
time="2018-10-11T13:39:20Z" level=error msg="Failed to connect to proxy" error="tls: handshake message of length 67746 bytes exceeds maximum of 65536 bytes"
time="2018-10-11T13:39:20Z" level=error msg="Failed to connect to proxy" error="tls: handshake message of length 67746 bytes exceeds maximum of 65536 bytes"
time="2018-10-11T13:39:30Z" level=info msg="Connecting to wss://aws-rancher.mydomain.com/v3/connect with token dzvszq8bjqcnnctjh99dhbt6klzdv9wlx7vhmkppq9hj8qsctv2dcb"
time="2018-10-11T13:39:30Z" level=info msg="Connecting to proxy" url="wss://aws-rancher.mydomain.com/v3/connect"
time="2018-10-11T13:39:30Z" level=error msg="Failed to connect to proxy" error="tls: handshake message of length 67746 bytes exceeds maximum of 65536 bytes"
time="2018-10-11T13:39:30Z" level=error msg="Failed to connect to proxy" error="tls: handshake message of length 67746 bytes exceeds maximum of 65536 bytes"
time="2018-10-11T13:39:40Z" level=info msg="Connecting to wss://aws-rancher.mydomain.com/v3/connect with token dzvszq8bjqcnnctjh99dhbt6klzdv9wlx7vhmkppq9hj8qsctv2dcb"
time="2018-10-11T13:39:40Z" level=info msg="Connecting to proxy" url="wss://aws-rancher.mydomain.com/v3/connect"
time="2018-10-11T13:39:40Z" level=error msg="Failed to connect to proxy" error="tls: handshake message of length 67746 bytes exceeds maximum of 65536 bytes"
time="2018-10-11T13:39:40Z" level=error msg="Failed to connect to proxy" error="tls: handshake message of length 67746 bytes exceeds maximum of 65536 bytes"
time="2018-10-11T13:39:50Z" level=info msg="Connecting to wss://aws-rancher.mydomain.com/v3/connect with token dzvszq8bjqcnnctjh99dhbt6klzdv9wlx7vhmkppq9hj8qsctv2dcb"
time="2018-10-11T13:39:50Z" level=info msg="Connecting to proxy" url="wss://aws-rancher.mydomain.com/v3/connect"
time="2018-10-11T13:39:50Z" level=error msg="Failed to connect to proxy" error="tls: handshake message of length 67746 bytes exceeds maximum of 65536 bytes"
time="2018-10-11T13:39:50Z" level=error msg="Failed to connect to proxy" error="tls: handshake message of length 67746 bytes exceeds maximum of 65536 bytes"
time="2018-10-11T13:40:00Z" level=info msg="Connecting to wss://aws-rancher.mydomain.com/v3/connect with token dzvszq8bjqcnnctjh99dhbt6klzdv9wlx7vhmkppq9hj8qsctv2dcb"
time="2018-10-11T13:40:00Z" level=info msg="Connecting to proxy" url="wss://aws-rancher.mydomain.com/v3/connect"
time="2018-10-11T13:40:00Z" level=error msg="Failed to connect to proxy" error="tls: handshake message of length 67746 bytes exceeds maximum of 65536 bytes"
time="2018-10-11T13:40:00Z" level=error msg="Failed to connect to proxy" error="tls: handshake message of length 67746 bytes exceeds maximum of 65536 bytes"
time="2018-10-11T13:40:10Z" level=info msg="Connecting to wss://aws-rancher.mydomain.com/v3/connect with token dzvszq8bjqcnnctjh99dhbt6klzdv9wlx7vhmkppq9hj8qsctv2dcb"
time="2018-10-11T13:40:10Z" level=info msg="Connecting to proxy" url="wss://aws-rancher.mydomain.com/v3/connect"
time="2018-10-11T13:40:10Z" level=error msg="Failed to connect to proxy" error="tls: handshake message of length 67746 bytes exceeds maximum of 65536 bytes"
time="2018-10-11T13:40:10Z" level=error msg="Failed to connect to proxy" error="tls: handshake message of length 67746 bytes exceeds maximum of 65536 bytes"
time="2018-10-11T13:40:20Z" level=info msg="Connecting to wss://aws-rancher.mydomain.com/v3/connect with token dzvszq8bjqcnnctjh99dhbt6klzdv9wlx7vhmkppq9hj8qsctv2dcb"
time="2018-10-11T13:40:20Z" level=info msg="Connecting to proxy" url="wss://aws-rancher.mydomain.com/v3/connect"
time="2018-10-11T13:40:20Z" level=error msg="Failed to connect to proxy" error="tls: handshake message of length 67746 bytes exceeds maximum of 65536 bytes"
time="2018-10-11T13:40:20Z" level=error msg="Failed to connect to proxy" error="tls: handshake message of length 67746 bytes exceeds maximum of 65536 bytes"
time="2018-10-11T13:40:30Z" level=info msg="Connecting to wss://aws-rancher.mydomain.com/v3/connect with token dzvszq8bjqcnnctjh99dhbt6klzdv9wlx7vhmkppq9hj8qsctv2dcb"
time="2018-10-11T13:40:30Z" level=info msg="Connecting to proxy" url="wss://aws-rancher.mydomain.com/v3/connect"
time="2018-10-11T13:40:30Z" level=error msg="Failed to connect to proxy" error="tls: handshake message of length 67746 bytes exceeds maximum of 65536 bytes"
time="2018-10-11T13:40:30Z" level=error msg="Failed to connect to proxy" error="tls: handshake message of length 67746 bytes exceeds maximum of 65536 bytes"
time="2018-10-11T13:40:40Z" level=info msg="Connecting to wss://aws-rancher.mydomain.com/v3/connect with token dzvszq8bjqcnnctjh99dhbt6klzdv9wlx7vhmkppq9hj8qsctv2dcb"
time="2018-10-11T13:40:40Z" level=info msg="Connecting to proxy" url="wss://aws-rancher.mydomain.com/v3/connect"
time="2018-10-11T13:40:40Z" level=error msg="Failed to connect to proxy" error="tls: handshake message of length 67746 bytes exceeds maximum of 65536 bytes"
time="2018-10-11T13:40:40Z" level=error msg="Failed to connect to proxy" error="tls: handshake message of length 67746 bytes exceeds maximum of 65536 bytes"
time="2018-10-11T13:40:50Z" level=info msg="Connecting to wss://aws-rancher.mydomain.com/v3/connect with token dzvszq8bjqcnnctjh99dhbt6klzdv9wlx7vhmkppq9hj8qsctv2dcb"
time="2018-10-11T13:40:50Z" level=info msg="Connecting to proxy" url="wss://aws-rancher.mydomain.com/v3/connect"
time="2018-10-11T13:40:50Z" level=error msg="Failed to connect to proxy" error="tls: handshake message of length 67746 bytes exceeds maximum of 65536 bytes"
time="2018-10-11T13:40:50Z" level=error msg="Failed to connect to proxy" error="tls: handshake message of length 67746 bytes exceeds maximum of 65536 bytes"
time="2018-10-11T13:41:00Z" level=info msg="Connecting to wss://aws-rancher.mydomain.com/v3/connect with token dzvszq8bjqcnnctjh99dhbt6klzdv9wlx7vhmkppq9hj8qsctv2dcb"
time="2018-10-11T13:41:00Z" level=info msg="Connecting to proxy" url="wss://aws-rancher.mydomain.com/v3/connect"
time="2018-10-11T13:41:00Z" level=error msg="Failed to connect to proxy" error="tls: handshake message of length 67746 bytes exceeds maximum of 65536 bytes"
time="2018-10-11T13:41:00Z" level=error msg="Failed to connect to proxy" error="tls: handshake message of length 67746 bytes exceeds maximum of 65536 bytes"
time="2018-10-11T13:41:10Z" level=info msg="Connecting to wss://aws-rancher.mydomain.com/v3/connect with token dzvszq8bjqcnnctjh99dhbt6klzdv9wlx7vhmkppq9hj8qsctv2dcb"
time="2018-10-11T13:41:10Z" level=info msg="Connecting to proxy" url="wss://aws-rancher.mydomain.com/v3/connect"
time="2018-10-11T13:41:10Z" level=error msg="Failed to connect to proxy" error="tls: handshake message of length 67746 bytes exceeds maximum of 65536 bytes"
time="2018-10-11T13:41:10Z" level=error msg="Failed to connect to proxy" error="tls: handshake message of length 67746 bytes exceeds maximum of 65536 bytes"
time="2018-10-11T13:41:20Z" level=info msg="Connecting to wss://aws-rancher.mydomain.com/v3/connect with token dzvszq8bjqcnnctjh99dhbt6klzdv9wlx7vhmkppq9hj8qsctv2dcb"
time="2018-10-11T13:41:20Z" level=info msg="Connecting to proxy" url="wss://aws-rancher.mydomain.com/v3/connect"
time="2018-10-11T13:41:20Z" level=error msg="Failed to connect to proxy" error="tls: handshake message of length 67746 bytes exceeds maximum of 65536 bytes"
time="2018-10-11T13:41:20Z" level=error msg="Failed to connect to proxy" error="tls: handshake message of length 67746 bytes exceeds maximum of 65536 bytes"
time="2018-10-11T13:41:30Z" level=info msg="Connecting to wss://aws-rancher.mydomain.com/v3/connect with token dzvszq8bjqcnnctjh99dhbt6klzdv9wlx7vhmkppq9hj8qsctv2dcb"
time="2018-10-11T13:41:30Z" level=info msg="Connecting to proxy" url="wss://aws-rancher.mydomain.com/v3/connect"
time="2018-10-11T13:41:30Z" level=error msg="Failed to connect to proxy" error="tls: handshake message of length 67746 bytes exceeds maximum of 65536 bytes"
time="2018-10-11T13:41:30Z" level=error msg="Failed to connect to proxy" error="tls: handshake message of length 67746 bytes exceeds maximum of 65536 bytes"
time="2018-10-11T13:41:40Z" level=info msg="Connecting to wss://aws-rancher.mydomain.com/v3/connect with token dzvszq8bjqcnnctjh99dhbt6klzdv9wlx7vhmkppq9hj8qsctv2dcb"
time="2018-10-11T13:41:40Z" level=info msg="Connecting to proxy" url="wss://aws-rancher.mydomain.com/v3/connect"
time="2018-10-11T13:41:40Z" level=error msg="Failed to connect to proxy" error="tls: handshake message of length 67746 bytes exceeds maximum of 65536 bytes"
time="2018-10-11T13:41:40Z" level=error msg="Failed to connect to proxy" error="tls: handshake message of length 67746 bytes exceeds maximum of 65536 bytes"
time="2018-10-11T13:41:50Z" level=info msg="Connecting to wss://aws-rancher.mydomain.com/v3/connect with token dzvszq8bjqcnnctjh99dhbt6klzdv9wlx7vhmkppq9hj8qsctv2dcb"
time="2018-10-11T13:41:50Z" level=info msg="Connecting to proxy" url="wss://aws-rancher.mydomain.com/v3/connect"
time="2018-10-11T13:41:50Z" level=error msg="Failed to connect to proxy" error="tls: handshake message of length 67746 bytes exceeds maximum of 65536 bytes"
time="2018-10-11T13:41:50Z" level=error msg="Failed to connect to proxy" error="tls: handshake message of length 67746 bytes exceeds maximum of 65536 bytes"
time="2018-10-11T13:42:00Z" level=info msg="Connecting to wss://aws-rancher.mydomain.com/v3/connect with token dzvszq8bjqcnnctjh99dhbt6klzdv9wlx7vhmkppq9hj8qsctv2dcb"
time="2018-10-11T13:42:00Z" level=info msg="Connecting to proxy" url="wss://aws-rancher.mydomain.com/v3/connect"
time="2018-10-11T13:42:00Z" level=error msg="Failed to connect to proxy" error="tls: handshake message of length 67746 bytes exceeds maximum of 65536 bytes"
time="2018-10-11T13:42:00Z" level=error msg="Failed to connect to proxy" error="tls: handshake message of length 67746 bytes exceeds maximum of 65536 bytes"
time="2018-10-11T13:42:10Z" level=info msg="Connecting to wss://aws-rancher.mydomain.com/v3/connect with token dzvszq8bjqcnnctjh99dhbt6klzdv9wlx7vhmkppq9hj8qsctv2dcb"
time="2018-10-11T13:42:10Z" level=info msg="Connecting to proxy" url="wss://aws-rancher.mydomain.com/v3/connect"
time="2018-10-11T13:42:10Z" level=error msg="Failed to connect to proxy" error="tls: handshake message of length 67746 bytes exceeds maximum of 65536 bytes"
time="2018-10-11T13:42:10Z" level=error msg="Failed to connect to proxy" error="tls: handshake message of length 67746 bytes exceeds maximum of 65536 bytes"
time="2018-10-11T13:42:20Z" level=info msg="Connecting to wss://aws-rancher.mydomain.com/v3/connect with token dzvszq8bjqcnnctjh99dhbt6klzdv9wlx7vhmkppq9hj8qsctv2dcb"
time="2018-10-11T13:42:20Z" level=info msg="Connecting to proxy" url="wss://aws-rancher.mydomain.com/v3/connect"
time="2018-10-11T13:42:20Z" level=error msg="Failed to connect to proxy" error="tls: handshake message of length 67746 bytes exceeds maximum of 65536 bytes"
time="2018-10-11T13:42:20Z" level=error msg="Failed to connect to proxy" error="tls: handshake message of length 67746 bytes exceeds maximum of 65536 bytes"
time="2018-10-11T13:42:30Z" level=info msg="Connecting to wss://aws-rancher.mydomain.com/v3/connect with token dzvszq8bjqcnnctjh99dhbt6klzdv9wlx7vhmkppq9hj8qsctv2dcb"
time="2018-10-11T13:42:30Z" level=info msg="Connecting to proxy" url="wss://aws-rancher.mydomain.com/v3/connect"
time="2018-10-11T13:42:30Z" level=error msg="Failed to connect to proxy" error="tls: handshake message of length 67746 bytes exceeds maximum of 65536 bytes"
time="2018-10-11T13:42:30Z" level=error msg="Failed to connect to proxy" error="tls: handshake message of length 67746 bytes exceeds maximum of 65536 bytes"
time="2018-10-11T13:42:40Z" level=info msg="Connecting to wss://aws-rancher.mydomain.com/v3/connect with token dzvszq8bjqcnnctjh99dhbt6klzdv9wlx7vhmkppq9hj8qsctv2dcb"
time="2018-10-11T13:42:40Z" level=info msg="Connecting to proxy" url="wss://aws-rancher.mydomain.com/v3/connect"
time="2018-10-11T13:42:40Z" level=error msg="Failed to connect to proxy" error="tls: handshake message of length 67746 bytes exceeds maximum of 65536 bytes"
time="2018-10-11T13:42:40Z" level=error msg="Failed to connect to proxy" error="tls: handshake message of length 67746 bytes exceeds maximum of 65536 bytes"
time="2018-10-11T13:42:50Z" level=info msg="Connecting to wss://aws-rancher.mydomain.com/v3/connect with token dzvszq8bjqcnnctjh99dhbt6klzdv9wlx7vhmkppq9hj8qsctv2dcb"
time="2018-10-11T13:42:50Z" level=info msg="Connecting to proxy" url="wss://aws-rancher.mydomain.com/v3/connect"
time="2018-10-11T13:42:50Z" level=error msg="Failed to connect to proxy" error="tls: handshake message of length 67746 bytes exceeds maximum of 65536 bytes"
time="2018-10-11T13:42:50Z" level=error msg="Failed to connect to proxy" error="tls: handshake message of length 67746 bytes exceeds maximum of 65536 bytes"
time="2018-10-11T13:43:00Z" level=info msg="Connecting to wss://aws-rancher.mydomain.com/v3/connect with token dzvszq8bjqcnnctjh99dhbt6klzdv9wlx7vhmkppq9hj8qsctv2dcb"
time="2018-10-11T13:43:00Z" level=info msg="Connecting to proxy" url="wss://aws-rancher.mydomain.com/v3/connect"
time="2018-10-11T13:43:00Z" level=error msg="Failed to connect to proxy" error="tls: handshake message of length 67746 bytes exceeds maximum of 65536 bytes"
time="2018-10-11T13:43:00Z" level=error msg="Failed to connect to proxy" error="tls: handshake message of length 67746 bytes exceeds maximum of 65536 bytes"
time="2018-10-11T13:43:10Z" level=info msg="Connecting to wss://aws-rancher.mydomain.com/v3/connect with token dzvszq8bjqcnnctjh99dhbt6klzdv9wlx7vhmkppq9hj8qsctv2dcb"
time="2018-10-11T13:43:10Z" level=info msg="Connecting to proxy" url="wss://aws-rancher.mydomain.com/v3/connect"
time="2018-10-11T13:43:10Z" level=error msg="Failed to connect to proxy" error="tls: handshake message of length 67746 bytes exceeds maximum of 65536 bytes"
time="2018-10-11T13:43:10Z" level=error msg="Failed to connect to proxy" error="tls: handshake message of length 67746 bytes exceeds maximum of 65536 bytes"
time="2018-10-11T13:43:20Z" level=info msg="Connecting to wss://aws-rancher.mydomain.com/v3/connect with token dzvszq8bjqcnnctjh99dhbt6klzdv9wlx7vhmkppq9hj8qsctv2dcb"
time="2018-10-11T13:43:20Z" level=info msg="Connecting to proxy" url="wss://aws-rancher.mydomain.com/v3/connect"
time="2018-10-11T13:43:20Z" level=error msg="Failed to connect to proxy" error="tls: handshake message of length 67746 bytes exceeds maximum of 65536 bytes"
time="2018-10-11T13:43:20Z" level=error msg="Failed to connect to proxy" error="tls: handshake message of length 67746 bytes exceeds maximum of 65536 bytes"
time="2018-10-11T13:43:30Z" level=info msg="Connecting to wss://aws-rancher.mydomain.com/v3/connect with token dzvszq8bjqcnnctjh99dhbt6klzdv9wlx7vhmkppq9hj8qsctv2dcb"
time="2018-10-11T13:43:30Z" level=info msg="Connecting to proxy" url="wss://aws-rancher.mydomain.com/v3/connect"
time="2018-10-11T13:43:30Z" level=error msg="Failed to connect to proxy" error="tls: handshake message of length 67746 bytes exceeds maximum of 65536 bytes"
time="2018-10-11T13:43:30Z" level=error msg="Failed to connect to proxy" error="tls: handshake message of length 67746 bytes exceeds maximum of 65536 bytes"
time="2018-10-11T13:43:40Z" level=info msg="Connecting to wss://aws-rancher.mydomain.com/v3/connect with token dzvszq8bjqcnnctjh99dhbt6klzdv9wlx7vhmkppq9hj8qsctv2dcb"
time="2018-10-11T13:43:40Z" level=info msg="Connecting to proxy" url="wss://aws-rancher.mydomain.com/v3/connect"
time="2018-10-11T13:43:40Z" level=error msg="Failed to connect to proxy" error="tls: handshake message of length 67746 bytes exceeds maximum of 65536 bytes"
time="2018-10-11T13:43:40Z" level=error msg="Failed to connect to proxy" error="tls: handshake message of length 67746 bytes exceeds maximum of 65536 bytes"
time="2018-10-11T13:43:50Z" level=info msg="Connecting to wss://aws-rancher.mydomain.com/v3/connect with token dzvszq8bjqcnnctjh99dhbt6klzdv9wlx7vhmkppq9hj8qsctv2dcb"
time="2018-10-11T13:43:50Z" level=info msg="Connecting to proxy" url="wss://aws-rancher.mydomain.com/v3/connect"
time="2018-10-11T13:43:50Z" level=error msg="Failed to connect to proxy" error="tls: handshake message of length 67746 bytes exceeds maximum of 65536 bytes"
time="2018-10-11T13:43:50Z" level=error msg="Failed to connect to proxy" error="tls: handshake message of length 67746 bytes exceeds maximum of 65536 bytes"
time="2018-10-11T13:44:00Z" level=info msg="Connecting to wss://aws-rancher.mydomain.com/v3/connect with token dzvszq8bjqcnnctjh99dhbt6klzdv9wlx7vhmkppq9hj8qsctv2dcb"
time="2018-10-11T13:44:00Z" level=info msg="Connecting to proxy" url="wss://aws-rancher.mydomain.com/v3/connect"
time="2018-10-11T13:44:00Z" level=error msg="Failed to connect to proxy" error="tls: handshake message of length 67746 bytes exceeds maximum of 65536 bytes"
time="2018-10-11T13:44:00Z" level=error msg="Failed to connect to proxy" error="tls: handshake message of length 67746 bytes exceeds maximum of 65536 bytes"
time="2018-10-11T13:44:10Z" level=info msg="Connecting to wss://aws-rancher.mydomain.com/v3/connect with token dzvszq8bjqcnnctjh99dhbt6klzdv9wlx7vhmkppq9hj8qsctv2dcb"
time="2018-10-11T13:44:10Z" level=info msg="Connecting to proxy" url="wss://aws-rancher.mydomain.com/v3/connect"
time="2018-10-11T13:44:10Z" level=error msg="Failed to connect to proxy" error="tls: handshake message of length 67746 bytes exceeds maximum of 65536 bytes"
time="2018-10-11T13:44:10Z" level=error msg="Failed to connect to proxy" error="tls: handshake message of length 67746 bytes exceeds maximum of 65536 bytes"
time="2018-10-11T13:44:20Z" level=info msg="Connecting to wss://aws-rancher.mydomain.com/v3/connect with token dzvszq8bjqcnnctjh99dhbt6klzdv9wlx7vhmkppq9hj8qsctv2dcb"
time="2018-10-11T13:44:20Z" level=info msg="Connecting to proxy" url="wss://aws-rancher.mydomain.com/v3/connect"
time="2018-10-11T13:44:20Z" level=error msg="Failed to connect to proxy" error="tls: handshake message of length 67746 bytes exceeds maximum of 65536 bytes"
time="2018-10-11T13:44:20Z" level=error msg="Failed to connect to proxy" error="tls: handshake message of length 67746 bytes exceeds maximum of 65536 bytes"
time="2018-10-11T13:44:30Z" level=info msg="Connecting to wss://aws-rancher.mydomain.com/v3/connect with token dzvszq8bjqcnnctjh99dhbt6klzdv9wlx7vhmkppq9hj8qsctv2dcb"
time="2018-10-11T13:44:30Z" level=info msg="Connecting to proxy" url="wss://aws-rancher.mydomain.com/v3/connect"
time="2018-10-11T13:44:30Z" level=error msg="Failed to connect to proxy" error="tls: handshake message of length 67746 bytes exceeds maximum of 65536 bytes"
time="2018-10-11T13:44:30Z" level=error msg="Failed to connect to proxy" error="tls: handshake message of length 67746 bytes exceeds maximum of 65536 bytes"
time="2018-10-11T13:44:40Z" level=info msg="Connecting to wss://aws-rancher.mydomain.com/v3/connect with token dzvszq8bjqcnnctjh99dhbt6klzdv9wlx7vhmkppq9hj8qsctv2dcb"
time="2018-10-11T13:44:40Z" level=info msg="Connecting to proxy" url="wss://aws-rancher.mydomain.com/v3/connect"
time="2018-10-11T13:44:40Z" level=error msg="Failed to connect to proxy" error="tls: handshake message of length 67746 bytes exceeds maximum of 65536 bytes"
time="2018-10-11T13:44:40Z" level=error msg="Failed to connect to proxy" error="tls: handshake message of length 67746 bytes exceeds maximum of 65536 bytes"
time="2018-10-11T13:44:50Z" level=info msg="Connecting to wss://aws-rancher.mydomain.com/v3/connect with token dzvszq8bjqcnnctjh99dhbt6klzdv9wlx7vhmkppq9hj8qsctv2dcb"
time="2018-10-11T13:44:50Z" level=info msg="Connecting to proxy" url="wss://aws-rancher.mydomain.com/v3/connect"
time="2018-10-11T13:44:50Z" level=error msg="Failed to connect to proxy" error="tls: handshake message of length 67746 bytes exceeds maximum of 65536 bytes"
time="2018-10-11T13:44:50Z" level=error msg="Failed to connect to proxy" error="tls: handshake message of length 67746 bytes exceeds maximum of 65536 bytes"
time="2018-10-11T13:45:00Z" level=info msg="Connecting to wss://aws-rancher.mydomain.com/v3/connect with token dzvszq8bjqcnnctjh99dhbt6klzdv9wlx7vhmkppq9hj8qsctv2dcb"
time="2018-10-11T13:45:00Z" level=info msg="Connecting to proxy" url="wss://aws-rancher.mydomain.com/v3/connect"
time="2018-10-11T13:45:00Z" level=error msg="Failed to connect to proxy" error="tls: handshake message of length 67746 bytes exceeds maximum of 65536 bytes"
time="2018-10-11T13:45:00Z" level=error msg="Failed to connect to proxy" error="tls: handshake message of length 67746 bytes exceeds maximum of 65536 bytes"
time="2018-10-11T13:45:10Z" level=info msg="Connecting to wss://aws-rancher.mydomain.com/v3/connect with token dzvszq8bjqcnnctjh99dhbt6klzdv9wlx7vhmkppq9hj8qsctv2dcb"
time="2018-10-11T13:45:10Z" level=info msg="Connecting to proxy" url="wss://aws-rancher.mydomain.com/v3/connect"
time="2018-10-11T13:45:10Z" level=error msg="Failed to connect to proxy" error="tls: handshake message of length 67746 bytes exceeds maximum of 65536 bytes"
time="2018-10-11T13:45:10Z" level=error msg="Failed to connect to proxy" error="tls: handshake message of length 67746 bytes exceeds maximum of 65536 bytes"
time="2018-10-11T13:45:20Z" level=info msg="Connecting to wss://aws-rancher.mydomain.com/v3/connect with token dzvszq8bjqcnnctjh99dhbt6klzdv9wlx7vhmkppq9hj8qsctv2dcb"
time="2018-10-11T13:45:20Z" level=info msg="Connecting to proxy" url="wss://aws-rancher.mydomain.com/v3/connect"
time="2018-10-11T13:45:20Z" level=error msg="Failed to connect to proxy" error="tls: handshake message of length 67746 bytes exceeds maximum of 65536 bytes"
time="2018-10-11T13:45:20Z" level=error msg="Failed to connect to proxy" error="tls: handshake message of length 67746 bytes exceeds maximum of 65536 bytes"
time="2018-10-11T13:45:30Z" level=info msg="Connecting to wss://aws-rancher.mydomain.com/v3/connect with token dzvszq8bjqcnnctjh99dhbt6klzdv9wlx7vhmkppq9hj8qsctv2dcb"
time="2018-10-11T13:45:30Z" level=info msg="Connecting to proxy" url="wss://aws-rancher.mydomain.com/v3/connect"
time="2018-10-11T13:45:30Z" level=error msg="Failed to connect to proxy" error="tls: handshake message of length 67746 bytes exceeds maximum of 65536 bytes"
time="2018-10-11T13:45:30Z" level=error msg="Failed to connect to proxy" error="tls: handshake message of length 67746 bytes exceeds maximum of 65536 bytes"

Also experiencing this with a brand new 2.1 installation. Unable to add nodes at all.

Can you share openssl s_client -connect rancher.yourdomain.com:443 -showcerts? If it contains sensitive info, please share directly to me on https://slack.rancher.io

I must admit, this is embarrassing.  Upon rancher server deployment, I was by accident appending my cert to a cert.pem that persisted through deployments.  After several deployments it caused the tls handshake issue as the cert.pem contained to many duplicated though valid certs.  Sorry for false alarm and thank you for pointing me in the right direction.  You guys rock.  Now I'm left scratching my head about the other reports on here.

Thanks!
Please let us know in a comment if you can still reproduce the issue, and we'll reopen it

I'm able to reproduce this by exhausting all the ram on a controller node

Create single node kubernetes cluster where etcd, controller and worker are all on 1 vm with 2gb of ram
Spin up a bunch of big docker containers that take all the ram

Rancher will then be unable to communicate with the api and give this error.

@jhu-arod how was the issue resolved.. i am facing the similar error
$kubectl  logs -f cattle-node-agent-nhqnq  -n cattle-system
Error Log:
INFO: Environment: CATTLE_ADDRESS=<IP_ADDRESS> CATTLE_AGENT_CONNECT=true CATTLE_CA_CHECKSUM=5ec318a427bd88ca2ac7d10c02dce6cbcd43679c611a57b3c4a74b3fec7b496c CATTLE_CLUSTER=false CATTLE_INTERNAL_ADDRESS= CATTLE_K8S_MANAGED=true CATTLE_NODE_NAME=ubuntuvm CATTLE_SERVER=https://<IP_ADDRESS>:9443
INFO: Using resolv.conf: nameserver <IP_ADDRESS> nameserver <IP_ADDRESS> nameserver <IP_ADDRESS> search hclt.corp.hcl.in
INFO: https://<IP_ADDRESS>:9443/ping is accessible
INFO: Value from https://<IP_ADDRESS>:9443/v3/settings/cacerts is an x509 certificate
time="2020-01-09T05:55:59Z" level=info msg="Rancher agent version v2.2.0 is starting"
time="2020-01-09T05:55:59Z" level=info msg="Option customConfig=map[address:<IP_ADDRESS> internalAddress: roles:[] label:map[]]"
time="2020-01-09T05:55:59Z" level=info msg="Option etcd=false"
time="2020-01-09T05:55:59Z" level=info msg="Option controlPlane=false"
time="2020-01-09T05:55:59Z" level=info msg="Option worker=false"
time="2020-01-09T05:55:59Z" level=info msg="Option requestedHostname=ubuntuvm"
time="2020-01-09T05:55:59Z" level=info msg="Listening on /tmp/log.sock"
time="2020-01-09T05:55:59Z" level=info msg="Connecting to wss://<IP_ADDRESS>:9443/v3/connect with token vhxkklz558fl557j65zmmwttj4rdw8c2695pm4f4qfg99zz5qjw7cv"
time="2020-01-09T05:55:59Z" level=info msg="Connecting to proxy" url="wss://<IP_ADDRESS>:9443/v3/connect"
time="2020-01-09T05:55:59Z" level=error msg="Failed to connect to proxy" error="websocket: bad handshake"
time="2020-01-09T05:55:59Z" level=error msg="Failed to connect to proxy" error="websocket: bad handshake"
time="2020-01-09T05:56:09Z" level=info msg="Connecting to wss://<IP_ADDRESS>:9443/v3/connect with token vhxkklz558fl557j65zmmwttj4rdw8c2695pm4f4qfg99zz5qjw7cv"
time="2020-01-09T05:56:09Z" level=info msg="Connecting to proxy" url="wss://<IP_ADDRESS>:9443/v3/connect"

I get the exact same thing as @rshiva777 almost every other day on GKE

En mi caso se solucionó reiniciando el contenedor docker en el nodo de despliegue.

En mi caso se solucionó reiniciando el contenedor docker en el nodo de despliegue.


Help in installing this plugins

" PLUGINS ---------------------------------------------------------------- {{{

call plug#begin('C:\Users\User\vimfiles\plugin')

  "linting
  Plug 'dense-analysis/ale'

  "left sidebar
  Plug 'preservim/nerdtree'

  Plug 'vim-airline/vim-airline'

call plug#end()

" }}

I use this function. But it wont install vim-airline. Please help

call plug#begin('C:\Users\User\vimfiles\plugin')

Do not use the plugin folder, use a a different one.

you are saving plugins in the plugin folder. Do not do this. This is expected to break, sine the plugin folder is special for vim. (Vim will automatically source all files there).


This does not seem to be working yet

[Enter feedback here]
I am just wondering if this is working for anyone.  I have turned on Sharing externally via the Microsoft 365 admin center per the article and created a policy in exchange and assigned it to myself.  Currently it is still not working about 1/2hr later.  Anyone know how long it takes to kick in? - Christine

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

ID: 2b3bda19-af86-20e8-92c4-ccb0caee7cd2
Version Independent ID: cc93f793-d8bf-e508-d1c1-ddada942623d
Content: Share calendars with external users - Microsoft 365 admin
Content Source: microsoft-365/admin/manage/share-calendars-with-external-users.md
Service: o365-administration
GitHub Login: @KwekuA
Microsoft Alias: kwekua

@msbemba  Thank you very much for the contribution and sharing this explanation. @stackorama Hope this comment is helpful for you. Considering the nature of the issue, as advised, please open a service ticket in your tenant and follow with them for the resolution. We proceed to close it as here we are limited to documentation fixes and improvements only.
We will be very happy if you can share the outcome or resolution with us if you see documentation update is required. We will certainly update this documentation with that valuable information. Thanks again, for taking out some time to open the issue. Appreciate and encourage you to do the same in future also.


Make defaults an immutable copy

A little bit of discussion here https://github.com/jashkenas/backbone/pull/3843#discussion_r43514938.

Not tackleable with _.defaults({}, obj, other) ?

Not tackleable with _.defaults({}, obj, other) ?

We were hitting the watch case from https://github.com/jashkenas/backbone/issues/3842 with that code. We could also let it be mutable if we check if the dest's property is enumerable, overriding if not.

I don't see how not mutating would avoid the issue? You're still performing a check value !== void 0 || !(key in dest).

Because it's testing from the source, not the destination. source[key] !== void 0 || !(key in dest).

Because it's testing from the source, not the destination.

Can you slow walk me through it.

If the value is present (not undefined) in source, we assign it to destination. If it is undefined, we only assign it if the key isn't already in source. So:
newDefaults({ hasOwnProperty: true }); // => { hasOwnProperty: true }
newDefaults({ hasOwnProperty: undefined }); // => { }

oldDefaults({ }, { hasOwnProperty: true }); // => { }

Cool, the more I think on this the more I dig it. The common case for _.defaults is options objects which should at least be shallow cloned by methods anyways.

I decided to simply check if the value is strict equal to those on Object.prototype[key]. This solves the issue while allowing _.defaults to act as it has in other respects. https://github.com/lodash/lodash/commit/8a3842b788e920e905827bebc82447c9ce97b29d

Coverage decreased (-35.9%) to 60.901% when pulling e4db165e9cb2d45ccdb2f1414f0a4a00eae2d500 on jridgewell:immutable-defaults into 3aee4af8d84c160e4bebb557165931080f2db371 on jashkenas:master.

@jashkenas I feel like closing this one for solving the wrong problem. Would you agree?

@jashkenas I feel like closing this one for solving the wrong problem. Would you agree?

I agree.


Rendering code replaces @xyz with github link in URLs, breaking link targets

If you write something like [this document](https://hackmd.org/@xyz/document), the rendering code will replace @xyz with a github link, breaking the URL in the hackmd link.
This replacement needs to be markdown-aware, and shouldn't happen in (at least) code blocks and link targets. If that's not easily possible, then we should disable the username-replacement logic until it can be fixed.
https://github.com/rust-lang/rust-project-goals/pull/203 was a PR that resulted from having to work around this breakage.

Yeah, it's currently just some simple regexs. It might be worth breaking out a real markdown parser.

It seems like comrak can be easily made to do what is needed...
https://github.com/kivikakk/comrak?tab=readme-ov-file#usage