[themes] different themes for different filetypes

Is it possible to have different themes for different filetypes?

@darekzak Please explain more... Is it about file icon themes or color themes?

I should gave more details, sry. I meant color theme.

Sorry, can you explain more? Still not clear how file types should correlate with color themes?
Something like:
{
    "*.java": "Monokai"
}

Yes, exactly like that.
{
".js": "Monokai",
".html": "Flatland Monokai"
}

Ahh. But themes already theme more than just the editor. What would we do if two editors are open?

For me, this would remove the manual action of constantly changing colour theme when working on a specific set of languages (mainly AGC) in chrislgarry/Apollo-11 or virtualagc/virtualagc, then switching back to my dark theme when working on anything else.
As due to the archived printouts being printed with black text on white, its far easier to compare the transcribed code in VS Code with the images and spot typos when they're a similar colour - instead of contrasting.
Example:

I have the same requirement like the questioner.
Different themes for different languages in Visual Studio Code

What would we do if two editors are open?

My thoughts go to a differentiation between themes specified for a language and "the theme of the workspace".
If two editors are open, they apply whatever theme matches the language found. The rest of the UI uses only the "main theme".
Agreed, it would slow down editor loading time a tad more.
A second option is to go the atom way and separate UI themes from Syntax themes, but I'm not much more convinced by this.

One more reason to implement this is having different themes for code and documentation:
light theme for *.md files
dark for everything else

Theming per file type (file extension, etc.) is highly desirable. Notepad++, Sublime Text have it, vsCode should have this too. I have a sample tmTheme file I use for Sublime Text if anyone is interested in making it work with vsCode.

+1 for this, my current use case is to have a specific theme when opening markdown files, for the rest of lenguages I must admit I use the same theme

I have to agree with the requestor -- I am used to editing languages more in specific color schemes from my previous IDEs (STS [Eclipse-based]) vs Atom & Brackets vs Visual Studio vs various Json/XML editors/parsers.  This would be very useful, IMO.

I'm keen for this as well. Ideally I could override any setting when i'm editing a specific language. I like to totally change up my config when editing LaTex files, i.e. Serif font, larger font size, light color theme, different 'files.exclude' different settings for some other extensions i've got and more. Supporing more than just the 'editor.*' settings would be great :D

As others have said, this is an extremely versatile feature that is hard to articulate how useful it is. It  is something I sorely miss from Sublime Text.

I wrote a Conditional Color Scheme plugin for Sublime Text, and am currently considering making VS Code my primary editor.  I'm still working through the default settings & keymap to see what's available, so I haven't had a chance to check out the API yet.
Does VS Code have something similar to Sublime Text's
view.settings().set("color_scheme", "__new_color_scheme_name__")

?

+1

@Enteleform Yes, extensions can change the current theme through the settings.

@aeschli
I know it can be done globally, which includes the GUI components.
Is it possible to affect only the document view of a single file?

Our token theming engine currently only supports one theme a time. The code would have to be refactored.

@aeschli Than how would I change the theme with extension? any direction?

Check out https://code.visualstudio.com/docs/extensionAPI/vscode-api#_a-nameworkspaceconfigurationaspan-classcodeitem-id943workspaceconfigurationspan
Use update to manipulate a setting

Yeah this would be really nice.  I'm used to coding in Javascript with the monokai theme, but the Visual studio dark theme for C#.  Old habits I guess.

@halukkaramete Add this to your settings
"[plaintext]": {
  "editor.fontSize": <num>,
}

Here is a use case which hasn't been mentioned: when using code to view JS files someone might conceivably be so stupid as to start editing the JS file, and then after 20 minutes compile the changes, and then spend another few seconds trying to find out why the changes did not take. A visual cue for JS files would minify the risk. Asking for a friend ;)

This would be really helpful - particularly if the rest of the GUI doesn't change. I find certain syntax themes to work well for "everything else", like nord - but when it comes to writing JSX/TSX, I just can't help but fall back to my favorite oceanic-next theme.

+1

this is where it all started
Received: from HE1EUR02HT199.eop-EUR02.prod.protection.outlook.com
(<IP_ADDRESS>) by DM5PR03MB3353.namprd03.prod.outlook.com with HTTPS via
DM5PR08CA0036.NAMPRD08.PROD.OUTLOOK.COM; Sun, 24 Dec 2017 00:35:00 +0000
Received: from HE1EUR02FT055.eop-EUR02.prod.protection.outlook.com
(<IP_ADDRESS>) by HE1EUR02HT199.eop-EUR02.prod.protection.outlook.com
(<IP_ADDRESS>) with Microsoft SMTP Server (version=TLS1_2,
cipher=TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA384_P384) id 15.20.302.6; Sun, 24
Dec 2017 00:34:59 +0000
Authentication-Results: spf=pass (sender IP is <IP_ADDRESS>)
smtp.mailfrom=hotmail.com; hotmail.com; dkim=pass (signature was verified)
header.d=hotmail.com;hotmail.com; dmarc=pass action=none
header.from=hotmail.com;
Received-SPF: Pass (protection.outlook.com: domain of hotmail.com designates
<IP_ADDRESS> as permitted sender) receiver=protection.outlook.com;
client-ip=<IP_ADDRESS>; helo=NAM03-CO1-obe.outbound.protection.outlook.com;
Received: from NAM03-CO1-obe.outbound.protection.outlook.com (<IP_ADDRESS>) by
HE1EUR02FT055.mail.protection.outlook.com (<IP_ADDRESS>) with Microsoft SMTP
Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA384_P384) id
15.20.302.6 via Frontend Transport; Sun, 24 Dec 2017 00:34:59 +0000
X-IncomingTopHeaderMarker: OriginalChecksum:E316788E2F838C59081909DEA45BDFED11F2D9E016796D83BF6780FE40DFCBFD;UpperCasedChecksum:E0BE175F3A71DAD60B08411AD774806AA3ACA5557A92CBF94630EC7A44940C77;SizeAsReceived:4974;Count:38
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=hotmail.com;
s=selector1; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version;
bh=CXNhvup2nD1lADH614RWXcdf8uEHcFFWemepon+dtNI=;
b=SbxjWdTEODIIoBzxPPYoTDpI7QNgH1P/6Te9tSzahywA6NCA/ZRr10Cg5uorTguh632OZy0LQbyp3om2hIqHtNYSqBVu5H7Bm9M/D6B1CRBrY5zi6WwEiVczglypIS+U4FP7KrJIFw0RAZ6jRAVhEMR4G1TBoGt/VPAIprIGgnXbeX5IzU9jBcvT+bO5a2Tfjz3tMi8mZrK1q8QGsTIxuwKTYFbbET0abzC8CuGm9RTNt2jpXQMf+7XC1cMFUjRe95D3F8BeoPWp1FFsFkBqxtyYO8o+kYKgJKY5g4PGqegQrxpXAuLnlIO5QxjR8Q1STnLskPyzbx7kJTbBksb3LA==
Received: from BY2NAM03FT030.eop-NAM03.prod.protection.outlook.com
(<IP_ADDRESS>) by BY2NAM03HT058.eop-NAM03.prod.protection.outlook.com
(<IP_ADDRESS>) with Microsoft SMTP Server (version=TLS1_2,
cipher=TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA384_P384) id 15.20.345.12; Sun, 24
Dec 2017 00:34:53 +0000
Received: from DM5PR03MB3353.namprd03.prod.outlook.com (<IP_ADDRESS>) by
BY2NAM03FT030.mail.protection.outlook.com (<IP_ADDRESS>) with Microsoft SMTP
Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256_P256) id
15.20.345.12 via Frontend Transport; Sun, 24 Dec 2017 00:34:53 +0000
Received: from DM5PR03MB3353.namprd03.prod.outlook.com ([<IP_ADDRESS>]) by
DM5PR03MB3353.namprd03.prod.outlook.com ([<IP_ADDRESS>]) with mapi id
15.20.0345.013; Sun, 24 Dec 2017 00:34:52 +0000
From: phillip matthews<EMAIL_ADDRESS>To: phillip matthews<EMAIL_ADDRESS>Subject:
Thread-Index: AQHTfE8D+KDjUfjbf06Wpc4Gq8PSyg==
Date: Sun, 24 Dec 2017 00:34:52 +0000
Message-ID<EMAIL_ADDRESS>Accept-Language: en-US
Content-Language: en-US
X-MS-Has-Attach:
X-MS-TNEF-Correlator:
x-incomingtopheadermarker: OriginalChecksum:BC4C325ED0A3C22B9FDB067CEB9BEA0305FAA3C4FFD587F0E8AC7026307D15C1;UpperCasedChecksum:4BF90BF76947D329813530D33D350E407469FBA1F3E00BCCB28C034C18E56963;SizeAsReceived:6738;Count:43
x-ms-exchange-messagesentrepresentingtype: 1
x-tmn: [ds0EDlq/GYbugDK4FyhkYSFRJrmDe+zL]
x-ms-publictraffictype: Email
X-Microsoft-Exchange-Diagnostics-untrusted: 1;BY2NAM03HT058;6:9rRoQ63+ov+ryyCB+R5eJsIWsWA84PvB7aKM+LtuTBtuZmF40wwz5PyETw9i8Ay/g7LRXaxc+eQL9ReIxad8WrGQlP6jwzKTd3axXLRQHpbV4+9NMz1ly7VKS2asfFI5ZVYL70E25ECLH/EZapFiD+EzWb4GIINGfdGsk9d55s3k6GZ/GIkqEeP34XQ8hoqOseViYW1QIvm+xhh3wzrGVmnH/E7X3s61UtAuA4NHAJHAO+scIhGgJ6igIcLvXupZeulCs76f1oHOphroPpn81FZtJcgrpkjYRkxdTbgfYzu3Sh+sG9syIBtGvKNFzese4atZwJzWJHc9jBMuJh0x3uV9qgA9/gOgj422GSUFGw0=;5:AiGla2sisA1oCDDgUNysrWX0Ob64NJQh0grxP5eS7UoxsMNdv0iYCpddwGns0LAkvrrngUhZ4L/VzVN2GyTjr5TW7wnuHrrsG5+udSyXN/6+fWWE3rZmDACfZDqjnhqMLPcMyqvCXKNn1Z0gLauZxN77CHWjyAzvU4XX08QGvZ8=;24:guqOJYvfzQ5p4JzAJpApJ5DOYAocEZeYLHwZ8XpS1XICxurttvRaTDM3wg3wLQNXCIB3PSuk1IN8RqCEg0gBM3kYWIVhDyhQksj4v245/Vk=;7:ju7J4wzxjiNd1jWx07Id43oUegb5QqG6kq/XvhlJuJeM+CGqDVj2dD0LMIqi3lfszNAf0EPFCFRdn6qc18uhvkcmfNEZ99VqWswjVx//eqOMGL5xw0DjHqFTrznLUb4/s2u7XIIDEZMTJ21Ec+ElOHjKH6D+aeogfRAInEffguLLelgvxplmvPM1rkII+Ckof7Q/DQlsOaCdwh1i5UCfCAG6nqiKMc0l/l2NNz8YM6VhQpgCpswziGFEfLhwv7DH
x-incomingheadercount: 43
x-eopattributedmessage: 1
X-Microsoft-Antispam-Untrusted: UriScan:;BCL:0;PCL:0;RULEID:(7020020)(201702061074)(5061506573)(5061507331)(1603103135)(2017031320274)(2017031324274)(2017031323274)(201702181274)(2017031322404)(1601125374)(1603101448)(1701031045);SRVR:BY2NAM03HT058;
x-ms-exchange-slblob-mailprops: o2C/200ZYyEEAaZYu0BX0fgsXGFHsoTg7nZyQZxhFEmmyM6+ZbpItfWA9bUw9tduWkZc/LJzooi8AtYt7lymIr2loxRgbA2PC0b92Q9OelDUYkAAn7fH6IsMPYWoOGVd8LF/g3TLemE0Qb5JDfr4H4arLvBIJ35sl7/woa507YYVLX3r/1zfQ92MREmYPti4td3ubEXIADtQK/I5tGQeJDQ3LuEpkHrVOxK4OdtXi/sOsXHaZEAtooeyHRfDqmeJJKuZ8X/+jTE7CsLTlZIO6csg0ZFNs7ZeDnnup/rOmTH7g+bpoOdjLcY+ult5cXKZc1QT2/0WMIC6TX9G7QDMCtPsZ1SSWry+F2MddZZ2JQa9iS12PgqWeJMkrThoQEWg+oCAIYW5kGYJ+PmRfE0fKgD+TibXuW6EWUVojQMXZEOVB2ZaSjci+CwT6+o2hja11GKUKgM9HyTQLrbxp31RJ9+1w1k6imxGaYpAt0Y5NU+lBCNmjkS16AzMeYqtmlhR8MZI/qWv8CxaVBWX8LivUNHp0XATiJo4hYRkIZ4+X+k=
X-MS-TrafficTypeDiagnostic: BY2NAM03HT058:|HE1EUR02HT199:
X-MS-Office365-Filtering-Correlation-Id: d6cc4d9a-28e9-4497-0e7d-08d54a662a28
x-exchange-antispam-report-cfa-test: BCL:0;PCL:0;RULEID:(444000031);SRVR:BY2NAM03HT058;BCL:0;PCL:0;RULEID:(100000803101)(100110400095);SRVR:BY2NAM03HT058;BCL:0;PCL:0;RULEID:(444111537)(595095)(82015058);SRVR:HE1EUR02HT199;BCL:0;PCL:0;RULEID:(100000803101)(100110400095);SRVR:HE1EUR02HT199;
x-forefront-prvs: 05315CBE52
X-Forefront-Antispam-Report-Untrusted: SFV:NSPM;SFS:(7070007)(98901004);DIR:OUT;SFP:1901;SCL:1;SRVR:BY2NAM03HT058;H:DM5PR03MB3353.namprd03.prod.outlook.com;FPR:;SPF:None;LANG:;
SpamDiagnosticOutput: 1:99
SpamDiagnosticMetadata: NSPM
Content-Type: multipart/alternative;
boundary="000_DM5PR03MB335332A6770F1800F09824C9C2000DM5PR03MB3353namp"
X-MS-Exchange-Transport-CrossTenantHeadersStamped: BY2NAM03HT058
X-IncomingHeaderCount: 38
Return-Path<EMAIL_ADDRESS>X-MS-Exchange-Organization-Network-Message-Id: d6cc4d9a-28e9-4497-0e7d-08d54a662a28
X-EOPTenantAttributedMessage: 84df9e7f-e9f6-40af-b435-aaaaaaaaaaaa:0
X-MS-Exchange-Organization-MessageDirectionality: Incoming
X-MS-Exchange-Transport-CrossTenantHeadersStripped: HE1EUR02FT055.eop-EUR02.prod.protection.outlook.com
X-Microsoft-Exchange-Diagnostics: 1;HE1EUR02FT055;1:qiOlFUKhlNvJy+MTWg3xI9IxLzHpj5ZFJZgv1omUPeHowLR0vOIeiol5uCtV/IlD54LKM4L8DzQTRElloeRN/i7Ez2txYlTqNhvYcbkdSWARDXxXSAAs+6zjB6r4lA/a
X-Forefront-Antispam-Report: EFV:NLI;SFV:NSPM;SFS:(98901004);DIR:INB;SFP:;SCL:1;SRVR:HE1EUR02HT199;H:NAM03-CO1-obe.outbound.protection.outlook.com;FPR:;SPF:None;LANG:;
X-MS-Exchange-Organization-AuthSource: HE1EUR02FT055.eop-EUR02.prod.protection.outlook.com
X-MS-Exchange-Organization-AuthAs: Anonymous
X-Microsoft-Antispam: BCL:0;PCL:0;RULEID:(5000109)(4604075)(4605076)(610169)(650170)(651021)(8291501071);SRVR:HE1EUR02HT199;
X-Microsoft-Exchange-Diagnostics: 1;HE1EUR02HT199;3:DYemr0KOFvEMFZcq+cBKD/NtzJAu5WxRVAJZxHQwxEEqlFk+doq4kKJLStm4H08DXlC6DNUdoIPNAoI6dXzJ34d9rdNT2ytDo6QfSshNI3Ut1hPE5XbUnL6p/I0npexdp//kTLmw6CpIbvHsHfbs0GBmK0rHA+UwwJGx1uqfT3TIQh8zHjQ3gxmXJMxul6iUkIIoyqFeq3egwurUkGIHTeC1jW0X/ekBRmbvKVfSdkdJeSZQQhQf12Ex+hwmfrxftHE9OKWzxjxnPf6cCj8N9MTWw7vd/u/VyN5kTHOvzzRUM1GtqMoEpSX8lwxLhg1M;25:jOY8aO9wTOd5RVVFHC00QX3TssCejoAdoC7QucD5nUzj/+2rn1eSI+e+DHVNfWl0vAUMn+26RZUU1sGBeU1KfMizMSPZwMVubdjf5eQD9nX3SiJO/O1Rcq+9CIdKfeQaKkO0XDBCaQo2iT2YkVUD9Zwx4Tgjf96QBJHGngzsXYLwYd513XG4JKe8hKHosH2LWGc7TwBn2zfk+HLL7WX/38YQfH13raqoyvkxybv70vrn1/HdTFBOqAnYuj/8VHiS3NfsDNvgtrZtakMjUqJQH09VvnN2ddYWmF1ZvXJIubTnJeJrebTIS3Te9FfCfdE0zDA2iKLOvf4Y5l6KYyRicQ==;31:fnemzE0H0MUaSRYEhZTQ6AeOuT9o91m6a9FJn5YbWZKu6Qeujw/lXzsU/y8D0oxW0i0ZlUIUIYljXHE7rkjiWEe4GztlV/pCEzcLqlzbkj6RVODas7+e5Jk+bgnpEPhb569vnwJ0tHeXdL3L5WNWVHp8sG16dWXgeFODtcUa9N08uzvNq+mxtfxTrbzXKVctInuzM0lO62bsJHDJlvPXV2MNroPgDtSdUXmSiclGiTY=
X-MS-Exchange-EOPDirect: true
X-Sender-IP: <IP_ADDRESS>
X-SID-PRA<EMAIL_ADDRESS>X-SID-Result: PASS
X-MS-Exchange-Organization-PCL: 2
X-Exchange-Antispam-Report-Test: UriScan:(111885846020525)(81439100147899);
X-Microsoft-Exchange-Diagnostics: 1;HE1EUR02HT199;4:HUJYXnHFPOgg+faPuz4CnULJbcdzvRuM4ZZ9T8tOYLXliUIY9iErneA49XRbYXaMzjMpNB0PTLNBC/tJFzw+nE9/s58FptaPRnsoqQ1geB5V3ecUXdacC7vAgsayBGcnxwY/DCU87qvci0Irhvuh5pnAi1+rowPIYjpk7UF6ez78bFYoCTIqnWzslDWhY4U7+r2FMNSC+WvHQx9rjf8mKMF/0yv+N8vqgzG8nrg7UOl2BtODnKDxdlcHwKb53KGQ+GU7ZC4zbuLUpqzcFwrlm9vm7kC+BbahncMoM5L4ybCWjC9Mmbssd4IgCnDLbXvCEsL0WPMvA4AYclU1fviYrjbfe+cX2LcUXSgUX/60acc=;23:axD9XGRQ6P3en751G1yCjK/fSbyL88GGQ9dz4PHoFhee2psiYt+K+hLN2iwexNEjVUMy+u5/+kwG2F1P/Cgwp75Kpk4FCtzrzKGslYl3nqxBxN9NEKtuI4vWBQo3tihxdBulc200z+FkzqIfuPqRWrNqO4eTGMKgnOjG17gs64U=;6:cxyTMPdhpAZQThyhl/JZUAjoEd9RnROsjnJHujRmNEy4RxDA9z2RQOfNI/33lnNnqtF1WQdcEap0NrnrFv6za/ChJBvCZQwur09Yw4nWuIEihWG6qjz1ExMfIO2RjMGanIllW28ZDRnZFKk5o/nwSELGFdDq/t+xRNul+y9uxJdoVbshZOLENUZSllqnNaTFdPSqEIGJ0/xvt6i2BOyeqoYi3VRhdwI8uAGJx5pASxqTvRWQ7g3ObcNAPNdpcxEmKWe0O5Jobgsa4FYTX9yg1GUig3FtsxDqjYxMZL6Y7Pq8nrxZyq7JOiDNeFVgDR4yxk6IYdPIcPjCyE7K+x2AhdtVR+5U4rhm3819JGKvyiM=
X-MS-Exchange-Organization-SCL: 1
X-Microsoft-Antispam-Message-Info: k5NNCdVLBm5geBpop/jZ/rGIMRmL5oIw2oXPK916bcM0/Amd2tPjzGu31X6IaF2cJOkujREOvfjPuXViTb3NSh3FcncNbIRv24O8H9LQmho=
X-Microsoft-Exchange-Diagnostics: 1;HE1EUR02HT199;5:qla/f5SollR7mM3fI4Xo4GU9U6kpcCiyp9jKnp4L9YdLvvyGmyKxJFylOe899HNvKvNrkEGrxUwq7vkDft+ieLd9BTmAyPf4x308nuW6IY9Ls6Zi4jkXeACfV194TteKuzr35vxc4Wx0Qo1Btyceyn9xDF8LSObjmrzhj6aGggM=;24:EypPdNKWDVb2vN+kS5UJy5CNVf2QkOBaUfF1U+z6Su+NFXpU4pB6VBhR0BAEpyjRs8z2QgyI0IOe+avfoVUnzmnO1cLZGayjXnbTW0a78m4=;7:5eO+b/yrVgXqaSk4AqFEr46SE3zdqnwesDc5UEpMuZwz1QUH9oAhAx5GY47PE1dvdfbd1zz8CcgPeorVyEWmm4uJvHdVAok1xhMW9rofZAHA4lByoHNyBWuJYgr8rbJHloi+1mC/qK73RQGcDuGwW99dxdHMVyeRROZBiuXybcL+JcxL/wL094t++seAIJTy0744yDlLdktdVi96fyoZKeKyN3VbLR9RPKR4/jickFkHl5KdNLvATLtzn3RdkIOc
X-OriginatorOrg: hotmail.com
X-MS-Exchange-CrossTenant-OriginalArrivalTime: 24 Dec 2017 00:34:59.4680
(UTC)
X-MS-Exchange-CrossTenant-Network-Message-Id: d6cc4d9a-28e9-4497-0e7d-08d54a662a28
X-MS-Exchange-CrossTenant-Id: 84df9e7f-e9f6-40af-b435-aaaaaaaaaaaa
X-MS-Exchange-CrossTenant-FromEntityHeader: Internet
X-MS-Exchange-Transport-CrossTenantHeadersStamped: HE1EUR02HT199
X-MS-Exchange-Transport-EndToEndLatency: 00:00:01.2446163
X-MS-Exchange-Processed-By-BccFoldering: 15.20.0345.013
X-Microsoft-Exchange-Diagnostics:
1;DM5PR03MB3353;27:E269/Dm7kmpaYNNyoCor5TwXVzFufcHkuXX/+k0MoPdFQL7wZjTwRHdaboP4oRr5Z1TeKKa0trsCnECwRmAjRD2fhINSqTljyJqW9Q+uKQhIpKrkXvcOtsI22lmugQucXKtks4t6rfkzB0npWbkblg==
X-Microsoft-Antispam-Mailbox-Delivery:
dkl:0;rwl:0;ex:0;auth:1;dest:I;ENG:(400001000128)(400125000095)(5062000261)(5061607266)(5061608174)(1004181)(4900095)(4920089)(6220004)(4950112)(4990090)(9110004);OFR:SpamFilterPass;
X-Message-Info:
5vMbyqxGkdf4AQ5hYaEt2YOIrujbaDwg7BNiJljdGaUBF5j/t1mlKnd+lo6sgOP5iIUlT8J/q4gd76s6f1j1WqUTwqsLcLDUdItxHFIdm0sX6cO263UqmQW+CQS7slPPXhVfSY7c5Y75lHTaw5SquwJL6/6ngWhFEYNWqj4glUGvHwhOZZcirF+MjaWrTjEg8k86Fw+QvgGD/LBi2x/y9A==
X-Message-Delivery: Vj0xLjE7dXM9MDtsPTA7YT0xO0Q9MTtHRD0xO1NDTD0tMQ==
X-Microsoft-Antispam-Message-Info:
4qOGVNYj1RmAhdyMkg693oeC4UXQ1cLxWLDMQOzrC2UbrPiXx7A2Kd+hA06Dc+m3L1rtVmY0pEjI+eZ9dhFRNISwmVcWAqZW1e7ylfaENQAcaY5fBtfMRLPQATAj2pJ2a0QhM13xHMnomzaB+kI0GGdaKkgmFZ0iUokPxpsm/uH/w+TsYLykfoIXJeh5V/OLtpoMB/ulJ7N5akNYQMVRSebtYbIoE01eEErF5+jGZl147TYWwFp591YhXcOJKoFuBLDm9dXBrDKLwVHXg/EOhqXL89PxAnaQUI0vcN4uEMqHsfZh4hG0KWrOxdjDf9ZY
MIME-Version: 1.0
--000_DM5PR03MB335332A6770F1800F09824C9C2000DM5PR03MB3353namp
Content-Type: text/plain; charset="us-ascii"
Content-Transfer-Encoding: quoted-printable
X-Microsoft-Exchange-Diagnostics:
1;DM5PR03MB3353;27:E269/Dm7kmpaYNNyoCor5TwXVzFufcHkuXX/+k0MoPdFQL7wZjTwRHdaboP4oRr5Z1TeKKa0trsCnECwRmAjRD2fhINSqTljyJqW9Q+uKQhIpKrkXvcOtsI22lmugQucXKtks4t6rfkzB0npWbkblg==
X-Microsoft-Antispam-Mailbox-Delivery:
dkl:0;rwl:0;ex:0;auth:1;dest:I;ENG:(400001000128)(400125000095)(5062000261)(5061607266)(5061608174)(1004181)(4900095)(4920089)(6220004)(4950112)(4990090)(9110004);OFR:SpamFilterPass;
X-Message-Info:
5vMbyqxGkdf4AQ5hYaEt2YOIrujbaDwg7BNiJljdGaUBF5j/t1mlKnd+lo6sgOP5iIUlT8J/q4gd76s6f1j1WqUTwqsLcLDUdItxHFIdm0sX6cO263UqmQW+CQS7slPPXhVfSY7c5Y75lHTaw5SquwJL6/6ngWhFEYNWqj4glUGvHwhOZZcirF+MjaWrTjEg8k86Fw+QvgGD/LBi2x/y9A==
X-Message-Delivery: Vj0xLjE7dXM9MDtsPTA7YT0xO0Q9MTtHRD0xO1NDTD0tMQ==
X-Microsoft-Antispam-Message-Info:
4qOGVNYj1RmAhdyMkg693oeC4UXQ1cLxWLDMQOzrC2UbrPiXx7A2Kd+hA06Dc+m3L1rtVmY0pEjI+eZ9dhFRNISwmVcWAqZW1e7ylfaENQAcaY5fBtfMRLPQATAj2pJ2a0QhM13xHMnomzaB+kI0GGdaKkgmFZ0iUokPxpsm/uH/w+TsYLykfoIXJeh5V/OLtpoMB/ulJ7N5akNYQMVRSebtYbIoE01eEErF5+jGZl147TYWwFp591YhXcOJKoFuBLDm9dXBrDKLwVHXg/EOhqXL89PxAnaQUI0vcN4uEMqHsfZh4hG0KWrOxdjDf9ZY
Get Outlook for iOShttps://aka.ms/o0ukef
--000_DM5PR03MB335332A6770F1800F09824C9C2000DM5PR03MB3353namp
Content-Type: text/html; charset="us-ascii"
Content-Transfer-Encoding: quoted-printable
X-Microsoft-Exchange-Diagnostics:
1;DM5PR03MB3353;27:E269/Dm7kmpaYNNyoCor5TwXVzFufcHkuXX/+k0MoPdFQL7wZjTwRHdaboP4oRr5Z1TeKKa0trsCnECwRmAjRD2fhINSqTljyJqW9Q+uKQhIpKrkXvcOtsI22lmugQucXKtks4t6rfkzB0npWbkblg==
X-Microsoft-Antispam-Mailbox-Delivery:
dkl:0;rwl:0;ex:0;auth:1;dest:I;ENG:(400001000128)(400125000095)(5062000261)(5061607266)(5061608174)(1004181)(4900095)(4920089)(6220004)(4950112)(4990090)(9110004);OFR:SpamFilterPass;
X-Message-Info:
5vMbyqxGkdf4AQ5hYaEt2YOIrujbaDwg7BNiJljdGaUBF5j/t1mlKnd+lo6sgOP5iIUlT8J/q4gd76s6f1j1WqUTwqsLcLDUdItxHFIdm0sX6cO263UqmQW+CQS7slPPXhVfSY7c5Y75lHTaw5SquwJL6/6ngWhFEYNWqj4glUGvHwhOZZcirF+MjaWrTjEg8k86Fw+QvgGD/LBi2x/y9A==
X-Message-Delivery: Vj0xLjE7dXM9MDtsPTA7YT0xO0Q9MTtHRD0xO1NDTD0tMQ==
X-Microsoft-Antispam-Message-Info:
4qOGVNYj1RmAhdyMkg693oeC4UXQ1cLxWLDMQOzrC2UbrPiXx7A2Kd+hA06Dc+m3L1rtVmY0pEjI+eZ9dhFRNISwmVcWAqZW1e7ylfaENQAcaY5fBtfMRLPQATAj2pJ2a0QhM13xHMnomzaB+kI0GGdaKkgmFZ0iUokPxpsm/uH/w+TsYLykfoIXJeh5V/OLtpoMB/ulJ7N5akNYQMVRSebtYbIoE01eEErF5+jGZl147TYWwFp591YhXcOJKoFuBLDm9dXBrDKLwVHXg/EOhqXL89PxAnaQUI0vcN4uEMqHsfZh4hG0KWrOxdjDf9ZY

<meta http-equiv=3D"Content-Type" content=3D"text/html; charset=3Dus-ascii"=

Get Outl=
ook for iOS

--000_DM5PR03MB335332A6770F1800F09824C9C2000DM5PR03MB3353namp--

I want Markdown, LaTeX and other plain text format files being rendered in bright color theme while others in dark color theme. Also the font for text files should not be sans serif...

Yeah, I agree, the markdown dark theme seems to be not clear for Italian and Bold, really want this color theme change according to file extension feature!

Same I use powershell and the posh theme but tomorrow night for all markdown. Can this be implemented?

My use case is having a different them when I am working on *.mock.* files. These often look very similar to the files they are mocking, and I'd like to be made aware of when I'm working on one or the other. Switching themes for this would be ideal.

Here's my use case:
Highlighting of currently active lines in diff view is only barely noticeable in the theme I'm using. See this question on stack overflow for screenshot etc.
Therefore I'd only like to customize the parameters editor.lineHighlightBorder & maybe editor.lineHighlightBackground for the diffs view.
@brandonb927 mentioned
"[plaintext]": {
  "editor.fontSize": <num>,
}

Is there an equivalent of plaintext for the diffs view or is the diffs view not specified on its own? Also is this feature documented somewhere with all possible domains or types?

I've created an extension named "Theme By Language" that lets you change theme based on the current opened file language. This may be interesting for some of you.
https://marketplace.visualstudio.com/items?itemName=jsaulou.theme-by-language

The semantics of, say, CSS, Golang, a plain text file, JSON, and Markdown source are so utterly different that it would be a miracle if the highlighting I wanted for each all happened to coincide in the same theme. And even if they somehow did, if I changed my mind about anything ("hmm, I think I'd rather see plain text light instead of dark like code"), I'd be stuck. And even where the semantics are nearly the same and I DO want the same style, I have a theme that highlights Golang function names the way I want but uses a different style for JavaScript functions.
The solution to all of these would be a mechanism for specifying different specialty themes for different file types rather than having only general-purpose-compromise themes. And over time, a smarter theme type might be developed that derived semantic/syntactic categories (for each file type separately) from a combo of language servers, linters, static type info, intellisense, etc. (but that's a different issue.)

@jsaulou thanks for the great extension.
BTW, if you just want to change editor colors (but not all workspace colors), don't toggle "workbench.colorTheme" but modify the "editor.tokenColorCustomizations" setting. Here's an example to just change the HTML token colors:
   "editor.tokenColorCustomizations": {
        "textMateRules": [
            {
                "scope": "text.html.basic comment",
                "settings": { "fontStyle": "italic", "foreground": "#657Bff" }
            },
            {
                "scope": "text.html.basic string",
                "settings": { "foreground": "#2AA198" }
            },
            {
                "scope": "text.html.basic string.regexp",
                "settings": { "foreground": "#D30102" }
            },
            {
                "scope": "text.html.basic constant.numeric",
                "settings": { "foreground": "#D33682" }
            },
            {
                "scope": "text.html.basic variable",
                "settings": { "foreground": "#268BD2" }
            },
            {
                "scope": "text.html.basic keyword",
                "settings": { "foreground": "#859900" }
            },
            {
                "scope": "text.html.basic storage",
                "settings": { "fontStyle": "bold", "foreground": "#93A1A1" }
            }
        ]
    }

Thanks @aeschli.
I don't think this is possible but is there an way to extract these rules from themes?
That would be really neat and avoid to change the whole appareance of the workbench.

@jsaulou As a user, you can invoke the Generate color theme from current settings command and take the tokenColors sections.

I'd also love to:

have a specific theme for specific file types
disable breadcrumbs and tabs

Those functions do not work for file types. Maybe a difficult task?
Because: I need all the goodies for coding. But not for text files/ documentation. Also, I'd love to use VS Code as a default association for text files. My config for text files atm:
   "[plaintext]": {       "files.autoSave": "afterDelay",       "editor.minimap.enabled": false,       "editor.folding": false,       "editor.renderControlCharacters": false,       "editor.renderWhitespace": "none",       "editor.fontFamily": "Consolas",       "editor.fontSize": 26,       "editor.wordWrap": "bounded",       "editor.lineNumbers": "off",       "editor.autoIndent": false,       "editor.quickSuggestions": {          "other": false,          "comments": false,          "strings": false       },    },

Is dropping +1s useful? If so here's mine: +1!

I would suggest change by project instead of change by language.  So for example

Java Spring Boot file extensions will have .java, .xml, .properties, .sql, .schema, yaml...etc.

Angular extension will includes .html, cscc, css, ts, js, json...etc.

Flutter....

In my opinion, this could help people who are using VScode for multiple project type.

Any update on this? I like to use the traditional Powershell ISE them when working in PS. But I cant get used to editing .JSON files when it is enabled.
Therefore I would like to them to change to something of my choice when I open or create a json file.
Thanks

Any update on this??

+1

@jsaulou 's extension is great XD, but since I use several panes at a time, I want to have only that certain individual editor view themed.
In this case, when you use the "editor.tokenColorCustomizations" in file-type settings:
"[elixir]": {
    "editor.formatOnSave": true,
    "editor.tabSize": 2,

    // LIKE THIS
    "editor.tokenColorCustomizations": {
        "textMateRules": [
            {
                "scope": "text.html.basic comment",
                "settings": { "fontStyle": "italic", "foreground": "#657Bff" }
            },
            {
                "scope": "text.html.basic string",
                "settings": { "foreground": "#2AA198" }
            },
            ...
            // maybe backgrounds too?
        ]
    }
},

If you could put that setting inside the language specific ones OF the workspace settings, it should be great!
Then the extension could be capable of dynamically setting this, I think?

I think most of the use cases are covered already by individual token settings and workspace settings that already work. Pretty reasonable to just set the theme for the workspace you use for C+ files differently from the workspace for JS projects.
It would be more obvious you can do that if the menu for file : prefences : color theme just opened the settings editor to workbench:color theme where most know you can select user or workspace instead of opening the Command drop-down. Much easier to cycle through various themes from the settings editor also.

I think most of the use cases are covered already by individual token settings and workspace settings that already work. Pretty reasonable to just set the theme for the workspace you use for C+ files differently from the workspace for JS projects.

I think many workspace includes several languages, especially Markdown. Many people in this thread are wanting to change color themes for markdown.

You're right. While you can change font and some color for some differentiation in languages, you can't swap light/dark within the same workspace without an extension like jsaulou's.

Still waiting. I'd like Markdown/LaTeX and any other text based files to be rendered with LIGHT color scheme (I don't care the whole scheme, i.e. sidebar, menu, etc.), while using DARK color scheme for programming languages.

Same thing here. I use dark color scheme for CSS and JS, light for
everything else.

            {
                "scope": "text.html.basic keyword",
                "settings": {"foreground": "#4a83f6"}
            },

is not working for me, the keywords stay green.

@Code4SAFrankie Use the Inspect Editor Tokens and Scopes tool to see what the scope is at a certain location. I don't think the HTML grammar uses keyword. Also, it can be, that a more specific rule wins against our rule. The Inspect Editor Tokens and Scopes tool tells you what theme rule has won.

I like the approach of Windows Terminal, each profile have their own settings like schema and fonts.

There is now a plugin for this:
https://marketplace.visualstudio.com/items?itemName=jsaulou.theme-by-language

Ahh. But themes already theme more than just the editor. What would we do if two editors are open?

Split the UI theming from the editor (syntax/code) theming. If two editors are open, use the same "UI theme" but the appropriate per language syntax theme.

I think this issue is solved as @jsaulou created a great extension. I think @aeschli you should close this issue as there is an extension for that.

This issue shouldn't be closed because the @jsaulou extension does not solve the original problem. Some filetypes as .ipynb and .py use the same language (Python), so it is not possible to assign different themes for .py and .ipynb files.

This issue shouldn't be closed because the @jsaulou extension does not solve the original problem. Some filetypes as .ipynb and .py use the same language (Python), so it is not possible to assign different themes for .py and .ipynb files.

I think you are right, but does that really matters at the end when coding? I am using jsaulou's extension and I only notice it sometimes as a programmer

For anybody who's still following this issue: I now use different fontFamily / fontSize / lineHeight for different langauges. It's good enough for me, and the switch is much faster than switching the theme.
You could try adding something like this to your settings.json and see how to works:
  "[plaintext]": {
    "editor.fontFamily": "sans-serif",
    "editor.fontSize": 22.3,
    "editor.lineHeight": 34,
  },
  "[markdown]": {
    "editor.fontFamily": "serif",
    "editor.fontSize": 19,
    "editor.lineHeight": 25
  },

I could add the possibility to associate a theme using either extension or language.
Themes defined by extension would probably have the higher priority as they are more specific.
Would this help?

I could add the possibility to associate a theme using either extension or language.
Themes defined by extension would probably have the higher priority as they are more specific.
Would this help?

Yes, that would be awesome!

I would like to create a theme for files ending in .ledger
I have a nice theme I use for .md files that I would like to also use for .ledger files.
Is this possible?

I'm sorry but the extension Theme by language is absolutely not a fix for this issue as it changes the theme of the entire editor. For thos uf us who use several panels (I'm guessing most) this is slow and bad

A similar feature (which likely doesn't deserve its own issue considering that #28483 was closed with reference to here but which should be kept in mind when this is implemented) is the ability to set a different color theme for the markdown preview window. For example have the .md file dark themed on the left and its preview light themed on the right (to look more like a normal document). Useful e.g. to properly view plots with transparent background:

I would also like such feature. For 75% of my files I have an Egoist One theme slightly tweaked using settings. But for specific file type (*.lookml) I want to install an extension that has tokens colours. However we have to specify a theme in the extension, which means it changes my whole editor.

darekzak commented on Feb 15, 2017

This feature request was initially opened in Feb 2017, with lots of closed duplicate issues and references from other issues, and consistent comments and demand until today here.
What's the status on this feature request?
Is this feature on the vsc roadmap?
This inability to select per-syntax/filetype themes is one of major remaining shortcomings in vscode that keeps my development workflow split between different editors.
Some themes just have better syntax support for certain languages over others, and some languages just look better in other themes.
It would be ideal if vscode could have "syntax-specific" settings like Sublime Text does.
For example, I have a different "color_scheme" defined on each syntax here (markdown: bijan, java: hotdogstand, python: monokai):

You too can get that java theme simply by specifying in your java.sublime-settings:
// These settings override both User and Default settings for the Java syntax
{
    "color_scheme": "Packages/Colorsublime - Themes/HotDogStand.tmTheme",
}

What we need is something like this:
{
"label": "Some Dark Theme",
"uiTheme": "vs-dark",
"path":
[
"./themes/dark.editortheme.json",
"./themes/dark.cs.json",
"./themes/dark.js.json",
"./themes/dark.html.json",
]
},
This is a muchly needed feature.
For both the OP's reason and for general organization when using the same editor theme with multiple syntax themes for various languages.

I'm a bit surprised that in 7 years, nobody mentioned the situation in which the per language theme would probably make the greatest difference and that is embedded languages.
The most common example in the past few years would be the CSS in JS syntax highlight, in which a different theme for the CSS code written as
export const button = css`
    border-radius: 4px;
    font-size: 14px;
`

would make it easier to differentiate between the two.
One example from a project I currently work on are Neo4J Cypher query strings. To make it easier to differentiate the queries from the surrounding code I had to manually apply different colors from the Twilight theme to the Cypher language tokens when the default theme was Monokai, as it has already been suggested in other posts here. However, doing that for multiple languages and keeping the settings in sync with the original theme the tokens were taken from is very cumbersome.
Note in the examples below how in the first screenshot the query has no specific highlight other than the default Monokai color for Typescript strings, then, in the second, highlight is enabled by an extension that tokenizes the string, but it's still pretty hard to follow as the Cypher tokens use the same colors as the Typescript tokens while in the last one the distinction between the two languages is clearly visible as Cypher uses a completely different color scheme than the surrounding Typescript code, which were applied through custom settings, like so
{
	// ...
	"[Monokai]": {
		"textMateRules": [
		{
			"name": "Cypher QL keywords",
			"scope": "keyword.control.clause.cypher",
			"settings": {
				"fontStyle": "bold",
				"foreground": "#82563D"
			}
		},
		{
			"name": "Cypher QL keywords",
			"scope": "source.cypher support.function",
			"settings": {
				"foreground": "#F9EE98"
			}
		},
	]
	// ...
}

No highlight:

Default highlight:

Custom highlight:

Hey Guys work on this feature it's very useful & helpful

Would like to change the theme or colours for a specific file, to work as an ambient signifier for the particular domain I'm working within - more info on UX design of ambient signifiers here; https://boxesandarrows.com/ambient-signifiers/

Holy **** its been years. For the love of all that is holy, please allow different color backgrounds or syntax highlighting per editor window based on language.

I'd also love to have this feature.
Main reason is the above mentioned differences between the themes depending on the language.
I work daily in terraform, yaml, python, markdown, sql and in multiple random languages like go, javascript etc.
I haven't found a single theme to be great for all of the languages. There's always one language that isn't formatted as well as in some other theme. However there's a great theme for any single language mentioned.

I'd also love to have this feature. Main reason is the above mentioned differences between the themes depending on the language. I work daily in terraform, yaml, python, markdown, sql and in multiple random languages like go, javascript etc. I haven't found a single theme to be great for all of the languages. There's always one language that isn't formatted as well as in some other theme. However there's a great theme for any single language mentioned.

If you haven't, at least give each project a different theme using .vscode/settings.json.

Actually it would be better if we can set "themes" based on "file name" rather than extension.
Different color for Split window.
for example
"[_Model.js]" : {
tab.background:red,
}
"[_Viewl.js]" : {
tab.background:green,
}
"[*_Controller.js]" : {
tab.background:yellow,
}

Another year has gone...
I'm starting to think Microsoft is not going to solve it.
I totally agree with @darekzak 's excellent example:
{
".js": "Monokai",
".html": "Flatland Monokai"
}
And @janosh  makes a great point about wanting a different color theme for the markdown preview window. A dark theme on the left and a light one on the right would really make it feel more like a normal document.
The Theme War: Microsoft’s Achilles' Heel


Improved  and whitespace fix

TL;DR
This fixes #12 in a different, less destructive way.
Longer version
By putting the html through the DOMDocument class, a lot of changes are made to it, which in turn can lead to different Markdown, especially when the html is invalid in all sorts of ways (which is rather common on the web, ask browser vendors :wink: ).
In my case I had html that didn't properly close tags:
header

Some text

Another header

Some more text

Which before resulted in the following Markdown:
**header**
Some text

**Another header**

Some more text

Now it does something like this:
**header**
Some text

****Another header****

Some more text

This keeps on growing on each header. Now, of course the html is wrong, but I still think the resulting Markdown should represent what you'd see if you loaded that html in a web browser:
**header
Some text**

**Another header**

Some more text

This is also according to the CommonMark spec, which allows for a single newline in inline elements (test), but not for 2 (test)
I've updated the parse() method to fix both problems in #12, while adhering to the rules explained above. This is also updated in the test suite (which by the way could really use a rewrite that doesn't rely on trailing spaces, since many editors/IDE's trim those).

Thanks for this very well explained PR.
Your new code fit more with the legacy code!
I don't know if it's good... but it will help us to limit side effects ;)
Could you, please:

Move the code you added in the parse() function to fix spaces and breaks, in one separate function. It will help other to understand & maintain this code.
Add a test corresponding to your PR example

The trailing spaces in the test cases are also boring me.
What do you propose?
Cheers,
Thomas.

I don't know if it's good... but it will help us to limit side effects ;)

What is does basically, is when the parser is in inline context it looks for leading/trailing spaces in the text inside that element and when found, it moves that whitespace outside of the tag. I've also documented this in the function, along with examples.

Move the code you added in the parse() function to fix spaces and breaks, in one separate function. It will help other to understand & maintain this code.

Done :+1:

Add a test corresponding to your PR example

The test I added is similar to the example I described in this PR.

The trailing spaces in the test cases are also boring me.
What do you propose?

What I would do is, make all markdown strings in the test case single-lined. That way you can still have trailing spaces, and they would be preserved because of the ending quote. In case of a multi-line Markdown example you could split it up in multiple single-line strings, like this:
$data['next-to-bold-and-br']['md'] = "**McHale**  \n" .
"\n" .
"\n" .
"  1. Bird" .
"  2. Magic"
;

Nice improvments!
Thanks for this PR ;)
Cheers,
Thomas.

BTW, I'm open to a PR that split up multiple lines strings in the test cases.
Cheers,
Thomas.

You're welcome, could you maybe release a new version with this change?

The release is ready
https://github.com/Elephant418/Markdownify/releases/tag/v2.1.9
See you!
Thomas.

The multi lines string in test cases are split up, since 9f453df.
Cheers,
Thomas.

Nice! :+1:


What are ref gap size , query gap size and ref_start and ref_stop for tandem expansion and tandem contractions?

Hi Maria,
Hope you are doing well!
I was wondering if you could help me with understanding what ref gap size , query gap size and ref_start and ref_stop mean in case of tandem expansion and contraction?
For instance this is an example output :
ref_start	ref_stop	ID	size	strand	type	ref_gap_size	query_gap_size	query_coordinates	method
336379	338466	Assemblytics_b_7	2760	+	Tandem_contraction	2087	-673	1:339067-339740:-	between_alignments
I tried to make a visualization of my understanding here
Could you kindly verify my understanding is correct? If not, could you provide a visualization of where the coordinates are?

I'm sorry for the long delay!
In case it's still relevant, I'll answer your question:
Everything with the "ref_" prefix is based in reference coordinates. In your diagram, you would swap the ref_gap_size and query_gap_size, so the ref_gap_size which is negative is at the top, and negative gap means there's an overlap.
The size is `ref_gap_size - query_gap_size = 2087- -673 = 2760. This is a total number of base pairs that are affected/differ, as best we can tell without knowing the actual basepair sequence, so in this case it's the gap in the ref plus the overlap in the query.


About double quotes

Some developers pointed out that double quotes are a pain to type on qwerty keyboards. That may be a reason valid enough to switch to single quotes.

I'm a big fan of single quotes personally - for no reason in particular. From the W3C:

The format of a URI value is 'url(' followed by optional white space followed by an optional single quote (') or double quote (") character followed by the URI itself, followed by an optional single quote (') or double quote (") character followed by optional white space followed by ')'. The two quote characters must be the same.

So it really is potato potahto!

Single quotes have been merged. :)


overview-view

A class where all the parked and aunparked vehicles are.
the basic data are: REegNr, Type, Color, Parking time

Fixed


Added centering on selected marker position update

Since this only adds a line that centers the map to new coordinates (basically doing the same thing as updating the popup coordinates) it should not break anything. I implemented this QOL feature mostly for myself, because I was tired of dragging along the map when walking through Brussels trying to track myself :)


crash on pressing youtube.com format selection

Yup, it happens after updating yt-dlp, because it changed the format of the video info. It will be corrected in the next version (I'm currently in the final stage of testing and fixing bugs, and about to release it very soon).


Ubuntu x86 link fix

Fixes issue #156, still researching the accurate wording for file descriptor limit issue #157 and what to convey to users to fix the issue.

Looks good thank you!


Error in reading Yolo Model

Small indexing error in YoloDetector.py line 21 that results in an error
Issue:
def get_layers(self):
ln = self.model.getLayerNames()
return [ln[i**[0]** - 1] for i in self.model.getUnconnectedOutLayers()]
Fix:
def get_layers(self):
ln = self.model.getLayerNames()
return [ln[i - 1] for i in self.model.getUnconnectedOutLayers()]

@ax2mazhr @mjoshi07 did you solve this issue? I faced the same issue.


k32w0: alarm: fix format specifier

The bump to latest openthread commit will lead to a format specifier error.
See: https://github.com/project-chip/connectedhomeip/actions/runs/3393654583/jobs/5641258494
This PR updates the openthread submodule and fixes the format specifier error.

@andrei-menzopol , can you help propagate this update to https://github.com/project-chip/connectedhomeip/ ?

Yes, I will

Yes, I will

Thanks!


Smooth Scrolling isn't working

The smooth scrolling (see index button) isn't working on other pages in page href links...
https://css-tricks.com/snippets/jquery/smooth-scrolling/

Nice use of Github Issues, @ben10512 !

Resolved Smooth Scrolling and added the JS to all pages. Implemented and working.
Sorry to fill up all your inboxes with extra emails! :)


tensorflow lite native app, undefined reference to `NnApiImplementation()'

I am getting the following error on these line:
uint32_t device_count = 0;
auto nnapi_result = NnApiImplementation()->ANeuralNetworks_getDeviceCount(&device_count);

.../benchmark_jni.cpp:413: undefined reference to `NnApiImplementation()'
NnApiImplementation() is referenced in nnapi_implementation.h:
/**
 * Load the NNAPI implementation from the shared libraries.
 * The NnApi structure is filled with all the pointers. If one function doesn't
 * exist, a null pointer is stored.
 */
const NnApi* NnApiImplementation();

I had previously built the arm64-v8a shared library as illustrated in this guide:
https://www.tensorflow.org/lite/guide/android#build_in_android_studio
using the docker image method and finally building with this command:
bazel build -c opt --config=android_arm64 //tensorflow/lite:libtensorflowlite.so
However when I try to find the NnApiImplementation in the .so file using:
nm -gDC libtensorflowlite.so | grep "NnApiImplementation"
Nothing is returned.

@Saduf2019 can you put the lite, and build/install tags on this, its been 2 days

@amitDaMan
Can you please fill/update the issue template with tf version, steps before error was faced, simple stand alone code if applicable and system information for us to analyse.

I do not think that this problem is related to my particular usecase and is really about whether the proper nnapi functions are packaged in the shared library.
However, to answer your question.
There is a machine learning test suite located in AOSP
https://android.googlesource.com/platform/test/mlts/
And it is built in soong and make.
And I am trying to build it in gradle and cmake to work with android studio.
However MLTS uses the C++ api of tensorflow lite, which means I need to build the C++ shared libraries:
using:
bazel build -c opt --config=android_arm64 //tensorflow/lite:libtensorflowlite.so
as described:
https://www.tensorflow.org/lite/guide/android#build_in_android_studio

ping

NnApiImplementation() is a TFLite internal function for NNAPI wrapping. It's not for external use.
If you want to use NNAPI, you can use it directly instead of calling it via TFLite internal functions.
https://developer.android.com/ndk/reference/group/neural-networks#aneuralnetworks_getdevicecount


Create App to Check In attendees based on face

This app will be based on the Kiosk App at  https://github.com/Microsoft/Cognitive-Samples-IntelligentKiosk

@maniSbindra We used this app in todays meetup?

@indcoder app submitted as a part of PR 17 : https://github.com/MumbaiHackerspace/Visage/pull/17 is the app we used during the meetup on 18th June


Symbol % highlighted and parsed as comments, but correctly rendered

Well, I'm not sure if it's a duplicate to #3, but it can still be annoying when % symbols are inside the code block.
\pyth
When writing % inside \pyth, overleaf highlights the remainder of the code and text outside the curly braces as a comment. The pdf renders as desired though.

Overleaf also produces a warning.

Notice that I had to use 2 blank spaces, otherwise the remaining code gets printed right next to the % symbol.

Finally, using \% gets printed as "\%" as expected, so it doesn't solve this either. (Though again, another space is necessary, which is not expected.)

\python
Similar, but acceptable annoyances exist in the \python command.

Is there any way to fix this?

What you describe is mostly and editor problem that you may want to report to the issue tracker of the editor (overleaf, in your case). It is unlikely that they should fix it properly though.
The double space after % is a distinct issue (a minor one, I guess), but I believe it is a problem of the listings package, in that case. I'd be happy to fix it if I can, though.

In the case nothing can be done for Overleaf being annoying, it can be closed. Thanks!


Update AboutUs and PPP

Updated AboutUS and added skeletal version of PPP.

Codecov Report

Merging #34 (87d690c) into master (c6ae4c8) will not change coverage.
The diff coverage is n/a.

@@            Coverage Diff            @@
##             master      #34   +/-   ##
=========================================
  Coverage     72.15%   72.15%
  Complexity      399      399
=========================================
  Files            70       70
  Lines          1232     1232
  Branches        125      125
=========================================
  Hits            889      889
  Misses          311      311
  Partials         32       32

Continue to review full report at Codecov.

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


Add a force warnings as errors flag

This flag will force any warnings to give an error code of 1.

No rules are configured as warnings in standard, they all are errors. Which rule is giving you a warning?

You're right. Sorry about the trouble


catch2: 2.13.4 -> 2.13.7

Automatic update generated by nixpkgs-update tools. This update was made based on information from https://github.com/catchorg/Catch2/releases.
meta.description for catch2 is: "A multi-paradigm automated test framework for C++ and Objective-C (and, maybe, C)"
meta.homepage for catch2 is: "http://catch-lib.net"
meta.changelog for catch2 is: ""
Updates performed

Version update

To inspect upstream changes

Release on GitHub

Compare changes on GitHub

Impact

Checks done (click to expand)

built on NixOS

The tests defined in passthru.tests, if any, passed

0 of 0 passed binary check by having a zero exit code.

0 of 0 passed binary check by having the new version present in output.

found 2.13.7 with grep in /nix/store/zcngnpcpgqzym849zwblsqdrslj8sh5p-catch2-2.13.7

found 2.13.7 in filename of file in /nix/store/zcngnpcpgqzym849zwblsqdrslj8sh5p-catch2-2.13.7

directory tree listing: https://gist.github.com/12c736ff0e5c68b0665fa5bd7241d7ef

du listing: https://gist.github.com/69a7f44c9d06505d0769202bb76cf2fc

Rebuild report (if merged into master) (click to expand)

127 total rebuild path(s)

37 package rebuild(s)

37 x86_64-linux rebuild(s)
35 i686-linux rebuild(s)
20 x86_64-darwin rebuild(s)
35 aarch64-linux rebuild(s)

First fifty rebuilds by attrpath
beets
beetsExternalPlugins.alternatives
beetsExternalPlugins.copyartifacts
beetsExternalPlugins.extrafiles
catch2
cloudcompare
d-seams
fcppt
giada
grip-search
imgbrd-grabber
irods
irods-icommands
keyfinder
keyfinder-cli
libjson-rpc-cpp
libkeyfinder
mixxx
nuspell
pc-ble-driver
pdal
python38Packages.pc-ble-driver-py
python38Packages.qiskit
python38Packages.qiskit-aer
python38Packages.qiskit-aqua
python38Packages.qiskit-ibmq-provider
python38Packages.qiskit-ignis
python38Packages.tiledb
python39Packages.qiskit
python39Packages.qiskit-aer
python39Packages.qiskit-aqua
python39Packages.qiskit-ibmq-provider
python39Packages.qiskit-ignis
python39Packages.tiledb
tiledb
yuzu-ea
yuzu-mainline

Instructions to test this update (click to expand)

Either download from Cachix:
nix-store -r /nix/store/zcngnpcpgqzym849zwblsqdrslj8sh5p-catch2-2.13.7 \
  --option binary-caches 'https://cache.nixos.org/ https://nix-community.cachix.org/' \
  --option trusted-public-keys '
  nix-community.cachix.org-1:mB9FSh9qf2dCimDSUo8Zy7bkq5CX+/rkCWyvRCYg3Fs=
  cache.nixos.org-1:6NCHdD59X431o0gWypbMrAURkbJ16ZPMQFGspcDShjY=
  '

(The Cachix cache is only trusted for this store-path realization.)
For the Cachix download to work, your user must be in the trusted-users list or you can use sudo since root is effectively trusted.
Or, build yourself:
nix-build -A catch2 https://github.com/r-ryantm/nixpkgs/archive/cb8424f8b24f951eac5c392fe357bec14db97e14.tar.gz

After you've downloaded or built it, look at the files and if there are any, run the binaries:
ls -la /nix/store/zcngnpcpgqzym849zwblsqdrslj8sh5p-catch2-2.13.7
ls -la /nix/store/zcngnpcpgqzym849zwblsqdrslj8sh5p-catch2-2.13.7/bin

Pre-merge build results
We have automatically built all packages that will get rebuilt due to
this change.
This gives evidence on whether the upgrade will break dependent packages.
Note sometimes packages show up as failed to build independent of the
change, simply because they are already broken on the target branch.
nixpkgs-review took longer than 45m and timed out

Maintainer pings
cc @edwtjo @knedlsepp for testing.

Result of nixpkgs-review pr 133266 run on x86_64-linux 1

3 packages marked as broken and skipped:

keyfinder
python38Packages.tiledb
python39Packages.tiledb

34 packages built:

beets
beetsExternalPlugins.alternatives
beetsExternalPlugins.copyartifacts
beetsExternalPlugins.extrafiles
catch2
cloudcompare
d-seams
fcppt
giada
grip-search
imgbrd-grabber
irods
irods-icommands
keyfinder-cli
libjson-rpc-cpp
libkeyfinder
mixxx
nuspell
pc-ble-driver
pdal
python38Packages.pc-ble-driver-py
python38Packages.qiskit
python38Packages.qiskit-aer
python38Packages.qiskit-aqua
python38Packages.qiskit-ibmq-provider
python38Packages.qiskit-ignis
python39Packages.qiskit
python39Packages.qiskit-aer
python39Packages.qiskit-aqua
python39Packages.qiskit-ibmq-provider
python39Packages.qiskit-ignis
tiledb
yuzu-ea
yuzu-mainline


chore(release): updating production to v1.0.12

Includes:

use website url for ext-projects when available (#467) (e196e84)
remove 'Browser' from 'description' (#469) (722873a)
remove remaining source available node projects. (#468) (4b09a06)

 Thank you for your submission! We really appreciate it. Like many open source projects, we ask that you all sign our Contributor License Agreement before we can accept your contribution.4 out of 6 committers have signed the CLA.:white_check_mark: michaelgoin:white_check_mark: adwetzelnr:white_check_mark: tangollama:white_check_mark: ericboucher:x: semantic-release-bot:x: nr-opensource-botYou have signed the CLA already but the status is still pending? Let us recheck it.


Roofing Calculator

Enter calculator name -
Roofing Calculator
Describe calculator functionality -
It estimates the area of roof and the cost for roofing.
Under which category you wish to place it -

[ ] Computer Science
[ ] Mathematics
[ ] Physics
[ ] Chemistry
[ ] Biology
[ ] Art
[x] Finance
[ ] Scientific
[ ] Health
[ ] Games/Sports
[x] Let project owner decide
[ ] Suggest a new category - (Answer here)

@Upadhyay-Harshit,
Abiding by the contribution policy, not more than 2 issues can be assigned at a time.
Kindly comment once the previous issues are merged.

Do add the hacktoberfest label if its acceptable.

Hey ,
@Shantanu-Tiwari .
You may contribute your code under the folder path -
calc_for_everything\calculators\src\finance\roofingCalc
Issue completion deadline - 31st Oct 11:00:00 pm IST
NOTE - In case the issue completion deadline is not met, the issue will be assigned to a new participant


Udate ReadMe - Silly and Fun

In addition to what we talked about, I think a ReadMe should be fun--get the prospective user excited! This is my pitch at cutting back, while saying more, and keeping it light.

Remember to assign reviewers so we get notified that you want a review.

Also if you add it to the project it will show up on the board.


Pages shrinked and grouped in mobile print

Attach (recommended) or Link to PDF file here: https://mozilla.github.io/pdf.js/web/compressed.tracemonkey-pldi-09.pdf
Configuration:

Chrome 87.0.4280.141, Samsung Internet <IP_ADDRESS>, Edge <IP_ADDRESS>21;
Android 10;
PDF.js 2.5.207;

Steps to reproduce the problem:

Open viewer.html (any PDF file seems to work, even the example one)
Try to print the document using the print button on the secondary toolbar

What is the expected behavior?
All pages should be printed separately

What went wrong?
Pages are shrinked and grouped

Unfortunately this looks more like a platform/browser bug, rather than a PDF.js one, and the web-platform has (in general) quite limited support for controlling printing via JavaScript; hence I wonder if it makes sense to keep this issue open when it's unlikely to be fixable here?

Duplicate of #12020


how to auto-refresh jsGrid after loading data from local sqlite db?

I am trying to load data from a local sqlite db to a jsGrid.  But at page load, the grid is empty. I have to click on the header row for the data to display.  I tried calling the refresh function/option to no success.
If I replace the data with a array that I create in the script it works fine.  Am I trying to load the data onto the grid before it is actually pulled from the sqlite database?
Why is the grid not populating automatically with data from a database query as with data from a local array? Can you please help with the a fix to my faulty code?  What I am missing?
Thanks in advance
Below is the code to read the data from the sqlite table and pass it to loaddata.
		var zdata = new Array()
		db.transaction(function (tx) {
			tx.executeSql('select * from clients', [], function (tx, results) {
				var len = results.rows.length, i;
				var rows = results.rows;

				for (i = 0; i < len; i++) {
					zdata.push(rows[i])
				}
			});
		 });

		$("#jsGrid").jsGrid({
			width: "100%",
			height: "500px",

			inserting: true,
			editing: true,
			sorting: true,
			paging: true,
			autoload: false,
			datatype: 'local',

			controller: {
    			loadData: function() {
        			return zdata;
				}
			},
			fields: [
				{ name: "name", type: "text", width: 100, validate: "required" },
				{ name: "age", type: "number", width: 50 },
				{ name: "address", type: "text", width: 150 },
				{ name: "country", type: "select", items: countries, valueField: "Id", textField: "Name" },
				{ name: "married", type: "checkbox", title: "Is Married", sorting: false },
				{ type: "control" }
			]
		});

closed


FHIR download/caching barfing on R5 500 error.

On first run, the download/caching code is bailing out with TryDownloadAndExtract <<< exception downloading: http://packages2.fhir.org/packages/hl7.fhir.r5.core/5.0.0-snapshot2/, One or more errors occurred. (Response status code does not indicate success: 500 (Internal Server Error).). Not sure if it's an upstream issue with the server, outdated URL etc.
`
➜  fhir-codegen git:(main) dotnet run -p src/fhir-codegen-cli
Warning NETSDK1174: The abbreviation of -p for --project is deprecated. Please use --project.
Starting FhirCacheService...
<<< using cache directory: /Users/preston/.fhir
<< cache contains 10 packges
Starting FhirManager...
LoadCached <<< Loaded and Parsed FHIR DSTU2
Loaded hl7.fhir.r2.core#latest as hl7.fhir.r2.core version 1.0.2
LoadCached <<< Loaded and Parsed FHIR STU3 with 0 errors and 5 warnings
Errors (only able to pass with manual code changes)
Warnings (able to pass, but should be reviewed)

CodeSystem SNOMED_CT (snomedct): Duplicate proprety found: Laterality
ValueSet Yes/No/Don't Know (yesnodontknow): No Version present
ValueSet Example-inactive (inactive): No Version present
ValueSet Common UCUM units (ucum-common): No Version present
ValueSet All CPT codes (cpt-all): No Version present
Loaded hl7.fhir.r3.core#latest as hl7.fhir.r3.core version 3.0.2
LoadCached <<< Loaded and Parsed FHIR R4 with 0 errors and 1 warnings
Errors (only able to pass with manual code changes)
Warnings (able to pass, but should be reviewed)
CodeSystem SNOMED_CT (snomedct): Duplicate proprety found: Laterality
Loaded hl7.fhir.r4.core#latest as hl7.fhir.r4.core version 4.0.1
GetPackageVersionsAndUrls <<< Failed to get package info: NotFound http://packages.fhir.org/hl7.fhir.r4b.core
GetPackageVersionsAndUrls <<< Failed to get package info: NotFound http://packages.fhir.org/hl7.fhir.r4b.expansions
LoadCached <<< Loaded and Parsed FHIR R4B with 4 errors and 6 warnings
Errors (only able to pass with manual code changes)
CodeSystem ResourceSecurityCategory (resource-security-category): Status field missing
CodeSystem ConceptSubsumptionOutcome (concept-subsumption-outcome): Status field missing
CodeSystem StandardsStatus (standards-status): Status field missing
CodeSystem ResourceValidationMode (resource-validation-mode): Status field missing
Warnings (able to pass, but should be reviewed)
CodeSystem SNOMED_CT (snomedct): Duplicate proprety found: Laterality
ValueSet Yes/No/Don't Know (yesnodontknow): No Version present
ValueSet ACMECholCodesPlasma (example-filter): No Version present
ValueSet Example-inactive (inactive): No Version present
ValueSet Common UCUM units (ucum-common): No Version present
ValueSet All CPT codes (cpt-all): No Version present
Loaded hl7.fhir.r4b.core#latest as hl7.fhir.r4b.core version 4.3.0-snapshot1
GetPackageVersionsAndUrls <<< Failed to get package info: NotFound http://packages.fhir.org/hl7.fhir.r5.core
TryDownloadAndExtract <<< exception downloading: http://packages.fhir.org/hl7.fhir.r5.core/5.0.0-snapshot2/, One or more errors occurred. (Response status code does not indicate success: 404 (Not Found).)
<<< inner: Response status code does not indicate success: 404 (Not Found).
TryDownloadAndExtract <<< exception downloading: http://packages2.fhir.org/packages/hl7.fhir.r5.core/5.0.0-snapshot2/, One or more errors occurred. (Response status code does not indicate success: 500 (Internal Server Error).)
<<< inner: Response status code does not indicate success: 500 (Internal Server Error).
FindOrDownload <<< unable to resolve a directive: hl7.fhir.r5.core#latest
Unhandled exception: System.Reflection.TargetInvocationException: Exception has been thrown by the target of an invocation.
---> System.Exception: Failed to retrieve hl7.fhir.r5.core#latest
at Microsoft.Health.Fhir.SpecManager.Manager.FhirManager.LoadFhirCore(FhirSequenceEnum sequence, String version, Boolean offlineMode, Boolean officialExpansionsOnly, String ciBranch) in /Users/preston/Developer/git/fhir-codegen/src/Microsoft.Health.Fhir.SpecManager/Manager/FhirManager.cs:line 351
at Microsoft.Health.Fhir.SpecManager.Manager.FhirManager.LoadPackages(IEnumerable1 packageDirectives, Boolean offlineMode, Boolean officialExpansionsOnly, Boolean loadDependencies, Boolean skipFhirCore, String ciBranch, List1& failedPackages, Boolean areDependencies) in /Users/preston/Developer/git/fhir-codegen/src/Microsoft.Health.Fhir.SpecManager/Manager/FhirManager.cs:line 495
at FhirCodegenCli.Program.Process(String fhirSpecDirectory, String outputPath, Boolean verbose, Boolean offlineMode, String language, String exportKeys, String loadR2, String loadR3, String loadR4, String loadR4B, String loadR5, String languageOptions, Boolean officialExpansionsOnly, String fhirServerUrl, Boolean includeExperimental, String exportTypes, String extensionSupport, Boolean languageHelp, String packageDirectory, String packages, String ciBranch, String languageInputDir) in /Users/preston/Developer/git/fhir-codegen/src/fhir-codegen-cli/Program.cs:line 464
--- End of inner exception stack trace ---
at System.RuntimeMethodHandle.InvokeMethod(Object target, Span`1& arguments, Signature sig, Boolean constructor, Boolean wrapExceptions)
at System.Reflection.RuntimeMethodInfo.Invoke(Object obj, BindingFlags invokeAttr, Binder binder, Object[] parameters, CultureInfo culture)
at System.Delegate.DynamicInvokeImpl(Object[] args)
at System.Delegate.DynamicInvoke(Object[] args)
at System.CommandLine.NamingConventionBinder.ModelBindingCommandHandler.InvokeAsync(InvocationContext context)
at System.CommandLine.Invocation.InvocationPipeline.<>c__DisplayClass4_0.<b__0>d.MoveNext()
--- End of stack trace from previous location ---
at System.CommandLine.Builder.CommandLineBuilderExtensions.<>c__DisplayClass22_0.<b__0>d.MoveNext()
--- End of stack trace from previous location ---
at System.CommandLine.Builder.CommandLineBuilderExtensions.<>c__DisplayClass15_0.<b__0>d.MoveNext()
--- End of stack trace from previous location ---
at System.CommandLine.Builder.CommandLineBuilderExtensions.<>c__DisplayClass26_0.<b__0>d.MoveNext()
--- End of stack trace from previous location ---
at System.CommandLine.Builder.CommandLineBuilderExtensions.<>c__DisplayClass24_0.<b__0>d.MoveNext()
--- End of stack trace from previous location ---
at System.CommandLine.Builder.CommandLineBuilderExtensions.<>c.<b__23_0>d.MoveNext()
--- End of stack trace from previous location ---
at System.CommandLine.Builder.CommandLineBuilderExtensions.<>c__DisplayClass21_0.<b__0>d.MoveNext()
--- End of stack trace from previous location ---
at System.CommandLine.Builder.CommandLineBuilderExtensions.<>c.<b__8_0>d.MoveNext()
--- End of stack trace from previous location ---
at System.CommandLine.Builder.CommandLineBuilderExtensions.<>c.<b__7_0>d.MoveNext()
--- End of stack trace from previous location ---
at System.CommandLine.Builder.CommandLineBuilderExtensions.<>c__DisplayClass11_0.<b__0>d.MoveNext()

`

Thought I had already merged that fix into main.  There is an invalid package listed in the registry: 5.0.0-snapshot2.  I believe it is what Grahame uses internally for his tooling, but the directive changed when he published ballot, and it was not being filtered out.  The detection is more robust now, so this should hopefully suffice as new versions are published.
I merged the changes into main (they were already on dev) and all appears to be working.


SimpleDialog clarification

Hi, guys!
I'm going crazy trying to implement a simple dialog with a Yes/No buttons. I'm trying to use the MRTK 2017.2 (same Unity Version).
What I got so far is that I could display the dialog but the buttons don't trigger the close event.
I used as reference the SimpleDialog_Example scene but noted that there a crazy number of components and I don't understand anyone.
BTW, the scene sample works and if I copy the scene structure, my scene works. But I don't understand what I missing to create a scene from scratch.
Thanks in advance.
SG.

@sGambolati Hi, currently in progress of bringing Dialog and Progress controls to MRTK. I'll post the link to the pull request this week.

Thanks!

@sGambolati Please check out the Pull Requests on MRTK
https://github.com/Microsoft/MixedRealityToolkit-Unity/pull/1718
https://github.com/Microsoft/MixedRealityToolkit-Unity/pull/1783


Country Code issue in beta 8a

I don't think I can see a solution above.... Is there a forum I should be posting in for questions.  Just installed the beta.  It seems to be having problems with my country code..
It is set on config.yaml
homeassistant:
  country: GB

2023-01-16 19:29:10.185 ERROR (MainThread) [homeassistant.setup] Error during setup of component icloud3
Traceback (most recent call last):
  File "/usr/src/homeassistant/homeassistant/setup.py", line 253, in _async_setup_component
    result = await task
  File "/config/custom_components/icloud3/__init__.py", line 74, in async_setup
    v2v3_config_migration.convert_v2_config_files_to_v3()
  File "/config/custom_components/icloud3/support/v2v3_config_migration.py", line 179, in convert_v2_config_files_to_v3
    self._set_data_fields_from_config_parameter_dictionary()
  File "/config/custom_components/icloud3/support/v2v3_config_migration.py", line 570, in _set_data_fields_from_config_parameter_dictionary
    Gb.conf_general[CONF_WAZE_REGION]                = WAZE_SERVERS_BY_COUNTRY_CODE.get(Gb.ha_country_code, 'row')
AttributeError: type object 'GlobalVariables' has no attribute 'ha_country_code'

Please advise.

I just uploaded Beta 8b to fix this.
Download from the Release page here. Select Assets, then select icloud3-beta-8b.zip. Click download on the right side of the screen.

Sorry to say, it doesn't seem to have fixed the issue.
I deleted the icloud3 folder from custom_components.
Copied in the new one from the 8b beta zip file.
restarted multiple times.
Still getting the same error messages.........
2023-01-17 08:26:21.502 WARNING (MainThread) [icloud3] iCloud3 - Migrating Configuration Parameters
2023-01-17 08:26:21.504 ERROR (MainThread) [homeassistant.setup] Error during setup of component icloud3
Traceback (most recent call last):
  File "/usr/src/homeassistant/homeassistant/setup.py", line 253, in _async_setup_component
    result = await task
  File "/config/custom_components/icloud3/__init__.py", line 74, in async_setup
    v2v3_config_migration.convert_v2_config_files_to_v3()
  File "/config/custom_components/icloud3/support/v2v3_config_migration.py", line 179, in convert_v2_config_files_to_v3
    self._set_data_fields_from_config_parameter_dictionary()
  File "/config/custom_components/icloud3/support/v2v3_config_migration.py", line 570, in _set_data_fields_from_config_parameter_dictionary
    Gb.conf_general[CONF_WAZE_REGION]                = WAZE_SERVERS_BY_COUNTRY_CODE.get(Gb.ha_country_code, 'row')
AttributeError: type object 'GlobalVariables' has no attribute 'ha_country_code'
2023-01-17 08:26:21.507 ERROR (MainThread) [homeassistant.setup] Unable to prepare setup for platform icloud3.device_tracker: Unable to set up component.

Looking at the file v2v3_config_migration, it still has this line in it....
        Gb.conf_general[CONF_WAZE_REGION]                = WAZE_SERVERS_BY_COUNTRY_CODE.get(Gb.ha_country_code, 'row')
I changed this to Gb.country_code and it seemed to fix the problem.


fix: ensure copied source has correct ownership

When using -layout and --opt source_mode=copy followed by docker build from inside a docker container (docker-in-docker) where the executing user is root, the copied source ends up being owned by root and the build fails during the Setup.sh phase due to permissions issues. This patch fixes the issue by ensuring the copied source is owned by the ue4 user.
Specifically, the error is the following:
chmod: changing permissions of 'bin/mcs': Operation not permitted
chmod: changing permissions of 'bin/xbuild': Operation not permitted
Fixing inconsistent case in filenames.
Setting up Mono
Checking dependencies...
Failed to write file '/home/ue4/UnrealEngine/.ue4dependencies.tmp': Access to the path "/home/ue4/UnrealEngine/.ue4dependencies.tmp" is denied.
Result: 1

Nice catch, thank you.


Not Working in React native

Hi, thanks for contacting us. Could you provide us with some extra details so we can try and reproduce the issue?
Did you have a look at our React fiddle?

Thanks we will look into it

React native is not supported for now, but we are looking to support it in the future. Closing this issue for now. Thanks for your feedback.

Hi,
Please have a look at this issue:
https://github.com/dveldhoen/easyinvoice/issues/20
Perhaps it will solve your problem with react native for now.
Kind regards and happy coding!


Responsiveness Issue

I Noticed two navbar while making website responsive.

Hi @markmead Please assign me this issue, I am good in frontend and love to work on this issue.
Thank you.


Reservations

Add reservations endpoints

I don't know what happened, but I was pretty sure I added index. I already updated.


Changed 'hostname' to 'Server'

The word 'Server' is used elsewhere on RocketChat, and 'hostname' isn't intuitive for the non-technical users, whereas most can wrap their head around 'server'. Had people using their username as a hostname, that kind of silliness.

LGTM.


Update to latest version in README.md

Updated from 0.5.0 to 0.7.0 in manual git clone

Thanks for the fix!


Added Serbian (latin and cyrillic) locales

Coverage remained the same at 98.951% when pulling b94995a04490465d2658f8327d7e40beb0ac44e2 on milan-vidakovic-work:master into 18dcd7ad28663b3289cbe79a16543a7cb6f8a2f1 on charliekassel:master.

Coverage remained the same at 98.951% when pulling 63ad70f06bb9078de636fb4bafb1771d13768a10 on milan-vidakovic-work:master into 18dcd7ad28663b3289cbe79a16543a7cb6f8a2f1 on charliekassel:master.


Add API for mirroring video

gboolean mirror;

g_object_get(renderer, "mirror", &mirror, NULL);
g_object_set(renderer, "mirror", !mirror, NULL);

Fixed in https://github.com/EricssonResearch/openwebrtc-ios-sdk/pull/35


Reuse allocator.IsIngressNetworkNeeded in controlapi

Signed-off-by: Alessandro Boch<EMAIL_ADDRESS>

LGTM

LGTM


[0.2.7] LLAMA 70B AWQ OOM with TP8

Hi there,
I was testing with AWS G5.48xl machine with A10G GPU (24GB each).
llm = LLM(model="TheBloke/Llama-2-70B-AWQ, quantization='awq', dtype='half', tensor_parallel_size=8)

And This result to OOM. However, TP4 works fine with it:
llm = LLM(model="TheBloke/Llama-2-70B-AWQ, quantization='awq', dtype='half', tensor_parallel_size=4)

Not sure what could be the cause, since more GPUs should have more memory bandwidth
Logs
WARN  PyProcess W-252-model-stderr: 2024-02-13 20:43:43,457     ERROR worker.py:405 -- Unhandled error (suppress with 'RAY_IGNORE_UNHANDLED_ERRORS=1'): ray::RayWorkerVllm.execute_method() (pid=10548, ip=<IP_ADDRESS>, actor_id=52763143f84a75fbe7e8dca001000000, repr=<vllm.engine.ray_utils.RayWorkerVllm object at 0x7fdc6d0e6d10>)
WARN  PyProcess W-252-model-stderr:   File "/usr/local/lib/python3.10/dist-packages/vllm/engine/ray_utils.py", line 30, in execute_method
WARN  PyProcess W-252-model-stderr:     return executor(*args, **kwargs)
WARN  PyProcess W-252-model-stderr:   File "/usr/local/lib/python3.10/dist-packages/vllm/worker/worker.py", line 125, in warm_up_model
WARN  PyProcess W-252-model-stderr:     self.model_runner.capture_model(self.gpu_cache)
WARN  PyProcess W-252-model-stderr:   File "/usr/local/lib/python3.10/dist-packages/torch/utils/_contextlib.py", line 115, in decorate_context
WARN  PyProcess W-252-model-stderr:     return func(*args, **kwargs)
WARN  PyProcess W-252-model-stderr:   File "/usr/local/lib/python3.10/dist-packages/vllm/worker/model_runner.py", line 534, in capture_model
WARN  PyProcess W-252-model-stderr:     graph_runner.capture(
WARN  PyProcess W-252-model-stderr:   File "/usr/local/lib/python3.10/dist-packages/vllm/worker/model_runner.py", line 580, in capture
WARN  PyProcess W-252-model-stderr:     with torch.cuda.graph(self.graph, pool=memory_pool):
WARN  PyProcess W-252-model-stderr:   File "/usr/local/lib/python3.10/dist-packages/torch/cuda/graphs.py", line 197, in __exit__
WARN  PyProcess W-252-model-stderr:     self.cuda_graph.capture_end()
WARN  PyProcess W-252-model-stderr:   File "/usr/local/lib/python3.10/dist-packages/torch/cuda/graphs.py", line 88, in capture_end
WARN  PyProcess W-252-model-stderr:     super().capture_end()
WARN  PyProcess W-252-model-stderr: RuntimeError: CUDA error: out of memory
WARN  PyProcess W-252-model-stderr: CUDA kernel errors might be asynchronously reported at some other API call, so the stacktrace below might be incorrect.
WARN  PyProcess W-252-model-stderr: For debugging consider passing CUDA_LAUNCH_BLOCKING=1.
WARN  PyProcess W-252-model-stderr: Compile with `TORCH_USE_CUDA_DSA` to enable device-side assertions.

Closing as stale, if you still have this issue on the latest version of vLLM we can re-open the issue.


Typo

Connot should be Connor
https://github.com/ConnorRigby/connorrigby/blame/main/content/posts/iex-in-a-box.md#L4

Fixed, thanks!


xlri domain added

xlri.ac.in domain added

@abin-xlri First stage of verification passed, official domain for Xavier School of Management is xlri.ac.in as far as I verified. This is just an informational note. Pull request is still in the review. I appreciate your patience while waiting for the final decision.

@abin-xlri Thank you for your patience while waiting for a review and processing your request. Pull request merged.
Please start requesting the licenses in about an hour, to let the changes to propagate through our system.


Cannot find HtmlTemplate.html (v2.4.9)

PS U:\Teams> U:\Teams\M365CallFlowVisualizerV2.ps1 -VoiceAppName 'TEST - Reception' -VoiceAppType 'Auto Attendant'
Getting call flow for: TEST - Reception
Voice App Id: 8cf8cce2-8685-464c-9790-713a444c64ba
WARNING:  Distribution Lists or Users are added to callqueue but there are no eligible agents.
WARNING:  Distribution Lists or Users are added to callqueue but there are no eligible agents.
WARNING:  Distribution Lists or Users are added to callqueue but there are no eligible agents.
WARNING:  Distribution Lists or Users are added to callqueue but there are no eligible agents.
WARNING:  Distribution Lists or Users are added to callqueue but there are no eligible agents.
WARNING:  No Distribution Lists or Users added to callqueue. There will be no agents to call.
WARNING:  No Distribution Lists or Users added to callqueue. There will be no agents to call.
WARNING:  No Distribution Lists or Users added to callqueue. There will be no agents to call.
WARNING:  Distribution Lists or Users are added to callqueue but there are no eligible agents.
WARNING:  Distribution Lists or Users are added to callqueue but there are no eligible agents.
WARNING:  Distribution Lists or Users are added to callqueue but there are no eligible agents.
WARNING:  Distribution Lists or Users are added to callqueue but there are no eligible agents.
WARNING:  Distribution Lists or Users are added to callqueue but there are no eligible agents.
WARNING:  No Distribution Lists or Users added to callqueue. There will be no agents to call.
WARNING:  No Distribution Lists or Users added to callqueue. There will be no agents to call.
WARNING:  No Distribution Lists or Users added to callqueue. There will be no agents to call.
WARNING:  Distribution Lists or Users are added to callqueue but there are no eligible agents.
WARNING:  Distribution Lists or Users are added to callqueue but there are no eligible agents.
Getting call flow for: TEST - Reception
Voice App Id: 3e114536-cdff-4361-8ca4-64c93c94f011
WARNING:  Distribution Lists or Users are added to callqueue but there are no eligible agents.
WARNING:  Distribution Lists or Users are added to callqueue but there are no eligible agents.
WARNING:  Distribution Lists or Users are added to callqueue but there are no eligible agents.
WARNING:  Distribution Lists or Users are added to callqueue but there are no eligible agents.
WARNING:  Distribution Lists or Users are added to callqueue but there are no eligible agents.
WARNING:  No Distribution Lists or Users added to callqueue. There will be no agents to call.
WARNING:  No Distribution Lists or Users added to callqueue. There will be no agents to call.
WARNING:  No Distribution Lists or Users added to callqueue. There will be no agents to call.
WARNING:  Distribution Lists or Users are added to callqueue but there are no eligible agents.
WARNING:  Distribution Lists or Users are added to callqueue but there are no eligible agents.
WARNING:  Distribution Lists or Users are added to callqueue but there are no eligible agents.
WARNING:  Distribution Lists or Users are added to callqueue but there are no eligible agents.
WARNING:  Distribution Lists or Users are added to callqueue but there are no eligible agents.
WARNING:  No Distribution Lists or Users added to callqueue. There will be no agents to call.
WARNING:  No Distribution Lists or Users added to callqueue. There will be no agents to call.
WARNING:  No Distribution Lists or Users added to callqueue. There will be no agents to call.
**Get-Content : Cannot find path 'U:\Teams\HtmlTemplate.html' because it does not exist.
At U:\Teams\M365CallFlowVisualizerV2.ps1:2832 char:19

$HtmlOutput = Get-Content -Path .\HtmlTemplate.html | Out-String

              ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

CategoryInfo          : ObjectNotFound: (U:\Teams\HtmlTemplate.html:String) [Get-Content], ItemNotFoundException
FullyQualifiedErrorId : PathNotFound,Microsoft.PowerShell.Commands.GetContentCommand**

ignore, am being stupid.
copied from here: https://raw.githubusercontent.com/mozziemozz/M365CallFlowVisualizer/main/HtmlTemplate.html


Fix delay when quitting Vienna

When quitting Vienna a beachball will appear and Vienna takes a few seconds to quit.
Need to investigate cause.

This delay appears to be from [Database isTrashEmpty] being called when terminating the application.

How about adding an index on messages (deleted_flag) ?

I have done some testing on a massive database. I placed signposts in Database's -purgeDeletedArticles method. The database took 1,38 seconds to complete the SQLite DELETE statement, 28,19 seconds to complete VACUUM and less than a second to clear the cache (Folder -clearCache).
I looked into solutions and found that SQLite supports auto-vacuum mode, that reclaims space upon DELETE statements. Here I found that on the same database (backed up before to replicate the results), the DELETE statement took 2,66 seconds and reduced the space by almost the same amount as DELETE and VACUUM combined did, without requiring a VACUUM just to empty Trash.
Some downsides:

Enabling auto-vacuum requires a manual VACUUM to rebuild the database with that setting enabled (can be acceptable if done as part of a database migration). For new users, it can be enabled upon database creation.
The documentation states that auto-vacuum can result in less-efficient use of paging and worse fragmentation, without explaining what the results can be. This might be mitigated by letting the user call VACUUM manually to address any issues (similar to database reindexation).
It is not clear to me whether auto-vacuum has performance penalties in other database operations. A mitigation might be incremental mode rather than full mode and call PRAGMA incremental_vacuum on specific statements (e.g. DELETE).

I did some testing of my own using os_signpost and came across the following results: purgeDeletedArticles overall took about 30 seconds to complete; 1,38 seconds of which for the DELETE statement, 28,19 seconds for the VACUUM statement and less than a second for cache removal (Folder -clearCache). I performed the test on a test database with 353.156 messages, 52.443 of which were marked as deleted. The result was a space reduction from 1,44 GB to 1,29 GB.
I did some reading on the VACUUM statement and found this blog post insightful. VACUUM is an expensive operation, both in terms of space usage and time to complete, while Vienna is completely unresponsive. Based on the blog post, there is no easy way around the fact that VACUUM has to lock the entire database for its duration and that it cannot do it in chunks, meaning that putting this into a background queue will not be possible.
It appears that SQLite supports a auto_vacuum mode that reclaims space immediately (like reference counting is to garbage collection). This mode either does it automatically using the full mode, or semi-automatically using the incremental mode. I found that on the test database (a pristine copy) the DELETE statement took about 2,66 seconds and managed to reduce the space to 1,29 GB as well, without using VACUUM. This means that this change alone can improve the performance significantly, while giving some of the benefits of VACUUM at the same time.
There are some downsides:

auto_vacuum can lead to increased page usage. I suppose this means that space usage might become less efficient and cause performance penalties. However, I have not come across any concrete downsides to this. These problems can be resolved by using VACUUM, maybe as an option to the user.
The auto_vacuum flag has to be set upon table creation or before a VACUUM operation. For existing databases, there is no quick transition. This can be done as part of a database migration.
It is not clear to me, whether auto_vacuum = FULL has performance penalties on other database operations. The mode auto_vacuum = INCREMENTAL gives more control, but requires a PRAGMA incremental_vacuum statement to work.

I have a test implementation at https://github.com/Eitot/Vienna/tree/database.


Better error handling when failing to connect

When there is a stale 'port' file left in .ensime_cache, ensime-atom silently fails to connect (only an error message in the dev tools console).
Might be nice to at least show an error message and perhaps even try starting ensime anyway.

Do you have any idea why that stale port file was left in the first place?
That was the first issue I ran into with ensime-atom, but I thought it was my fault it at the time.

I might have kill -9'ed it (I had an ensime process run wild earlier), or it might have happened when my laptop ran out of power. So probably not ensime-atom related - but I'll keep an eye out.

Hi, I've had the same issue here, my laptop is freezing regularly and frequently have stale port and http ports.


How to achieve two drop-down box linkage

Maybe this? https://github.com/LLK/scratch-gui/blob/develop/src/lib/blocks.js#L214


ctx.request.body.fields  and ctx.request.body.files in koa-router.js both undefined

Promblem/Feature Request Summary

I run npm run examples-koa-router and upload a picture , the terminal console log undefined from ctx.request.body.fields and  ctx.request.body.files
but the annotation is what i want , is this a bug??
Environment Information

koa-body: "^7.0.1"
Koa: "^2.0.0"
Node.js: 8.11.1

Current Behavior

Steps to Reproduce

Expected Behavior

Possible Solution

Context (Environment)

I updated the example to be compatible with koa-body v3 changes. Please let me know if this answers your question.


Add Jiahaoc as the project OWNER

Signed-off-by: jiahaoc<EMAIL_ADDRESS>

User is not a member of the org. User is not a collaborator. Satisfy at least one of these conditions to make the user trusted.

Sorry you need to be the member first.

/lgtm
/approve

/verify-owners


Show empty group when all properties are hidden

Describe the bug

Steps to reproduce

Go to deploy-source-code template detail page.
Check the UI schema preview.

Result

There is an empty Basic group.

Check the UI schema. The property of basic group is hidden.

components:
  schemas:
    variables:
      properties:
        context:
          additionalProperties:
            type: object
          default: {}
          description: >
            Receive contextual information. When Walrus deploys, Walrus will
            inject specific contextual information into this field.

            Examples:

            ```

            context:
              project:
                name: string
                id: string
              environment:
                name: string
                id: string
              resource:
                name: string
                id: string
            ```
          title: Context
          type: object
          x-walrus-ui:
            colSpan: 12
            group: Basic
            hidden: true
            order: 23

Expected behavior

Do not show the group if all properties are hidden.
Environment

Walrus version: f94d57de903a925f2bd72d34b5aa1eaf8213f6ad
UI version: dev-ab43587

Additional context
Add any other context about the problem here.

@aiwantaozi Can we remove the basic group in the schema?

Update schema of ports & envvars properties to make it look better

The Order does not work as expected.
UI version: https://github.com/seal-io/walrus-ui/commit/26a7d60d9ee093b2050c2501bb42822034a908d8

Update the ports's colSpan to 6 and update the environment colSpan to 6, still the same image as above, the span and order not work as expected.
UI version: https://github.com/seal-io/walrus-ui/commit/6b316d39797a9bb76af6eec65d28de85e76be1dd

Env:  UI dev-8067cc7
Test Result: PASS
Case of former: PASS

Order. Rendered as expected.

Span.  When colSpan is set. The UI rendered as expected width. When span is empty is it rendered to 6.

Case 2: PASS
In template detail page edit UI schema, change replicas colSpan to 12 and  order to 30, it goes from first to last.


"DiagnosticPreprocessor"?

Pulling out a comment from @tacaswell's review of #720:

🚲 🏘 'diagnostic preprocessor' sounds like a tool you reach for when things are broken, not day-to-day operations.
housekeeping
standard
background
bookkeeping
moosefish
actuarial
status
health
checkup
tuneup

Sure, it would be painless to change because it hasn't been released yet. I'm not particularly fond of "DiagnosticPreprocessor" but none of these suggestions jump out at me either. Tom, if I'm remembering right, you originally defended this name because these readings are often used for QA / sanity checks.

@tacaswell and I are both happy with the name Background. I'll pull the trigger on this tomorrow unless anyone objects, to get the name in place before we release. This seems reasonably readable to me:
from bluesky import Background
bg = Background()
RE.preprocessors.append(bg)
bg.monitors = []

Seems fine to me.  Is it worth informally polling a couple of beamline folks ?

Good idea, @stuartcampbell. I sent an email.

There is consensus that the name 'Background' is problematic. E.g.:

Background is a reserve word for our world utilized many places for all the detectors or monitors.

Alternative suggestions I have received so far:

SamMemo ("sample memo")
Com_mon ("common monitors")

This feature is not really sample-related, so I worry that SamMemo is misleading. But I think we could work with "common": this object specifies measurements common to all plans executed by this RunEngine.
Maybe:
from bluesky import Common
common = Common()
common.monitors.append(det1)
common.baseline.append(det2)

Is Common to general of a name? I think common.monitors and common.baseline work nicely.

Can you describe, in a few simple terms, what exactly this should do?  A
clear name should emerge from that process.  The proposed names do not help
me to use this.
On Aug 13, 2017 6:46 PM, "Dan Allan"<EMAIL_ADDRESS>wrote:

There is consensus that the name 'Background' is problematic. E.g.:
Background is a reserve word for our world utilized many places for all
the detectors or monitors.
Alternative suggestions I have received so far:

SamMemo ("sample memo")
Com_mon ("common monitors")

This feature is not really sample-related, so I worry that SamMemo is
misleading. But I think we could work with "common": this object specifies
measurements common to all plans executed by this RunEngine.
Maybe:
from bluesky import Common
common = Common()
common.monitors.append(det1)
common.baseline.append(det2)
Is Common to general of a name? I think common.monitors and
common.baseline work nicely.
—
You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub
https://github.com/NSLS-II/bluesky/issues/736#issuecomment-322075140,
or mute the thread
https://github.com/notifications/unsubscribe-auth/ACLKMM_XDK95k38GKv95XCf9wJIdlot0ks5sX4rAgaJpZM4OzHiU
.

Good suggestion.
The new feature is documented in this section under that provisional name DiagnosticPreprocessor, which I think we generally agree does not help people understand what it is for.
Briefly, the object provides users with a simple way to (1) take baseline readings before and after each run, (2) monitor extra signals during a run, (3) "fly" flyable devices during a run.
To explain the implementation and the motivation a bit more: The object is a plan preprocessor -- a plan that takes in other plans and modifies them. Currently, using plan preprocessors involves messing with nested generators. These are powerful, and they feel like a correct low-level abstraction for this feature, but they are neither simple to explain nor convenient to use interactively. This new object is a plan preprocessor with state, enabling users to easily make changes in one place that affect all plans they will execute, which seems to be the most common usage.

with no imagination whatsoever (and strong influence from names in the Java world): PlanPreprocessorWithState
It's bulky but direct.

That is too generic, this is applying a specific set of pre-processors (each of which are available as either a *_wrapper or *_decorator already) to every plan that goes through the RE.
We need a name that makes your typical beam line scientist think of:

Briefly, the object provides users with a simple way to (1) take baseline readings before and after each run, (2) monitor extra signals during a run, (3) "fly" flyable devices during a run.

more like this?  PreprocessorSupplementalData or SetupSupplementalData

I like SupplementalData!

worksforme

FWIW I really like SupplementalData also!


Interface with buzzer

Work out where it will fit on the board.

2.2k ohm resistor works well - as loud as with a 1k, but 1/2 the current


Offline access for tagging sensitive data

Apologies for my lack of expertise in this matter. I am interested in using Label Studio to annotate sensitive data privately. After installing Label Studio on our local machine, I noticed that it requires an internet connection for authentication and continuously sends data to the labelstud.io server. I'm concerned about the security of our private data and want to ensure that it does not get leaked to the internet during this process.
I would like to know if it is possible to run a fully private instance of Label Studio that operates self-contained without any internet connection. Any insights or guidance on this matter would be greatly appreciated. Thank you!

+1, installed recently and its a great tool, but noticed a lot the frontend clicks get tracked (ublock fixed this) and am concerned what the back end then shares.
Is there a flag for disabling sentry.io all together?

So it looks like collect_analytics has to be set to false in the environment
https://github.com/HumanSignal/label-studio/blob/15c46d268f24107153ce27cb0f22a3f789ddbf48/label_studio/core/utils/contextlog.py#L191C1-L193
But It looks like if collect_analytics isn't set to false every request send to the backend is then logged of through the core.middleware.ContextLogMiddleware to the remote server?

you also can set strict csp rules + backend firewall policies to avoid external communication

Firewall rules are good but I'd also like to have it disabled all together, reduces the false positives pings. The frontend leaks a fair amount of information as well as it isn't sent via the server its sent directly to sentry. Here's the main places I found it can "phone home";

Backend ContextLogger (appears to be controllable by env variable collect_analytics
Frontend google tag manager (not controllable by env)
Sentry (not controllable by env, cant tell if this is only frontend theres a class for it on the backend)

Did I miss any?
Would a patch be accepted to control the frontend analytics (googletagmanager, sentry) with another env variable? Or perhaps just re-using collect_analytics to also disable these cases?
Is there any more analytics I should be aware off

@turtle0x1 that's why i mentioned CSP. You can set strict CSP (allow only self and explicit list of domain) so the browser won't send anything to 3rd party website.
The main problem with disabling it manually one by one, it doesn't protect from future "loggers".

Hello,
You can set collect_analytics=0 and that will stop with collecting on everything. Does this help?

Hello guys,
So it seems that we can't disable telemetry from Label Studio frontend at all? Env variables like collect_analytics=0 only work for backend, but each click on webpage spawns like 2 requests to public Sentry from our private network. Each click!
I think that it's not very nice to hide such behaviour from your users in open-source library. I don't think that it's even documented.
Is it possible for you to make telemetry optional? Or we need to fork the project and remove initSentry lines by our own? Thanks ✌

Is this still the case that the FE will collect telemetry?

No, frontend doesn't collect telemetry. Also if you use collect_analytics=0, nothing is collected.

Sentry is used for logging of error exceptions only.

I have the following overriding the Helm chart, and have confirmed the values are being set on the ls-app Kubernetes pod:
global:
  extraEnvironmentVars:
    collect_analytics: "False"
    SENTRY_RATE: "0"
    SENTRY_DSN: ""
    FRONTEND_SENTRY_DSN: ""

With these values set, external traffic is still observed to an IP address that points to an AWS instance. I've also tried setting collect_analytics to "0" with the same result.
If I pass " " or "None" to SENTRY_DSN and FRONTEND_SENTRY_DSN instead, the init container db_migrations crashes from the Sentry SDK library with:
sentry_sdk.utils.BadDsn: Unsupported scheme ''

To follow-up, I'm seeing traffic to the following IPs with the above settings, I'm assuming this is tele.labelstud.io as the IPs resolve to an AWS compute cluster.

For sentry there appears to be no configuration option to disable it or use a different sentry configuration.
https://github.com/HumanSignal/label-studio/blob/066f74b2872b69b5285fc7ae735ed9192865ba1b/web/apps/labelstudio/src/app/App.jsx#L38
https://github.com/HumanSignal/label-studio/blob/develop/web/apps/labelstudio/src/config/Sentry.ts#L7
To disable Sentry a potential solution is to create a new setting in APP_SETTINGS or an environment variable to disable this feature.
Note in this configuration data like users email and username are passed to label studio which may not be desired for everyone
tele.labelstud.io is referenced in https://github.com/HumanSignal/label-studio/blob/develop/label_studio/core/utils/contextlog.py#L311
Which is loaded as part of the middle ware in https://github.com/HumanSignal/label-studio/blob/066f74b2872b69b5285fc7ae735ed9192865ba1b/label_studio/core/settings/base.py#L242
In theory if you are in dire need to disable this tracking you could comment out much of this code at it appears if the application would work fine.

I've figured out why setting collect_analytics in Helm wasn't working, and raised the above bug report. I've raised a PR to fix: https://github.com/HumanSignal/label-studio/pull/5788

The PR is merged. It will be available starting form LS 1.13. Right now you can use the develop branch.


[TFLite] Fix Android build with CMake

This PR addresses the following issue.
Changes summary

Sources in core/async/interop/c, delegates/utils, async are added to build
libandroid is added to dependencies

Hi @GoldFeniks Can you please sign CLA. Thank you!

Hi @alankelly Can you please review this PR ? Thank you!

Hi @alankelly Can you please review this PR ? Thank you!

Hi @alankelly Can you please review this PR ? Thank you!

Hi @alankelly Can you please review this PR ? Thank you!

Hi @alankelly Can you please review this PR ? Thank you!

@gbaned I no longer work on TFLite. Please assign to someone else.

Hi @yishuangP Can you please review this PR? Thank you!

Hi @yishuangP Can you please review this PR? Thank you!

Hi @yishuangP Can you please review this PR? Thank you!

Hi @yishuangP, Can you please review this PR? Thank you!

Hi @yishuangP, Can you please review this PR? Thank you!

Hi @yishuangP, Can you please review this PR? Thank you!

Hi @yishuangP, Can you please review this PR? Thank you!

Hi @yishuangP, Can you please review this PR? Thank you!

Hi @yishuangP, Can you please review this PR? Thank you!

Hi @yishuangP, Can you please review this PR? Thank you!

Hi @yishuangP, Can you please review this PR? Thank you!


Update cup_finals.txt

Updated brackets

@pratul-nayak  Again let me know if you're interested in helping to keep the world cup update-to-date you're more than welcome to join the openfootball org (if you're interested please let me now and I  send you an invite for the org (via github) so you can edit /change the page "inline" without pull request etc.  Cheers. Keep it up. Enjoy the beautiful game.

@geraldb Thanks. Please do send me the invite. I will try to keep the data up to date.

@pratul-nayak Great. Welcome.  Note: You will get an invitation (by email from GitHub) to join the openfootball org as a member. If you accept, you can update the worldcup pages in your browser  - no longer any need for a pull request - and you will show up in the people page too (if you set your preference to public - default is private; change the setting in the github org people page).