Copyright notice yearly update

What is the feature request? What problem does it solve?
We need to have:

an automated scheduled yearly  update/reminder to bump the year range in NOTICE and NOTICE.txt files
within same PR, before the new notice gets prepended -> search&replace by string/regex the old notices  (-otherwise all the files in the repo would contain new+old leftover notice both, and that's inconsistent with OSS requirements).

Suggested solution
Think about scheduling a team reminder, containing instructions about search&replace (easiest way).
Maybe spend some time researching the current notice automation configs.
Additional context
Add any other context or screenshots about the feature request here.

I've made a change to leverage the flexible year handling https://github.com/Lucas-C/pre-commit-hooks/blob/master/README.md#handling-years-flexibly


Refactors sessions_controller#create for clarity

We were reviewing this controller for use in a API controller and spent a fair bit of head-scratching over which conditions generated which error paths.  As a by-product of that session, I wanted to offer this refactor as a token of thanks for creating this gem.

@gltarsa - thanks for submitting this PR! Can you please resolve the merge conflict? If so I'll merge ASAP.

@gltarsa what @lynndylanhurley said :)

@gltarsa I will close in 7 days if it isn't rebased, sorry but we need to clean issues/PRs


Windows error

Hi there ,
Trying to get the package working but getting the following error in Windows
module.js:474
    throw err;
    ^

Error: Cannot find module '.\pre-commit-utils\git-manager'
    at Function.Module._resolveFilename (module.js:472:15)
    at Function.Module._load (module.js:420:25)
    at Module.require (module.js:500:17)
    at require (internal/module.js:20:19)
    at Object.<anonymous> (C:\dev\bd-events\.git\hooks\pre-commit.js:9:20)
    at Module._compile (module.js:573:32)
    at Object.Module._extensions..js (module.js:582:10)
    at Module.load (module.js:490:32)
    at tryModuleLoad (module.js:449:12)
    at Function.Module._load (module.js:441:3)

Any ideas?
Have
"precommit": "npm test", in my package.json file

That will be part of version 2.1.3 thanks to @Goldob who fixed it :)

@okeydoke , just published it now - please have a look


Uncaught TypeError: key.toLowerCase is not a function

Description of the Issue and Steps to Reproduce:
Error caused by:
function normalizeLocale(key) {
    return key ? key.toLowerCase().replace('_', '-') : key;
}

trying to do following:
moment.updateLocale('en', {
    week : {
        dow : 1
    }

No issues using moment.locale or moment.lang.
Environment:
OS X, Chrome latest
Wed May 31 2017 17:07:51 GMT+0200 (CEST)
VM410:2 5/31/2017, 5:07:51 PM
VM410:3 -120
VM410:4 Mozilla/5.0 (Macintosh; Intel Mac OS X 10_10_5) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/58.0.3029.110 Safari/537.36
VM410:5 2.18.1

Ensure your issue is isolated to moment. Issues involving third party tools will be closed unless submitted by the tool's author/maintainer. (not sure)

Seems to work OK for me: https://jsfiddle.net/4j9p6uvu/. Can you make a fiddle that reproduces this?

Closing for age.

I just came across this. I was trying to do moment(year, month, day, hour, min, sec, ms) when I should have been doing moment([year, month, day, hour, min, sec, ms]).

I havi this following this
https://material.angular.io/components/datepicker/overview#watching-the-views-for-changes-on-selected-years-and-months
or this
https://stackblitz.com/angular/rekdadngmrl?file=app%2Fdatepicker-views-selection-example.ts
the key  is coming as an object

I had this issue in version 11 and solved it by adding MAT_DATE_LOCALE to the providers array:
{ provide: MAT_MOMENT_DATE_ADAPTER_OPTIONS, useValue: { useUtc: true } },
{ provide: DateAdapter, useClass: MomentDateAdapter, deps: [MAT_DATE_LOCALE, MAT_MOMENT_DATE_ADAPTER_OPTIONS]},
{ provide: MAT_DATE_LOCALE, useValue: 'en-US' }`


Failed to remove pending job - algorithm queue

Usecase of appearance is unknown, pops as an error..
Investigate and mark as warning

Added stack to print, follow up to see reason for exception.


⚠ Processors has degraded performance

In 0aab0cd, Processors ($STATUS_URL) experienced degraded performance:

HTTP code: 200
Response time: 44 ms

Resolved: Processors performance has improved in ff2446f.


Error when promoting a DB: DATABASE on foo is the last billing attachment to sailing-keenly-4016;

I haven't seen if this is repeatable or not, but we just got this when upgrading a DB on a newly forked app, and we weren't getting this before.
00:26:23.896 + heroku pg:promote YELLOW --app our_app
00:26:24.809 Promoting thinking-gently-8360 to DATABASE_URL on our_app... failed
00:26:24.810  !    DATABASE on our_app is the last billing attachment to sailing-keenly-4016; either remove the add-on entirely or add a new attachment to it before replacing its config vars.

@uhoh-itsmaciek do you know what this error means?

The error message should be improved but essentially it's indicating that promoting over the existing database which occupies the DATABASE alias (sailing-keenly-4016) would orphan it. You need to either give it a second alias (with heroku addons:attach sailing-keenly-4016) before promoting over the current alias or deprovision it entirely.
#1557 is designed to do this for you automatically but hasn't landed yet.

@Taytay oh and the reason this is new is because we're removing the special "create two names" behaviour that only Heroku Postgres has. Previously, the first HPG instance installed on an app got both a colour-based name and the DATABASE name. Now it just gets the latter (if available). #1557 is designed to rename the existing DATABASE on promotions so that the error message you are seeing isn't shown here.


proposal: enable setting a DefaultFunc on a numeric type

I'm currently migrating a database from an existing structure where we have used a variation of Snowflake to generate the IDs for our resources. The natural way to store such a value in the database would be an uint64/BIGINT UNSIGNED NOT NULL, thus a numeric type for ent.
In spite of there not being a straight DefaultFunc method on the uint64Builder, by getting the Descriptor I managed to set a custom function which is ran when the resource is created:
	fd := field.Uint64("id").Immutable().Positive()
	fd.Descriptor().Default = func() uint64 {
		// generate...
	}

However, once we try to run entc, the following error shows up:
2021/01/07 10:08:32 running ent codegen:unmarshal schema [... json data ...]: unexpected default value type for field: "id"

Tracing back the error, it is from this method:
https://github.com/facebook/ent/blob/d4e04cd08f76389f0db76adec1c62d3a48c36d7b/entc/load/schema.go#L354-L369
Being a numeric type and having a default, the type conversion is attempted, but f.DefaultValue will actually be of type nil because only DefaultFunc is set.
Proposals to solve this:

add a DefaultFunc check on the defaults() method, thus skipping it when we have such a function
or, the former + add full support by also adding DefaultFunc on all numeric type builders - although this entails expanding the API

I'd be happy to work on a PR for this - but wanted to check first what's the best path to follow here.

Hey @thehowl and thanks for the proposal.
Go ahead and create a PR for this and tag me. Please let me know if you need help/guidance for implementing it. Thanks

Hey @thehowl and thanks for the proposal.
Go ahead and create a PR for this and tag me. Please let me know if you need help/guidance for implementing it. Thanks

Closed with #1153. Thanks for your contribution @thehowl 😃

Closed with #1153. Thanks for your contribution @thehowl 😃


Cannot load xiwi

Toshiba Chromebook 2.
popen2: child exited with status 1
find_shm: Error running helper.
write_image: Cannot find shm, moving on...
popen2: child exited with status 1
find_shm: Error running helper.
write_image: Cannot find shm, moving on...
popen2: child exited with status 1
find_shm: Error running helper.
write_image: Cannot find shm, moving on...
continues until i close the window.
targets were xiwi,extension,kde.
happens with unity as well, on both trusty and utopic

Can you post the complete output of sudo enter-chroot croutonversion?  Have you tried updating the chroots?  Does the update complete successfully?

[code]
chronos@localhost / $ sudo startkde
Entering /mnt/stateful_partition/crouton/chroots/utopic...
X.Org X Server 1.16.0
Release Date: 2014-07-16
X Protocol Version 11, Revision 0
Build Operating System: Linux 3.2.0-54-generic x86_64 Ubuntu
Current Operating System: Linux localhost 3.10.18 #1 SMP Sat Jan 24 23:51:58 AEST 2015 x86_64
Kernel command line: cros_secure console= loglevel=7 init=/sbin/init cros_secure oops=panic panic=-1 root=/dev/dm-0 rootwait ro dm_verity.error_behavior=3 dm_verity.max_bios=-1 dm_verity.dev_wait=1 dm="1 vroot none ro 1,0 2506752 verity payload=PARTUUID=17fca4ea-20d4-aa48-b5a1-0518f264d04b/PARTNROFF=1 hashtree=PARTUUID=17fca4ea-20d4-aa48-b5a1-0518f264d04b/PARTNROFF=1 hashstart=2506752 alg=sha1 root_hexdigest=1b40800e98615e347dc2cfc77be4e2762a587483 salt=4c7df17695fd2dd90378eb2d4204639db776204c50f98d5cb6dc7a64662648b2" noinitrd cros_debug vt.global_cursor_default=0 kern_guid=17fca4ea-20d4-aa48-b5a1-0518f264d04b add_efi_memmap boot=local noresume noswap i915.modeset=1 tpm_tis.force=1 tpm_tis.interrupts=0 nmi_watchdog=panic,lapic
Build Date: 09 December 2014  11:01:03PM
xorg-server 2:1.16.0-1ubuntu1.2 (For technical support please see http://www.ubuntu.com/support)
Current version of pixman: 0.32.4
Before reporting problems, check http://wiki.x.org
to make sure that you have the latest version.
Markers: (--) probed, (**) from config file, (==) default setting,
(++) from command line, (!!) notice, (II) informational,
(WW) warning, (EE) error, (NI) not implemented, (??) unknown.
(++) Log file: "/tmp/Xorg.crouton.1.log", Time: Mon Jan 26 19:19:10 2015
(++) Using config file: "/etc/X11/xorg-dummy.conf"
(==) Using system config directory "/usr/share/X11/xorg.conf.d"
/usr/bin/xinit: XFree86_VT property unexpectedly has 0 items instead of 1
Error: not connected.
Cannot connect to extension, retrying...
Error: not connected.
Cannot connect to extension, retrying...
Error: not connected.
Cannot connect to extension, retrying...
Error: not connected.
Cannot connect to extension, retrying...
Error: not connected.
Cannot connect to extension, retrying...
Connected to extension, launched crouton in a tab window.
startkde: Starting up...
Error: target STRING not available
Connecting to deprecated signal QDBusConnectionInterface::serviceOwnerChanged(QString,QString,QString)
QDBusConnection: session D-Bus connection created before QCoreApplication. Application may misbehave.
QDBusConnection: session D-Bus connection created before QCoreApplication. Application may misbehave.
popen2: child exited with status 1
find_shm: Error running helper.
write_image: Cannot find shm, moving on...
popen2: child exited with status 1
find_shm: Error running helper.
write_image: Cannot find shm, moving on...
popen2: child exited with status 1
find_shm: Error running helper.
write_image: Cannot find shm, moving on...
popen2: child exited with status 1
find_shm: Error running helper.
write_image: Cannot find shm, moving on...
popen2: child exited with status 1
find_shm: Error running helper.
write_image: Cannot find shm, moving on...
kbuildsycoca4 running...
popen2: child exited with status 1
find_shm: Error running helper.
write_image: Cannot find shm, moving on...
This backend is only for XRandR 1.1, your version is:  1 . 4
popen2: child exited with status 1
find_shm: Error running helper.
write_image: Cannot find shm, moving on...
QDBusConnection: session D-Bus connection created before QCoreApplication. Application may misbehave.
QDBusConnection: session D-Bus connection created before QCoreApplication. Application may misbehave.
popen2: child exited with status 1
find_shm: Error running helper.
write_image: Cannot find shm, moving on...
popen2: child exited with status 1
find_shm: Error running helper.
write_image: Cannot find shm, moving on...
popen2: child exited with status 1
find_shm: Error running helper.
write_image: Cannot find shm, moving on...
kded(7357) LayoutMemoryPersister::restoreFromFile: Failed to open layout memory xml file for reading "/home/mtp/.kde/share/apps/kded/session/keyboard/layout_memory.xml" error: 5
popen2: child exited with status 1
find_shm: Error running helper.
write_image: Cannot find shm, moving on...
popen2: child exited with status 1
find_shm: Error running helper.
write_image: Cannot find shm, moving on...
Object::connect: No such signal org::freedesktop::UPower::DeviceAdded(QDBusObjectPath)
Object::connect: No such signal org::freedesktop::UPower::DeviceRemoved(QDBusObjectPath)
popen2: child exited with status 1
find_shm: Error running helper.
write_image: Cannot find shm, moving on...
popen2: child exited with status 1
find_shm: Error running helper.
write_image: Cannot find shm, moving on...
popen2: child exited with status 1
find_shm: Error running helper.
write_image: Cannot find shm, moving on...
popen2: child exited with status 1
find_shm: Error running helper.
write_image: Cannot find shm, moving on...
popen2: child exited with status 1
find_shm: Error running helper.
write_image: Cannot find shm, moving on...
kded(7357)/kdecore (KConfigSkeleton) KCoreConfigSkeleton::writeConfig:
QDBusConnection: name 'org.kde.kglobalaccel' had owner '' but we thought it was ':1.5'
QDBusConnection: name 'org.freedesktop.UDisks2' had owner '' but we thought it was ':1.9'
klauncher(7353)/kdecore (services) KServiceFactory::findServiceByDesktopPath: "kactivitymanagerd.desktop" not found
No outputs have backlight property
kded(7357) XRandRConfig::applyKScreenConfig: Current mode is null: ModeId: "433" Mode:  QObject(0x0)  Output:  64
socket_client_read_frame_header: Connection close from WebSocket client.
QDBusConnection: session D-Bus connection created before QCoreApplication. Application may misbehave.
klauncher(7353)/kdecore (services) KServiceFactory::findServiceByDesktopPath: "kactivitymanagerd.desktop" not found
kded(7357) PowerDevil::Core::loadProfile: The profile  "Battery" tried to activate "DimDisplay" a non existent action. This is usually due to an installation problem or to a configuration problem. or simlpy the action is not supported
kded(7357) PowerDevil::Core::loadProfile: The profile  "Battery" tried to activate "DPMSControl" a non existent action. This is usually due to an installation problem or to a configuration problem. or simlpy the action is not supported
kded(7357) PowerDevil::Core::loadProfile: The profile  "Battery" tried to activate "BrightnessControl" a non existent action. This is usually due to an installation problem or to a configuration problem. or simlpy the action is not supported
kwin(7611) KWin::EffectsHandlerImpl::loadEffect: EffectsHandler::loadEffect : Effect  "kwin4_effect_startupfeedback"  is not supported
kwin(7611) KWin::EffectsHandlerImpl::loadEffect: EffectsHandler::loadEffect : Effect  "kwin4_effect_blur"  is not supported
QDBusConnection: session D-Bus connection created before QCoreApplication. Application may misbehave.
QDBusConnection: session D-Bus connection created before QCoreApplication. Application may misbehave.
QDBusObjectPath: invalid path ""
QDBusObjectPath: invalid path ""
klauncher(7353)/kdecore (services) KServiceFactory::findServiceByDesktopPath: "kactivitymanagerd.desktop" not found
plasma-desktop(7628): ""geometry" - conversion of "58,2,0,25" to QRectF failed"
plasma-desktop(7628): ""geometry" - conversion of "58,2,0,25" to QRectF failed"
plasma-desktop(7628): ""geometry" - conversion of "58,2,0,25" to QRectF failed"
plasma-desktop(7628): ""geometry" - conversion of "58,2,0,25" to QRectF failed"
plasma-desktop(7628)/libplasma Plasma::isPluginVersionCompatible: unversioned plugin detected, may result in instability
plasma-desktop(7628): ""geometry" - conversion of "58,2,0,25" to QRectF failed"
plasma-desktop(7628)/kdecore (services) KServiceFactory::findServiceByDesktopPath: "kde4-kmenuedit.desktop" not found
Object::connect: No such signal org::freedesktop::UPower::DeviceAdded(QDBusObjectPath)
Object::connect: No such signal org::freedesktop::UPower::DeviceRemoved(QDBusObjectPath)
plasma-desktop(7628)/kdecore (services) KServiceFactory::findServiceByDesktopPath: "systemsettings" not found
========================>  7 0
plasma-desktop(7628)/kdecore (KConfigSkeleton) KCoreConfigSkeleton::writeConfig:
static bool QDeclarativeMetaType::isModule(const QByteArray&, int, int) Qt 4.7 import detected; please note that Qt 4.7 is directly reusable as QtQuick 1.x with no code changes. Continuing, but startup time will be slower.
plasma-desktop(7628)/kdecore (KConfigSkeleton) KCoreConfigSkeleton::writeConfig:
plasma-desktop(7628)/kdecore (KConfigSkeleton) KCoreConfigSkeleton::writeConfig:
plasma-desktop(7628)/libakonadi Akonadi::AgentManagerPrivate::createDBusInterface: AgentManager failed to get a valid AgentManager DBus interface. Error is: 1 "org.freedesktop.DBus.Error.NameHasNoOwner" "Could not get owner of name 'org.freedesktop.Akonadi.Control': no such name"
plasma-desktop(7628)/libakonadi Akonadi::SessionPrivate::socketError: Socket error occurred: "QLocalSocket::connectToServer: Invalid name"
plasma-desktop(7628)/libakonadi Akonadi::SessionPrivate::socketError: Socket error occurred: "QLocalSocket::connectToServer: Invalid name"
Connecting to deprecated signal QDBusConnectionInterface::serviceOwnerChanged(QString,QString,QString)
search paths:  ("/usr/local/bin", "/usr/bin", "/bin", "/usr/local/games", "/usr/games", "/usr/sbin", "/usr/local/sbin", "/usr/local/libexec", "/usr/libexec", "/opt/mysql/libexec", "/opt/local/lib/mysql5/bin", "/opt/mysql/sbin")
Found mysql_install_db:  "/usr/bin/mysql_install_db"
Found mysqlcheck:  "/usr/bin/mysqlcheck"
plasma-desktop(7628)/kdecore (KConfigSkeleton) KCoreConfigSkeleton::writeConfig:
plasma-desktop(7628)/kdecore (KConfigSkeleton) KCoreConfigSkeleton::writeConfig:
file:///usr/share/kde4/apps/plasma/plasmoids/battery/contents/ui/CompactRepresentation.qml:73:9: QML Column: Cannot specify top, bottom, verticalCenter, fill or centerIn anchors for items inside Column
file:///usr/lib/kde4/imports/org/kde/plasma/components/SectionScroller.qml:103: TypeError: Result of expression 'listView' [null] is not an object.
file:///usr/lib/kde4/imports/org/kde/plasma/components/SectionScroller.qml:175: ReferenceError: Can't find variable: sectionsRepeater
file:///usr/lib/kde4/imports/org/kde/plasma/extras/ScrollArea.qml:162:9: QML ScrollArea: Cannot anchor to an item that isn't a parent or sibling.
file:///usr/lib/kde4/imports/org/kde/plasma/extras/ScrollArea.qml:162:9: QML ScrollArea: Cannot anchor to an item that isn't a parent or sibling.
file:///usr/lib/kde4/imports/org/kde/plasma/extras/ScrollArea.qml:162:9: QML ScrollArea: Cannot anchor to an item that isn't a parent or sibling.
file:///usr/lib/kde4/imports/org/kde/plasma/components/SectionScroller.qml:103: Error: Cannot assign [undefined] to QString
file:///usr/share/kde4/apps/plasma/plasmoids/notifier/contents/ui/devicenotifier.qml:224:13: QML QDeclarativeListView_QML_92: Possible anchor loop detected on fill.
file:///usr/share/kde4/apps/plasma/plasmoids/notifier/contents/ui/devicenotifier.qml:224:13: QML QDeclarativeListView_QML_92: Possible anchor loop detected on fill.
file:///usr/share/kde4/apps/plasma/plasmoids/notifier/contents/ui/devicenotifier.qml:224:13: QML QDeclarativeListView_QML_92: Possible anchor loop detected on fill.
file:///usr/share/kde4/apps/plasma/plasmoids/notifier/contents/ui/devicenotifier.qml:224:13: QML QDeclarativeListView_QML_92: Possible anchor loop detected on fill.
Object::connect: No such signal org::freedesktop::UPower::DeviceAdded(QDBusObjectPath)
Object::connect: No such signal org::freedesktop::UPower::DeviceRemoved(QDBusObjectPath)
file:///usr/share/kde4/apps/plasma/packages/org.kde.systemtray/contents/ui/IconsList.qml:53:9: QML MouseRedirectArea: Binding loop detected for property "width"
QDBusConnection: session D-Bus connection created before QCoreApplication. Application may misbehave.
QDBusConnection: session D-Bus connection created before QCoreApplication. Application may misbehave.
akonadi.collectionattributetable                   OK
akonadi.collectionmimetyperelation                 OK
akonadi.collectionpimitemrelation                  OK
akonadi.collectiontable                            OK
akonadi.flagtable                                  OK
akonadi.mimetypetable                              OK
akonadi.parttable                                  OK
akonadi.parttypetable                              OK
akonadi.pimitemflagrelation                        OK
akonadi.pimitemtable                               OK
akonadi.pimitemtagrelation                         OK
akonadi.resourcetable                              OK
akonadi.schemaversiontable                         OK
akonadi.tagattributetable                          OK
akonadi.tagremoteidresourcerelationtable           OK
akonadi.tagtable                                   OK
akonadi.tagtypetable                               OK
mysql.columns_priv                                 OK
mysql.db                                           OK
mysql.event                                        OK
mysql.func                                         OK
mysql.general_log                                  OK
mysql.help_category                                OK
mysql.help_keyword                                 OK
mysql.help_relation                                OK
mysql.help_topic                                   OK
mysql.host                                         OK
mysql.ndb_binlog_index                             OK
mysql.plugin                                       OK
mysql.proc                                         OK
mysql.procs_priv                                   OK
mysql.proxies_priv                                 OK
mysql.servers                                      OK
mysql.slow_log                                     OK
mysql.tables_priv                                  OK
mysql.time_zone                                    OK
mysql.time_zone_leap_second                        OK
mysql.time_zone_name                               OK
mysql.time_zone_transition                         OK
mysql.time_zone_transition_type                    OK
mysql.user                                         OK
MySQL version OK (required "5.1" , available "5.5" )
Object::connect: No such signal QDBusAbstractInterface::StateChanged(uint)
Database "akonadi" opened using driver "QMYSQL"
DbInitializer::run()
checking table  "SchemaVersionTable"
checking table  "ResourceTable"
checking table  "CollectionTable"
checking table  "MimeTypeTable"
checking table  "PimItemTable"
checking table  "FlagTable"
checking table  "PartTypeTable"
checking table  "PartTable"
/usr/bin/xbindkeys_autostart: line 24: CONF: unbound variable
checking table  "CollectionAttributeTable"
checking table  "TagTypeTable"
checking table  "TagTable"
checking table  "TagAttributeTable"
checking table  "TagRemoteIdResourceRelationTable"
checking table  "PimItemFlagRelation"
checking table  "PimItemTagRelation"
checking table  "CollectionMimeTypeRelation"
checking table  "CollectionPimItemRelation"
DbInitializer::run() done
skipping update 2
skipping update 3
skipping update 4
skipping update 8
skipping update 10
skipping update 12
skipping update 13
skipping update 14
skipping update 15
skipping update 16
skipping update 17
skipping update 18
skipping update 19
skipping update 20
skipping update 21
skipping update 22
skipping update 23
skipping update 24
skipping update 25
skipping update 26
skipping update 28
QDBusConnection: session D-Bus connection created before QCoreApplication. Application may misbehave.
QDBusConnection: session D-Bus connection created before QCoreApplication. Application may misbehave.
QDBusConnection: session D-Bus connection created before QCoreApplication. Application may misbehave.
QDBusConnection: session D-Bus connection created before QCoreApplication. Application may misbehave.
QDBusConnection: session D-Bus connection created before QCoreApplication. Application may misbehave.
QDBusConnection: session D-Bus connection created before QCoreApplication. Application may misbehave.
QDBusConnection: session D-Bus connection created before QCoreApplication. Application may misbehave.
QDBusConnection: session D-Bus connection created before QCoreApplication. Application may misbehave.
Indexes successfully created
DataStore::unhideAllPimItems()
Search loop is waiting, will wake again in -1 ms
Connecting to deprecated signal QDBusConnectionInterface::serviceOwnerChanged(QString,QString,QString)
Database "akonadi" opened using driver "QMYSQL"
PLUGINS:  "/usr/share/akonadi/agents"
PLUGINS:  ("akonadinepomukfeederagent.desktop", "akonotesresource.desktop", "birthdaysresource.desktop", "contactsresource.desktop", "davgroupwareresource.desktop", "facebookresource.desktop", "googlecalendarresource.desktop", "googlecontactsresource.desktop", "icaldirresource.desktop", "icalresource.desktop", "imapresource.desktop", "invitationsagent.desktop", "kabcresource.desktop", "kalarmdirresource.desktop", "kalarmresource.desktop", "kcalresource.desktop", "kdeaccountsresource.desktop", "kolabproxyresource.desktop", "kolabresource.desktop", "localbookmarksresource.desktop", "maildirresource.desktop", "maildispatcheragent.desktop", "mboxresource.desktop", "migrationagent.desktop", "mixedmaildirresource.desktop", "mtdummyresource.desktop", "newmailnotifieragent.desktop", "nntpresource.desktop", "notesresource.desktop", "openxchangeresource.desktop", "pop3resource.desktop", "vcarddirresource.desktop", "vcardresource.desktop")
search paths:  ("/usr/local/bin", "/usr/bin", "/bin", "/usr/local/games", "/usr/games")
Executable "akonadi_nepomuk_feeder" for agent "akonadi_nepomuk_feeder" could not be found!
PLUGINS inserting:  "akonadi_akonotes_resource" 1 ("Resource", "Notes")
PLUGINS inserting:  "akonadi_birthdays_resource" 0 ("Resource", "Unique")
PLUGINS inserting:  "akonadi_contacts_resource" 1 ("Resource")
PLUGINS inserting:  "akonadi_davgroupware_resource" 0 ("Resource", "FreeBusyProvider")
PLUGINS inserting:  "akonadi_facebook_resource" 0 ("Resource")
PLUGINS inserting:  "akonadi_googlecalendar_resource" 0 ("Resource")
PLUGINS inserting:  "akonadi_googlecontacts_resource" 0 ("Resource")
PLUGINS inserting:  "akonadi_icaldir_resource" 0 ("Resource")
PLUGINS inserting:  "akonadi_ical_resource" 1 ("Resource")
PLUGINS inserting:  "akonadi_imap_resource" 0 ("Resource")
PLUGINS inserting:  "akonadi_invitations_agent" 0 ("NoConfig")
PLUGINS inserting:  "akonadi_kabc_resource" 0 ("Resource")
PLUGINS inserting:  "akonadi_kalarm_dir_resource" 0 ("Resource")
PLUGINS inserting:  "akonadi_kalarm_resource" 0 ("Resource")
PLUGINS inserting:  "akonadi_kcal_resource" 0 ("Resource")
PLUGINS inserting:  "akonadi_kdeaccounts_resource" 0 ("Resource")
PLUGINS inserting:  "akonadi_kolabproxy_resource" 0 ("Resource", "Unique")
PLUGINS inserting:  "akonadi_kolab_resource" 0 ("Resource")
PLUGINS inserting:  "akonadi_localbookmarks_resource" 0 ("Resource")
PLUGINS inserting:  "akonadi_maildir_resource" 1 ("Resource")
PLUGINS inserting:  "akonadi_maildispatcher_agent" 0 ("Unique", "Autostart")
PLUGINS inserting:  "akonadi_mbox_resource" 0 ("Resource")
PLUGINS inserting:  "akonadi_migration_agent" 0 ("Unique", "Autostart")
PLUGINS inserting:  "akonadi_mixedmaildir_resource" 0 ("Resource")
PLUGINS inserting:  "akonadi_mailtransport_dummy_resource" 0 ("Resource", "MailTransport")
PLUGINS inserting:  "akonadi_newmailnotifier_agent" 0 ("Unique", "Autostart")
PLUGINS inserting:  "akonadi_nntp_resource" 0 ("Resource")
PLUGINS inserting:  "akonadi_notes_resource" 0 ("Resource")
PLUGINS inserting:  "akonadi_openxchange_resource" 0 ("Resource")
PLUGINS inserting:  "akonadi_pop3_resource" 0 ("Resource")
PLUGINS inserting:  "akonadi_vcarddir_resource" 0 ("Resource")
PLUGINS inserting:  "akonadi_vcard_resource" 0 ("Resource")
search paths:  ("/home/mtp/.kde/lib/kde4/plugins/", "/usr/lib/kde4/plugins/", "/usr/lib/x86_64-linux-gnu/qt4/plugins", "/usr/bin", "/usr/lib/kde4/plugins", "/home/mtp/.kde/lib/kde4/", "/usr/lib/kde4/")
SEARCH MANAGER: searching in  "/home/mtp/.kde/lib/kde4/plugins//akonadi" : ()
SEARCH MANAGER: searching in  "/usr/lib/kde4/plugins//akonadi" : ()
SEARCH MANAGER: searching in  "/usr/lib/x86_64-linux-gnu/qt4/plugins/akonadi" : ()
SEARCH MANAGER: searching in  "/usr/bin/akonadi" : ()
SEARCH MANAGER: searching in  "/usr/lib/kde4/plugins/akonadi" : ()
SEARCH MANAGER: searching in  "/home/mtp/.kde/lib/kde4//akonadi" : ()
SEARCH MANAGER: searching in  "/usr/lib/kde4//akonadi" : ()
plasma-desktop(7628)/kdecore (KConfigSkeleton) KCoreConfigSkeleton::writeConfig:
plasma-desktop(7628)/kdecore (KConfigSkeleton) KCoreConfigSkeleton::writeConfig:
plasma-desktop(7628)/kdecore (KConfigSkeleton) KCoreConfigSkeleton::writeConfig:
Akonadi server is now operational.
QDBusObjectPath Akonadi::Server::NotificationManager::subscribeV2(const QString&, bool) Akonadi::Server::NotificationManager(0x21a2100) "plasma-desktop_7628_xzAfli" true
QDBusObjectPath Akonadi::Server::NotificationManager::subscribeV3(const QString&, bool, bool) Akonadi::Server::NotificationManager(0x21a2100) "plasma-desktop_7628_xzAfli" true false
Database "akonadi" opened using driver "QMYSQL"
Database "akonadi" opened using driver "QMYSQL"
klipper(7683) Klipper::loadHistory: Failed to load history resource. Clipboard history cannot be read. :  History file does not exist
search paths:  ("/home/mtp/.kde/lib/kde4/plugins/", "/usr/lib/kde4/plugins/", "/usr/lib/x86_64-linux-gnu/qt4/plugins", "/usr/bin", "/usr/lib/kde4/plugins", "/home/mtp/.kde/lib/kde4/", "/usr/lib/kde4/")
search paths:  ("/home/mtp/.kde/lib/kde4/plugins/", "/usr/lib/kde4/plugins/", "/usr/lib/x86_64-linux-gnu/qt4/plugins", "/usr/bin", "/usr/lib/kde4/plugins", "/home/mtp/.kde/lib/kde4/", "/usr/lib/kde4/")
search paths:  ("/home/mtp/.kde/lib/kde4/plugins/", "/usr/lib/kde4/plugins/", "/usr/lib/x86_64-linux-gnu/qt4/plugins", "/usr/bin", "/usr/lib/kde4/plugins", "/home/mtp/.kde/lib/kde4/", "/usr/lib/kde4/")
search paths:  ("/home/mtp/.kde/lib/kde4/plugins/", "/usr/lib/kde4/plugins/", "/usr/lib/x86_64-linux-gnu/qt4/plugins", "/usr/bin", "/usr/lib/kde4/plugins", "/home/mtp/.kde/lib/kde4/", "/usr/lib/kde4/")
QDBusObjectPath Akonadi::Server::NotificationManager::subscribeV2(const QString&, bool) Akonadi::Server::NotificationManager(0x21a2100) "AkonadiAgentServer_7699_7pzclR" true
QDBusObjectPath Akonadi::Server::NotificationManager::subscribeV3(const QString&, bool, bool) Akonadi::Server::NotificationManager(0x21a2100) "AkonadiAgentServer_7699_7pzclR" true false
QDBusObjectPath Akonadi::Server::NotificationManager::subscribeV2(const QString&, bool) Akonadi::Server::NotificationManager(0x21a2100) "AkonadiAgentServer_7702_K6iKiI" true
QDBusObjectPath Akonadi::Server::NotificationManager::subscribeV3(const QString&, bool, bool) Akonadi::Server::NotificationManager(0x21a2100) "AkonadiAgentServer_7702_K6iKiI" true false
Database "akonadi" opened using driver "QMYSQL"
Database "akonadi" opened using driver "QMYSQL"
QDBusObjectPath Akonadi::Server::NotificationManager::subscribeV2(const QString&, bool) Akonadi::Server::NotificationManager(0x21a2100) "AkonadiAgentServer_7700_o21i60" true
QDBusObjectPath Akonadi::Server::NotificationManager::subscribeV3(const QString&, bool, bool) Akonadi::Server::NotificationManager(0x21a2100) "AkonadiAgentServer_7700_o21i60" true false
Database "akonadi" opened using driver "QMYSQL"
QDBusObjectPath Akonadi::Server::NotificationManager::subscribeV2(const QString&, bool) Akonadi::Server::NotificationManager(0x21a2100) "AkonadiAgentServer_7701_PBWn5q" true
QDBusObjectPath Akonadi::Server::NotificationManager::subscribeV3(const QString&, bool, bool) Akonadi::Server::NotificationManager(0x21a2100) "AkonadiAgentServer_7701_PBWn5q" true false
Database "akonadi" opened using driver "QMYSQL"
Database "akonadi" opened using driver "QMYSQL"
New PolkitAgentListener  0x116a020
Adding new listener  PolkitQt1::Agent::Listener(0x12d1690) for  0x116a020
"Cannot create unix session: No session for pid 7681"
** (process:7681): CRITICAL **: polkit_agent_listener_register_with_options: assertion 'POLKIT_IS_SUBJECT (subject)' failed
"Cannot register authentication agent!"
(process:7681): GLib-GObject-CRITICAL **: g_object_unref: assertion 'G_IS_OBJECT (object)' failed
Database "akonadi" opened using driver "QMYSQL"
Object::connect: No such signal org::freedesktop::UPower::DeviceAdded(QDBusObjectPath)
Object::connect: No such signal org::freedesktop::UPower::DeviceRemoved(QDBusObjectPath)
Object::connect: No such signal org::freedesktop::UPower::DeviceAdded(QDBusObjectPath)
Object::connect: No such signal org::freedesktop::UPower::DeviceRemoved(QDBusObjectPath)
Agent instance created in separate process.
Agent instance created in separate process.
Agent instance created in separate process.
Agent instance created in separate process.
plasma-desktop(7628)/plasma StatusNotifierItemSource::refreshCallback: DBusMenu disabled for this application
QDBusObjectPath Akonadi::Server::NotificationManager::subscribeV2(const QString&, bool) Akonadi::Server::NotificationManager(0x21a2100) "akonadi_maildispatcher_agent_7703_p5k0lA" true
QDBusObjectPath Akonadi::Server::NotificationManager::subscribeV3(const QString&, bool, bool) Akonadi::Server::NotificationManager(0x21a2100) "akonadi_maildispatcher_agent_7703_p5k0lA" true false
Database "akonadi" opened using driver "QMYSQL"
Database "akonadi" opened using driver "QMYSQL"
QDBusObjectPath Akonadi::Server::NotificationManager::subscribeV2(const QString&, bool) Akonadi::Server::NotificationManager(0x21a2100) "akonadi_migration_agent_7704_G3j1q3" true
QDBusObjectPath Akonadi::Server::NotificationManager::subscribeV3(const QString&, bool, bool) Akonadi::Server::NotificationManager(0x21a2100) "akonadi_migration_agent_7704_G3j1q3" true false
QDBusObjectPath Akonadi::Server::NotificationManager::subscribeV2(const QString&, bool) Akonadi::Server::NotificationManager(0x21a2100) "akonadi_newmailnotifier_agent_7705_Rm4WLM" true
QDBusObjectPath Akonadi::Server::NotificationManager::subscribeV3(const QString&, bool, bool) Akonadi::Server::NotificationManager(0x21a2100) "akonadi_newmailnotifier_agent_7705_Rm4WLM" true false
Database "akonadi" opened using driver "QMYSQL"
Database "akonadi" opened using driver "QMYSQL"
QDBusObjectPath Akonadi::Server::NotificationManager::subscribeV2(const QString&, bool) Akonadi::Server::NotificationManager(0x21a2100) "akonadi_maildispatcher_agent_7703_7ODlGL" true
QDBusObjectPath Akonadi::Server::NotificationManager::subscribeV3(const QString&, bool, bool) Akonadi::Server::NotificationManager(0x21a2100) "akonadi_maildispatcher_agent_7703_7ODlGL" true false
QDBusObjectPath Akonadi::Server::NotificationManager::subscribeV2(const QString&, bool) Akonadi::Server::NotificationManager(0x21a2100) "akonadi_maildispatcher_agent_7703_llhH3v" true
QDBusObjectPath Akonadi::Server::NotificationManager::subscribeV3(const QString&, bool, bool) Akonadi::Server::NotificationManager(0x21a2100) "akonadi_maildispatcher_agent_7703_llhH3v" true false
krunner(7685)/kdecore (services) KServiceFactory::findServiceByDesktopPath: "searchproviders/wikit.desktop" not found
Hspell: can't open /usr/share/hspell/hebrew.wgz.sizes.
I/O warning : failed to load external entity "/home/mtp/.qalculate/eurofxref-daily.xml"
I/O warning : failed to load external entity "/home/mtp/.qalculate/eurofxref-daily.xml"
Object::connect: No such signal org::freedesktop::UPower::DeviceAdded(QDBusObjectPath)
Object::connect: No such signal org::freedesktop::UPower::DeviceRemoved(QDBusObjectPath)
[/code]

Sorry, but the command I was asking for was sudo enter-chroot croutonversion...

sudo enter-chroot croutonversion
Entering /mnt/stateful_partition/crouton/chroots/kde...
crouton: version 1-20150122115021~master:0ad2d48f
release: precise
architecture: amd64
targets: xorg
host: version 6721.0.2015_01_25_0039 (Developer Build - mtp) developer-build swanky
Unmounting /mnt/stateful_partition/crouton/chroots/kde...

Is that image built from ToT?

sorry,  ToT?

What Chromium OS image are you using?  Did you build it yourself?

yes built it myself using the defaults for Toshiba Chromebook 2 (swanky)

@jewnersey : Can you provide the output of this, while startkde is running, and the crouton in tab window is open? (that is, from another terminal)
for pid in `pgrep nacl_helper`; do echo $pid; grep shm "/proc/$pid/maps"; done

chronos@localhost / $ for pid in pgrep nacl_helper; do echo $pid; grep shm "/proc/$pid/maps"; done
1626
24831
142300090000-14230fd80000 ---s 00000000 00:0f 105353                     /dev/shm/.org.chromium.Chromium.II0Ge0 (deleted)
14230fd80000-14230fff0000 r-xs 0fcf0000 00:0f 105353                     /dev/shm/.org.chromium.Chromium.II0Ge0 (deleted)
14230fff0000-142310020000 ---s 0ff60000 00:0f 105353                     /dev/shm/.org.chromium.Chromium.II0Ge0 (deleted)
1423fe7b0000-1423fea82000 rw-s 00000000 00:0f 105509                     /dev/shm/.org.chromium.Chromium.MHjHfy (deleted)
1423fea90000-1423fed62000 rw-s 00000000 00:0f 105377                     /dev/shm/.org.chromium.Chromium.eAr9KE (deleted)
7f7490dd1000-7f7490dd2000 rw-s 00000000 00:0f 105312                     /dev/shm/.org.chromium.Chromium.Sk66u4 (deleted).

Ok thanks, that's an easy fix.

oh great! thank you!


gRPC install fails when gRPC_BUILD_CODEGEN is OFF during cross platform build

During a cross platform build of gRPC, none of the plugin targets are created if gRPC_BUILD_CODEGEN  is set to OFF.
But here https://github.com/grpc/grpc/blob/master/CMakeLists.txt#L26104 gRPCPluginTargets are installed without checking gRPC_BUILD_CODEGEN variable. This leads to failure while doing install of gRPC build.

I just ran across this too. I think it broke at this commit:
https://github.com/grpc/grpc/commit/831d2a6855da36998e24f46e6b2a5b6f6042ad1a
Wrote the Dockerfile below to demonstrate the issue. 1.51.0 will succeed but 1.52.0 and the latest release (1.54.0 as of today) fail with the message: CMake Error: INSTALL(EXPORT) given unknown export "gRPCPluginTargets".
It breaks our cross compile since we only build the libraries on the target system and don't build the plugins or codegen for the target system.

WORKDIR /git_repos/grpc-1.52.0
RUN cmake -DgRPC_BUILD_CODEGEN="OFF" .

WORKDIR /git_repos/grpc-1.54.0
RUN cmake -DgRPC_BUILD_CODEGEN="OFF" .

#RUN cmake --build . --parallel $(nproc)
#RUN cmake --install .

WORKDIR /

ENTRYPOINT ["/bin/bash"]

Adding a link to this PR comment to it's not lost in the bug report:
https://github.com/grpc/grpc/pull/32886#issuecomment-1513211289
I.e., the install will also fail when gRPC_BUILD_CODEGEN=ON but every gRPC_BUILD_GRPC_*_PLUGIN=OFF.

Tthis sounds a regression. This might be a side-effect of https://github.com/grpc/grpc/pull/31525.

@veblush I verified that your branch now builds when gRPC_BUILD_CODEGEN="OFF" in a Dockerfile.
Note that if it is possible to compile with gRPC_BUILD_CODEGEN="ON" and every PLUGIN off, I think that would still be broken even with your fix:
https://github.com/grpc/grpc/issues/32885#issuecomment-1521866829
But I don't have any easy way to test that.

@matthewjmiller1 Thanks for verification! and I see the corner-case, which could be addressed but I think this change is enough to close this bug.


Facility code to be added in stack values.yaml

Expected Behaviour
While we deploy tink-stack by updating only the following values.yaml, it needs to create tink-stack with respective values,
https://github.com/tinkerbell/charts/blob/main/tinkerbell/stack/values.yaml#L43
It looks like the current main branch https://github.com/tinkerbell/charts/blob/main/tinkerbell/boots/templates/deployment.yaml#L51 it's hardcoded. It will be good to allow custom values set by the user.

Hi @shan100github, thanks for raising. What's your motivation for wanting to tweak this?
FYI, we intend on deprecating and removing the facility configuration across Tinkerbell.

I thought its a miss during a recent change, got it.
let me close it.


Add codeql-action/start-proxy

This pull request adds a new experimental action, codeql-action/start-proxy, which starts the HTTP proxy server that is also used by dependabot update jobs. The Action is used for an experimental implementation leveraging Dependabot's configurations and secrets by CodeQL Default Setup jobs that require access to private maven repositories.
Merge / deployment checklist

[ ] Confirm this change is backwards compatible with existing workflows.
[ ] Confirm the readme has been updated if necessary.
[ ] Confirm the changelog has been updated if necessary.

We may want to add a changelog note indicating this is a new experimental action, probably something similar to this one resolve-environment: https://github.com/github/codeql-action/blob/main/CHANGELOG.md#2201---21-jun-2023.

@angelapwen When we do the next release, we'll probably want to add a commit to the v3 -> v2 backport PR to run this Action on Node 16.  I wonder whether it's worth doing a release now so we don't forget — what do you think?

Good point @henrymercer — I'll release earlier in the workday tomorrow.

Kicking off the release now 🙏

Done in https://github.com/github/codeql-action/pull/2390!


Option passed to duplicity causes error (only when running in volumerize)

I have the following environment vars:
VOLUMERIZE_SOURCE: /source
VOLUMERIZE_TARGET: pexpect+scp://app:[REDACTED]@server-backup//media/offsite-backups/data
VOLUMERIZE_DUPLICITY_OPTIONS: --scp-command "scp -l 100000"
PASSPHRASE: [REDACTED]

Now if i open a shell into the running container, i get the follwing running ./backup:
bash-5.0# ./backup
Usage:
  duplicity [full|incremental] [options] source_dir target_url
  duplicity [restore] [options] source_url target_dir
  duplicity verify [options] source_url target_dir
  duplicity collection-status [options] target_url
  duplicity list-current-files [options] target_url
  duplicity cleanup [options] target_url
  duplicity remove-older-than time [options] target_url
  duplicity remove-all-but-n-full count [options] target_url
  duplicity remove-all-inc-of-but-n-full count [options] target_url

Backends and their URL formats:
  cf+http://container_name
  file:///some_dir
  ftp://user[:password]@other.host[:port]/some_dir
  ftps://user[:password]@other.host[:port]/some_dir
  hsi://user[:password]@other.host[:port]/some_dir
  imap://user[:password]@other.host[:port]/some_dir
  rsync://user[:password]@other.host[:port]::/module/some_dir
  rsync://user[:password]@other.host[:port]/relative_path
  rsync://user[:password]@other.host[:port]//absolute_path
  s3://other.host[:port]/bucket_name[/prefix]
  s3+http://bucket_name[/prefix]
  scp://user[:password]@other.host[:port]/some_dir
  ssh://user[:password]@other.host[:port]/some_dir
  swift://container_name
  tahoe://alias/directory
<EMAIL_ADDRESS><EMAIL_ADDRESS><EMAIL_ADDRESS><EMAIL_ADDRESS><EMAIL_ADDRESS><EMAIL_ADDRESS>  dpbx:///some_dir
  onedrive://some_dir
  azure://container_name
  b2://account_id[:application_key]@bucket_name/[some_dir/]
<EMAIL_ADDRESS>
Commands:
  cleanup <target_url>
  collection-status <target_url>
  full <source_dir> <target_url>
  incr <source_dir> <target_url>
  list-current-files <target_url>
  restore <source_url> <target_dir>
  remove-older-than <time> <target_url>
  remove-all-but-n-full <count> <target_url>
  remove-all-inc-of-but-n-full <count> <target_url>
  verify <target_url> <source_dir>

duplicity: error: no such option: -l

I then put an echo before line 34 in the backup script, copy and paste the printed command into the shell and the backup executes as expected.
Please note that the pexpect+scp:// url depends on my pull request #74 in order to work.

just saw the deprecation message so i'll close this. i might just try it on my own then. if you have any hints though, i'd be eternally grateful...

for anyone encountering this problem: adding eval before the duplicity command lines in the scripts under scripts/ fixes this.
for reference: https://github.com/motionbank/volumerize/blob/cf8de6dd355a7d145d51f8f62f11a3535c4367f7/scripts/backup#L34


_cat/nodes disk usage

_cat/nodes will provide disk usage, based upon this PR: https://github.com/elastic/elasticsearch/pull/21775
We customized the columns, to include the node id. Need to investigate if the disk column can be added (which is likely on by default in newer releases) without causing an error for versions of elasticsearch that would not support this.

Added for the new 6.0 calls. Not sure what to do about the 5.6 since I usually stay on major version. I'll test it to see if it breaks a 5.5 and if not I'll put it in there as well.

Works as far back as 5.1.1 so adding to the 5 output. Sorry this one took so long...


No autocomplete for pandas column name in Jupyter notebook using bracket notation ['col']

Environment data

VS Code version: 1.64.00
Jupyter Extension version (available under the Extensions sidebar):  v2022.1.1001821375
Python Extension version (available under the Extensions sidebar): v2022.0.1814523869
OS (Windows | Mac | Linux distro) and version: Windows 10
Python and/or Anaconda version: python 3.8.12
Type of virtual environment used (N/A | venv | virtualenv | conda | ...): conda
Jupyter server running: Local

Expected behaviour
Autocomplete works for pandas dataframes in jupyter notebooks.
Actual behaviour
Autocomplete does not work. Users have to manually type the column names every time. It even doesn't work when I've manually specified the column name several times. I've tried all the language servers, including Jedi, Pylance, and the default option. No autocomplete.
Steps to reproduce:
[NOTE: Self-contained, minimal reproducing code samples are extremely helpful and will expedite addressing your issue]

Create pandas dataframe

df = pd.DataFrame({'test': [1,2], 'test2': [2,3]})

Call dataframe variable and check if autocomplete works for the columns

df['test']

Logs

Output for Jupyter in the Output panel (View→Output, change the drop-down the upper-right of the Output panel to Jupyter)

XXX

@natwille1 I repro the same. We have . completion after the column is name is completed but no autocompletion for the name itself when typing it as df['column_name']. We do have auto complete for just df.column_name, but that doesn't look like what you are looking for here:

Just to check do you get this ['column_name'] auto complete in a Jupyter notebook outside of vscode? I would assume this is the case, but in the Jupyter install that I have locally I don't see autocompletions for column names, might just be a misconfiguration that I have.

I have my language server set to pylance. Pylance should be using the python interpreter that you have selected for the current workspace so there could be an issue here if the kernel you have selected doesn't line up with the currently selected python interpreter. For the interactive inline execution were you looking for completions in the .py file itself? Or in the input box of the interactive window? If the completions of both types are missing in the .py file that would be an issue that we might have to transfer to the pylance team to investigate.

Okay, my settings for python language server are "Default" which should use pylance given I have the extension installed. How can I check that the kernel and the selected python interpreter match? I use conda and select a specific environment for a specific project in the dropdown menu in the top right hand corner of the jupyter notebook.
For interactive inline execution, I do not see any completions in the jupyter code cell in the .py file, but I do get the df.column_name completion in the input box of the interactive window. Thanks

Jumping in here, I do have autocompletion of column names but it buried in other suggestions that are not relate to my dataframe.
This is what I get when I press ctrl+space inside the '' -

Interesting - I never see this. What could be the factors affecting this behaviour? I can think of language server but I think we're also using pylance? Anything else?

@natwille1 Could you take a look at the Python Language Service section of the output window? When that starts up Pylance there is some logging about the interpreter that is being used, as well as any possible errors. Here is an example from my machine:
[Info  - 12:45:21 PM] (61504) Pylance language server 2022.2.2-pre.1 (pyright 618f54ed) starting
[Info  - 12:45:21 PM] (61504) Server root directory: /Users/ianhuff/.vscode-insiders/extensions/ms-python.vscode-pylance-2022.2.2-pre.1/dist
[Info  - 12:45:21 PM] (61504) No configuration file found.
[Info  - 12:45:21 PM] (61504) No pyproject.toml file found.
[Info  - 12:45:21 PM] (61504) Setting pythonPath for service "DebuggingDemo": "/Users/ianhuff/Documents/DataScience/DebuggingDemo/.debugEnv/bin/python"
[Warn  - 12:45:21 PM] (61504) stubPath /Users/ianhuff/Documents/DataScience/DebuggingDemo/typings is not a valid directory.
[Info  - 12:45:21 PM] (61504) Assuming Python version 3.7
[Info  - 12:45:21 PM] (61504) Assuming Python platform Darwin

Yep mine looks the same as yours.. :/
[Info  - 09:53:47] (20496) Pylance language server 2022.2.3 (pyright 9b0ea9eb) starting
[Info  - 09:53:47] (20496) Server root directory: c:\Users\nwillems.vscode\extensions\ms-python.vscode-pylance-2022.2.3\dist
[Info  - 09:53:47] (20496) No configuration file found.
[Info  - 09:53:47] (20496) No pyproject.toml file found.
[Info  - 09:53:47] (20496) Setting pythonPath for service "proms-prediction": "C:\Users\nwillems\Anaconda3\envs\databricks\python.exe"
[Warn  - 09:53:47] (20496) stubPath c:\Users\nwillems\dev\proms-prediction\typings is not a valid directory.
[Info  - 09:53:48] (20496) Assuming Python version 3.8
[Info  - 09:53:48] (20496) Assuming Python platform Windows

I can get completions to work in a jupyter notebook (outside of VS code) and it does support the df.['column_name'] syntax:

(Jupyter brings up completions on the 'tab' key)
So it would seem like we could implement this.

Sounds good I wasn't seeing the [''] syntax in my Jupyter install but it was having a bunch of auto complete issues in general. I'm going to leave this issue open for supporting the bracket syntax, and I'm going to file a new issue to look at if we want to consider adding Jupyter completions into .py files when using the interactive window so we can track those issues separately.

@natwille1 My apologies. I think I need to back up a second to make sure that I'm looking at your specific scenario. Do you mind if I back up for a second and restate?
From your comments (all of this is referring to inside of VS Code):

In a Jupyter notebook you don't see completions for something like df['column_name'] when trying to complete the column name.
In a Jupyter notebook you do see completions for df.column_name, but it's slow and take a few seconds to come up.
When executing cell blocks from a .py file in the Interactive Window you don't see any column completions for the df at all either with a "." or with ['. But you do see other completions on the df (like df. and you would see 'abs' and other functions on the df).
When executing cell blocks from a .py fine in the Interactive Window in the Input box at the bottom of the Interactive Window you see the same . completions as in the notebook file.

Is that the right summary? I've looking at these scenarios and I think that I repro basically the same as you do. I think that I understand why most of the differences are happening, but I agree that there is some confusion about why things are seen in some scenarios and not others.

Right now we don't provide column name completions with the ['column_name'] syntax. So that's just a missing feature
In the notebook and the input box intellisense is being provided by both pylance and by the running jupyter server. Jupyter has their own completions and we combine those with the static analysis from pylance. That's why in those scenarios you see .column_name as an option. However in .py file intellisense has only pylance so you see the member functions but not the dynamically added function names. Their might be a way to change this where if an Interactive Window is running we provide the same Jupyter completions to the .py file, but we don't do that now.
The fact that completions are coming from Jupyter might be related to why they are slow to come back. For those Jupyter specific completions like the column names we are at the mercy of how fast the Jupyter server completion is, we can't control that directly.

@rchiodo

Correct description and thanks for outlining why and creating a new issue around this - looking forward to seeing any new support for these features!

In relation to this open issue, Jupyter Notebooks are also able to tab autocomplete files that are in the same working directory as the open notebook.
For example, if the file example.csv is in the same working directory as the the open .ipynb file, pd.read_csv('exam') + tab will autocompletes the file name within the pd.read_csv() call to example.csv.
The Jupyter Notebook extension in VS Code does not replicate this behavior.

Internal notes for the team to discuss
I think we should revert the change that fixed https://github.com/microsoft/vscode-jupyter/issues/7136
That was merely a paper cut from an internal user, and not something that was reported by users, and as a result of that change we now have code completion not appearing when it should. I.e. this is a regression in functionality now, as a result of a fix for a paper cut.
My suggestion is to first unblock the users) then look into a long term proper fix.

We could change this so that:

Don't filter to just file paths in strings
Make the default trigger for completions to always include string chars

"jupyter.pythonCompletionTriggerCharacters": ".%\"'"

Not super happy with this.
This is the result I get if I 'fix' this and put it back how it was:

As you can see it's listing out every possible match for the letter 'a'. Not just columns. Jupyter isn't filtering anything.
Jupyter notebook is more precise though. It gives me this:

And the difference is in our use of Jedi. We disable this because of perf problems with Jedi in a kernel. If I reenable it, our completions come out the same as Jupyter

I'm going to add a setting to enable more precise intellisense. With a warning that this makes everything potentially slower.

Verification steps:

Enable this setting:

"jupyter.enableExtendedKernelCompletions": true

Follow the steps above for creating a dataframe and trying to enter the columns

I have the setting enabled but weirdly I'm getting suggestions for all the folders I have in my GitHub repo:

That's by design. Jupyter isn't smart enough to filter them out.

The verification would be that the column names do show up in that list. It looks like you had 'test' and 'test2'? They did show up?

@rchiodo it works well but still reproduces with python.pylanceLspNotebooksEnabled enabled.

@rebornix can you explain what you mean by still reproduces? I have that setting enabled and it works for me:

@rchiodo I was not seeing test and test2 with the sample in https://github.com/microsoft/vscode-jupyter/issues/8983#issuecomment-1035292185

It works for me? Did you run the cell that generated the DF first?

These completions come from the kernel. You have to create the DF before it will know about the columns.

This does not work, or at least is very unstable. Sometimes, it works in the editor but not the interactive window, and sometimes the other way around. Very often... Neither dot nor brackets notion works at all.


quick question

I've been hacking around with Joy-Cons via a raw HID reader and I was wondering are the two analog sticks limited to being 8-directional D-PADs as is the default with no calibration, or are they capable of something more analog?

yes!


Remove mono requirement for dnu under linux

My understanding is that dnu is expected to work without Mono under Linux. This was my experience with beta7 and beta8 builds.

Awesome. Thanks @colemickens.


Header updated

I have updated the header in which changes included were -

Adjusted the header layout by adding space between the company logo and navigation items to improve the overall appearance.
Ensured that the HTML structure for the header is the same on all pages, including Home, About Us, Courses, Projects, and Contact.
Kept the company name in the same position while moving the navigation items to the right.

I am attaching a picture to show what the header looks like after making these changes.

Please review the changes, and let me know if any further adjustments are needed!

@saadgibawa pls mention the issue number, as it will be helpful for me to merge

@vivekvardhan2810 issue no. #6


Using TypeScript Classes in stores gets downgraded to objects with only the public keys

Reproduction
https://github.com/araney/vitejs-vite-z7xdkr
Steps to reproduce the bug
Open the repo in Visual Studio Code with the Volar extension
Open the App.vue file
Notice the error when binding models to :models on the Child component.
Expected behavior
No error should come up, as the type of the models ref should be Ref<Model[]>, and the type of the prop is Model[].
Actual behavior
An error comes up because the models ref is not of type Ref<Model[]>, but instead Ref<{id: string, name: string}[]>.
The class type being used is getting boiled down to an object with matching public properties. But the private properties are missing, which causes a TypeScript type error. The type information of the class type being used should be persisted.
Additional information
Type of the data on the pinia store:

Type of the storeToRef imported ref:

Error provided by the binding:

Note that this error also occurs if we use a computed to access store.models instead of storeToRef, and even occurs if we bind directly to the store with :models="store.models".
Compilation does not fail, and the code runs properly in the browser.

Duplicate of https://github.com/vuejs/pinia/issues/1427

This might help https://github.com/vuejs/pinia/issues/1401#issuecomment-1309087503

Please, search existing issues and pull requests before opening issues, it saves maintainers a lot of time 🙏


http-client-java, new data boundary client to resources lib

required for the new client in resources lib
https://github.com/Azure/azure-sdk-for-java/pull/42131

No changes needing a change description found.

You can try these changes here

🛝 Playground
🌐 Website
📚 Next docs


Eric/merge convex limiting fix

PR for merging fixes for the modified Green-Naghdi equations (or dispersive shallow water).
Things that were done:

Fixed the convex limiting step for mGN equations
Turned on the entropy viscosity for mGN equations using the SW entropy/flux functions (this is also done in TAMU code)
Updated some of the readme file for the SWFlows app
Change some little things on some of the tests
Added the analytical solution capability for tests
Create tests for pytest
Add relaxation of the local bounds for the convex limiting step

Things that need to be done:

Do the refactoring of the SWFlows app to be like the TwoPhaseFlow stuff

@tridelat and @zhang-alvin I think we should post-pone the refactorization of the SWFlows app until the new TwoPhaseFlow refactor has stabilized. What do you think? In that case @ejtovar can finish this up with some tests and the relaxation of local bounds in the convex limiting.

Looks like some of the new reference solution data (h5) is not getting installed (see setup.py) or is not quite where the test thinks it is.

Yes, I'm currently updating the comparison files.

I'm guessing the problem is that the tests can't be run from an arbitrary location the way that the file paths are done in the tests. Are they assuming the test is being run from the same directory as the test file? If so you need to grab the path for the test file and then prefix that to the reference file. Take a look at some of the other tests.

I used the TwoPhaseFlow tests file as a reference, but I will take a look at it later today and see what's going on.

@ejtovar and @tridelat to debug this path error you can run on your local machine with
PATH=./linux/bin:$PATH py.test -n 1 --dist=loadfile --forked -v proteus/tests/SWFlow
which is just a short version of what .travis.yaml is doing. I don't think the tests that these were based off of were ever designed to actually run from travis. The basic issue is that you need to be able to run the test from anywhere, but in particularly the proteus root diretory, which where travis is going to run th test.

@cekees It seems like the issue is related to the actual Green-Naghdi solver files. @zhang-alvin is currently helping me debug this. My working branch, where all the tests are currently passing, is still on version 1.6 with an older version of PETSc as well. Currently trying to hunt down the bug.

@cekees, @ejtovar, @tridelat
To provide a bit more detail, I can duplicate the errors seen on Travis-CI with the command:
PATH=./linux/bin:$PATH py.test -n 1 --dist=loadfile --forked -v proteus/tests/SWFlow
If I look at any of the log files produced, however, I see that there isn't much happening. For example, in the seawall case with log level 5, the entire log file is:
[       0] Initializing Proteus
[       0] Initializing MPI
[       0] Adding . to path for loading modules
[       0] Loading problem-specific modules
[       0] Importing input modules
[       0] /home/zhanga/barn/proteus/proteus_conda/proteus/SWFlow/models/
[       0] /home/zhanga/barn/proteus/proteus_conda/proteus/SWFlow/utils/
[       0] Loading module = SWEs_so.py; with case file = seawall.py
[       0] SWEs_so
[       0] /home/zhanga/barn/proteus/proteus_conda/proteus/SWFlow/utils/

The log file is generated in the current directory (which in this case is the proteus home directory). The test only fails at the .h5 file comparison stage which isn't even being generated because the solve is failing. So there's a separate issue here where the tests think they are passing even when the solve terminates earlier.
Running the case directly gives slightly more informative output:
parun --SWEs --path . -l11 -v seawall.py -C 'refinement=4 final_time=0.1 dt_output=0.1'
Constructing GN_SW2DCV<CompKernelTemplate<2,4,3,3,3,3>());
[       1] Allocating residual and solution vectors
[       1] Allocating Jacobian
[       1] Building sparse matrix structure
[       1] Allocating parallel storage
[       1] Building Mesh Transfers
[       1] Setting GN_sw_p stepController to <class 'proteus.StepControl.Min_dt_controller'>
[       1] Setting up MultilevelLinearSolver forGN_sw_p
[       1] multilevelLinearSolverChooser type= <class 'proteus.LinearSolvers.LU'>
[       1] Setting up MultilevelNonLinearSolver for GN_sw_p
[       1] Finished setting up models and solvers
[       1] Setting up SimTools for GN_sw_p
[       1] Using tnList from so = seawall
[       1] Time sequence[0.0, 0.001, 0.1]
[       1] NAHeader Num Time Steps 2
[       1] Setting seawall systemStepController to object of type <class 'proteus.SplitOperator.Sequential_MinModelStep'>
[       1] Finished NumericalSolution initialization
[       1] Setting initial conditions
[       1] Setting initial conditions for GN_sw_p
[       1] Setting initial conditions on model GN_sw_p
[       1] Attaching models and running spin-up step if requested
[       1] Attaching models to model GN_sw_p
[0]PETSC ERROR: ------------------------------------------------------------------------
[0]PETSC ERROR: Caught signal number 11 SEGV: Segmentation Violation, probably memory access out of range
[0]PETSC ERROR: Try option -start_in_debugger or -on_error_attach_debugger
[0]PETSC ERROR: or see http://www.mcs.anl.gov/petsc/documentation/faq.html#valgrind
[0]PETSC ERROR: or try http://valgrind.org on GNU/linux and Apple Mac OS X to find memory corruption errors
[0]PETSC ERROR: configure using --with-debugging=yes, recompile, link, and run
[0]PETSC ERROR: to get more information on the crash.
application called MPI_Abort(MPI_COMM_WORLD, 59) - process 0
[unset]: write_line error; fd=-1 buf=:cmd=abort exitcode=59
:
system msg for write_line failure : Bad file descriptor

And the failure occurs at https://github.com/erdc/proteus/blob/master/proteus/mprans/GN_SW2DCV.py#L1144

Another issue is that the --path option is not really implemented for SWFlows. I needs this bit of code.
https://github.com/erdc/proteus/blob/master/scripts/parun#L372

With the fix for the --path option, I can reproduce the errors you're getting @zhang-alvin. I didn't realize this branch wasn't being tested  on the 1.7 stack outside of travis. @ejtovar you should probably do that first.

@ejtovar has there been new development regarding this? The path issue should be easy to fix, but the failure that @zhang-alvin reported looks like the bigger thing to fix. Just wondering in order to merge this for the next release.

@tridelat Sorry for the delay, I've been caught up with stuff at A&M, but I will be working on this and hopefully get back to you soon.


refactor: Move caching into KnoraUser and KnoraProject repositories live

Move Caching into UserRepo
Move Caching into KnoraProjectRepoLive
Removes old CacheService in favour of repo internal EntityCaches based on EhCache

Pull Request Checklist
Task Description/Number

Issue Number: DEV-
PR Type

[ ] build/chore: maintenance tasks (no production code change)
[ ] docs: documentation changes (no production code change)
[ ] feat: represents new features
[ ] fix: represents bug fixes
[ ] perf: performance improvements
[x] refactor: represents production code refactoring
[ ] test: adding or refactoring tests (no production code change)
[ ] deprecated: Deprecation warning (ideally referencing a migration guide)

Basic requirements for bug fixes and features

[ ] Tests for the changes have been added
[ ] Docs have been added / updated

Does this PR introduce a breaking change?

[ ] Yes

Does this PR change client-test-data?

[ ] Yes

closed in favor of https://github.com/dasch-swiss/dsp-api/pull/3201 which builts on this one.


replace "Mac OS X" and "OS X" with "macOS"

as it is the official name since 2016
https://en.wikipedia.org/wiki/Macintosh_operating_systems#Desktop
exception are parts refering to older versions of macOS like
"GUI support for Mac OS X 10.6 - 10.12. Note that Emacs 23 and later [...]"
or patches.
Motivation for this change
make it a little more correct while not breaking anything.
i'm not sure if this changes trigger a mass rebuild since mostly descriptions or comments are changed.
please review carefully!
Things done

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

[ ] NixOS
[ ] macOS
[ ] Linux

[ ] Tested via one or more NixOS test(s) if existing and applicable for the change (look inside nixos/tests)
[ ] Tested compilation of all pkgs that depend on this change using nix-shell -p nox --run "nox-review wip"
[ ] Tested execution of all binary files (usually in ./result/bin/)
[x] Fits CONTRIBUTING.md.

to satisfy the contribution guidelines i changed the first letter to uppercase.
pkgs/os-specific/darwin/cctools/port.nix
description = "MacOS Compiler Tools (cross-platform port)";

should we keep the original brand name (macOS)?
pkgs/development/tools/xcbuild/sdk.nix
  SystemVersion = {
    ProductName = "OS X";
    ProductVersion = "10.10";
  };

I'm not sure how that string is used and what could go wrong changing it.

I'm running nix-shell -p nox --run "nox-review pr 27998" to see if any build fails.

@copumpkin any thoughts on that sdk.nix file?

LGTM

@globin Is this really a mass rebuild? The output hashes should be the same... But I'm not sure what Nix includes to calculate the hashes.

Seems like it only rebuilds Haskell darwin packages, which is fine.


Add ability to always write the the HTML file even with the dev server

I would like to have the HTML file written out even when devServer is running similar to a production build.
The use case is that I'm using a Java/Spring application that looks for these files to render them as Thymeleaf templates. This works perfect with a production build, but since the dev builds don't write the file the templates are not found.

I think maybe you can get files you want through http request when starting with devServer? It doesn't seem like a common solution.

Do you mean this isn't feel like something that is valuable to add to this plugin or the solution of doing during the devServer starting phase doesn't seem common?

yeah, it sounds like vite build --watch

Ah ok, that does appear to write the files out, but doesn't appear to listen on any port for some reason so HMR still isn't working.

I kind of got it working using concurrently "vite" "vite build --watch". Thanks for pointing me in the right direction and great job on the plugin

Unfortunately this doesn't actual let HMR work. One has to still reload the entire page for this to work correctly which isn't as ideal as HMR. Basically looking for similar support for https://github.com/vitejs/vite/discussions/6108.


Also ignore Vim/Emacs editor backup file suffixed with "~" while importing models

Sorry, that change was done in a hurry. Switching back to .py ending, but adding support for models in directories this way: https://github.com/pytorch/fairseq/pull/920


refactor(auth): migrate logger

Checklist

[x] I have read the coding guide
[ ] My change requires a documentation update and I have done it
[ ] I have added tests to cover my changes.

Description
Migrates the auth package logger to the new structural logging style (part of #3134).

This change is

Closed in favor of #3147


Use prototype label to calculate its height

Description
We have an issue with LabelStylesheet where it does not respect numberOfLines to calculate the height of the label

Solution
Use prototype label to calculate its height

If we move to use prototype cell for sizing, we should make everything be computed consistently. The implementations should be moved to TextBoundComputing, and there is no point to have two overloads for String and NSString.

@andersio I think we can't move implementation to TextBoundComputing because in this case it uses UILabel prototype, in another it may use something else e.g UITextView

@andersio Addressed your comments


Fix build failure on Macs

Fixes #31218  make clean istioctl on a Mac

@ericvn: The following test failed, say /retest to rerun all failed tests:

Test name
Commit
Details
Rerun command

release-notes_istio
8c41df240c903d57ff4a4061ed73f68f04f21e21
link
/test release-notes_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 release-notes_istio

In response to a cherrypick label: new pull request created: #31223

In response to a cherrypick label: new pull request created: #31224


command 'python.execInTerminal' not found

Type: Bug

Behaviour
Expected vs. Actual
Expected: Pressing the hotkey for "Run Python File in Terminal" runs the Python file in the terminal.
Actual: Get a message that says "command 'python.execInTerminal' not found" and nothing else happens.
Steps to reproduce:

Press the hotkey for "Run Python File in Terminal".

Note that right-clicking the source, then choosing "Run Python > Run Python File in Terminal", appears to do nothing (no error message).
Also note that this used to work fine until recently.
Also note that this issue sounds exactly like #21610 but

nuking the entire VS Code installation, including extensions, and then reinstalling everything is drastic and tedious
uninstalling just the Python-related extensions and reinstalling them, as suggested in a Stack Overflow comment, did not work
issuing the Python: Clear cache and reload window, as suggested in the closed GitHub issue, also did not work
even after taking the nuclear option, it only worked for a short while; a day or so later the issue came back

Potentially relevant to point 4: It's on a work laptop that I use both at home and in the office; in between I put the computer to sleep.

Diagnostic data

Python version (& distribution if applicable, e.g. Anaconda): 3.10.11
Type of virtual environment used (e.g. conda, venv, virtualenv, etc.): MicrosoftStore
Value of the python.languageServer setting: Default

Output for Python in the Output panel (View→Output, change the drop-down the upper-right of the Output panel to Python)

XXX

User Settings

languageServer: "Pylance"

terminal
• executeInFileDir: "<placeholder>"

Extension version: 2023.20.0
VS Code version: Code 1.84.0 (d037ac076cee195194f93ce6fe2bdfe2969cc82d, 2023-11-01T11:29:04.398Z)
OS version: Windows_NT x64 10.0.22621
Modes:

System Info

Item
Value

CPUs
Intel(R) Core(TM) i5-10310U CPU @ 1.70GHz (8 x 2208)

GPU Status
2d_canvas: enabledcanvas_oop_rasterization: enabled_ondirect_rendering_display_compositor: disabled_off_okgpu_compositing: enabledmultiple_raster_threads: enabled_onopengl: enabled_onrasterization: enabledraw_draw: disabled_off_okvideo_decode: enabledvideo_encode: enabledvulkan: disabled_offwebgl: enabledwebgl2: enabledwebgpu: enabled

Load (avg)
undefined

Memory (System)
7.77GB (0.82GB free)

Process Argv

Screen Reader
no

VM
0%

@jkyeung Please make sure that the python extension is activated. This often means that the extension failed to activate or has not activated. You should be able to see this in the Output > Python logs if there were any issues.

It's activated. I get syntax highlighting and so on. The Python interpreter is listed in the lower right of the status bar. And it does say "This extension is enabled globally".

I don't think so, besides the missing Git warning. Here's a screenshot:

Thanks for the bug report! We investigate issues in order based on priority and severity, which includes the impact it has on your ability to use the extension to do productive work, and the number of people affected. If other users come forward and leave a comment demonstrating they are seeing/reproducing the problem then we will raise this issue's priority. Thanks for understanding and the patience!

I just came across this issue as well,

I was working for me within the past 3 days.
Version: 1.84.1
Commit: 2b35e1e6d88f1ce073683991d1eff5284a32690f
Date: 2023-11-06T12:35:31.181Z
Electron: 25.9.2
ElectronBuildId: 24603566
Chromium: 114.0.5735.289
Node.js: 18.15.0
V8: <IP_ADDRESS>-electron.0
OS: Linux x64 6.2.0-36-generic snap

If the issue is still present, please provide the Python debug logs which can help diagnose it:

Run Developer: Set log level command
Select Trace
Run Developer: Reload Window command
Perform steps to reproduce the issue
Provide the output:

Output for Python in the Output panel (View→Output, change the drop-down the upper-right of the Output panel to Python)

XXX

OK, see attached.
2024-02-01a (Python output in VS Code).txt
The line that was timestamped 2024-02-01 14:31:29.332 was on the screen when I pressed F5 (which I have defined as "python.execInTerminal"). Other than the "command 'python.execInTerminal' not found" message, nothing seemed to happen. Then a few moments later, the line timestamped 2024-02-01 14:32:08.115 showed up.

I just ran into the same error message and thought I'd post what the issue was for me. I had opened a Workspace which was not trusted yet, and thus opened in "Restricted Mode". Clicking "Restricted Mode" in the status bar and selecting "Trust" author resolved the issue for me.

I´m having the same problem in MAC. If i use the Run display from VSCode no problem, but if I run with SHIFT + RETURN the same problem shows up.
VSCode Run python file:

SHIFT + RETURN


[5.3] Catch dns_get_record possible warnings in validateActiveUrl

In some cases dns_get_record can throw warnings

An unexpected server failure occurred.
A temporary server error occurred.
DNS Query failed

@litvinchuk @taylorotwell @GrahamCampbell Thanks for the change. Unfortunately, this PR doesn't fix a certain scenario:
If the IPv6 stack isn't configured properly somewhere between the server and the internet, PHP raises the warning, dns_get_record(): Unable to parse DNS data received on line 1, probably because we're attempting to fetch AAAA records as well as A.
As a result, validation fails for valid IPv4 lookups as well.
Arguably, we could suggest that users get their IPv6 working correctly, but this seems unreasonable, especially for applications deployed on an IPv4 intranet. Docker users will likely encounter confusion as well because containers disable IPv6 by default, and nothing in the docs or error hint at this limitation. This may be the reason why we see some homestead users having problems with active_url validation.
I'm not sure if this warrants a separate issue ticket. Regrettably, I'm not sure how to solve this except for a documentation update.


[formrecognizer] Invalid url for custom forms returns different error codes for labeled/unlabeled

Tests in question: https://github.com/Azure/azure-sdk-for-python/pull/17125/files#diff-06fcce66b28f493a25f609a7cf0d875190e14f54d7459c60c342d6bf9bd6fb4cR130

Checked with service team. Apparently a release was pushed that included some unintended behavior for bad URL input.
The expected behavior (which is unchanged from how it was before):
200 on POST, 400 on GET with error code/message: 2003 - "Failed to download image from input URL."

with no labels still returns error code 2003
with labels returns error code 2001

"errors": [
  {
    "code": "2001",
    "message": "Failed to download the image from the submitted URL. The URL may either be invalid or the server hosting the image is experiencing some technical difficulties."
  }
]

Closing now since these tests were refactored/cleaned up during the MQ and the test proxy migration.


How can i obtain cell value on click?

Hi,
I've make a simple test with below code
var grid = $("#grid-data").bootgrid({
... ....
}).on("click.rs.jquery.bootgrid", function(e, rows){
console.log(rows);
}
When i click on a row,  i will find all row columns in "Rows" but seem that this columns are only headers with field id and header description.
There is way to get the value of specific column on click?

As described here you need to add three parameters. See the fixed code snippet below!
var grid = $("#grid-data").bootgrid({
...
}).on("click.rs.jquery.bootgrid", function(e, columns, rows)
{
    /*
    e         jQuery EventArgs
    columns   An array of columns.
    rows      An array of rows.
    */
}

Sorry for the late answer but I'm quite busy.

There is way to get the value of specific column on click?

To get an idea of how you get the value of a specific cell see the command buttons example.

I found out a solution for individual columns

Customer ID
Name


Add median_along_batch to BatchedArray

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

Comparison is base (acfe685) 100.00% compared to head (72512c2) 100.00%.

Additional details and impacted files
@@            Coverage Diff            @@
##              main      #549   +/-   ##
=========================================
  Coverage   100.00%   100.00%
=========================================
  Files           24        24
  Lines         1945      1949    +4
  Branches       263       263
=========================================
+ Hits          1945      1949    +4

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


How can I use the trained model to evaluate new datasets?

Your work is great, and thank you very much!
By the way , can you kindly tell me how to use the trained model to evaluate new dataset file (like a csv file) ? This will be more userful to see the predicted result.
Thanks!

Hi,
You can upload an additional csv file to an existing dataset, effectively adding new documents to the dataset. If you do this, the system will perform inference on these new documents you uploaded using the latest trained model.
The inference happens in the background when you upload the new csv, although the system does not currently reflect this process to the user (this is a work in progress). Hence, we recommend to wait a couple minutes before opening the workspace to see the predictions.
Please let us know if this is what you were looking for.

Thank you for your reply. This can partialy solve my problem. But I want to know if I can use the trained model without the front end? Like https://huggingface.co/yiyanghkust/finbert-tone.

@cgnerds While we do not directly support this at the moment, the following script should work:
import os
from pathlib import Path

from label_sleuth.models.core.catalog import ModelsCatalog
from label_sleuth.models.core.models_background_jobs_manager import ModelsBackgroundJobsManager
from label_sleuth.models.core.models_factory import ModelFactory
from label_sleuth.models.core.tools import SentenceEmbeddingService
from label_sleuth.orchestrator.core.state_api.orchestrator_state_api import OrchestratorStateApi, IterationStatus

workspace_id = <YOUR_WORKSPACE_ID>
category_name = <YOUR_CATEGORY_NAME>
my_texts = ['text to infer 1', 'text to infer 2']

output_dir = os.path.join(str(Path.home()), 'label-sleuth')
model_type = ModelsCatalog.SVM_ENSEMBLE

state_api = OrchestratorStateApi(os.path.join(output_dir, "workspaces"))
model_factory = ModelFactory(output_dir=os.path.join(output_dir, 'models'),
                             models_background_jobs_manager=ModelsBackgroundJobsManager(),
                             sentence_embedding_service=SentenceEmbeddingService(output_dir))

category_id = [cat_id for cat_id, cat in state_api.get_all_categories(workspace_id).items()
               if cat.name == category_name][0]
model_id = state_api.get_all_iterations_by_status(workspace_id=workspace_id, category_id=category_id,
                                                  status=IterationStatus.READY)[-1][0].model.model_id
model = model_factory.get_model(model_type)

results = model.infer(model_id, [{'text': t} for t in my_texts])
print(results)

Note that if you specified a custom path for the output directory or used a different model type than the default one or you need to change the value of the output_dir and/or model_type variables.

Thank you very much!


Disabling RTTI

RTTI is enabled by default for both gcc & cl compiler. Also, dynamic_cast is being used across the codebase. Use of RTTI at library forces enabling RTTI at the program level which, ideally, we would like to disable it for number of reasons including performance and size.
There are options that can be used to restrict RTTI information to only the classes that need it. Here's an implementation. I am endorsing this implementation but just presenting one such option.
Any thoughts on implementing custom RTTI rather than forcing it to be enabled at program level?
P.S. We use CopperSpice (a fork of Qt) for our UI and the output binary sizes grow by a factor of 2.8 times by enabling RTTI at program level. This is not an ideal solution but UDHM/Surelog is the only library we use that forces enabling RTTI.

Sorry, juggling multiple priorities. I haven't had chance to evaluate the performance of the solution just yet. As a stop gap solution, can we just point Surelog to use the master branch of Antlr instead of the modified Surelog branch. That would mean using pristine Antlr without the bitfield modifications. I will try get the RTTI version working in next few days. This is critical change for us as well which has to get done but at the immediate moment I need to clear my backlog so I can dedicate some exclusive time on this.
If you are comfortable with this stop gap solution, either drop a comment here so I can create the PR with necessary change or update the .gitmodules yourself.

Yes please do create a PR with default main antlr

OK, after merging the stock Antlr here are the runtime measurements:
Stock Antlr runs the regression in 1980s
Antlr with RTTI removed using @hs-apotell's technique runs in 1660s
My version with the bitfields runs in 1306s.
I'm adding back the bitfield version under third_party/antlr_fast and make the Surelog cmake point to it meanwhile @hs-apotell experiments with the stock antlr/RTTI-less antlr.
When I ran the experiment a couple of days ago, maybe I was never running the stock Antlr, maybe I was running the antlr with the RTTI removed.
But one correction is that @hs-apotell's version is faster than the stock antlr, just not as fast as the bitfields.

@hs-apotell Let's stop using this fork: https://github.com/alainmarcel/antlr4
Either make a fork directly under chipsalliance or propose a new location since you are the one experimenting with stock antlr.
Re-add the antlr subsystem in Surelog when you have a working version that has a performance not too far from the bitfield version.

I don't think I have permissions to fork under chipsalliance umberella.

@mgielda do you think we can have an antlr fork under ChipsAlliance. That way Surelog/UHDM won't rely on an aobscure fork in my alainmarcel org.

@alaindargelas When you get a moment could you please try PR #1825 (or optionally use alainmarcel/antlr4#4)
Build times from chipsalliance/Surelog builds, averaging 2558s
Build | Time
-------------
2020 | 2257s
2001 | 2628s
1993 | 2712s
1989 | 2627s
1983 | 2570s
Build time from hs-apotell/Surelog build
Build | Time
------------
99 | 2436s
I am going to kick off a few more runs of the change to get a better average.

@hs-apotell can you give me clear instructions on how to pull a draft PR #1825? I'm reading many posts, I can't make head or tail...

Go to antlr repository settings
At the bottom of that page, you will see an option called “Transfer Ownership”. Click that and provide the new owner’s git handle.
You should receive an email to the registered email address for chipsalliance group.
Further steps should be self explanatory.
To switch Surelog to the new repository address, update the url in .gitmodules file and then run the following commands

‘’’
git submodule sync third_party/antlr
git submodule update third_party/antlr
git add third_party/antlr
git commit
‘’’

From: alaindargelas @.>
Sent: Saturday, September 11, 2021 11:19:58 AM
To: chipsalliance/Surelog @.>
Cc: Hitesh Shah @.>; Mention @.>
Subject: Re: [chipsalliance/Surelog] Disabling RTTI (#1718)
@hs-apotellhttps://github.com/hs-apotell can you give me clear instructions on how to pull a draft PR #1825https://github.com/chipsalliance/Surelog/pull/1825? I'm reading many posts, I can't make head or tail...
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHubhttps://github.com/chipsalliance/Surelog/issues/1718#issuecomment-917450383, or unsubscribehttps://github.com/notifications/unsubscribe-auth/AMFNMJ33DVEYM3KNDKBSCALUBOMU5ANCNFSM5C25XBAQ.
Triage notifications on the go with GitHub Mobile for iOShttps://apps.apple.com/app/apple-store/id1477376905?ct=notification-email&mt=8&pt=524675 or Androidhttps://play.google.com/store/apps/details?id=com.github.android&referrer=utm_campaign%3Dnotification-email%26utm_medium%3Demail%26utm_source%3Dgithub.

@hs-apotell, that was not the question. I still didn't get the OK to transfer the alainmarcel/antlr to chipsalliance. That is on standy.
In the meantime, I need to know how to checkout an unmerged pull request. Do you know how?

Got it!
git clone https://github.com/chipsalliance/Surelog
cd Surelog
git submodule update --init --recursive
git fetch origin pull/1825/head:test-rtti
git submodule update --init --recursive
git checkout test-rtti

It's still 1700s vs 1300s for the bitfield version.
As long as this is used only on Windows, I'm OK. Submit a complete PR that uses the third_party/antlr_fast for Linux and Macos and uses the third_party/antlr for Windows only. You can use your RTTI thing in the Surelog code too. That will not make a difference.


md5 error in LTS make

Hello,
When trying 'make' in LTS branch (4.5.0) I get an md5 mismatch error:
rm -rf node-v4.5.0-linux-x64
rm -rf out/deps out/Release
/usr/bin/python ./configure
--prefix=/
--dest-cpu=x64
--tag=
--release-urlbase=
--download=all --with-intl=small-icu
creating  ./icu_config.gypi

ECMA-402 (Intl) support didn't find ICU in ./deps/icu..
https://ssl.icu-project.org/files/icu4c/56.1/icu4c-56_1-src.zip
Fetch: : 0.0MB total, 0.0MB downloaded
MD5:      01b1e4427b5a406a73ceaa64dab85e12  ./deps/icu4c-56_1-src.zip
Expected: 61d71888f14bf00cc3e8a6f2c087d367      MISMATCH

** Corrupted ZIP? Delete ./deps/icu4c-56_1-src.zip to retry download.
Cannot build Intl without ICU in ./deps/icu.
(Fix, or disable with "--with-intl=none" )
Makefile:558: recipe for target 'node-v4.5.0-linux-x64.tar' failed
make[1]: *** [node-v4.5.0-linux-x64.tar] Error 1
Is there anything else that I need to do ?
Using SLES12
Thank you

Hi, @ZissisT
I'm sorry, I don't have SLES. I try to answer in its premise.
It seems like a download error.
This system have Internet access?
If there is no Internet access, you can try to add the following line to nodejs.spec . (94-96)
~~ snip ~~
 88 %if 0%{?rhel} == 5
 89 %patch0 -p1
 90 %patch1 -p1
 91 %patch2 -p1
 92 %endif
 93
 94 %if 0%{?suse_version} == 1315
 95 %patch3 -p1
 96 %endif
 97
 98 %if 0%{?rhel} == 7 || 0%{?fedora}
 99 %patch3 -p1
100 %endif
~~ snip ~~

This change provides for the ICU use are installed on your system.
(and you need to install libicu and libicu-devel package.)

Hi,
there is internet access available, since 'make' downloads latest LTS from internet before attempting to download  ICU. This does not happen just once, it happens every time I run 'make' and it fails in that step.
The thing is that this goes behind a company proxy, so maybe I need to set some python proxy variables (I guess it does not use system proxy like the rest ? ).
I will try your workaround and let you know, thanks !
Zissis

Ah, I see.
Ｉ don't know why but system proxy settings is seems perhaps not pick up from shell.
Please check env |grep -i proxy. and export this setting.
$ export HTTP_PROXY="http://<PROXY>:<port>"
$ export HTTPS_PROXY="http://<PROXY>:<port>"

I would be happy if you let me know the result later.  thank you !

Hi again,
I already have this exported (env |grep -i proxy returns correct values), but I exported it again as you said. Same happens.
If shell did not see proxy settings then wget of nodejs would fail as well (If I remove proxy settings it fails).
Right now it succeeds:
--2016-09-11 21:01:14--  https://nodejs.org/dist/v4.5.0/node-v4.5.0.tar.gz
Connecting to :8080... connected.
Proxy request sent, awaiting response... 200 OK
Length: 22708609 (22M) [application/gzip]
Saving to: ‘node-v4.5.0.tar.gz’
The error thrown is an ssl error and it seems it is a certificate issue, described here:
http://stackoverflow.com/questions/10667960/python-requests-throwing-up-sslerror
but I don't know how to fix that.
I will now try to install icu manually and change spec like you originally proposed.
Zissis

...and yes, your workaround worked, it started building eveyrthing :)
But, it does not pakage them in the end, as if a script path issue exists:
+ popd
~/gitRepos/nodejs-rpm/dist/BUILD/node-v4.5.0
+ exit 0
Executing(%install): /bin/sh -e /var/tmp/rpm-tmp.tSeknh
+ umask 022
+ cd /home/zissis/gitRepos/nodejs-rpm/dist/BUILD
+ cd node-v4.5.0
+ rm -rf /home/zissis/gitRepos/nodejs-rpm/dist/install
+ mkdir -p /home/zissis/gitRepos/nodejs-rpm/dist/install/usr
+ cp -Rp /home/zissis/gitRepos/nodejs-rpm/dist/SOURCES/node-v4.5.0-linux-x64/CHANGELOG.md /home/zissis/gitRepos/nodejs-rpm/dist/SOURCES/node-v4.5.0-linux-x64/LICENSE /home/zissis/gitRepos/nodejs-rpm/dist/SOURCES/node-v4.5.0-linux-x64/README.md /home/zissis/gitRepos/nodejs-rpm/dist/SOURCES/node-v4.5.0-linux-x64/bin /home/zissis/gitRepos/nodejs-rpm/dist/SOURCES/node-v4.5.0-linux-x64/include /home/zissis/gitRepos/nodejs-rpm/dist/SOURCES/node-v4.5.0-linux-x64/lib /home/zissis/gitRepos/nodejs-rpm/dist/SOURCES/node-v4.5.0-linux-x64/share /home/zissis/gitRepos/nodejs-rpm/dist/install/usr/
+ mkdir -p /home/zissis/gitRepos/nodejs-rpm/dist/install/usr/share/doc/packages/node-v4.5.0/
+ for file in CHANGELOG.md LICENSE README.md
+ mv /home/zissis/gitRepos/nodejs-rpm/dist/install/usr/CHANGELOG.md /home/zissis/gitRepos/nodejs-rpm/dist/install/usr/share/doc/packages/node-v4.5.0/
+ for file in CHANGELOG.md LICENSE README.md
+ mv /home/zissis/gitRepos/nodejs-rpm/dist/install/usr/LICENSE /home/zissis/gitRepos/nodejs-rpm/dist/install/usr/share/doc/packages/node-v4.5.0/
+ for file in CHANGELOG.md LICENSE README.md
+ mv /home/zissis/gitRepos/nodejs-rpm/dist/install/usr/README.md /home/zissis/gitRepos/nodejs-rpm/dist/install/usr/share/doc/packages/node-v4.5.0/
+ mv '/home/zissis/gitRepos/nodejs-rpm/dist/install/usr/share/doc/packages/node/*' /home/zissis/gitRepos/nodejs-rpm/dist/install/usr/share/doc/packages/node-v4.5.0/
mv: cannot stat '/home/zissis/gitRepos/nodejs-rpm/dist/install/usr/share/doc/packages/node/*': No such file or directory
error: Bad exit status from /var/tmp/rpm-tmp.tSeknh (%install)

RPM build errors:
    Bad exit status from /var/tmp/rpm-tmp.tSeknh (%install)
Makefile:12: recipe for target 'rpm' failed
make: *** [rpm] Error 1

Directory 'node' is on the same level as 'packages' not inside it.
I'm attaching full build logs,
makeResult.txt
This happens in master branch (v6) as well as the LTS.
Thank you!
Zissis

That is correct, just as you said.
I expect that point to %{_defaultdocdir} macro is /usr/share/doc/ . (RHEL/Fedora Defaults)
But, in the case of SUSE system, it seems to point to /usr/share/doc/packages .
So I was able to build in following changes.(on openSUSE42.1)
https://gist.github.com/kazuhisya/fdd69b66f584b8f03b97a408f379ee22
Can you try this change? thank you !

Hello,
It worked ! Thanks a lot ! Now SUSE is supported :)
Regards
Zissis

Hi, @ZissisT
Thank you for your report and testing!
I have applied this change(and small refactor) to all branches.
and...I have prepared Dockerfile of opensuse for build-test.( docker/Dockerfile-suse )


Colab broken with permission denied error for e4e_ffhq_encode.pt

Running the global colab gives this error:
Permission denied: https://drive.google.com/uc?id=1O8OLrVNOItOJoNGMyQ8G8YRTeTYEfs0P
Maybe you need to change permission over 'Anyone with the link'?

I don't know why this happens because when I manually open the download link in a tab it lets me download the file.

Just download the file manually, upload it to your Google drive, link your Google drive to the colab, then drag the file into the encoder4editing folder.

Downloaded the file manually then uploaded to the right place.
I'm having a new issue when loading it with torch:
RuntimeError                              Traceback (most recent call last)
<ipython-input-4-c5ec48afcc25> in <module>()
     17
     18 model_path = EXPERIMENT_ARGS['model_path']
---> 19 ckpt = torch.load(model_path, map_location='cpu')
     20 opts = ckpt['opts']
     21 # pprint.pprint(opts)  # Display full options used

1 frames
/usr/local/lib/python3.7/dist-packages/torch/serialization.py in __init__(self, name_or_buffer)
    240 class _open_zipfile_reader(_opener):
    241     def __init__(self, name_or_buffer) -> None:
--> 242         super(_open_zipfile_reader, self).__init__(torch._C.PyTorchFileReader(name_or_buffer))
    243
    244

RuntimeError: [enforce fail at inline_container.cc:145] . PytorchStreamReader failed reading zip archive: failed finding central directory

I have a different issue after trying to align the image
--2021-06-29 22:07:24--  http://dlib.net/files/shape_predictor_68_face_landmarks.dat.bz2
Resolving dlib.net (dlib.net)... <IP_ADDRESS>
Connecting to dlib.net (dlib.net)|<IP_ADDRESS>|:80... connected.
HTTP request sent, awaiting response... 200 OK
Length: 64040097 (61M)
Saving to: ‘shape_predictor_68_face_landmarks.dat.bz2’

shape_predictor_68_ 100%[===================>]  61.07M  73.9MB/s    in 0.8s

2021-06-29 22:07:25 (73.9 MB/s) - ‘shape_predictor_68_face_landmarks.dat.bz2’ saved [64040097/64040097]

---------------------------------------------------------------------------
UnboundLocalError                         Traceback (most recent call last)
<ipython-input-16-bd082371b16f> in <module>()
     16
     17 if experiment_type == "ffhq_encode":
---> 18   input_image = run_alignment(image_path)
     19 else:
     20   input_image = original_image

2 frames
/content/encoder4editing/utils/alignment.py in get_landmark(filepath, predictor)
     19         shape = predictor(img, d)
     20
---> 21     t = list(shape.parts())
     22     a = []
     23     for tt in t:

UnboundLocalError: local variable 'shape' referenced before assignment

You can use the pydrive downloader, similary to this notebook (first cell)
Then:
downloader.download_file("1O8OLrVNOItOJoNGMyQ8G8YRTeTYEfs0P", "/content/encoder4editing/e4e_ffhq_encode.pt")


Add UTC timestamps to the ansible log

Add UTC timestamps to ansible log file:
Sample:
2017-01-03 16:21:39.691+0000 - ansible/bin/ansible-playbook -i ansible/inventory.ini -s ansible/playbooks/preflight.yaml --extra-vars {"allow_package_installation":"true","kismatic_preflight_checker":"inspector/linux/amd64/kismatic-inspector","kismatic_preflight_checker_local":"/Users/abrand/Dev/go/src/github.com/apprenda/kismatic/out/ansible/playbooks/inspector/darwin/amd64/kismatic-inspector","modify_hosts_file":"true"} -vvvv
2017-01-03 16:21:40.268+0000 -  [WARNING]: Optional dependency 'cryptography' raised an exception, falling
2017-01-03 16:21:40.268+0000 - back to 'Crypto'
2017-01-03 16:21:40.420+0000 - Using ansible/playbooks/ansible.cfg as config file
2017-01-03 16:21:40.597+0000 - Loaded callback default of type stdout, v2.0
2017-01-03 16:21:40.621+0000 - Loaded callback json-lines of type notification, v2.0
2017-01-03 16:21:40.647+0000 -
2017-01-03 16:21:40.647+0000 - PLAYBOOK: preflight.yaml *******************************************************
2017-01-03 16:21:40.647+0000 - 3 plays in ansible/playbooks/preflight.yaml
2017-01-03 16:21:40.661+0000 -

I like it LGTM


Reverse check order before adding custom contexts

Reversing this order allows the process to move forward without loading
the taggings relationship when a context has already been defined for
the model.
This helps when a model is using a cached_#{context.to_s.singular}_list
column and the taggings are NOT being eager loaded. It can save a lot
of unexpected N+1 cases.

I am running into this same issue and I came to the same conclusion about how to fix it. +1 to merge this PR.