npm error at require / disable require

Hi guys,
thanks for this awesome lib. I'm trying to add prebuild feature to node-rdkafka lib, but I have problem when I try to install it from prebuild. Exactly when prebuild-install require the .node file.
But the require doesn't throw error, just npm.
My question: Can I disable somehow the require step at the end of installation?
Node: 8.11.0
OS: Win7 x64
Command: npm i icebob/node-rdkafka
Error:
><EMAIL_ADDRESS>install d:\Work\tmp\rdkafka-test\node_modules\@icebob\node-rdkafka
> prebuild-install --verbose

prebuild-install info begin Prebuild-install version 2.5.3
prebuild-install info looking for local prebuild @ prebuilds\node-rdkafka-v2.3.2-node-v57-win32-x64.
tar.gz
prebuild-install info looking for cached prebuild @ C:\Users\Bobcsi\AppData\Roaming\npm-cache\_prebu
ilds\https-github.com-icebob-node-rdkafka-releases-download-v2.3.2-node-rdkafka-v2.3.2-node-v57-win3
2-x64.tar.gz
prebuild-install info found cached prebuild
prebuild-install info unpacking @ C:\Users\Bobcsi\AppData\Roaming\npm-cache\_prebuilds\https-github.
com-icebob-node-rdkafka-releases-download-v2.3.2-node-rdkafka-v2.3.2-node-v57-win32-x64.tar.gz
prebuild-install info unpack resolved to d:\Work\tmp\rdkafka-test\node_modules\@icebob\node-rdkafka\
build\Release\node-librdkafka.node
prebuild-install info unpack required d:\Work\tmp\rdkafka-test\node_modules\@icebob\node-rdkafka\bui
ld\Release\node-librdkafka.node successfully
prebuild-install info install Successfully installed prebuilt binary!
npm WARN<EMAIL_ADDRESS>No description
npm WARN<EMAIL_ADDRESS>No repository field.

npm ERR! code ELIFECYCLE
npm ERR! errno<PHONE_NUMBER>
npm ERR<EMAIL_ADDRESS>install: `prebuild-install --verbose`
npm ERR! Exit status<PHONE_NUMBER>
npm ERR!
npm ERR! Failed at the<EMAIL_ADDRESS>install script.
npm ERR! This is probably not a problem with npm. There is likely additional logging output above.

npm ERR!      C:\Users\Bobcsi\AppData\Roaming\npm-cache\_logs\2018-04-25T20_49_58_714Z-debug.log

I hacked prebuild-install to skip the require and it works without error. But I don't know, what is the reason of error.

Thanks!

See also https://github.com/prebuild/prebuild-install/pull/45#issuecomment-338825005

Your module consists of more files than the *.node file and AFAIK prebuild-install only extracts the *.node file?! So this error could be a failing dlopen() because these files are missing?!

@mathiask88 yes, it contains other dlls too, but prebuild-install can extract all of them. Because if I can skip the require part, the lib is working fine.

There's no way to skip the test right now. We need to implement support for it, but should be trivial.

IMHO this is no error with prebuild-install. It requires the module successfully.<PHONE_NUMBER> looks like C0000005 wich is the error code of an access violation. And a quick debugging session confirms that your module raises an access violation on unload.

>	ntdll.dll!RtlpWaitOnCriticalSection()	Unknown
 	ntdll.dll!RtlpEnterCriticalSectionContended()	Unknown
 	ntdll.dll!RtlEnterCriticalSection()	Unknown
 	librdkafka.dll!00007ffd1493a9e5()	Unknown
 	librdkafka.dll!00007ffd148e819a()	Unknown
 	node.exe!00007ff6f495afb9()	Unknown
 	node.exe!00007ff6f495b298()	Unknown
 	node.exe!00007ff6f495b634()	Unknown
 	node.exe!00007ff6f540c425()	Unknown
 	kernel32.dll!00007ffd69ba1fe4()	Unknown
 	ntdll.dll!RtlUserThreadStart()	Unknown

Now I'm slightly confused. The log says Successfully installed prebuilt binary! so the require was either successful or was never made at all.

@ralphtheninja The require happens and is successful. But when npm kills the child prebuild-install ran in the user module is unloaded and raises an AV caused by a bug in librdkafka.

We can still discuss if an option to skip the test is a good thing, but in my opinion a native module should load AND unload properly. So the require-test did very well here.

Thanks @mathiask88. The librdkafka is not my module, so I don't know, whether they fix it or not.
If not I can't use prebuild lib.
So if you don't mind, can I create a PR with a new argument option (e.g. --skip-require, or --skip-test)?

IMO we should not add a feature to prebuild-install to hide a bug in librdkafka (or any other module).

@vweevers Maybe we can run the test in a sandbox/child process and catch a loading/unloading error to warn the user and npm can finish the installation properly. An error that happens on module unload is not that fatal, because it is not possible to unload a native module on runtime. It will only happen on process exit. But it is still an error :P

Maybe we can run the test in a sandbox/child process and catch a loading/unloading error to warn the user and npm can finish the installation properly.

Sounds (too) complicated.

An error that happens on module unload is not that fatal, because it is not possible to unload a native module on runtime. It will only happen on process exit. But it is still an error :P

If consumers of the module use child processes themselves, it's a critical error.

If I require it in an empty js file, no error. So the error doesn't appear under normal usages.

If I require it in an empty js file, no error. So the error doesn't appear under normal usages.

If you build your library with debug configuration you will see that it will always raise an error (It should at least). Release configuration is just silent but if you check the exit code from node it won't be 0

@icebob But you have all source codes and you can build without errors. So you can run
var foo = require('./node-librdkafka.node')
with
node --inspect-brk ./foo.js
attach the Visual Studio Debugger to the node.exe process
open chrome://inspect/#devices
connect the node inspector and hit run.
Then Visual Studio will popup with the Access Violation and you can see the full stacktrace with all variables etc. and try to find out what's going on there :)


Publish to marketplace

Resources:

Docs
YouTube video
Add main.do and put it in the root directory. It should trigger all of the available do-files in the repository
Add it into the entrypoint.sh
Add entrypoint.sh to Dockerfile
This way, users don't have to manually edit the YAML file (hopefully, let's try)

Done


Set anchors target for external urls to _blank

As discussed in #1921 and #1922, I set the target to _blank for links to external sites.
I have only modified links that comply with the css rule applied via a[href^="https:"]:not([href*="getmonero.org"]) and which therefore display the external.svg icon

If @erciccione could clarify the scope of this PR (en folders are mentioned here) i can review/help if needed.

If @erciccione could clarify the scope of this PR (en folders are mentioned https://github.com/monero-project/monero-site/issues/1921#issuecomment-1365810169) i can review/help if needed.

The en folders don't need  to be touched in this case as most if not all links are inside the documents themselves.

closes #1921

@FedericoNembrini there are some conflicts that need to be solved before we can merge this.

I have resolved the merge conflicts, have I forgotten something?

 That usually happens after a borked rebase. You could try to remove it and rebase again, fixing the merge conflict.

I have resolved conflicts with github built in function.
I'll try to remove my last commit and do a rebase.

@FedericoNembrini please fix the conflicts and rebase :)

ping @FedericoNembrini

I will fix this in the coming days

there is a plugin which claims to do this automagically for external links. i have not tested it yet but looks promising https://github.com/keithmifsud/jekyll-target-blank


Enhance DNS resolution using self DNS server

Signed-off-by: Santhosh Manohar<EMAIL_ADDRESS>

this enhancement must work for both loopback IPs and Self-IP address.
Given the fact that 1.10 supports --ip, it is something to be considered as well.

@sanimej @mavenugo
I am working in the Contiv team and tried this patch with docker1.10 to see if there are any issues with the co-existence of embedded DNS and external DNS server(s) provided by Contiv plugin. As mentioned by @jainvipin in https://github.com/docker/docker/issues/19474#issuecomment-183170767, we were hitting issues in a multi-tenant environment as Contiv plugin launches a DNS server per tenant.
With the following fix, we see that the multi-tenant DNS servers are being honored and handled as  expected:
https://gist.github.com/DivyaVavili/cae8636554985093c33f
PTAL and incorporate as necessary. I can open a PR for this if required.

@DivyaVavili The implementation in this PR to generate the queries from the container namespace might have some changes. We are also considering the option of generating all external queries from the container namespace by default. I will ping you when the updated changes are available for you to try it out.

Sure @sanimej... Thanks for the update... Will wait for the changes...

LGTM

btw, I tried the patch to confirm if the DNS query is originated from the container namespace and the following capture (in a fake external DNS in the same network confirmed it).
$ sudo docker run -itd --net=demo1 --dns=<IP_ADDRESS> --name=c1dns3 sanimej/ubuntu sh
1d855ceb9c44d0348c6870cdf6e75161c885d0cb56a3011ba5f7082bc5d42707

$ sudo docker exec c1dns3 dig www.google.com

# from inside <IP_ADDRESS> container

$ tcpdump -nnvvXSs 1514 -i eth0
03:10:28.697911 IP (tos 0x0, ttl 64, id 27702, offset 0, flags [DF], proto UDP (17), length 71)
    <IP_ADDRESS>.57490 > <IP_ADDRESS>.53: [bad udp cksum 0x586f -> 0xee9b!] 8225+ [1au] A? www.google.com. ar: . OPT UDPsize=4096 (43)
	0x0000:  4500 0047 6c36 4000 4011 7645 ac12 0004  E..Gl6<EMAIL_ADDRESS>	0x0010:  ac12 0002 e092 0035 0033 586f 2021 0120  .......5.3Xo.!..
	0x0020:  0001 0000 0000 0001 0377 7777 0667 6f6f  .........www.goo
	0x0030:  676c 6503 636f 6d00 0001 0001 0000 2910  gle.com.......).
	0x0040:  0000 0000 0000 00

@mrjana Addressed the comments.. PTAL

Thanks @sanimej for taking care of all the comments.
LGTM. Will merge when CI is green.


emit always hashchange (workaround to page load problem)

I've a problem with the initial DOMContentLoaded event.
I'm using bootstrap navbar. All tags are invisible at mount time.
After mounting, I need trigger a page route riot.route(page, true); to allow tags to become visible
if they are supposed to be visible.
I have to this, because no hashchange is fired by the browser on DOMContentLoaded event and therefore from the router.
Are there other solutions to this problem?
$(() => {
  riot.mount('*');
  riot.route.exec(page => {
    if (page === '') {
      riot.route('status');
    } else {
      riot.route(page, true);
    }
  });
});

I've updated the pull request. Now riot.route takes a second boolean parameter.

I think it's better to simply allow the initial route call to execute the listeners. I think this is a common scenario. Look for above commit.
What do you think?

I agree.

Cool. Closing this one.


readme.md question

" It encapsulates a moment in time that is  internally stored as the number of seconds since Jan 1, 2001 at 00:00 UTC. "  in the ReadMe.md.
Is writing wrong?
The time should be "Jan 1, 1900 at 00:00 UTC. " .

Nope! Please refer to the docs:
NSDate objects encapsulate a single point in time, independent of any particular calendrical system or time zone. Date objects are immutable, representing an invariant time interval relative to an absolute reference date (00:00:00 UTC on 1 January 2001).


Don't allow Destination port selector {}

Resolves https://github.com/istio/istio/issues/19271

@esnible: The following test failed, say /retest to rerun them all:

Test name
Commit
Details
Rerun command

lint_istio
be7a5ff5b1ada633cb59fc9c80dc9cfe5233145c
link
/test lint_istio

Instructions for interacting with me using PR comments are available here.  If you have questions or suggestions related to my behavior, please file an issue against the kubernetes/test-infra repository. I understand the commands that are listed here.

/test lint_istio

@esnible: The following test failed, say /retest to rerun them all:

Test name
Commit
Details
Rerun command

unit-tests_istio
be7a5ff5b1ada633cb59fc9c80dc9cfe5233145c
link
/test unit-tests_istio

Instructions for interacting with me using PR comments are available here.  If you have questions or suggestions related to my behavior, please file an issue against the kubernetes/test-infra repository. I understand the commands that are listed here.

/retest

@linsun @rshriram @geeknoid The validation code is in istio/istio's /pkg directory, which has no owners.  Thus this needs a top-level approval.
Perhaps we should give /pkg some owners, seeded from the other owners who have commits here.  I wrote a lot of the initial webhook validation but I can't nominate myself as a maintainer for /pkg.

@esnible this PR is approved already


fix url request for Spain MOFA getting 403 error

We can fix this error by adding Agent specifications when request.

re-opening as Spain MOFA data is missing again.


Build was failed duo to a newer version of macOS 12.0

Build was failed duo to a higer version of macOS
Showing Recent Issues
Ld /Users/winkee/Library/Developer/Xcode/DerivedData/KeynoteSVGUI-hcuuipfefrqsddemdrdokfbrizsg/Build/Products/Debug/KeynoteSVGUI.app/Contents/MacOS/KeynoteSVGUI normal (in target 'KeynoteSVGUI' from project 'KeynoteSVGUI')
    cd /Users/winkee/Downloads/SVG2Keynote-gui
    /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/clang++ -target x86_64-apple-macos10.15 -isysroot /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX12.1.sdk -L/Users/winkee/Library/Developer/Xcode/DerivedData/KeynoteSVGUI-hcuuipfefrqsddemdrdokfbrizsg/Build/Products/Debug -L/Users/winkee/Downloads/SVG2Keynote-gui -L/usr/local/lib -F/Users/winkee/Library/Developer/Xcode/DerivedData/KeynoteSVGUI-hcuuipfefrqsddemdrdokfbrizsg/Build/Products/Debug/PackageFrameworks -F/Users/winkee/Library/Developer/Xcode/DerivedData/KeynoteSVGUI-hcuuipfefrqsddemdrdokfbrizsg/Build/Products/Debug -filelist /Users/winkee/Library/Developer/Xcode/DerivedData/KeynoteSVGUI-hcuuipfefrqsddemdrdokfbrizsg/Build/Intermediates.noindex/KeynoteSVGUI.build/Debug/KeynoteSVGUI.build/Objects-normal/x86_64/KeynoteSVGUI.LinkFileList -Xlinker -rpath -Xlinker /usr/lib/swift -Xlinker -rpath -Xlinker @executable_path/../Frameworks -Xlinker -object_path_lto -Xlinker /Users/winkee/Library/Developer/Xcode/DerivedData/KeynoteSVGUI-hcuuipfefrqsddemdrdokfbrizsg/Build/Intermediates.noindex/KeynoteSVGUI.build/Debug/KeynoteSVGUI.build/Objects-normal/x86_64/KeynoteSVGUI_lto.o -Xlinker -export_dynamic -Xlinker -no_deduplicate -stdlib\=libc++ -fobjc-arc -fobjc-link-runtime -L/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/macosx -L/usr/lib/swift -Xlinker -add_ast_path -Xlinker /Users/winkee/Library/Developer/Xcode/DerivedData/KeynoteSVGUI-hcuuipfefrqsddemdrdokfbrizsg/Build/Intermediates.noindex/KeynoteSVGUI.build/Debug/KeynoteSVGUI.build/Objects-normal/x86_64/KeynoteSVGUI.swiftmodule -lprotobuf -lsnappy -lkeynote_lib -Xlinker -no_adhoc_codesign -Xlinker -dependency_info -Xlinker /Users/winkee/Library/Developer/Xcode/DerivedData/KeynoteSVGUI-hcuuipfefrqsddemdrdokfbrizsg/Build/Intermediates.noindex/KeynoteSVGUI.build/Debug/KeynoteSVGUI.build/Objects-normal/x86_64/KeynoteSVGUI_dependency_info.dat -o /Users/winkee/Library/Developer/Xcode/DerivedData/KeynoteSVGUI-hcuuipfefrqsddemdrdokfbrizsg/Build/Products/Debug/KeynoteSVGUI.app/Contents/MacOS/KeynoteSVGUI -Xlinker -add_ast_path -Xlinker /Users/winkee/Library/Developer/Xcode/DerivedData/KeynoteSVGUI-hcuuipfefrqsddemdrdokfbrizsg/Build/Intermediates.noindex/SVGWebView.build/Debug/SVGWebView.build/Objects-normal/x86_64/SVGWebView.swiftmodule

ld: warning: dylib (/usr/local/lib/libprotobuf.dylib) was built for newer macOS version (12.0) than being linked (10.15)
ld: warning: object file (/Users/winkee/Downloads/SVG2Keynote-gui/libkeynote_lib.a(keynote.cpp.o)) was built for newer macOS version (11.0) than being linked (10.15)
ld: warning: object file (/Users/winkee/Downloads/SVG2Keynote-gui/libkeynote_lib.a(proto_helper.cpp.o)) was built for newer macOS version (11.0) than being linked (10.15)
ld: warning: object file (/Users/winkee/Downloads/SVG2Keynote-gui/libkeynote_lib.a(key_to_svg.cpp.o)) was built for newer macOS version (11.0) than being linked (10.15)
ld: warning: object file (/Users/winkee/Downloads/SVG2Keynote-gui/libkeynote_lib.a(svg_to_key.cpp.o)) was built for newer macOS version (11.0) than being linked (10.15)
ld: warning: object file (/Users/winkee/Downloads/SVG2Keynote-gui/libkeynote_lib.a(common_message_creation.cpp.o)) was built for newer macOS version (11.0) than being linked (10.15)
ld: warning: object file (/Users/winkee/Downloads/SVG2Keynote-gui/libkeynote_lib.a(snappy_helper.cpp.o)) was built for newer macOS version (11.0) than being linked (10.15)
ld: warning: object file (/Users/winkee/Downloads/SVG2Keynote-gui/libkeynote_lib.a(nanosvg_helper.cpp.o)) was built for newer macOS version (11.0) than being linked (10.15)
ld: warning: object file (/Users/winkee/Downloads/SVG2Keynote-gui/libkeynote_lib.a(shape_creation_repository.cpp.o)) was built for newer macOS version (11.0) than being linked (10.15)
ld: warning: object file (/Users/winkee/Downloads/SVG2Keynote-gui/libkeynote_lib.a(svg_wrapper.cpp.o)) was built for newer macOS version (11.0) than being linked (10.15)
ld: warning: object file (/Users/winkee/Downloads/SVG2Keynote-gui/libkeynote_lib.a(ProtoMapping.cpp.o)) was built for newer macOS version (11.0) than being linked (10.15)
ld: warning: object file (/Users/winkee/Downloads/SVG2Keynote-gui/libkeynote_lib.a(SlideObjectFactory.cpp.o)) was built for newer macOS version (11.0) than being linked (10.15)
ld: warning: object file (/Users/winkee/Downloads/SVG2Keynote-gui/libkeynote_lib.a(KNArchives.pb.cc.o)) was built for newer macOS version (11.0) than being linked (10.15)
ld: warning: object file (/Users/winkee/Downloads/SVG2Keynote-gui/libkeynote_lib.a(TSDArchives.pb.cc.o)) was built for newer macOS version (11.0) than being linked (10.15)
ld: warning: object file (/Users/winkee/Downloads/SVG2Keynote-gui/libkeynote_lib.a(TSPArchiveMessages.pb.cc.o)) was built for newer macOS version (11.0) than being linked (10.15)
ld: warning: object file (/Users/winkee/Downloads/SVG2Keynote-gui/libkeynote_lib.a(TSPMessages.pb.cc.o)) was built for newer macOS version (11.0) than being linked (10.15)
ld: warning: object file (/Users/winkee/Downloads/SVG2Keynote-gui/libkeynote_lib.a(TSSArchives.pb.cc.o)) was built for newer macOS version (11.0) than being linked (10.15)
ld: warning: object file (/Users/winkee/Downloads/SVG2Keynote-gui/libkeynote_lib.a(TSWPArchives.pb.cc.o)) was built for newer macOS version (11.0) than being linked (10.15)
ld: warning: object file (/Users/winkee/Downloads/SVG2Keynote-gui/libkeynote_lib.a(nanosvg_impl.cpp.o)) was built for newer macOS version (11.0) than being linked (10.15)
ld: warning: object file (/Users/winkee/Downloads/SVG2Keynote-gui/libkeynote_lib.a(ShapeObject.cpp.o)) was built for newer macOS version (11.0) than being linked (10.15)
ld: warning: object file (/Users/winkee/Downloads/SVG2Keynote-gui/libkeynote_lib.a(SlideObject.cpp.o)) was built for newer macOS version (11.0) than being linked (10.15)
ld: warning: object file (/Users/winkee/Downloads/SVG2Keynote-gui/libkeynote_lib.a(KNCommandArchives.pb.cc.o)) was built for newer macOS version (11.0) than being linked (10.15)
ld: warning: object file (/Users/winkee/Downloads/SVG2Keynote-gui/libkeynote_lib.a(TSAArchives.pb.cc.o)) was built for newer macOS version (11.0) than being linked (10.15)
ld: warning: object file (/Users/winkee/Downloads/SVG2Keynote-gui/libkeynote_lib.a(TSDCommandArchives.pb.cc.o)) was built for newer macOS version (11.0) than being linked (10.15)
ld: warning: object file (/Users/winkee/Downloads/SVG2Keynote-gui/libkeynote_lib.a(TSKArchives.pb.cc.o)) was built for newer macOS version (11.0) than being linked (10.15)
ld: warning: object file (/Users/winkee/Downloads/SVG2Keynote-gui/libkeynote_lib.a(TSTArchives.pb.cc.o)) was built for newer macOS version (11.0) than being linked (10.15)
ld: warning: object file (/Users/winkee/Downloads/SVG2Keynote-gui/libkeynote_lib.a(TSTCommandArchives.pb.cc.o)) was built for newer macOS version (11.0) than being linked (10.15)
ld: warning: object file (/Users/winkee/Downloads/SVG2Keynote-gui/libkeynote_lib.a(TSTStylePropertyArchiving.pb.cc.o)) was built for newer macOS version (11.0) than being linked (10.15)
ld: warning: object file (/Users/winkee/Downloads/SVG2Keynote-gui/libkeynote_lib.a(TSCEArchives.pb.cc.o)) was built for newer macOS version (11.0) than being linked (10.15)
ld: warning: object file (/Users/winkee/Downloads/SVG2Keynote-gui/libkeynote_lib.a(TSCHArchives.pb.cc.o)) was built for newer macOS version (11.0) than being linked (10.15)
ld: warning: object file (/Users/winkee/Downloads/SVG2Keynote-gui/libkeynote_lib.a(TSCHArchives.Common.pb.cc.o)) was built for newer macOS version (11.0) than being linked (10.15)
ld: warning: object file (/Users/winkee/Downloads/SVG2Keynote-gui/libkeynote_lib.a(TSCHCommandArchives.pb.cc.o)) was built for newer macOS version (11.0) than being linked (10.15)
ld: warning: object file (/Users/winkee/Downloads/SVG2Keynote-gui/libkeynote_lib.a(TSCHPreUFFArchives.pb.cc.o)) was built for newer macOS version (11.0) than being linked (10.15)
ld: warning: object file (/Users/winkee/Downloads/SVG2Keynote-gui/libkeynote_lib.a(TSWPCommandArchives.pb.cc.o)) was built for newer macOS version (11.0) than being linked (10.15)
ld: warning: object file (/Users/winkee/Downloads/SVG2Keynote-gui/libkeynote_lib.a(KNCommandArchives.sos.pb.cc.o)) was built for newer macOS version (11.0) than being linked (10.15)
ld: warning: object file (/Users/winkee/Downloads/SVG2Keynote-gui/libkeynote_lib.a(TSACommandArchives.sos.pb.cc.o)) was built for newer macOS version (11.0) than being linked (10.15)
ld: warning: object file (/Users/winkee/Downloads/SVG2Keynote-gui/libkeynote_lib.a(TSKArchives.sos.pb.cc.o)) was built for newer macOS version (11.0) than being linked (10.15)
ld: warning: object file (/Users/winkee/Downloads/SVG2Keynote-gui/libsnappy.a(snappy.cc.o)) was built for newer macOS version (11.0) than being linked (10.15)
ld: warning: object file (/Users/winkee/Downloads/SVG2Keynote-gui/libkeynote_lib.a(TSWPArchives.sos.pb.cc.o)) was built for newer macOS version (11.0) than being linked (10.15)
ld: warning: object file (/Users/winkee/Downloads/SVG2Keynote-gui/libkeynote_lib.a(BaseObject.cpp.o)) was built for newer macOS version (11.0) than being linked (10.15)
ld: warning: object file (/Users/winkee/Downloads/SVG2Keynote-gui/libkeynote_lib.a(TSCH3DArchives.pb.cc.o)) was built for newer macOS version (11.0) than being linked (10.15)
ld: warning: object file (/Users/winkee/Downloads/SVG2Keynote-gui/libkeynote_lib.a(TSCHArchives.GEN.pb.cc.o)) was built for newer macOS version (11.0) than being linked (10.15)
ld: warning: object file (/Users/winkee/Downloads/SVG2Keynote-gui/libkeynote_lib.a(TSAArchives.sos.pb.cc.o)) was built for newer macOS version (11.0) than being linked (10.15)
ld: warning: object file (/Users/winkee/Downloads/SVG2Keynote-gui/libkeynote_lib.a(TSDArchives.sos.pb.cc.o)) was built for newer macOS version (11.0) than being linked (10.15)
ld: warning: object file (/Users/winkee/Downloads/SVG2Keynote-gui/libkeynote_lib.a(TSSArchives.sos.pb.cc.o)) was built for newer macOS version (11.0) than being linked (10.15)
ld: warning: object file (/Users/winkee/Downloads/SVG2Keynote-gui/libkeynote_lib.a(TSTArchives.sos.pb.cc.o)) was built for newer macOS version (11.0) than being linked (10.15)
ld: warning: object file (/Users/winkee/Downloads/SVG2Keynote-gui/libsnappy.a(snappy-sinksource.cc.o)) was built for newer macOS version (11.0) than being linked (10.15)
Undefined symbols for architecture x86_64:
  "google::protobuf::internal::ExtensionSet::MergeFrom(google::protobuf::internal::ExtensionSet const&)", referenced from:
      TSD::FillArchive::FillArchive(TSD::FillArchive const&) in libkeynote_lib.a(TSDArchives.pb.cc.o)
      TSD::FillArchive::MergeFrom(TSD::FillArchive const&) in libkeynote_lib.a(TSDArchives.pb.cc.o)
      TSD::GroupArchive::GroupArchive(TSD::GroupArchive const&) in libkeynote_lib.a(TSDArchives.pb.cc.o)
      TSD::GroupArchive::MergeFrom(TSD::GroupArchive const&) in libkeynote_lib.a(TSDArchives.pb.cc.o)
      TSD::ImageArchive::ImageArchive(TSD::ImageArchive const&) in libkeynote_lib.a(TSDArchives.pb.cc.o)
      TSD::ImageArchive::MergeFrom(TSD::ImageArchive const&) in libkeynote_lib.a(TSDArchives.pb.cc.o)
      TSP::DataAttributes::DataAttributes(TSP::DataAttributes const&) in libkeynote_lib.a(TSPMessages.pb.cc.o)
      ...
  "google::protobuf::internal::ExtensionSet::_InternalSerializeImpl(int, int, unsigned char*, google::protobuf::io::EpsCopyOutputStream*) const", referenced from:
      TSD::FillArchive::_InternalSerialize(unsigned char*, google::protobuf::io::EpsCopyOutputStream*) const in libkeynote_lib.a(TSDArchives.pb.cc.o)
      TSD::GroupArchive::_InternalSerialize(unsigned char*, google::protobuf::io::EpsCopyOutputStream*) const in libkeynote_lib.a(TSDArchives.pb.cc.o)
      TSD::ImageArchive::_InternalSerialize(unsigned char*, google::protobuf::io::EpsCopyOutputStream*) const in libkeynote_lib.a(TSDArchives.pb.cc.o)
      TSP::DataAttributes::_InternalSerialize(unsigned char*, google::protobuf::io::EpsCopyOutputStream*) const in libkeynote_lib.a(TSPMessages.pb.cc.o)
      TSS::ThemeArchive::_InternalSerialize(unsigned char*, google::protobuf::io::EpsCopyOutputStream*) const in libkeynote_lib.a(TSSArchives.pb.cc.o)
      TSS::CommandPropertyEntryArchive::_InternalSerialize(unsigned char*, google::protobuf::io::EpsCopyOutputStream*) const in libkeynote_lib.a(TSSArchives.pb.cc.o)
      TSK::FormatStructArchive::_InternalSerialize(unsigned char*, google::protobuf::io::EpsCopyOutputStream*) const in libkeynote_lib.a(TSKArchives.pb.cc.o)
      ...
ld: symbol(s) not found for architecture x86_64
clang: error: linker command failed with exit code 1 (use -v to see invocation)

solved by rebuilding libkeynote_lib.a in my environment.

@kostua-xd you can follow this steps
brew install boost
brew install protobuf
git clone --recurse-submodules https://github.com/eth-siplab/SVG2Keynote-lib
cd SVG2Keynote-lib
cmake -H. -Bbuild -DBoost_NO_BOOST_CMAKE=ON
make -C build

After success, you replace libkeynote_lib.a with your newly built one.

Thank you for helping me. I have got "fatal error: too many errors emitted, stopping now [-ferror-limit=]
20 errors generated." doing "make -C build". Do you maybe know why?

what errors? post the details

kanstantsinsuvorau@macbook-pro SVG2Keynote-lib % make -C build
Consolidate compiler generated dependencies of target keynote_lib
[  1%] Building CXX object keynote_lib/CMakeFiles/keynote_lib.dir/proto_helper.cpp.o
In file included from /Users/kanstantsinsuvorau/SVG2Keynote-lib/keynote_lib/proto_helper.cpp:7:
In file included from /Users/kanstantsinsuvorau/SVG2Keynote-lib/keynote_lib/../keynote-protos/mapping/ProtoMapping.h:8:
/Users/kanstantsinsuvorau/SVG2Keynote-lib/keynote_lib/../keynote-protos/gen/KNArchives.pb.h:17:2: error: This file was generated by an older version of protoc which is
#error This file was generated by an older version of protoc which is
^
/Users/kanstantsinsuvorau/SVG2Keynote-lib/keynote_lib/../keynote-protos/gen/KNArchives.pb.h:18:2: error: incompatible with your Protocol Buffer headers. Please
#error incompatible with your Protocol Buffer headers. Please
^
/Users/kanstantsinsuvorau/SVG2Keynote-lib/keynote_lib/../keynote-protos/gen/KNArchives.pb.h:19:2: error: regenerate this file with a newer version of protoc.
#error regenerate this file with a newer version of protoc.
^
In file included from /Users/kanstantsinsuvorau/SVG2Keynote-lib/keynote_lib/proto_helper.cpp:7:
In file included from /Users/kanstantsinsuvorau/SVG2Keynote-lib/keynote_lib/../keynote-protos/mapping/ProtoMapping.h:8:
In file included from /Users/kanstantsinsuvorau/SVG2Keynote-lib/keynote_lib/../keynote-protos/gen/KNArchives.pb.h:35:
/Users/kanstantsinsuvorau/SVG2Keynote-lib/keynote_lib/../keynote-protos/gen/TSPMessages.pb.h:17:2: error: This file was generated by an older version of protoc which is
#error This file was generated by an older version of protoc which is
^
/Users/kanstantsinsuvorau/SVG2Keynote-lib/keynote_lib/../keynote-protos/gen/TSPMessages.pb.h:18:2: error: incompatible with your Protocol Buffer headers. Please
#error incompatible with your Protocol Buffer headers. Please
^
/Users/kanstantsinsuvorau/SVG2Keynote-lib/keynote_lib/../keynote-protos/gen/TSPMessages.pb.h:19:2: error: regenerate this file with a newer version of protoc.
#error regenerate this file with a newer version of protoc.
^
/Users/kanstantsinsuvorau/SVG2Keynote-lib/keynote_lib/../keynote-protos/gen/TSPMessages.pb.h:409:33: error: non-virtual member function marked 'final' hides virtual member function
inline Reference* New() const final {
^
/opt/homebrew/include/google/protobuf/message.h:251:12: note: hidden overloaded virtual function 'google::protobuf::Message::New' declared here: different number of parameters (1 vs 0)
Message* New(Arena* arena) const override = 0;
^
In file included from /Users/kanstantsinsuvorau/SVG2Keynote-lib/keynote_lib/proto_helper.cpp:7:
In file included from /Users/kanstantsinsuvorau/SVG2Keynote-lib/keynote_lib/../keynote-protos/mapping/ProtoMapping.h:8:
In file included from /Users/kanstantsinsuvorau/SVG2Keynote-lib/keynote_lib/../keynote-protos/gen/KNArchives.pb.h:35:
/Users/kanstantsinsuvorau/SVG2Keynote-lib/keynote_lib/../keynote-protos/gen/TSPMessages.pb.h:590:37: error: non-virtual member function marked 'final' hides virtual member function
inline DataReference* New() const final {
^
/opt/homebrew/include/google/protobuf/message.h:251:12: note: hidden overloaded virtual function 'google::protobuf::Message::New' declared here: different number of parameters (1 vs 0)
Message* New(Arena* arena) const override = 0;
^
In file included from /Users/kanstantsinsuvorau/SVG2Keynote-lib/keynote_lib/proto_helper.cpp:7:
In file included from /Users/kanstantsinsuvorau/SVG2Keynote-lib/keynote_lib/../keynote-protos/mapping/ProtoMapping.h:8:
In file included from /Users/kanstantsinsuvorau/SVG2Keynote-lib/keynote_lib/../keynote-protos/gen/KNArchives.pb.h:35:
/Users/kanstantsinsuvorau/SVG2Keynote-lib/keynote_lib/../keynote-protos/gen/TSPMessages.pb.h:741:50: error: non-virtual member function marked 'final' hides virtual member function
inline SparseReferenceArray_Entry* New() const final {
^
/opt/homebrew/include/google/protobuf/message.h:251:12: note: hidden overloaded virtual function 'google::protobuf::Message::New' declared here: different number of parameters (1 vs 0)
Message* New(Arena* arena) const override = 0;
^
In file included from /Users/kanstantsinsuvorau/SVG2Keynote-lib/keynote_lib/proto_helper.cpp:7:
In file included from /Users/kanstantsinsuvorau/SVG2Keynote-lib/keynote_lib/../keynote-protos/mapping/ProtoMapping.h:8:
In file included from /Users/kanstantsinsuvorau/SVG2Keynote-lib/keynote_lib/../keynote-protos/gen/KNArchives.pb.h:35:
/Users/kanstantsinsuvorau/SVG2Keynote-lib/keynote_lib/../keynote-protos/gen/TSPMessages.pb.h:801:3: error: use of undeclared identifier 'PROTOBUF_MUST_USE_RESULT'
PROTOBUF_MUST_USE_RESULT ::TSP::Reference* release_reference();
^
/Users/kanstantsinsuvorau/SVG2Keynote-lib/keynote_lib/../keynote-protos/gen/TSPMessages.pb.h:915:44: error: non-virtual member function marked 'final' hides virtual member function
inline SparseReferenceArray* New() const final {
^
/opt/homebrew/include/google/protobuf/message.h:251:12: note: hidden overloaded virtual function 'google::protobuf::Message::New' declared here: different number of parameters (1 vs 0)
Message* New(Arena* arena) const override = 0;
^
In file included from /Users/kanstantsinsuvorau/SVG2Keynote-lib/keynote_lib/proto_helper.cpp:7:
In file included from /Users/kanstantsinsuvorau/SVG2Keynote-lib/keynote_lib/../keynote-protos/mapping/ProtoMapping.h:8:
In file included from /Users/kanstantsinsuvorau/SVG2Keynote-lib/keynote_lib/../keynote-protos/gen/KNArchives.pb.h:35:
/Users/kanstantsinsuvorau/SVG2Keynote-lib/keynote_lib/../keynote-protos/gen/TSPMessages.pb.h:1088:29: error: non-virtual member function marked 'final' hides virtual member function
inline Point* New() const final {
^
/opt/homebrew/include/google/protobuf/message.h:251:12: note: hidden overloaded virtual function 'google::protobuf::Message::New' declared here: different number of parameters (1 vs 0)
Message* New(Arena* arena) const override = 0;
^
In file included from /Users/kanstantsinsuvorau/SVG2Keynote-lib/keynote_lib/proto_helper.cpp:7:
In file included from /Users/kanstantsinsuvorau/SVG2Keynote-lib/keynote_lib/../keynote-protos/mapping/ProtoMapping.h:8:
In file included from /Users/kanstantsinsuvorau/SVG2Keynote-lib/keynote_lib/../keynote-protos/gen/KNArchives.pb.h:35:
/Users/kanstantsinsuvorau/SVG2Keynote-lib/keynote_lib/../keynote-protos/gen/TSPMessages.pb.h:1257:28: error: non-virtual member function marked 'final' hides virtual member function
inline Size* New() const final {
^
/opt/homebrew/include/google/protobuf/message.h:251:12: note: hidden overloaded virtual function 'google::protobuf::Message::New' declared here: different number of parameters (1 vs 0)
Message* New(Arena* arena) const override = 0;
^
In file included from /Users/kanstantsinsuvorau/SVG2Keynote-lib/keynote_lib/proto_helper.cpp:7:
In file included from /Users/kanstantsinsuvorau/SVG2Keynote-lib/keynote_lib/../keynote-protos/mapping/ProtoMapping.h:8:
In file included from /Users/kanstantsinsuvorau/SVG2Keynote-lib/keynote_lib/../keynote-protos/gen/KNArchives.pb.h:35:
/Users/kanstantsinsuvorau/SVG2Keynote-lib/keynote_lib/../keynote-protos/gen/TSPMessages.pb.h:1426:29: error: non-virtual member function marked 'final' hides virtual member function
inline Range* New() const final {
^
/opt/homebrew/include/google/protobuf/message.h:251:12: note: hidden overloaded virtual function 'google::protobuf::Message::New' declared here: different number of parameters (1 vs 0)
Message* New(Arena* arena) const override = 0;
^
In file included from /Users/kanstantsinsuvorau/SVG2Keynote-lib/keynote_lib/proto_helper.cpp:7:
In file included from /Users/kanstantsinsuvorau/SVG2Keynote-lib/keynote_lib/../keynote-protos/mapping/ProtoMapping.h:8:
In file included from /Users/kanstantsinsuvorau/SVG2Keynote-lib/keynote_lib/../keynote-protos/gen/KNArchives.pb.h:35:
/Users/kanstantsinsuvorau/SVG2Keynote-lib/keynote_lib/../keynote-protos/gen/TSPMessages.pb.h:1595:28: error: non-virtual member function marked 'final' hides virtual member function
inline Date* New() const final {
^
/opt/homebrew/include/google/protobuf/message.h:251:12: note: hidden overloaded virtual function 'google::protobuf::Message::New' declared here: different number of parameters (1 vs 0)
Message* New(Arena* arena) const override = 0;
^
In file included from /Users/kanstantsinsuvorau/SVG2Keynote-lib/keynote_lib/proto_helper.cpp:7:
In file included from /Users/kanstantsinsuvorau/SVG2Keynote-lib/keynote_lib/../keynote-protos/mapping/ProtoMapping.h:8:
In file included from /Users/kanstantsinsuvorau/SVG2Keynote-lib/keynote_lib/../keynote-protos/gen/KNArchives.pb.h:35:
/Users/kanstantsinsuvorau/SVG2Keynote-lib/keynote_lib/../keynote-protos/gen/TSPMessages.pb.h:1746:32: error: non-virtual member function marked 'final' hides virtual member function
inline IndexSet* New() const final {
^
/opt/homebrew/include/google/protobuf/message.h:251:12: note: hidden overloaded virtual function 'google::protobuf::Message::New' declared here: different number of parameters (1 vs 0)
Message* New(Arena* arena) const override = 0;
^
In file included from /Users/kanstantsinsuvorau/SVG2Keynote-lib/keynote_lib/proto_helper.cpp:7:
In file included from /Users/kanstantsinsuvorau/SVG2Keynote-lib/keynote_lib/../keynote-protos/mapping/ProtoMapping.h:8:
In file included from /Users/kanstantsinsuvorau/SVG2Keynote-lib/keynote_lib/../keynote-protos/gen/KNArchives.pb.h:35:
/Users/kanstantsinsuvorau/SVG2Keynote-lib/keynote_lib/../keynote-protos/gen/TSPMessages.pb.h:1901:29: error: non-virtual member function marked 'final' hides virtual member function
inline Color* New() const final {
^
/opt/homebrew/include/google/protobuf/message.h:251:12: note: hidden overloaded virtual function 'google::protobuf::Message::New' declared here: different number of parameters (1 vs 0)
Message* New(Arena* arena) const override = 0;
^
In file included from /Users/kanstantsinsuvorau/SVG2Keynote-lib/keynote_lib/proto_helper.cpp:7:
In file included from /Users/kanstantsinsuvorau/SVG2Keynote-lib/keynote_lib/../keynote-protos/mapping/ProtoMapping.h:8:
In file included from /Users/kanstantsinsuvorau/SVG2Keynote-lib/keynote_lib/../keynote-protos/gen/KNArchives.pb.h:35:
/Users/kanstantsinsuvorau/SVG2Keynote-lib/keynote_lib/../keynote-protos/gen/TSPMessages.pb.h:2264:36: error: non-virtual member function marked 'final' hides virtual member function
inline Path_Element* New() const final {
^
/opt/homebrew/include/google/protobuf/message.h:251:12: note: hidden overloaded virtual function 'google::protobuf::Message::New' declared here: different number of parameters (1 vs 0)
Message* New(Arena* arena) const override = 0;
^
In file included from /Users/kanstantsinsuvorau/SVG2Keynote-lib/keynote_lib/proto_helper.cpp:7:
In file included from /Users/kanstantsinsuvorau/SVG2Keynote-lib/keynote_lib/../keynote-protos/mapping/ProtoMapping.h:8:
In file included from /Users/kanstantsinsuvorau/SVG2Keynote-lib/keynote_lib/../keynote-protos/gen/KNArchives.pb.h:35:
/Users/kanstantsinsuvorau/SVG2Keynote-lib/keynote_lib/../keynote-protos/gen/TSPMessages.pb.h:2435:28: error: non-virtual member function marked 'final' hides virtual member function
inline Path* New() const final {
^
/opt/homebrew/include/google/protobuf/message.h:251:12: note: hidden overloaded virtual function 'google::protobuf::Message::New' declared here: different number of parameters (1 vs 0)
Message* New(Arena* arena) const override = 0;
^
fatal error: too many errors emitted, stopping now [-ferror-limit=]
20 errors generated.
make[2]: *** [keynote_lib/CMakeFiles/keynote_lib.dir/proto_helper.cpp.o] Error 1
make[1]: *** [keynote_lib/CMakeFiles/keynote_lib.dir/all] Error 2
make: *** [all] Error 2
These errors 😅

you also have to rebuild proto-dump, it's a binary executable application.

Follow the below instructions:
1) clone proto-dump repo
git clone --recurse-submodules https://github.com/obriensp/proto-dump

2) compile proto-dump source to get the binary app
use xcode to open .proto-dump.xcodeproj project file, and compile.
After success, you replace the old one with it.
3) execute get-protos.sh
get-protos.sh is a bash script, executing it will generate the necessary files for you, which is shown in your error messages.
**4) make -C build


Make celestial coordinates the default

We made the unfortunate (though physically motivated) decision to use Galactic coordinates as the default. We need to change this to Celestial, and make sure that the infrastructure for changing coordinate systems actually works.

I think that this is now done.


[DT][GPU] Implement GPUEncodingLayoutAttr.

The revision introduces GPUEncodingLayoutAttr and moves the encoding
materialization logic to the attribute implementation. There are no
functional changes on the moved codes. The additional changes are:

Remove IREE::GPU namespaces because they are under the same
namespace now.
Create lowerContractionOpToMultiMmaOp method, which lowers linalg
contraction ops to multi_mma ops. The code is moved from
GPUMaterializationEncoding.cpp. It returns nullptr instead if there is
a failure.
Log debug messages through LDBG.

No new tests because it does not change the functionality; it is covered
by gpu_materialize_encoding.mlir.

Let's discuss this tomorrow! My main concern is that this is moving a lot of domain-specific, nontrivial logic into one shared location, IREEGPUAttrs.cpp. I was trying to work towards the opposite direction, moving nontrivial code out of that file. Generally, I wish that dialect-implementation .cpp files contained mostly boring functions, and that the interesting domain-specific functions were in domain-specific files.

Let's discuss this tomorrow! My main concern is that this is moving a lot of domain-specific, nontrivial logic into one shared location, IREEGPUAttrs.cpp. I was trying to work towards the opposite direction, moving nontrivial code out of that file. Generally, I wish that dialect-implementation .cpp files contained mostly boring functions, and that the interesting domain-specific functions were in domain-specific files.

Interesting, I also feel bad when I created the PR. Definitely want to keep those simple (and boring :p). A potential solution is registering the interface externally, and we could put the implementation to Codegen/Interface/whatever.cpp. I have done it for operations, but not attributes. I think it should be doable, according to the doc: https://mlir.llvm.org/docs/Interfaces/#external-models-for-attribute-operation-and-type-interfaces

I'll raise a new PR and we can see the difference. It should look better, will put the update later.

Landing the change in https://github.com/iree-org/iree/pull/19392, closing this one


Removing AST node creation

For parity with other parsers, I am removing the AST creation.

Can the Myna parser be used productivity without the ".ast" calls?
Is there a way to embed user semantic actions without ".ast" calls?
For example parsimmon includes a .map API
https://github.com/jneen/parsimmon/blob/master/examples/json.js#L87
I've been thinking about a clearer methodology definition to the benchmark.
https://github.com/SAP/chevrotain/issues/482
And need to create a markdown document linked from the Benchmark to describe it.
I'm leaning towards defining "parsing" as all the runtime steps up-to and excluding the user semantic actions.
So if the ".ast" calls are required to productivity use the grammar they should stay.
If not they can be removed.
Performance impact seems minor (5% maybe) so that is not an issue.

In Myna you can use an action rule which will execute a void function given the current parse state. If I understand correctly the other parsers don't create parse trees, correct? The performance benefits may be small now but will be very substantial later when the RegisterGrammar function optimizes rules (e.g. via rule inlining).

Can this action API be used to construct an output structure?

Particularly because it does not return anything

Could ".action" be realistically used to construct output structures?
Should Myna be used like that (even if possible?)

I tried using the ".action" api without success, could not find any example in the repo either.
Can you show a small example? It is interesting as I want to implement a declarative API
similar to Myna for Chevrotain.

If I understand correctly the other parsers don't create parse trees, correct?

Some do, for example:

I'm pretty sure ohm.js creates a parse tree to later traverse with its separated semantics capabilities.

One of the maintainers of Nearley said that Nearley creates parse trees internally
and that is one of the things making the benchmark misleading, although those parse
trees are completely inaccessible by the end user and apparently needed by nearley to run... 😄

I also think I will add a variant of Chevrotain with CST creation enabled
which is worse in terms of performance as its a bigger data structure.

I am creating a document to describe the benchmarking methodology.
I'll be happy to receive feedback on it and hopefully it will make my reasoning clearer? 😄

Can this action API be used to construct an output structure?

Particularly because it does not return anything

Could ".action" be realistically used to construct output structures?
Should Myna be used like that (even if possible?)

I tried using the ".action" api without success, could not find any example in the repo either.
Can you show a small example? It is interesting as I want to implement a declarative API
similar to Myna for Chevrotain.

If I understand correctly the other parsers don't create parse trees, correct?

Some do, for example:

I'm pretty sure ohm.js creates a parse tree to later traverse with its separated semantics capabilities.

One of the maintainers of Nearley said that Nearley creates parse trees internally
and that is one of the things making the benchmark misleading, although those parse
trees are completely inaccessible by the end user and apparently needed by nearley to run... 😄

I also think I will add a variant of Chevrotain with CST creation enabled
which is worse in terms of performance as its a bigger data structure.

I am creating a document to describe the benchmarking methodology.
I'll be happy to receive feedback on it and hopefully it will make my reasoning clearer? 😄

"None of the parsers have any user defined output actions. they only parse the text without errors."

I don't understand. I am submitting a change to make this true for Myna. Right now the Myna grammar you are bench-marking is creating a parse tree, which puts it a disadvantage compared to Chevrotain.

I don't understand. I am submitting a change to make this true for Myna. Right now the Myna grammar you are bench-marking is creating a parse tree, which puts it a disadvantage compared to Chevrotain.

I'm in the process of updating the benchmark page.
Let finish this first and it will describe the methodology better.

Hi @cdiggins
See: https://github.com/SAP/chevrotain/issues/482#issuecomment-305311125
This is what I'm aiming for the performance benchmark.
please ignore whatever is currently written in the performance html page.
I will update it too as I align the benchmark with the methodology (weekend probably)
Feedback on the methodology is welcome. (in #482 please).
It also contains a section referring to this very pull request.
I don't know if this pull request should be merged or not.
But hopefully after you read the methodology draft you will be able to answer that question yourself.
(if I was clear enough 😄 )

See updated benchmark page.
http://sap.github.io/chevrotain/performance/

Relevant section in the parsing methodology:
https://github.com/SAP/chevrotain/blob/gh-pages/performance/README.md#what-is-measured
Let me know if removing the ".ast" complies with the methodology.
if not just close the pull request...
The performance page also includes variants which generates Parse Trees with
both Antlr and Chevrotain.

@bd82 "Let me know if removing the ".ast" complies with the methodology.". Yes. :-)

O.k. update the pull request (merge conflicts) and ill merge it.

closing this PR as the merge conflict was not fixed.
I have integrated this requested change in:
https://github.com/SAP/chevrotain/commit/ed8d91038e6ee84985009ec61c93a6d982165c48


netjsongraph

Hello i'm developing a application django who will use netjsongraph.
So my problem is why  to put the url  json in d3.netJsonGraph()
i tried all means but i can not.
can anyone help me please
Thanks you f

Hi @deugeu, I haven't understood your question well, could you expand a bit?

Hi  @nemesisdesign ! I need to put the json's link in my HTML file, so I wonder how can I configure the json link in the d3.netJsonGraph()
Ex : d3.netJsonGraph({ % static './data/netjson.json'%})
I tried with this exemple but it doesn't work, could you please help me to find out how to configure the json's link in  d3.netJsonGraph() ?
Thanks you !

@deugeu, do you need to customize the HTML

Hi @nemesisdesign ! I created a function following on view will get the data on database
def data_json(request):
data_nodes = []
data_links = []
query_nodes = Nodes.objects.all()
query_links = links.objects.all()
for link in query_links:
    data_links.append({"source":link.source,
                       "target":link.target,
                       "cost":link.cost
                       })
for node in query_nodes:
    data_nodes.append({"id":node.ip_address,
                       "label": node.label
                       })
netjson = OrderedDict((
    ('nodes', data_nodes),
    ('links', data_links)
))
data = json.dumps(netjson, indent=2 ,sort_keys=True)
return HttpResponse(data, content_type='application/json')

And to send results the format json in the page HTML ( link <IP_ADDRESS>/data_json)
results
{
"links": [
{
"cost": 1.0,
"source": "<IP_ADDRESS>",
"target": "<IP_ADDRESS>"
},
{
"cost": 1.0,
"source": "<IP_ADDRESS>",
"target": "<IP_ADDRESS>"
},
{
"cost": 1.0,
"source": "<IP_ADDRESS>",
"target": "<IP_ADDRESS>"
},
{
"cost": 1.0,
"source": "<IP_ADDRESS>",
"target": "<IP_ADDRESS>"
},
{
"cost": 1.0,
"source": "<IP_ADDRESS>",
"target": "<IP_ADDRESS>"
}
],
"nodes": [
{
"id": "<IP_ADDRESS>",
"label": null
},
{
"id": "<IP_ADDRESS>",
"label": null
},
{
"id": "<IP_ADDRESS>",
"label": null
},
{
"id": "<IP_ADDRESS>",
"label": null
},
{
"id": "<IP_ADDRESS>",
"label": null
}
]
}
so i want put the link json example(<IP_ADDRESS>/data_json)  on d3.netJsonGraph(HERE) as you did with API framework_rest


Can't build after last update  1.25.0-5.0.pre.116

build output:
FAILURE: Build failed with an exception.
[   +2 ms] * What went wrong:
[        ] Could not determine the dependencies of task ':image_picker:compileReleaseAidl'.
[  +38 ms] > Could not resolve all task dependencies for configuration ':image_picker:releaseCompileClasspath'.
[        ]    > Could not resolve androidx.core:core:1.0.2.
[  +23 ms]      Required by:
[   +3 ms]          project :image_picker
[        ]       > Cannot find a version of 'androidx.core:core' that satisfies the version constraints:
[        ]            Dependency path 'io.flutter.plugins.imagepicker:image_picker:1.0-SNAPSHOT' --> 'androidx.core:core:1.0.2'
[  +20 ms]            Constraint path 'io.flutter.plugins.imagepicker:image_picker:1.0-SNAPSHOT' --> 'androidx.core:core:{strictly 1.0.2}' because of the following reason: releaseRuntimeClasspath uses version 1.0.2
[  +15 ms]            Dependency path 'io.flutter.plugins.imagepicker:image_picker:1.0-SNAPSHOT' --> 'io.flutter:flutter_embedding_release:1.0.0-4d1465f77e73277913f58d6c713c9d4a816ddb95' --> 'androidx.fragment:fragment:1.1.0' -->
'androidx.core:core:1.1.0'
[   +1 ms]            Dependency path 'io.flutter.plugins.imagepicker:image_picker:1.0-SNAPSHOT' --> 'io.flutter:flutter_embedding_release:1.0.0-4d1465f77e73277913f58d6c713c9d4a816ddb95' --> 'androidx.fragment:fragment:1.1.0' -->
'androidx.viewpager:viewpager:1.0.0' --> 'androidx.core:core:1.0.0'
[   +1 ms]            Dependency path 'io.flutter.plugins.imagepicker:image_picker:1.0-SNAPSHOT' --> 'io.flutter:flutter_embedding_release:1.0.0-4d1465f77e73277913f58d6c713c9d4a816ddb95' --> 'androidx.fragment:fragment:1.1.0' -->
'androidx.loader:loader:1.0.0' --> 'androidx.core:core:1.0.0'
[   +1 ms]            Dependency path 'io.flutter.plugins.imagepicker:image_picker:1.0-SNAPSHOT' --> 'io.flutter:flutter_embedding_release:1.0.0-4d1465f77e73277913f58d6c713c9d4a816ddb95' --> 'androidx.fragment:fragment:1.1.0' -->
'androidx.activity:activity:1.0.0' --> 'androidx.core:core:1.1.0'
[   +1 ms]            Dependency path 'io.flutter.plugins.imagepicker:image_picker:1.0-SNAPSHOT' --> 'io.flutter:flutter_embedding_release:1.0.0-4d1465f77e73277913f58d6c713c9d4a816ddb95' --> 'androidx.fragment:fragment:1.1.0' -->
'androidx.viewpager:viewpager:1.0.0' --> 'androidx.customview:customview:1.0.0' --> 'androidx.core:core:1.0.0'
[  +17 ms]    > Could not resolve androidx.core:core:{strictly 1.0.2}.
[        ]      Required by:
[        ]          project :image_picker
[        ]       > Cannot find a version of 'androidx.core:core' that satisfies the version constraints:
[        ]            Dependency path 'io.flutter.plugins.imagepicker:image_picker:1.0-SNAPSHOT' --> 'androidx.core:core:1.0.2'
[        ]            Constraint path 'io.flutter.plugins.imagepicker:image_picker:1.0-SNAPSHOT' --> 'androidx.core:core:{strictly 1.0.2}' because of the following reason: releaseRuntimeClasspath uses version 1.0.2
[        ]            Dependency path 'io.flutter.plugins.imagepicker:image_picker:1.0-SNAPSHOT' --> 'io.flutter:flutter_embedding_release:1.0.0-4d1465f77e73277913f58d6c713c9d4a816ddb95' --> 'androidx.fragment:fragment:1.1.0' -->
'androidx.core:core:1.1.0'
<<<<<<<<<<>>>>>>>>>>>>>>>>>>>>
pupspec
name: xxxx
description: A nice Project.
version: 1.0.0+1
environment:
sdk: ">=2.2.2 <3.0.0"
dependencies:
flutter:
sdk: flutter
flutter_localizations:
sdk: flutter
http: ^0.12.1
provider: ^4.0.1
flutter_bloc: ^6.1.0
flutter_spinkit: ^4.1.2+1
intl: ^0.17.0-nullsafety.2
shared_preferences: ^0.5.12+4
cupertino_icons: ^0.1.2
barcode_scan: ^2.0.1
qr_flutter: ^3.2.0
path_provider: ^1.6.5
image_picker: 0.6.7+14
equatable: ^1.2.5
socket_io_client: ^0.9.12
dev_dependencies:
flutter_test:
sdk: flutter
<<<<<<<<<<>>>>>>>>>>>>>>>>>>>>
doctor:
Doctor summary (to see all details, run flutter doctor -v):
[√] Flutter (Channel master, 1.25.0-5.0.pre.116, on Microsoft Windows [Version 10.0.19041.630], locale en-US)
[√] Android toolchain - develop for Android devices (Android SDK version 30.0.2)
[√] Chrome - develop for the web
[√] Android Studio (version 4.1.0)
[√] VS Code (version 1.51.1)
[√] Connected device (3 available)
• No issues found!
PS G:\programare\flutter_try\flutter_try>
I tried removing this dependency, I get error form the next one and so own.
I tried clean, repair upgrade, I also checked for any recent versions for my dependency. and I still can't build.
I have also spend some time on stack overflow.

I faced same issue. Can you tell me how did you resolve this?

find gradle-wrapper.properties
change "distributionUrl=https://services.gradle.org/distributions/gradle-5.6.2-all.zip" to
"distributionUrl=https://services.gradle.org/distributions/gradle-6.7.1-all.zip"
and find cache.properties
change 5.6.2 to 6.7.1
It worked for me.

I just reinstall everything from scratch, (android studio, flutter etc.) and the issue was not reproducer.
But @KirisakiAria seems to have a easer solution.

Yes, In my situation. It's the flutter version. I change flutter channel master to beta. And It solved.

I made changes as suggested by @KirisakiAria but still getting build failures. I am having problems with flutter_keyboard_visibility plugin and it is giving below build error:
"Task 'assembleAarRelease' not found in root project 'flutter_keyboard_visibility'."
Can somebody please help or any other approach to try? Thanks.


Update sbt-scalafmt and scalafmt to latest versions

~I split this up into multiple commits to aid review. One commit has the code reformatting, the other has the reformatting of the Scaladoc comments.~
The code changes seem acceptably minimal to me.
~The Scaladoc changes are more sweeping, but I think it's a one-time big-bang we should accept. There's rarely a need to git-blame and so forth on Scaladoc comments, anyway.~
Going forward, I don't think we necessarily need to take every little Scalafmt version bump if there is resulting churn in the formatting. But the version we were on before had become really outdated, so I think it's worth making this big jump forward.

I am annoyed with each Scalafmt version randomly contaminating changes into git history long after Scalafmt was first introduced

I'll keep this in mind and seek to strongly prefer stability, now that we've established a new baseline.


Projects Role Related issue

I dont have Add Note Role in Project page,
i go to lead stage in project, click on change stage, msg popup appeared.
i type msg only not change stage. error occurs.

Retry as yesterday we have changed roles

If no Error, Please Close Issue


correct appending data in hacktoberfest_js

I realized when i switched from loading all the orgs and repos before appending to the DOM to appending data as each org's promise resolves I wasn't appending properly and it was causing repeat data.
I also removed the Open PRs box. I don't think seeing that list is of value, the number of opened and closed PRs is sufficient.
Screenshot of duplicate data:

Thanks for the correction!  You Rock!


Initial React set up

This is the easiest setup of react we can setup another way if possible
https://reactjs.org/docs/create-a-new-react-app.html


Update Go cache in Pre-commit

Looks like a cache is so old that it doesn't contain any cache for goimports and golangci-lint

let me re-kick after the first check finished

Before

After

hmm though strange that we’ve updated go.sum


3.0.6 + Mono 5.12 Crashes on Mac

Godot version:

3.0.6
OS/device including version:

macOS 10.13.6
Issue description:

I have version 3.0.6 + Mono 5.12 installed on my Mac and anytime I try to use C# for a script with an external editor Godot crashes and closes.  The terminal doesn't print anything. macOS shows a dialog saying Godot has quit unexpectedly.
It seems related to using an external editor (either VSCode or MonoDevelop). If I turn that off and click the script it loads within the Godot script editor, but when the external editor it set, that's when the crash occurs.
FWIW, I do not experience this issue on Windows.
macOS Crash Dump
(notice that the dump says 3.0.5 even though the Godot UI says 3.0.6)
Process:               Godot [73926]
Path:                  /Applications/Godot_mono.app/Contents/MacOS/Godot
Identifier:            Godot
Version:               3.0.5 (3.0.5)
Code Type:             X86-64 (Native)
Parent Process:        Godot [73922]
Responsible:           Godot [73926]
User ID:               501

Date/Time:             2018-08-20 11:35:42.307 -0400
OS Version:            Mac OS X 10.13.6 (17G65)
Report Version:        12
Anonymous UUID:        EBEE927E-5B72-D605-1215-A7069FD201A9

Sleep/Wake UUID:       09DF4D81-EB7E-4C9E-BB26-8ADA7C805AC1

Time Awake Since Boot: 500000 seconds
Time Since Wake:       69000 seconds

System Integrity Protection: enabled

Crashed Thread:        0  Dispatch queue: com.apple.main-thread

Exception Type:        EXC_CRASH (SIGABRT)
Exception Codes:       0x0000000000000000, 0x0000000000000000
Exception Note:        EXC_CORPSE_NOTIFY

Application Specific Information:
*** multi-threaded process forked ***
crashed on child side of fork pre-exec

Thread 0 Crashed:: Dispatch queue: com.apple.main-thread
0   libsystem_kernel.dylib        	0x00007fff6392ab66 __pthread_kill + 10
1   libsystem_pthread.dylib       	0x00007fff63af5080 pthread_kill + 333
2   libsystem_c.dylib             	0x00007fff638861ae abort + 127
3   org.godotengine.godot         	0x00000001008f181c mono_handle_native_crash + 636
4   libsystem_platform.dylib      	0x00007fff63ae8f5a _sigtramp + 26
5   ???<PHONE_NUMBER>00000000 0 + 0
6   libsystem_c.dylib             	0x00007fff638861ae abort + 127
7   org.godotengine.godot         	0x000000010129346d OS_Unix::execute(String const&, List<String, DefaultAllocator> const&, bool, long long*, String*, int*, bool) + 2109
8   org.godotengine.godot         	0x0000000100e28a4b GodotSharpEditor::open_in_external_editor(Ref<Script> const&, int, int) + 1771
9   org.godotengine.godot         	0x00000001019dbf17 ScriptEditor::edit(Ref<Script> const&, int, int, bool) + 279
10  org.godotengine.godot         	0x00000001019ffe77 ScriptEditorPlugin::edit(Object*) + 167
11  org.godotengine.godot         	0x00000001015330f2 EditorNode::_edit_current() + 4082
12  org.godotengine.godot         	0x0000000101523cfe EditorNode::_resource_selected(Ref<Resource> const&, String const&) + 46
13  org.godotengine.godot         	0x0000000101523c61 EditorNode::edit_resource(Ref<Resource> const&) + 49
14  org.godotengine.godot         	0x000000010172a879 SceneTreeDock::_script_open_request(Ref<Script> const&) + 41
15  org.godotengine.godot         	0x0000000101745d4e MethodBind1<Ref<Script> const&>::call(Object*, Variant const**, int, Variant::CallError&) + 318
16  org.godotengine.godot         	0x00000001028f54ee Object::call(StringName const&, Variant const**, int, Variant::CallError&) + 414

(notice that the dump says 3.0.5 even though the Godot UI says 3.0.6)

@hpvb Remember that you need to bump the hardcoded version strings in misc/dist/osx_tools.app/Contents/Info.plist when making a new release.


Atom Java Script Grammar doesn't work  with the Oceanic - Next theme

See https://github.com/Microsoft/vscode/issues/8204#issuecomment-229202771
The theme used is:

The oceanic theme defines a rule for scope 'meta.function-call' which matches to everything in a function call due to https://github.com/Microsoft/vscode/issues/3008
Closing as dup of #3008


Fix text going out of label issue

Possible solution - http://stackoverflow.com/questions/29914628/resize-text-to-fit-a-label-in-swift


Test Messages by Moonchase

@FlorianBonte-Moonchase
Hi Florian, we received you testcases, but the SSIN number contains dashes. At the moment we do not expect dashes in the SINN number. I will check whether we determined somewhere the use of dashes in the SINN number.
If necessary, we will make a bugfix, but if you want to continue testing, you will have to send without dashes.

@bdc-ehealth
Hi Bart,
I have tried various combinations of SSINs (000101-999-45,<PHONE_NUMBER>5, 10199945) but none worked. In our application, only the second one is valid (without dashes and with the leading zeroes).
I see there are some validation errors due to some leftover junk configuration on my end in the message so I tried it with the example (https://github.com/hl7-be/lab/blob/master/testing/Macsys/815333049/815333049_Fhir.json) and modified the SSIN, also without result.
Any clues?

I could find any confirmed statement on the format, so I opened https://github.com/hl7-be/core/issues/54 for this item.
I will check your messages!

Thanks.
Is there a minimal example that is confirmed working that can identify a patient?

This is a working version of 1A:
working_1A.txt

I tried that message verbatim and the patient was also not detected...

Ah, OK, I understand. You are using the Rest API. The previous testers were using eHBox. So there must be an error on the Rest API side. I will come back.

Yes, that will be next on our ToDo list...

@FlorianBonte-Moonchase
The assignment to the correct testcase should be fixed now for the REST API. You can test again!

Can confirm, the patient is now recognised! Thanks.


Update homebrew formula for Cargonode

This pull request updates the homebrew formula for Cargonode. The changes include preparing the homebrew tap and updating the file paths in the formula. The new version of Cargonode is 0.1.0, and the download URLs and SHA256 hashes have been updated accordingly.

I guess test is happy


Broken link to pre-built ROS image

In the Software Steps pdf, there is a link to a "Custom JPL image with both Raspbian Stretch and ROS pre-built" that points to https://drive.google.com/open?id=18Tzx2tzmwUHOpBue-Hew3XYpXZIEQpiF.  This URL returns a 404.

prebuilt image can be found at the following for now: https://drive.google.com/drive/folders/1RbYWDRthpcktqkPEHb7qVqDiy27EiAc1

Thanks @ejunkins.  I downloaded the image and have tried to load it onto an SD card with balenaEtcher.  Unfortunately, the image is 32.01GB and the SD card that I have is 31.91GB.  I've tried shrinking the disk image in the MacOS Disk Utility, but I haven't had any luck.  Is there any way on your end to make the image slightly (1-200MB) smaller?  Due to the variation in actual capacity between manufacturers, I expect that others will run into this issue as well.

Yes we are going to make the image on an 8gb card instead. This requires going through the entire install process on a fresh SD card of that size

That makes sense - I imagine that will take some time.  In the meantime, I'll go back to doing it "the hard way".  ;)  Thanks.


Fix the FileNotFound exception for .less files with @import statement inside

Fix the FileNotFound exception for .less files with @import statement inside. http://haacked.com/archive/2009/12/02/t4-template-for-less-css.aspx#82242  (Thanks to Alex Kwok)

Why does this pull request also include the support for session and application variables.. isn't that a seperate request?

I don't know if you consider this a seperate bug or not, but if you  to a less file from a webpage that does not exists, you won't get a File Not Found exception either. By the way: I use dotless-v<IP_ADDRESS>.zip

File not found in T4 has been pulled individually because we don't want the change to session.


[v2.9] Add CIS-1.8 (k8s v1.26) Scan capability

Forwardport of https://github.com/rancher/rancher/issues/43159
CIS Workbench has released CIS-1.8 for k8s v1.26 (on oct 6th).
This issue is pending the creation of cis-1.8 in kube-bench's cfg. We will start integrating CIS-1.8 to Rancher cis-benchmark once the profile will be made available upstream.
Past issue for CIS-1.7 : https://github.com/rancher/rancher/issues/41631

Security-scan PR has been merged.
We need to add the new templates related changes in rancher/charts.
cc: @mitulshah-suse @vardhaman22 @chiukapoor

Closing as a duplicate of https://github.com/rancher/rancher/issues/43899


Issue 42.  Partial fix, pending decision by Rob/Mark/Emilie

Fix typemap. Add test.

All tests are failing. I've asked Emilie to make the kernel loader support all the kernels so we don't have to worry about this problem in the future. However, since she is still working on test_d.py, it would be better if you put new test routines in a different (new) file so that she doesn't have to deal with the merge conflicts. Then we can merge those files in by hand (or delete them if they are just copies of what's eventually going to be in test_d.py).

Pulled tests, as requested.  All tests pass.


Pick up latest TS for building VS Code

Updates the IAction interface to take additional arguments. This matches how it is being used in our codebase

Updates the IAction interface to take additional arguments. This matches how it is being used in our codebase


PEP695 ParamSpec is not fully supported

The following example from official python docs shows warnings on v2023.11.13551006.
See https://docs.python.org/3/library/typing.html#typing.ParamSpec

This should be filed on flake8. This repo is for the VS Code extension which wraps flake8 to run in vs code. We don't control the error reported by flake8


NGLView widget slow in notebook view

Issue Type: Performance Issue
I would like to use NGLView (http://nglviewer.org/nglview/latest/index.html) productively in a notebook in VS Code (using native notebooks). However, scrolling through images when e.g. visualizing a molecular dynamics trajectory is very slow (compared to using a usual Jupyter notebook in Firefox or Edge). Rotating structures etc. works as expected. I don't know if this is the right place to raise this issue, but as the problem does not occur in browsers (both Firefox and Chromium-based), it does not seem to be related to NGLView.
VS Code version: Code 1.57.1 (507ce72a4466fbb27b715c3722558bb15afa9f48, 2021-06-17T13:28:07.755Z)
OS version: Windows_NT x64 10.0.19043
Restricted Mode: No
Remote OS version: Linux x64 5.3.18-lp152.78-preempt
Remote OS version: Linux x64 5.3.18-lp152.78-preempt

System Info

Item
Value

CPUs
Intel(R) Core(TM) i5-3570 CPU @ 3.40GHz (4 x 3392)

GPU Status
2d_canvas: enabledgpu_compositing: enabledmultiple_raster_threads: enabled_onoop_rasterization: enabledopengl: enabled_onrasterization: enabledskia_renderer: enabled_onvideo_decode: enabledvulkan: disabled_offwebgl: enabledwebgl2: enabled

Load (avg)
undefined

Memory (System)
7.93GB (2.37GB free)

Process Argv
--crash-reporter-id cdb6a45f-074d-4b5f-86e6-f01f2751b054

Screen Reader
no

VM
0%

Item
Value

Remote
SSH: <IP_ADDRESS>

OS
Linux x64 5.3.18-lp152.78-preempt

CPUs
AMD Ryzen Threadripper 3990X 64-Core Processor (128 x 2194)

Memory (System)
251.56GB (237.47GB free)

VM
0%

Item
Value

Remote
SSH: <IP_ADDRESS>

OS
Linux x64 5.3.18-lp152.78-preempt

CPUs
AMD Ryzen Threadripper 3990X 64-Core Processor (128 x 2194)

Memory (System)
251.56GB (237.47GB free)

VM
0%

Extensions (33)

Extension
Author (truncated)
Version

language-x86-64-assembly
13x
3.0.0

remotehub
Git
0.10.1

vscode-language-pack-de
MS-
1.57.1

remote-containers
ms-
0.183.0

remote-ssh
ms-
0.65.7

remote-ssh-edit
ms-
0.65.7

remote-wsl
ms-
0.56.5

cp2k
nil
1.0.1

vscode-icons
vsc
11.5.0

markdown-preview-github-styles
bie
0.2.0

better-toml
bun
0.3.2

vscode-svgviewer
css
2.0.0

gitlens
eam
11.5.1

mdmath
goe
2.7.4

latex-workshop
Jam
8.19.2

vscode-JS-CSS-HTML-formatter
lon
0.2.3

marp-vscode
mar
1.0.3

rust-analyzer
mat
0.2.654

vscode-docker
ms-
1.14.0

vscode-language-pack-de
MS-
1.57.1

csharp
ms-
1.23.12

vscode-kubernetes-tools
ms-
1.3.3

python
ms-
2021.6.944021595

vscode-pylance
ms-
2021.6.3

jupyter
ms-
2021.6.999662501

cpptools
ms-
1.4.1

vscode-commons
red
0.0.6

vscode-yaml
red
0.20.0

LiveServer
rit
5.6.1

cif
thi
0.3.0

pdf
tom
1.1.0

vscodeintellicode
Vis
1.2.14

markdown-all-in-one
yzh
3.4.0

A/B Experiments
vsliv368cf:30146710
vsreu685:30147344
python383:30185418
pythonvspyt602:30300191
vspor879:30202332
vspor708:30202333
vspor363:30204092
pythonvspyt639:30300192
pythontb:30283811
vspre833:30321513
pythonptprofiler:30281270
vsdfh931:30280409
vshan820:30294714
pythondataviewer:30285071
vscus158:30321503
pythonvsuse255cf:30323309
vscorehov:30309549
vscod805cf:30301675
binariesv615:30325510
aatestflightcf:30331712

Thanks for filing this issue , is there a specific notebook that's causing this issue.
I'd like to ensure i use the smae code (number of cells, number of outputs) to replicate this issue.

Closing due to inactivity


VSCode crashs after windows11 unlock with error oom and code -536870904

Type: Bug

Open a remote ssh workspace with both JS and C code.
Lock the screen with win+L. (This computer will never go to sleep.)
Sit back and relax.
Unlock the screen.
VSCode already crashed.

VS Code version: Code 1.80.0 (660393deaaa6d1996740ff4880f1bad43768c814, 2023-07-04T15:06:02.407Z)
OS version: Windows_NT x64 10.0.22621
Modes:
Connection to 'ssh-remote+workstation' could not be established
Connection to 'ssh-remote+workstation' could not be established
Remote OS version: Linux x64 5.15.0-73-generic
Connection to 'ssh-remote+workstation' could not be established

System Info

Item
Value

CPUs
Intel(R) Core(TM) i7-9700 CPU @ 3.00GHz (8 x 3000)

GPU Status
2d_canvas: unavailable_softwarecanvas_oop_rasterization: disabled_offdirect_rendering_display_compositor: disabled_off_okgpu_compositing: disabled_softwaremultiple_raster_threads: enabled_onopengl: disabled_offrasterization: disabled_softwareraw_draw: disabled_off_okvideo_decode: disabled_softwarevideo_encode: disabled_softwarevulkan: disabled_offwebgl: unavailable_softwarewebgl2: unavailable_softwarewebgpu: unavailable_software

Load (avg)
undefined

Memory (System)
31.79GB (20.01GB free)

Process Argv
--crash-reporter-id d7b91965-8ad8-4c32-b91f-2e506c5c3953

Screen Reader
no

VM
0%

Connection to 'ssh-remote+workstation' could not be established
Connection to 'ssh-remote+workstation' could not be established

Item
Value

Remote
SSH: workstation

OS
Linux x64 5.15.0-73-generic

CPUs
AMD Ryzen 7 5700X 8-Core Processor (16 x 4500)

Memory (System)
15.55GB (12.75GB free)

VM
0%

Connection to 'ssh-remote+workstation' could not be established
Extensions (15)

Extension
Author (truncated)
Version

vscode-drawio
hed
1.6.6

remote-ssh
ms-
0.102.0

remote-ssh-edit
ms-
0.86.0

remote-explorer
ms-
0.4.1

sqlite-viewer
qwt
0.2.5

doxdocgen
csc
1.4.0

vscode-eslint
dba
2.4.2

gitlens
eam
14.1.0

filter-line
eve
2.0.1

vscode-language-pack-zh-hans
MS-
1.80.2023071209

cpptools
ms-
1.16.3

cpptools-extension-pack
ms-
1.3.0

hexeditor
ms-
1.9.11

autowebconfig-debug-tools
und
0.0.4

jsonzreader
und
0.0.3

(2 theme extensions excluded)
The last two extensions are written by me and provide several context menu options for decoding files. They do not allocate any resource or do anything unless used by the user. And before the crashs, they are not used on any file.

A/B Experiments
vsliv368cf:30146710
vsreu685:30147344
python383cf:30185419
vspor879:30202332
vspor708:30202333
vspor363:30204092
vslsvsres303:30308271
vserr242cf:30382550
pythontb:30283811
vsjup518:30340749
pythonptprofiler:30281270
vsdfh931cf:30280410
vshan820:30294714
vstes263:30335439
vscorecescf:30445987
vscod805cf:30301675
binariesv615:30325510
bridge0708:30335490
bridge0723:30353136
vsaa593:30376534
pythonvs932:30410667
vsclangdf:30486550
c4g48928:30535728
dsvsc012cf:30540253
pynewext54:30695312
azure-dev_surveyone:30548225
2e4cg342:30602488
pyind779:30671433
89544117:30613380
pythonsymbol12:30671437
2i9eh265:30646982
showlangstatbar:30737416
vsctsb:30748421
pythonms35:30701012
pythonfmttext:30731395
pythoncmv:30756943
fixshowwlkth:30771522
showindicator:30785052
pythongtdpath:30769146
i26e3531:30780429
pythonnosm12tcf:30779713
pythonidxpt:30784022
pythonnocebcf:30776496
h7j2d465:30786200
dsvsc013cf:30789518
cmakestatusbarv2:30779594

Thanks for creating this issue! It looks like you may be using an old version of VS Code, the latest stable release is 1.80.1. Please try upgrading to the latest version and checking whether this issue remains.
Happy Coding!

Since upgrading to 1.80.1. The problem did not happen again.
It just works.


Random 503 Service Unavailable from Load Balancer after upgrading service or manually restarting the LB container

After upgrading a service that is a target of a load balancer service the load balancer randomly returns error 503 Service Unavailable.
It looks like the load balancer isn't updated after the service is upgraded and some connections go to the old container IP resulting in a 503 error and some connections go to the new container IP.
After stopping an starting again the load balancer service the random 503 errors stop happening.
This started happening after upgrading to rancher 0.51.0, it didn't happen in the version we had before.
Rancher Version:
Rancher	v0.51.0
Cattle	v0.130.0
User Interface	v0.78.0
Rancher Compose	v0.7.0
The load balancer and service containers are in the same host.
Steps to reproduce:

Create a Service
Create a Load Balancer Service and add the previous service as a target
Upgrade the service (Finishing the Upgrade doesn't make a difference, the error 503 is still returned randomly after finishing the upgrade)
Connect multiple times to the load balancer IP/port linked to the target service. Some connections will succeed and some will return error 503 Service Unavailable
Restart the load balancer service
Connect multiple times to the load balancer IP/port linked to the target service. All the connections will now succeed.

Have you checked the haproxy.cfg to check if the configuration was updated after the upgrade of hte service was completed?
http://docs.rancher.com/rancher/faqs/troubleshooting/#how-can-i-see-the-configuration-of-my-load-balancer

@deniseschannon The haproxy.cfg config is up to date and has the correct IP of the new container.
While the load balancer is returning random 503 errors the following commands work in the load balancer container without errors:

Running curl http://NEWSERVICECONTAINERIP:PORT/ 100 times returns no errors
ping NEWSERVICECONTAINERIP has no packets lost

The following doesn't solve the random 503 errors:

Running service haproxy reload in the load balancer container
Running service haproxy restart in the load balancer container

Only stopping the load balancer container and starting it again stops the random 503 errors.
Is there anything else I can check? I saw in another thread there aren't any haproxy logs in the current version of rancher right?

I'm having the same issue.  I've enabled logging by doing the following inside the container:
service rsyslog start
then, modify /etc/haproxy/haproxy.cfg;
From:
global
        log <IP_ADDRESS> local0
        log <IP_ADDRESS> local1 notice

To:
global
        log /dev/log local0
        log /dev/log local1 notice

I'm still waiting for it to happen again so I can catch it in the logs.

@rubenmch

The following doesn't solve the random 503 errors:

Running service haproxy reload in the load balancer container
Running service haproxy restart in the load balancer container
That is not advisable - to reload haproxy by hand. Rancher reloads haproxy different way, and starting it with "service haproxy.." can lead into problems.
Most likely the issue you and @lawsontyler are seeing, is due to this bug:
https://github.com/rancher/rancher/issues/3355
https://forums.rancher.com/t/load-balancer-issue/1398/12
We are working on a fix right now.

@alena1108 @lawsontyler
I enabled logging and got the following, entries containing 213 SC are when the 503 error was returned:
Jan 21 17:12:20 0524d65c9119 haproxy[655]: <IP_ADDRESS>:48847 [21/Jan/2016:17:1
2:08.054] bdc5c998-878b-49f5-bba7-68cacc843b5d_443_frontend~ bdc5c998-878b-49f5-
bba7-68cacc843b5d_443_4_backend/a742b970-5a74-487b-972c-5f8e448d8dde 9998/-1/121
40 213 SC 0/0/0/0/3 0/0
Jan 21 17:15:25 0524d65c9119 haproxy[902]: <IP_ADDRESS>:39685 [21/Jan/2016:17:1
5:25.396] bdc5c998-878b-49f5-bba7-68cacc843b5d_443_frontend~ bdc5c998-878b-49f5-
bba7-68cacc843b5d_443_4_backend/f71bc10f-e505-4e5c-906c-a4b959413ee2 0/4/528 944
1 -- 1/1/0/1/0 0/0
Jan 21 17:17:51 0524d65c9119 haproxy[655]: <IP_ADDRESS>:64486 [21/Jan/2016:17:1
7:39.614] bdc5c998-878b-49f5-bba7-68cacc843b5d_443_frontend~ bdc5c998-878b-49f5-
bba7-68cacc843b5d_443_4_backend/a742b970-5a74-487b-972c-5f8e448d8dde 10001/-1/12
148 213 SC 0/0/0/0/3 0/0
Jan 21 17:20:03 0524d65c9119 haproxy[655]: <IP_ADDRESS>:6493 [21/Jan/2016:17:19
:51.116] bdc5c998-878b-49f5-bba7-68cacc843b5d_443_frontend~ bdc5c998-878b-49f5-b
ba7-68cacc843b5d_443_4_backend/a742b970-5a74-487b-972c-5f8e448d8dde 10000/-1/120
63 213 SC 0/0/0/0/3 0/0
Jan 21 17:21:12 0524d65c9119 haproxy[655]: <IP_ADDRESS>:8916 [21/Jan/2016:17:21
:00.262] bdc5c998-878b-49f5-bba7-68cacc843b5d_443_frontend~ bdc5c998-878b-49f5-b
ba7-68cacc843b5d_443_4_backend/a742b970-5a74-487b-972c-5f8e448d8dde 10001/-1/121
12 213 SC 0/0/0/0/3 0/0
Jan 21 17:22:50 0524d65c9119 haproxy[655]: <IP_ADDRESS>:34027 [21/Jan/2016:17:2
2:38.529] bdc5c998-878b-49f5-bba7-68cacc843b5d_443_frontend~ bdc5c998-878b-49f5-
bba7-68cacc843b5d_443_4_backend/a742b970-5a74-487b-972c-5f8e448d8dde 9999/-1/120
78 213 SC 0/0/0/0/3 0/0
Jan 21 17:22:54 0524d65c9119 haproxy[902]: <IP_ADDRESS>:53024 [21/Jan/2016:17:2
2:54.400] bdc5c998-878b-49f5-bba7-68cacc843b5d_443_frontend~ bdc5c998-878b-49f5-
bba7-68cacc843b5d_443_4_backend/f71bc10f-e505-4e5c-906c-a4b959413ee2 0/2/206 944
1 -- 1/1/0/1/0 0/0
Jan 21 17:22:56 0524d65c9119 haproxy[902]: <IP_ADDRESS>:53024 [21/Jan/2016:17:2
2:54.607] bdc5c998-878b-49f5-bba7-68cacc843b5d_443_frontend~ bdc5c998-878b-49f5-
bba7-68cacc843b5d_443_4_backend/f71bc10f-e505-4e5c-906c-a4b959413ee2 0/0/2242 94
41 -- 1/1/0/1/0 0/0
Jan 21 17:22:58 0524d65c9119 haproxy[902]: <IP_ADDRESS>:53024 [21/Jan/2016:17:2
2:56.849] bdc5c998-878b-49f5-bba7-68cacc843b5d_443_frontend~ bdc5c998-878b-49f5-
bba7-68cacc843b5d_443_4_backend/f71bc10f-e505-4e5c-906c-a4b959413ee2 0/1/1271 94
41 -- 1/1/0/1/0 0/0
Jan 21 17:22:59 0524d65c9119 haproxy[902]: <IP_ADDRESS>:53024 [21/Jan/2016:17:2
2:58.119] bdc5c998-878b-49f5-bba7-68cacc843b5d_443_frontend~ bdc5c998-878b-49f5-
bba7-68cacc843b5d_443_4_backend/f71bc10f-e505-4e5c-906c-a4b959413ee2 0/0/1636 94
41 -- 1/1/0/1/0 0/0
Jan 21 17:25:03 0524d65c9119 haproxy[655]: <IP_ADDRESS>:41357 [21/Jan/2016:17:2
4:50.884] bdc5c998-878b-49f5-bba7-68cacc843b5d_443_frontend~ bdc5c998-878b-49f5-
bba7-68cacc843b5d_443_4_backend/a742b970-5a74-487b-972c-5f8e448d8dde 10001/-1/12
143 213 SC 2/2/0/0/3 0/0
Jan 21 17:25:19 0524d65c9119 haproxy[655]: <IP_ADDRESS>:62565 [21/Jan/2016:17:2
5:07.202] bdc5c998-878b-49f5-bba7-68cacc843b5d_443_frontend~ bdc5c998-878b-49f5-
bba7-68cacc843b5d_443_4_backend/a742b970-5a74-487b-972c-5f8e448d8dde 9999/-1/120
84 213 SC 1/1/0/0/3 0/0
Jan 21 17:25:34 0524d65c9119 haproxy[655]: <IP_ADDRESS>:23800 [21/Jan/2016:17:2
5:22.349] bdc5c998-878b-49f5-bba7-68cacc843b5d_443_frontend~ bdc5c998-878b-49f5-
bba7-68cacc843b5d_443_4_backend/a742b970-5a74-487b-972c-5f8e448d8dde 10001/-1/12
073 213 SC 1/1/0/0/3 0/0
Jan 21 17:25:47 0524d65c9119 haproxy[655]: <IP_ADDRESS>:1403 [21/Jan/2016:17:25
:36.984] bdc5c998-878b-49f5-bba7-68cacc843b5d_443_frontend~ bdc5c998-878b-49f5-b
ba7-68cacc843b5d_443_4_backend/a742b970-5a74-487b-972c-5f8e448d8dde 8370/-1/1043
9 213 SC 0/0/0/0/3 0/0
Jan 21 17:26:02 0524d65c9119 haproxy[655]: <IP_ADDRESS>:32486 [21/Jan/2016:17:2
5:50.561] bdc5c998-878b-49f5-bba7-68cacc843b5d_443_frontend~ bdc5c998-878b-49f5-
bba7-68cacc843b5d_443_4_backend/a742b970-5a74-487b-972c-5f8e448d8dde 10000/-1/12
062 213 SC 0/0/0/0/3 0/0
Jan 21 17:26:05 0524d65c9119 haproxy[902]: <IP_ADDRESS>:13945 [21/Jan/2016:17:2
6:05.341] bdc5c998-878b-49f5-bba7-68cacc843b5d_443_frontend~ bdc5c998-878b-49f5-
bba7-68cacc843b5d_443_4_backend/f71bc10f-e505-4e5c-906c-a4b959413ee2 0/2/179 944
1 -- 1/1/0/1/0 0/0
Jan 21 17:26:07 0524d65c9119 haproxy[902]: <IP_ADDRESS>:13945 [21/Jan/2016:17:2
6:05.521] bdc5c998-878b-49f5-bba7-68cacc843b5d_443_frontend~ bdc5c998-878b-49f5-
bba7-68cacc843b5d_443_4_backend/f71bc10f-e505-4e5c-906c-a4b959413ee2 0/1/1532 94
41 -- 1/1/0/1/0 0/0
Jan 21 17:26:07 0524d65c9119 haproxy[902]: <IP_ADDRESS>:13945 [21/Jan/2016:17:2
6:07.052] bdc5c998-878b-49f5-bba7-68cacc843b5d_443_frontend~ bdc5c998-878b-49f5-
bba7-68cacc843b5d_443_4_backend/f71bc10f-e505-4e5c-906c-a4b959413ee2 0/1/873 944
1 -- 1/1/0/1/0 0/0
Jan 21 17:26:08 0524d65c9119 haproxy[902]: <IP_ADDRESS>:13945 [21/Jan/2016:17:2
6:07.925] bdc5c998-878b-49f5-bba7-68cacc843b5d_443_frontend~ bdc5c998-878b-49f5-
bba7-68cacc843b5d_443_4_backend/f71bc10f-e505-4e5c-906c-a4b959413ee2 0/1/789 944
1 -- 1/1/0/0/0 0/0
Jan 21 17:26:09 0524d65c9119 haproxy[902]: <IP_ADDRESS>:13945 [21/Jan/2016:17:2
6:08.713] bdc5c998-878b-49f5-bba7-68cacc843b5d_443_frontend~ bdc5c998-878b-49f5-
bba7-68cacc843b5d_443_4_backend/f71bc10f-e505-4e5c-906c-a4b959413ee2 0/1/826 944
1 -- 1/1/0/1/0 0/0
Jan 21 17:26:10 0524d65c9119 haproxy[902]: <IP_ADDRESS>:13945 [21/Jan/2016:17:2
6:09.538] bdc5c998-878b-49f5-bba7-68cacc843b5d_443_frontend~ bdc5c998-878b-49f5-
bba7-68cacc843b5d_443_4_backend/f71bc10f-e505-4e5c-906c-a4b959413ee2 0/1/1102 94
41 -- 1/1/0/1/0 0/0
Jan 21 17:26:11 0524d65c9119 haproxy[902]: <IP_ADDRESS>:13945 [21/Jan/2016:17:2
6:10.640] bdc5c998-878b-49f5-bba7-68cacc843b5d_443_frontend~ bdc5c998-878b-49f5-
bba7-68cacc843b5d_443_4_backend/f71bc10f-e505-4e5c-906c-a4b959413ee2 0/1/911 944
1 -- 1/1/0/1/0 0/0
Jan 21 17:26:12 0524d65c9119 haproxy[902]: <IP_ADDRESS>:13945 [21/Jan/2016:17:2
6:11.551] bdc5c998-878b-49f5-bba7-68cacc843b5d_443_frontend~ bdc5c998-878b-49f5-
bba7-68cacc843b5d_443_4_backend/f71bc10f-e505-4e5c-906c-a4b959413ee2 0/0/814 944
1 -- 1/1/0/1/0 0/0

@alena1108
Is there a recommended way to reload /etc/haproxy/haproxy.cfg from inside the container?
We need to enable tls v 1.0 removing no-tlsv10 from haproxy.cfg and have so far been doing it by manually editing the haproxy.cfg file and then running service haproxy reload

@rubenmch do you change haproxy.cfg inside the lb agent? Be aware of the fact that Rancher is going to override all the changes when it reloads the haproxy config (happens on every target instance restart, new link creation, etc).
I would work on pushing this fix that can solve your problem: https://github.com/rancher/cattle/pull/1285

@alena1108 Yes, we change haproxy.cfg manually inside the lb agent and reload haproxy after every change to the instance, linked services or load balancer.
https://github.com/rancher/cattle/pull/1285 would solve this issue for us. It isn't included in Rancher 0.56.0 right?

@rubenmch Correct, this is NOT in v0.56.0.

Should be fixed with https://github.com/rancher/cattle/pull/1279

@alena1108: l will reopen this issue since this is dependent on the fix provided for #3355 which has been reopened.

Verified in v0.63.0-rc1 with the following steps.

Create a Service
Create a Load Balancer Service and add the previous service as a target
Upgrade the service and finish upgrade
Connect multiple times to the load balancer IP/port linked to the target service. All the connections succeed.


⚠ Bofrost.de has degraded performance

In cfd72f6, Bofrost.de (https://www.bofrost.de) experienced degraded performance:

HTTP code: 200
Response time: 1339 ms

Resolved: Bofrost.de performance has improved in 4d07c16.


Release v0.12.4

@JuliaRegistrator register

Registration pull request created: JuliaRegistries/General/113082
Tip: Release Notes
Did you know you can add release notes too? Just add markdown formatted text underneath the comment after the text
"Release notes:" and it will be added to the registry PR, and if TagBot is installed it will also be added to the
release that TagBot creates. i.e.
@JuliaRegistrator register

Release notes:

## Breaking changes

- blah

To add them here just re-invoke and the PR will be updated.
Tagging
After the above pull request is merged, it is recommended that a tag is created on this repository for the registered package version.
This will be done automatically if the Julia TagBot GitHub Action is installed, or can be done manually through the github interface, or via:
git tag -a v0.12.4 -m "<description of version>" 310bd190389844da512521c0f36676da926fb6b0
git push origin v0.12.4


fix(client-only): Fix client-only Server & CurrentServer usage

Addresses #275

Add startup.js to copy public.servers into the client Minimongo collection if we are using public.clientOnly = true
Set CurrentServer and Servers collection to client-only if clientOnly = true
Call Meteor.disconnect() if we are using clientOnly = true
Guard If statements requiring Meteor.settings.public, since it was not defined on the Standalone Viewer

I have the most recent build and I have an identical "Cannot read property 'type' of undefined" when running on a linux server, build works fine on my windows server.


Add-RdsAppGroupUser : The specified UserPrincipalName is already assigned to a RemoteApp AppGroup in the specified HostPool.

I have a problem when assigning a user to both Desktop App Group and RemoteApp app group in same hostpool: Can you clarify if this is expected? or if the restriction is still in place?
Add-RdsAppGroupUser : The specified UserPrincipalName is already assigned to a RemoteApp AppGroup in the specified HostPool.
The documentation says: "[...] To publish resources to users, you must assign them to app groups. When assigning users to app groups, consider the following things:
A user can be assigned to both a desktop app group and a RemoteApp app group in the same host pool. However, users can only launch one type of app group per session. Users can't launch both types of app groups at the same time in a single session.
A user can be assigned to multiple app groups within the same host pool, and their feed will be an accumulation of both app groups. [...]"

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

ID: b7a8e997-f5c8-eaa8-b713-068650dd6b22
Version Independent ID: ef57850d-1fc4-bc6a-827c-2934c31f50c9
Content: Windows Virtual Desktop environment - Azure
Content Source: articles/virtual-desktop/environment-setup.md
Service: virtual-desktop
GitHub Login: @Heidilohr
Microsoft Alias: helohr

@kvsrkrishnan
Thanks for your feedback! We will investigate and update as appropriate.

@kvsrkrishnan
Looks like you are deploying Fall Update and checking documentation of Spring Update.
Please check the latest Fall update doc where it is mentioned in the document that "Fall Update didn’t allow to have the same user at the same time in both type of App Groups in the same Hostpool".

@kvsrkrishnan
Hope the provided information is helpful.
We will now close this issue. If there are further questions regarding this, please tag me in a comment. I will reopen it and we will continue the discussion.


⚠ T:Riza Docs has degraded performance

In e8e8d73, T:Riza Docs (https://docs.triza.dev) experienced degraded performance:

HTTP code: 200
Response time: 3404 ms

Resolved: T:Riza Docs performance has improved in 0d34a8e.


[Feature Request] add parameter to disable clear screen

Hi, I notice in the new version the progress bar will clear the whole screen.
It will be better to add a new parameter in the start function to let user to control whether to clear the screen.
Thank you!

i get what you mean in ideal cases there is no need to clear the screen but its needed when we want to remove broken elements in the console caused by mishaps like adjusting the width of the terminal while the progess bar is shown in it. this causes weird artifacts to form and the clearing just makes the screen neat during these edge cases. its true that it wont stop them but it prevents the console from looking too ugly.

in the above screenshot i adjusted the terminal width while progress bar was still shown this made it to display these misaligned artifacts.
If you want to disable the screen clearing just go to utils in your local machine and comment/remove the line which has the comment saying clear screen

if you are running in ideal condition, it shouldn't give you any issue, also be sure to add the sys.stdout.write("\n")  since without it the cursor starts writing from the previous line making you lose a line of previous data.

class ScreenCleaner:
    """A context manager to clear the screen and hide cursor."""

    def __init__(self, display: bool):
        self.display = display

    def clear(self) -> None:
        sys.stdout.write("\n")  # Insert newlines
        # sys.stdout.write("\033c")  # Clear screen
        sys.stdout.write("\x1b[?25l")  # Hide cursor

    def __enter__(self):
        if self.display:
            self.clear()
        return self

    def __exit__(self, exc_type, exc_val, exc_tb):
        if self.display:
            sys.stdout.write("\x1b[?25h")  # Show cursor

here is the full code in case you need it
the reason why i am not implementing this as a parameter in start method is since its already complex and I don't want to increase the complexity anymore unless it's needed by a lot. if i get more request for this i will implement it currently since i don't think it is needed for most i will keep this as such.

condition, it shouldn't give you any issue, also be sure to add the sys.stdout.write("\n")  since without it the cursor starts writing from the previous line making you lose a line of previous

I suggest adding it as a parameter, because I am running it in a docker container, when I do something like this:
docker logs -f my_container
That don't retain the previous logs after clearing the screen. I have important logs that I want to see and I don't want to clear the screen.
It's time-consuming to fork your repo just to implement that feature.
It's just my suggestion, thank you!

condition, it shouldn't give you any issue, also be sure to add the sys.stdout.write("\n")  since without it the cursor starts writing from the previous line making you lose a line of previous

I suggest adding it as a parameter, because I am running it in a docker container, when I do something like this:
docker logs -f my_container
That don't retain the previous logs after clearing the screen. I have important logs that I want to see and I don't want to clear the screen.
It's time-consuming to fork your repo just to implement that feature.
It's just my suggestion, thank you!

i never tested in docker, i see that seem to be a valid reason i will implement it then.

hello, i have added this to v1.4.5 can you guys test it out and see if its fixing the issue for you @syntaxsurge @Nymphxyz. you can set it by using clear_terminal argument in start method also note some of the positions of arguments have changed so check docs if you are getting errors
you can test this version from here: https://test.pypi.org/project/pypdl/1.4.5/

LGTM.


Syntax error when launching any test files

Hello,
I have Cozmo with last update. Windows 10 , PyCozmo 0.2.0 with Python 3.5.4
I have installed Python on its charging platform.
I have rised and lowered his lift for discovering its key.
I'm connecting on Cozmo WIFI point via PC.
Steps :
1 Open commandline console
2. >pip install pycozmo
3. >python display.py
C:\dev\cozmo\pycozmo\examples>python display.py
Traceback (most recent call last):
File "display.py", line 5, in
import pycozmo
File "C:\Users\didie\AppData\Local\Programs\Python\Python35\lib\site-packages\pycozmo_init_.py", line 3, in
from .client import ROBOT_ADDR, Client
File "C:\Users\didie\AppData\Local\Programs\Python\Python35\lib\site-packages\pycozmo\client.py", line 105
self.sock: socket.socket = sock
^
SyntaxError: invalid syntax

OK, you are right. This is syntax that is not suppoted in Python 3.5 and I have been developing Python with 3.7.
Lucklily, this is not really necessary, so I fixed it with ef5df564
I'll set up automated tests with different Python versions soon.
Thanks!

Added automated tests with e9928fc .


DeepExplainer target

Hello!
I'm trying to apply DeepExplainer to a NN that has many different outputs. Is there any way to apply DeepExplainer just to one of these neuron outputs instead of applying it over the whole output? Let's say I have five output neurons, how can I apply DeepExplainer just to one of them and forget about the others? I just want to focus on the explanations on how this neuron is working inside. In Captum Library there's a variable called 'target' in some functions that allows you to compute the SHAP values for just one output instead of the whole of them, it would be the same concept.
Thank you!
Awesome work, btw! :)

The output of DeepExplainer is a list of n arrays, where n is your number of output neurons. So your SHAP values of your first neuron is your first element of the DeepExplainer output.

The output of DeepExplainer is a list of n arrays, where n is your number of output neurons. So your SHAP values of your first neuron is your first element of the DeepExplainer output.

Thank you for your answer!
Yes, I know that, but I mean if there's any way to apply DeepExplainer to just one output neuron, because maybe the computational effort of applying it to all output neurons is too high (if I have 10 outputs neurons it would be 10x higher) and I just want one computation. But thank you anyway!


Question about kappa_zpsi in table 3.2

I did not find the application of the constant kappa_zpsi in Table 3.2 in the paper. From the meaning of the characters, this variable should be applied to the formulas (3.61) and (3.62). But in fact these two formulas apply variable kappa_1,2. Please help me understand these two variables, thank you.

I think you found another mistake. kappa_zpi refers to kappa_1 and kappa_2 in the paper. They are duplicated in Table 3.2

I think you found another mistake. kappa_zpi refers to kappa_1 and kappa_2 in the paper. They are duplicated in Table 3.2


Runtime error when no authors are declared in a bibliography entry

https://github.com/distillpub/template/blob/e6202c5442e121b884810f5c97039b7795abc536/src/helpers/citation.js#L31
Uncaught TypeError: Cannot read property 'split' of undefined
    at author_string (components.js:895)
    at hover_cite (components.js:1005)
    at Array.map (<anonymous>)

This still seems to be an issue. Any updates/pointers?
I am using https://distill.pub/template.v2.js and the following front-matter
<d-front-matter>
  <script id='distill-front-matter' type="text/json">{
    "title": "Without author",
    "description": "This is Broken."
  }</script>
</d-front-matter>

Error Log:
Uncaught TypeError: e.authors is not iterable
    at s (d-front-matter.js:19)
    at c (d-front-matter.js:44)
    at MutationObserver (d-front-matter.js:65)


Basic example does nothing

I may be daft, but I can't figure out how this works. I'm using an example derived from your main page:
import MistKit
import MistKitNIOHTTP1Token

let container = "…" // a valid container
let token = "" // a valid token

let connection = MKDatabaseConnection(
        container: container,
        apiToken: token,
        environment: .production)

let manager = MKTokenManager(
        storage: MKUserDefaultsStorage(),
        client: MKNIOHTTP1TokenClient(bindTo: .ipAddress(host: "<IP_ADDRESS>", port: 7000))
)

let database = MKDatabase(
        connection: connection,
        tokenManager: manager
)

let query = MKAnyQuery(recordType: "LTOBD2CaptureFile", desiredKeys: ["model"])

let request = FetchRecordQueryRequest(
        database: .public,
        query: FetchRecordQuery(query: query)
)

database.perform(request: request) { result in
    do {
        try print(result.get().records.information)

    } catch {
        print("an error occured: \(error)")
        return
    }
}

Apart from printing {"query":{"recordType":"LTOBD2CaptureFile"},"desiredKeys":["model"],"numbersAsStrings":true}, the code doesn't seem to do anything. Isn't there some kind of mainloop I have to spin for the requests to be performed?

Hey @mickeyl
You are correct you need to handle the mainloop somehow.
Would it be helpful to add something like this to the documentation?
database.perform(request: request) { result in
    do {
        try print(result.get().records.information)
    } catch {
        print("an error occured: \(error)")
        return
    }
    CFRunLoopStop(CFRunLoopGetMain())
}
CFRunLoopRun()

My worry is that this is specific for a command-line application as opposed to a server-side application. I'd prefer to let the user handle the async call in their own manner (i.e. EventLoopFuture, DispatchSemaphore, DispatchGroup, RunLoop etc...). I assume this is command-line application, correct?
Regardless, let me know if this fixes your issue.

Thanks a lot, adding the runloop made it work for me. I think at least a quick side remark that highlights the necessity for a runloop (which, yes, is a given for server-side apps, but as you guessed I'm working on a command-line tool) would be helpful.

I'm going to reopen the issue so I keep note of needing to amend the documentation. Thanks @mickeyl