fix(#502): take account of extended wrappers when is not set.

What kind of change does this PR introduce? Bug fix
Fix #502

This change is

Codecov Report

Merging #503 into v1 will increase coverage by 0.31%.
The diff coverage is 100%.

@@            Coverage Diff            @@
##               v1    #503      +/-   ##
=========================================
+ Coverage   92.28%   92.6%   +0.31%
=========================================
  Files          18      18
  Lines         778     784       +6
  Branches      212     213       +1
=========================================
+ Hits          718     726       +8
+ Misses         60      58       -2

Impacted Files
Coverage Δ

src/core/src/services/formly.config.ts
87.91% <100%> (+3.2%)
:arrow_up:

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update c7d5384...1fde0c0. Read the comment docs.


Change PUT request

In frontend, change put request path to PUT: /api/company and send company id in the response boy

Modified the put request to add id to the request body and update works great. The updates are made in the frontendv4 branch


code:Added solution for Q.1512 in Java

Pull Request Template
What have you Changed(must)
Added Code for Q.1512 in Java
Write here what you have changed in the codebase
Issue no.(must) - #1097
Pr will be close and marked as spam. If issue number not found or issue was assigned to someone else.
Marking as spam can block your account from HacktoberFest.
Self Check(Tick After Making pull Request)

[x] This issue was assigned to me if not it will be marked as spam.
[x] My file is in the proper folder
[x] I am following clean code and Documentation.
[x] I have added the title and what program will do first in the file
[x] I have named the file as (Problem #). (Problem Title(in Camel Case)).(extension)
ex. 2. AddToNumbers.py

README - How to Contribute

@SSKale1 @Yashica7 @swaingotnochill  @JOKUE2002 Please feel free to merge this :)

@SSKale1 @Yashica7 @swaingotnochill @JOKUE2002 Please feel free to merge this :)


I need this on MacOS

Problem
How to run this program on macos :(
Suggestion(s)
Add MacOS support, please
Additional notes
No response

Have you tried to build from source?
https://github.com/DevilXD/TwitchDropsMiner/wiki/Setting-up-the-environment,-building-and-running

Have you tried to build from source? I can help you it you get stuck https://github.com/DevilXD/TwitchDropsMiner/wiki/Setting-up-the-environment,-building-and-running

I tried but, .bat file's don't open on macos. May be If you could describe to me step by step what needs to be done, I would be very grateful

Oops, I thought there was files for Linux/macOS.
I am using Windows but try something like this:

Install Python
Download the project from GitHub
2.1. You can download the project as a zip file from the GitHub page or clone it using Git
2.2. If you download the project as a zip file, extract it to a folder
Open the terminal and navigate to the project folder
2.1. For example: cd /path/to/project
2.2. You can use tab completion to autocomplete the path by typing the first few letters of the folder name and pressing the Tab key
2.3. You can use the ls command to list the files and folders in the current directory to verify that you are in the correct folder
Run the following command to install the dependencies:
3.1. python3 -m venv env
3.2. source env/bin/activate
3.3. pip install --upgrade pip
3.4. pip install wheel
3.5. pip install -r requirements.txt
You only need to do this once, after that you can just run the project
4.1. python main.py
4.2. You may need to run python main.py & if you don't want the terminal to visible when the program is running

4. ip install -r requirements.txt

Traceback (most recent call last):
File "/Users/slorry/Downloads/TwitchDropsMiner-updated-master/main.py", line 198, in
asyncio.run(main())
File "/Library/Frameworks/Python.framework/Versions/3.12/lib/python3.12/asyncio/runners.py", line 194, in run
return runner.run(main)
^^^^^^^^^^^^^^^^
File "/Library/Frameworks/Python.framework/Versions/3.12/lib/python3.12/asyncio/runners.py", line 118, in run
return self._loop.run_until_complete(task)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/Library/Frameworks/Python.framework/Versions/3.12/lib/python3.12/asyncio/base_events.py", line 687, in run_until_complete
return future.result()
^^^^^^^^^^^^^^^
File "/Users/slorry/Downloads/TwitchDropsMiner-updated-master/main.py", line 154, in main
client = Twitch(settings)
^^^^^^^^^^^^^^^^
File "/Users/slorry/Downloads/TwitchDropsMiner-updated-master/twitch.py", line 630, in init
self.gui = GUIManager(self)
^^^^^^^^^^^^^^^^
File "/Users/slorry/Downloads/TwitchDropsMiner-updated-master/gui.py", line 1977, in init
sublayout["children"] = sublayout["children"][0][1]["children"]
~~~~~~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^
KeyError: 'children'

Try to run pip install tk inside the terminal and run again

Try to run pip install tk inside the terminal and run python main.py

same keyerror

Then I have no idea, sorry.
You can also try to open an issue in the original repo while you wait for someone to help you in here

@SlorRy This has been suggested a while ago but never implemented. Likely because the original dev as well as me don't have macos and thus can't really develop for it.
Tho not supported and disliked by the original author, I think your usecase completely warrants it.
You can run it in docker, for now, but nothing is as permanent as a temporary solution. You'll find it on the second most starred fork (under mine).

@SlorRy This has been suggested a while ago but never implemented. Likely because the original dev as well as me don't have macos and thus can't really develop for it.
Tho not supported and disliked by the original author, I think your usecase completely warrants it.
You can run it in docker, for now, but nothing is as permanent as a temporary solution. You'll find it on the second most starred fork (under mine).

so how to run it in docker? i never us it :(

So, i finally opened it with Wine. Ty @Windows200000 & @TheLovinator1 for trying to help me :)

I want to keep this open as a unique feature request to avoid duplicates.


Missing apt keys for buster-backports

During a fresh install I was getting the following error message
TASK [Add Buster backports for fixed libseccomp2.] ************************************************************************************************* ^[fatal: [<IP_ADDRESS>]: FAILED! => {"changed": false, "msg": "Failed to update apt cache: W:GPG error: http://httpredir.debian.org/debian buster-backports InRelease: The following signatures couldn't be verified because the public key is not available: NO_PUBKEY 0E98404D386FA1D9 NO_PUBKEY 6ED0E7B82643E131, E:The repository 'http://httpredir.debian.org/debian buster-backports InRelease' is not signed."}
I manually added these keys to fix it
sudo apt-key adv --keyserver keyserver.ubuntu.com --recv-keys 0E98404D386FA1D9
sudo apt-key adv --keyserver keyserver.ubuntu.com --recv-keys 6ED0E7B82643E131

Fixed via #538


Plugin suddenly cannot build typescript files or find names unless Sublime 3 is restarted

Plugin works fine for a period of time, but after working for a while and changing/saving files, I notice all of the sudden some of my class names and other namespaces cannot be found. I can't navigate to them with F12 (GoTo) and when I try to build a file, the compiler comes back with errors saying "Cannot find name InsertSomeNameHere"
There appears to be no errors in the console once this happens.  The only way to fix the issues is to shut down SublimeText and reopen it.  After reopening Sublime, everything works as expecting and I can build all files that were open and also GoTo any name as normal.  Some random time later, this happens again and I have to shutdown and restart the editor again.

I have had the same issue for the past 3 weeks as well, having to restart sublime 3 because the path resolving will not update, and keep displaying an import as not existing. Seemingly crashed, until restart.
In some cases it even seems to stop working all together, showing no errors, when there are.

Same issue here. May I suggest a command to restart the compiler service so I don't have to close then open the sublime window.

@mxchange @alexcorvi Are either one of you using Vintageous?  I'm curious if this plugin has anything to do with Typescript messing up... Seems like it wouldn't have any bearing on the situation, but I can't figure out what is happening.

I'm not using Vintageous.
This issue occurs more frequently on large projects when I choose to show the errors list from the command platelet.

okay. that rules out that theory then...
It happens to me and I'm not using the show the errors list option when it happens. It's usually after I save a file within my project.

This happens to me frequently as well. I'm temporarily using VSCode until its resolved (though I prefer Sublime).
For maintainers, as mentioned in a few other issues on here, I too wasn't able to get logs to generate - but I can say that by monitoring  ps aux | grep typescript that when things went south, there was at least 2+ tsservers running under sublime. Restarting sublime reduced that count back to exactly one.
I'd settled for a quick tsserver restart from within sublime, but ideally fixed properly. Happy to debug, but need instructions on how to correctly activate the generation of the log files

I experienced similar issues, but once I moved away from NVM and N and installed a single version of node this issue went away.

Can confirm this is still an issue. In the course of today I've had Sublime crash like 12 times. Any word on a fix @zhengbli ?
@cjke did you get any success in fixing this problem?
In trying to fix this, I deleted the Sublime 3 folder from RoamingData (like creating a fresh install) and reinstalled all packages, but this did not fix so don't waste your time.
Running on Windows 10, Sublime build 3126.

I still see this happening, also looks like there is no active development on this repo. I started writing more typescript and this is becoming a pain point. Thanks for the plugin and please fix this ASAP.

@1-9 Maybe there is a version of the plugin that works properly we can find?
This has been such a great plugin up to now, and I don't want to switch to VSCode. It is now crashing at least 1-2 times per hour, sometimes more frequently.
Is there anyone NOT experiencing? Hit me up! I want to compare settings to diagnose more.

@shudson250 I agree this is really frustrating, I want to look into the plugin code see what could be causing this behavior. Which version of Node are you using? Do you use any version managers (nvm, n, etc..)? I notice this is happening when I open a second typescript file. I read some where it is creating a new typescript thread/instance not sure if this is the issue.

@shudson250 @1-9 can you provide a minimal repro code sample where this issue happens?
What TypeScript version / node version are you using?

@zhengbli, thanks for chiming in I am running NVM and on node v 7.8.0 (Mac OS 10.12 Seirra)
Problem - randomly I see a squiggly lines under my imports and modules I will add a screenshot once I have it and sublime can't do jump to definition etc.. Its kind of like the plugin has lost context of some modules. This happens only on custom name spaced modules and the imports from the file with actual path work fine.
I tried random things
-- reinstalling the plugin
-- move away from NVM and go to a single version of node
Appreciate your help in advance, thanks.

Thanks for the info. I assume you are using the TS version that came with the plugin? Can you share your tsconfig.json file? Previously I heard about a similar issue caused by the tsconfig.json including too many source files accidentally.

{
  "compilerOptions": {
    "target": "ES5",
    "module": "system",
    "noImplicitAny": true,
    "preserveConstEnums": true,
    "sourceMap": true,
    "experimentalDecorators": true,
    "moduleResolution": "node",
    "emitDecoratorMetadata": true,
    "removeComments": false,
    "suppressImplicitAnyIndexErrors": true,
    "baseUrl": "app",
    "pretty": true,
    "noEmitHelpers": true
  },
  "exclude": [
    "node_modules",
    "vendor",
    "build",
    "test",
    "login"
  ]
}

I think so I did not change the path to the TS server any where.

Here is the screenshot as I mentioned before

Can you check:

Are there any error messages in sublime console?
Set the environment variable TSS_LOG to be -level verbose, and use the plugin until the problem occurs, then look into the plugin folder (where the tsserver.js lives, you can find that by calling a go to definition on document and then open the containing folder of the lib.d.ts). You should find two log files looking like these:

If you do, please attach them so I can investigate what went wrong.

Thanks!

I've turned NVM off and installed Node 7.8.0. So far it seems more stable.
tsconfig:
{   "compilerOptions": {     "baseUrl": ".",     "paths": {       "*": [         "config/",         "src/app/*"         "src/app/redux/*" <-- I just removed this line after posting       ]     },     "outDir": "build",     "module": "commonjs",     "target": "es5",     "sourceMap": true,     "inlineSourceMap": false,     "inlineSources": false,     "experimentalDecorators": true,     "jsx": "react",     "moduleResolution": "node"   },   "exclude": [     "node_modules",     "build",     "typings/main",     "typings/main.d.ts"   ] }

@zhengbli I will do this tomorrow as well and get you some logging info.  I know that there is never an error in the sublime console after the problem happens.  I've been trying to find a way to log errors more verbosely, so hopefully your suggestion will help bring something to light.

@zhengbli I've emailed you logs of the crash - the black box data, if you will ;)

@zhengbli, I added TSS_LOG to my path but I still don't see the generated log files. Is anyone able to write log files on a mac?

I experience this too, every day. My inelegant workaround is to close all .ts files and then reopen them :(

So I thought I'd give VS code a shot while this is fixed (Sublime is crashing every 10 minutes). The version of VS Code I downloaded from MS immediately gave me an error when I opened my project: something to the effect of "Typescript (might have said tsserver) has started and crashed 5 times since starting VS Code and will not be restarted again."
I then clicked the Update VS Code message (wait, didn't I just download you?) and that message has not returned, so whatever fix VS Code did managed to fix tsserver!

So after reading the log files I received from @shudson250 , the server seems to be working correctly, and it is unclear why sublime would crash. Because the plugin would never crash sublime. The plugin contains two part: the node server and the python plugin which sends / receives information to the server. If the server crashes, your intellisense / formatting etcs might not work but the basic text editing would not be affected; if the python plugin crashes, sublime would print the exception info in the console, but again, the basic editing should still work, it should not crash sublime, so that is pretty strange.
To answer the question about two servers: the second instance of tsserver is started when you open the "Error list". If you don't use that feature then it should not start.
Therefore there seem to be two different issues here:

Sublime would crash sometimes for unknown reasons;
The node server would behave strangely and give unexpected errors.

It looks like most people here are hitting problem 2. It would really help if people can create a minimal repro because I do think the issue is quite subtle and I don't expect apparent exception information in the log file.

Hey @shudson250 , it might be that the TS version shipped with this plugin is an old one and the vscode one you just downloaded is a more up-to-date one the supports some of the latest feature in your code. Though that's just my guess

@zhengbli I'm not sure about the others, but for me, sublime didn't crash. I was still able to edit text and save files, but I was not able to compile typescript files or find any references until I closed SublimeText and restarted it.

@zhengbli I've set the Typescript library to point to my node_modules of the project, so it should be the same version of TS (that folder is where I grabbed the .log files from, so I can confirm it's pointing correctly)

@zhengbli, I have similar experience as @deanproxy sublime never crashed on me it feels like the Typescript plugin crashes loosing the links to custom modules with no jump to definition which is frustrating. Can you please update to latest TS version I think that should fix the issue.

@1-9 that may take some time, meanwhile you can use the latest TS by:

install it using npm

npm install typescript@latest -g

make sublime use it:
https://github.com/Microsoft/TypeScript-Sublime-Plugin#note-using-different-versions-of-typescript

Can you try and let me know if that actually solves your issue? It would help greatly

again, if anyone has a consistent repro sample, it would help greatly.

@zhengbli, when I updated typescript to latest the plugin doesn't work, I see this in my console and nothing works no autocompletion, no jump to definition its unusable.
lang_service_enabled: True
Path of tsserver.js: /.config/yarn/global/node_modules/typescript/lib/tsserver.js
Path of tsc.js: /.config/yarn/global/node_modules/typescript/lib/tsc.js
Trying to spawn node executable from: /usr/local/bin/node
ref view not found
Emmet: No need to update PyV8
Exception in thread Thread-3:
Traceback (most recent call last):
File "./python3.3/threading.py", line 901, in _bootstrap_inner
File "./python3.3/threading.py", line 858, in run
File "/Users/kotamrs/Library/Application Support/Sublime Text 3/Packages/TypeScript/typescript/libs/node_client.py", line 149, in monitorPostQueue
self.server_proc.stdin.flush()
BrokenPipeError: [Errno 32] Broken pipe

I have more success reproducing this defect when I switch between multiple user declared modules.

@zhengbli
Good news, I was able to consistently reproduce this problem with logs, looking at the logs NPM is failing to update types registry causing the plugin to crash. See the logs below.
Global cache location '/Users/kotamrs/Library/Caches/typescript', safe file path '/users/kotamrs/library/application support/sublime text 3/packages/typescript/tsserver/typingsafelist.json' Processing cache location '/Users/kotamrs/Library/Caches/typescript' Trying to find '/Users/kotamrs/Library/Caches/typescript/package.json'... Loaded content of '/Users/kotamrs/Library/Caches/typescript/package.json': {"_args":[[{"raw":"types-registry","scope":null,"escapedName":"types-registry","name":"types-registry","rawSpec":"","spec":"latest","type":"tag"},"/Users/kotamrs/Library/Caches/typescript"]],"_from":"types-registry@latest","_id":"types-registry@0.1.236","_inCache":true,"_location":"/types-registry","_npmOperationalInternal":{"host":"packages-12-west.internal.npmjs.com","tmp":"tmp/types-registry-0.1.236.tgz_1490979375448_0.3747933942358941"},"_npmUser":{"name":"types","email":"ts-npm-types@microsoft.com"},"_phantomChildren":{},"_requested":{"raw":"types-registry","scope":null,"escapedName":"types-registry","name":"types-registry","rawSpec":"","spec":"latest","type":"tag"},"_requiredBy":["#USER"],"_resolved":"https://registry.npmjs.org/types-registry/-/types-registry-0.1.236.tgz","_shasum":"7932770eebecf04e82a2fb288a8ae4ec06d5f364","_shrinkwrap":null,"_spec":"types-registry","_where":"/Users/kotamrs/Library/Caches/typescript","author":{"name":"Microsoft Corp."},"bugs":{"url":"https://github.com/Microsoft/types-publisher/issues"},"dependencies":{},"description":"A registry of TypeScript declaration file packages published within the @types scope.","devDependencies":{},"directories":{},"dist":{"shasum":"7932770eebecf04e82a2fb288a8ae4ec06d5f364","tarball":"https://registry.npmjs.org/types-registry/-/types-registry-0.1.236.tgz"},"homepage":"https://github.com/Microsoft/types-publisher#readme","keywords":["TypeScript","declaration","files","types","packages"],"license":"Apache-2.0","maintainers":[{"name":"types","email":"ts-npm-types@microsoft.com"},{"name":"typescript","email":"typescript@microsoft.com"}],"name":"types-registry","optionalDependencies":{},"readme":"ERROR: No README data found!","repository":{"type":"git","url":"git+https://github.com/Microsoft/types-publisher.git"},"version":"0.1.236"} Finished processing cache location '/Users/kotamrs/Library/Caches/typescript' Process id: 13352 Npm config file: /Users/kotamrs/Library/Caches/typescript/package.json Updating types-registry npm package... Error updating types-registry package: Command failed: "/Users/kotamrs/.nvm/versions/node/v7.8.0/bin/npm" install types-registry
Beginning
Info 0    Binding... Info 1    request: {"seq": 1, "command": "configure", "arguments": {"file": null, "hostInfo": "Sublime Text version 3125", "formatOptions": {"tabSize": 2, "indentSize": 2, "convertTabsToSpaces": true}}, "type": "request"} Info 2    Host information Sublime Text version 3125 Info 3    Format host information updated Info 4    response: {"seq":0,"type":"response","command":"configure","request_seq":1,"success":true} Perf 5    1::configure: async elapsed time (in milliseconds) 1.3184 Info 6    request: {"seq": 2, "command": "open", "arguments": {"file":
ENDING
app/time/ts/spec-helpers/labor-accounts-helper/labor-accounts-helper.ts,/Users/kotamrs/Desktop/sk/sk-projects/sk-work/bpo_redbox_spa/redbox_angular/app/time/ts/spec-helpers/meta-helper/crew-meta-helper.ts,/Users/kotamrs/Desktop/sk/sk-projects/sk-work/bpo_redbox_spa/redbox_angular/app/time/ts/spec-helpers/meta-helper/timecard-meta-helper.ts,/Users/kotamrs/Desktop/sk/sk-projects/sk-work/bpo_redbox_spa/redbox_angular/app/time/ts/spec-helpers/spec-helpers.ts,/Users/kotamrs/Desktop/sk/sk-projects/sk-work/bpo_redbox_spa/redbox_angular/app/time/ts/spec-helpers/timecard-api-helper/timecard-api-helper.ts,/Users/kotamrs/Desktop/sk/sk-projects/sk-work/bpo_redbox_spa/redbox_angular/app/time/ts/spec-helpers/timecard-helper/home-account-helper.ts,/Users/kotamrs/Desktop/sk/sk-projects/sk-work/bpo_redbox_spa/redbox_angular/app/time/ts/spec-helpers/timecard-helper/timecard-helper.ts,/Users/kotamrs/Desktop/sk/sk-projects/sk-work/bpo_redbox_spa/redbox_angular/app/time/ts/spec-helpers/timecard-initialization-helper/timecard-initialization-helper.ts,/Users/kotamrs/Desktop/sk/sk-projects/sk-work/bpo_redbox_spa/redbox_angular/app/time/ts/spec-helpers/timecard-meta-api-helper/timecard-meta-api-helper.ts,/Users/kotamrs/Desktop/sk/sk-projects/sk-work/bpo_redbox_spa/redbox_angular/app/time/ts/spec-helpers/timesheet-helper/timesheet-helper.ts,/Users/kotamrs/Desktop/sk/sk-projects/sk-work/bpo_redbox_spa/redbox_angular/app/time/ts/time.ts,/Users/kotamrs/Desktop/sk/sk-projects/sk-work/bpo_redbox_spa/redbox_angular/app/ts/app.ts,/Users/kotamrs/Desktop/sk/sk-projects/sk-work/bpo_redbox_spa/redbox_angular/typings/globals/moment/index.d.ts,/Users/kotamrs/Desktop/sk/sk-projects/sk-work/bpo_redbox_spa/redbox_angular/typings/index.d.ts Info 43   Open files:  Perf 44   12::close: async elapsed time (in milliseconds) 35.2257 Err 45    Exception on executing command unknown: This socket is closed Error: This socket is closed     at Socket._writeGeneric (net.js:691:19)     at Socket._write (net.js:742:8)     at doWrite (_stream_writable.js:329:12)     at writeOrBuffer (_stream_writable.js:315:5)     at Socket.Writable.write (_stream_writable.js:241:11)     at Socket.write (net.js:669:40)     at writeMessage (/Users/kotamrs/Library/Application Support/Sublime Text 3/Packages/TypeScript/tsserver/tsserver.js:69933:32)     at setCanWriteFlagAndWriteMessageIfNecessary (/Users/kotamrs/Library/Application Support/Sublime Text 3/Packages/TypeScript/tsserver/tsserver.js:69939:17)     at _combinedTickCallback (internal/process/next_tick.js:77:11)     at process._tickCallback (internal/process/next_tick.js:104:9) Info 46   Exiting...

I think I found the problem
The folder structure of my project is
-- module A
-- module B
when I first open Sublime with a file opened from module A it loads all the
dependencies for module A and everything works great (it doesn't load module B), when I navigate to a
module B file using (using file navigation CMD + P), I see from the logs typescript plugin/compiler
removes the module A related files and dependencies and loads module B, at this point module B works great
now when I switch back to my file from module A that is when the plugin crashes
because the dependencies are not being reloaded at this point
This is how I was able to consistently reproduce the crash

@1-9 very awesome and helpful! Thanks a ton for the work!
Just to be more clear, do you have tsconfig.json in each module folder, or do you have one tsconfig.json sits in the parent folder of "moduleA" and "moduleB"?

@zhengbli - nice thought process

only one tsconfig.json and it is in a parent folder one level above modules

-- tsconfig.json
-- app
-- module A
-- module B

no I left the files from moduleA open then navigate to moduleB

yes moduleA imports things from moduleB as needed and vice-versa

@1-9 Thanks, I think I got a repro locally. Digging into it now.

@zhengbli, cool.

local.zip
Hey everyone,
Can you test the fix in "local.zip"? You will need to unzip the file and replace the files in the "tsserver" folder in your plugin path. Thanks!

I tried with the updated tsserver files but the issue still persists

@1-9 Hmmm that seemed fixed my local repro. I've updated with some additional check, do you have time to try again? (local2.zip) Sorry for the hassle

@zhengbli, I tried with local2.zip the issue is still there, yeah I don't have any setting for typescript_tsdk

Oh I never saw this error. My fix is for the errors randomly show up that appears to lose the tsconfig.json settings.
So this just keeps getting more interesting ... now we have three issues in this thread.

@zhengbli this is what I see in the log
Info 32   Open files:
Perf 33   7::close: async elapsed time (in milliseconds) 28.4924
Err 34    Exception on executing command unknown:
This socket is closed
Error: This socket is closed
    at Socket._writeGeneric (net.js:691:19)
    at Socket._write (net.js:742:8)
    at doWrite (_stream_writable.js:329:12)
    at writeOrBuffer (_stream_writable.js:315:5)
    at Socket.Writable.write (_stream_writable.js:241:11)
    at Socket.write (net.js:669:40)
    at writeMessage (/Users/kotamrs/Library/Application Support/Sublime Text 3/Packages/TypeScript/tsserver/tsserver.js:93837:32)
    at setCanWriteFlagAndWriteMessageIfNecessary (/Users/kotamrs/Library/Application Support/Sublime Text 3/Packages/TypeScript/tsserver/tsserver.js:93843:17)
    at _combinedTickCallback (internal/process/next_tick.js:77:11)
    at process._tickCallback (internal/process/next_tick.js:104:9)
Err 35    Exception on executing command unknown:
This socket is closed
Error: This socket is closed
    at Socket._writeGeneric (net.js:691:19)
    at Socket._write (net.js:742:8)
    at doWrite (_stream_writable.js:329:12)
    at writeOrBuffer (_stream_writable.js:315:5)
    at Socket.Writable.write (_stream_writable.js:241:11)
    at Socket.write (net.js:669:40)
    at writeMessage (/Users/kotamrs/Library/Application Support/Sublime Text 3/Packages/TypeScript/tsserver/tsserver.js:93837:32)
    at setCanWriteFlagAndWriteMessageIfNecessary (/Users/kotamrs/Library/Application Support/Sublime Text 3/Packages/TypeScript/tsserver/tsserver.js:93843:17)
    at _combinedTickCallback (internal/process/next_tick.js:77:11)
    at process._tickCallback (internal/process/next_tick.js:104:9)
Info 36   Exiting...

@zhengbli  it looks like it is still removing the project


Update Jenkins CI to build ARM image.

Since Docker Hub doesn't support building ARM images, I am adding logic to the Jenkins CI build one.

Fixes #163.
@bernd I have written this so that it could replace the Docker Hub build in the future, if we ever needed it to. Currently, it mimicks the Docker Hub build tag system, but appends arm64 to the end. If we were to add amd64 to the --platform arg and change the tags, it should work the same. It would then display our supported platforms on the image in the Docker Hub UI.
But for now, it is a separate deployment that only does arm64. We will see how stable it is over time.
TODO:

[ ] Update Jenkins config to auto-build tags for this repo.
[ ] Add credentials so that the push succeeds.


Error during deployment on web app (Microsoft Web Deploy is not correctly installed)

I get the following error when trying to deploy to a web app from a git repository:
`"D:\home\site\repository\WebProject\Web\Web.csproj" (default target) (1) ->
(CheckAndCleanMSDeployPackageIfNeeded target) ->
D:\Program Files (x86)\MSBuild-15.3.409.57025\MSBuild\Microsoft\VisualStudio\v15.0\Web\Microsoft.Web.Publishing.targets(3758,5): error : Package/Publish task Microsoft.Web.Publishing.Tasks.IsCleanMSDeployPackageNeeded failed to load Web Deploy assemblies. Microsoft Web Deploy is not correctly installed on this machine. Microsoft Web Deploy v3 or higher is recommended. [D:\home\site\repository\WebProject\Web\Web.csproj]
14 Warning(s)
1 Error(s)

Time Elapsed 00:02:12.18
Failed exitCode=1, command="D:\Program Files (x86)\MSBuild-15.3.409.57025\MSBuild\15.0\Bin\MSBuild.exe" "D:\home\site\repository\WebProject/Web/Web.csproj" /p:DeployOnBuild=true /p:configuration=Release /p:publishurl="D:\local\Temp\8d5c1ffefcef5cf"
An error has occurred during web site deployment.
\r\nD:\Program Files (x86)\SiteExtensions\Kudu\73.10510.3399\bin\Scripts\starter.cmd deploy.cmd`
When i deploy from Visual Studio 2017 everything works.
For the deployment from the repository i am using this script:
https://github.com/projectkudu/KuduScript/blob/master/lib/templates/deploy.batch.aspnet.wap.template

Can you share the content of your Web.csproj? Or better yet, if you can minimize the repro, can you share a repo that demonstrates the issue, per these instructions? Thanks!

@omgjust thanks!
/cc @watashiSHUN & @vijayrkn

looking at your deploy.cmd:

you are using the template for deploying function app, not web app. And different apps should be built with different msbuild arguments, I submitted a pull request as a fix: https://github.com/omgjust/AzureDeploymentExample/pull/1
I can understand this mistake since function app is the one of the few default template that uses msbuild15 but soon you should be able to toggle msbuild version with a simple app setting: https://github.com/projectkudu/KuduScript/pull/95/commits/3bd6f7bc730bbebab7614f7ce73109c954247448

Thank you for your help. It works fine with the new script.


how to modify “admin” name?

what do you mean by "admin' name ? User "openldap" that container runs as ?

what do you mean by "admin' name ? User "openldap" that container runs as ?

yes,docker container running.
change admin user name

You can not


make generate removes PatchScale func

For some reason the generation is removing such func from client/camel/clientset/versioned/typed/camel/v1/integration.go. Also from related fake_integration.go

This one is a regression introduced by: https://github.com/apache/camel-k/commit/69ded0727210195e9250b9b81839490ea50e4de6 The change is good, but we need this to be autogenerated as those resources are regenerated via make generate every time we run it.

fyi @phantomjinx @tadayosi


WebSocket server sync example  build error with MSVC 2017  and Boost 1.75

I am using following constellation:
Boost: 1.75.0
BOOST_BEAST_VERSION 306
Visual Studio 2017 15.3.5, Microsoft (R) C/C++ Optimizing Compiler Version 19.11.25508.2 for x64
I have succesfully built boost and also succesfully created all the solution files for beast examples.
When I try to build "websocket-server-sync" project I get the following errors:
... 3>C:\drive_d\programming\projects\cpp\3rdparty\boost_1_75_0\boost/beast/core/buffer_traits.hpp(123): error C2668: 'boost::asio::buffer_sequence_begin': ambiguous call to overloaded function ... 3>C:\drive_d\programming\projects\cpp\3rdparty\boost_1_75_0\boost/beast/core/impl/buffers_cat.hpp(127): error C3546: '...': there are no parameter packs available to expand ...
Here is the whole output of build:
1>------ Rebuild All started: Project: ZERO_CHECK, Configuration: Debug x64 ------ 1>Checking Build System 2>------ Rebuild All started: Project: lib-asio, Configuration: Debug x64 ------ 2>Building Custom Rule C:/drive_d/programming/projects/cpp/3rdparty/boost_1_75_0/libs/beast/CMakeLists.txt 2>lib_asio.cpp 2>lib-asio.vcxproj -> C:\drive_d\programming\projects\cpp\3rdparty\boost_1_75_0\libs\beast\build\Debug\lib-asio.lib 3>------ Rebuild All started: Project: lib-beast, Configuration: Debug x64 ------ 3>Building Custom Rule C:/drive_d/programming/projects/cpp/3rdparty/boost_1_75_0/libs/beast/CMakeLists.txt 3>lib_beast.cpp 3>C:\drive_d\programming\projects\cpp\3rdparty\boost_1_75_0\boost/beast/core/buffer_traits.hpp(123): error C2668: 'boost::asio::buffer_sequence_begin': ambiguous call to overloaded function 3>C:\drive_d\programming\projects\cpp\3rdparty\boost_1_75_0\boost/asio/buffer.hpp(399): note: could be 'const boost::asio::const_buffer *boost::asio::buffer_sequence_begin<add_rvalue_reference<_Ty>::type>(const ConstBuffer &,enable_if<std::is_convertible<const add_rvalue_reference<_Ty>::type*,const boost::asio::const_buffer*>::value,void>::type *) noexcept' 3>        with 3>        [ 3>            _Ty=const unknown-type &, 3>            ConstBuffer=add_rvalue_reference<const unknown-type&>::type 3>        ] 3>C:\drive_d\programming\projects\cpp\3rdparty\boost_1_75_0\boost/asio/buffer.hpp(389): note: or       'const boost::asio::mutable_buffer *boost::asio::buffer_sequence_begin<add_rvalue_reference<_Ty>::type>(const MutableBuffer &,enable_if<std::is_convertible<const add_rvalue_reference<_Ty>::type*,const boost::asio::mutable_buffer*>::value,void>::type *) noexcept' 3>        with 3>        [ 3>            _Ty=const unknown-type &, 3>            MutableBuffer=add_rvalue_reference<const unknown-type&>::type 3>        ] 3>C:\drive_d\programming\projects\cpp\3rdparty\boost_1_75_0\boost/beast/core/buffer_traits.hpp(123): note: while trying to match the argument list '(add_rvalue_reference<_Ty>::type)' 3>        with 3>        [ 3>            _Ty=const unknown-type & 3>        ] 3>C:\drive_d\programming\projects\cpp\3rdparty\boost_1_75_0\boost/beast/core/impl/buffers_cat.hpp(127): note: see reference to alias template instantiation 'buffers_iterator_type<unknown-type>' being compiled 3>C:\drive_d\programming\projects\cpp\3rdparty\boost_1_75_0\boost/beast/http/chunk_encode.hpp(251): note: see reference to class template instantiation 'boost::beast::buffers_cat_view<boost::beast::http::detail::chunk_size,boost::asio::const_buffer,boost::beast::http::chunk_crlf>::const_iterator' being compiled 3>C:\drive_d\programming\projects\cpp\3rdparty\boost_1_75_0\boost/asio/execution/relationship.hpp(474): note: see reference to class template instantiation 'boost::asio::execution::detail::relationship_t<0>' being compiled 3>C:\drive_d\programming\projects\cpp\3rdparty\boost_1_75_0\boost/asio/execution/outstanding_work.hpp(475): note: see reference to class template instantiation 'boost::asio::execution::detail::outstanding_work_t<0>' being compiled 3>C:\drive_d\programming\projects\cpp\3rdparty\boost_1_75_0\boost/asio/execution/occupancy.hpp(123): note: see reference to class template instantiation 'boost::asio::execution::detail::occupancy_t<0>' being compiled 3>C:\drive_d\programming\projects\cpp\3rdparty\boost_1_75_0\boost/asio/execution/mapping.hpp(604): note: see reference to class template instantiation 'boost::asio::execution::detail::mapping_t<0>' being compiled 3>C:\drive_d\programming\projects\cpp\3rdparty\boost_1_75_0\boost/asio/execution/context.hpp(130): note: see reference to class template instantiation 'boost::asio::execution::detail::context_t<0>' being compiled 3>C:\drive_d\programming\projects\cpp\3rdparty\boost_1_75_0\boost/asio/execution/bulk_guarantee.hpp(687): note: see reference to class template instantiation 'boost::asio::execution::detail::bulk_guarantee_t<0>' being compiled 3>C:\drive_d\programming\projects\cpp\3rdparty\boost_1_75_0\boost/asio/execution/blocking_adaptation.hpp(663): note: see reference to class template instantiation 'boost::asio::execution::detail::blocking_adaptation_t<0>' being compiled 3>C:\drive_d\programming\projects\cpp\3rdparty\boost_1_75_0\boost/asio/execution/blocking.hpp(836): note: see reference to class template instantiation 'boost::asio::execution::detail::blocking_t<0>' being compiled 3>C:\drive_d\programming\projects\cpp\3rdparty\boost_1_75_0\boost/beast/core/impl/buffers_cat.hpp(127): error C3546: '...': there are no parameter packs available to expand 3>Done building project "lib-beast.vcxproj" -- FAILED. 4>------ Rebuild All started: Project: websocket-server-sync, Configuration: Debug x64 ------ 4>Building Custom Rule C:/drive_d/programming/projects/cpp/3rdparty/boost_1_75_0/libs/beast/example/websocket/server/sync/CMakeLists.txt 4>websocket_server_sync.cpp 4>C:\drive_d\programming\projects\cpp\3rdparty\boost_1_75_0\boost/beast/core/buffer_traits.hpp(123): error C2668: 'boost::asio::buffer_sequence_begin': ambiguous call to overloaded function 4>C:\drive_d\programming\projects\cpp\3rdparty\boost_1_75_0\boost/asio/buffer.hpp(399): note: could be 'const boost::asio::const_buffer *boost::asio::buffer_sequence_begin<add_rvalue_reference<_Ty>::type>(const ConstBuffer &,enable_if<std::is_convertible<const add_rvalue_reference<_Ty>::type*,const boost::asio::const_buffer*>::value,void>::type *) noexcept' 4>        with 4>        [ 4>            _Ty=const unknown-type &, 4>            ConstBuffer=add_rvalue_reference<const unknown-type&>::type 4>        ] 4>C:\drive_d\programming\projects\cpp\3rdparty\boost_1_75_0\boost/asio/buffer.hpp(389): note: or       'const boost::asio::mutable_buffer *boost::asio::buffer_sequence_begin<add_rvalue_reference<_Ty>::type>(const MutableBuffer &,enable_if<std::is_convertible<const add_rvalue_reference<_Ty>::type*,const boost::asio::mutable_buffer*>::value,void>::type *) noexcept' 4>        with 4>        [ 4>            _Ty=const unknown-type &, 4>            MutableBuffer=add_rvalue_reference<const unknown-type&>::type 4>        ] 4>C:\drive_d\programming\projects\cpp\3rdparty\boost_1_75_0\boost/beast/core/buffer_traits.hpp(123): note: while trying to match the argument list '(add_rvalue_reference<_Ty>::type)' 4>        with 4>        [ 4>            _Ty=const unknown-type & 4>        ] 4>C:\drive_d\programming\projects\cpp\3rdparty\boost_1_75_0\boost/beast/core/impl/buffers_cat.hpp(127): note: see reference to alias template instantiation 'buffers_iterator_type<unknown-type>' being compiled 4>C:\drive_d\programming\projects\cpp\3rdparty\boost_1_75_0\boost/beast/http/chunk_encode.hpp(251): note: see reference to class template instantiation 'boost::beast::buffers_cat_view<boost::beast::http::detail::chunk_size,boost::asio::const_buffer,boost::beast::http::chunk_crlf>::const_iterator' being compiled 4>C:\drive_d\programming\projects\cpp\3rdparty\boost_1_75_0\boost/asio/execution/relationship.hpp(474): note: see reference to class template instantiation 'boost::asio::execution::detail::relationship_t<0>' being compiled 4>C:\drive_d\programming\projects\cpp\3rdparty\boost_1_75_0\boost/asio/execution/outstanding_work.hpp(475): note: see reference to class template instantiation 'boost::asio::execution::detail::outstanding_work_t<0>' being compiled 4>C:\drive_d\programming\projects\cpp\3rdparty\boost_1_75_0\boost/asio/execution/occupancy.hpp(123): note: see reference to class template instantiation 'boost::asio::execution::detail::occupancy_t<0>' being compiled 4>C:\drive_d\programming\projects\cpp\3rdparty\boost_1_75_0\boost/asio/execution/mapping.hpp(604): note: see reference to class template instantiation 'boost::asio::execution::detail::mapping_t<0>' being compiled 4>C:\drive_d\programming\projects\cpp\3rdparty\boost_1_75_0\boost/asio/execution/context.hpp(130): note: see reference to class template instantiation 'boost::asio::execution::detail::context_t<0>' being compiled 4>C:\drive_d\programming\projects\cpp\3rdparty\boost_1_75_0\boost/asio/execution/bulk_guarantee.hpp(687): note: see reference to class template instantiation 'boost::asio::execution::detail::bulk_guarantee_t<0>' being compiled 4>C:\drive_d\programming\projects\cpp\3rdparty\boost_1_75_0\boost/asio/execution/blocking_adaptation.hpp(663): note: see reference to class template instantiation 'boost::asio::execution::detail::blocking_adaptation_t<0>' being compiled 4>C:\drive_d\programming\projects\cpp\3rdparty\boost_1_75_0\boost/asio/execution/blocking.hpp(836): note: see reference to class template instantiation 'boost::asio::execution::detail::blocking_t<0>' being compiled 4>C:\drive_d\programming\projects\cpp\3rdparty\boost_1_75_0\boost/beast/core/impl/buffers_cat.hpp(127): error C3546: '...': there are no parameter packs available to expand 4>C:\drive_d\programming\projects\cpp\3rdparty\boost_1_75_0\boost/beast/http/parser.hpp(56): error C2338: BodyReader type requirements not met 4>C:\drive_d\programming\projects\cpp\3rdparty\boost_1_75_0\boost/beast/websocket/impl/handshake.hpp(48): note: see reference to class template instantiation 'boost::beast::http::parser<false,boost::beast::http::basic_string_body<char,std::char_traits<char>,std::allocator<char>>,std::allocator<char>>' being compiled 4>C:\drive_d\programming\projects\cpp\3rdparty\boost_1_75_0\boost/beast/websocket/impl/handshake.hpp(56): note: see reference to class template instantiation 'boost::beast::websocket::stream<NextLayer,deflateSupported>::handshake_op<Handler>::data' being compiled 4>C:\drive_d\programming\projects\cpp\3rdparty\boost_1_75_0\boost/beast/websocket/impl/handshake.hpp(185): note: see reference to class template instantiation 'boost::beast::websocket::stream<NextLayer,deflateSupported>::handshake_op<Handler>' being compiled 4>Done building project "websocket-server-sync.vcxproj" -- FAILED. ========== Rebuild All: 2 succeeded, 2 failed, 0 skipped ==========
P.S.: I have also tried this with Boost 1.74.0 and I get the same errors.
Is this known issue with the MSVS 2017 and I should use MSVS 2019?

Oh boy.
If you can, please do move to MSCV2019. It's a lot more reliable.
I have reported bugs in MSVC2017 to Microsoft but they have responded to the effect that they won't fix them and advise upgrading the compiler.
In this paritcualr case, we had to jump through a lot of hoops to get this code to compile on a number of older MSVC compilers.
If upgrading is a problem, let me know and I'll devote some time to helping you.

Oh boy.
If you can, please do move to MSCV2019. It's a lot more reliable.
I have reported bugs in MSVC2017 to Microsoft but they have responded to the effect that they won't fix them and advise upgrading the compiler.
In this paritcualr case, we had to jump through a lot of hoops to get this code to compile on a number of older MSVC compilers.
If upgrading is a problem, let me know and I'll devote some time to helping you.

You are my savior 🙏 👍💪. You saved from going mad from wondering what have I done wrong. I also have put the question on Stackoverflow 🤔. I will put a link into the answer for anybody else to know about this stuff. In the meantime I have also tried to compile this on MSVS 2019 and it works like a charm 👍. On my company laptop I can have only MSVS 2017 and wanted to try to compile it there and it did not work. No problem. I will use MSVS 2019 on my personal computer.
You do not need to do anything regarding this issue.
Thanks again for fast reply.

You are my savior 🙏 👍💪. You saved from going mad from wondering what have I done wrong. I also have put the question on Stackoverflow 🤔. I will put a link into the answer for anybody else to know about this stuff. In the meantime I have also tried to compile this on MSVS 2019 and it works like a charm 👍. On my company laptop I can have only MSVS 2017 and wanted to try to compile it there and it did not work. No problem. I will use MSVS 2019 on my personal computer.
You do not need to do anything regarding this issue.
Thanks again for fast reply.

@madmongo1 Just for information, I have added answer to my question on Stackoverflow (link here). If you wish that I change something in the answer please let me know.

@madmongo1 Just for information, I have added answer to my question on Stackoverflow (link here). If you wish that I change something in the answer please let me know.

Beast should support the latest Visual Studio 2017. But it looks like you're using an older version.

Beast should support the latest Visual Studio 2017. But it looks like you're using an older version.

19.11.25508.2 is an old version; my VS2017 reports 19.16.27045.

19.11.25508.2 is an old version; my VS2017 reports 19.16.27045.

@vinniefalco, @pdimov  Yes you are right I am using an old version of MSVS 2017 and I can not upgrade it because it is being controlled by our company.  I was just desperate because I thought that I did something wrong in the build process and I did not know what. You do not need to worry about it.
Thanks for taking time for answers.

@vinniefalco, @pdimov  Yes you are right I am using an old version of MSVS 2017 and I can not upgrade it because it is being controlled by our company.  I was just desperate because I thought that I did something wrong in the build process and I did not know what. You do not need to worry about it.
Thanks for taking time for answers.

@ales-kunst Im using MSVS 2022 and im having this issue only with boost/beast as you can see in print, can you help me plz?

@ales-kunst Im using MSVS 2022 and im having this issue only with boost/beast as you can see in print, can you help me plz?

Hi @victorvadl ,
Sorry for my late response. I think that you did not set include path to boost Beast library correctly inside your MSVS correctly.
Cheers,
Ales


Support for language specific iterators

:rocket: Feature Request
Affected Languages

[ ] TypeScript or Javascript
[X] Python
[X] Java
[X] .NET (C#, F#, ...)

General Information

JSII Version: j1.0.0 (build eb2db9d), typescript 3.7.5

Platform: Linux penguin 4.19.79-07511-ge32b3719f26b #1 SMP PREEMPT Mon Nov 18 17:41:41 PST 2019 x86_64 GNU/Linux (UNIX)

[X] I may be able to implement this feature request

[ ] This feature might incur a breaking change

Description
I would like for JSII to be able to translate Typescript Iterators into a language proxy that calls into the JSII runtime for more information via next and hasNext equivalents. This will allow language specific code to wrap those iterator proxies with lazy loading techniques for pulling large datasets from the child process. For where it matters, the generics rule can still apply to languages that support generics in the same way Array is supported.
Note: There is totally a workaround that exists for this. Nothing is stopping the JSII library owner to vend an "IteratorLike" object that can be translated by language specific modules. This request proposes that JSII should own that translation.
Proposed Solution
I may define an iterator like this:
class ThingIterator implements Iterator<Thing> {
    next() {
        return { next: this.fetchedThing(), done: this.sDone() };
    }
}

The JSII code generators will generate a proxy ThingIterator that implements the correct language specific iterator, but calls into the JSII runtime to invoke the next method to determine if it can be terminated.
I'm hand-waving a fair amount of details here, and I don't even know if such a thing is even possible today. That said: I'm totally willing to spend some spare cycles getting my hands dirty implementing this.
Thanks!

That's an interesting request! I'm not sure we'll be able to attend to it shortly, but I am interested in the general pattern. There are definitely other interesting things to be able to re-model across, such as Set<T>. I had never thought about Iterator<T> (and maybe Iterable<T>?), but that certainly sounds like something that could be useful.

Awesome! Thanks for taking a look!


Whitelist type is not working as expected

Given the following code:
struct Test {};
extern "C" void Servo_Test(Test* a);

with command cargo run -- test.hpp --no-unstable-rust --whitelist-function 'Servo_.*' -- -x c++ -std=c++14, rust-bindgen generates:
#[repr(C)]
#[derive(Debug, Copy)]
pub struct Test {
    pub _address: u8,
}
#[test]
fn bindgen_test_layout_Test() {
    assert_eq!(::std::mem::size_of::<Test>() , 1usize);
    assert_eq!(::std::mem::align_of::<Test>() , 1usize);
}
impl Clone for Test {
    fn clone(&self) -> Self { *self }
}
extern "C" {
    pub fn Servo_Test(a: *mut Test);
}

I think the struct Test is not supposed to be there, as it is not whitelisted.
We rely on this for bindings.rs since otherwise it would have lots of overlap types with structs.

This is expected, since Test is in the signature of Servo_Test. The solution to that is blacklist Test.

I guess that solution works, although probably the behavior is different from before. I guess it is better there is some document describes the interaction between whitelist and blacklist.

Yes, that changed in https://github.com/servo/rust-bindgen/commit/bd29a7a86ec9b7a2666fe290da940e319e71b008, in general I don't think that was expected to work, but yeah, a few more docs will help.


[Workflow] Try to add github workflow

Try add test_infrastructure. Add tests via:

Add test in CMakeLists under test_infrastructure folder.
Add a test python script under test_infrastructure folder.
Add some testcases maybe.

Something more

lli we install via github needs "-opaque-pointers", so there maybe some problems when test locally.
Some tests are BAD TEST. With no input and output. Maybe we need to find more testcases.


Fix number of OLS-6 projects & add OLS-7 projects

This PR addresses issue #558.
Past behaviour:
A bug messed with the count for OLS-6 projects.

Current behaviour:
The correct number of project is being displayed.

@bebatut Please review when you can. Thanks!

The fix looks good. Could you prepare for OLS-7 everywhere in the page? Like the counts on the top, but also in the sections below when the numbers are displayed. Thanks

Sure. I'll do that now...


Add links to new team mailbox

What is the context of this PR?

Updated the mailto links in the 'propose a change/new feature' pages to use the new team inbox
Added a 'support' section to the homepage with same mailto link
Added a link to the brand guidelines to footer
Updated the email address in the new feature request gitHub template

How to review

Check the documentation and mail to links
Check the GitHub new feature request template

 Add links to new team mailbox


feat(remix-architect): support API gateway v1

Closes: #2696

[ ] Docs
[x] Tests

Testing Strategy:
added jest tests for...

the new parts (v1-test.ts and server-test.ts)
moved existing tests to logical location (v2-test.ts and server-test.ts)

Just a proposal to get this started. I need API Gateway V1 integration because it supports features we need that are not available in v2

sweet! from first glance i love it - I'll take a more in depth look in a few minutes :)

do you have an example repo of this? I'm not having much luck using arc.codes with it, but i could be doing something wrong.

do you have an example repo of this? I'm not having much luck using arc.codes with it, but i could be doing something wrong.

Thanks for reviewing!
I was a bit behind on dev so this PR was indeed broken, my bad. I updated this PR again, I don't use architect but I've tested it with the grunge stack which uses remix-architect and I have it running here in a separate temp branch 👉  wingleung/remix/pull/1 could you try again?
sidenote, we use sam cli as local dev tool and a custom pipeline on jenkins to deploy our stack.

@mcansh any idea when this one can be merge? I'm using a custom build now but it's getting a little harder to keep everything up to date 😅 let me know if you want more info

sorry @wingleung! this keeps getting lost in my sea of tabs - gonna give it another look over and re-verify it's something we want first party support for.
I've also haven't been able to run an example thus far, but I'll try again today

Appreciate the work here. It's difficult for us to know all of the different deployment targets well and don't want to be in people's way like this. I personally barely knew enough to make this adapter in the first place and to now support two versions of API Gateway is stretching us even farther.
We had to ship with a few "first party" adapters ourselves (because who cares about a new javascript framework?) but the design of Remix is that you can make your own adapter. Long term the adapters should be maintained by the community and the hosts.
What if you made your own API Gateway adapter instead? Then more people can deploy to it w/o needing Architect?

@ryanflorence thanks for the insight on the long term strategy here, I definitely understand you want to focus on the core of Remix. And I have no problem splitting this into a separate community project in a leaner form without architect or move it into an /examples folder with other example integrations like you guys do in Remix, I'll get it up and running in the next few days and update this PR and https://github.com/remix-run/remix/discussions/2696
keep you posted!

@ryanflorence thanks for the insight on the long term strategy here, I definitely understand you want to focus on the core of Remix. And I have no problem splitting this into a separate community project in a leaner form without architect or move it into an /examples folder with other example integrations like you guys do in Remix, I'll get it up and running in the next few days and update this PR and #2696
keep you posted!

Let me know how you get along with this! I'd be happy to chip in. Def an interesting problem, especially since there's arguably three relevant payload and response formats: API Gateway v1 & v2, as well as ALB. I've heard rumors that there might be a new streaming response format too, which would also justify a seperate implementation. (Plus I find it personally confusing the package is named architect when it's technically compatible with Serverless, SST, or any other AWS Lambda framework.)

Plus I find it personally confusing the package is named architect when it's technically compatible with Serverless, SST, or any other AWS Lambda framework.

@RichiCoder1 We have an open issue to rename @remix-run/architect to @remix-run/aws-lambda by @shamsup for this.

Let me know how you get along with this! I'd be happy to chip in. Def an interesting problem, especially since there's arguably three relevant payload and response formats: API Gateway v1 & v2, as well as ALB. I've heard rumors that there might be a new streaming response format too, which would also justify a seperate implementation. (Plus I find it personally confusing the package is named architect when it's technically compatible with Serverless, SST, or any other AWS Lambda framework.)

@RichiCoder1 Haven't got around to separate it yet but idd the architect would be removed to keep the adapter lean. I think having a separate adapter per aws service would also keep things lean so in the ALB vs API Gateway scenario we would have

remix-aws-api-gateway
remix-aws-application-load-balancer or `remix-aws-alb``

if we would go with remix-lambda then I guess we would add support for all AWS proxies which might be too big of a scope.
The remix guys also have split their server adapters according to third party service for example the cloudflare adapters

@remix-run/cloudflare-pages
@remix-run/cloudflare-workers

Having said that, I wonder if there is any overlap in the request en response structure that an ALB and API GW requires and if AWS will keep this overlap going further 🤔
Looking at the ALB docs there is some similarities with the API GWv1 structure
So there is an advantage if all the integration code is together in a remix-aws-lambda package 😄  WDYT?

So there is an advantage when all the integration code is together in a remix-aws-lambda package 😄 WDYT?

@wingleung I don't have data to back this up, but I think the events share enough commonality and don't differ wildly enough to separate in their own packages. A converged package with event detection should be more than good enough!

@RichiCoder1 I kickstarted Remix AWS where I removed the Architect part and focused on adding support for the application load balancer.
Almost every property the ALB needs is already being used in the API Gateway v1. I've added some more info about this in the readme.
Event detection itself could be an iteration on this idd.

@kamtugeza raises a good point in https://github.com/wingleung/remix-aws/pull/2. the only thing we would want to move to another package would be the adapters. a createRequestHandler could potentially stay in remix-core, it might keep the integrations aligned in remix-core

Housekeeping! I'm going to close this for now, as it seems like the consensus is that this should be maintained as a community package outside of Remix. Feel free to ping if you feel I missed any context and we need to reconsider.


Support for recursive relations

Hi, currently I have a database model that includes a table that has a relation to itself, as a recursive relation. I don't see in the documentation something about it, the examples covers only relation between different tables.
What I did?
I designed the model as:
type Component struct {
	gorm.Model
	Name                        string `
	Active                        bool   `gorm:"column:Active"`
	Parent                      *Component
}

But this is not creating the column related with it in the database. I had to put the * to the Parent due that Go detects it as a invalid recursion.
If this hadn't been approached, what options do I have to deal with it? Thank you

+1, the same issue, no columm is created.
type Post struct {
  ID        uint      `gorm:"primary_key" json:"id"`
  Post      *Post     `json:"post" xml:"post" sql:"default:null"`
}

What is the correct apporoch to handle such cases? Thank you.

Should support this already, you just need to configure its ForeignKey


python3.pkgs.woodblock: init at 0.1.7

Motivation for this change
Things done

[x] Tested using sandboxing (nix.useSandbox on NixOS, or option sandbox in nix.conf on non-NixOS linux)
Built on platform(s)

[x] NixOS
[ ] macOS
[ ] other Linux distributions

[ ] Tested via one or more NixOS test(s) if existing and applicable for the change (look inside nixos/tests)
[ ] Tested compilation of all pkgs that depend on this change using nix-shell -p nixpkgs-review --run "nixpkgs-review wip"
[ ] Tested execution of all binary files (usually in ./result/bin/)
[ ] Determined the impact on package closure size (by running nix path-info -S before and after)
[ ] Ensured that relevant documentation is up to date
[x] Fits CONTRIBUTING.md.

Result of nixpkgs-review pr 120003 at d862230a run on x86_64-linux 1

4 packages built successfully:

python38Packages.multimethod
python38Packages.woodblock
python39Packages.multimethod
python39Packages.woodblock

2 suggestions:

warning: no-python-tests
Test runner could not discover any test cases: ‘Ran 0 tests in 0.000s’
Near pkgs/development/python-modules/multimethod/default.nix:22:0:
   |
22 |     description = "Multiple argument dispatching";
   | ^

warning: no-python-tests
Test runner could not discover any test cases: ‘Ran 0 tests in 0.000s’
Near pkgs/development/python-modules/woodblock/default.nix:24:0:
   |
24 |     description = "A framework to generate file carving test data";
   | ^


Step missing in "Run SAP HANA Studio backup on a database with Azure Backup enabled" section

Dear MS Team,
https://docs.microsoft.com/en-us/azure/backup/backup-azure-sap-hana-database guide for SAP HANA DB backup is missing a required step for catalog backup. Step required is "set catalog_backup_using_backint to False""
If this step is not added after backup is completed a "catalog backup XXXXXXXXXXXXX was not successful" error is generated and catalog was not backed up to Azure. Otherwise, backup is done locally and catalog still points to backint Azure.
Same during "revert" step - catalog back has to be set back to "True"
Thanks,
Greg

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

ID: bc202f44-d2f7-3dee-5810-ae8d14805b6f
Version Independent ID: df1d2207-594a-4341-5461-2470f7b56379
Content: Back up an SAP HANA database to Azure with Azure Backup - Azure Backup
Content Source: articles/backup/backup-azure-sap-hana-database.md
Service: backup
GitHub Login: @dcurwin
Microsoft Alias: dacurwin

#reassign:msshradhabarpute

@grzesiczek1 Thanks for the feedback! I have assigned the issue to the content author to review further and update the document as appropriate.

Hi Greg
Could you be more specific about which section of the following document - https://docs.microsoft.com/en-us/azure/backup/backup-azure-sap-hana-database you are referring to. I am not sure I understand your feedback.
Regards
Shradha

Hi Shradha,
Part of the documentation I am referring to should look like this:

Wait for any full or log backups for the database to finish. Check the status in SAP HANA Studio / Cockpit.
Disable log backups, and set the backup catalog to the file system for relevant database.
To do this, double-click systemdb > Configuration > Select Database > Filter (Log).
Set enable_auto_log_backup to No.
Set log_backup_using_backint to False.
catalog_backup_using_backint parameter to "false"
Take an on-demand full backup of the database.
Wait for the full backup and catalog backup to finish.
Revert the previous settings back to those for Azure:

Set enable_auto_log_backup to Yes.
Set log_backup_using_backint to True.
catalog_backup_using_backint parameter to "true"

Thanks,
Greg

Many thanks for bringing this notice Greg. I have raised a request to update the content. It should be published soon.

Thanks for your suggestion. The document has been updated, and the changes should appear soon.
#please-close


Version 0.1.0 is gone from PyPi

Hey, was it expected that 0.1.0 got yanked/removed from Pypi? was it a mistake?
Thanks :)

Thanks!


Temp dir without @ when working on svn

Removes all @ on temps dir
FIX #1650

Why not fix all resolver and fix _createTempDir function?
Mind to add test in test/core/resolvers/resolver.js?

@arturokunder would you be able to add a few tests?

We've fixed this in #2060


Training/2021.10/070 subprograms

I guess the overload thing makes sense - my bad!
If :dfn: works with Pandoc, then I'm good with that


Yolo Tagger

Hi Alexey,
I made a similar work to tag dataset and generate YOLO configuration files:
https://github.com/Myzhar/object-detection-dataset-tagger
Let me know what you think about it
Walter

Nice one dude!


How to generate toJson, fromJson methods for models in last versions of stormberry package?

I am using the stormberry v0.14.0. As I know, there should be annotations for JSON serialization.
I found code with using views in @Model annotation, but it seems View class doesn't exist.
Are there any ways to generate toJson, fromJson methods?

See the 'meta' property on the @Model annotation

See the 'meta' property on the @model annotation

Hi! Thank you! I realized how to use it.


Where am I in the left-hand menu?

Where am I in the left-hand menu?

Shouldn't the menu on the left be highlighted like this:

https://docs.microsoft.com/en-us/virtualization/windowscontainers/about/

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

ID: 03053de3-22f9-2320-42c4-4bfdcec11840
Version Independent ID: 70f19263-9c17-61a6-03eb-af0cf33ca932
Content: Deploy Windows Containers on Windows Server
Content Source: virtualization/windowscontainers/deploy-containers/deploy-containers-on-server.md
Service: windows-containers
Product: windows-containers
GitHub Login: @taylorb-microsoft

closing as stale / no activity


afterany dependency support

Currently --depend sets up dependencies so that all jobs must succeed before the submitted job runs (in PBS this is the afterok dependency), but sometimes you may want your final job to run regardless of success or failure (afterany).
If there's interest in supporting this kind of dependency, what about adding --afterok (which is aliased as --depend), and --afterany options.

Does SGE have an equivalent?
Andrew asked about this in his initial review

A quick glance at the grid engine man pages doesn't show anything like afterany dependencies, but we could easily fake it by forcing a 0 return value from the job script.

SLURM offers a number of options:
       -d, --dependency=<dependency_list>
              Defer  the  start   of   this   job   until   the   specified   dependencies   have   been   satisfied   completed.    <dependency_list>   is   of   the   form   <type:job_id[:job_id][,type:job_id[:job_id]]>   or
              <type:job_id[:job_id][?type:job_id[:job_id]]>.  All dependencies must be satisfied if the "," separator is used.  Any dependency may be satisfied if the "?" separator is used.  Many jobs can share the same depen‐
              dency and these jobs may even belong to different  users. The  value may be changed after job submission using the scontrol command.  Once a job dependency fails due to the termination state of a  preceding  job,
              the dependent job will never be run, even if the preceding job is requeued and has a different termination state in a subsequent execution.

              after:job_id[:jobid...]
                     This job can begin execution after the specified jobs have begun execution.

              afterany:job_id[:jobid...]
                     This job can begin execution after the specified jobs have terminated.

              afterburstbuffer:job_id[:jobid...]
                     This job can begin execution after the specified jobs have terminated and any associated burst buffer stage out operations have completed.

              aftercorr:job_id[:jobid...]
                     A task of this job array can begin execution after the corresponding task ID in the specified job has completed successfully (ran to completion with an exit code of zero).

              afternotok:job_id[:jobid...]
                     This job can begin execution after the specified jobs have terminated in some failed state (non-zero exit code, node failure, timed out, etc).

              afterok:job_id[:jobid...]
                     This job can begin execution after the specified jobs have successfully executed (ran to completion with an exit code of zero).

              expand:job_id
                     Resources  allocated to this job should be used to expand the specified job.  The job to expand must share the same QOS (Quality of Service) and partition.  Gang scheduling of resources in the partition is
                     also not supported.

              singleton
                     This job can begin execution after any previously launched jobs sharing the same job name and user have terminated.


ios: share into support

This PR includes:

added support for sharing files, images, and videos into lockbook
redesigned the move and accept share sheet (and unifying the design)
redesigned the pending shares screen

iOS:
https://github.com/user-attachments/assets/ba4a0ad2-1034-45df-9be9-75b61754aab1
fixes #1951

Huge, can you update feature matrix in readme as well


Auto Import Organise - Add prettier import rule (2/n)

What does this PR do and why?
This PR is part of a greater stack:

Adding support for a Prettier Plugin that automatically organises imports

This PR:

Adds new prettier rule to organise code imports automatically.

Screenshots or screen recordings
N/A
Acceptance checklist

[x] I have evaluated the Approval Guidelines for this PR.
[x] I have tested this PR in all supported browsers.
[x] I have tested this PR in dark mode and light mode (if applicable).

Current dependencies on/for this PR:

main

PR #1793

PR #1794   👈

This comment was auto-generated by Graphite.

Graphite Merge Job
Current status: ⏳ Queued to merge
This pull request is currently queued to be merged as part of a stack.
This comment was auto-generated by Graphite.

Job Reference: KWKGYGFmwm3B0xgybjZV

Graphite Merge Job
Current status: ⏳ Queued to merge
This pull request is currently queued to be merged as part of a stack.
This comment was auto-generated by Graphite.

Job Reference: qaXznWty1iJwzVy8ztWO

Graphite Merge Job
Current status: 🔄 Waiting for checks to pass
This pull request is currently waiting for CI and mergeability checks to pass before being merged.
This comment was auto-generated by Graphite.

Job Reference: Ww7M8ZiVkvUteG4ABUOH


[Feature] Supports Trigger

Proposal solution
GORM has a feature called Hooks (application-level triggers). And now, we want to support database triggers. I'll base the implementation on the Hooks implementation to do the same things.
GORM supports 4 databases now, each has its own way to define a trigger. I'll list out the trigger documentation of each database in order of complexity, from the least trigger options to the most trigger options:

SQLite
MySQL8
PostgreSQL
SQL Server

We can't have a generic solution that covers all options for triggers. Therefore, I decided to limit the scope to just cover a basic form of trigger: WHEN a specific OPERATION happens DO something.
CREATE TRIGGER trigger_name trigger_time trigger_event

 ON table_name

 BEGIN

 ...

 END

1. Setting up phase
This is the definition of a trigger. One model/table can have multiple triggers
// gormschema/trigger.go

// Trigger defines the necessary fields for a trigger
type Trigger struct {
	Name      string
	When      string
	Operation string
	Body      string
}

Whenever we want to attach triggers to a model, we can embed the Triggers
// models/pet.go
type Pet struct {
	gorm.Model
	Name   string
	User   User
	UserID uint
}

// WithTriggers helps define database triggers
func (p *Pet) WithTriggers() []gormschema.Trigger {
	return []gormschema.Trigger{
		{
			Name:      "trigger1",
			When:      "BEFORE",
			Operation: "INSERT",
			Body:      "DO SOMETHING",
		}, {
			Name:      "trigger2",
			When:      "AFTER",
			Operation: "UPDATE",
			Body:      "DO SOMETHING",
		},
	}
}

2. Migration phase
We're having a custom migrator to create constraints. I'll base on this and expand its functionality to have a create triggers method
// gormschema/gorm.go
// CreateTriggers creates triggers for the given models.
func (m *migrator) CreateTriggers(models []any) error {
	for _, model := range m.ReorderModels(models, true) {
		if !m.containTrigger(model) {
			continue
		}

		for _, trigger := range model.Triggers {
                       // Parse trigger and execute it
                       err = m.CurrentDatabase().Exec(trigger.ToSQL())
		}
	}
	return nil
}

func (m *migrator) containTrigger(model any) bool {
        // logic here
	return true
}

For each database, we have a corresponding trigger template
// triggertemlate/mysql.tmpl
CREATE TRIGGER {{ .NAME }}
{{ .WHEN }} {{ .ACTION }} ON {{ .TABLE }}
FOR EACH ROW
BEGIN
   {{ .BODY }}
END

// triggertemlate/sqlite.tmpl
CREATE TRIGGER {{ .NAME }}
   {{ .WHEN }} {{ .ACTION }} ON {{ .TABLE }}
BEGIN
 {{ .BODY }}
END;

Those templates will be parsed by a method of the Trigger struct
// gormschema/trigger.go
func (t *Trigger) ToSQL(dialect string) (string, error) {
	tmpl, err := template.New(dialect).Parse(dialect)
	if err != nil {
		return "", fmt.Errorf("unsupported engine: %s", dialect)
	}

	var buf bytes.Buffer
	if err := tmpl.Execute(&buf, t); err != nil {
		return "", fmt.Errorf("failed to execute trigger template: %w", err)
	}

	return buf.String(), nil
}

I have a new thought! Migration stuff should belong in the migration place. That could be the reason why GORM decided to let the Migrator create Views 🤔
db.Migrator().CreateView()

but not Model.CreateViews()
Therefore, here is another proposal bases on #38, implements gormschema.WithTrigger method.
type (
	TriggerOption struct {
		Query func(*gorm.DB) *gorm.DB
		Replace      bool
	}
)

// WithTrigger sets up a trigger with the given name and options.
func WithTrigger(name string, opt TriggerOption) Option {
	return func(l *Loader) {
		l.afterAutoMigrate = append(l.afterAutoMigrate, func(db *gorm.DB) error {
			return db.Exec(Trigger.New(name, opt).ToSQL())
		})
	}
}

First, if GORM doesn't support define trigger via its model, then we don't need to do that. Just allow the user define raw SQL for external SQL resources then combine them into the result.
Second, define trigger via custom structure and Go template is not a correct solution. If you want define model, just use the trigger directly from ariga.io/atlas/sql/schema<EMAIL_ADDRESS>

Actually, the user can use composite_schema datasource from atlas to combine two schemas (one from GORM, one from their) into one big schema; then atlas can handle migration for them.

Oh, thanks. I didn't know Atlas had that. I'll update my proposal soon.

Hi @giautm, I'm about to work on this one and will stick with the proposal that defines Triggers() for the desired entity.
I read the Trigger definition from<EMAIL_ADDRESS>but I think it's too verbose for atlas-provider-gorm package and will create confusion with unused fields (Table, View, etc.), isn't it? Therefore, I propose a clean but basic form for a Trigger struct that inherits from the Atlas schema trigger:
type Trigger struct {
    Name       string
    ActionTime schema.TriggerTime // BEFORE, AFTER, or INSTEAD OF.
    Event      schema.TriggerEvent    // INSERT, UPDATE, DELETE, etc.
    For        schema.TriggerFor      // FOR EACH ROW or FOR EACH STATEMENT.
    Body       string                 // Trigger body only.
}

Is this a good practice to have a partial struct from an existing struct and make it more maintainable? Or should I go with a new type for all fields and maintain it inside the atlas-provider-gorm package separately?
type TriggerTime string

const (
    TriggerTimeBefore     TriggerTime = "BEFORE"
    TriggerTimeAfter      TriggerTime = "AFTER"
    TriggerTimeInsteadOf  TriggerTime = "INSTEAD OF"
)

type Trigger struct {
    Name       string
    ActionTime TriggerTime // BEFORE, AFTER, or INSTEAD OF.
    Event      TriggerEvent    // INSERT, UPDATE, DELETE, etc.
    For        TriggerFor      // FOR EACH ROW or FOR EACH STATEMENT.
    Body       string                 // Trigger body only.
}


dev -> master

Changelog

Free deposits offset bug on Pyrmont [#278]
Portis mainnet bug [#283]

this lgtm


[Transmission Samples] Add absorbance step

@newville I take the occasion to say that xrayweb is very helpful and it is a nice alternative to Hepheastus or XAFSmass. In the "Transmission Samples" tab, would it be possible to add the calculation of the absorbance step for the element closest to the given energy and show it in the "Transmission Sample Results"?

@maurov @easyXAFS I think no one would be opposed to showing all the variations of how to present this.  Are you willing to make a PR or even write down the calculation you want to see?


Refactoring using TTL + Remove encode column names in queries + Add PDO extension to composer.json

Q
A

Is bugfix?
❌

New feature?
❌

Breaks BC?
✔

Fixed issues
#5

For now it is good not to remove the encoding of the columns, until you have the tests for all the drivers.


use Product instead of State in the bundle intent used in ProductFragment

Currently we put the all State object in the bundle intent, which is used in the 3 product fragments and in the product activity.
Whereas in those fragments, we only use the product (state.getProduct); so it should be more efficient to only add the product in the bundle.
Also additionalProperties field in the State class seems useless.

Is that still the case ?
(It's Halloween, so I raise dead bugs from the grave 💀)

Yes it's still the case ....


Unable to verify the Docker daemon is listening: Maximum number of retries (10) exceeded

I'm trying to provision a machine on DO:
$ docker-machine create --driver digitalocean --digitalocean-access-token=$DO_TOKEN demo
Running pre-create checks...
Creating machine...
(demo) Creating SSH key...
(demo) Creating Digital Ocean droplet...
(demo) Waiting for IP address to be assigned to the Droplet...
Waiting for machine to be running, this may take a few minutes...
Detecting operating system of created instance...
Waiting for SSH to be available...
Detecting the provisioner...
Provisioning with ubuntu(systemd)...
Installing Docker...
Copying certs to the local machine directory...
Copying certs to the remote machine...
Setting Docker configuration on the remote daemon...
Error creating machine: Error running provisioning: Unable to verify the Docker daemon is listening: Maximum number of retries (10) exceeded

The service file looks like this:
[Service]
ExecStart=/usr/bin/docker daemon -H tcp://<IP_ADDRESS>:2376 -H unix:///var/run/docker.sock --storage-driver aufs --tlsverify --tlscacert /etc/docker/ca.pem --tlscert /etc/docker/server.pem --tlskey /etc/docker/server-key.pem --label provider=digitalocean
MountFlags=slave
LimitNOFILE=1048576
LimitNPROC=1048576
LimitCORE=infinity
Environment=[Service]
ExecStart=/usr/bin/docker daemon -H tcp://<IP_ADDRESS>:2376 -H unix:///var/run/docker.sock --storage-driver aufs --tlsverify --tlscacert /etc/docker/ca.pem --tlscert /etc/docker/server.pem --tlskey /etc/docker/server-key.pem --label provider=digitalocean
MountFlags=slave
LimitNOFILE=1048576
LimitNPROC=1048576
LimitCORE=infinity
Environment=

[Install]
WantedBy=multi-user.target

[Install]
WantedBy=multi-user.target

Take note of the double '-H' option in 'ExecStart'. This results to:
# systemctl status docker
● docker.service
   Loaded: loaded (/etc/systemd/system/docker.service; enabled; vendor preset: enabled)
   Active: failed (Result: exit-code) since Thu 2018-09-06 16:00:41 UTC; 3h 49min ago
  Process: 4906 ExecStart=/usr/bin/docker daemon -H tcp://<IP_ADDRESS>:2376 -H unix:///var/run/docker.sock --storage-driver aufs --tlsverify --tlscacert /etc/docker/ca.pem -
 Main PID: 4906 (code=exited, status=1/FAILURE)

Sep 06 16:00:41 demo systemd[1]: Started docker.service.
Sep 06 16:00:41 demo docker[4906]: Please specify only one -H
Sep 06 16:00:41 demo systemd[1]: docker.service: Main process exited, code=exited, status=1/FAILURE
Sep 06 16:00:41 demo systemd[1]: docker.service: Unit entered failed state.
Sep 06 16:00:41 demo systemd[1]: docker.service: Failed with result 'exit-code'.

I'll leave this here in case the project gets back to track.

Same issue here

I have solved the issue in the following manner:
1- Re-install VB. Download a new version if needed
2- Reboot the system.
4- Start Docker by opening Docker Quickstart Terminal
3- The following error was still appearing:
Unable to verify the Docker daemon is listening: Maximum number of retries (10) exceeded
4- In my git bash I have used the following command to solve it :
docker-machine rm -f default
docker-machine create -d virtualbox default

I hope this can help you.

@MadeoIT is right on point!

@MadeoIT  thankU!!

hero!

How to change that default value of 10 retries to 20?
Looks like with Parallels Desktop it is always not enough.

This is still happening in 2021. What, why and how do we fix this?

Yup, same!
Running into it running this command
docker-machine create --driver digitalocean --digitalocean-size s-1vcpu-1gb --digitalocean-access-token YOUR_TOKEN_HERE tinyboxes-alert

@MadeoIT Are your instructions to fix for a virtualbox driver? OP was posting an error about a digital-ocean driver.

I have tried this on @digitalocean machines 16.04, 18.04, and 20.04, same error
Copying certs to the local machine directory...
Copying certs to the remote machine...
Setting Docker configuration on the remote daemon...
Error creating machine: Error running provisioning: Unable to verify the Docker daemon is listening: Maximum number of retries (10) exceeded

https://www.digitalocean.com/community/questions/unable-to-verify-the-docker-daemon-is-listening?answer=67068

@ansiwen thanks, this solves the issue (as a temporary workaround)
I think, DigitalOcean driver should just use the Docker app from DigitalOCean marketplace instead of installing it on an empty machine.

I have tried running the docker-machine tool on Windows and Linux. It still doesn't work with DigitalOcean, generic, VirtualBox driver, or maybe the others. The result is always the same.
...
Installing Docker...
Copying certs to the local machine directory...
Copying certs to the remote machine...
Setting Docker configuration on the remote daemon...
Error creating machine: Error running provisioning: Unable to verify the Docker daemon is listening

I have tried running the docker-machine tool on Windows and Linux. It still doesn't work with DigitalOcean, generic, VirtualBox driver, or maybe the others. The result is always the same.
...
Installing Docker...
Copying certs to the local machine directory...
Copying certs to the remote machine...
Setting Docker configuration on the remote daemon...
Error creating machine: Error running provisioning: Unable to verify the Docker daemon is listening

Oh, the answer from @ansiwen was right. The link contains a snippet that includes --engine-install-url "https://releases.rancher.com/install-docker/19.03.9.sh" parameter on docker-machine create command.


Generate a deep mask stack with one function instead of list of functions

Currently, mask stacks are assembled one by one. This works well for scenarios with few masks, such as shape or COM analysis.
For other purposes, such as radial integration, non-trivial binning or template matching, a deep stack of masks with thousands or tens of thousand masks could be useful. Tests for #197 have shown that this can be efficient if the matrices are sparse.
For that reason, we should accept functions that generate the whole stack at once instead of slices.
Possibilities for implementation:

Accept both list of functions or single function for factories argument. Advantage: minimal impact. Disadvantage: Magic polymorphism, not obvious
Two kwargs, factories or factory, of which one is set. Advantage: Explicitly clear which is what. Disadvantage: Two invalid situations -- bot set or both not set
New subclass of mask analysis. Advantage: Clear and explicit. Disadvantage: Significant code duplication and growing API surface.

I am tending towards the first one. What do you think?

I would also prefer the first one. So the idea would be to either pass a list of callables, or a callable that returns a list? Or should the single callable return a ndarray (which can be sparse or dense?) instead of a list?
I think with that interface we cover quite a lot of ground already. How does this integrate with the MaskContainer? I guess it just needs some changes how the raw_masks are computed?

Tests for #197 have shown that this can be efficient if the matrices are sparse.

So the problem there is actually calling the many functions to "materialize" the masks? Or is it also the serialization of all the functions?

The single callable should return a single ndarray resp. sparse matrix.
Yes, as far as I can see only the mask computation, slicing and assembly.
Actually, I didn't test performance. My main motivation is to not artificially generate thousands of functions, but to just write one function that does the job and keep the code simple and clean. Performance should be a topic, too, though. Preferentially I'd like to be able to use numba since that should be easier to understand compared to numpy if the mask calculation becomes complex.

My main motivation is to not artificially generate thousands of functions, but to just write one function that does the job and keep the code simple and clean

:+1:

Preferentially I'd like to be able to use numba since that should be easier to understand compared to numpy if the mask calculation becomes complex

Sounds good.
As for performance, I also thought about doing some re-ordering of the masks to improve data locality (similar aim as this paper, I guess?). Basically, if two masks in the stack access the same data, they should be close to each other in the stack. That would be a topic for future optimization, maybe also directly in sparse.


Where do I add the Virus Total API key?

I can't find the config file do add the API anywere.
" WARN You are not set VirusTotal API Key yet."

"Read the source, Luke" ;)
apiKey := os.Getenv("VT_API_KEY")
if apiKey == "" {
    Logger.Warnf("You are not set VirusTotal API Key yet.")
    return out, nil
}

You need to set up environment variable VT_API_KEY


Add CI for Fedora legs (Azure DevOps)

The docker image doesn't have pkill and hangs during smoke-test.
- template: ../phases/ci-linux.yml
  parameters:
    phase: fedora28
    imageName: microsoft/dotnet-buildtools-prereqs:fedora-28-c103199-20180628122443
    matrix:
      Production: {}
      Online: { type: Online }
      Online Portable: { type: Online Portable }
      Offline: { type: Offline }
      Offline Portable: { type: Offline Portable }

Pulled out from https://github.com/dotnet/source-build/pull/813.

We should probably target Fedora 29 instead if we're making a new image anyway, then we'd be on the latest version.

It's still listed as beta on https://getfedora.org/, not sure if we should go that far ahead. Also, I think all we'll be doing is adding to https://github.com/dotnet/dotnet-buildtools-prereqs-docker/blob/master/src/fedora/28/Dockerfile (or switching to kill in smoke-test.sh or adding compat) so I think making a new Docker image is purely additional work.

Fedora 29 release date is scheduled for 2018-10-30, but there is already a Fedora 29 Docker image... yeah, maybe we should go for it while we're making this kind of change.

I replaced pkill with kill (using ps to find the child id to signal, thanks for the heads up @crummel on that difference), but it turns out the image doesn't even have ps. Getting pkill on the image is the right way forward.
Moving this back to backlog: haven't done any useful work on this yet and I have a higher priority.

Completed with https://github.com/dotnet/source-build/pull/852.


Upgrade the urbanairship-react-native package

Details
This PR updates the urbanairship-react-native package to fix an issue where removing all listeners (PushNotification.deregister) throws an error in the old package.
Fixed Issues
Fixes https://github.com/Expensify/Expensify.cash/issues/3503
Tests

Sign into an account and then sign out, confirm the apps don't crash

While testing this, I noticed that the TestFlight build sent push notifications properly, but when building to a physical device (iOS since I don't have an Android) the push notifications never came through. I confirmed that the same behavior happens when building to my device using the same version that is on the TestFlight (where pushes are working fine), so this may have to be fully confirmed when the build is on the TF. cc @roryabraham and @sketchydroide to confirm since you both have tested this before.
QA Steps
On the testflight build, sign into an account on iOS and Android then background the app. On another account, send a message to that account and confirm you receive a push notification.
Tested On

[x] Web
[x] Mobile Web
[x] Desktop
[x] iOS
[x] Android

Removing @sketchydroide as he's off today. Would one of the remaining reviewers be able to review this today? It's one of a few issues blocking the N5 build deployment.

Thanks @TomatoToaster!!!

🚀 Deployed to staging in version: 1.0.66-13🚀

platform
result

🤖 android 🤖
success ✅

🖥 desktop 🖥
success ✅

🍎 iOS 🍎
success ✅

🕸 web 🕸
success ✅

Android - Notification not received if app is backgrounded
Expected Result:
User receives push notification
Actual Result:
No push notification received
Actions Performed:

Launch the app and login
Background the app.
From another account, send a message to this account

Platform:
Android ✔
Build:
1.0.67-0
Notes/Images/Video:
https://user-images.githubusercontent.com/43996225/121613210-fd797f00-ca29-11eb-8083-1c71d63722fa.mp4

The above issue has been moved to it's own issue: https://github.com/Expensify/Expensify.cash/issues/3542#issuecomment-859429408

Checking the PR off the checklist since the bug will be addressed on a different issue.

🚀 Deployed to production in version: 1.0.68-4🚀

platform
result

🤖 android 🤖
success ✅

🖥 desktop 🖥
success ✅

🍎 iOS 🍎
success ✅

🕸 web 🕸
success ✅


TransactionId should not be regenerated if set manually by a user

🆕🐥 First Timers Only
This issue is reserved for people who have never contributed to Hedera or any open source project in general.
We know that creating a pull request (PR) is a major barrier for new contributors.
The goal of this issue and all other issues labeled by 'good first issue' is to help you make your first contribution to Hedera.
👾 Description of the issue
Currently, setting a Transaction's TransactionId does not impact the Transaction's ability to regenerate its TransactionId. However, looking at Java and Go SDKs, the TransactionId gets locked when it is set manually. Then, when the Transaction is determining if it should regenerate its TransactionId or not, it looks at the transaction ID regeneration policy as well as if the TransactionId is locked. If the TransactionId is locked (which it is if its set manually by a user), it does not regenerate.
Steps to reproduce

Set a TransactionId for a Transaction.
Attempt to submit the Transaction and have it expire.
Observe the TransactionId get regenerated.

📋 Step by step guide to do a contribution
If you have never contributed to an open source project at GitHub, the following step-by-step guide will introduce you to the workflow. More information and concrete samples for shell commands for each step can be found in our CONTRIBUTING.md file.
A more detailed general documentation of the GitHub PR workflow can be found here.

[ ] Claim this issue: Comment below that you are interested in working on the issue
[ ] Wait for assignment: A community member with the given rights will add you as an assignee of the issue
[ ] Fork the repository: You can do that in GitHub (by simply clicking the 'fork' button).
[ ] Check out the forked repository
[ ] Create a feature branch for the issue. We do not have a hard naming definition for branches but it is best practice to prefix the branch name with the issue id.
[ ] Solve the issue in your branch.
[ ] Commit your changes: Here, it is needed to add sign-off information to the commit to accept the "Developer Certificate of Origin" (https://developercertificate.org). More details can be found in our CONTRIBUTING.md
[ ] Start a Pull Request (PR): We have a pattern for naming pull requests that a GitHub Action checks. We use that pattern to support the creation of automatic release notes.
[ ] Check GitHub Actions: Several GitHub Actions will be triggered automatically for each PR. If a GitHub Action fails and you do not understand the cause of that error do not hesitate to add a comment to the PR and ask the Hedera developer community for support.
[ ] Wait for reviews: Members of the Hedera developer community will review your PR. If a reviewer finds any missing pieces or a problem, he or she will start a discussion with you and describe the next steps for solving the problem.
[ ] You did it 🎉: We will merge the fix in the develop branch. Thanks for being part of the Hedera community as an open-source contributor ❤

🎉 Contribute to Hacktoberfest
Solve this issue as part of the Hacktoberfest event and get a chance to receive cool goodies like a T-Shirt. 🎽
🤔 Additional Information
If you have any questions, just ask us directly in this issue by adding a comment. You can join our community chat at Discord. A general manual about open-source contributions can be found here.
Operating system
Other

Can I work on this issue?

The transaction id is referenced for which example or it is generic. Not sure what to do?


Interrupt context saving not working

The problem is not systematic.
The problem is detected by comparing the files generated by the tracer.sv module, for the zero_riscy and the Ibex.
A small modification (around the is_decoding_o signal)of ibex_controller.sv module permits to avoid the problem (but this modification is not safe to 100 %;   The problem must be present in Debug mode : not tested).
list of file:
zero_riscy_VS_ibex_problem.log    : comparaison, line by line of trace_core.log (generated by trace.sv)
modifications_ibex_controller.log     :  modification that improves the behavior of Ibex during an interruption
ibex_writing_during_an_interruption.png  : waveforms to show the problem
zero_riscy_writing_during_an_interruption.pgn   : waveforms of zero_riscy (no problem)
zero_riscy_VS_ibex_problem.log
modifications_ibex_controller.log

modifications_ibex_controller.log
zero_riscy_VS_ibex_problem.log

Hi @arghimat ,
thanks for creating this issue and providing the details.
To me it looks like that the interplay between the write-back and controller FSMs is not working properly, especially for multi-cycle instructions. I am currently in the process of reworking the interrupt framework inside Ibex. For that, I will also have to have a close look at the two FSMs and your case here.
I will get back to you. One question that just came to my mind: Which register file are you using for Ibex? Because we had an issue recently (#75), where someone used the latch-based register file with an incompatible clock gating cell. This led to register writes not being handled correctly.
Best regards,
Pirmin

Hello,
Thank you for your comments.
Concerning the module ibex_registers, we use the Flipflops file.
Adding the following line seems to improve the behaviour, but not completely:
irq_req_ctrl_i && irq_enable_int &&  !debug_req_i && !debug_mode_q: begin
// Serve an interrupt (not in debug mode)
ctrl_fsm_ns = IRQ_TAKEN;
is_decoding_o = 1'b1;           <=========   added line
halt_if_o   = 1'b1;
halt_id_o   = 1'b1;
end
The problem must appear  in debug mode (???).
I created a waveforms file (in WLF format) and its  .do file.
I added all FSMs.
Remark: the signals are creatd after +/- 10 ms (zoom the end of waveform).
I added the file created by tracer module (see the cycles signal in waveform and in log file).
I hope this will help you,
Best regards,
Jean-Louis
trace_problem_irq.zip

Hello,
I changed the input signals on which the tracer relies in PR https://github.com/lowRISC/ibex/pull/77. It does not check for the is_decoding_o signal anymore, but just relies on rvfi_valid. If you would want to test your trace with the changes from the PR, I would be happy to hear if the tracer is still working for you and/or if this problem is still occurring.
Thanks,
Tobias

Hello Tobias,
The Tracer functionality isn't the problem. I use it to debug.
The problem is in the FSMs under ibex_id_stages (ibex_controller).
Sometimes, when an interrupt occurs, the last write in registers is not present.
I send you some pictures of my simulation (modelsim) and  its wlf file (if you have modelsim).
During the conversion wlf2vcd, the FSMs signals dissapear. I can not send you a correct vcd file.
I also provide a picture of the same simulation of the zero_riscy (Write in x14 register is OK).
I send you a file (generated with the tracer module) showing the difference between the zero_riscy and Ibex.
Sent files (in zip file):
ibex_problem_3.png
ibex_problem_2.png
ibex_problem_1.png
waves_E521_ibex_new.wlf
zero_riscy_VS_ibex.png
zero_riscy_write to_register_during an interrupt(.png
Best regards,
Jean-Louis
To_lowRISC_issue03July2019.zip

Hi @jeanlouismaquet , hi @arghimat ,
thanks for sending the additional information. I just wanted to let you know that I did not forget about your problem. There is a problem in the controller and how it prioritizes interrupts, exceptions and normal instructions. In your particular case, the ongoing load is interrupted by the interrupt. The controller jumps into another state and deasserts is_decoding. This deasserts the write enable for the register file, meaning the value returned by the load from memory is lost.
I had to do some other work on the decoder and ID stage previously, but I will now focus on this problem here. I will let you know if I have news.
Kind regards,
Pirmin

Hi @jeanlouismaquet , hi @arghimat ,
I have reworked the faulty controller FSM to solve the problem you have reported. However, this fix depends on other changes currently under review here #120 . Thus I did not create a PR for these latest changes.
Nevertheless, the changes are available on my development branch here: https://github.com/vogelpi/ibex/tree/vogelpi-dev
Would you mind to checkout this branch and give me some feedback if it properly works in your setup?
Best regards and have a nice weekend,
Pirmin


Solving a Mysterious Heap Corruption Crash

https://topologyeyewear.github.io/engineering-blog/2018/03/07/heap_corruption/

done