Lastest release on pip (<IP_ADDRESS>) fails install on Windows (Python 2/3)

Expected behaviour
pip install opencv-python should succeed gracefully on all targets.  Works correctly for all versions earlier than  <IP_ADDRESS> (running <IP_ADDRESS> locally).
Actual behaviour
Running pip install opencv-python fails on both Python 2 and 3 on Windows with the latest version (<IP_ADDRESS>).
Result under Python 3.8:
packages (from opencv-python) (1.19.1)
Building wheels for collected packages: opencv-python
  Building wheel for opencv-python (PEP 517) ... error

[[[[[ ATTEMPTS TO FIND A C COMPILER ]]]]]

  ERROR: Failed building wheel for opencv-python
Failed to build opencv-python
ERROR: Could not build wheels for opencv-python which use PEP 517 and cannot be installed directly

Result under Python 2.7:
(py27) C:\Users\Breakthrough\Documents\VirtualEnvs\py27\Scripts>pip install opencv-python --upgrade
DEPRECATION: Python 2.7 reached the end of its life on January 1st, 2020. Please upgrade your Python as Python 2.7 is no longer maintained. pip 21.0 will drop support for Python 2.7 in January 2021. More details about Python 2 support in pip, can be found at https://pip.pypa.io/en/latest/development/release-process/#python-2-support
Collecting opencv-python
  Using cached opencv-python-<IP_ADDRESS>.tar.gz (88.0 MB)
  Installing build dependencies ... done
  Getting requirements to build wheel ... error
  ERROR: Command errored out with exit status 1:
   command: 'C:\Users\Breakthrough\Documents\VirtualEnvs\py27\Scripts\python.exe' 'C:\Users\Breakthrough\Documents\VirtualEnvs\py27\lib\site-packages\pip\_vendor\pep517\_in_process.py' get_requires_for_build_wheel 'c:\users\Breakthrough\appdata\local\temp\tmpae1fpf'
       cwd: c:\users\Breakthrough\appdata\local\temp\pip-install-oxqgbg\opencv-python
  Complete output (22 lines):
  Traceback (most recent call last):
    File "C:\Users\Breakthrough\Documents\VirtualEnvs\py27\lib\site-packages\pip\_vendor\pep517\_in_process.py", line 280, in <module>
      main()
    File "C:\Users\Breakthrough\Documents\VirtualEnvs\py27\lib\site-packages\pip\_vendor\pep517\_in_process.py", line 263, in main
      json_out['return_val'] = hook(**hook_input['kwargs'])
    File "C:\Users\Breakthrough\Documents\VirtualEnvs\py27\lib\site-packages\pip\_vendor\pep517\_in_process.py", line 114, in get_requires_for_build_wheel
      return hook(config_settings)
    File "c:\users\Breakthrough\appdata\local\temp\pip-build-env-alnx4n\overlay\Lib\site-packages\setuptools\build_meta.py", line 146, in get_requires_for_build_wheel
      return self._get_build_requires(config_settings, requirements=['wheel'])
    File "c:\users\Breakthrough\appdata\local\temp\pip-build-env-alnx4n\overlay\Lib\site-packages\setuptools\build_meta.py", line 127, in _get_build_requires
      self.run_setup()
    File "c:\users\Breakthrough\appdata\local\temp\pip-build-env-alnx4n\overlay\Lib\site-packages\setuptools\build_meta.py", line 243, in run_setup
      self).run_setup(setup_script=setup_script)
    File "c:\users\Breakthrough\appdata\local\temp\pip-build-env-alnx4n\overlay\Lib\site-packages\setuptools\build_meta.py", line 142, in run_setup
      exec(compile(code, __file__, 'exec'), locals())
    File "setup.py", line 448, in <module>
      main()
    File "setup.py", line 99, in main
      % {"ext": re.escape(sysconfig.get_config_var("EXT_SUFFIX"))}
    File "C:\Python27\lib\re.py", line 210, in escape
      s = list(pattern)
  TypeError: 'NoneType' object is not iterable
  ----------------------------------------
ERROR: Command errored out with exit status 1: 'C:\Users\Breakthrough\Documents\VirtualEnvs\py27\Scripts\python.exe' 'C:\Users\Breakthrough\Documents\VirtualEnvs\py27\lib\site-packages\pip\_vendor\pep517\_in_process.py' get_requires_for_build_wheel 'c:\users\Breakthrough\appdata\local\temp\tmpae1fpf' Check the logs for full command output.

Steps to reproduce
Install <IP_ADDRESS> via pip on any Windows machine.  It fails on both Python 2.7 and 3.x.  Linux seems okay for Python 3.x, haven't tested Python 2.7, and not an OSX user.
This seems to be affecting my Travis.CI and ReadTheDocs builds as well, which makes me think this might not be related to the latest changes I pushed to my repo, but rather, the latest release of this package (or one of the releases since version <IP_ADDRESS>).

Can confirm we are seeing this in our CI as well (running python2.7 on ubuntu).
[31m ERROR: Command errored out with exit status 1:

command: /home/jenkins/workspace/datavault_PR-1768/.venv/bin/python /home/jenkins/workspace/datavault_PR-1768/.venv/lib/python2.7/site-packages/pip/_vendor/pep517/_in_process.py get_requires_for_build_wheel /tmp/tmpMPFq4u

cwd: /tmp/pip-install-jdznwV/opencv-python

Complete output (22 lines):

Traceback (most recent call last):

File "/home/jenkins/workspace/datavault_PR-1768/.venv/lib/python2.7/site-packages/pip/_vendor/pep517/_in_process.py", line 280, in <module>

main()

File "/home/jenkins/workspace/datavault_PR-1768/.venv/lib/python2.7/site-packages/pip/_vendor/pep517/_in_process.py", line 263, in main

json_out['return_val'] = hook(**hook_input['kwargs'])

File "/home/jenkins/workspace/datavault_PR-1768/.venv/lib/python2.7/site-packages/pip/_vendor/pep517/_in_process.py", line 114, in get_requires_for_build_wheel

return hook(config_settings)

File "/tmp/pip-build-env-qO9YN0/overlay/lib/python2.7/site-packages/setuptools/build_meta.py", line 146, in get_requires_for_build_wheel

return self._get_build_requires(config_settings, requirements=['wheel'])

File "/tmp/pip-build-env-qO9YN0/overlay/lib/python2.7/site-packages/setuptools/build_meta.py", line 127, in _get_build_requires

self.run_setup()

File "/tmp/pip-build-env-qO9YN0/overlay/lib/python2.7/site-packages/setuptools/build_meta.py", line 243, in run_setup

self).run_setup(setup_script=setup_script)

File "/tmp/pip-build-env-qO9YN0/overlay/lib/python2.7/site-packages/setuptools/build_meta.py", line 142, in run_setup

exec(compile(code, __file__, 'exec'), locals())

File "setup.py", line 448, in <module>

main()

File "setup.py", line 99, in main

% {"ext": re.escape(sysconfig.get_config_var("EXT_SUFFIX"))}

File "/usr/lib/python2.7/re.py", line 210, in escape

s = list(pattern)

TypeError: 'NoneType' object is not iterable

----------------------------------------

ERROR: Command errored out with exit status 1: /home/jenkins/workspace/datavault_PR-1768/.venv/bin/python /home/jenkins/workspace/datavault_PR-1768/.venv/lib/python2.7/site-packages/pip/_vendor/pep517/_in_process.py get_requires_for_build_wheel /tmp/tmpMPFq4u Check the logs for full command output.

[Pipeline] }

Python 2.7 support was dropped in <IP_ADDRESS> (https://github.com/skvark/opencv-python/releases/tag/34). However, the setup.py is missing python_requires='>=3.5', I will add it in the next release. After that Python 2.7 should be ignored properly in new releases.
If you are using Python 3, then the issue is that the new source distribution is kicking in because the Windows builds haven't yet completed (it takes almost a day to build all Windows wheels...):
https://ci.appveyor.com/project/skvark/opencv-python/builds/34563450
I highly recommend to pin your dependencies to certain versions to avoid this kind of issues.

Summary:
@Breakthrough Pin your opencv-python version to avoid the issue. Otherwise there will be always a short period of time (10 - 24 hours) during new opencv-python releases when your builds will fail since all opencv-python wheels haven't yet been uploaded to PyPI.
@harlowja PyPI metadata cannot be updated (https://github.com/pypa/warehouse/issues/2170) so there's nothing I can do to fix the Python 2.7 issue. Since you are using Python 2.7, pin your opencv-python version to latest supported version which is <IP_ADDRESS>.
Python 2.7 is considered legacy software and hasn't been supported here since its discontinuation in January 2020. Please update to Python 3: https://github.com/skvark/opencv-python/issues/152

@skvark is it possible to defer uploading the new package until the wheels have been built?  I was hoping to avoid falling into dependency hell, but it seems like with this release process, it's unavoidable now if the latest releases won't gracefully install after a period of time... So I might have to pin the version as you mentioned, was just trying to avoid that until absolutely necessary.
Is this something that could be resolved by infrastructure changes, or am I maybe missing something? Also, is there a way to specify different requirement files across Python 2.7 or 3, or should I just pin my package to <IP_ADDRESS> until I deprecate Python 2.7?

OpenCV is a very heavy package to build and I'm limited by the computing power of the free CI instances which Travis and Appveyor are providing. This issue would not exist if I had 40+ concurrent workers in the CI systems which is obviously not possible.
I'm not aware of any built-in feature in Travis which would allow deferring deployment. Appveyor stores the build artifacts, but still logic for detecting successful builds and uploading would have to be built separately. So webhooks / serverless stuff etc. which I would have to manage and host. Not really in the scope of this project. I do store the Travis build artifacts to Azure Storage, but that already costs me a couple of euros per month (we are talking here hundreds of gigabytes of build artifacts).
Version pinning is something which should be always done to ensure repeatable builds: https://pip.pypa.io/en/stable/user_guide/#pinned-version-numbers
Yeah, requirements.txt supports environment markers (I did not test the syntax, but you get the idea):
opencv-python==<IP_ADDRESS> ; python_version < '3.0'
opencv-python ; python_version >= '3.5'

@skvark Thank you for the explanation and the link.  Will work on getting that setup for my package, much appreciated!


Outline View

linear process kind of 'a -> (c -> STOP [] b -> STOP)' isn't being shown on correct way

Problema resolvido


File transport ignores formatter when json not explicitly set to false

I'm not sure if the following behavior is on purpose but at least I think the documentation is misleading.
The documentation for File Transport states:

json: If true, messages will be logged as JSON (default true).
...
formatter: If function is specified, its return value will be used instead of default output. (default undefined)

The formatter is ignored when setting a formatter and not specifying json as in
var winston = require('winston');
var logger = new (winston.Logger)({
  transports: [
    new (winston.transports.File)({
	  filename: 'somefile.log',
	  formatter: function(options) {
		return "message"
	  }
	})
  ]
});

As json defaults to true and common.log() handles json before formatter, the formatter function is never called.
Adding json: false to the transport configuration fixes this issue:
var winston = require('winston');
var logger = new (winston.Logger)({
  transports: [
    new (winston.transports.File)({
	  filename: 'somefile.log',
          json: false,
	  formatter: function(options) {
		return "message"
	  }
	})
  ]
});

Interestingly enough this doesn't happen with the Console transport. Although not documented, the Console transport accepts json, too, but defaults to false. At least when json: true is specified, the formatter function is ignored, too.

I got also caught by this. It would be nice if winston f.ex. threw an error if formatter is set but effectively ignored due to json == true

At least the documentation has been clarified with the change to README.md https://github.com/winstonjs/winston/commit/009880a54d6c6ff43f88822008d1edbdc8354c61 .

This is a natural bug from the way that formatting options are passed to transports currently. We can't fix the broken system. Instead we should be setting up a better custom formatting pipeline using streams. This is one (if not the biggest) goal for<EMAIL_ADDRESS>


The bot doesn't work with the new fee structure.

Need to add the wxFeeCalculator = pw.WXFeeCalculator() function to calculate the new fee.

The Code of that bot would need quite a bit of tweaking to work properly again.
We are using it mostly to learn about PyWaves and WavesExchange. It is educational material for us, and we'd love to see it work properly.
@kinbitz, I like your contribution, however, we will have a problem with linne 50 of your fork:
if sell_balance > tranche_size: o = BLACKBOT.sell(PAIR, tranche_size, price, maxLifetime=ORDER_LIFETIME, matcherFee=ORDER_FEE)
It still grabs an old ORDER_FEE config and on the attempt of creating a sell order in the grid, it throws an error.
I tried to fix it but haven't managed yet.
In the example of the WX-USDN pair, I changed line 47 a little to pay fee in WX instead USDN:
Replaced:
matcherFeeAssetId=priceAssetID
To:
matcherFeeAssetId=amountAssetID
Are you able to help to fix the fee calculation for the sale orders? Thanks


sendKeys to non-input element.

I've noticed a problem with PhantomJS trying to use sendKeys when the target is not an input element. It seems to be trying to read the 'value' property of whatever element you send keys to, which non-inputs don't have, and this causes the request to fail.
My specific use case is this, but it applies to a variety of wysiwyg editors:
http://summernote.org/#/

You notice that in order to write text to it, you simply hit the empty area and start typing. Unfortunately that empty area is a div, not an input.
The error which results is a bit cryptic:
rg.openqa.selenium.WebDriverException: Error Message => ''undefined' is not an object (evaluating 'a.value.length')'
 caused by Request => {"headers":{"Accept-Encoding":"gzip,deflate","Connection":"Keep-Alive","Content-Length":"150","Content-Type":"application/json; charset=utf-8","Host":"localhost:2565","User-Agent":"Apache-HttpClient/4.3.6 (java 1.5)"},"httpVersion":"1.1","method":"POST","post":"{\"id\":\":wdc:1431121777071\",\"value\":[\"Proin lorem ligula, mattis ut aliquet sed, convallis eu sapien. Aliquam condimentum aliquet dolor non dapibus.\"]}","url":"/value","urlParsed":{"anchor":"","query":"","file":"value","directory":"/","path":"/value","relative":"/value","port":"","host":"","password":"","user":"","userInfo":"","authority":"","protocol":"","source":"/value","queryKey":{},"chunks":["value"]},"urlOriginal":"/session/85682a40-f5cb-11e4-b939-db3a397f2d6a/element/%3Awdc%3A1431121777071/value"}
Command duration or timeout: 1.21 seconds
Build info: version: '2.45.0', revision: '5017cb8e7ca8e37638dc3091b2440b90a1d8686f', time: '2015-02-27 09:10:26'
System info: host: 'devolve', ip: '<IP_ADDRESS>', os.name: 'Linux', os.arch: 'amd64', os.version: '3.16.0-31-generic', java.version: '1.8.0_40-internal'
Driver info: org.openqa.selenium.phantomjs.PhantomJSDriver
Capabilities [{applicationCacheEnabled=false, rotatable=false, handlesAlerts=false, databaseEnabled=false, version=1.9.0, platform=LINUX, browserConnectionEnabled=false, proxy={proxyType=direct}, nativeEvents=true, acceptSslCerts=false, driverVersion=1.0.3, locationContextEnabled=false, webStorageEnabled=false, browserName=phantomjs, takesScreenshot=true, driverName=ghostdriver, javascriptEnabled=true, cssSelectorsEnabled=true}]
Session ID: 85682a40-f5cb-11e4-b939-db3a397f2d6a
    at org.openqa.selenium.remote.ErrorHandler.createThrowable(ErrorHandler.java:204)
    at org.openqa.selenium.remote.ErrorHandler.throwIfResponseFailed(ErrorHandler.java:156)
    at org.openqa.selenium.remote.RemoteWebDriver.execute(RemoteWebDriver.java:599)
    at org.openqa.selenium.remote.RemoteWebElement.execute(RemoteWebElement.java:268)
    at org.openqa.selenium.remote.RemoteWebElement.sendKeys(RemoteWebElement.java:89)
    at geb.navigator.NonEmptyNavigator.leftShift_closure30(NonEmptyNavigator.groovy:448)
    at groovy.lang.Closure.call(Closure.java:423)
    at groovy.lang.Closure.call(Closure.java:439)
    at geb.navigator.NonEmptyNavigator.leftShift(NonEmptyNavigator.groovy:447)
    at geb.content.TemplateDerivedPageContent.leftShift(TemplateDerivedPageContent.groovy:27)
    at pkg.XyzExampleSpec.User does a certain thing(XyzExampleSpec.groovy:35)

In other browsers this works fine.
My current workaround is to set the contents of 'note-editable' using jquery's .html method. But it's not ideal.
I'm using version 1.9.0 as it is the latest Ubuntu packaged version, and 2.x doesn't seem to play well with selenium yet, apologies if this issue has been fixed.

Same problem here

Same problem here

With phantomjs 2.1.1 this is still an issue.

Same here. Have anyone found a workaround?

I didn't find a workaround, sadly. I switched to Chrome, it's the same speed, so I don't really bother with PhantomJS any more. Whilst a bit dramatic, it might be a viable option for some people, since it was one of a number of issues.

fwiw this looks related to some of the selenium test failures
org.openqa.selenium.ContentEditableTest#testShouldBeAbleToTypeIntoEmptyContentEditableElement
org.openqa.selenium.ContentEditableTest#testTypingIntoAnIFrameWithContentEditableOrDesignModeSet
org.openqa.selenium.ContentEditableTest#testShouldBeAbleToTypeIntoContentEditableElementWithExistingValue
org.openqa.selenium.ContentEditableTest#testNonPrintableCharactersShouldWorkWithContentEditableOrDesignModeSet
org.openqa.selenium.ContentEditableTest#testShouldBeAbleToTypeIntoTinyMCE
org.openqa.selenium.ContentEditableTest#testShouldAppendToTinyMCE

the selenium tests have the comment Safari: cannot type on contentEditable with synthetic events so this is probably an issue upstream.  unfortunately we are unable to fix this in ghostdriver.
@MikeDevice you can work around this by using the javascipt api for the html WYSIWYG html editor.  both ckeditor and tinymce have javascript apis.

We had this problem with Quill and solved it by having Selenium click the editor input field first.

fwiw i have a fix for this issue.  you need to send a native click to the content editable element.  this element is often in an iframe so you have to calculate these coordinates with the iframes offset.

I have sent a native click to the content editable element, while it doesn't work as well.

Click() before SendKeys() worked for me


issue with installing

I am trying to solve this issue for 3 days , please any one can help
details when running react-native run-android
`* What went wrong:
Execution failed for task ':react-native-contacts:compileDebugJavaWithJavac'.

Compilation failed; see the compiler error output for details.

Try:
Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output. Run with --scan to get full insights.

Get more help at https://help.gradle.org

Deprecated Gradle features were used in this build, making it incompatible with Gradle 6.0.
Use '--warning-mode all' to show the individual deprecation warnings.
See https://docs.gradle.org/5.4.1/userguide/command_line_interface.html#sec:command_line_warnings
BUILD FAILED in 4s
19 actionable tasks: 1 executed, 18 up-to-date
error Could not install the app on the device, read the error above for details.
Make sure you have an Android emulator running or a device connected and have
set up your Android development environment:
https://facebook.github.io/react-native/docs/getting-started.html
error Command failed: ./gradlew app:installDebug. Run CLI with --verbose flag for more details.`

please run gradle with the--warning-mode all flag so we can review the specific deprecations. It's probably something like ./gradlew app:installDebug --warning-mode all in the android folder.

I'm not a specialist, but it seams a problem with Androidx migration... This migration will be mandatory?

@williamgurzoni yes. Read https://medium.com/@yathousen/the-day-google-decided-to-shake-the-react-native-community-4ba5cdd33388 to learn more about the situation.

Followed those steps but I still getting the same error. Any other Idea?

./gradlew app:installDebug --warning-mode all

@morenoh149 the only message I get is:

Task :react-native-contacts:generateDebugRFile UP-TO-DATE
Changing the value for a property with a final value has been deprecated. This will fail with an error in Gradle 6.0.

I'm also encountering something similar. Here's the error output I'm experiencing. I'm using version 4.0.2 of react-native-contacts
When I run ./gradlew app:installDebug --warning-mode all I received the same information @morenoh149 did.
> Task :react-native-contacts:compileDebugJavaWithJavac FAILED
/Users/puma/wigo-mobile/node_modules/react-native-contacts/android/src/main/java/com/rt2zz/reactnativecontacts/ContactsManager.java:50: error: ContactsManager is not abstract and does not override abstract method onActivityResult(int,int,Intent) in ActivityEventListener
public class ContactsManager extends ReactContextBaseJavaModule implements ActivityEventListener {
       ^
/Users/puma/wigo-mobile/node_modules/react-native-contacts/android/src/main/java/com/rt2zz/reactnativecontacts/ContactsManager.java:1053: error: method does not override or implement a method from a supertype
    @Override
    ^
/Users/puma/wigo-mobile/node_modules/react-native-contacts/android/src/main/java/com/rt2zz/reactnativecontacts/ContactsManager.java:1099: error: method does not override or implement a method from a supertype
    @Override
    ^
3 errors

I had the same error, I was using:
versions:
"react-native": "0.57.8",
"react-native-contacts": "^5.0.2",

The build.gradle with:
compileSdkVersion = 27
targetSdkVersion = 27
supportLibVersion = "27.1.1"

In react-native-contacts: 5.0.2 use version 28 in build.gradle, so I had to downgrade to version 4.0.0 of react-native-contacts that use version 27, and now it's working in Android and ios
Working versions:
"react-native": "0.57.8",
"react-native-contacts": "^4.0.0",

interesting. Moving forward most projects should use at least android 28. @Girgetto is there any reason you didn't upgrade your grade to 28 instead of downgrading rnc to 4.0.2?

@morenoh149 I tried to upgrade to 28 but it didn't work

solved at https://github.com/rt2zz/react-native-contacts/issues/395#issuecomment-506326188


fix: adding good data file name to inflector exception

Fixes
1>  GoodData file is getting converted to singular file name i.e GoodDatum as per inflector rules.
Added GoodData to exception, so that file name is not changed.
2>  Added newline in comments in options file.
Checklist

[x] I acknowledge that all my contributions will be made under the project's license
[ ] Run make test-docker
[ ] Verify affected language:

[ ] Generate twilio-go from our OpenAPI specification using the build_twilio_go.py using python examples/build_twilio_go.py path/to/twilio-oai/spec/yaml path/to/twilio-go and inspect the diff
[ ] Run make test in twilio-go
[ ] Create a pull request in twilio-go
[ ] Provide a link below to the pull request

[ ] I have made a material change to the repo (functionality, testing, spelling, grammar)
[ ] I have read the Contribution Guidelines and my PR follows them
[x] I have titled the PR appropriately
[x] I have updated my branch with the main branch
[ ] I have added tests that prove my fix is effective or that my feature works
[ ] I have added the necessary documentation about the functionality in the appropriate .md file
[ ] I have added inline documentation to the code I modified

If you have questions, please create a GitHub Issue in this repository.

Created PR: https://github.com/twilio/twilio-csharp/pull/651


Flask restx/swagger

refactor code using flask-restx and add swagger docs

@huwwww Thanks for the pull! Could you resolve the conflicts?


Early Stopping in DIGITS

Hello there,
is there a way to use early stopping in DIGITS to prevent overfitting or stop training automatically when there is an increase in the validation loss to not waste time with the model?
If there is no such a thing what would be a good way of implementing it and where would be a good place (in the code) to plug it in?
Thank you and kind regards,
Jaka

As far as I know, there is no way to do that. But the best way to have a behavior to something like that is to use the DIGITS API and set up an application to receive the output and then send back a request based on it. Hope this helps. Thank you very much

Hello!
Sounds like a good idea. I will look into it.
It would be nice if DIGITS would support it in the GUI itself thought! Also, I was thinking of checking the validation loss where the data is gathered to create the chart during training and then send an abort to the job when overfitting is "detected".
Thanks for your answer!

Any update on this?
Also in Caffe itself seems you need to recompile a source to add early stopping functionality.
https://stackoverflow.com/questions/40912242/early-stopping-in-caffe


[pipeline config] seg fault when trying to create service principal

Looks like a missing error check
error:
vivazqu@dev-box-vivazqu:~/workspace/build/pp$ azd pipeline config --principal-name foooooo

Configure your GitHub pipeline

  (✓) Done: Checking current directory for Git repository
  |=====  | Creating service principal foooooopanic: runtime error: invalid memory address or nil pointer dereference
[signal SIGSEGV: segmentation violation code=0x1 addr=0x18 pc=0x556ddeee9803]

goroutine 1 [running]:
github.com/azure/azure-dev/cli/azd/pkg/pipeline.(*PipelineManager).Configure(0xc0001ea7e0, {0x556ddf83bd08, 0xc00032c8d0})
        /mnt/vss/_work/1/s/cli/azd/pkg/pipeline/pipeline_manager.go:246 +0xa63
github.com/azure/azure-dev/cli/azd/cmd.(*pipelineConfigAction).Run(0xc00010ea00, {0x556ddf83bd08, 0xc00032c8d0})
        /mnt/vss/_work/1/s/cli/azd/cmd/pipeline.go:174 +0x27e
github.com/azure/azure-dev/cli/azd/cmd/middleware.(*MiddlewareRunner).RunAction.func1({0x556ddf83bd08?, 0xc00032c8d0?})
        /mnt/vss/_work/1/s/cli/azd/cmd/middleware/middleware.go:127 +0x2e8
github.com/azure/azure-dev/cli/azd/cmd/middleware.(*TelemetryMiddleware).Run(0xc000111d30, {0x556ddf83bd08, 0xc0004ef980}, 0xc0005aeb80)
        /mnt/vss/_work/1/s/cli/azd/cmd/middleware/telemetry.go:85 +0x8b8
github.com/azure/azure-dev/cli/azd/cmd/middleware.(*MiddlewareRunner).RunAction.func1({0x556ddf83bd08, 0xc0004ef980})
        /mnt/vss/_work/1/s/cli/azd/cmd/middleware/middleware.go:125 +0x2a2
github.com/azure/azure-dev/cli/azd/cmd/middleware.(*ExperimentationMiddleware).Run(0x556ddf0c0f0f?, {0x556ddf83bd08, 0xc0004ef980}, 0xc0005aeb80)
        /mnt/vss/_work/1/s/cli/azd/cmd/middleware/experimentation.go:64 +0x4d6

err is not check for non-nil before trying to use the sp

After checking the error:


Spectral time kernel

implements a spectral mixture kernel for the time axis of time dependent model constructor, inspired by the work of @nikitakuklev
spectral kernel is now the default for TimeDependentModelConstructor
behavior can be disabled by setting use_spectral_mixture_kernel=False

@nikitakuklev thanks for your comments, lmk if these changes address them properly


K8s data into overview (service discovery)

When a services from k8s is added data matching sentry or other relevant data should be shown in the overview. We will focus on the following K8s primitives:

Services
Pods
Deployments
Ingresses

Tasks to complete in order to build a POC service:

[ ] Create new repo based on existing PODE projects
[ ] Agree on service interface with devs
[ ] Agree on dataset format with devs
[ ] Implement POC service
[ ] Setup CI/CD pipeline for POC service
[ ] Create GlobalReaderRole for Hellman (access rights)

Aha! Link: https://dfds.aha.io/features/CLOUD-113

Lighthouse @ Digital?
GraphQL?

Will resolve using native backstage k8s plugin for catalog @ https://backstage.io/docs/features/kubernetes/overview. Closing issue


Save is Broken

Got this in the JSON file
"ObjectProperty [value: Lab(version=1, labName=MDLab, labOwner=Carl, inventory=[net.bekwam.k4stem.labassist.Inventory@6f32bc82])]"

File > New
Specify a Lab Name and User
Add a single component
Press save as
Inspect the JSON file

Be sure to specify the file if none were specified already (like a Save As in the New case)


Update semantic labels in doc (changed from version 0.9.13 -> 0.9.14)

Checklist:

[ x] Your branch is up-to-date with the dev branch and tested with latest changes
[ x] Extended the README / documentation, if necessary
[ x] Code compiles correctly (did not change any code)
[ ] All tests passing with make check (only Linux)
[ ] If relevant, update CHANGELOG.md with your changes

-->
Description
I updated the semantic labels used since 0.9.14 in the docs
Fixes #6902
Where has this been tested?

Platform(s): ...
Python version(s): ...
Unreal Engine version(s): ...

Possible Drawbacks

@dorn-gerhard Thank you for spotting this and updating these. Merging


fashionpedia-api/baseline_predictor_demo.ipynb is going to be updated anytime soon?

Hi
could you let me know if this demo is going to be updated soon?

Any update? It's been almost a year...

I used the code in detection from google. It worked for me , I also updated there in git how you can use it. in case you did not manage to use it you can comment on my issue.

Anyone who successfully got to extract attributes? I'm able to extract the main categories but I do not see the attributes.

It seems that the author dropped this project.

Hi @dinhanhthi  Thank you for your interest in the project! we still remember that we need to update the demo! Will update soon

@KMnP  This is a very exciting project. Is there a way training code, or inference code with pre-trained weights be made available ?


Peering Request

Full Name
Daniele Santi
ASN
AS214443
PeeringDB Integration

[X] My PeeringDB Entries are current
[ ] Peer at ALL EXCHANGES (and skip the Peer Address(es) field below)

Peer Address(es)
<IP_ADDRESS>
2001:7f8:10::6447
Multihop

[ ] Multihop Peering Request

Hi Daniele
We are happy to peer at NAMEX.  We would like you to announce full routes to us as you would to a transit customer.   Please confirm this is possible
BR
Nina

Hello,
we can certainly announce full routes to you.
Thank you,
Danuiele

Excellent.  Our side is ready so please configure when convinient.
Happy Holidays
Nina

Hello,
sessions are configured and up.
Thank you,
Daniele


fix(tests): fix deploy_model e2e test

coverage: 90.645%. remained the same
when pulling a7145c2ac638780d6ffd5f9dc777c39817496642 on fix-deploy-models-test
into 1e6d20e86675dfbc04efd408d906b6e41e5507dc on main.

coverage: 90.645%. remained the same
when pulling a7145c2ac638780d6ffd5f9dc777c39817496642 on fix-deploy-models-test
into 1e6d20e86675dfbc04efd408d906b6e41e5507dc on main.


Implement on_coroutine_succeeded() and on_coroutine_failed()

In addition to at_coroutine_exit(), the task<> type can support on_coroutine_succeeded() and on_coroutine_failed(). Those will register a (possibly asynchronous) cleanup action that knows whether unhandled_exception() was called on the promise or not.

I wonder if there is a particular reason to ignore the third channel, i.e. on_coroutine_stopped(). AFAIK we also have an indicator for with unhandled_stopped

No reason. I just didn't think of it!

This is done, right?

Yup


test projects action

Using this to trigger my test workflow .github/actions/projects.yml for https://github.com/CCBR/kelly_log/issues/11

what does @other-ICs point to??

what does @other-ICs point to??

that was a branch that was deleted when this PR was merged  https://github.com/CCBR/.github/pull/3
I used this workflow to test it before opening the PR


Site watchub.pw offline ?

Are you planning to bring back the site ?
Thank you for you work :)

It is up right?

nope it's down... i am trying right now to setup it locally, nice work by the way :) i am struggling with the database... level=error message="failed to get executions" error="pq: relation \"tokens\" does not exist" it does not seem to create the database automatically....
any way i am going to try the website over vpn may be it's my connection but i don't think i'll post back in 5 min

weird... look like it's a dns issue... i am trying to figure that out... i'll post back what it was exactly

yeah, its up here and monitoring didn't fire...
it doesn't create the DB locally, I think it is on CONTRIBUTING.md...

Thanks for taking time to answer it's appreciated :) basically my DNS server is using DNS over TLS + DNSSEC fetching from upstream over a special route... any way the problem was caused with the combination of (Cloudflare DNS + DNSSEC) nothing wrong on my config because it works with other providers... it's just a cloudflare bug, i just updated my config to avoid such issue...
I guess it's caused by the used ssl certificate on your domain and Cloudflare bug... any way i reported back that to cloudflare (need to be logged in to see it)
For curious one; to reproduce this bug we can use unbound + <IP_ADDRESS> + DNSSEC... to setup unbound it's very easy an example can be found here
An other thing about your project is that i searched a long time google/github before reaching watchub i guess it's why you don't have a lot of stars/attention to it... you should add some topic to the project like stars/unstar/follow/unfollow and also may be post something about it on reddit or else.

CONTRIBUTING.md...

looool it was there all the time lol i though that file was for licensing or something... i figured-out/searched all the different setup commands (but the DB) that's funny because i was thinking of using the sql file to fix the db like you advice on CONTRIBUTING... any way i still did not use the service i will check that out and contribute if i may add this or that feature.
Thanks you for your work and for the rest ;)

Also SSL should be enabled by default for your site, it's kind a must since it exchange sensitive information with github (not a lot exposed but...) can be done freely with let's encrypt or cloudflare or other similar solution.

Update: cloudflare answer:
watchub.pw. has a CNAME record pointing to watchub.herokuapp.com..
It’s illegal for the apex of a zone to have a CNAME record. Sometimes resolvers will return SERVFAIL.
You’re probably running into this issue:
GitLab - CNAME breaks DS queries if CNAME is at apex (non-compliant auth side) (#359)
kresd replies incorrectly for name.example. DS queries if name.example. has CNAME at apex name.example.. This seems to affect only non-compliant servers which allow CNAME at apex. **Such zones are illegal...
When Unbound sends a watchub.pw. DS query, <IP_ADDRESS> may return the CNAME instead of a NODATA response, leaving Unbound unable to figure out whether the zone uses DNSSEC, and forcing it to respond with SERVFAIL.
watchub.pw. won’t work reliably as long as it doesn’t follow the DNS standards.

thanks for the investigation, will take a look on this soon.

Just update the domain DNS record should fix this...
Or subscribe for a free account @cloudflare or similar provider, while it will fix the problem it will also make SSL available with zero effort (other than updating the code links to https)

Also an other thing, sorry to bother you about it (i am using my opened issues list to manage the work i need to do can you please reopen an other issue or add a todo for the dns-update/fix)

yeah, I'm adding it to my cloudflare account :)

should be good now :)
thanks for the issue!

just to let you know i am running https://starhub.be (based on your project) with many additional features... it could interest you ;)

cool :D

Thank you carlos :) feel free to merge back this or that or the whole thing ;) from what i added... and let me know if there is any think ;)
By the way there is a little issue on your version, metrics should not be public but it's up to you :)

Thank you carlos :)... also let me know if there is any think (if my fork disturb or something) ;)
By the way there is a little issue on your version, metrics should not be public but it's up to you :)


Example Pen fails to load

Challenge Show National Contiguity with a Force Directed Graph has an issue.
User Agent is: Mozilla/5.0 (Macintosh; Intel Mac OS X 10_12_5) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/58.0.3029.110 Safari/537.36.
Please describe how to reproduce this issue, and include links to screenshots if possible.
The example Pen link opens a page with a black panel but no content, and Chrome generates the following error messages:
Failed to load resource: net::ERR_INSECURE_RESPONSE
www.cs.mun.ca/~h65ped/Public/country data for force directed graph/countries.json Failed to load resource: net::ERR_INSECURE_RESPONSE

The error is shown because the pen is trying to load the json data over HTTP (Not Secure) source instead of HTTPS (Secure) source.
Codepen now allows to request data over HTTPS only so you can request the data from the following source countries.json.
Have fun!

Yes, @abkunal is correct. Please test with https.


Modernize

Fixes #68
What was wrong?
The package needed to be restructured.
Cute Animal Picture

@pipermerriam Please trigger build once.
Tests were passing before squash.

@pipermerriam I think we are good to go.
CircleCI-pyp3 throws some error at their end, some internet problem on their side, check log here

re-running failed job.

Looks like CI builds are not triggering (maybe due to the github outage over the weekend).  Will wait to see what happens.

Looks like CI builds are not triggering (maybe due to the github outage over the weekend).

Yup, from 9 minutes ago on status.github.com:

We have temporarily paused delivery of webhooks while we address an issue.

Everythings is normal now :tada:

That circle CI :laughing:
@carver @pipermerriam It fails in pulling changes. Please check it.

This time it was GitHub that returned a bad result when trying to merge against master. But... that happens from time to time. Our most modern circle scripts reattempt the merge three times in a row. I see that it want explicitly listed, but upgrading to that approach is reasonable to add to this PR, since it's defined in the template project. Check out how the template project does it in the .circleci folder.

Good to merge when green.


Remove trailing commas from eslintrc.

Thanks for submitting a pull request! Please provide enough information so that others can review your pull request:

Unless you are a React Native release maintainer and cherry-picking an existing commit into a current release, ensure your pull request is targeting the master React Native branch.

Explain the motivation for making this change. What existing problem does the pull request solve?
Prefer small pull requests. These are much easier to review and more likely to get merged. Make sure the PR does only one thing, otherwise please split it.
Test plan (required)
Demonstrate the code is solid. Example: The exact commands you ran and their output, screenshots / videos if the pull request changes UI.
Make sure tests pass on both Travis and Circle CI.
Code formatting
Look around. Match the style of the rest of the codebase. See also the simple style guide.
For more info, see the "Pull Requests" section of our "Contributing" guidelines.

Why remove them? This PR is missing a description. If you think those commas should be removed please open a new PR explaining why.

Sorry ok - my bad. Well trailing commas are invalid json.

 Happy to change to .eslintrc.js?


Training stuck on the first epoch

I'm trying to run the training on two GTX 1080Ti but it stuck on the first epoch. Is this due to some post-processing operations? How can I solve it?

It looks like the forward calculation has not yet been performed, you can add logs here.

I tried to kill the process at first but I cannot kill it. I closed the terminal, add some log messages to the lines you mentioned and I rerun the code. Now it does not even output the' Starting Epoch...' line.

Do you have WeChat?

I use Telegram and Whatsapp but I can download it if you want right now.

Please run python cityscapes.py(cityscapes.py) directly to verify whether the dataloader can work normally.

I run cityscapes.py and got the following error even I have the datasets downloaded.

Make sure the ./datasets/citys is path to your cityscapes datasets.
Debug function _get_city_pairs(_get_city_pairs) step by step.

I think the folder structure (datasets) does not match the  data reading code.

The path to the datasets is ./datasets/citys/leftImg8bit and ./datasets/citys/gtFine and they have their respective test, train and validation folders inside. How should them be arranged?

Should I move every image inside the city folders in ./datasets/citys/leftImg8bit/train out?

It is not necessary, but you need to modify these codes to match your data folder.

The cityscapes.py is working without any problems. I made a small mistake in my previous try, so here it is.

Try to train on single GPU.

Please verify that dataloader is running normally.
for i, (images, targets) in enumerate(self.train_loader):
    #cur_lr = self.lr_scheduler(cur_iters)
    #for param_group in self.optimizer.param_groups:
    #param_group['lr'] = cur_lr

    images = images.to(self.args.device)
    targets = targets.to(self.args.device)
    print(images.shape)

    """
    outputs = self.model(images)
    loss = self.criterion(outputs, targets)

    self.optimizer.zero_grad()
    loss.backward()
    self.optimizer.step()

    cur_iters += 1
    if cur_iters % 10 == 0:
        print('Epoch: [%2d/%2d] Iter [%4d/%4d] || Time: %4.4f sec || lr: %.8f || Loss: %.4f' % (
                  epoch, args.epochs, i + 1, len(self.train_loader),
                  time.time() - start_time, cur_lr, loss.item()))
    """

When I make the mentioned changes, I still obtain the result I attached here. The thing is, I face these problems only when I try to run the train.py on GPU. On CPU, it runs normally.

I tried to kill the process at first but I cannot kill it. I closed the terminal, add some log messages to the lines you mentioned and I rerun the code. Now it does not even output the' Starting Epoch...' line.

What if you only use a single GPU？

The training started when I use only one GPU

The training started when I use only one GPU

However the training is really slow right now. I'm using GTX 1080 X, still the training takes around 4 days.

However the training is really slow right now. I'm using GTX 1080 X, still the training takes around 4 days.


rootless v2 cannot collect network stats

network statistics cannot be collected for rootless network devices with
the current implementation.  for now, we return nil so that stats will
at least for users.
Fixes:#4268
Signed-off-by: baude<EMAIL_ADDRESS>

LGTM, but would like a nod from @giuseppe before we merge

LGTM

Is this basically impossible since we use slirp4netns?
Should we add something to the man page explaining this?

i did that in this PR


[Bug] Duplicate import from Thingiverse

Hi, it seems you can import the same Thingiverse project multiple times.
Steps to reproduce:

Set up a Thingiverse API key
Go to your MMP server, Projects -> Import
Enter a Thingiverse URL, eg https://www.thingiverse.com/thing:6527320
Click Submit and wait for the toast notification + button to stop showing the spinner
Click Submit again and wait for the toast notification
Go back to the Projects view, and see the same project is there twice.

Related bugs (I can create separate issues if preferred):

Assets (eg, images) are shared by both duplicated projects. The projects have unique keys, but the assets don't - so deleting one of the projects breaks the other as the image data on disk is deleted, but not in the database/project view.
The 'External Link' for thingiverse-imported projects is set to the API view. This prevents the user from easily viewing the external source by clicking the button. Compare:

URL used in the import field, as submitted by the user: https://www.thingiverse.com/thing:6527320
URL set in the 'External Link' field of the project: https://api.thingiverse.com/things/6527320

Thanks for the awesome feedback, I'm gonna start working on a fix now.
I was thinking about swapping the / characters by - to avoid the last issue.
As for the duplicate import, I'll try to make it so it redownloads the assets withou errors


Calculate proper request size when using mbstring overloading

strlen doesn't calculate proper size when using multibyte strings.

mbstring functions are not included in the default PHP installation.

You are of course correct, I've added a check to see if mbstring is loaded, otherwise use the core string functions. This way it should work properly with and without mbstring

The original strlen already returns total number of bytes, which is what the content-length header is supposed to represent. I believe your solution returns the number of characters, which is not correct.

Strlen assumes 1 char is 1 byte. This is not correct for multibyte string. mb_strlen($utf8_string, 'latin1'); works because latin1 only contains 8 byte chars, this will then actually output the proper size for multibyte strings.

Both strlen('€') and mb_strlen('€','latin1') return 3 bytes.

Because you probably haven't enable the mbstring overload.
set this in the php.ini:
mbstring.func_overload = 2
and you results will be 1 byte for strlen('€') and 3 bytes for mb_strlen('€','latin1')

While reading up on this I noticed this does get deprecated in php 7.2. Nonetheless not everyone will move to 7.2 in a short timeframe. More information can be found here (also on strlen when overloaded): http://markmail.org/message/vckycqqppwxhp2gk

Right, I don't have mbstring overloading enabled, which would be the default. So by default, strlen works correctly. Enabling it would have strlen call mb_strlen to get the wrong value, and again you are back at the issue of having mbstring installed in the first place.
It sounds like PHP really messed up in allowing the overload in the first place, since you can't guarantee what strlen will return on different environments.
Your solution is on the right track. If mbstring is installed I think we should use it to avoid the overloading issue. But your pull request has too many code styles changes for me to accept, so I will provide the fix separately.

Yeah it's not the best of php. Probably for the best it got deprecated too. I understand you won't accept the pull, sorry my auto psr formatting changed the style, and I committed before noticing. Thanks for implementing this fix!

Fixed in 1c8d06cc42dcb04355984d561ce9fbbcf0bb9ef7.


🐞 .NET SDK failing to install in VS Code image

Describe the bug.
@AntFMoJ, @BrianEllwood and @Emterry are trying to install CUDA drivers into the VS Code image as part of https://github.com/ministryofjustice/analytical-platform/issues/4120, but cannot proceed without removing .NET SDK (8.0.104-0ubuntu1)
5.216 Some packages could not be installed. This may mean that you have
5.216 requested an impossible situation or if you are using the unstable
5.216 distribution that some required packages have not yet been created
5.216 or been moved out of Incoming.
5.216 The following information may help to resolve the situation:
5.216
5.216 The following packages have unmet dependencies:
5.365  dotnet-host-8.0 : Conflicts: dotnet-host
5.365  dotnet-runtime-deps-8.0 : Depends: libicu but it is not installable or
5.365                                     libicu72 but it is not installable or
5.365                                     libicu71 but it is not installable or
5.365                                     libicu70 but it is not installable or
5.365                                     libicu69 but it is not installable or
5.365                                     libicu68 but it is not installable or
5.365                                     libicu67 but it is not installable or
5.365                                     libicu66 but it is not installable or
5.365                                     libicu65 but it is not installable or
5.365                                     libicu63 but it is not installable or
5.365                                     libicu60 but it is not installable or
5.365                                     libicu57 but it is not installable or
5.365                                     libicu55 but it is not installable or
5.365                                     libicu52 but it is not installable
5.370 E: Unable to correct problems, you have held broken packages.

I have tried updating .NET SDK to latest release, but that also fails
apt-get install --yes "dotnet-sdk-8.0=8.0.300-1"
Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
Some packages could not be installed. This may mean that you have
requested an impossible situation or if you are using the unstable
distribution that some required packages have not yet been created
or been moved out of Incoming.
The following information may help to resolve the situation:

The following packages have unmet dependencies:
 dotnet-sdk-8.0 : Depends: dotnet-runtime-8.0 (>= 8.0.5) but it is not going to be installed
                  Depends: netstandard-targeting-pack-2.1 (>= 2.1.0)
                  Depends: aspnetcore-runtime-8.0 (>= 8.0.5) but it is not going to be installed
E: Unable to correct problems, you have held broken packages.

https://github.com/ministryofjustice/analytical-platform-visual-studio-code/pull/66
To Reproduce

Build https://github.com/ministryofjustice/analytical-platform-visual-studio-code

Expected Behaviour
Build succeeds, .NET installed
Additional context
No response

Potentially related https://github.com/dotnet/sdk/issues/40506

https://devblogs.microsoft.com/dotnet/whats-new-for-dotnet-in-ubuntu-2404/
https://github.com/dotnet/core/discussions/9258


running pytest error

Hi,
Thanks for your contribution, I tried to run the code but when running the pytests I got the following errors:
====================================================================== short test summary info =======================================================================
FAILED tests/utils/test_cc_utils.py::test_cc_incidence_advanced_test - assert False
FAILED tests/utils/test_cc_utils.py::test_mols_to_cc - AssertionError: assert {0: {frozense...'weight': 1}}} == {0: {frozense...'weight': 1}}}
FAILED tests/utils/test_cc_utils.py::test_CC_to_incidence_matrices - assert False
FAILED tests/utils/test_cc_utils.py::test_ccs_to_mol - KeyError: 'symbol'
FAILED tests/utils/test_cc_utils.py::test_convert_CC_to_graphs - AssertionError: assert {0: {'weight'...ght': 1}, ...} == {0: {'symbol'...ght': 1}, ...}
FAILED tests/utils/test_cc_utils.py::test_convert_graphs_to_CCs - AssertionError: assert {'weight': 1} == {'label': 'C', 'weight': 1}
FAILED tests/utils/test_cc_utils.py::test_rank0_distrib_worker - KeyError: 'label_0'
FAILED tests/utils/test_cc_utils.py::test_rank0_distrib_stats - KeyError: 'label_0'
FAILED tests/utils/test_cc_utils.py::test_eval_CC_list - KeyError: 'label_0'
=================================================================== 9 failed, 131 passed in 4.74s ====================================================================

Any hints for how to solve this?
Best,
Yamei

Hello Yamei!
Thank you for your interest in this project :)
Have you read the "Commons errors" section of the readme? In particular, I believe that your error is related to a dependency issue related to TopoNetX. Have you executed the apply_fixes.py script as explained on the main page? More importantly, did you follow the instructions detailed in the "Error due to TopoNetX when running the tests" subsection?
Let me know if it solves your problem! I remain at your disposal for any further information.
Warm regards,
Adrien

Dear Adrian, thank you for your prompt reply! This error is now solve by running .github/workflows/apply_fix.py .


Use assemble and initialize in README examples

Description

Use assemble and initialize in README examples
Types of change

Docs.
Checklist

[x] I confirm that I have the right to submit this contribution under the project's MIT license.
[ ] I ran all tests , and all new and existing tests passed. This includes tests marked as external and those
requiring a GPU. I did this for the following directories:

[ ] tests
[ ] usage_example/tests

[x] My changes don't require a change to the documentation, or if they do, I've added all required information.

Can you update the tests in usage_examples/tests/test_readme_examples.py as well?


Handle fastforward/rewind keys as next/prev

This adds support for the next/prev keys on non-mac keyboards.

Seems reasonable, and since all events other than the media subtype are filtered, I expect this shouldn't cause any strange key collisions.


[SPARK-40382][SQL][TESTS][FOLLOW-UP] Make the tests pass with ANSI enabled

What changes were proposed in this pull request?
This PR is a followup of https://github.com/apache/spark/pull/37825, that change the types in the test relation to make the tests pass with ANSI enalbed.
Why are the changes needed?
To recover the test coverage. Currently it fails with ANSI mode on: https://github.com/apache/spark/actions/runs/3246829492/jobs/5326051798#step:9:20487
[info] - SPARK-40382: eliminate multiple distinct groups due to superficial differences *** FAILED *** (5 milliseconds)
[info]   org.apache.spark.sql.AnalysisException: [DATATYPE_MISMATCH.BINARY_OP_WRONG_TYPE] Cannot resolve "(b + c)" due to data type mismatch: the binary operator requires the input type ("NUMERIC" or "INTERVAL DAY TO SECOND" or "INTERVAL YEAR TO MONTH" or "INTERVAL"), not "STRING".
[info]   at org.apache.spark.sql.catalyst.analysis.package$AnalysisErrorAt.dataTypeMismatch(package.scala:68)
[info]   at org.apache.spark.sql.catalyst.analysis.CheckAnalysis.$anonfun$checkAnalysis0$5(CheckAnalysis.scala:223)
[info]   at org.apache.spark.sql.catalyst.analysis.CheckAnalysis.$anonfun$checkAnalysis0$5$adapted(CheckAnalysis.scala:210)
[info]   at org.apache.spark.sql.catalyst.trees.TreeNode.foreachUp(TreeNode.scala:295)
[info]   at org.apache.spark.sql.catalyst.trees.TreeNode.$anonfun$foreachUp$1(TreeNode.scala:294)
[info]   at org.apache.spark.sql.catalyst.trees.TreeNode.$anonfun$foreachUp$1$adapted(TreeNode.scala:294)
[info]   at scala.collection.mutable.ResizableArray.foreach(ResizableArray.scala:62)
[info]   at scala.collection.mutable.ResizableArray.foreach$(ResizableArray.scala:55)
[info]   at scala.collection.mutable.ArrayBuffer.foreach(ArrayBuffer.scala:49)
[info]   at org.apache.spark.sql.catalyst.trees.TreeNode.foreachUp(TreeNode.scala:294)
[info]   at org.apache.spark.sql.catalyst.trees.TreeNode.$anonfun$foreachUp$1(TreeNode.scala:2

Does this PR introduce any user-facing change?
No, test-only.
How was this patch tested?
Manually ran the tests locally.

cc @cloud-fan and @bersprockets FYI

seems fine if CI passes

Merged to master.

Thanks, and sorry about that. I will verify any test changes withSPARK_ANSI_SQL_MODE=true going forward.

No problem. This happens time to time even in my PR :-)


Vulkan crash on Fullscreen

Switching to fullscreen while using the Vulkan API causes an "Error Device Lost" to happen sometime later in the rendering chain. Might need to recreate the swap chain if not done already when fullscreen changes.
Noticed this problem shortly after fixing window resizing & haven't explored it much yet.

CreateSwapChain() needs to be called after the SDL call to set the window fullscreen. Currently the "event" likes to call the Swap Chain IsFullscreen first (where CreateSwapChain happens), and then the SDL call later, which is what I think is leading to the crash.

Disregard the above comment -- it was a theory that didn't hold up. Order of functions seem to be OK when stepping through while debugging.
Trying to switch to fullscreen on startup, so I can use Vulkan validation easier, reports this problem:
Error:  [ VUID-VkSwapchainCreateInfoKHR-imageExtent-01274 ] Object: 0x2127107f180 (Type = 3) | vkCreateSwapchainKHR() called with imageExtent = (1280,720), which is outside the bounds returned by vkGetPhysicalDeviceSurfaceCapabilitiesKHR(): currentExtent = (1920,1080), minImageExtent = (1920,1080), maxImageExtent = (1920,1080). The Vulkan spec states: imageExtent must be between minImageExtent and maxImageExtent, inclusive, where minImageExtent and maxImageExtent are members of the VkSurfaceCapabilitiesKHR structure returned by vkGetPhysicalDeviceSurfaceCapabilitiesKHR for the surface (https://www.khronos.org/registry/vulkan/specs/1.1-extensions/html/vkspec.html#VUID-VkSwapchainCreateInfoKHR-imageExtent-01274) ([0] Validation)
1280x720 is the resolution I'm trying to switch to, while my native resolution is 1920x1080.

Got it getting into fullscreen in development, but just on game startup! If you switch back to window, and then try to go back to fullscreen -- the device still gets lost. However, great progress!

This commit: https://github.com/phr00t/xenko/commit/915d898598d7273cf7b035a89bf6a4e8834e2c12
... seems to completely fix the issue in my release builds. I was still having a crash in debug when going from fullscreen, to windowed & back to fullscreen... but it isn't happening in my release builds anymore. So, this might be fixed... will monitor.

Crash still happens occasionally when switching between modes while running. Probably a synchronization issue somewhere.

Fixed with https://github.com/phr00t/xenko/commit/4e1b502baae7cadd33f86ce2bc40b0c3ff92a8f3


Error: connect ETIMEDOU

Description:
Today i start receiving Error: connect ETIMEDOUT <IP_ADDRESS>:443 on my multiple workflows runned on Github-hosted runner  so it shouldn't be a problem with internet connectivity.
Task version:
@v1
Platform:

[x] Ubuntu
[ ] macOS
[ ] Windows

Runner type:

[x] Hosted
[ ] Self-hosted

Repro steps:
- name: Setup Java
      uses: actions/setup-java@v1
      with:
        java-version: 17

Fixed today. Seemed like some cloudflare issue


apiv2(ticdc): add ut for api default value

What problem does this PR solve?

Issue Number: close #8480
What is changed and how it works?
add ut for api default value
Check List
Tests

Unit test
Integration test
Manual test (add detailed scripts or steps below)
No code

Questions
Will it cause performance regression or break compatibility?
Do you need to update user documentation, design documentation or monitoring documentation?
Release note
`None`.

/run-all-tests

/run-integration-tests

/run-verify-tests

/run-integration-tests


Default API

Feature Request
Suggestion
Many applications only include a single API gateway, particularly when developers are learning the framework. To make this use case easier let's expose a 'default' API to reduce the need to create one in every app.
Functions would change from this:
import { api } from "@nitric/sdk";

const helloApi = api('main');

helloApi.get("/hello/:name", async (ctx) => {
    const { name } = ctx.req.params;
    ctx.res.body = `Hello ${name}`;
});

To this:
import { api } from "@nitric/sdk";

api.get("/hello/:name", async (ctx) => {
    const { name } = ctx.req.params;
    ctx.res.body = `Hello ${name}`;
});

Then, creating additional APIs could be performed by calling the api object (same as today):
const main = api('main');

Alternatively, if that's confusing or not possible we could add a new method, e.g.:
const main = api.new('main');

Note: this would be a breaking change.

Value
Should be less confusing for developers new to the framework and requires less code for the majority of projects that will only have a single API.

One thing that needs to be considered here is securing the default API.
This is currently defined upon API creation, as it needs to be defined at the top level of the API.
Currently we do:
import { api, jwt } from "@nitric/sdk";

const publicApi = api('public', {
  securityDefinitions: {
     'user': jwt({
        issuer: "example...",
        audiences: [],
     })
  }
});

We would need a way to define this for the default api as well.
something like
import { api } from "@nitric/sdk";

api.withSecurity(...)

Also need to somehow invalidate the make cache or force a re-application or delay creation of the API resource.


atom binary: Open all folders in one window

E.g. running:
$ atom /usr/local/etc/supervisor/conf.d/ /usr/local/etc/nginx/conf.d

Should open just one window with both these folders in one window, like sublime. At least I would love to see that.
(I also miss being able to use Cmd-Shift-F for searching the opened folder, even when it's not an actual project. Is there another way?)

Duplicate of #770, please subscribe there for updates.

(I also miss being able to use Cmd-Shift-F for searching the opened folder, even when it's not an actual project. Is there another way?)

Im not dont understanding this. Can you write out some steps to describe what it does, and what you want it to do? It would be best if you made an issue on https://github.com/atom/find-and-replace/issues/new explaining what you wanted cmd-shift-f to do.


Get all attainments of an assessment model

Closes #213

Superseded by #328, easier to copy code from this than to fix merge conflicts.


New package: Shuffle v0.1.1

Registering package: Shuffle
Repository: https://github.com/Luapulu/Shuffle.jl
Created by: @Luapulu
Version: v0.1.1
Commit: b2bb421b4607018ff54351645d6fbb7803315d45
Reviewed by: @Luapulu
Reference: https://github.com/Luapulu/Shuffle.jl/commit/b2bb421b4607018ff54351645d6fbb7803315d45#commitcomment-43989621

This is a patch for Shuffle.jl v0.1.0 #24332. I'm not sure this will work, given that v0.1.0 hasn't been merged yet.

Gonna wait until the first version gets merged.


New navbar plus stylings fix

:tada: This PR is included in version 2.0.0 :tada:
The release is available on:

npm package (@latest dist-tag)
GitHub release

Your semantic-release bot :package::rocket:


Remove clones on Size and Geometry, fixes #224

This should remove all .clone() calls for Size and Geometry.

Sweet! I'll review this later today


Can you make it highlight word under cursor not underline it ?

Coc.vim has plugin coc-highlight, and coc-highlight can highlight the current word under the cursor but it's not as fast as your plugin.
If you can, please add an option where we can specify underline or highlight the word.

Please refer to #16.


Update RCTLinkingManager.h to explicitly state the 'nullability' of parameters

Fixes #20797
As mentioned in #20797 when running react-native run-ios Xcode 9.2 will complain about the nullability of pointers in RCTLinkingManager.h`.
Test Plan:
My testing method probably isn't the best as I'm not sure what the best way to go about testing native code in isolation but I verified these changer worked by doing the following:

Run and see build fail

react-native init TestProject --version="0.57.0-rc.0"
cd TestProject
react-native run-ios

Update node_modules/react-native/Libraries/LinkingIOS/RCTLinkingManager.h with the changes in this pull request.
Re-run react-native run-ios and verify build succeeds.

Release Notes:
[IOS] [BUGFIX] [RCTLinkingManager] - Update method signatures in RCTLinkingManager.h to prevent build errors with Xcode 9.2.

That's the real problem. Would be nice to land it in 57

why didn't this land in the 0.57 release?

Hey everyone, we didn't see this PR - seems like a fairly small patch so we'll try to have it review & merged for 0.57.1

this promble occur on xcode 9.2, xcode version >= 9.3 has not this promble

@kelset any idea who could review that? It's blocking everyone on an older Mac (as you cannot use Xcode > 9.2 without High Sierra).

Looks fairly right. Seen similar update in one of the other components back in the day.

(quick update: tested it locally, everything seems good - just waiting for @radko93 to double check and then I'll proceed to merge it)

Thanks @radko93 - I'll wait for @noxee to update the PR with the fix required by @ikesyo then I'll proceed to merge 👍

@kelset Sorry for the delay, I've made the fix that @ikesyo pointed out but it looks like analyze_pr CI is currently failing due to some bad credentials.


Static private ip address assignment in ipconfiguration

Azure rest api expects the private ip address configuration inside 'properties tag' where as the plugin create the request body outside the properties.
Expected:
 "ipConfigurations": [       {          "properties": {           "provisioningState": "Succeeded",           "privateIPAddress": "<IP_ADDRESS>",           "privateIPAllocationMethod": "Dynamic",           "publicIPAddress": {             "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/publicIPAddresses/test-ip"           },           "subnet": {             "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/virtualNetworks/rg1-vnet/subnets/default"           },           "primary": true,           "privateIPAddressVersion": "IPv4"         }       }     ]
Request body generated by plugin:
'ipConfigurations': [{     'privateIPAllocationMethod': 'Static',     'name': 'vsinc_protected_ip_config',     'privateIPAddress': '<IP_ADDRESS>',     'properties': {         'subnet': {             'id': '/subscriptions/subid/resourceGroups/vfw-resources/providers/Microsoft.Network/virtualNetworks/private_vnet/subnets/protected_vsubnet'         },         'publicIPAddress': None     } }]
This require small modification in ipconfiguration.py file to add the dict available in resource_config inside the properties tag.

#73


[Bug] Docker plugin latest images should update with new dbt-core versions

Is there an existing issue for this?

[X] I have searched the existing issues

Current Behavior
dbt core 1.0.2 has been released as well as its docker image, ghcr.io/dbt-labs/dbt-core:1.0.2. However, the latest version of the plugin specific docker images don't use the latest dbt core version (well, at least snowflake - I didn't test the others, but i'd imagine it's the same).
Expected Behavior
The "latest" plugin docker images should use the latest version of dbt-core.
Steps To Reproduce
Pretty simple:
#FROM ghcr.io/dbt-labs/dbt-snowflake:latest
RUN dbt --version

Relevant log output
Step 1/2 : FROM ghcr.io/dbt-labs/dbt-snowflake:latest
 ---> 07691378d6fd
Step 2/2 : RUN dbt --version
 ---> Running in cf649bd6b24f
installed version: 1.0.1
   latest version: 1.0.2

Your version of dbt is out of date! You can find instructions for upgrading here:
https://docs.getdbt.com/docs/installation

Plugins:
  - snowflake: 1.0.0

### Environment

```markdown
- OS: n/a
- Python: n/a
- dbt: n/a

What database are you using dbt with?
No response
Additional Context
https://getdbt.slack.com/archives/CBSQTAPLG/p1645383426339879

I realize the obvious workaround here is just RUN pip install dbt-snowflake. I do think there should be some process that triggers these releases all together though, which is more why I'm opening the issue.

I understand from this slack message that this behavior is more or less intentional, but I'm still curious for a bit more context as to why 😄

Thanks for opening @alexrosenfeld10. The current intention is definitely to rerelease the :latest tags of all plugins that depend on dbt-core, when there's a new version of dbt-core available. We'll be following up on this issue.

@alexrosenfeld10 I think your concern is well placed and reasonable! You always have the right to install the exact pinned versions of dbt-core + plugins that you'd like, and still use our official images as your jumping-off point.
I'll just say that our team is tremendously committed to limiting the scope of fixes in patch releases after v1.0, and avoiding net-new bugs in patches. When they happen (it's software, it happens), we will drop everything to release a new working patch ASAP. This just happened earlier today: a community member identified a highly specific bug (#4752, net-new in v1.0.2); we estimated that it would affect ~0.5% of projects; we've already merged the fix, and we're planning to push v1.0.3 live very soon. We also used this to prompt internal conversation and reflection on how we would patch the fix differently next time. This is added motivation for our current initiative, overhauling our test suite to better represent dbt-core behavior "in the wild," and layering in extra QA practices to close the gaps that inevitably remain.
That's the commitment we're making to you, as a potential user of the 1.0.latest Docker image tag—and it's the same commitment we're making to all the folks using dbt Cloud, who are also (starting in v1.0) automatically updated to use the latest stable patch release for each minor version. Cautious, intentional patching is a crucial capability for us to deliver high-quality software that runs in production, reliably, for thousands of projects. It's not a commitment we take lightly.
To that end, v1.0.2 fixed a separate dependency error (https://github.com/dbt-labs/dbt-core/issues/4745) that affected 100% of projects. Folks installing 1.0.latest got that fix; no further action needed.
That's the rationale underlying latest and <Major>.<Minor>.latest tags. I also appreciate the desire for totally locked-down dependencies, which is what's offered by the specific version image (dbt-snowflake:1.0.0). In our current scheme, we won't be updating those images to account for a new version of dbt-core, or of any other dependency.
So, those are the options available to you:

Specific version images, with totally locked dependencies
latest-tagged images, which ensure you're getting the latest patch fixes
Either + your own custom pip install logic

Does that delineation make sense? (@iknox-fa Does it makes sense to you?)

@jtcohen6 that all makes sense to me, yes. I think, given the commitments (and the fact that dbt Cloud takes patch updates OOTB) I'll probably just target major.minor.latest (well, when this issue is closed and it's actually pulling latest that is 😉).
Thanks 👍

@alexrosenfeld10 We should be all set now.  Give it a try and feel free to reach out if it gives you any more trouble.

@iknox-fa seems good to me:

Step 1/5 : FROM ghcr.io/dbt-labs/dbt-snowflake:1.0.latest
1.0.latest: Pulling from dbt-labs/dbt-snowflake
a2abf6c4d29d: Already exists
27003db43ed4: Already exists
eba080ca5a70: Already exists
00ceeca3d803: Already exists
8980b900ecd2: Already exists
f03d51f7c312: Pull complete
7eee275ec764: Pull complete
fdb8914e8ad8: Pull complete
96d54054c81e: Pull complete
Digest: sha256:8da5a372715eb57afba20345a888411ca1885e359660050472488061f849459d
Status: Downloaded newer image for ghcr.io/dbt-labs/dbt-snowflake:1.0.latest
 ---> b6a0eb30321b
Step 2/5 : RUN dbt --version
 ---> Running in fc91a6a3a022
installed version: 1.0.3
   latest version: 1.0.3

Up to date!

Plugins:
  - snowflake: 1.0.0 - Up to date!

@iknox-fa while you're in the docker neighborhood, was wondering if you had thoughts about this: https://github.com/dbt-labs/dbt-core/issues/4784 and / or if it's related to potential bugs in the recent base images?


Add "editor.onTypeRenameBackground" to vscode theme color reference

Issue Type: Bug
This color is currently missing from https://code.visualstudio.com/api/references/theme-color
Which is api/references/theme-color.md in the vscode-docs repo
VS Code version: Code - Insiders 1.49.0-insider (e790b931385d72cf5669fcefc51cdf65990efa5d, 2020-09-09T08:51:09.367Z)
OS version: Darwin x64 18.7.0

https://github.com/microsoft/vscode-docs/commit/089b04ca69a4610a94ab96492780856060deb34d


Update data-type-functions-transact-sql.md

Text revisions to tighten and optimize the reading flow of the material.

@fbsolo : Thanks for your contribution! The author, @edmacauley, has been notified to review your proposed change.

Simple edit, works for me.  Thank you @fbsolo #sign-off


No DeprecationWarning deduping during testing

Disable deprecation warning deduping during testing and fix deprecation assertion logic in json serialization tests.
Fixes #4227.
Merge after #4250 (it contains a fix that is merged in here).

Blocked on #4250.

The CI failure is interesting, there is still some weirdness happening (at least locally):
This fails:
check/pytest -k test_sycamore_circuitop_device

These pass:
check/pytest cirq-google -k test_sycamore_circuitop_device

check/pytest cirq-google

The CI failure is interesting, there is still some weirdness happening (at least locally):
This fails:
check/pytest -k test_sycamore_circuitop_device

These pass:
check/pytest cirq-google -k test_sycamore_circuitop_device

check/pytest cirq-google

While they should all fail.

It seems that conftest.py is required by all modules to turn on CIRQ_TESTING, it doesn't get picked up from cirq automatically. As @maffoo asked about this back in the day, I thought that it is working and that's why we don't have deprecation errors all over the place :(, it turns out the deduping masked the fact that CIRQ_TESTING wasn't set on submodules. I'm setting this up now on all the modules.

ready for review @tanujkhattar

ready for re-review @tanujkhattar.


Add rawGuildIconURL, rawGuildSplashURL and rawGuildBannerURL

In case you want to get the icons from an uncached guild. We do the same for avatarURL

I think we should just add an option "raw" to makeAvatarURL function

Then we would need to change the args too. Rn we are requiring the guild object for these funcitons.

By default these functions should use the raw version as in the ids, it should not have 2 functions. The cached version should be just a getter.


training: IO is slow

during training I keep getting the following:
data reader: waiting  for data loading (IO slow)
also in the beginning I go the following message:
imdb does not contain bounding boxes
Do you get these messages too?
Or how should I improve it?
python exp_clevr_snmn/train_net_vqa.py --cfg exp_clevr_snmn/cfgs/vqa_gt_layout.yaml

here is the output of nvidia-smi while it is being trained
[jalal@goku snmn]$ nvidia-smi
Wed Oct  3 16:17:54 2018
+-----------------------------------------------------------------------------+
| NVIDIA-SMI 410.48                 Driver Version: 410.48                    |
|-------------------------------+----------------------+----------------------+
| GPU  Name        Persistence-M| Bus-Id        Disp.A | Volatile Uncorr. ECC |
| Fan  Temp  Perf  Pwr:Usage/Cap|         Memory-Usage | GPU-Util  Compute M. |
|===============================+======================+======================|
|   0  GeForce GTX 108...  Off  | 00000000:05:00.0  On |                  N/A |
|  0%   31C    P2   159W / 250W |   5644MiB / 11178MiB |      0%      Default |
+-------------------------------+----------------------+----------------------+
|   1  GeForce GTX 108...  Off  | 00000000:06:00.0 Off |                  N/A |
|  0%   26C    P8    11W / 250W |      2MiB / 11178MiB |      0%      Default |
+-------------------------------+----------------------+----------------------+

+-----------------------------------------------------------------------------+
| Processes:                                                       GPU Memory |
|  GPU       PID   Type   Process name                             Usage      |
|=============================================================================|
|    0      2214      G   /usr/bin/X                                   159MiB |
|    0      2946      C   python                                      4459MiB |
|    0      7217      G   ...quest-channel-token=3890773986348045915   935MiB |
|    0     12989      G   /usr/bin/gnome-shell                          86MiB |
+-----------------------------------------------------------------------------+

please let me know if you have any suggestion.

It was slow but eventually the training finished with the following results under ~30hrs:
exp: vqa_gt_layout, iter = 200000
	loss (vqa) = 0.050071, loss (layout) = 0.000070, loss (rec) = 0.000000, loss (sharpen) = 0.000000, sharpen_scale = 1.000000
	accuracy (cur) = 0.968750, accuracy (avg) = 0.977994
snapshot saved to ./exp_clevr_snmn/tfmodel/vqa_gt_layout/00200000

how to solve this problem.

This might sound weird but for us training it on Tesla P100 reduced it to 7hrs which is pretty good. Though depending on what you want out of snmn 30hrs on 1080Ti is not that much of a big deal unless you want to change code frequently and retrain.

how many gpus and prefetch-num, I also use Tesla P100


cannot identify some fonts extensions form mime-type

the following mime-types are returning false instead of the expected extension:

application/x-font-ttf - expected ttf
application/font-woff - expected woff
application/font-woff2 - expected woff2

BTW, is there a way to add additional mime-tyeps extensions at runtime?

For the first part of your issue, it should be answered by this part of the readme: https://github.com/jshttp/mime-types#adding-types
For the second part, there is an open PR already tracking that feature request: https://github.com/jshttp/mime-types/pull/34

@alonronin application/font-woff2 is deprecated. Since 2017 it is recommended to use font/woff2 defined in RFC8081.


Manage encoding files by extension of filenames

Hello "VS Code" team,

I do a language extension for "VS Code",
(https://github.com/FrancisFaure/vfp_tmlanguage_generator)
(Visual FoxPro)
I search a setting for the "codepage" on file extensions files (.PRG) on "Windows 1252" and not "UTF-8" by default
I try (without succes to add "files.encoding": "windows1252" in "package.json"
"VS Code" website say  :
users can change all codepage "globally" or codepage on "workspace"
(https://code.visualstudio.com/docs/editor/codebasics#_file-encoding-support)

But in the same directory we can have files in utf8 and others in "Western" (Windows 1252) codepage
I tried to add "files.encoding": "windows1252" in my language pack (package.json) without success..
I googled without solutions
sorry for my bad english
With best regards
Francis

Currently you can only configure encoding per workspace folder.

Thank for the quick answer...
Have you plan to manage encoding files by extension of filenames ?
with by example add property "files.encoding" in file "package.json" of VS Code extension language.
Because same folder could have files encoded 1252 and others utf8
with best regards
Francis

please,
have you planned an VSCode update for allow add "files.encoding": "windows1252" in extension language package.json file?
or a way for open files by extension of filenames encoded 1252 and not utf8 (we need to open *.PRG files in 1252)
Thanks

Any news for files.encoding in extention API or by fileext ?
On my project 3 different encodings in over 1000 files.
And reopen the file each time - just killing me...
Please schedule this feature..;(

I am also affected by this issue.
Please fix it.

https://github.com/Microsoft/vscode/issues/1587

@bpasero That didn't fix the issue. We can now change editor.* settings but not the encoding setting.

I am also affected by this issue.  I have many files in the same folders with different encoding...  I can't use VSCode because of this.

I left my volunteer work on VS Code because of this encoding problem that was ignored. cordially

We also need possibility to set different encoding for different file extensions. Maybe it's possible to write an extension for this?

to "Somnium7",
Hi
I work a lot (volunteer) on VS Code for manage encoding files by extension of filenames (in example like .HTML -> UTF8 and .PRG -> 1512 in the same directory)
But Microsoft ignore this request : it seem he want only manage UTF8 encoding or encoding per directories,
(Or bpassero haven't understood my request with my bad english)
The solution can be only an new line in package.json file or other way. but ignored.
if you find a solution for "set different encoding for different file extensions" : I'll happy
with best regards
Francis

I tried to add
"[bat]": {
    "files.encoding": "cp437",
    "files.autoGuessEncoding": false,
    "editor.fontFamily": "Consolas, 'Courier New', monospace"
}

to the settings.json
files.encoding and files.autoGuessEncoding triggers an issue displayed in the tooltip on mouseover: Unknown identifier. Use language identifiers.
If it is impossible now to set those settings as per language rule, please fix it.
VS Code 1.11.2 on Win 10 x64

What I find funny is that my old>old editor of choice (Notepad++) is able to auto detect the file encoding and yet VS Code with all its bells and whistles that make it a far better editor can't even manage to do that same.
At the very least you would think that we would be able to tell the editor to use X encoding for Y file type.

This problem is still not solved? It is the biggest miss of Code right now ... Please, take it seriously for a moment. I never lost an afternoon replacing bad chars due a miss while saving a file on Sublime ...

Guys, you have to vote for the first post (thumb up) so this issue may be taken seriously. With only 2 votes everybody won't care even if it's an annoying issue.

A question to developer guys.
Will this issue be taken into account shortly and put into a milestone?
It's really a big flaw to reopen a multitude of files for work with the right encoding.
It's a shameful issue.

Yes, please fix the issues with "auto guess encoding". I tried to use this setting, but it tends to guess japanese encodings for utf-8 encoded markdown files or Windows-1252 encoded PowerShell skripts. And if you don't see it while saving, you'll lose all your special characters in the file (thanks to version control at this moment, but still you lose working time...)

This feature is actually really important for VHDL. The standard CHARACTER type in VHDL is defined by the ISO 8859-1 character set. Because CHARACTER is an enumeration and "each of the 191 graphic characters of this character set is denoted by the corresponding character literal" (VHDL LRM section <IP_ADDRESS>), it is very difficult to use these values unless your editor uses the ISO 8859-1 character set for VHDL files. If you open up the std.STANDARD package (included in most EDA tools that support VHDL), you will see all of the values for CHARACTER replaced with unknown character symbols. Additionally, it will mangle files using these symbols when you save by converting all the non-ASCII characters to a UTF-8 bad character symbol, thus destroying data.
TL;DR: In order to use Visual Studio Code to edit VHDL files while still being able to use it to edit files in other languages encoded as UTF-8 (e.g. XML and HTML), this feature is extremely important.

Any news on this one? It's a real bummer :(

No news from Microsoft on my side ...

If only an extension could handle encoding according to a rule in settings.json or/and a comment at top of the file specifying the wanted priority encoding for this specific file.
But even then, VSCode doesn't even support some basic encoding such as OEM alias cp 850 needed to display foreign chars and ASCII cosmetics in batch files. #23646 (vote for this issue too please).
And yes the auto guessing encoding feature sucks comparing to other good old basic text editors.
😓
@FrancisFaure So, you said your team has offered a Pull Request to VSCode for this very issue and they didn't answer or valid?

Hi @freMea,
I just read your issue :
https://github.com/Microsoft/vscode/issues/23646
opened the march 30 of 2017
My issue :
https://github.com/Microsoft/vscode/issues/4891
opened the 3 April of 2016
I think we have the same probleme (or near) = a folder can have files with different extension filenames : .html / .css / .asp / .aspx /.prg  / .bat ...
but, if I well understand: vscode can not manage encoding per extension of filenames, but only by folders
for my language extension I proposed to add in "package.json" the encoding code or have an other similar solution.
about your sentence "So, you said your team has offered a Pull Request to VSCode for this very issue and they didn't answer or valid?" :
My english is very poor and Google Trad: can not help me about your "Pull Request"  : I don't understood.
with best regards
Francis

There is hope: https://github.com/aadsm/jschardet/releases/tag/v1.5.0 :)

voted for this issue.

"files.autoGuessencoding": true worked for me auto detecting win1252 on opening. The changes in @workflo link seem to at least have given a workaround for this issue.

Voted for this issue.
I like VSCode very much, but to not be able to set the encoding per file extension is a absolute no go. Even every normal text editor need this feature. I used it in the last millennium.

Trying to understand the requirements here. So far I have seen various requests to associate a file encoding

by language (https://github.com/Microsoft/vscode/issues/19890)
by extension (this bug)
by path (https://github.com/Microsoft/vscode/issues/23570)

It seems to me that being able to define the encoding by path is most powerful because it would allow to define the encoding for particular files in specific folders. And it would also allow to define for all files in all folders of a specific extension.
The beauty however of allowing to define the encoding by language is that we already have support for defining settings per language. The syntax is:
"[markdown]":  {
  "editor.wordWrap": "on",
  "editor.quickSuggestions": false
}

And so I could envision a setting such as:
"[markdown]":  {
  "files.encoding": "some encoding"
}

There is another related setting where you can define which extension maps to which language (files.association).

@bpasero I think that defining by path should allow wildcards to be able to match files by extension only. However, it could be harder to implement than detecting by language, because it needs new configuration syntax. For my personal needs, detection by language suffices. Let's see, what other people think.

I agree with @Somnium7 . Detection by language is the simplest and, at present, the fastest thing to implement.

I would like to add a fourth alternative to @bpasero's proposal:
It would be great if I could annotate an arbitrary text file and explicitly tell VSC which encoding to use. This was one of (X)Emacs' features I really liked:
// -*- coding: latin1 -*-
Emacs also allows overriding other settings like indentation mode, tab width and the like this way.

I have pushed a change that allows to configure the encoding per language in settings (see https://github.com/Microsoft/vscode/issues/19890#issuecomment-328480143). Will be available in tomorrows insider release. I think we should see how it goes with this support before we introduce more powerful settings.

Thank you, Benjamin.
I used the insider for a very small test and it worked for me.

@FrancisFaure ok to close?

Hi @bpasero,
I don't had/took time to test the solution of this issue (I work on vscode on my free time and my english is poor) I think I can work on that: this week-end.
(If in the same directory we can have some files with differents encoding : ie .PRG in cp1252, .XML in utf8, ... and if I can change encoding for .PRG : that could be great)
with best regards
Francis

@FrancisFaure yes, the current solution allows to change the encoding for language types. This is possible globally or per workspace folder.

Hi @bpasero
when you write "language types" = that mean by extension of filenames (ie : .PRG, .BAT, .CMD, .XML...) ?
is it a setting in  package.json of language extension ? other ? (if other have you a url link for read and test please)
Regards

@FrancisFaure this is an indirection: multiple extensions can be associated with one language. I suggest you give it a try and report back how it works for you.

Hi @bpasero
ok I will work on the subject this weekend,
Thank you
I'll let you informed after finding the links on VSCODE to define a "language type" to link the extension .PRG + tests
If you want, you can close the subject and if necessary reopen it if it does not work?
(Sorry for my bad English)
regards

Hello @bpasero
I just tried the privileged version. They're working perfectly on both global and workspace settings!
Thank you, best regards
// ---- My settings.json ----
{
    "[asp]":{
      "files.encoding": "iso88591"
    },
    "[javascript]":{
      "files.encoding": "utf8"
    },
    "[html]":{
      "files.encoding": "utf8"
    }
}

Hi @bpasero,
I tested with VS Code Insider :
a) I added in my settings (stored in C:\Users\USER\AppData\Roaming\Code - Insiders\User\settings.json):
    "[vfp]":{
        "files.encoding": "windows1252"
    }

that work well.
b) I removed my settings of §a
and added in my package.json language :
	"contributes": {
		"configurationDefaults": {
		  "[vfp]": {
			"files.encoding": "windows1252"
		  }
		}...

and that work ! great ! it's what I needed :)
with best regards
Francis

works like a bomb

@bpasero
Doesn't work search in multiple files without Ripgrep (haven't tested with it, don't need it).
I have files which need "maccenteuro" encoding, let assume it is Javascript.
With following configuration search works in all files except ".js".
"search.useRipgrep": false
With following configuration works in none files except ".js".
"search.useRipgrep": false,
"files.encoding": "maccenteuro"
With following configuration search should work for all files (seems logic), however, it works in all files except ".js" (like first case):
"search.useRipgrep": false,
"[javascript]": {
"files.encoding": "maccenteuro"
}
Note that when opening actual files encoding is working properly, only search in multiple files doesn't work.
Tested in VSCode version 1.17.0 on Windows 10

@bpasero
Search in multiple files doesn't work with setting by language
Win10 1.17.0 release

@roblourens is aware of that limitation afaik.

@roblourens Are you (or another person) going to fix this? Maybe a new issue should be created?

This is the library that would have to support those encodings: https://github.com/hsivonen/encoding_rs
It's probably unlikely, as it's not a standard encoding.


Support timekeeping

Xen exposes information for precicely calculating the current time through shared memory structures. We should use these to support runtime.nanotime and time.Now.
There should also be mechanisms for getting the system time since boot (a monotonic clock). This is needed to support timed-blocking in Xen.

Done in e1e4f0b52b706cb91a02f1b30fc8d5af75a3ec2e.


Remove authors from functions

Some functions have authors listed. I think we can remove them because 1) authors are already listed collectively, 2) they are mostly outdated and hard to keep up with them (the functions evolve over time)

ok


How much work does it take to add a new backend?

I want to use MVU in Unity's UI Toolkit
https://docs.unity3d.com/Manual/UIElements.html

Hi @eefan000. It depends on how big the public API aka Bindable properties events, constructor widgets. based on my experience with Fabulous.Avalonia in couple days you can have the hello world with a Label in screen then couple weeks to have bind the rest of the controls. I created https://github.com/edgarfgp/Fabulous.AST to help with this.

The main issue discovered is that Unity does not support F#
😭

The main issue discovered is that Unity does not support F# 😭

I saw https://github.com/gilzoide/unity-fsharp the other day.


Data representation [x,y],[y,x] for training

In the 'train' function, why is data given as [x,y],[y,x]?
For example,

In 'train_generator' function

yield ([x_batch, y_batch], [y_batch, x_batch])

In 'fit_generator' function

validation_data=[[x_test, y_test], [y_test, x_test]]

model.fit([x_train, y_train], [y_train, x_train], .....

I am new to Keras framework. Please help me understand why data is given like this.

@vandana-rajan We use model.fit(X,Y) to train a one-in-one-out model and model.fit([X1,X2], [Y1,Y2]) to train two-in-two-out model. The Capsnet model two-in-two-out, so the inputs=[X1,X2]=[x_train, y_train] and the outputs (also the targets)=[Y1,Y2]=[y_train,x_train].
Please refer to https://keras.io/getting-started/functional-api-guide/#multi-input-and-multi-output-models for more details.

@XifengGuo
Okay. I went through the link and kind of understood multi-input-multi-output models in Keras. But where exactly in capsnet is this 2-input stage coming? As I understand it, the architecture of capsnet is like this,
Input->conv2d layer->primary caps->digitcaps->FCN1->FCN2->FCN3
Can you tell me where in the code can I observe this 2-input/2-output stage? (In the code provided in the link that you gave, keras.layers.concatenate tells the point where 2 inputs meet).
Apologies for these might-be-silly questions.

okay. I understood it now.
Thanks @XifengGuo and @JoyJulianGomes


feat: Use your_program.sh if present in submission directory.

All tester repositories will be updated to set:

LegacyExecutableFileName to current value (spawn_redis_server.sh, your_shell.sh, etc)
ExecutableFileName to your_program.sh

Aside: Should I use raw strings for CODECRAFTERS_TEST_JSON in the tests? Would look more readable than the double-quote escaping we're doing. @rohitpaulk

Aside: Should I use raw strings for CODECRAFTERS_TEST_JSON in the tests? Would look more readable than the double-quote escaping we're doing. @rohitpaulk

Yep, good idea!


Disable the goerr113 linter.

This linter is nice in principle, but I've found it more annoying than helpful in practice (source for reference).
Release note:
NONE

Merging without integration test result since this was a linter-only change.


Add long wire constraints.

Add ability to set constraint generation for fanout long wires.
Example:
cst.clocks["w_lw"] = "BUFS[5]=LOGIC"
Signed-off-by: YRabbit<EMAIL_ADDRESS>

As a side note, be prepared that just specifying this restriction in the fuzzer may not work if the consumer is alone.

Here's a minimal piece:
    # source ff
    name = "r_src"
    dff = codegen.Primitive("DFF", name)
    dff.portmap['CLK'] = "w_clk"
    dff.portmap['D'] = "w_dummy"
    dff.portmap['Q'] = "w_lw"
    mod.wires.update({"w_dummy", "w_lw"})
    mod.primitives[name] = dff
    cst.clocks["w_lw"] = "BUFS[5]=LOGIC"
    cst.cells[name] = "R8C12[0][A]"
    # dest ff0
    name = "r_dst0"
    dff = codegen.Primitive("DFF", name)
    dff.portmap['CLK'] = "w_clk"
    dff.portmap['D'] = "w_lw"
    dff.portmap['Q'] = "w_dst2_d"
    mod.wires.update({"w_dst2_d"})
    mod.primitives[name] = dff
    cst.cells[name] = "R2C2[0][B]"
    # dest ff2
    name = "r_dst2"
    dff = codegen.Primitive("DFFS", name)
    dff.portmap['CLK'] = "w_clk"
    dff.portmap['D'] = "w_lw"
    dff.portmap['Q'] = "w_led"
    dff.portmap['SET'] = "w_dst2_d"
    mod.primitives[name] = dff
    cst.cells[name] = "R3C3[0][B]"

And UNK32-39 are long wires :)

Would be good to update
https://github.com/YosysHQ/apicula/blob/ca1529e508c5cb052462a5cd9dce101c11e91efd/apycula/wirenames.py#L30

I feared there would be effects from moving to another category:)
https://github.com/YosysHQ/nextpnr/blob/e926cddca274423ea414e61a07deb785ee63c92d/gowin/arch.cc#L469-L473

Hm, yes there would. A low-risk alternative is writing it down in the /doc folder.
Actually, I should probably do that to write down the MUX and ALU stuff I've found so far.

The constraint syntax;
CLOCK_LOC   "net_name"   clocks=fanout
where
clocks:
BUFG[0-7]    eight master clocks
BUFS[0-7]     eight long wires
LOCAL_CLOCK   ``not route to the clock line'' whatever this means
fanout:
CLK
CE
SR   set/reset/clear/preset
LOGIC none above
| may be used as OR. like
CLOCK_LOC "some-net"  BUFS[3]=CLK|CE

Ah yes, the last thing left to add is that there are complete analogs of clock mechanisms:
LB00, LBO1,
LB0-7
LT0,1,2,4
LT13
LT00,10,20,30 and there are two things to do:

find the connection from the spine to the T and from the DFF outputs to the spine
teach nextpnr to use these long lines correctly.

Hm, yes there would. A low-risk alternative is writing it down in the /doc folder.
Yes, I think I'll document it in a doc :)


[ScriptInterpreter] Make sure that PYTHONHOME is right.

Summary:
For the only version of Python actually supported on Darwin.
rdar://problem/40961425
Reviewers: jingham, friss, JDevlieghere, aprantl, jasonmolenda
Subscribers: jdoerfert, llvm-commits, lldb-commits
Tags: #llvm
Differential Revision: https://reviews.llvm.org/D59719
git-svn-id: https://llvm.org/svn/llvm-project/lldb/trunk@356816 91177308-0d34-0410-b5e6-96231b3b80d8

@swift-ci test and merge

@swift-ci test and merge


MangaDex tags do not display correctly

Steps to reproduce

Open a manga from the MangaDex source.

Expected behavior
The tags display correctly.
Actual behavior
The tags do not display correctly.
Crash logs
No response
Tachiyomi version
r405 Preview
Android version
Android 9.0
Device
V35
Other details
The tags shouldn't include their category (Demographics: / Tags:) in them. Expanding the synopsis will correctly display the tags, but will then include the categories as their own individual tags. Also, the layout for MangaDex tags is not consistent when expanded.
Here's a comparison  between r405 and 1.7.0.
r405 Preview

1.7.0 Stable

Acknowledgements

[X] I have searched the existing issues and this is a new ticket, NOT a duplicate or related to another open issue.
[X] I have written a short but informative title.
[X] If this is an issue with an extension, I should be opening an issue in the extensions repository.
[X] I have tried the troubleshooting guide.
[X] I have updated the app to version 1.7.0.
[X] I have updated all installed extensions.
[X] I will fill out all of the requested information in this form.

This is intentional, in 1.7.0 Mangadex is not delegated, while in the preview it is. The delegated source categorizes the tags.