"Right/Left click to leave job" in the GUI menu

Description of new idea or improvement on existing one
I would suggest to replace "Right/Left click to join job" in job GUI menu with "Right/Left click to leave job" depending on whether a person joined selected job or not.

https://github.com/Zrips/Jobs/commit/1513e32afcfe77fd70a1f5d3aa2672e46e4e112a


VendorInterface model and db table: add processing_options field

Closes #430
The new field will be used by #411 to add additional processing information to vendor interfaces (e.g. copy marc 505 to 905)

Do we want this to be JSONB instead of text?

Do we want this to be JSONB instead of text?

Good idea.

@aaron-collier so we're wondering

should this field be JSON?
whether we care about JSONB ... will we want to query this field?
how sqlalchemy will handle database field types - it "seems" to be ok with JSON per https://docs.sqlalchemy.org/en/20/core/types.html ... but
how we should test how the field type is working ... without having specific requirements of what JSON needs to go in the field, and more info on how it will be utilized (e.g. before other marc tranforms?   after?  instead of?   in which DAG?  etc.)
whether there are implications that our test database should be postgres, in case there are differences in how JSON is handled between postgres and sqllite

etc.

I added on to this PR to add the move MARC fields task to the default data processor dag.

I'm not clear if moving marc fields will always occur before other marc processing, or always occur after, or sometimes before and sometimes after.  If it's consistent then presumably this PR puts it in the right spot in the DAG.

I'm unaware of any cases in which the order matters; if we encounter such a case, we can reconsider.


Multiple accounts support

Just as for Matrix-Console

duplicate of https://github.com/vector-im/vector-android/issues/120


fix link to JSON merge patch

The link was pointing falsely to the JSON patch RFC.

Putting another comment to kick-off the CLA process.

/lgtm
/approve


Typo in Chapter09/linux_time_01.cpp

https://github.com/PacktPublishing/C-System-Programming-Cookbook/blob/master/Chapter09/linux_time_01.cpp
It doesn't matter where you put the ' characters but it is better to group by 3
100'000'0000 == 1'000'000'000

thanks for your comment.
Representing the number as you do will "make me think" about what number it is. If you look at the number on the right you almost immediately say: 1 billion, right?
readability is one of the most important aspects when writing code (among others, of course).

absolutely agree. "Don't make me think" principle!
thanks


(Re)Add NATIVE_TOOLKIT_STATIC_ANGLE switch to allow the angle library to be statically linked

Restablish
https://github.com/native-toolkit/sdl/commit/a78c07dc1f85019261f13ebc3177cb1b144c98e4
on newer SDL version

This seems like a patch for SDL @hughsando, why are we modifying the lib code directly? What platform needs this?

@underscorediscovery @hughsando @jgranick It seems to be a good contribution to SDL since you can get rid of the DLLs.  I think that this only works with "Visual Studio 2015 Update 3"+? Anyway, I can send them the patch through their bugzilla if there are no objections (with a different flag name, SDL_VIDEO__STATIC_ANGLE?). It would take a long time to get to the official release.
For winrt it is very convenient since you can be sure that everything is compiled using your Windows SDK version. I got winrt working on NME and I would be glad to see it working on Lime, Snow and others as well. Thanks 😄

I think sending it to SDL in their normal process is a good idea either way (including maybe the note about the motivation/reason). We definitely (as a general rule) try not to modify the libraries that native-toolkit provides easy access to.
Also since we use tags for versioning here, we often can and do use hg revisions of SDL, so as soon as they have it in tree it could be available here without much trouble.

So what is the decision here? Wait for SDL?
Maybe we should create a "static-angle" branch which can disappear when we get upstream support.

I have added this to a "nme" branch, and updated the nme-toolkit sub-modules to point to this, so if you update that repo, you should get the latest versions.
I'm re-working my build-servers at the moment, but I will get a haxelib release soon.

@hughsando  As you can see from the mirror bots, this was added by Sam (the name of the flag is SDL_VIDEO_STATIC_ANGLE)

I guess this means I should switch the nme-toolkit submodule back to the master branch soon.

I just noticed that the official SDL 2.0.6 release included this flag (SDL_VIDEO_STATIC_ANGLE)


Update versions.mk

Added Spotfire version 12.5.0 that is the most recent in edelivery.tibco.com

Thanks for your contribution and excuse us for the late response.
See release 1.5.0 where support for these versions were added and release [2.4.0](Release v2.4.0 updated to appVersion=14.4.0 / 1.21.0.


The Music Bot stays online no mater what I do

Please tick all applicable boxes.

[ ] I am using Python 3.5.3 or higher (run python --version on the command line)
[ ] I have followed the official guides to install the bot for my system
[ ] I have updated my dependencies to the latest version using the appropriate update script

Which version are you using?

[ ] The latest master version (release-260419)
[ ] The latest review version

What type of issue are you creating?

[x ] Bug
[ ] Feature request
[ ] Question

Description of issue
so I summon it and it goes offline then I summon again and it still goes offline and I tried update and else but it still didn't worked
Steps to reproduce

Log file
Please attach your MusicBot log file (located at logs/musicbot.log) to this issue. You can do so by dragging and dropping the file here. If you do not include your log file, you WILL be asked to provide one.
musicbot.log

I started my bot, but there's and error!
new() got an unexpected keyword argument: 'deny_new'
If you are on windows, simply do py -m pip install -U discord.py[voice] and that should fix it.
If you are on linux or mac os, do pythonx.x -m pip install -U discord.py[voice] and replace x.x with your python version, for example python3.7 and your error should be gone aswell.
You can also change the requirements.txt file so that it looks like this:
pynacl==1.4.0
discord.py[voice]==1.4.1
pip
youtube_dl
colorlog
Then run update.bat (If you're on windows, if not chose the appropriate update file for your system OS) once it's all up to date, then do run.bat (Same note as before). Please make sure to press n when asked if you'd like to reset files then y when asked if you'd still like to update dependencies.

Okay that worked but when I want to make it do this
!play (and the link here)
it comes up with error  Unable to extract JS player URL

Restart your device
Op vr 30 okt. 2020 01:18 schreef BALVEY7<EMAIL_ADDRESS>
Okay that worked but when I want to make it do this
!play (and the link here)
it comes up with error Unable to extract JS player URL
—
You are receiving this because you commented.
Reply to this email directly, view it on GitHub
https://github.com/Just-Some-Bots/MusicBot/issues/2158#issuecomment-719096234,
or unsubscribe
https://github.com/notifications/unsubscribe-auth/AQIBBARTWK6RXJB3D277FD3SNIA6PANCNFSM4TEKPAYQ
.

I have the exact same issue, it seems to be youtube-dl related.
[ERROR:bot] Error in play: CommandError: Error extracting info from search string, youtubedl returned no data. You may need to restart the bot if this continues to happen. Traceback (most recent call last):   File "/home/pi/MusicBot/musicbot/bot.py", line 2813, in on_message     response = await handler(**handler_kwargs)   File "/home/pi/MusicBot/musicbot/bot.py", line 1457, in cmd_play     "You may need to restart the bot if this continues to happen."), expire_in=30 musicbot.exceptions.CommandError: Error extracting info from search string, youtubedl returned no data. You may need to restart the bot if this continues to happen.


Exception on drop node

Hello, after i updated the component to the latest version, i saw an exception when i drop a node over another using @dropValidator.
The exception:
TypeError: Cannot read property 'then' of undefined     at Proxy.onDropNode (:8890/static/js/webpack:/aipex-5/node_modules/vue3-tree-vue/dist/vue3-tree-vue.esm.js:253)     at fn (:8890/static/js/webpack:/aipex-5/node_modules/vue3-tree-vue/dist/vue3-tree-vue.esm.js:432)     at fn (:8890/static/js/webpack:/aipex-5/node_modules/@vue/runtime-dom/dist/runtime-dom.esm-bundler.js:1705)     at callWithErrorHandling (:8890/static/js/webpack:/aipex-5/node_modules/@vue/runtime-core/dist/runtime-core.esm-bundler.js:199)     at callWithAsyncErrorHandling (:8890/static/js/webpack:/aipex-5/node_modules/@vue/runtime-core/dist/runtime-core.esm-bundler.js:206)     at HTMLDivElement.r (:8890/static/js/webpack:/aipex-5/node_modules/@vue/runtime-dom/dist/runtime-dom.esm-bundler.js:729)

Can you please share a snippet of what your component looks like? I am interested in the onDropValidator callback.

Hello, this is how i am using it:  <vue3-tree-vue :items="items" :isCheckable="false" :hideGuideLines="false" v-model:selectedItem="device" @onSelect="getSelectedNode" @dropValidator="copy"> <template v-slot:item-expander="treeViewItem"> </template> </vue3-tree-vue> methods: { copy(sourceDevice, destinationDevice) { ... } }

@st1nkata9 can you try making your copy method a method that returns a promise?
Like this
methods: {
  copy(sourceDevice, destinationDevice) {
    return new Promise((resolve, _) => {
      resolve(sourceDevice !== destinationDevice) // Replace this logic with your logic.
    });
  }
}

The dropValidator was created with that vision that it will support async operations.

@geekhybrid Hi, i made it and now there is no exception. Thank you! :)


[Bug] MediaElement bugs when 'IsLoop' is set to true

Description
When MediaElement's "IsLoop" is set to "True":

[iOS] The MediaElement's "speed" (hardcoded to the xaml) is reset to 1 after the 1st iteration (which played at the wanted speed) is over.
[iOS] Looping just stops after a while when several instances of MediaElement are running.
[Android] Media controls are showing even though 'ShowsPlaybackControls' is set to "False".

Stack Trace
NaN
Link to Reproduction Sample

Steps to Reproduce

Set both 'IsLoop=True' and a speed(<1 and >0)
Play video on iOS device with iOS version >= 16
Video\s would reset speed after first iteration is over

Expected Behavior
Speed will stay the same after first "loop"
Actual Behavior
Speed changes
Basic Information
On iOS: I believe this happens due to the usage of 'avPlayerViewController.Player?.Play()' instead of the renderer's Play() method  (note that 'Play()' redefines the speed each time)

Version with issue: Latest (2.0.6)

Last known good version:

IDE:
Visual studio community 2022 (64-bit) Version 17.8.5

Platform Target Frameworks: iOS Android

iOS:  Xcode 15.1 15C65
Android: 13.0
UWP:  X

Android Support Library Version: X

Nuget Packages: X

Affected Devices:

Android: galaxy-s20
iOS: Simulator, iphone-se(2020), iPad

Workaround
All bugs dissapeared when setting "IsLoop" to "False" and then using an event handler for 'MediaEnded' event to run MediaElement.Play();
Reproduction imagery
X

as written - Android 13.
No... I've joined a project and xamls are both huge and confidential.  Sorry.

I tested IsLoop=True on an Android Emulator with Android 13.0 and I don't ecounter the error.
Can you test on other devices/emulators to better understand the casistics?


Was anyone able to setup it on Preact.js, which uses Vite.js

I tried everything I was able to do but no clue, it didn't worked.
my tailwind config file
/** @type {import('tailwindcss').Config} */
module.exports = {
  darkMode: "class",
  plugins: [require('nightwind')],
  content: ["./src/**/*.{js,ts,jsx,tsx}"],
  theme: {
    extend: {},
  },
  plugins: [],
};

and I added the purejavascript to the vite's index.html
<!doctype html>

  <meta charset="UTF-8" />
  <link rel="icon" type="image/svg+xml" href="/vite.svg" />
  <meta name="viewport" content="width=device-width, initial-scale=1.0" />

  <title>Vite + Preact</title>

the functions from the console returns undefined

Firstly, you declared the plugins array twice in your config so not sure what that's going to do.
I had a similar situation setting this up with Svelte. The Vite setup for Tailwind includes PostCSS which strips all CSS that is not present in your HTML and since you have no dark classes in the HTML the resulting CSS file will have no classes for you. This is serious problem for something like Nightwind since it dynamically sets classes based on the mode you toggle to and the build CSS will not have these "opposite" classes.
I could only get this to work when disabling PostCSS and using the unprocessed Tailwind CSS file. If there is a way to still use Nightwind and PostCSS together please let us know...

@brutaldev thanks for your help


Add Output Format CycloneDX for integration with Dependency-Track

Is your feature request related to a problem? Please describe.
Early versions of dependency-track were able to import output of dependency-check. However, the import capability has been removed from dependency-track some time ago. It would be beneficial for e.g. monitoring released software for new vulnerabilities, if the output of dependency-check could be fed into dependency-track, so that the as-built state of the software can be preserved, while new vulnerabilities can be highlighted without requiring another scan.
Describe the solution you'd like
Add support for output in CycloneDX2.0 format to dependency-check. All required information seems to be included in the XML output, and applying an XSLT stylesheet to the XML output will create CycloneDX2.0 compatible XML files that can be used with dependency-track.
Describe alternatives you've considered
Rescanning builds for vulnerabilities when delivered to production is time and resource consuming. If multiple projects are involved, it becomes difficult to get an overview of scan results with dependency-check alone. Dependency-Track solves this issue.
Additional context
GIST with conversion XSLT stylesheet here: https://gist.github.com/gl-mc/9f530efb217a65e3581055d575f95f9f

More than happy to accept a PR.


IOS Failes to decrypt VB.net String

Dear
first i would like to than you about your great cryptlib
But i'm using it in android and swift
in android i managed to decrypt the string returned from the server successfully
but in IOS it keeps giving me errors or strange output data like :
ÄÄ¾IßþÑÔ×Q0•‹z•lz·'ù\u{0E} ¤*]9\u{15}ï!EF\nëåt<NxýaI\u{1D}‘\u{03} N3\u{07}½lô·÷=\u{1D}?ì\u{05}ÂòÅ·#Ñèâ\u{05}’=0Ñ<‰á\u{1D}\t\u{1E}!»>k/t\rÄ\u{07}K{-êg&ZÓ?\0o¸\u{06}ˆ)ŸÝSX7ÜF\u{0F}]€[ïÎX-‰TÌœâ]¿ü.‚\nS\u{19}ÂN3!\u{15}\u{10}Ðš¥ÍQUö„›'Ï~N\u{0E}€‚F;»ª:sÿÒZ°óD:¿\u{19}\u{1A}†ŽvL
here is an example to try to decrypt
IV = 509+QAilldg3dj3p
key string "sha256" = 2c8bc04829771e56a064e192425f0f98
Encrypted text =
LbA/hK1DfsyqvwPKuyvKH90cFh6u6WfUBvFgv7XLtjNB4s++iJFSdLbAAIYLsFwh4HpZLzWMA5VCZTNwPUztvflIdTfyZ99y9B6Il+KHUKWNsgSlw6WgPw9ZGy+3zpZkaYmI8KkJj9hudeiCODxknXIJ26hkfjbAl9BRJg2GHyNKN1or+DR82Gxtfx6srbHS1jV/vItcZEOKRdaWzdRhGZ1HwYOD5cVg6xdt8Gts3dU=
Can you please help me because i'm frustrated and i failed to decode it using all samples in we
this string is returned from VB.net service
Regards

I'm facing similar issues. Did you find the solution to this?

@tarakinsuide processed in VB.net?

Hi,
Sorry, it's not about .NET
I'm encrypting on NodeJS and trying to decrypt on iOS using the examples given in your repo.
But, the output is jargon strings.
I tried few solutions given in #29 but it didn't work for me.

@tarakinsuide the library has been updated to support iOS 13. Start fresh and try this example. https://github.com/skavinvarnan/Cross-Platform-AES#javascript--nodejs--web

Hey i am using the updated iOS13 Version of the library and the decrypt function is still not working.
  let plainText = "this is my plain text"
    let key = "PBKDF2WithHmacSHA1"
    let iv = "8119745113154120"

    let cryptLib = CryptLib()

    let cipherText = cryptLib.encryptPlainText(plainText, key: key, iv: iv)
    print("cipherText \(cipherText! as String)")

    let decryptedText = cryptLib.decryptCipherText(cipherText!, key: key, iv: iv)

    print(decryptedText)

This is the output:
cipherText fcb27GSZEKusGzvEMwZuH9rFOwlfGWleDWQC4EM9x68=
decryptedText }5-sn9>)>yiu;/) text
Please help


Dledger model change into pipeline manner to improve performance

The issue tracker is ONLY used for bug report(feature request need to follow RIP process). Keep in mind, please check whether there is an existing same report before your raise a new one.
Alternately (especially if your communication is not a bug report), you can send mail to our mailing lists. We welcome any friendly suggestions, bug fixes, collaboration and other improvements.
Please ensure that your bug report is clear and that it is complete. Otherwise, we may be unable to understand it or to reproduce it, either of which would prevent us from fixing the bug. We strongly recommend the report(bug report or feature request) could include some hints as the following:
FEATURE REQUEST

Please describe the feature you are requesting.

Dledger model change into pipeline manner to improve performance

Provide any additional detail on your proposed use case for this feature.

Indicate the importance of this issue to you (blocker, must-have, should-have, nice-to-have). Are you currently using any workarounds to address this issue?

If there are some sub-tasks using -[] for each subtask and create a corresponding issue to map to the sub task:

sub-task1-issue-number: sub-task1 description here,
sub-task2-issue-number: sub-task2 description here,
...

This enhancement feature is so nice! @RongtongJin


Section 3.1.2. FAU_STG_EXT.2/LocSpace Counting lost audit data

SFR FAU_STG_EXT.2/LocSpace is referenced several times in the SD.  However SFR FAU_STG_EXT.2/LocSpace is no longer found in NDcPPv3.0. Correct if needed

Suggestions:
Change all references of "FAU_STG_EXT.2/LocSpace" in the SD to "FAU_STG_EXT.2"
Change all references of "FAU_STG_EXT.3/LocSpace" in the SD to "FAU_STG_EXT.3"

This should be covered by the fix for issue #155.


What needs to be done with result of lwp_put command in ort script

When making the lwp_put request to the Config Diffs API, the result is being taken, but nothing is being done with it.  Http error codes are checked in the lwp_put method, so that doesn't need to be done in the process_cfg_file subroutine, but is there anything else that should be done with this?

We might not need to do anything with it since any major errors that occur get caught in the lwp_put method, before the process_cfg_file has access to it.


Nexus OSS 3.13.0-01 connection problems

Hi,
When I'm configuring script  to start migration, I got green on data directory, then green on url, user and password, but data directory turns red.
I have run script with logging and I see few errors, but I think most important are
2019-07-17 17:40:51,376 [MainThread] [ERROR] (nex2art.core.Nexus3:239) - Error connecting to Nexus:
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN""http://www.w3.org/TR/html4/strict.dtd">
<TITLE>Length Required</TITLE>
<META HTTP-EQUIV="Content-Type" Content="text/html; charset=us-ascii">

Length Required

HTTP Error 411. The request must be chunked or have a content length.

Traceback (most recent call last):
  File "/var/lib/docker/volumes/prod_nexus_data/_data/nexus2artifactory/nex2art/core/Nexus3.py", line 235, in dorequest
    else: resp = urllib2.urlopen(req)
  File "/usr/lib64/python2.7/urllib2.py", line 154, in urlopen
    return opener.open(url, data, timeout)
  File "/usr/lib64/python2.7/urllib2.py", line 437, in open
    response = meth(req, response)
  File "/usr/lib64/python2.7/urllib2.py", line 550, in http_response
    'http', request, response, code, msg, hdrs)
  File "/usr/lib64/python2.7/urllib2.py", line 475, in error
    return self._call_chain(*args)
  File "/usr/lib64/python2.7/urllib2.py", line 409, in _call_chain
    result = func(*args)
  File "/usr/lib64/python2.7/urllib2.py", line 558, in http_error_default
    raise HTTPError(req.get_full_url(), code, msg, hdrs, fp)
HTTPError: HTTP Error 411: Length Required

2019-07-17 17:40:41,022 [MainThread] [ERROR] (nex2art.core.Nexus3:239) - Error connecting to Nexus:
Traceback (most recent call last):
  File "/var/lib/docker/volumes/prod_nexus_data/_data/nexus2artifactory/nex2art/core/Nexus3.py", line 235, in dorequest
    else: resp = urllib2.urlopen(req)
  File "/usr/lib64/python2.7/urllib2.py", line 154, in urlopen
    return opener.open(url, data, timeout)
  File "/usr/lib64/python2.7/urllib2.py", line 437, in open
    response = meth(req, response)
  File "/usr/lib64/python2.7/urllib2.py", line 550, in http_response
    'http', request, response, code, msg, hdrs)
  File "/usr/lib64/python2.7/urllib2.py", line 469, in error
    result = self._call_chain(*args)
  File "/usr/lib64/python2.7/urllib2.py", line 409, in _call_chain
    result = func(*args)
  File "/usr/lib64/python2.7/urllib2.py", line 635, in http_error_302
    new = self.redirect_request(req, fp, code, msg, headers, newurl)
  File "/usr/lib64/python2.7/urllib2.py", line 596, in redirect_request
    raise HTTPError(req.get_full_url(), code, msg, headers, fp)
HTTPError: HTTP Error 302: Found

What is more important, Nexus is configured with Azure Active Directory so there might be some issue with redirect links (even that I have provided local admin account to login).
Nexus instance is installed from sonatype/nexus3 docker image.

I don't know much about Azure AD, but if it's set up in front of Nexus as a reverse proxy (or if some other service is), it may be modifying headers in a way that causes these issues. This seems unlikely, but I can't think of an explanation that would be more likely at the moment. Is there a way for you to try connecting to Nexus directly? If so, you can give that a try, and see if it changes anything.
If you could, I'd also like to know a few things about your setup, so I might be able to try and reproduce your situation more accurately. Specifically, what version of Python are you using, and what OS/distribution are you running? How was Python installed, if you know?
Thanks!


Archived repo? Unmaintained?

Would like to use this nice looking picker,
but repo looks unmaintained with open issues and unmerged bug fixes.

hello, sorry folks I had tough time and I didn't check/fix anything about that. I will try release new version in the next week


RuntimeError: SigmoidFocalLoss is not compiled with GPU support

Thanks for your error report and we appreciate it a lot.
Checklist

I have searched related issues but cannot get the expected help.
I have read the FAQ documentation but cannot get the expected help.
The bug has not been fixed in the latest version.

Describe the bug
A clear and concise description of what the bug is.
Reproduction

What command or script did you run?

A placeholder for the command.

Did you make any modifications on the code or config? Did you understand what you have modified?
What dataset did you use?

Environment

Please run python mmdet/utils/collect_env.py to collect necessary environment information and paste it here.
You may add addition that may be helpful for locating the problem, such as

How you installed PyTorch [e.g., pip, conda, source]
Other environment variables that may be related (such as $PATH, $LD_LIBRARY_PATH, $PYTHONPATH, etc.)

Error traceback
If applicable, paste the error trackback here.
A placeholder for trackback.

Bug fix
If you have already identified the reason, you can provide the information here. If you are willing to create a PR to fix it, please also leave a comment here and that would be much appreciated!

More details are needed. Please give us more details

在训练模型时已经安装mmcv-full，也注意了版本问题，但是会一直这样报错


pip3 install problem: ImportError: No module named 'org'

after "pip3 install transcrypt" on ubuntu 15.10 i get
ImportError: No module named 'org'
while trying >>> import Transcrypt.transcript

Hi,
You don't have to import Transcrypt, it's a compiler, not a library.
After installing it (no pip, just copy and extract, currently, see docs), you use it like this:
transcrypt .py
You then get a JS file in the javascript directory.
The .mod.js file is the code for your main module.
The .js and .min.js include the Transcrypt runtime and any encapsulated JS libs.
Note that  you don't have to encapsulate the JS libs, you can load them on the fly from a CDN.
But the runtime is always included, since joined minification gives smaller files due to identifier shortening.
Maybe it's best to start out by compiling and running the hello.py demo, and then make small alterations and building it out from there.
Also take a look at the HTML files in the examples to see how Transcrypt is used there.

Ok i can clone and install it. My suggestion is to support pip3 install for easier adoption.

I will. Just focused on the Alpha rightnow. But it's agreed that installation should as easy as possible.

i try importing the following
import org.opensim.utils as utils
i got an error saying 'No module named org'
someone assist me on this please


I have a problem. response 403 Forbidden

I have a problem. response 403 Forbidden.Some browsers have not.

Can you provide some more details?

I'm closing this due to inactivity. If you still encounter this issue on the latest version (2.0.1 at the moment), please open a new issue with detailed information.


Widen analysis package:convert dependency to include 3.x

Similar to https://github.com/dart-lang/sdk/issues/44577
Is there any reason the constraint can't be >=2.0.0 <4.0.0?
https://github.com/dart-lang/sdk/blob/3a0a33f35f637e9017b8ed8d727b3ed15577f698/pkg/analyzer/pubspec.yaml#L14
I suspect we should do similar for:

args
cli_util
pub_semver
watcher
convert

At-least args is pretty widely used, and anyone using package:test has an indirect dependency on analyzer, so they'll be blocked from upgrading these packages.
(disclaimer: I haven't checked how breaking the API changes are)

If these package versions (the null safe versions I assume) have already been DEP'd into the sdk repo, then analyzer is already compatible with their updated APIs.

If these package versions (the null safe versions I assume) have already been DEP'd into the sdk repo, then analyzer is already compatible with their updated APIs.

https://github.com/dart-lang/sdk/blob/master/DEPS
From the DEPS:

args; 2c6a221f45e4e0ef447b5d09101bf8a52e1ccd36 (2.0.0-nullsafety.0)
cli_util; 50cc840b146615899e97b892578848401b2028d5 (0.3.0-nullsafety.0)
convert; 6513985a1b1ea8a0b987fbef699250ce2cdc3cca (3.0.0-nullsafety.0)
pub_semver; 10569a1e867e909cf5db201f73118020453e5db8 (2.0.0-nullsafety.0)
watcher; 14706140b3670ca1dfeca73480bdd3091b728ce9 (1.0.0-nullsafety.0)

@scheglov - can concerns with reving the constraints to include more null safe deps, and publishing, even before we release a null safe analyzer version? It might make version solves for the ecosystem easier (for me, it would unblock publishing a null safe version of grinder, which would then unblock linter).

https://github.com/dart-lang/sdk/blob/master/DEPS
From the DEPS:

args; 2c6a221f45e4e0ef447b5d09101bf8a52e1ccd36 (2.0.0-nullsafety.0)
cli_util; 50cc840b146615899e97b892578848401b2028d5 (0.3.0-nullsafety.0)
convert; 6513985a1b1ea8a0b987fbef699250ce2cdc3cca (3.0.0-nullsafety.0)
pub_semver; 10569a1e867e909cf5db201f73118020453e5db8 (2.0.0-nullsafety.0)
watcher; 14706140b3670ca1dfeca73480bdd3091b728ce9 (1.0.0-nullsafety.0)

@scheglov - can concerns with reving the constraints to include more null safe deps, and publishing, even before we release a null safe analyzer version? It might make version solves for the ecosystem easier (for me, it would unblock publishing a null safe version of grinder, which would then unblock linter).

I think there is an issue.
Packages analyzer and _fe_analyzer_shared are tightly bounded, we publish them only together.
And _fe_analyzer_shared is null safe now, requires sdk: '>=2.12.0-0 <3.0.0'.
There is no version for SDK before 2.12.
So, effectively any published version of analyzer will require sdk: '>=2.12.0-0 <3.0.0'.
If we decide to publish analyzer that supports only SDK 2.12, we could just switch it to specific null safe version of its dependencies, not just widen version ranges. Specifically:
dependencies:
  _fe_analyzer_shared: ^14.0.0
  args: ^2.0.0-nullsafety.0
  cli_util: ^0.3.0-nullsafety.0
  collection: ^1.15.0-nullsafety.5
  convert: ^3.0.0-nullsafety.0
  crypto: ^3.0.0-nullsafety.0
  glob: ^2.0.0-nullsafety.0
  meta: ^1.3.0-nullsafety.6
  package_config: ^1.0.0
  path: ^1.8.0-nullsafety.3
  pub_semver: ^2.0.0-nullsafety.0
  source_span: ^1.8.0-nullsafety.4
  watcher: ^0.9.6
  yaml: ^3.0.0-nullsafety.0
dev_dependencies:
  analyzer_utilities:
    path: ../analyzer_utilities
  async: ^2.5.0-nullsafety.3
  linter: any
  matcher: ^0.12.10-nullsafety.3
  pedantic: ^1.10.0-nullsafety.3
  test: ^1.16.0-nullsafety.13
  test_api: ^0.2.19-nullsafety.6
  test_reflective_loader: ^0.2.0-nullsafety.0

I think there is an issue.
Packages analyzer and _fe_analyzer_shared are tightly bounded, we publish them only together.
And _fe_analyzer_shared is null safe now, requires sdk: '>=2.12.0-0 <3.0.0'.
There is no version for SDK before 2.12.
So, effectively any published version of analyzer will require sdk: '>=2.12.0-0 <3.0.0'.
If we decide to publish analyzer that supports only SDK 2.12, we could just switch it to specific null safe version of its dependencies, not just widen version ranges. Specifically:
dependencies:
  _fe_analyzer_shared: ^14.0.0
  args: ^2.0.0-nullsafety.0
  cli_util: ^0.3.0-nullsafety.0
  collection: ^1.15.0-nullsafety.5
  convert: ^3.0.0-nullsafety.0
  crypto: ^3.0.0-nullsafety.0
  glob: ^2.0.0-nullsafety.0
  meta: ^1.3.0-nullsafety.6
  package_config: ^1.0.0
  path: ^1.8.0-nullsafety.3
  pub_semver: ^2.0.0-nullsafety.0
  source_span: ^1.8.0-nullsafety.4
  watcher: ^0.9.6
  yaml: ^3.0.0-nullsafety.0
dev_dependencies:
  analyzer_utilities:
    path: ../analyzer_utilities
  async: ^2.5.0-nullsafety.3
  linter: any
  matcher: ^0.12.10-nullsafety.3
  pedantic: ^1.10.0-nullsafety.3
  test: ^1.16.0-nullsafety.13
  test_api: ^0.2.19-nullsafety.6
  test_reflective_loader: ^0.2.0-nullsafety.0

OTOH, we could publish using an older revision of analyzer, which can use the revision of _fe_analyzer_shared that was at that moment. The only change would be these widen constraints. I will look for more details.

OTOH, we could publish using an older revision of analyzer, which can use the revision of _fe_analyzer_shared that was at that moment. The only change would be these widen constraints. I will look for more details.

The CL with changes is here: https://dart-review.googlesource.com/c/sdk/+/179581
It is based on 0.41.1 and only updates pubspec.yaml.
It is not for merging, but I need a review.
If it is OK, I will publish it.
I considered restricting sdk: '>=2.7.0 <2.12.0'.
But not sure if this is necessary.
Do we want to widen version ranges for any other packages than mentioned in this issue?

The CL with changes is here: https://dart-review.googlesource.com/c/sdk/+/179581
It is based on 0.41.1 and only updates pubspec.yaml.
It is not for merging, but I need a review.
If it is OK, I will publish it.
I considered restricting sdk: '>=2.7.0 <2.12.0'.
But not sure if this is necessary.
Do we want to widen version ranges for any other packages than mentioned in this issue?

Thanks for the CL! I'll take a quick look.
I don't know how that initial list was determined, but my guess is we'd want to expand to include the null safe version ranges for analyzer's direct, non-dev dependencies.

Thanks for the CL! I'll take a quick look.
I don't know how that initial list was determined, but my guess is we'd want to expand to include the null safe version ranges for analyzer's direct, non-dev dependencies.

In which case, that might just mean expanding the package_config to include 2.0.0? Although package_config is only at 1.9.3 in the dart sdk repo, so perhaps not.

In which case, that might just mean expanding the package_config to include 2.0.0? Although package_config is only at 1.9.3 in the dart sdk repo, so perhaps not.

@scheglov - that CL lgtm.

@scheglov - that CL lgtm.

OK, I will publish it as is then.
If we decide to add more packages, we always can publish another version.

OK, I will publish it as is then.
If we decide to add more packages, we always can publish another version.

Published analyzer 0.41.2.

Published analyzer 0.41.2.


Is it possible for sbt-heroku to work with "Deploy to Heroku" button?

From what I'm seeing in https://devcenter.heroku.com/articles/heroku-button, it looks like app.json expects there to be a source repository, I'm not seeing JVM-style binary deployment supported.

No, sbt-heroku and heroku-button use two distinct mechanisms for deployment. It is possible to configure an application be deployed in both ways without conflict. But they still use different mechanisms.
What are you hoping to accomplish? Maybe I can offer some other suggestions.

I'm about to open source an application, which I've configured to be relatively easily deployed to Heroku via sbt-heroku. Just wondering if the deploy button were easily enough added given that set-up. I can probably configure it to deploy via git commit + Procfile as an alternative.
Thanks! Question answered :metal:

Cool! please share a link to the project when it's ready. I'd be happy to help with the heroku-button part.


bots UI: Creating a new bot switches tab from "Add a new bot" to "Active bots".

Looks great, merged, thanks @abhijeetkaur!
I think as a follow-up, we should probably display something when you don't have any active bots, since it looks weird.  We have some conventions in the other list-of-things UI panels for that which we should probably use.  Probably same for the inactive bots panel.

@timabbott Agreed, I was feeling the same too!

We have some conventions in the other list-of-things UI panels for that which we should probably use.

Could you please elaborate on this?

Look at how the "Bots" tab in "Organization settings" works.  Basically, we display a message if the list is empty.


chore: add release-please and publishing metrics collection

I think the failure is a flaky test, I need to improve the consistency of them. I'll take a peek a bit later. Thank you for setting this up!


Extension v2024.4.0 and v2024.4.1 create indefinite "Discover Python Interpreters"

Type: Bug

Behaviour
Expected vs. Actual
Install v2024.4.0 or v2024.4.1 extension and the discovering Python interpreters run indefinitely.  This also restarts the kernel periodically - a MAJOR PROBLEM when excecuting ML notebooks - lost variables imply retraining or reloading a pandas DF etc.
XXX
Steps to reproduce:
To stop the kernel from periodic restarts use v2024.2.1

Diagnostic data

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

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

XXX

User Settings

languageServer: "Pylance"

Extension version: 2024.2.1
VS Code version: Code 1.88.0 (5c3e652f63e798a5ac2f31ffd0d863669328dc4c, 2024-04-03T13:28:09.495Z)
OS version: Darwin arm64 23.5.0
Modes:

System Info

Item
Value

CPUs
Apple M1 Pro (10 x 24)

GPU Status
2d_canvas: enabledcanvas_oop_rasterization: enabled_ondirect_rendering_display_compositor: disabled_off_okgpu_compositing: enabledmultiple_raster_threads: enabled_onopengl: enabled_onrasterization: enabledraw_draw: disabled_off_okskia_graphite: disabled_offvideo_decode: enabledvideo_encode: enabledwebgl: enabledwebgl2: enabledwebgpu: enabled

Load (avg)
5, 5, 5

Memory (System)
16.00GB (0.05GB free)

Process Argv
--crash-reporter-id aaabbd8f-9170-4ae6-b93a-f11487600abe

Screen Reader
no

VM
0%

A/B Experiments
vsliv368:30146709
vspor879:30202332
vspor708:30202333
vspor363:30204092
tftest:31042121
vswsl492cf:30256860
vscod805cf:30301675
binariesv615:30325510
vsaa593cf:30376535
py29gd2263:31024239
c4g48928:30535728
azure-dev_surveyone:30548225
962ge761:30959799
pythongtdpath:30769146
welcomedialogc:30910334
pythonidxpt:30866567
pythonnoceb:30805159
asynctok:30898717
pythontestfixt:30902429
pythonregdiag2:30936856
pythonmypyd1:30879173
pythoncet0:30885854
2e7ec940:31000449
pythontbext0:30879054
accentitlementst:30995554
dsvsc016:30899300
dsvsc017:30899301
dsvsc018:30899302
cppperfnew:31000557
dsvsc020:30976470
pythonait:31006305
chatpanelc:31048052
dsvsc021:30996838
9c06g630:31013171
fchga941:31046352
pythonprc:31047982
dwnewjupytercf:31046870
26j00206:31048877

Hi @dokutoshi. Thank you for filing the issue. Can you set your log level to trace in command palette and share your Python output info accessible in output for Python?

I'm having this issue too, and there's nothing available in the Output dialog.

Interesting..Does Clear Cache and reload Python extension fix the problem?
(Accessible via ctrl+shift+p) or cmd+shift+p on mac.

I will look into this later today.
Prescriptive measure include setting log level == 'trace' and cmd+shift+p
On May 22, 2024, at 14:49, Anthony Kim @.***> wrote:
Also wondering if problem persists in version below v2024.4.0
—
Reply to this email directly, view it on GitHubhttps://github.com/microsoft/vscode-python/issues/23452#issuecomment-2125526612, or unsubscribehttps://github.com/notifications/unsubscribe-auth/ACNWBJOTDMYMQLMVSSOMG6TZDTSCVAVCNFSM6AAAAABH63ATVOVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDCMRVGUZDMNRRGI.
You are receiving this because you were mentioned.Message ID: @.***>
This email and any attachments may contain private, confidential and privileged material for the sole use of the intended recipient. Any review, reliance or distribution by others or forwarding without express permission is strictly prohibited. If you are not the intended recipient, please notify the sender immediately and delete this email and any attachments afterwards.

Clearing the cache and reloading the window does solve the infinite running issue.
However, the reason i opened this ticket relates to this bug:

48 hours into testing, Discovering process starts up and terminates a running job.   ML training takes weeks.   What happened?  Using VSCode worked for over 2 years in DL training.  Now I can barely use it for a day without Discovering Python Interpreters appearing and halting training.  @anthonykim1

@dokutoshi Can you bring the requested logs and also check if same problem exists in version below 2024.4.0 that you have mentioned?

Dealing with a related issue in Vscode Insiders that crashes Pylance and triggers Discovering Python Interpreters.
note the error using the -I flag in the Vscode code base.
Pylance Crash
For reference, here is the Python log output.
2024-06-04 18:31:35.095 [info] shell: bash
2024-06-04 18:31:35.732 [info] > /usr/bin/python -I ./.vscode-server-insiders/extensions/ms-python.python-2024.6.0/python_files/get_output_via_markers.py ./.vscode-server-insiders/extensions/ms-python.python-2024.6.0/python_files/interpreterInfo.py
2024-06-04 18:31:35.802 [info] > ./miniforge-pypy3/envs/tf_2.15/bin/python -I ./.vscode-server-insiders/extensions/ms-python.python-2024.6.0/python_files/get_output_via_markers.py ./.vscode-server-insiders/extensions/ms-python.python-2024.6.0/python_files/interpreterInfo.py
2024-06-04 18:31:35.816 [warning] [Error: Command failed: /usr/bin/python -I /home/ec2-user/.vscode-server-insiders/extensions/ms-python.python-2024.6.0/python_files/get_output_via_markers.py /home/ec2-user/.vscode-server-insiders/extensions/ms-python.python-2024.6.0/python_files/interpreterInfo.py
Unknown option: -I
usage: /usr/bin/python [option] ... [-c cmd | -m mod | file | -] [arg] ...
Try `python -h' for more information.
at ChildProcess.exithandler (node:child_process:423:12)
at ChildProcess.emit (node:events:530:35)
at maybeClose (node:internal/child_process:1105:16)
at Socket.<anonymous> (node:internal/child_process:457:11)
at Socket.emit (node:events:518:28)
at Pipe.<anonymous> (node:net:337:12)] {

code: 2,
killed: false,
signal: null,
cmd: '/usr/bin/python -I /home/ec2-user/.vscode-server-insiders/extensions/ms-python.python-2024.6.0/python_files/get_output_via_markers.py /home/ec2-user/.vscode-server-insiders/extensions/ms-python.python-2024.6.0/python_files/interpreterInfo.py'
}
2024-06-04 18:31:35.816 [error] Support for Python 2.7 has been dropped by the Python extension so certain features may not work, upgrade to using Python 3.
2024-06-04 18:31:35.843 [info] > /usr/bin/python ./.vscode-server-insiders/extensions/ms-python.python-2024.6.0/python_files/get_output_via_markers.py ./.vscode-server-insiders/extensions/ms-python.python-2024.6.0/python_files/interpreterInfo.py
2024-06-04 18:31:36.115 [info] > ./miniforge-pypy3/bin/python -I ./.vscode-server-insiders/extensions/ms-python.python-2024.6.0/python_files/get_output_via_markers.py ./.vscode-server-insiders/extensions/ms-python.python-2024.6.0/python_files/interpreterInfo.py
2024-06-04 18:31:36.279 [info] > /usr/local/bin/python -I ./.vscode-server-insiders/extensions/ms-python.python-2024.6.0/python_files/get_output_via_markers.py ./.vscode-server-insiders/extensions/ms-python.python-2024.6.0/python_files/interpreterInfo.py
2024-06-04 18:31:36.554 [info] Starting Pylance language server.

Sorry venting here but when the Discovery process starts, it is impossible to save the file.

For clarification, the Discovering Python Interpreters occurs from Python 2024.2.1 version up to and including the most recent version of VsCode Insiders.
@anthonykim1 - The answer is Yes!
Both local (Mac) and remote SSH (from Mac to Linux) exhibit the issues.
Version: 1.84.2
Commit: 1a5daa3a0231a0fbba4f14db7ec463cf99d7768e
Date: 2023-11-09T10:52:57.054Z
Electron: 25.9.2
ElectronBuildId: 24603566
Chromium: 114.0.5735.289
Node.js: 18.15.0
V8: <IP_ADDRESS>-electron.0
OS: Darwin arm64 23.3.0
Python: Extension version: 2024.2.1
Ahh, ran extension profiler.

https://github.com/microsoft/vscode-python/issues/23554

@dokutoshi Thanks for the requested logs.
Are you using Python2.7? I see
 [error] Support for Python 2.7 has been dropped by the Python extension so certain features may not work, upgrade to using Python 3.
``` from your log.

Support for 2.7 has been dropped by Python extension. Reference: https://github.com/microsoft/vscode-python/wiki/Limited-support-for-Python-2.7

Python

No, I use python 3.10 - 3.12.

Btw, is there a method to suppress the discovery process e..g "Discovering Python Interpreters".  The process appears event or timer based.  is there a method to make this process interactive i.e. user controlled?

Conda environments established on the ec2. Why is vscode searching the ec2 for possible python directories outside of the designated environment?

It is not necessarily VS Code, it would be Python extension or other extension IN VS Code that is triggering interpreter discovery.

Btw, is there a method to suppress the discovery process e..g "Discovering Python Interpreters". The process appears event

I don't think so. The problem you are having can happen when some other extension triggers discovery, or there is some changes in the Python environment that you have set up. For now you can pin the extension to older version where everything used to work for you until we investigate this further.
I will keep this issue open just so I can get a census/reports of to the extent other users are experiencing the issue.

yes, something is triggering the discovery and... the designated kernel is no longer stable.
I use only Microsoft extensions.

Maybe the Python Debugger extension @anthonykim1

Figured out the bug - this is definitely a weird bug.
2024-06-09 17:41:28.668 [warning] Identifier for virt-virtualenv failed to identify /opt/homebrew/bin/python3 [Error: ENOENT: no such file or directory, scandir '/opt/homebrew/bin'] {   errno: -2,   code: 'ENOENT',   syscall: 'scandir',   path: '/opt/homebrew/bin' }
Setup:

An AWS Mac acts as a bastion device to remote ssh to a Linux device.  [Not sure that matters]
The Python extension uses scandir on the remote Linux device and on the localhost device.   It then searches for all the absolute paths in the list on the remote device irrespective if the path is only on the local machine.  @anthonykim1

There is still an issue...  it is not possible to save the file while the Discovery process executes.

Is there an approach to limit the Python environment to a specific path e.g. in a workspace environment file?
  {  "python.venvPath": "/path/to/your/allowed/venvs",     "python.autoComplete.extraPaths": [         "/path/to/your/allowed/venvs"     ] }

Really appreciate some help here @anthonykim1
Several articles of users experiencing similar issues:

https://stackoverflow.com/questions/78251441/visual-studio-code-keeps-discovering-python-interpreters-forever-and-vscode-serv
https://stackoverflow.com/questions/71153859/discovering-python-interpreters-taking-infinite-time-in-vs-code
https://github.com/microsoft/vscode-jupyter/issues/12974 @DonJayamanne
https://github.com/microsoft/vscode-python/issues/21310 - Recall there is a symbolic link as VScode searches for the local path on the remote machine. ((
https://github.com/microsoft/vscode-python/issues/20250

Issues were not solved.  I suggest a look at the possible solution.

Figured out the bug:
Here is the latest @anthonykim1 ... it appears VScode's Python extension joins the local python environments and remote python environment directories, perhaps into a list of paths. If the directories are the same on the local and remote, no issue. If there are paths on the local, not present on the remote, the python extension crashes as the Discover Python Interpreters enters an infinite loop.
Remote device: Python Log 2024-06-09 17:41:28.668 [warning] Identifier for virt-virtualenv failed to identify /opt/homebrew/bin/python3 [Error: ENOENT: no such file or directory, scandir '/opt/homebrew/bin'] { errno: -2, code: 'ENOENT', syscall: 'scandir', path: '/opt/homebrew/bin' }
Remote device: `ubuntu@ip-172-31-92-108:/mnt_data/home/ec2-user$ which -a python python2 python3
/usr/bin/python3 /bin/python3`
Local device: `ec2-user@ip-172-31-0-196 homebrew % which -a python python2 python3 python not found
python2 not found
/opt/homebrew/bin/python3 /usr/bin/python3`
Setup:

An AWS Mac acts as a bastion device to remote ssh to a Linux device.  [Not sure that matters]
The Python extension uses scandir on the remote Linux device and on the localhost device.   It then searches for all the absolute paths in the list on the remote device irrespective if the path is only on the local machine.  @anthonykim1

Temporary Solution: `# Create the necessary directory if it doesn't exist sudo mkdir -p /opt/homebrew/bin
Create the symbolic link
sudo ln -s /usr/bin/python3 /opt/homebrew/bin/python3
Verify the symlink
ls -l /opt/homebrew/bin/python3`
Result of Python discovery: Pre-fix: 2024-06-09 17:50:36.354 [warning] Identifier for virt-virtualenv failed to identify /opt/homebrew/bin/python3 [Error: ENOENT: no such file or directory, scandir '/opt/homebrew/bin'] { errno: -2, code: 'ENOENT', syscall: 'scandir', path: '/opt/homebrew/bin' }
Post-fix: 2024-06-09 17:55:57.165 [info] Experiment 'pythonCreateEnvOnPipInstall' is active 2024-06-09 17:55:57.165 [info] Experiment 'pythonRecommendTensorboardExt' is active 2024-06-09 17:55:57.165 [info] Experiment 'pythonSurveyNotification' is active 2024-06-09 17:55:57.165 [info] Experiment 'pythonTerminalEnvVarActivation' is active 2024-06-09 17:55:57.165 [info] Experiment 'pythonTestAdapter' is active 2024-06-09 17:55:57.165 [info] Default formatter is set to ms-python.black-formatter for workspace /mnt_data/home/ec2-user 2024-06-09 17:55:57.165 [info] Starting Environment refresh 2024-06-09 17:55:57.165 [info] Searching for interpreters in posix paths locator 2024-06-09 17:55:57.165 [info] Searching for pyenv environments 2024-06-09 17:55:57.165 [info] Searching for conda environments 2024-06-09 17:55:57.165 [info] Searching for global virtual environments 2024-06-09 17:55:57.165 [info] Searching for custom virtual environments 2024-06-09 17:55:57.165 [info] pyenv is not installed 2024-06-09 17:55:57.165 [info] Finished searching for pyenv environments: 339 milliseconds 2024-06-09 17:55:57.165 [info] Finished searching for custom virtual envs: 339 milliseconds 2024-06-09 17:55:57.165 [info] > conda info --json 2024-06-09 17:55:57.165 [info] > hatch env show --json 2024-06-09 17:55:57.165 [info] cwd: . 2024-06-09 17:55:57.165 [info] Finished searching for global virtual envs: 361 milliseconds 2024-06-09 17:55:57.287 [info] Found: /bin/python3 --> /bin/python3.10 2024-06-09 17:55:57.368 [info] Found: /bin/python3.10 --> /bin/python3.10 2024-06-09 17:55:57.444 [info] Found: /usr/bin/python3 --> /usr/bin/python3.10 2024-06-09 17:55:57.449 [info] Found: /usr/bin/python3.10 --> /usr/bin/python3.10 2024-06-09 17:55:57.457 [info] > /opt/homebrew/bin/python3 -I ~/.vscode-server/extensions/ms-python.python-2024.8.0/python_files/get_output_via_markers.py ~/.vscode-server/extensions/ms-python.python-2024.8.0/python_files/interpreterInfo.py 2024-06-09 17:55:57.487 [info] Python interpreter path: /opt/homebrew/bin/python3 2024-06-09 17:55:57.503 [info] Found: /home/ubuntu/miniforge3/bin/python --> /home/ubuntu/miniforge3/bin/python3.10 2024-06-09 17:55:57.509 [info] Found: /home/ubuntu/miniforge3/bin/python3 --> /home/ubuntu/miniforge3/bin/python3.10 2024-06-09 17:55:57.510 [info] Found: /home/ubuntu/miniforge3/bin/python3.1 --> /home/ubuntu/miniforge3/bin/python3.10 2024-06-09 17:55:57.515 [info] Found: /home/ubuntu/miniforge3/bin/python3.10 --> /home/ubuntu/miniforge3/bin/python3.10 2024-06-09 17:55:57.549 [info] > /bin/python3 -I ~/.vscode-server/extensions/ms-python.python-2024.8.0/python_files/get_output_via_markers.py ~/.vscode-server/extensions/ms-python.python-2024.8.0/python_files/interpreterInfo.py 2024-06-09 17:55:57.598 [info] Finished searching for interpreters in posix paths locator: 793 milliseconds 2024-06-09 17:55:57.598 [info] > /usr/bin/python3 -I ~/.vscode-server/extensions/ms-python.python-2024.8.0/python_files/get_output_via_markers.py ~/.vscode-server/extensions/ms-python.python-2024.8.0/python_files/interpreterInfo.py 2024-06-09 17:55:58.193 [info] Finished searching for conda environments: 1389 milliseconds

Turned on Trace log

Why is VS Code looking for node_modules under the home directory e.g. ~/node_modules?
What is setActiveFolders?

These errors occur for both Remote SSH or Remote Tunnels.
Errors
**2024-06-12 05:31:40.234 [error] command 'remote-internal.setActiveFolders' not found: Error: command 'remote-internal.setActiveFolders' not found     at v.n (vscode-file://vscode-app/Applications/Visual%20Studio%20Code.app/Contents/Resources/app/out/vs/workbench/workbench.desktop.main.js:1637:23867)**     at v.executeCommand (vscode-file://vscode-app/Applications/Visual%20Studio%20Code.app/Contents/Resources/app/out/vs/workbench/workbench.desktop.main.js:1637:23796) 2024-06-12 05:31:41.198 [warning] [remote-ssh]: Couldn't find message for key setting.usseExecServer.description. 2024-06-12 05:31:41.248 [trace] lifecycle: phase changed (value: 4) 2024-06-12 05:31:41.274 [trace] ForwardedPorts: Doing first restore. 2024-06-12 05:31:41.288 [trace] ForwardedPorts: (TunnelModel) restoring ports 6006 **2024-06-12 05:31:41.310 [trace] Error: ENOENT: no such file or directory, stat '/mnt_data/home/ec2-user/node_modules':** EntryNotFound (FileSystemError): Error: ENOENT: no such file or directory, stat '/mnt_data/home/ec2-user/node_modules'     at k.create (/home/ubuntu/.vscode-server/bin/89de5a8d4d6205e5b11647eb6a74844ca23d2573/out/vs/server/node/server.main.js:114:97841)     at I (/home/ubuntu/.vscode-server/bin/89de5a8d4d6205e5b11647eb6a74844ca23d2573/out/vs/server/node/server.main.js:114:97955)     at t.hb (/home/ubuntu/.vscode-server/bin/89de5a8d4d6205e5b11647eb6a74844ca23d2573/out/vs/server/node/server.main.js:119:35958)     at t.stat (/home/ubuntu/.vscode-server/bin/89de5a8d4d6205e5b11647eb6a74844ca23d2573/out/vs/server/node/server.main.js:119:28306)

Please take a look at this @karthiknadig .  I believe it relates to concerns in this ticket. https://github.com/microsoft/vscode-python/pull/21639
The process never terminates on a remote server.
Steps to recreate

Connect to a remote server
Command Palette - select Python interpreter
Observe Discover Python Interpreters start
Select interpreter or close it.
Observe Discover Python Interpreters does not terminate

May hint at the a test scenario @karthiknadig

Visual Studio Code keeps discovering python interpreters forever and vscode-server on remote is busy 100%

Solution proposed on Mar 31, 2024
It is common for computer vision scientists to have directories with millions of images.  I will consider moving the directory, this can take 1-2 days for 4 million images.  This is not preferred for many reasons such as updating code base etc.
Eventually the remote SSH is dropped because the Discovery Crashes the IDE.  Then the process starts over again.  Extremely frustrating.

"Discovering Python Interpreters" taking Infinite time in VS Code
Unsolved

Stuck at discovering Python Interpreters in ssh connection
Ticket closed but unsolved

It looks for virtual environments created for monorepos this way. As I said we are re-doing this to be more efficient. But, basically some projects have several virtual environments for each sub folder, that we need to support. We are changing this to handle cases like yours better.

@karthiknadig it is far simpler.
@DonJayamanne @anthonykim1
I was able to recreate the issue locally.

Set up a project with a data folder, src folder.
Data folder create 1,000,000 images, one can probably generate doc1.txt - doc999999.txt.
In the src folder, add python file and jupyter notebook, keep it simple.
Select interpreter at project level.  Note the time it takes for the kernel to stop spinning.  It can be at least 1 - 2 minutes.  Sometimes i get a cup of tea.
Close folder and reopen at src folder.  Vola, select interpreter.  It is instant!

I was able to recreate this on a few machines - local and remote are both faster when using only the src folder and not including the data folder (1,000,000+ images, files, etc)
Best,
Leo

One final question - @karthiknadig @anthonykim1.  Why not allow the "folders to exclude" feature to limit the search path for the python interpreters or better yet, allow the user to customize?  It is not advised for the sentinel to search across a device; there are corporate concerns with such activity that will prevent the use of the tool.

We do have plans on adding customizable excludes in the new work that is being done for environment discovery. But the old discovery will likely not get update to add the new features to it.

Is the current solution to limit the number of files inside a workspace e.g. remove large data i.e. image or corpus directories?

Unfortunately yes.

@karthiknadig - Does Visual Studio have the same limitations i.e. python interpreter scans all files in workspace?

@karthiknadig that would be most excellent.  From a corporate perspective, the current limitation created the following situation:

Migrate all AWS Linux 2 servers to Ubuntu as Linux 2 contains a python 2.7 env, albeit unused.
Load only the source directory.  Exclude Directories such as TF folders, parquet and csv data source,  and other meta libraries from the workspace.   In addition, data folders were included.

These are significant changes at a corporate level   .  Ubuntu brings its own inherent limitations non-XFS etc that required further steps to support ML workflows.

the bot closed the open ticket after 3 days - that is too short a window - please adjust the bot.
Python Uncaught Error 2024.2.1](https://github.com/microsoft/vscode-python/issues/23554#issuecomment-2231267227)
Clearing the cache with each reload is standard practice.
One important test scenario:
@karthiknadig @DonJayamanne
I extended the workspace using "Add Folder to Workspace" to include a functional folder for TensorFlow.
For clarification:
The first folder contains Python source files and a notebook (a static folder).
The second folder (the TensorFlow folder) contains logs and metadata files generated by TensorFlow during training, typically per epoch, to save model weights and biases (a dynamic folder). PyTorch has a similar on-training file creation.
Post-observations after including a dynamic folder show that the growth in file count (less than 10 files) during an active kernel leads to a kernel halt. This is different, in my opinion, from including a large data directory with millions of images. In the dynamic folder case, behavior suggests that files added/created in an active workspace trigger the Python discovery process, interrupting an active kernel.
Best,
Leo

Are you still able to repro this?
Also wondering if changing from native => js changes any behavior.


Update zio-interop-cats to <IP_ADDRESS>

Updates dev.zio:zio-interop-cats from <IP_ADDRESS> to <IP_ADDRESS>.
GitHub Release Notes - Version Diff
I'll automatically update this PR to resolve conflicts as long as you don't change it yourself.
If you'd like to skip this version, you can just close this PR. If you have any feedback, just mention me in the comments below.
Configure Scala Steward for your repository with a .scala-steward.conf file.
Have a fantastic day writing Scala!

Ignore future updates
Add this to your .scala-steward.conf file to ignore future updates of this dependency:
updates.ignore = [ { groupId = "dev.zio", artifactId = "zio-interop-cats" } ]

labels: test-library-update

Codecov Report

Merging #94 (5c285da) into master (9500363) will not change coverage.
The diff coverage is n/a.

@@           Coverage Diff           @@
##           master      #94   +/-   ##
=======================================
  Coverage   87.13%   87.13%
=======================================
  Files          28       28
  Lines         832      832
  Branches       31       31
=======================================
  Hits          725      725
  Misses        107      107

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 9500363...5c285da. Read the comment docs.


Feedback on flicker implementation

Hello!
Please find in the PR comments and feedback on the implementation. My main points are:

I would used psychtoolbox and it's function GetSecs() to manage time. My comment in the code-base give some context, but it's a bit difficult to know when psychopy is using timeit.default_timer or psychtoolbox.GetSecs, so instead of trying to juggle with the different clock base I prefer to directly force/ensure I use PTB. After looking through the codebase of psychopy, it does seem that it will default to PTB anyway if it's available; but some functions will return the true PTB time while other will return it with an offset.
The ioServer and DeviceManager are completely optional. The Window object and Keyboard object (https://psychopy.org/api/hardware/keyboard.html) can be managed in the main process/thread without overhead. Personally, I never use ioServer and DeviceManager but I don't think they will hurt you anyway, they just make the code more complex without any good reason to do so.
The ioServer.syncClock calls seems pointless, I'm not sure why you would need to sync it for (keyboard is only used to quit the experiment + not sure what it synchronizes).

I also drafted a minimal implementation, getting close timings to yours with a simpler main loop. Maybe it can give you some ideas/tips to further improve your loop (which seems slightly more stable/performant anyway!)
Timings on my computer:
# your test script

            word0      word1
count  138.000000  12.000000
mean     0.050041   0.500406
std      0.000105   0.000157
min      0.049603   0.500014
25%      0.050008   0.500326
50%      0.050041   0.500447
75%      0.050091   0.500492
max      0.050347   0.500586

# my test script

            word0      word1
count  199.000000  19.000000
mean     0.050041   0.500419
std      0.000133   0.000276
min      0.049466   0.499817
25%      0.049959   0.500419
50%      0.050042   0.500441
75%      0.050126   0.500465
max      0.050580   0.501019

Note that this alternative implementation is purely based on times. It does not count frames.
If you count frames, it makes the code more complex while in theory providing better control/timings.. except if frames are dropped (can happen..). If you don't count frames and base your loop on times, the code is simpler but in theory you get slightly worse timings/stability.. but you don't get impacted as badly by dropped frame (1 dropped frame in the middle of the sequence will have no impact at all).

This is excellent, thanks so much!
The managers were yet again holdovers from the automatically generated script provided by the Builder GUI, and looking back I see why they're pointless.
The PTB function is a good choice, I'm still not entirely clear on what functionality the python implementation of PTB even offers since the documentation for the python package is nonexistent as far as I can tell, but I'll use this going forwards.
Your version of the script will serve as a good jumping off point for the further dev of the experiment. Thanks again for all the help!


im so happy for this

i'll play this when this go out all days litterally, also you think that after u finish the 3.0 mundo toonix version, u could make a version in html5? they did that with club penguin and mundo toonix is simplier

Hi @Gabiworld.
Actually, it's a possibility, but not for sure. Of course, we would need some help from experienced people with HTML5 for making this real.
By the way, don't hesitate to join us on Discord.

can u delete this issue is kinda unnecessary


Share files from MCU's LittleFS to a PC

Has a "standard way" developed to share the files on an MCU's LittleFS with a PC (Through USB or UART)?
Wishful Application:

MCU to have SpiFLASH with LittleFS.
PC connects to MCU (USB CDC using D+/D- on a USBC connector).
PC = Standard Windows Laptop, require no special software or driver installs by customer (i.e. MCU emulate a Thumbdrive)
PC able to retrieve log files from LittleFS through MCU
PC able to drop config files (and maybe firmware updates) to LittleFS that MCU will use after next reset.
STM32L476 (single USBFS)

Paul

Travelling,
But if we resolve this I'll share


fix r process to JSON

In Cookbook Section "Output: Process as JSON"

uses as() instead of deprecated create_user_process
uses rjson::toJSON instead of jsonlite::toJSON, because the latter is adding [] brackets around the process_id by default, which causes errors

Thanks!


Add VSCode Install and Configuration Guide

Resolves https://github.com/Endilll/vapoursynth-preview/issues/12
Created a guide.

So you had no luck with built-in user-level tasks in recent versions of VS Code?
Sorry for the late answer.

So you had no luck with built-in user-level tasks in recent versions of VS Code?
Sorry for the late answer.

I have followed this just now when re-creating my VSCode environment (1.56.2). All is well, thank you. The tip about the 'Global Config' plugin is very useful.

So you had no luck with built-in user-level tasks in recent versions of VS Code?
Sorry for the late answer.

honestly, I'd need you to be more explicit on what you're talking about. This is the only way I've found to make it work.

I mentioned them in #12.
https://code.visualstudio.com/updates/v1_42#_user-level-tasks


This package needs to be adapted to Null-safety so as to be used in Flutter 2.0.

Hi zhaojingyits,
Where you able to find an alternative for you problem?
the repository does not appears to have any update on pub.dev, could you please suggest some alternative.

Fixed in 0.2


"Cannot instantiate implementation type" even when specifying generic type

From @thiagomajesk on Thursday, June 1, 2017 3:38:54 PM
Hello, I'm having trouble using the default container with @jbogard's MediatR.
I know that currently there are limitations, but I would appreciated if someone could bring any help.
I have the standard generic command:
public class Command<T> : IRequest<Command<T>> where T : class
{
    public List<T> List { get; set; }
}

and its handler:
public class CommandHandler<T> : IRequestHandler<Command<T>, Command<T>> where T : class
{
    [...]
}

I was searching about it and saw that the user @dannyc02 managed to get this working with Structure Map by specifying the concrete types during registration (https://github.com/jbogard/MediatR/issues/69). I've tried the same thing without success:
services.AddTransient(typeof(IRequestHandler<Command<string>, Command<string>>), typeof(CommandHandler<string>));
If its possible to register the concrete type like the example I know I could write a custom type scan to register everything to me, like this: https://gist.github.com/thiagomajesk/204ca7e602c3a1f1d5cc6f7b4ab42aa9. But right now I only get
Cannot instantiate implementation type.
Copied from original issue: aspnet/DependencyInjection#531

From @pakrym on Thursday, June 1, 2017 4:26:09 PM
Can you provide a minimal repro please?

From @thiagomajesk on Thursday, June 1, 2017 4:53:58 PM
@pakrym Of course, here it is: container_sample.zip

From @pakrym on Monday, June 5, 2017 9:11:55 AM
Exception is by design, services.AddMediatR(); registers open generic service of second order (where open generic part is type argument itself)
{MediatR.IRequestHandler`2[ContainerSample.Handlers.Command`1[T],ContainerSample.Handlers.Command`1[T]]}

and this is not supported by DI container. Only first order open generic registrations are supported.

From @thiagomajesk on Monday, June 5, 2017 1:47:43 PM
@pakrym I have to admit I don't quite understand why this scenario isn't supported though. It seems to me a common use case. Is there any recommendations on how to achieve similar behaviour (extending the default container or not) besides replacing it?

From @pakrym on Monday, June 5, 2017 3:31:32 PM
@thiagomajesk it creates a lot of complexities in resolution rules, imagine following registrations:
IRequestHandler<ICommand<Action<>>, ICommand<>>
IRequestHandler<ICommand<>, ICommand<string>>

Which one would you use to resolve IRequestHandler<ICommand<Action<string>, ICommand<string>> and why?
The only way to make it work with AspNetCore.DependencyInjection is too define interface ICommandHandler<T>: IRequestHandler<Command<T>, Command<T>> but then you need to inject ICommandHandler<T> that might not be applicable to your case.

From @thiagomajesk on Tuesday, June 6, 2017 9:26:48 AM
@pakrym I see your point now, in that example the container doesn't know how to act because it can't tell the difference between ICommand<T> and ICommand<T<U>>  because the whole thing inside the first <> IS a generic type. So I'll assume that the default behaviour of the DI is not to cascade scan the generic types (tree?), hence the error. Is that right?
So if I got it right and I still want this behaviour, I'd have to simplify the generic registration through the interface that has just one level of generics, like you've just demonstrated. So, for sake of visualization, something like this:
public class IGenericRequestHandler<T> : IRequestHandler<Command<T>, Command<T>> {}
public class CommandHandler<T> : IGenericRequestHandler<T> {}
public class Command<T> : IRequest<Command<T>> { }
services.AddTransient(typeof(IGenericRequestHandler<string>), typeof(CommandHandler<string>));

From @pakrym on Tuesday, June 6, 2017 4:50:53 PM
@thiagomajesk yes, we don't try to deconstruct generic type 'trees'.
In your example you can have services.AddTransient(typeof(IGenericRequestHandler<>), typeof(CommandHandler<>));

From @thiagomajesk on Tuesday, June 6, 2017 6:59:51 PM
@pakrym Have you tested this workaround? It seems that even when using the interface approach it doesn't work. It throws the same error on Startup. Even if I try to 'trick' the container making simpler 'sub interfaces'  like this:
public interface ICommandHandler<T> : IRequestHandler<Command<T>, Command<T>>
public interface ICommand<T> : IRequest<Command<T>>
public class Command<T> : ICommand<T>
{
    public List<T> List { get; set; }
}

public class CommandHandler<T> : ICommandHandler<T>
{
    public Command<T> Handle(Command<T> message)  { [...]  }
}

Any thoughts?

From @tlycken on Monday, August 28, 2017 1:06:00 AM

it creates a lot of complexities in resolution rules, imagine following registrations:
IRequestHandler<ICommand<Action<>>, ICommand<>>
IRequestHandler<ICommand<>, ICommand<string>>

Which one would you use to resolve IRequestHandler<ICommand<Action<string>, ICommand<string>> and why?

This ambiguity situation could actually still be unsupported (and e.g. throw an error on startup, as today), while still supporting having just one of them registered. I stumbled here also from MediatR, and the case I want to get working is having the following interfaces and concrete implementations:
interface IRequest<T> : { }
interface IRequestHandler<TRequest, T> where TRequest : IRequest<T> { }

class Request<T> : IRequest<T> { }
class RequestHandler<T> : IRequestHandler<Request<T>, T> { }

Given an instance of Request<T>, I also know what T is - let's say it's a Request<string> instance I have. Then it's trivial to figure out that I'm looking for an IRequestHandler<Request<string>, string>, and that the corresponding implementation is a RequestHandler<string>. This solves my immediate use case.
Of course, it's possible to come up with situations that are close to this but ambiguous - but even with all its flexibility, the example above is not. (And I'm thinking that the generic type constraint on IRequestHandler<TRequest, T> makes it more difficult...)

We periodically close 'discussion' issues that have not been updated in a long period of time.
We apologize if this causes any inconvenience. We ask that if you are still encountering an issue, please log a new issue with updated information and we will investigate.


Change add resource codeaction title to Insert websocket service template in websocket module

Description:
$subject
Right now, the codeaction title is Add resource. We should update it to a more intuitive one like Insert websocket service template.
Describe your problem(s)
See description

We do the completion once we add the websocket:Listener part. So shall we name it like Insert service template without the websocket part?


BUG: exception when processing gitlab commits with an unmerged pull request

Describe the bug
The new gitlab functionality throws an exception from commits.go when there is a merge request associated to the commit, but that merge request is unmerged.
Reproduction steps
Steps to reproduce the behavior:

Open an MR in a gitlab project
Make at least one commit against the mr
Run the scorecard cli against the repository

Expected behavior
Looking at the github implementation I believe the expected behavior would be to ignore the associated merge request, and just treat this as a raw commit.  Still assessing the impact of this approach on Code-Review score.

I am planning on working a PR for this issue.

Thanks @kgangerlm. @raghavkaul fyi who is working on some changes to GitLab Code-Review check - https://github.com/ossf/scorecard/pull/2764. If you do send a PR, @raghavkaul can help with reviewing it.

@kgangerlm or @jimrobison can you confirm if this bug was fixed by #3026


[WIP] Fix all containers have the same name

All containers have the same name in web UI but in docker ps shows UUID
Before:

After:

@miq-bot add_label providers/containers, wip
cc @simon3z @moolitayer @zeari @cben , this is wip because the label text is not final. review and ideas about label text are welcome.

@yaacov

could you change to pr title to reflect the fact that you are making ui names unique (Display unique names in containers explorer?)

container names are unique inside pods according to kubernetes docs so that's good
Both pod and container names can be up to 63 chars (I tried to create and god error messages for both) this screen will probably brake if we have long names so please handle that.

could you change to pr title
...
Both pod and container names can be up to 63 chars (I tried to create and god error messages for both) this screen will probably brake if we have long names so please handle that.

@moolitayer Thanks, changed the title, checked with long names (63 * 2) it's ok :+1:

@yaacov can you move this unique name in a method on the model so it can be reused in other parts of the code (and UI), as for example on the timeline. Thanks.

@miq-bot assign yaacov

can you move this unique name in a method on the model

@simon3z thanks, this looks much better now.

@simon3z Looking at the screenshot and at the screen, this view does not make sense to me, maybe you can explain.

Why do we have a relationships accordion on the left of this screen? only the second accordion - All Containers makes sense to me. (vms have one accordion piece for vm or templates, second for vms and third for templates)
In the second accordion we have one filter called Type / Container. we have too container classes
(ContainerKubernetes and Container) it isn't clear from the filter name that these are kubernetes vs openshift containers if that is indeed what that is

Why do we have a relationships accordion on the left of this screen?

@moolitayer  I also think this is wrong: https://github.com/ManageIQ/manageiq/pull/8922

@simon3z @moolitayer @zeari
Dafna asked that the unique name will be <name>-<short uuid>, changed :-)

@simon3z it now fixes the relevant issue, is it time to assign it to someone ?

@yaacov can you update description with link to Bugzilla.  Please do the same for the commit message (see https://github.com/ManageIQ/guides/blob/master/coding_style_and_standards.md#commits).

can you update description with link to Bugzilla. Please do the same for the commit message

@chessbyte fixed :ice_cream:

@yaacov can you update description with link to Bugzilla. Please do the same for the commit message (see https://github.com/ManageIQ/guides/blob/master/coding_style_and_standards.md#commits).

fyi @alongoldboim @dkorn @cben @enoodle @zeari @zakiva I don't remember exactly who but some of us where talking about this today

@simon3z @moolitayer @zeari
Dafna asked that the unique name will be -, changed

@yaacov personally I find hard to understand what I see. We could have even invented any random set of letters to differentiate them. I have no idea how you can make sense out it.
Just to understand... what are you/Dafna expecting the <uuid> to represent?

perhaps we use the pod name but we have a + next to it to expend it and see the containers?

@simon3z using Dafna's suggestion we now use folders. Updated  the screenshot in PR description.

@simon3z using Dafna's suggestion we now use folders. Updated the screenshot in PR description.

@yaacov nice! Let's make sure that the labels are correct... my main concern is that the label says "All Containers" but then the first entries that you find (folders) are Pods.

... the label says "All Containers" but then the first entries that you find (folders) are Pods.

@simon3z the label is now "All Pods / Containers"
@moolitayer @alongoldboim any suggestions ? :cat2: :cat2:

@simon3z the label is now "All Pods / Containers"
@moolitayer @alongoldboim any suggestions ?

I like "All Containers (sorted by Pods)"

@zakiva :ribbon: cahnged to "All Containers (by Pods)"

@yaacov @simon3z First of all really nice change, a lot clearer. (@yaacov suggestion is nice)

Please do the same for the commit message

@chessbyte fixed the commit message too.

LGTM :+1:
@dclarizio @h-kataria can you review? (Both UI look and code if you have time)
@miq-bot assign chessbyte

please, rebase

@yaacov : I am sorry I tool the PRs in the wrong order and now you need to rebase this one.
More over there will be a special PR for darga needed as the tree builder changes should not go to darga :-(

looks good

@martinpovolny  thanks for the map tip fixed  :cat:
The i18n need to be N_()  or _() ?

I believe that the TreeBuilder is instantiated at the time of the request with locale set so _(). Also I don't see a _() call in the TreeNodeBuilder that would make me think that the translation is done there.
_() should be correct.

Backported via https://github.com/ManageIQ/manageiq/pull/8995


FileSystemException: Cannot open file, path = 'GeigerApi.miCyberrangePlugin.state' (OS Error: Read-only file system, errno = 30)

Describe the bug
Cannot initialize the Geiger API
Environmental information

Bug on: Android Device (Android 8.1.0)/ Android Emulator (Android 11 - sdk 30)
dependencies (pubspec.yaml)

dependencies:
  flutter:
    sdk: flutter
  path: ^1.8.0
  sqlite3_flutter_libs: ^0.5.0
  sqflite: ^2.0.0+4
  package_info_plus: ^1.3.0
  # geiger_localstorage: ^0.5.6
  geiger_api: ^0.5.3
  permission_handler: ^8.3.0

To Reproduce
Try to get geiger api while starting the application
try {
    geigerApi = await getGeigerApi('<unspecified>', 'miCyberrangePlugin');
  } catch (e) {
    log('Failed to get the GeigerAPI');
    log(e.toString());
  }

Full source code can be found here (simple & short): https://github.com/luongnv89/geiger_api_test/blob/geiger_api/lib/main.dart
Expected behavior
The application can start, all the permissions have been granted, but failed to create the Geiger API
Screenshots
If applicable, add screenshots to help explain your problem (please: no code in screenshots).
I/flutter ( 5140): storagePermissionStatus: PermissionStatus.granted
I/flutter ( 5140): manageExternalStoragePermissionStatus: PermissionStatus.granted
E/flutter ( 5140): [ERROR:flutter/lib/ui/ui_dart_state.cc(209)] Unhandled Exception: FileSystemException: Cannot open file, path = 'GeigerApi.miCyberrangePlugin.state' (OS Error: Read-only file system, errno = 30)
E/flutter ( 5140): #0      _File.open.<anonymous closure> (dart:io/file_impl.dart:356:9)
E/flutter ( 5140): #1      _rootRunUnary (dart:async/zone.dart:1436:47)
E/flutter ( 5140): #2      _CustomZone.runUnary (dart:async/zone.dart:1335:19)
E/flutter ( 5140): <asynchronous suspension>
E/flutter ( 5140):
[log] Start building the application

Additional context

add permission_handler package to handle the permission
All permissions have been granted (as the log shows)

Possible cause of the problem

when reading/writing the plugin state, the path of the file GeigerApi.miCyberrangePlugin.state is not in a good location (means not in the sandbox of Android application).
maybe we can add path_provider to have the correct path of the file

Directory appDocDirectory = await getApplicationDocumentsDirectory();

new Directory(appDocDirectory.path+'/'+'dir').create(recursive: true)
// The created directory is returned as a Future.
    .then((Directory directory) {
  print('Path of New Dir: '+directory.path);
});

Update
Adding path_provider have resolved the problem with the path.
Future<String> getPluginPath(String pluginId) async {
  Directory dirPath = await getApplicationDocumentsDirectory();
  return '${dirPath.path}/$pluginId';
}

Future<void> initGeigerAPI() async {
  try {
    String pluginIDFile = await getPluginPath('miCyberrangePlugin');
    log('PluginID file path $pluginIDFile');
    geigerApi = await getGeigerApi('<unspecified>', pluginIDFile);
  } catch (e) {
    log('Failed to get the GeigerAPI');
    log(e.toString());
  }
}

But then it leads to another problem
I/flutter ( 5584): storagePermissionStatus: PermissionStatus.granted
I/flutter ( 5584): manageExternalStoragePermissionStatus: PermissionStatus.granted
[log] PluginID file path /data/user/0/com.example.toolbox_api_test/app_flutter/miCyberrangePlugin
E/flutter ( 5584): [ERROR:flutter/lib/ui/ui_dart_state.cc(209)] Unhandled Exception: FileSystemException: Cannot open file, path = 'GeigerApi./data/user/0/com.example.toolbox_api_test/app_flutter/miCyberrangePlugin.state' (OS Error: No such file or directory, errno = 2)
E/flutter ( 5584): #0      _File.open.<anonymous closure> (dart:io/file_impl.dart:356:9)
E/flutter ( 5584): #1      _rootRunUnary (dart:async/zone.dart:1436:47)
E/flutter ( 5584): #2      _CustomZone.runUnary (dart:async/zone.dart:1335:19)
E/flutter ( 5584): <asynchronous suspension>

-> At the beginning the plugin state file does not exist

I have tried to simplify the test by using the Master Plugin API,
flushGeigerApiCache();
geigerApi = await getGeigerApi('', GeigerApi.masterId, Declaration.doNotShareData);

it threws the same system error
E/flutter ( 7555): [ERROR:flutter/lib/ui/ui_dart_state.cc(209)] Unhandled Exception: FileSystemException: Cannot open file, path = 'GeigerApi.__MASTERPLUGIN__.state' (OS Error: Read-only file system, errno = 30)
E/flutter ( 7555): #0      _File.open.<anonymous closure> (dart:io/file_impl.dart:356:9)
E/flutter ( 7555): #1      _rootRunUnary (dart:async/zone.dart:1436:47)
E/flutter ( 7555): #2      _CustomZone.runUnary (dart:async/zone.dart:1335:19)
E/flutter ( 7555): <asynchronous suspension>

I think we are still dealing with the different structure (directory path) of the application in PC environment vs mobile environment.

Published a version on the development branch. If someone could confirm that the issue is gone it would be great.

I can confirm that the new update has fixed the problem relates to the read-only file system. This issue can be closed. Bravo & thank to @martingwerder

Thanks for confirming. I will publish it as 0.5.4 on pub.dev


 In zsh, this is configurable: words are defined as sequences of (alphanumeric || in $WORDCHARS) characters. By default $WORDCHARS is *?_-.[]~=/&;!#$%^(){}<>, and removing the / from there accomplishes the fish behavior.

@myfreeweb this repo is inactive, and was forked https://gitlab.redox-os.org/redox-os/liner


chore: errors modals redesign (Issue #90)

Issue: https://github.com/epam/ai-dial-chat/issues/90

/deploy-review


[JENKINS-42959] Support Ed25519 and EDDSA host keys

Trilead just gained support for Ed25519 and EDDSA algorithms, so update
the hardcoded list in the manual key verification step to support them.
Add a isClass() method to allow using classes in a newer Trilead version
while still retaining backwards compatibility with old Jenkins versions.
Fix a few typos that I noticed while adding this.

cc @mc1arke, as you had mentioned in https://issues.jenkins-ci.org/browse/JENKINS-42959?focusedCommentId=297782&page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#comment-297782 that this needed to be done.

@reedloden I assume you have written this code without a Java IDE. I think it's more easier to get a running code if I provide a complete patch. I just forked the repo and pushed the patched commit here. I'm not sure if it's possible to change the base branch of a PR. If yes you can just switch to the more-key-algs of my fork. Otherwise you have to pull the commit to your repository.

@coder-hugo yup, as I mentioned in one of my comments, I have not written Java in ~10 years. I got hit by this particular bug, so figured I would try to fix it, but that's been a bit more complicated than I originally thought. Thank you so much for the help! :)

@reedloden @coder-hugo There are other changes needing made to allow the new key types to work properly: we have to set the preferred key types on the connection and really want to make sure we use the new methods in Trilead for parsing key types where possible. These new methods have been built to allow new key types to be added in the future without any dependent users - such as ssh-slaves - having to update a manual mapping of algorithms to Trilead classes.
If you're prepared to wait then I can raise a PR later today containing all the necessary changes to use new Trilead features in a backwards compatible way

@mc1arke do you want to just take this over then (especially since it needs so much additional work)? Happy to turn this over to you. :)

@reedloden I'm happy to take on the change. Since I'll approach it in a different way, I wont be basing it on the contents of this PR, so feel free to close this PR. I also wont be including the fix to the typos in the translations as part of my PR since they're unrelated to the functionality change, so also feel free to raise a separate PR to cover them. Thanks for looking at this though.

Sure, closing this out, and I'll open a new PR just for the typos.


NIP -50

Header is verified in CDR files.
@frankhuster : Please review it.
Also, suggest me that while sorting a file,is it right to remove header from sorted file?
I have not removed it yet and processed it as you coded.

If you make sure the file is sorted in descending order then the first line
will still be the header,
so change this line
https://github.com/motech-implementations/mim/blob/master/imi/src/main/java/org/motechproject/nms/imi/service/impl/SortHelper.java#L68
to
String command = String.format("%s -t , -k 1,1r -k 4,4n -o %s %s",
getSortBinary(),
should do the trick
ps: note I added 'r' to the -k 1,1 argument
On Mon, Jul 6, 2015 at 4:44 PM, srivastavaAbhi<EMAIL_ADDRESS>wrote:

Header is verified in CDR files.
@frankhuster https://github.com/frankhuster : Please review it.
Also, suggest me that while sorting a file,is it right to remove header
from sorted file?
I have not removed it yet and processed it as you coded.
You can view, comment on, or merge this pull request online at:
https://github.com/motech-implementations/mim/pull/457
Commit Summary

NIP -50

File Changes

M
imi/src/main/java/org/motechproject/nms/imi/service/impl/CdrFileServiceImpl.java
https://github.com/motech-implementations/mim/pull/457/files#diff-0
(229)
M
testing/src/test/java/org/motechproject/nms/testing/it/utils/CdrHelper.java
https://github.com/motech-implementations/mim/pull/457/files#diff-1
(10)

Patch Links:

https://github.com/motech-implementations/mim/pull/457.patch
https://github.com/motech-implementations/mim/pull/457.diff

—
Reply to this email directly or view it on GitHub
https://github.com/motech-implementations/mim/pull/457.

--
Frank Huster
Mobile Health Innovations
Grameen Foundation
+1.206.325.6690 x201

@frankhuster  : I have done the correction. Please check

@srivastavaAbhi is traveling, I'll try to take that over tomorrow and make the changes I suggested in the CR.


Bug Report: Story Mode Week Songs freeze their cameras after the first song, but in Freeplay the cameras work just fine.

Please check for duplicates, similar issues or closed issues with the same problem, as well performing simple troubleshooting steps (such as deleting the export folder if it's an issue with compiling, reinstalling Kade Engine) before submitting an issue.
If you are playing a downloaded version of the game, what operating system are you using?
Windows (x86), Windows (x86_64), Linux, or macOS? Specify below.
I am on Windows 10, x64 bit operating system.
What version of the game are you using? Look in the bottom left corner of the main menu.
I am currently using Kade Engine 1.7
Have you identified any steps to reproduce the bug? If so, please describe them below. Use images if possible.
The bug occurs whenever you play a week. The first song plays normally, but every single song after it becomes bugged.
Please describe your issue. Provide extensive detail and images if possible.
The bug goes like this: As soon as the "3, 2, 1, Go!" finishes playing, all the characters will play their idle once, and will then become stuck in their idle for the rest of the song. Gf will bop her head to the side once, then stays still with her head straight up for the rest of the song as well.
Another thing is that the camera will no longer move. After the song starts playing, it will focus the camera to the character which is being focused on in the first section of the song's chart, and will stay stuck for the rest of the song. The picture below is what happened; bf and the opponent stayed still, gf's pose is now straight up, etc.
One thing to note is that the characters' poses work fine. Although that doesnt fix the problem. I also tried dying intentionally, resetting the song, but the problem persists.
The weirdest part about thi is that the songs work fine in Freeplay. Every song in freeplay works fine, the cameras move, bf and the opponent do their poses, gf bops her head, the usual.
I have already compared the charts and nothing seems to be off about the charts.

have you found any solutions yet?

https://drive.google.com/file/d/1Fr4MUfnHhV_mgV-FdjJbrYV8ly2dcL7x/view?usp=sharing
here is a video showcasing the bug,

Is there a solution for 1.7?

Is there a solution for 1.7?

i would recommend you just update your code to 1.8 because 1.7 isn't updated anymore, that's how old versions work


No way to seed random numbers

It would be a useful feature to be able to seed the random number generator, possibly by putting the seed value as an argument of the rnd function.
Also, how is the initial random number seed selected? I always get the same sequence of numbers when running my code in an emulator.

Hi. The random number generator is initially seeded with the current jiffy clock value:
https://github.com/neilsf/XC-BASIC/blob/b3ccea67fc8871d43dbc493f397f7bce9b72b5e5/lib/stdlib.asm#L301
This should be random enough if you start your program manually. However if you autoload it in your emulator, the jiffy clock value will always be the same when the program starts. The same happens in games, try Lazy Jones for example, you'll get the same room layout every time you run the program in the emulator.
I can add an argument to RND() but can you please explain how it should work? What seed would make the randomizer be more random?

Thanks for the explanation. Being able to seed the random number generator isn't to make it more random; I'm interested in procedurally generating levels, and being able to seed the rnd lets you get the same level repeatedly for testing.
It also lets you take the approach of a game like Elite, where the galaxy is procedurally generated, but from the same seed each time.
Also, it could also be used to get over the problem of getting the same sequence of numbers when running in an emulator, as you could re-seed the rnd with the jiffy clock after waiting for a key press.

All right, good idea, I'll schedule this improvement for v3.

Thanks!
As a temporary work around I've been using doke $0adc, seed, to put a value directly at the location of the random label in stdlib.asm. I'm guessing this address will move around with changes to the code though.

It's not a stable location of course. But it should work until the next upgrade at least.


OMG model is too good and speed is too bad

Hi @ddshan
you have done a great job gathering different datasets and trained on large size network like Faster RCNN with 101 back Xception as backbone. I was wondering how useful this model can be if some wants to deploy it on nvidia jetson TX2 or Xaiver or NX etc. Because speed is such an issue here. I have tested the model on jetson tx2 but the speed is less then 1 fps. Did you try to optimize the model ro have plans near in future ? For example:
https://github.com/facebookresearch/detectron2/tree/master/tools/deploy
have you also trained on networks with backbone MobilenetV2 ?
I would really appreciate if you could tell me how to improve the speed on jetson tx2 ?

@muhammadabdullah34907 If you can have the data, I can train a faster and accurate hand detector

Hi @muhammadabdullah34907
I added demo_batch.py file in the repo to do batch prediction. It can process several images together at a time which improves the speed a lot. Please let me know if this solves your speed problem.
We always want to optimize the model if possible. Currently, we do not have the plan to do the deployment.

@jinfagang do you have any update on this ?


Not able to create project with LaunchDarkly template

Error while creating release definition: Tasks with versions 'LaunchDarkly Rollout:3.*' are not valid for deploy job 'Agent job' in stage Stage 1.

@dineshtest12 Kindly refer to https://github.com/microsoft/AzureDevOpsDemoGenerator/issues/626
In ADO, go to your organization settings. Got To Policies (under Security) and enable Third-party application access via OAth
Thanks


Marked deprecated functions as #[deprecated], added panic message.

I encountered problems while running a gfx-rs example on windows, which were due to the use of a deprecated function call. To make the issue more explicit, I've marked in some missing #[deprecated] attributes and added a message to the panic macro it called. I've also added #[deprecated] to another function that is marked as such in the comments.

Thanks. These functions were deprecated before #[deprecated] existed.
Will merge when CI passes.

What was platform_window deprecated in favor of? Glutin still seems to use it at line 51 of src/platform/windows/context.rs
 let context_result = unsafe {
            let w = window.platform_window() as winapi::HWND;
            match gl_attr.version {
                GlRequest::Specific(Api::OpenGlEs, (_major, _minor)) => {
                    if let Some(egl) = egl {
                        if let Ok(c) =
                               EglContext::new(egl.clone(),
                                               &pf_reqs,
                                               &gl_attr.clone().map_sharing(|_| unimplemented!()),
                                               egl::NativeDisplay::Other(Some(ptr::null())))
                            .and_then(|p| p.finish(w)) {
                            Ok(Context::Egl(c))
                        } else {
                            WglContext::new(&pf_reqs, &gl_attr, w).map(Context::Wgl)
                        }

                    } else {
                        // falling back to WGL, which is always available
                        WglContext::new(&pf_reqs, &gl_attr, w).map(Context::Wgl)
                    }
                }
                _ => WglContext::new(&pf_reqs, &gl_attr, w).map(Context::Wgl),
            }
        };
        context_result.map(|context| (window, context))
    }

@ConorLPBoyle You're supposed to use this function (which is available only on win32): https://docs.rs/winit/0.7.3/x86_64-pc-windows-gnu/winit/os/windows/trait.WindowExt.html

Keeping functionality does make more sense than a hard panic, good call.


I have a big question

On AID, we are able to delete our datas and delete them from the trash bin.
But are these stored still?
Because if they're not, I don't see the point in deleting them anymore.

I'm willing to bet that they are for legal reasons, but may or may not still be accessible. That'd be a question for @NickWalton or another team member of Ai Dungeon

I'd expect the answer to be found in the breach

I don't think I saw any evidence of deleted resources being returned by the API, but I didn't do a thorough check.  However, from what the devs have said on Discord, the data is still stored on their servers, and to delete it fully you would need to file a CCPA or GDPR article 17 request to their support.  I think you can also simply support that all your data is deleted without citing either of those two laws, but I haven't actually gone through the process myself.

Is the data still stored even if the account is deleted?

Is the data still stored even if the account is deleted?

Yes, to delete if fully, BEFORE REMOVING THE ACCOUNT, follow those instructions
https://www.reddit.com/r/AIDungeonNSFW/comments/n0c5ij/ultimate_guide_to_deleting_your_ai_dungeon/

On AID, we are able to delete our datas and delete them from the trash bin.
But are these stored still?
Because if they're not, I don't see the point in deleting them anymore.

When you are deliting your story, IT'S STILL in the trash bin. The only way to erase them - the using this guide
https://www.reddit.com/r/AIDungeonNSFW/comments/n0c5ij/ultimate_guide_to_deleting_your_ai_dungeon/


[swift-xcodegen] Fails to generate an Xcode project when "build" directory is a symbolic link.

Description
You may want to separate "build" directory from the Swift project directory.
In such case, you might create a symbolic link.
However, 'swift-xcodegen' doesn't seem to assume such a situation.
Reproduction
Given the composition like below:
% pwd
/Volumes/swift-project

% ls -g -o
total 0
lrwxr-xr-x   1     33 12 14  2021 build -> /Users/yockow/swift-project-build
drwxr-xr-x  34   1088  7  9 10:43 cmark
drwxr-xr-x  35   1120 11  7 15:32 llbuild
drwxr-xr-x  45   1440 11  7 12:47 llvm-project
drwxr-xr-x   1     34  7  5 17:12 ninja
drwxr-xr-x  36   1152 11  7 12:31 swift
drwxr-xr-x  23    736 11  7 15:32 swift-argument-parser
drwxr-xr-x   1     46  7  8 16:59 swift-collections
drwxr-xr-x  17    544 11  7 12:53 swift-corelibs-foundation
drwxr-xr-x  27    864  8 30 12:08 swift-corelibs-libdispatch
drwxr-xr-x  18    576  8 30 12:08 swift-corelibs-xctest
drwxr-xr-x   1     41  7  8 17:02 swift-crypto
drwxr-xr-x  17    544 11  7 15:32 swift-driver
drwxr-xr-x  15    480  8 30 12:13 swift-experimental-string-processing
drwxr-xr-x  17    544 11  7 15:15 swift-foundation
drwxr-xr-x  12    384  9 26 16:50 swift-foundation-icu
drwxr-xr-x  34   1088 11  7 15:27 swift-llbuild
drwxr-xr-x  33   1056 11  7 14:49 swift-syntax
drwxr-xr-x   1     41  7 29 12:00 swift-system
drwxr-xr-x  13    416 11  7 15:32 swift-toolchain-sqlite
drwxr-xr-x  16    512 11  7 15:32 swift-tools-support-core
drwxr-xr-x  31    992 11  7 14:50 swiftpm
drwxr-xr-x   1     33  7 12 10:06 yams

Then try to generate an Xcode project:
% ./swift/utils/generate-xcode ./build/Ninja-ReleaseAssert
Building for production...
[1/1] Write swift-version--58304C5D6DBC2206.txt
Build of product 'swift-xcodegen' complete! (0.23s)
info: Generating project for '/Users/yockow/swift-project-build/Ninja-ReleaseAssert'...
error: '/Users/yockow/swift' not found

Expected behavior
'swift-xcodegen' can find the repository.
Environment
Hash of 'swiftlang/swift' repository: 7a43b44a2e2.
swift-driver version: 1.115 Apple Swift version 6.0.2 (swiftlang-<IP_ADDRESS>.2 clang-16<IP_ADDRESS>)
Target: arm64-apple-macosx15.0

Additional information
No response

@hamishknight
https://github.com/swiftlang/swift/blob/0d7054b6377ab6b3d0e040f46d3a6bf53a8e36f3/utils/swift-xcodegen/Sources/swift-xcodegen/SwiftXcodegen.swift#L292
Removing .resolvingSymlinks from let buildDirPath = buildDir.absoluteInWorkingDir.resolvingSymlinks works for me, but I'm not sure it's a universal solution.

Sorry, but I overlooked --project-root-dir option.
Closing this.

We ought to be able to infer the project root from the location of swift-xcodegen itself, filed #77478

I am going to triage this as a duplicate. Other resolution kinds feel less appropriate.

Duplicate of #77478