profile
viewpoint
Graham Wheeler gramster Microsoft United States https://www.linkedin.com/in/grahamwheeler Engineering Manager, Python & AI Tools, Microsoft Cloud & AI

gramster/pythonbootcamp 19

Jupyter notebooks for a Python data science bootcamp I ran at eBay

gramster/Pascal 2

A Pascal compiler and p-code virtual machine

gramster/Pascal2C 2

A Pascal-to-C convertor

gramster/comictagger 1

A cross-platform GUI/CLI app for writing metadata to digital comics (fork)

gramster/gc3 1

Gram's Commander 3 - a dual-pane file manager

gramster/MIDITool 1

A very old MIDI sequencer I wrote in 1991

gramster/PEW 1

A Protocol Engineering Workbench - IDE, compiler, VM, interpreter, debugger for Estelle (Extended State Transition Language). This is old code; it probably compiles and runs command line tools on Unix, but the editor/IDE was written for MS-DOS.

gramster/backgammon 0

A Backgammon program I wrote in MS-DOS days

issue openedstryker-mutator/stryker

require() is not resolving files correctly, and it is really hard to debug

Summary

I've been beating my head against this for a couple of days and am stumped. I don't necessarily think this is a Stryker issue, but I need help, and I do have some possible feature requests for things that would make my life easier.

I am running Stryker against the http://github.com/microsoft/vscode-python repository. I get many many errors like:

12:39:44 (69635) DEBUG ClearTextReporter #49115. [RuntimeError] ConditionalExpression
12:39:44 (69635) DEBUG ClearTextReporter ^[[36m/home/gram/repos/vscode-python/src/client/workspaceSymbols/parser.ts^[[39m:^[[33m155^[[39m:^[[33m8^[[39m
12:39:44 (69635) DEBUG ClearTextReporter ^[[31m-       if (!fuzzy.test(searchPattern, match.name)) {^[[39m
12:39:44 (69635) DEBUG ClearTextReporter ^[[32m+       if (true) {^[[39m
12:39:44 (69635) DEBUG ClearTextReporter
12:39:44 (69635) DEBUG ClearTextReporter Error message: TypeError: Cannot read property 'FileNotFound' of undefined
TypeError: Cannot read property 'FileNotFound' of undefined
    at /home/gram/repos/vscode-python/.stryker-tmp/sandbox9659821/out/client/common/platform/errors.js:49:51
    at Object.<anonymous> (/home/gram/repos/vscode-python/.stryker-tmp/sandbox9659821/out/client/common/platform/errors.js:83:3)
    at Module._compile (internal/modules/cjs/loader.js:1137:30)
    at Module._compile (/home/gram/repos/vscode-python/node_modules/pirates/lib/index.js:99:24)
    at Module._extensions..js (internal/modules/cjs/loader.js:1157:10)
    at require.extensions..js (/home/gram/repos/vscode-python/.stryker-tmp/sandbox9659821/out/test/datascience/reactHelpers.js:256:13)
    at Object.newLoader [as .js] (/home/gram/repos/vscode-python/node_modules/pirates/lib/index.js:104:7)
    at Module.load (internal/modules/cjs/loader.js:985:32)
    at Module._load (internal/modules/cjs/loader.js:878:14)
    at Module._load (/home/gram/repos/vscode-python/.stryker-tmp/sandbox9659821/out/test/vscode-mock.js:50:29)

The FileNotFound error comes from this code in src/client/common/platform/errors.ts:

import * as vscode from 'vscode';
...
namespace vscErrors {
  const FILE_NOT_FOUND = vscode.FileSystemError.FileNotFound().name;
``

and the definition of the vscode module comes from `node_modules/@types/vscode`. This is an API that in the real world lives in Visual Studio Code and is accessible to all extensions that it hosts, including the one I am trying to test. In order to be able to run our tests, we have to mock it. The mocked version is in `src/tests/mocks/vsc`, and this is wired up in `src/test/unittest.ts` by modifying require to route through a wrapper defined in `src/test/vscode-mock.ts`. We have one other place where we mess with module loading, namely that `reactTestHelpers` file.

The first question I have is: what is up with the stack above? It isn't complete - something must have called into vscode-mock for this to happen. All the rest may actually be legit, because it looks like it is falling through to the original way of loading modules instead of the wrapper. It seems like this is just the first few levels of the stack, but that is not enough context. Am I right, and is there a way to get full stacks?

Secondly, how can I log stuff so it shows up in the Stryker log or the output? I have tried using console.log but as far as I can see I get nothing output.

Thirdly, when a run-time error like this occurs, can something be put in the output at the same time as the stack trace to tell me what test was running? And ideally provide me some command line argument that I can use to replicate just this single run (ideally under a debugger), and ideally without having to repeat my build command. I realize this would be test runner specific, but it would help enormously (doing a `stryker run` takes a couple of hours and there's so much missing context in the logs that I don't know how to narrow down to the right test, let alone the right set of mutations - although I should note that all the code above that messes with module loading is test helper code and not subject to mutation).
 

<!--- Provide a general summary of the issue in the title above -->

**Stryker config**

<!--- Please place your stryker config below. Feel free to change paths in the files and mutate arrays if you cannot share them. -->

```js
{
  "$schema": "./node_modules/@stryker-mutator/core/schema/stryker-schema.json",
  "packageManager": "npm",
  "coverageAnalysis": "perTest",
  "mutate": ["src/client/**/*.ts"],
  "buildCommand": "npx gulp prePublishNonBundle",
  "testRunner": "mocha",
  "mochaOptions": {
    "config": "./build/.mocha.unittests.js.json"
  },
  "cleanTempDir": false,
  "reporters": [
    "html",
    "clear-text",
    "progress"
  ]
}

Test runner config

<!--- Please Put your Jest / Karma / Jasmine / Mocha (...) configuration here. -->

{
    "spec": "./out/test/**/*.unit.test.js",
    "require": ["source-map-support/register", "out/test/unittests.js"],
    "reporter": "mocha-multi-reporters",
    "reporter-option": "configFile=build/.mocha-multi-reporters.config",
    "ui": "tdd",
    "recursive": false,
    "colors": true
}

Stryker environment

<!-- Please list your stryker plugins + versions here (output of npm ls | grep stryker) -->

├─┬ UNMET PEER DEPENDENCY @stryker-mutator/core@4.0.0-beta.8
│ ├─┬ @stryker-mutator/api@4.0.0-beta.8
│ ├─┬ @stryker-mutator/instrumenter@4.0.0-beta.8
│ │ ├── @stryker-mutator/api@4.0.0-beta.8 deduped
│ │ ├── @stryker-mutator/util@4.0.0-beta.8 deduped
│ ├─┬ @stryker-mutator/util@4.0.0-beta.8
├─┬ @stryker-mutator/mocha-runner@4.0.0-beta.8
│ ├── @stryker-mutator/api@4.0.0-beta.8 deduped
│ ├── @stryker-mutator/util@4.0.0-beta.8 deduped
├─┬ @stryker-mutator/typescript-checker@4.0.0-beta.8
│ ├── @stryker-mutator/api@4.0.0-beta.8 deduped
│ ├── @stryker-mutator/util@4.0.0-beta.8 deduped

<!-- Please also add the test runner you are using. Examples:-->

├─┬ mocha@8.1.1```

**Test runner environment**

<!-- Please add your test command here (probably the command you use in `npm test`) command -->

```shell
npm test:unittests

<!-- Please add any config files that are used by your test runner. For example jest.config.js, karma.conf.js, angular.json, mocha.opts, ... -->

Your Environment

software version(s)
node v12.18.4
npm 6.14.6
Operating System MacOS Catalina

Add stryker.log

Log file is too big.

<!-- Please add your stryker.log file. This file can be generated using stryker run --fileLogLevel trace. You can drag and drop it here. --> <!-- Your source code is never logged to this file, however file names are logged. Feel free to obfuscate those log messages if you think it is a problem -->

created time in 3 days

issue commentstryker-mutator/stryker

Broken link in stryker/packages/core/README

Here's another one; in https://stryker-mutator.io/stryker/plugins there is a broken link to the HTML reporter README:

For more info, see the @stryker-mutator/html-reporter readme

gramster

comment created time in 3 days

issue commentmicrosoft/pylance-release

pandas rename(columns={int: str}) is rejected

Thanks. We're already abusing the types quite a bit to do things like enforcing whether a parameter is present or not, and I don't want to get too carried away, especially as we want to eventually inline these in pandas, so I think its okay to just make both optional.

Dr-Irv

comment created time in 3 days

issue closedmicrosoft/pylance-release

pandas rename(columns={int: str}) is rejected

Environment data

  • Language Server version: 2020.9.4
  • OS and version: Windows 10
  • Python version (& distribution if applicable, e.g. Anaconda): Anaconda 3.7.5

Expected behaviour

No error on code below

Actual behaviour

import pandas as pd

df = pd.DataFrame({0: [1,2,3]})
df = df.rename(columns={0: "hey"})

df = pd.DataFrame({"ok": [1,2,3]})
df = df.rename(columns={"ok": "hey"})

In the above, the first rename is valid, but the error message:

No overloads for "df.rename(columns={ 0: "hey" })" match parameters
  Argument types: (Dict[int, str])

appears. This is valid pandas code. Column names can be integers

Logs

Leaving this out - it's just a stub issue

closed time in 3 days

Dr-Irv

issue commentmicrosoft/pylance-release

pandas rename(columns={int: str}) is rejected

It looks like this was fixed in the last release but we forgot to list it. Closing.

Dr-Irv

comment created time in 3 days

issue closedmicrosoft/pylance-release

Wrong return type from pandas.DataFrame().loc

<!-- Read the guidelines for filing an issue first.

https://github.com/microsoft/pylance-release/blob/master/TROUBLESHOOTING.md#filing-an-issue -->

Environment data

<!-- To find your version, you can either:

  • Open the VS Code extensions panel. Locate Pylance from the list of installed extensions. The version appears next to the name.

  • Select "View: Toggle Output" from the command palette (Ctrl+Shift+P on Windows/Linux, Command+Shift+P on macOS), then select "Python Language Server" in the dropdown on the right. Look for the line Pylance Language Server version X in the console. -->

  • Language Server version: Pylance language server 2020.9.5 (pyright a6a34d5b)

  • OS and version: Windows 10 (2004)

  • Python version (& distribution if applicable, e.g. Anaconda): Python 3.7.9 (default, Aug 31 2020, 17:10:11) [MSC v.1916 64 bit (AMD64)] :: Anaconda, Inc. on win32

Expected behaviour

import pandas as pd

def func(values: pd.Series) -> pd.Series:
    return values

df = pd.DataFrame({"a": [1, 2], "b": [3, 4]})

func(df.loc[df.a == 1, "b"])  # should not have any warnings

Actual behaviour

Warning appears:

Argument of type "DataFrame" cannot be assigned to parameter "values" of type "Series[Unknown]" in function "func"
  "DataFrame" is incompatible with "Series[Unknown]"Pylance (reportGeneralTypeIssues)

Logs

<!-- Enable trace logging by adding "python.analysis.logLevel": "Trace" to your settings.json configuration file.

Adding this will cause a large amount of info to be printed to the Python output panel. This should not be left long term, as the performance impact of the logging is significant. --> <details>

User belongs to experiment group 'AlwaysDisplayTestExplorer - experiment'
User belongs to experiment group 'ShowPlayIcon - start'
User belongs to experiment group 'ShowExtensionSurveyPrompt - enabled'
User belongs to experiment group 'DebugAdapterFactory - experiment'
User belongs to experiment group 'PtvsdWheels37 - experiment'
User belongs to experiment group 'UseTerminalToGetActivatedEnvVars - control'
User belongs to experiment group 'LocalZMQKernel - experiment'
User belongs to experiment group 'CollectLSRequestTiming - control'
User belongs to experiment group 'CollectNodeLSRequestTiming - experiment'
User belongs to experiment group 'EnableIPyWidgets - experiment'
User belongs to experiment group 'DeprecatePythonPath - experiment'
User belongs to experiment group 'RunByLine - experiment'
User belongs to experiment group 'CustomEditorSupport - control'
User belongs to experiment group 'pythonaacf'
User belongs to experiment group 'pythonTipPromptWording'
> conda --version
> pyenv root
> python3.7 "D:\Visual Studio Code\data\extensions\ms-python.python-2020.8.109390\pythonFiles\pyvsc-run-isolated.py" -c "import sys;print(sys.executable)"
> python3.6 "D:\Visual Studio Code\data\extensions\ms-python.python-2020.8.109390\pythonFiles\pyvsc-run-isolated.py" -c "import sys;print(sys.executable)"
> python2 "D:\Visual Studio Code\data\extensions\ms-python.python-2020.8.109390\pythonFiles\pyvsc-run-isolated.py" -c "import sys;print(sys.executable)"
> py -3.6 "D:\Visual Studio Code\data\extensions\ms-python.python-2020.8.109390\pythonFiles\pyvsc-run-isolated.py" -c "import sys;print(sys.executable)"
> py -3 "D:\Visual Studio Code\data\extensions\ms-python.python-2020.8.109390\pythonFiles\pyvsc-run-isolated.py" -c "import sys;print(sys.executable)"
> py -2 "D:\Visual Studio Code\data\extensions\ms-python.python-2020.8.109390\pythonFiles\pyvsc-run-isolated.py" -c "import sys;print(sys.executable)"
> python "D:\Visual Studio Code\data\extensions\ms-python.python-2020.8.109390\pythonFiles\pyvsc-run-isolated.py" -c "import sys;print(sys.executable)"
> python3 "D:\Visual Studio Code\data\extensions\ms-python.python-2020.8.109390\pythonFiles\pyvsc-run-isolated.py" -c "import sys;print(sys.executable)"
> py -3.7 "D:\Visual Studio Code\data\extensions\ms-python.python-2020.8.109390\pythonFiles\pyvsc-run-isolated.py" -c "import sys;print(sys.executable)"
> python "D:\Visual Studio Code\data\extensions\ms-python.python-2020.8.109390\pythonFiles\pyvsc-run-isolated.py" -c "import sys;print(sys.executable)"
Error 2020-09-25 13:04:14: Failed to check if file needs to be fixed [EntryNotFound (FileSystemError): Unable to read file 'c:\Users\UserName\AppData\Roaming\Code\User\settings.json' (EntryNotFound (FileSystemError): Error: ENOENT: no such file or directory, open 'c:\Users\UserName\AppData\Roaming\Code\User\settings.json')
	at _handleError (D:\Visual Studio Code\resources\app\out\vs\workbench\services\extensions\node\extensionHostProcess.js:706:74)
	at processTicksAndRejections (internal/process/task_queues.js:94:5)
	at async v.readText (D:\Visual Studio Code\data\extensions\ms-python.python-2020.8.109390\out\client\extension.js:1:495817)
	at async p.doesFileNeedToBeFixed (D:\Visual Studio Code\data\extensions\ms-python.python-2020.8.109390\out\client\extension.js:56:953520)
	at async D:\Visual Studio Code\data\extensions\ms-python.python-2020.8.109390\out\client\extension.js:56:952647
	at async Promise.all (index 0)
	at async p.getFilesToBeFixed (D:\Visual Studio Code\data\extensions\ms-python.python-2020.8.109390\out\client\extension.js:56:952593)
	at async p.updateTestSettings (D:\Visual Studio Code\data\extensions\ms-python.python-2020.8.109390\out\client\extension.js:56:952220)] {
  code: 'FileNotFound',
  name: 'EntryNotFound (FileSystemError)'
}
Error 2020-09-25 13:04:14: Failed to check if file needs to be fixed [EntryNotFound (FileSystemError): Unable to read file 'd:\WorkspaceFolder\.vscode\settings.json' (EntryNotFound (FileSystemError): Error: ENOENT: no such file or directory, open 'd:\WorkspaceFolder\.vscode\settings.json')
	at _handleError (D:\Visual Studio Code\resources\app\out\vs\workbench\services\extensions\node\extensionHostProcess.js:706:74)
	at processTicksAndRejections (internal/process/task_queues.js:94:5)
	at async v.readText (D:\Visual Studio Code\data\extensions\ms-python.python-2020.8.109390\out\client\extension.js:1:495817)
	at async p.doesFileNeedToBeFixed (D:\Visual Studio Code\data\extensions\ms-python.python-2020.8.109390\out\client\extension.js:56:953520)
	at async D:\Visual Studio Code\data\extensions\ms-python.python-2020.8.109390\out\client\extension.js:56:952647
	at async Promise.all (index 1)
	at async p.getFilesToBeFixed (D:\Visual Studio Code\data\extensions\ms-python.python-2020.8.109390\out\client\extension.js:56:952593)
	at async p.updateTestSettings (D:\Visual Studio Code\data\extensions\ms-python.python-2020.8.109390\out\client\extension.js:56:952220)] {
  code: 'FileNotFound',
  name: 'EntryNotFound (FileSystemError)'
}
> python "D:\Visual Studio Code\data\extensions\ms-python.python-2020.8.109390\pythonFiles\pyvsc-run-isolated.py" -c "import sys;print(sys.executable)"
> python "D:\Visual Studio Code\data\extensions\ms-python.python-2020.8.109390\pythonFiles\pyvsc-run-isolated.py" -c "import sys;print(sys.executable)"
> python "D:\Visual Studio Code\data\extensions\ms-python.python-2020.8.109390\pythonFiles\pyvsc-run-isolated.py" -c "import sys;print(sys.executable)"
> python "D:\Visual Studio Code\data\extensions\ms-python.python-2020.8.109390\pythonFiles\pyvsc-run-isolated.py" -c "import sys;print(sys.executable)"
Error 2020-09-25 13:04:15: Detection of Python Interpreter for Command py and args -3.7 failed as file  does not exist
Error 2020-09-25 13:04:15: Detection of Python Interpreter for Command py and args -3 failed as file  does not exist
Error 2020-09-25 13:04:15: Detection of Python Interpreter for Command py and args -3.6 failed as file  does not exist
Error 2020-09-25 13:04:15: Detection of Python Interpreter for Command py and args -2 failed as file  does not exist
Error 2020-09-25 13:04:15: Detection of Python Interpreter for Command python and args  failed as file  does not exist
Error 2020-09-25 13:04:15: Detection of Python Interpreter for Command python3 and args  failed as file  does not exist
Error 2020-09-25 13:04:15: Detection of Python Interpreter for Command python and args  failed as file  does not exist
> D:\Anaconda\python.exe "D:\Visual Studio Code\data\extensions\ms-python.python-2020.8.109390\pythonFiles\pyvsc-run-isolated.py" pycodestyle --max-line-length=100 --format=%(row)d,%(col)d,%(code).1s,%(code)s:%(text)s "d:\WorkspaceFolder\some_module.py"
cwd: d:\WorkspaceFolder
> D:\Anaconda\python.exe "D:\Visual Studio Code\data\extensions\ms-python.python-2020.8.109390\pythonFiles\pyvsc-run-isolated.py" pycodestyle --max-line-length=100 --format=%(row)d,%(col)d,%(code).1s,%(code)s:%(text)s "d:\WorkspaceFolder\some_module.py"
cwd: d:\WorkspaceFolder
> D:\Anaconda\python.exe "D:\Visual Studio Code\data\extensions\ms-python.python-2020.8.109390\pythonFiles\pyvsc-run-isolated.py" pylama --format=parsable "d:\WorkspaceFolder\some_module.py"
cwd: d:\WorkspaceFolder
> D:\Anaconda\python.exe "D:\Visual Studio Code\data\extensions\ms-python.python-2020.8.109390\pythonFiles\pyvsc-run-isolated.py" pylama --format=parsable "d:\WorkspaceFolder\some_module.py"
cwd: d:\WorkspaceFolder
Python interpreter path: D:\Anaconda\python.exe
Starting Pylance language server.
> pyenv root
> pyenv root
> conda info --json
> conda env list
##########Linting Output - pycodestyle##########
Error 2020-09-25 13:04:20: Failed to get interpreter information for 'C:\Users\UserName\AppData\Local\Microsoft\WindowsApps\python3.exe' [Error: Command failed: "C:\Users\UserName\AppData\Local\Microsoft\WindowsApps\python3.exe" "D:\Visual Studio Code\data\extensions\ms-python.python-2020.8.109390\pythonFiles\pyvsc-run-isolated.py" "D:\Visual Studio Code\data\extensions\ms-python.python-2020.8.109390\pythonFiles\interpreterInfo.py"
Python was not found but can be installed from the Microsoft Store: https://go.microsoft.com/fwlink?linkID=2082640
	at ChildProcess.exithandler (child_process.js:304:12)
	at ChildProcess.emit (events.js:223:5)
	at ChildProcess.EventEmitter.emit (domain.js:475:20)
	at maybeClose (internal/child_process.js:1021:16)
	at Process.ChildProcess._handle.onexit (internal/child_process.js:283:5)] {
  killed: false,
  code: 9009,
  signal: null,
  cmd: '"C:\\\\Users\\UserName\\AppData\\Local\\Microsoft\\WindowsApps\\python3.exe" "D:\\Visual Studio Code\\data\\extensions\\ms-python.python-2020.8.109390\\pythonFiles\\pyvsc-run-isolated.py" "D:\\Visual Studio Code\\data\\extensions\\ms-python.python-2020.8.109390\\pythonFiles\\interpreterInfo.py"'
}
Error 2020-09-25 13:04:20: Failed to get interpreter information for 'C:\Users\UserName\AppData\Local\Microsoft\WindowsApps\python.exe' [Error: Command failed: "C:\Users\UserName\AppData\Local\Microsoft\WindowsApps\python.exe" "D:\Visual Studio Code\data\extensions\ms-python.python-2020.8.109390\pythonFiles\pyvsc-run-isolated.py" "D:\Visual Studio Code\data\extensions\ms-python.python-2020.8.109390\pythonFiles\interpreterInfo.py"
Python was not found but can be installed from the Microsoft Store: https://go.microsoft.com/fwlink?linkID=2082640
	at ChildProcess.exithandler (child_process.js:304:12)
	at ChildProcess.emit (events.js:223:5)
	at ChildProcess.EventEmitter.emit (domain.js:475:20)
	at maybeClose (internal/child_process.js:1021:16)
	at Process.ChildProcess._handle.onexit (internal/child_process.js:283:5)] {
  killed: false,
  code: 9009,
  signal: null,
  cmd: '"C:\\\\Users\\UserName\\AppData\\Local\\Microsoft\\WindowsApps\\python.exe" "D:\\Visual Studio Code\\data\\extensions\\ms-python.python-2020.8.109390\\pythonFiles\\pyvsc-run-isolated.py" "D:\\Visual Studio Code\\data\\extensions\\ms-python.python-2020.8.109390\\pythonFiles\\interpreterInfo.py"'
}
Error 2020-09-25 13:04:20: Failed to get interpreter information for 'C:\Users\UserName\AppData\Local\Microsoft\WindowsApps\python3.exe' [Error: Command failed: "C:\Users\UserName\AppData\Local\Microsoft\WindowsApps\python3.exe" "D:\Visual Studio Code\data\extensions\ms-python.python-2020.8.109390\pythonFiles\pyvsc-run-isolated.py" "D:\Visual Studio Code\data\extensions\ms-python.python-2020.8.109390\pythonFiles\interpreterInfo.py"
Python was not found but can be installed from the Microsoft Store: https://go.microsoft.com/fwlink?linkID=2082640
	at ChildProcess.exithandler (child_process.js:304:12)
	at ChildProcess.emit (events.js:223:5)
	at ChildProcess.EventEmitter.emit (domain.js:475:20)
	at maybeClose (internal/child_process.js:1021:16)
	at Process.ChildProcess._handle.onexit (internal/child_process.js:283:5)] {
  killed: false,
  code: 9009,
  signal: null,
  cmd: '"C:\\\\Users\\UserName\\AppData\\Local\\Microsoft\\WindowsApps\\python3.exe" "D:\\Visual Studio Code\\data\\extensions\\ms-python.python-2020.8.109390\\pythonFiles\\pyvsc-run-isolated.py" "D:\\Visual Studio Code\\data\\extensions\\ms-python.python-2020.8.109390\\pythonFiles\\interpreterInfo.py"'
}
Error 2020-09-25 13:04:20: Failed to get interpreter information for 'C:\Users\UserName\AppData\Local\Microsoft\WindowsApps\python.exe' [Error: Command failed: "C:\Users\UserName\AppData\Local\Microsoft\WindowsApps\python.exe" "D:\Visual Studio Code\data\extensions\ms-python.python-2020.8.109390\pythonFiles\pyvsc-run-isolated.py" "D:\Visual Studio Code\data\extensions\ms-python.python-2020.8.109390\pythonFiles\interpreterInfo.py"
Python was not found but can be installed from the Microsoft Store: https://go.microsoft.com/fwlink?linkID=2082640
	at ChildProcess.exithandler (child_process.js:304:12)
	at ChildProcess.emit (events.js:223:5)
	at ChildProcess.EventEmitter.emit (domain.js:475:20)
	at maybeClose (internal/child_process.js:1021:16)
	at Process.ChildProcess._handle.onexit (internal/child_process.js:283:5)] {
  killed: false,
  code: 9009,
  signal: null,
  cmd: '"C:\\\\Users\\UserName\\AppData\\Local\\Microsoft\\WindowsApps\\python.exe" "D:\\Visual Studio Code\\data\\extensions\\ms-python.python-2020.8.109390\\pythonFiles\\pyvsc-run-isolated.py" "D:\\Visual Studio Code\\data\\extensions\\ms-python.python-2020.8.109390\\pythonFiles\\interpreterInfo.py"'
}
> conda info --json
> conda info --json
> conda env list
##########Linting Output - pylama##########
Error 2020-09-25 13:05:06: getActivatedEnvironmentVariables [Error: Command failed: D:/Anaconda/Scripts/activate && conda activate base && echo 'e8b39361-0157-4923-80e1-22d70d46dee6' && python "D:\Visual Studio Code\data\extensions\ms-python.python-2020.8.109390\pythonFiles\pyvsc-run-isolated.py" "D:/Visual Studio Code/data/extensions/ms-python.python-2020.8.109390/pythonFiles/printEnvVariables.py"

	at ChildProcess.exithandler (child_process.js:304:12)
	at ChildProcess.emit (events.js:223:5)
	at ChildProcess.EventEmitter.emit (domain.js:475:20)
	at maybeClose (internal/child_process.js:1021:16)
	at Process.ChildProcess._handle.onexit (internal/child_process.js:283:5)] {
  killed: true,
  code: null,
  signal: 'SIGTERM',
  cmd: `D:/Anaconda/Scripts/activate && conda activate base && echo 'e8b39361-0157-4923-80e1-22d70d46dee6' && python "D:\\Visual Studio Code\\data\\extensions\\ms-python.python-2020.8.109390\\pythonFiles\\pyvsc-run-isolated.py" "D:/Visual Studio Code/data/extensions/ms-python.python-2020.8.109390/pythonFiles/printEnvVariables.py"`
}
> D:\Anaconda\python.exe "D:\Visual Studio Code\data\extensions\ms-python.python-2020.8.109390\pythonFiles\testing_tools\run_adapter.py" discover pytest -- --rootdir "d:\WorkspaceFolder" -s --cache-clear --no-cov
cwd: d:\WorkspaceFolder
> D:\Anaconda\python.exe "D:\Visual Studio Code\data\extensions\ms-python.python-2020.8.109390\pythonFiles\testing_tools\run_adapter.py" discover pytest -- --rootdir "d:\WorkspaceFolder" -s --cache-clear --no-cov
cwd: d:\WorkspaceFolder
> D:\Anaconda\python.exe "D:\Visual Studio Code\data\extensions\ms-python.python-2020.8.109390\pythonFiles\pyvsc-run-isolated.py" pycodestyle --max-line-length=100 --format=%(row)d,%(col)d,%(code).1s,%(code)s:%(text)s "d:\WorkspaceFolder\some_module.py"
cwd: d:\WorkspaceFolder
> D:\Anaconda\python.exe "D:\Visual Studio Code\data\extensions\ms-python.python-2020.8.109390\pythonFiles\pyvsc-run-isolated.py" pycodestyle --max-line-length=100 --format=%(row)d,%(col)d,%(code).1s,%(code)s:%(text)s "d:\WorkspaceFolder\some_module.py"
cwd: d:\WorkspaceFolder
> D:\Anaconda\python.exe "D:\Visual Studio Code\data\extensions\ms-python.python-2020.8.109390\pythonFiles\pyvsc-run-isolated.py" pylama --format=parsable "d:\WorkspaceFolder\some_module.py"
cwd: d:\WorkspaceFolder
> D:\Anaconda\python.exe "D:\Visual Studio Code\data\extensions\ms-python.python-2020.8.109390\pythonFiles\pyvsc-run-isolated.py" pylama --format=parsable "d:\WorkspaceFolder\some_module.py"
cwd: d:\WorkspaceFolder
##########Linting Output - pycodestyle##########
120,101,E,E501:line too long (101 > 100 characters)
##########Linting Output - pylama##########
some_module.py:120:101: [C] E501 line too long (101 > 100 characters) [pycodestyle]
> D:\Anaconda\python.exe "D:\Visual Studio Code\data\extensions\ms-python.python-2020.8.109390\pythonFiles\pyvsc-run-isolated.py" pycodestyle --max-line-length=100 --format=%(row)d,%(col)d,%(code).1s,%(code)s:%(text)s "d:\WorkspaceFolder\some_module.py"
cwd: d:\WorkspaceFolder
> D:\Anaconda\python.exe "D:\Visual Studio Code\data\extensions\ms-python.python-2020.8.109390\pythonFiles\pyvsc-run-isolated.py" pycodestyle --max-line-length=100 --format=%(row)d,%(col)d,%(code).1s,%(code)s:%(text)s "d:\WorkspaceFolder\some_module.py"
cwd: d:\WorkspaceFolder
> D:\Anaconda\python.exe "D:\Visual Studio Code\data\extensions\ms-python.python-2020.8.109390\pythonFiles\pyvsc-run-isolated.py" pylama --format=parsable "d:\WorkspaceFolder\some_module.py"
cwd: d:\WorkspaceFolder
> D:\Anaconda\python.exe "D:\Visual Studio Code\data\extensions\ms-python.python-2020.8.109390\pythonFiles\pyvsc-run-isolated.py" pylama --format=parsable "d:\WorkspaceFolder\some_module.py"
cwd: d:\WorkspaceFolder
##########Linting Output - pycodestyle##########
120,101,E,E501:line too long (101 > 100 characters)
##########Linting Output - pylama##########
some_module.py:120:101: [C] E501 line too long (101 > 100 characters) [pycodestyle]
> D:\Anaconda\python.exe "D:\Visual Studio Code\data\extensions\ms-python.python-2020.8.109390\pythonFiles\pyvsc-run-isolated.py" black --line-length 100 --diff --quiet "d:\WorkspaceFolder\some_module.py.9477e8811515f299840223bba6cda662.tmp"
cwd: d:\WorkspaceFolder
> D:\Anaconda\python.exe "D:\Visual Studio Code\data\extensions\ms-python.python-2020.8.109390\pythonFiles\pyvsc-run-isolated.py" black --line-length 100 --diff --quiet "d:\WorkspaceFolder\some_module.py.9477e8811515f299840223bba6cda662.tmp"
cwd: d:\WorkspaceFolder
> D:\Anaconda\python.exe "D:\Visual Studio Code\data\extensions\ms-python.python-2020.8.109390\pythonFiles\pyvsc-run-isolated.py" pycodestyle --max-line-length=100 --format=%(row)d,%(col)d,%(code).1s,%(code)s:%(text)s "d:\WorkspaceFolder\some_module.py"
cwd: d:\WorkspaceFolder
> D:\Anaconda\python.exe "D:\Visual Studio Code\data\extensions\ms-python.python-2020.8.109390\pythonFiles\pyvsc-run-isolated.py" pycodestyle --max-line-length=100 --format=%(row)d,%(col)d,%(code).1s,%(code)s:%(text)s "d:\WorkspaceFolder\some_module.py"
cwd: d:\WorkspaceFolder
> D:\Anaconda\python.exe "D:\Visual Studio Code\data\extensions\ms-python.python-2020.8.109390\pythonFiles\pyvsc-run-isolated.py" pylama --format=parsable "d:\WorkspaceFolder\some_module.py"
cwd: d:\WorkspaceFolder
> D:\Anaconda\python.exe "D:\Visual Studio Code\data\extensions\ms-python.python-2020.8.109390\pythonFiles\pyvsc-run-isolated.py" pylama --format=parsable "d:\WorkspaceFolder\some_module.py"
cwd: d:\WorkspaceFolder
##########Linting Output - pycodestyle##########
##########Linting Output - pylama##########
> D:\Anaconda\python.exe "D:\Visual Studio Code\data\extensions\ms-python.python-2020.8.109390\pythonFiles\pyvsc-run-isolated.py" pycodestyle --max-line-length=100 --format=%(row)d,%(col)d,%(code).1s,%(code)s:%(text)s "d:\WorkspaceFolder\some_module.py"
cwd: d:\WorkspaceFolder
> D:\Anaconda\python.exe "D:\Visual Studio Code\data\extensions\ms-python.python-2020.8.109390\pythonFiles\pyvsc-run-isolated.py" pycodestyle --max-line-length=100 --format=%(row)d,%(col)d,%(code).1s,%(code)s:%(text)s "d:\WorkspaceFolder\some_module.py"
cwd: d:\WorkspaceFolder
> D:\Anaconda\python.exe "D:\Visual Studio Code\data\extensions\ms-python.python-2020.8.109390\pythonFiles\pyvsc-run-isolated.py" pylama --format=parsable "d:\WorkspaceFolder\some_module.py"
cwd: d:\WorkspaceFolder
> D:\Anaconda\python.exe "D:\Visual Studio Code\data\extensions\ms-python.python-2020.8.109390\pythonFiles\pyvsc-run-isolated.py" pylama --format=parsable "d:\WorkspaceFolder\some_module.py"
cwd: d:\WorkspaceFolder

</details>

closed time in 3 days

wikiped

issue commentmicrosoft/pylance-release

Wrong return type from pandas.DataFrame().loc

Unfortunately there isn't a great solution here, other than using df["a"] instead of df.a, or casting the argument to a Series, as the Python typing system isn't yet able to handle dynamic attributes. This is something I have brought up in the typing SIG before and will do so again, as it would be great to have a way to be able to handle such cases. Alternatively maybe one day if we add special case typing extensions to Pylance.

Closing as won't fix for now until there is a technically feasible way of dealing with such cases.

wikiped

comment created time in 3 days

issue commentmicrosoft/pylance-release

Pandas ExcelWriter Generates 'Cannot Instantiate Abstract Class' Error Incorrectly

This is because pandas decorates some of the methods in this class with @abc.abstractmethod. I'll remove that decoration from the stubs.

iUnknwn

comment created time in 4 days

issue commentmicrosoft/pylance-release

Autocomplete provides incorrect name for select_dtypes method of pandas

Interesting; I believe selectDTypes came from the Pandas source so there may be some munging that pandas does. I'll fix this in the stubs though. Thanks for reporting!

saurabh-c-rai

comment created time in 4 days

issue commentmicrosoft/pylance-release

pandas reset_index() not allowing lists of index levels to remove

Thanks again for these great bug reports!

Dr-Irv

comment created time in 4 days

issue openedstryker-mutator/stryker

Broken link in stryker/packages/core/README

Summary

There's a list of the available options that are links to the details for each option. The "files" option is not linked correctly.

created time in 5 days

push eventgramster/ipython-kusto

Graham Wheeler

commit sha db8308eee5790e23c4eb55c31a3daa2f12461522

Fixed sample notebook. Simplified dependencies.

view details

push time in 6 days

push eventgramster/ipython-kusto

Graham Wheeler

commit sha 631e6f62c2b700e00c9b4f2ff626576e05018c71

Update Storms.ipynb Added name property to stream outputs.

view details

push time in 6 days

push eventgramster/ipython-kusto

Graham Wheeler

commit sha b767519cbcb6ac470c1d957499781b9426fcbf82

Update README.md

view details

push time in 6 days

push eventgramster/ipython-kusto

Graham Wheeler

commit sha 23999d24123bebee8c99deb1ceda27dfbb17ca9b

Removed NEWS.md

view details

push time in 6 days

push eventmicrosoft/vscode-python

Graham Wheeler

commit sha ee0cad9b52d4ffdd509a0fd094d89304cbc94dd9

merge

view details

push time in 7 days

issue commentmicrosoft/pylance-release

pandas DataFrame.index property has wrong return type

Alternatively you can use typing.cast, which is more portable.

https://docs.python.org/3/library/typing.html#typing.cast

Dr-Irv

comment created time in 7 days

issue commentmicrosoft/pylance-release

pandas DataFrame.index property has wrong return type

Perhaps there’s an overload possible on set_index; will look at that.

On Sat, Sep 19, 2020 at 8:29 PM Irv Lustig notifications@github.com wrote:

Yes, I get that. The issue is that an operation such as DataFrame.set_index() can change the type of DataFrame.index to MultiIndex .

If you end up releasing with the Index type (which should be changed from the current Index[int]), then the # type: ignore will be the only way to go

— You are receiving this because you were assigned. Reply to this email directly, view it on GitHub https://github.com/microsoft/pylance-release/issues/387#issuecomment-695615671, or unsubscribe https://github.com/notifications/unsubscribe-auth/AAVCPCDRTSQTQFE4MB7ZCX3SGVZK5ANCNFSM4RRDKJRA .

Dr-Irv

comment created time in 9 days

issue commentmicrosoft/pylance-release

pandas DataFrame.index property has wrong return type

MultiIndex is a subtype of Index: https://github.com/pandas-dev/pandas/blob/c33c3c03c227d53139d6b9a2b6bc1dc1f9400542/pandas/core/indexes/multi.py#L175

I think the correct thing here is to return Index. You can declare your variable as a MultiIndex and then use a # type: ignore comment on that line to silence the type check.

Dr-Irv

comment created time in 9 days

issue commentmicrosoft/pylance-release

pandas DataFrame.index property has wrong return type

This one is going to be problematic. If we say it is an index, then we will flag an error when it is assigned to MultiIndex, but the same would happen if we use Union[Index, MultiIndex]. As MultiIndex is a subtype of Index, it seems like the right thing here is to return an Index type, unless this is always a multiindex which I don't believe it is. I don't see a good solution.

Dr-Irv

comment created time in 10 days

issue commentmicrosoft/pylance-release

pd.read_excel() has some parameters incorrectly documented

For skiprows, this is motivation to start making PRs against pandas to inline these types or we'll be whacking moles endlessly.

Dr-Irv

comment created time in 10 days

issue commentmicrosoft/pylance-release

pandas DataFrame.index property has wrong return type

Seems like the result should be a union of Index or MultiIndex in this case. You set the index to a multiindex so your case makes sense, but before your call to set_index it would have just been a regular Index, no?

Dr-Irv

comment created time in 10 days

issue commentmicrosoft/pylance-release

pandas Series.reset_index() returning wrong type when index of Series is a MultiIndex

Thanks for all these reports and suggested fixes; that's awesome!

Dr-Irv

comment created time in 10 days

issue commentstryker-mutator/stryker

Beta: Mutations are creating invalid code

Awesome, thanks Nico!

On Thu, Sep 17, 2020 at 6:06 AM Nico Jansen notifications@github.com wrote:

Just released 4.0.0-beta.7. Happy mutation testing @gramster https://github.com/gramster 😁

— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub https://github.com/stryker-mutator/stryker/issues/2469#issuecomment-694219113, or unsubscribe https://github.com/notifications/unsubscribe-auth/AAVCPCDMLR7BVM6T26MW3ZTSGICWXANCNFSM4RDEHLNA .

gramster

comment created time in 12 days

Pull request review commentmicrosoft/vscode-python

Add API to identify pipenv

+import * as assert from 'assert';
+import * as path from 'path';
+import * as sinon from 'sinon';
+import * as platformApis from '../../../../client/common/utils/platform';
+import * as externalDependencies from '../../../../client/pythonEnvironments/common/externalDependencies';
+import { _getAssociatedPipfile, isPipenvEnvironment, isPipenvEnvironmentRelatedToFolder } from '../../../../client/pythonEnvironments/discovery/locators/services/pipEnvHelper';
+
+suite('Pipenv helper', () => {
+    suite('Method isPipenvEnvironmentRelatedToFolder()', async () => {
+        let readFile: sinon.SinonStub;
+        let getEnvVar: sinon.SinonStub;
+        let pathExists: sinon.SinonStub;
+        let arePathsSame: sinon.SinonStub;

Such people are already confused so I'm fine with that :-) From my comment in 13893:

FWIW, these are the case that I believe are appropriate for stubbing:

  • stateful shared dependencies
  • slow dependencies
  • non-deterministic components
  • resource-intensive components
  • hard to initialize/configure components
  • components where you want to generate boundary test values that would be hard to create with the real code
  • in TDD, stubbing dependencies that don't yet exist (until they do)
karrtikr

comment created time in 14 days

PullRequestReviewEvent

Pull request review commentmicrosoft/vscode-python

Virtualenv locator

+// Copyright (c) Microsoft Corporation. All rights reserved.+// Licensed under the MIT License.++import * as assert from 'assert';+import * as fsapi from 'fs-extra';+import * as path from 'path';+import * as sinon from 'sinon';+import { isVirtualenvEnvironment } from '../../../../client/pythonEnvironments/discovery/locators/services/virtualenvLocator';++suite('Virtualenv Locator Tests', () => {+    const envRoot = path.join('path', 'to', 'env');+    const interpreter = path.join(envRoot, 'python');

FWIW, these are the case that I believe are appropriate for stubbing:

  • stateful shared dependencies
  • slow dependencies
  • non-deterministic components
  • resource-intensive components
  • hard to initialize/configure components
  • components where you want to generate boundary test values that would be hard to create with the real code
  • in TDD, stubbing dependencies that don't yet exist (until they do)
kimadeline

comment created time in 14 days

PullRequestReviewEvent

Pull request review commentmicrosoft/vscode-python

Virtualenv locator

+// Copyright (c) Microsoft Corporation. All rights reserved.+// Licensed under the MIT License.++import * as assert from 'assert';+import * as fsapi from 'fs-extra';+import * as path from 'path';+import * as sinon from 'sinon';+import { isVirtualenvEnvironment } from '../../../../client/pythonEnvironments/discovery/locators/services/virtualenvLocator';++suite('Virtualenv Locator Tests', () => {+    const envRoot = path.join('path', 'to', 'env');+    const interpreter = path.join(envRoot, 'python');

Actually, functional testing is testing that the system as a whole functions as intended. So acceptance tests for user stories would be functional tests. Unit tests can test at levels of abstraction that are not the same as functional tests. But that does not mean that all dependencies should be stubbed. Stub dependencies that are stateful or have performance implications. Don't stub things just because they are dependencies.

kimadeline

comment created time in 14 days

PullRequestReviewEvent

issue closedflutter/flutter

Application fails to build after flutter update

I just opened Visual Studio Code and got a prompt to upgrade flutter, and now my app fails to build, but I don't get any useful errors. All I see is this:

Launching lib/main.dart on iPhone SE (2nd generation) in debug mode...
Xcode build done.                                           24.2s
Failed to build iOS app
Exited (sigterm)
Could not build the application for the simulator.
Error launching application on iPhone SE (2nd generation).

This was working fine before the update.

The only "problems" in the problems tab are four TODO comments.

Output from flutter doctor:

Doctor summary (to see all details, run flutter doctor -v):
[✓] Flutter (Channel stable, 1.20.3, on Mac OS X 10.15.6 19G2021, locale en-US)
 
[!] Android toolchain - develop for Android devices (Android SDK version 25.0.3)
    ✗ Flutter requires Android SDK 28 and the Android BuildTools 28.0.3
      To update using sdkmanager, run:
        "/Users/gram/Library/Android/sdk/tools/bin/sdkmanager" "platforms;android-28" "build-tools;28.0.3"
      or visit https://flutter.dev/docs/get-started/install/macos#android-setup for detailed instructions.
    ✗ Android licenses not accepted.  To resolve this, run: flutter doctor --android-licenses
 
[✓] Xcode - develop for iOS and macOS (Xcode 11.7)
[!] Android Studio (not installed)
[!] IntelliJ IDEA Ultimate Edition (version 2020.1.2)
    ✗ Flutter plugin not installed; this adds Flutter specific functionality.
    ✗ Dart plugin not installed; this adds Dart specific functionality.
[✓] VS Code (version 1.49.0)
[✓] Connected device (1 available)

! Doctor found issues in 3 categories.

closed time in 16 days

gramster

issue commentflutter/flutter

Application fails to build after flutter update

Thanks, that was enough clue to get errors to help me work out the issue. I needed to do a clean after the upgrade; there were old build artifacts causing the issue.

gramster

comment created time in 16 days

issue openedflutter/flutter

Application fails to build after flutter update

I just opened Visual Studio Code and got a prompt to upgrade flutter, and now my app fails to build, but I don't get any useful errors. All I see is this:

Launching lib/main.dart on iPhone SE (2nd generation) in debug mode...
Xcode build done.                                           24.2s
Failed to build iOS app
Exited (sigterm)
Could not build the application for the simulator.
Error launching application on iPhone SE (2nd generation).

This was working fine before the update.

The only "problems" in the problems tab are four TODO comments.

Output from flutter doctor:

Doctor summary (to see all details, run flutter doctor -v):
[✓] Flutter (Channel stable, 1.20.3, on Mac OS X 10.15.6 19G2021, locale en-US)
 
[!] Android toolchain - develop for Android devices (Android SDK version 25.0.3)
    ✗ Flutter requires Android SDK 28 and the Android BuildTools 28.0.3
      To update using sdkmanager, run:
        "/Users/gram/Library/Android/sdk/tools/bin/sdkmanager" "platforms;android-28" "build-tools;28.0.3"
      or visit https://flutter.dev/docs/get-started/install/macos#android-setup for detailed instructions.
    ✗ Android licenses not accepted.  To resolve this, run: flutter doctor --android-licenses
 
[✓] Xcode - develop for iOS and macOS (Xcode 11.7)
[!] Android Studio (not installed)
[!] IntelliJ IDEA Ultimate Edition (version 2020.1.2)
    ✗ Flutter plugin not installed; this adds Flutter specific functionality.
    ✗ Dart plugin not installed; this adds Dart specific functionality.
[✓] VS Code (version 1.49.0)
[✓] Connected device (1 available)

! Doctor found issues in 3 categories.

created time in 16 days

Pull request review commentmicrosoft/vscode-python

Add API to identify pipenv

+Not a real python binary

Rather than creating these artifacts here, could you use an in-memory filesystem fake? That way the tests that use these can create these (e.g. from declarative JSON/YAML) and it would be clear what the test is doing. See for example https://dev.to/julienp/node-js-testing-using-a-virtual-filesystem-as-a-mock-2jln

karrtikr

comment created time in 18 days

PullRequestReviewEvent

Pull request review commentmicrosoft/vscode-python

Add API to identify pipenv

+// Copyright (c) Microsoft Corporation. All rights reserved.
+// Licensed under the MIT License.
+
+import * as path from 'path';
+import { traceError } from '../../../../common/logger';
+import { getEnvironmentVariable } from '../../../../common/utils/platform';
+import { arePathsSame, pathExists, readFile } from '../../../common/externalDependencies';
+
+function getSearchDepth() {
+    // PIPENV_MAX_DEPTH tells pipenv the maximum number of directories to recursively search for
+    // a Pipfile, defaults to 3: https://pipenv.pypa.io/en/latest/advanced/#pipenv.environments.PIPENV_MAX_DEPTH
+    const maxDepthStr = getEnvironmentVariable('PIPENV_MAX_DEPTH');
+    if (maxDepthStr !== undefined) {
+        const maxDepth = parseInt(maxDepthStr, 10);
+        // eslint-disable-next-line no-restricted-globals
+        if (isNaN(maxDepth)) {
+            traceError(`PIPENV_MAX_DEPTH is incorrectly set. Converting value '${maxDepthStr}' to number results in NaN`);
+            return 1;
+        }
+        return maxDepth;
+    }
+    return 3;
+}
+
+/**
+ * Returns the path to Pipfile associated with the provided directory.
+ * @param searchDir the directory to look into
+ * @param lookIntoParentDirectories set to true if we should also search for Pipfile in parent directory
+ */
+export async function _getAssociatedPipfile(

Is there no way to exercise it indirectly so you don't have to export it?

karrtikr

comment created time in 18 days

PullRequestReviewEvent

startedstryker-mutator/stryker

started time in 19 days

pull request commentstryker-mutator/stryker

fix(instrumenter): skip `as` expressions

Thanks! I assume this will be in beta 6, so I can remove my temporary workarounds?

nicojs

comment created time in 19 days

issue commentstryker-mutator/stryker

Beta not handling "require(...) as typeof import(...)" in TypeScript code

Thanks! I assume this will be in beta 6, so I can remove my temporary workarounds?

gramster

comment created time in 19 days

issue commentstryker-mutator/stryker

Beta: Mutations are creating invalid code

Thanks for diving into this, Nico! Really appreciate it. Just BTW, I am wanting to use Stryker because I think our test suite has a lot of anti-patterns in it, especially over-use of mocking, and want to come up with metrics for a baseline that we can improve. I'd be interested in knowing of over metrics you may be aware of. Right now, I am thinking of these:

  • code coverage (obviously not very useful just on its own)
  • the mutation index score from Stryker (I'm thinking of this as "test effectiveness")
  • time taken to run the tests (this is one where mocking can improve the score, so I want metrics in tension with that)
  • "test efficiency" - I'm kind of inventing here, but was thinking of looking at the ratio of lines of real code covered by a test to lines of test code covered by a test. Are we able to write concise tests that cover a good amount of real code? This is one where I expect the overuse of mocking will hurt the metric. This seems like something Stryker could compute too if it was useful.
gramster

comment created time in 19 days

issue commentstryker-mutator/stryker

Beta: Mutations are creating invalid code

I got somewhat further. I had to remove a bunch of tests that failed in the initial test run, but now I get:

20:56:48 (72658) ERROR DryRunExecutor Initial test run timed out!
20:56:48 (72658) ERROR Stryker an error occurred Error: Something went wrong in the initial test run
    at DryRunExecutor.validateResultCompleted (/Users/grwheele/repos/vscode-python-me/node_modules/@stryker-mutator/core/src/process/3-DryRunExecutor.js:67:15)
    at DryRunExecutor.execute (/Users/grwheele/repos/vscode-python-me/node_modules/@stryker-mutator/core/src/process/3-DryRunExecutor.js:39:14)
    at processTicksAndRejections (internal/process/task_queues.js:97:5)
    at async Stryker.runMutationTest (/Users/grwheele/repos/vscode-python-me/node_modules/@stryker-mutator/core/src/Stryker.js:35:49)

and I have no idea what tests I should remove to get past this (there are several thousand tests).

gramster

comment created time in 19 days

issue commentstryker-mutator/stryker

Beta: Mutations are creating invalid code

Looks like I am now past the build step! The next thing I need to figure out is how to customize the mocha command.

gramster

comment created time in 19 days

issue commentstryker-mutator/stryker

Beta: Mutations are creating invalid code

No worries, I am very excited about getting this to work as it solves a big problem for me around measuring the effectiveness of our test suites :-), and you have been very responsive. I'll update and try again.

gramster

comment created time in 19 days

issue openedstryker-mutator/stryker

Beta: Mutations are creating invalid code

Summary

The mutations that are being created have strange errors in them.

Unterminated Template Literals

Below is the tail end of a file are being mutated:

          const url = __global_69fa48.__activeMutant__ === 706 ? `` : (__global_69fa48.__coverMutant__(706), `https:
          this.browserService.launch(url);
        }
        break;
    }
  }

}

Note that the \https:` template is unterminated, so when this is compiled by TypeScript compiler you get the error:

error TS1160: Unterminated template literal.

Unterminated String Literal

Tail end of another file:

  protected getExcludedFiles(): string[] {
    switch (__global_69fa48.__activeMutant__) {
      case 1086:
        {}
        break;

      default:
        __global_69fa48.__coverMutant__(1086);
        {
          const list: string[] = __global_69fa48.__activeMutant__ === 1087 ? [] : (__global_69fa48.__coverMutant__(1087), [__global_69fa48.__activeMutant__ === 1088 ? "" : (__global_69fa48.__coverMutant__(1088), '**/Libsite-packages

It's just truncated at that point, and so the compiler error is:

error TS1002: Unterminated string literal.

Original unmutated code:

   protected getExcludedFiles(): string[] {
        const list: string[] = ['**/Lib/**', '**/site-packages/**'];
        this.getVsCodeExcludeSection('search.exclude', list);
        this.getVsCodeExcludeSection('files.exclude', list);
        this.getVsCodeExcludeSection('files.watcherExclude', list);
        this.getPythonExcludeSection(list);
        return list;
    }

(There's another 60 lines of code after that I left out that was just dropped from the mutated file).

')' Expected

Another tail end:

  private openPythonExtensionPage() {
    switch (__global_69fa48.__activeMutant__) {
      case 11468:
        {}
        break;

      default:
        __global_69fa48.__coverMutant__(11468);
        {
          env.openExternal(Uri.parse(__global_69fa48.__activeMutant__ === 11469 ? `` : (__global_69fa48.__coverMutant__(11469), `https:
        }
        break;
    }
  }

}

Again, the \https` is unterminated, but that leads to the parentheses being unmatched too, which is the compiler error reported here.

Original unmutated code:

    private openPythonExtensionPage() {
        env.openExternal(Uri.parse(`https://marketplace.visualstudio.com/items?itemName=ms-python.python`));
    }
}

<!--- Provide a general summary of the issue in the title above -->

Stryker config

<!--- Please place your stryker config below. Feel free to change paths in the files and mutate arrays if you cannot share them. -->

{
  "$schema": "./node_modules/@stryker-mutator/core/schema/stryker-schema.json",
  "packageManager": "npm",
  "reporters": [
    "html",
    "clear-text",
    "progress"
  ],
  "testRunner": "mocha",
  "buildCommand": "npx gulp prePublishNonBundle",
  "mutate": ["src/client/**/*.ts"],
  "coverageAnalysis": "perTest"
}

Test runner config

<!--- Please Put your Jest / Karma / Jasmine / Mocha (...) configuration here. -->

Stryker environment

<!-- Please list your stryker plugins + versions here (output of npm ls | grep stryker) -->

➜  vscode-python-me git:(stryker) ✗ npm ls | grep stryker
├─┬ UNMET PEER DEPENDENCY @stryker-mutator/core@4.0.0-beta.4
│ ├─┬ @stryker-mutator/api@4.0.0-beta.4
│ ├─┬ @stryker-mutator/instrumenter@4.0.0-beta.4
│ │ ├─┬ @stryker-mutator/api@4.0.0-beta.4
│ │ ├── @stryker-mutator/util@4.0.0-beta.4 deduped
│ ├─┬ @stryker-mutator/util@4.0.0-beta.4
├── @stryker-mutator/javascript-mutator@4.0.0-beta.4
├─┬ @stryker-mutator/mocha-framework@4.0.0-beta.4
│ ├─┬ @stryker-mutator/api@4.0.0-beta.4
│ └── @stryker-mutator/util@4.0.0-beta.4 deduped
├─┬ @stryker-mutator/mocha-runner@4.0.0-beta.4
│ ├─┬ @stryker-mutator/api@4.0.0-beta.4
│ ├── @stryker-mutator/util@4.0.0-beta.4 deduped
├── @stryker-mutator/typescript@4.0.0-beta.4
├─┬ @stryker-mutator/typescript-checker@4.0.0-beta.4
│ ├─┬ @stryker-mutator/api@4.0.0-beta.4
│ ├── @stryker-mutator/util@4.0.0-beta.4 deduped
├─┬ @stryker-mutator/webpack-transpiler@3.3.1
│ ├─┬ @stryker-mutator/api@3.3.1

<!-- Please also add the test runner you are using. Examples:-->

+-- mocha@x.x.x
+-- jest@x.x.x
+-- karma@x.x.x
+-- angular-cli@x.x.x
+-- react-scripts@x.x.x

Test runner environment

<!-- Please add your test command here (probably the command you use in npm test) command -->

# Test command

<!-- Please add any config files that are used by your test runner. For example jest.config.js, karma.conf.js, angular.json, mocha.opts, ... -->

Your Environment

software version(s)
node 12.18.0
npm 6.14.4
Operating System MacOS Catalina

Add stryker.log

<!-- Please add your stryker.log file. This file can be generated using stryker run --fileLogLevel trace. You can drag and drop it here. --> <!-- Your source code is never logged to this file, however file names are logged. Feel free to obfuscate those log messages if you think it is a problem -->

created time in 19 days

push eventgramster/vscode-python-me

Graham Wheeler

commit sha fc8831315152e5d22af2b67a72ac8d5481a59bcf

Updated for Stryker

view details

push time in 19 days

issue commentstryker-mutator/stryker

Execution doesn't progress after mutation

I broke in with a debugger and got this call stack:

image

It turned out it was stuck trying to process files created by Stryker itself in the reports/ directory. After deleting that folder it started making progress again. Stryker should probably be ignoring that directory.

gramster

comment created time in 20 days

issue commentstryker-mutator/stryker

Execution doesn't progress after mutation

I removed all the Stryker packages and then ran:

npm install --save-dev @stryker-mutator/core@next @stryker-mutator/mocha-framework@next @stryker-mutator/mocha-runner@next @stryker-mutator/typescript-checker@nex

which resulted in:

➜  vscode-python-me git:(stryker) ✗ npm ls | grep stryker
├─┬ UNMET PEER DEPENDENCY @stryker-mutator/core@4.0.0-beta.4
│ ├─┬ @stryker-mutator/api@4.0.0-beta.4
│ ├─┬ @stryker-mutator/instrumenter@4.0.0-beta.4
│ │ ├─┬ @stryker-mutator/api@4.0.0-beta.4
│ │ ├── @stryker-mutator/util@4.0.0-beta.4 deduped
│ ├─┬ @stryker-mutator/util@4.0.0-beta.4
├── @stryker-mutator/javascript-mutator@4.0.0-beta.4
├─┬ @stryker-mutator/mocha-framework@4.0.0-beta.4
│ ├─┬ @stryker-mutator/api@4.0.0-beta.4
│ └── @stryker-mutator/util@4.0.0-beta.4 deduped
├─┬ @stryker-mutator/mocha-runner@4.0.0-beta.4
│ ├─┬ @stryker-mutator/api@4.0.0-beta.4
│ ├── @stryker-mutator/util@4.0.0-beta.4 deduped
├── @stryker-mutator/typescript@4.0.0-beta.4
├─┬ @stryker-mutator/typescript-checker@4.0.0-beta.4
│ ├─┬ @stryker-mutator/api@4.0.0-beta.4
│ ├── @stryker-mutator/util@4.0.0-beta.4 deduped
├─┬ @stryker-mutator/webpack-transpiler@3.3.1
│ ├─┬ @stryker-mutator/api@3.3.1

and stryker still gets stuck.

gramster

comment created time in 20 days

issue commentstryker-mutator/stryker

Execution doesn't progress after mutation

I pointed you to the repo I am running against, which together with the config file is everything you would need to repro (except for bug 2465, which I had to work around - the modified repo is at this fork/branch: https://github.com/gramster/vscode-python-me/tree/stryker). I can see that the Stryker process is still consuming CPU but I don't know what it is doing. Full log file is too large to attach but I don't think it will tell you anything more useful than what I posted above. Some of the old packages are there because I started with Stryker 3 and then switched to beta; I don't think they should have any impact but I can remove them.

gramster

comment created time in 20 days

create barnchgramster/vscode-python-me

branch : stryker

created branch time in 20 days

issue openedstryker-mutator/stryker

Execution doesn't progress after mutation

Question

<!-- Please ask your question --> I'm making this a question for now but perhaps it should be labelled a bug. I'm using the beta, and worked around the issue https://github.com/stryker-mutator/stryker/issues/2465 for now, but now after instrumentation nothing happens. I have detailed logging on, and I left it running for hours, but the last thing in the log is:

$ npx stryker run --fileLogLevel trace --logLevel debug
...
21:32:56 (23497) DEBUG Instrumenter Instrumented src/client/workspaceSymbols/parser.ts (120 mutant(s))
21:32:56 (23497) DEBUG Instrumenter Instrumented src/client/workspaceSymbols/provider.ts (33 mutant(s))
21:32:56 (23497) INFO Instrumenter Instrumented 768 source file(s) with 48482 mutant(s)

and nothing happens after that.

Config:

{
  "$schema": "./node_modules/@stryker-mutator/core/schema/stryker-schema.json",
  "packageManager": "npm",
  "reporters": [
    "html",
    "clear-text",
    "progress"
  ],
  "testRunner": "mocha",
  "buildCommand": "npx gulp prePublishNonBundle",
  "mutate": ["src/client/**/*.ts"],
  "coverageAnalysis": "perTest"
}

This is for the (Python extension for Visual Studio Code)[https://github.com/microsoft/vscode-python], so it should be reproducable.

It's very possible that my configuration is not right, but I still wouldn't expect a hang like this.

Stryker environment

<!-- Please list your stryker plugins + versions here (output of npm ls | grep stryker) -->

├─┬ UNMET PEER DEPENDENCY @stryker-mutator/core@4.0.0-beta.4
│ ├─┬ @stryker-mutator/api@4.0.0-beta.4
│ ├─┬ @stryker-mutator/instrumenter@4.0.0-beta.4
│ │ ├─┬ @stryker-mutator/api@4.0.0-beta.4
│ │ ├─┬ @stryker-mutator/util@4.0.0-beta.4
│ ├─┬ @stryker-mutator/util@4.0.0-beta.4
├── @stryker-mutator/javascript-mutator@4.0.0-beta.4
├─┬ @stryker-mutator/mocha-framework@3.3.1
│ ├─┬ @stryker-mutator/api@3.3.1
│ └── @stryker-mutator/util@3.3.1
├─┬ @stryker-mutator/mocha-runner@4.0.0-beta.4
│ ├─┬ @stryker-mutator/api@4.0.0-beta.4
│ ├─┬ @stryker-mutator/util@4.0.0-beta.4
├── @stryker-mutator/typescript@4.0.0-beta.4
├─┬ @stryker-mutator/typescript-checker@4.0.0-beta.4
│ ├─┬ @stryker-mutator/api@4.0.0-beta.4
│ ├─┬ @stryker-mutator/util@4.0.0-beta.4
├─┬ @stryker-mutator/webpack-transpiler@3.3.1
│ ├── @stryker-mutator/api@3.3.1 deduped

<!-- Please also add the test runner you are using. Examples:-->

├── @types/mocha@5.2.7

Additional context

I haven't added any config for the typescript checker as the build command makes use of multiple tsconfig files for different parts of the code.

<!-- When applicable, also add some more information about your environment, test runner, etc -->

created time in 20 days

issue openedstryker-mutator/stryker

Beta not handling "require(...) as typeof import(...)" in TypeScript code

Summary

I got this error with the beta:

14:00:47 (11162) ERROR Stryker an error occurred Error: Error while placing mutants of type(s) "StringLiteral" on 43:92 with conditionalExpressionMutantPlacer. TypeError: Property argument of TSImportType expected node to be of a type ["StringLiteral"] but instead got "SequenceExpression"

It happens on lines like this:

const flatten = require('lodash/flatten') as typeof import('lodash/flatten');

I.e. wherever there is a as typeof import construct.

<!--- Provide a general summary of the issue in the title above -->

Stryker config

<!--- Please place your stryker config below. Feel free to change paths in the files and mutate arrays if you cannot share them. -->

{
  "$schema": "./node_modules/@stryker-mutator/core/schema/stryker-schema.json",
  "packageManager": "npm",
  "reporters": [
    "html",
    "clear-text",
    "progress"
  ],
  "testRunner": "mocha",
  "buildCommand": "npx gulp prePublishNonBundle",
  "mutate": ["src/client/**/*.ts"],
  "coverageAnalysis": "perTest"
}

Test runner config

<!--- Please Put your Jest / Karma / Jasmine / Mocha (...) configuration here. -->

Stryker environment

<!-- Please list your stryker plugins + versions here (output of npm ls | grep stryker) -->

├─┬ UNMET PEER DEPENDENCY @stryker-mutator/core@4.0.0-beta.4
│ ├─┬ @stryker-mutator/api@4.0.0-beta.4
│ ├─┬ @stryker-mutator/instrumenter@4.0.0-beta.4
│ │ ├─┬ @stryker-mutator/api@4.0.0-beta.4
│ │ ├─┬ @stryker-mutator/util@4.0.0-beta.4
│ ├─┬ @stryker-mutator/util@4.0.0-beta.4
├── @stryker-mutator/javascript-mutator@4.0.0-beta.4
├─┬ @stryker-mutator/mocha-framework@3.3.1
│ ├─┬ @stryker-mutator/api@3.3.1
│ └── @stryker-mutator/util@3.3.1
├─┬ @stryker-mutator/mocha-runner@4.0.0-beta.4
│ ├─┬ @stryker-mutator/api@4.0.0-beta.4
│ ├─┬ @stryker-mutator/util@4.0.0-beta.4
├── @stryker-mutator/typescript@4.0.0-beta.4
├─┬ @stryker-mutator/typescript-checker@4.0.0-beta.4
│ ├─┬ @stryker-mutator/api@4.0.0-beta.4
│ ├─┬ @stryker-mutator/util@4.0.0-beta.4
├─┬ @stryker-mutator/webpack-transpiler@3.3.1
│ ├── @stryker-mutator/api@3.3.1 deduped

<!-- Please also add the test runner you are using. Examples:-->

├── @types/mocha@5.2.7

Test runner environment

<!-- Please add your test command here (probably the command you use in npm test) command -->

# Test command

<!-- Please add any config files that are used by your test runner. For example jest.config.js, karma.conf.js, angular.json, mocha.opts, ... -->

Your Environment

software version(s)
node 12.18.0
npm 6.14.4
Operating System MacOS Catalina

Add stryker.log

<!-- Please add your stryker.log file. This file can be generated using stryker run --fileLogLevel trace. You can drag and drop it here. --> <!-- Your source code is never logged to this file, however file names are logged. Feel free to obfuscate those log messages if you think it is a problem -->

created time in 20 days

issue openedstryker-mutator/stryker

For a failure case i the final report, have a way to identify the tests that covered that code

In order to know what tests need to be improved, it would be useful to know what tests actually covered a particular mutation.

created time in 20 days

issue commentstryker-mutator/stryker

Stryker not finding files

I got this error with the beta:

14:00:47 (11162) ERROR Stryker an error occurred Error: Error while placing mutants of type(s) "StringLiteral" on 43:92 with conditionalExpressionMutantPlacer. TypeError: Property argument of TSImportType expected node to be of a type ["StringLiteral"] but instead got "SequenceExpression"

Maybe the Checker plugin is meant to avoid that? Unfortunately in my case there are multiple tsconfig.json files used in the build so I didn't see how I could enable that.

gramster

comment created time in 20 days

issue commentstryker-mutator/stryker

Stryker not finding files

There were a couple of flaky tests I removed and it looks like it is working now. I get a massive amount of runtime errors that I'm not sure about, but I am going to try the beta now so at least I am working with source.

gramster

comment created time in 20 days

issue commentstryker-mutator/stryker

Stryker not finding files

I did get further, but I get a test failure now which doesn't happen when the tests are run without Stryker.

08:53:09 (86806) INFO ConfigReader Using stryker.conf.json
08:53:12 (86806) INFO InputFileResolver Found 769 of 3819 file(s) to be mutated.
08:53:12 (86806) INFO InitialTestExecutor Starting initial test run. This may take a while.
08:54:03 (86806) ERROR InitialTestExecutor One or more tests failed in the initial test run:
	Cross process lock Lock guarantees in-process mutual exclusion
		expected false to equal true
	Cross process lock "after all" hook for "Lock guarantees in-process mutual exclusion"
		Current process attempted to release a lock it does not hold
08:54:03 (86806) ERROR StrykerCli an error occurred Error: There were failed tests in the initial test run.

I'll see if I get further with the beta.

gramster

comment created time in 25 days

issue closedstryker-mutator/stryker

Stryker not finding files

Summary

I am trying to run Stryker against the Python extension for Visual Studio Code. Because this has a fairly complex build, I first run through the extensions own compile/build steps (i.e. up to and including the npx gulp prePublishNonBundle step described here).

After that is done, there is an out directory in the repo, with an out/client directory containing the .js files for the extension, and an out/test directory containing the unit test files. These are usually run using mocha. There are several mocha config files, chosen based on the command used to the tests (in my case, npm run test:unittests). I have replicated the key items from the appropriate mocha config file in the Stryker config file shown below.

I have three issues after this when I try to run Stryker:

  • it reports that no files are found to mutate
  • it says it can't locate module 'out/test/unittests.js' even though it exists
  • it does not terminate.

See the log for details.

Stryker config

<!--- Please place your stryker config below. Feel free to change paths in the files and mutate arrays if you cannot share them. -->

{
  "$schema": "./node_modules/@stryker-mutator/core/schema/stryker-schema.json",
  "packageManager": "npm",
  "reporters": [
    "html",
    "clear-text",
    "progress"
  ],
  "testRunner": "mocha",
   "mochaOptions": {
    "spec": ["./out/test/**/*.unit.test.js"],
    "require": ["out/test/unittests.js"],
    "ui": "tdd"
  },
  "mutate": [ "./out/client/**/*.js" ]
}

Test runner config

<!--- Please Put your Jest / Karma / Jasmine / Mocha (...) configuration here. -->

Stryker environment

<!-- Please list your stryker plugins + versions here (output of npm ls | grep stryker) -->

├─┬ @stryker-mutator/core@3.3.1
│ ├─┬ @stryker-mutator/api@3.3.1
│ ├── @stryker-mutator/util@3.3.1
├─┬ @stryker-mutator/mocha-framework@3.3.1
│ ├── @stryker-mutator/api@3.3.1 deduped
│ └── @stryker-mutator/util@3.3.1 deduped
├─┬ @stryker-mutator/mocha-runner@3.3.1
│ ├── @stryker-mutator/api@3.3.1 deduped
│ ├── @stryker-mutator/util@3.3.1 deduped
├─┬ @stryker-mutator/typescript@3.3.1
│ ├── @stryker-mutator/api@3.3.1 deduped
│ ├── @stryker-mutator/util@3.3.1 deduped
├─┬ @stryker-mutator/webpack-transpiler@3.3.1
│ ├── @stryker-mutator/api@3.3.1 deduped

├── @types/mocha@5.2.7
├─┬ mocha-junit-reporter@1.23.0
├─┬ mocha-multi-reporters@1.1.7

Test runner environment

<!-- Please add your test command here (probably the command you use in npm test) command -->

# Test command

<!-- Please add any config files that are used by your test runner. For example jest.config.js, karma.conf.js, angular.json, mocha.opts, ... -->

Your Environment

software version(s)
node 12.18.0
npm 6.14.4
Operating System MacOS Catalina

Add stryker.log

<!-- Please add your stryker.log file. This file can be generated using stryker run --fileLogLevel trace. You can drag and drop it here. --> <!-- Your source code is never logged to this file, however file names are logged. Feel free to obfuscate those log messages if you think it is a problem -->

20:47:58 (16625) INFO ConfigReader Using stryker.conf.json
20:47:58 (16625) INFO BroadcastReporter Detected that current console does not support the "progress" reporter, downgrading to "progress-append-only" reporter
20:47:59 (16625) WARN InputFileResolver No files marked to be mutated, Stryker will perform a dry-run without actually mutating anything. You can configure the `mutate` property in your config file (or use `--mutate` via command line).
20:47:59 (16625) INFO InitialTestExecutor Starting initial test run. This may take a while.
20:48:00 (16625) ERROR StrykerCli an error occurred Error: Error: MODULE_NOT_FOUND (undefined) Error: Cannot find module 'out/test/unittests.js'
Require stack:
- /Users/grwheele/repos/vscode-python-me/node_modules/mocha/lib/esm-utils.js
- /Users/grwheele/repos/vscode-python-me/node_modules/mocha/lib/mocha.js
- /Users/grwheele/repos/vscode-python-me/node_modules/mocha/index.js
- /Users/grwheele/repos/vscode-python-me/node_modules/@stryker-mutator/mocha-runner/src/LibWrapper.js
- /Users/grwheele/repos/vscode-python-me/node_modules/@stryker-mutator/mocha-runner/src/MochaOptionsLoader.js
- /Users/grwheele/repos/vscode-python-me/node_modules/@stryker-mutator/mocha-runner/src/index.js
- /Users/grwheele/repos/vscode-python-me/node_modules/@stryker-mutator/core/src/utils/fileUtils.js
- /Users/grwheele/repos/vscode-python-me/node_modules/@stryker-mutator/core/src/utils/TemporaryDirectory.js
- /Users/grwheele/repos/vscode-python-me/node_modules/@stryker-mutator/core/src/di/buildMainInjector.js
- /Users/grwheele/repos/vscode-python-me/node_modules/@stryker-mutator/core/src/di/index.js
- /Users/grwheele/repos/vscode-python-me/node_modules/@stryker-mutator/core/src/child-proxy/ChildProcessProxyWorker.js
    at Function.Module._resolveFilename (internal/modules/cjs/loader.js:966:15)
    at Function.Module._load (internal/modules/cjs/loader.js:842:27)
    at Module.require (internal/modules/cjs/loader.js:1026:19)
    at require (internal/modules/cjs/helpers.js:72:18)
    at exports.requireOrImport (/Users/grwheele/repos/vscode-python-me/node_modules/mocha/lib/esm-utils.js:20:12)
    at Function.exports.handleRequires (/Users/grwheele/repos/vscode-python-me/node_modules/mocha/lib/cli/run-helpers.js:94:34)
    at MochaTestRunner.additionalRequires (/Users/grwheele/repos/vscode-python-me/node_modules/@stryker-mutator/mocha-runner/src/MochaTestRunner.js:146:65)
    at MochaTestRunner.init (/Users/grwheele/repos/vscode-python-me/node_modules/@stryker-mutator/mocha-runner/src/MochaTestRunner.js:28:20)
    at ChildProcessTestRunnerWorker.init (/Users/grwheele/repos/vscode-python-me/node_modules/@stryker-mutator/core/src/test-runner/ChildProcessTestRunnerWorker.js:16:45)
    at ChildProcessProxyWorker.doCall (/Users/grwheele/repos/vscode-python-me/node_modules/@stryker-mutator/core/src/child-proxy/ChildProcessProxyWorker.js:73:56)
    at ChildProcess.<anonymous> (/Users/grwheele/repos/vscode-python-me/node_modules/@stryker-mutator/core/src/child-proxy/ChildProcessProxy.js:133:68)
    at ChildProcess.emit (events.js:315:20)
    at emit (internal/child_process.js:876:12)
    at processTicksAndRejections (internal/process/task_queues.js:85:21)
20:48:00 (16625) INFO StrykerCli Trouble figuring out what went wrong? Try `npx stryker run --fileLogLevel trace --logLevel debug` to get some more info.

closed time in 25 days

gramster

issue commentstryker-mutator/stryker

Stryker not finding files

Thank you! I will start by trying the files option, but will definitely look at the beta too.

gramster

comment created time in 25 days

issue openedstryker-mutator/stryker

Stryker not finding files

Summary

I am trying to run Stryker against the Python extension for Visual Studio Code. Because this has a fairly complex build, I first run through the extensions own compile/build steps (i.e. up to and including the npx gulp prePublishNonBundle step described here.

After that is done, there is an out directory in the repo, with an out/client directory containing the .js files for the extension, and an out/test directory containing the unit test files. These are usually run using mocha. There are several mocha config files, chosen based on the command used to the tests (in my case, npm run test:unittests). I have replicated the key items from the appropriate mocha config file in the Stryker config file shown below.

I have three issues after this when I try to run Stryker:

  • it reports that no files are found to mutate
  • it says it can't locate module 'out/test/unittests.js' even though it exists
  • it does not terminate.

See the log for details.

Stryker config

<!--- Please place your stryker config below. Feel free to change paths in the files and mutate arrays if you cannot share them. -->

{
  "$schema": "./node_modules/@stryker-mutator/core/schema/stryker-schema.json",
  "packageManager": "npm",
  "reporters": [
    "html",
    "clear-text",
    "progress"
  ],
  "testRunner": "mocha",
   "mochaOptions": {
    "spec": ["./out/test/**/*.unit.test.js"],
    "require": ["out/test/unittests.js"],
    "ui": "tdd"
  },
  "mutate": [ "./out/client/**/*.js" ]
}

Test runner config

<!--- Please Put your Jest / Karma / Jasmine / Mocha (...) configuration here. -->

Stryker environment

<!-- Please list your stryker plugins + versions here (output of npm ls | grep stryker) -->

├─┬ @stryker-mutator/core@3.3.1
│ ├─┬ @stryker-mutator/api@3.3.1
│ ├── @stryker-mutator/util@3.3.1
├─┬ @stryker-mutator/mocha-framework@3.3.1
│ ├── @stryker-mutator/api@3.3.1 deduped
│ └── @stryker-mutator/util@3.3.1 deduped
├─┬ @stryker-mutator/mocha-runner@3.3.1
│ ├── @stryker-mutator/api@3.3.1 deduped
│ ├── @stryker-mutator/util@3.3.1 deduped
├─┬ @stryker-mutator/typescript@3.3.1
│ ├── @stryker-mutator/api@3.3.1 deduped
│ ├── @stryker-mutator/util@3.3.1 deduped
├─┬ @stryker-mutator/webpack-transpiler@3.3.1
│ ├── @stryker-mutator/api@3.3.1 deduped

├── @types/mocha@5.2.7
├─┬ mocha-junit-reporter@1.23.0
├─┬ mocha-multi-reporters@1.1.7

Test runner environment

<!-- Please add your test command here (probably the command you use in npm test) command -->

# Test command

<!-- Please add any config files that are used by your test runner. For example jest.config.js, karma.conf.js, angular.json, mocha.opts, ... -->

Your Environment

software version(s)
node
npm
Operating System

Add stryker.log

<!-- Please add your stryker.log file. This file can be generated using stryker run --fileLogLevel trace. You can drag and drop it here. --> <!-- Your source code is never logged to this file, however file names are logged. Feel free to obfuscate those log messages if you think it is a problem -->

20:47:58 (16625) INFO ConfigReader Using stryker.conf.json
20:47:58 (16625) INFO BroadcastReporter Detected that current console does not support the "progress" reporter, downgrading to "progress-append-only" reporter
20:47:59 (16625) WARN InputFileResolver No files marked to be mutated, Stryker will perform a dry-run without actually mutating anything. You can configure the `mutate` property in your config file (or use `--mutate` via command line).
20:47:59 (16625) INFO InitialTestExecutor Starting initial test run. This may take a while.
20:48:00 (16625) ERROR StrykerCli an error occurred Error: Error: MODULE_NOT_FOUND (undefined) Error: Cannot find module 'out/test/unittests.js'
Require stack:
- /Users/grwheele/repos/vscode-python-me/node_modules/mocha/lib/esm-utils.js
- /Users/grwheele/repos/vscode-python-me/node_modules/mocha/lib/mocha.js
- /Users/grwheele/repos/vscode-python-me/node_modules/mocha/index.js
- /Users/grwheele/repos/vscode-python-me/node_modules/@stryker-mutator/mocha-runner/src/LibWrapper.js
- /Users/grwheele/repos/vscode-python-me/node_modules/@stryker-mutator/mocha-runner/src/MochaOptionsLoader.js
- /Users/grwheele/repos/vscode-python-me/node_modules/@stryker-mutator/mocha-runner/src/index.js
- /Users/grwheele/repos/vscode-python-me/node_modules/@stryker-mutator/core/src/utils/fileUtils.js
- /Users/grwheele/repos/vscode-python-me/node_modules/@stryker-mutator/core/src/utils/TemporaryDirectory.js
- /Users/grwheele/repos/vscode-python-me/node_modules/@stryker-mutator/core/src/di/buildMainInjector.js
- /Users/grwheele/repos/vscode-python-me/node_modules/@stryker-mutator/core/src/di/index.js
- /Users/grwheele/repos/vscode-python-me/node_modules/@stryker-mutator/core/src/child-proxy/ChildProcessProxyWorker.js
    at Function.Module._resolveFilename (internal/modules/cjs/loader.js:966:15)
    at Function.Module._load (internal/modules/cjs/loader.js:842:27)
    at Module.require (internal/modules/cjs/loader.js:1026:19)
    at require (internal/modules/cjs/helpers.js:72:18)
    at exports.requireOrImport (/Users/grwheele/repos/vscode-python-me/node_modules/mocha/lib/esm-utils.js:20:12)
    at Function.exports.handleRequires (/Users/grwheele/repos/vscode-python-me/node_modules/mocha/lib/cli/run-helpers.js:94:34)
    at MochaTestRunner.additionalRequires (/Users/grwheele/repos/vscode-python-me/node_modules/@stryker-mutator/mocha-runner/src/MochaTestRunner.js:146:65)
    at MochaTestRunner.init (/Users/grwheele/repos/vscode-python-me/node_modules/@stryker-mutator/mocha-runner/src/MochaTestRunner.js:28:20)
    at ChildProcessTestRunnerWorker.init (/Users/grwheele/repos/vscode-python-me/node_modules/@stryker-mutator/core/src/test-runner/ChildProcessTestRunnerWorker.js:16:45)
    at ChildProcessProxyWorker.doCall (/Users/grwheele/repos/vscode-python-me/node_modules/@stryker-mutator/core/src/child-proxy/ChildProcessProxyWorker.js:73:56)
    at ChildProcess.<anonymous> (/Users/grwheele/repos/vscode-python-me/node_modules/@stryker-mutator/core/src/child-proxy/ChildProcessProxy.js:133:68)
    at ChildProcess.emit (events.js:315:20)
    at emit (internal/child_process.js:876:12)
    at processTicksAndRejections (internal/process/task_queues.js:85:21)
20:48:00 (16625) INFO StrykerCli Trouble figuring out what went wrong? Try `npx stryker run --fileLogLevel trace --logLevel debug` to get some more info.

created time in 25 days

GollumEvent
GollumEvent

issue commentmicrosoft/vscode-python-devicesimulator

autocompletion in virtual env

The extension doesn't use the "real" libraries but has its own "fake" versions that work with the simulator. There's probably a structural difference you are encountering, that we need to fix.

mess-maker

comment created time in a month

issue closedmicrosoft/vscode-python-devicesimulator

Says that I can't deploy code to device as if there is no device

We have written the needed data into your clipboard because it was too large to send. Please paste.

closed time in a month

jac141

issue commentmicrosoft/vscode-python-devicesimulator

Says that I can't deploy code to device as if there is no device

Closing due to no response from OP.

jac141

comment created time in a month

issue commentmicrosoft/vscode-python-devicesimulator

Can the CircuitPython support be broken out?

We do have a long term vision for this project to be more easily extensible to new devices. However, as an intern project (currently without interns) its unlikely to happen soon.

jimbobbennett

comment created time in a month

issue closedmicrosoft/vscode-python-devicesimulator

What are the style guidelines?

When submitting a PR, there's a section about following style guidelines. However I coudln't find any!

- [ ] My code follows the style guidelines of this project

closed time in a month

DonJayamanne

issue commentmicrosoft/vscode-python-devicesimulator

What are the style guidelines?

I added a CODING_STANDARDS.md. Not sure if the code here actually adheres to these standards itself but I think they are what we should be doing, so consider them aspirational for now.

DonJayamanne

comment created time in a month

push eventmicrosoft/vscode-python-devicesimulator

Graham Wheeler

commit sha 67c740ef5c659dbd1075da4df5062889f34ffc71

Create CODING_STANDARDS.md

view details

push time in a month

issue openedmicrosoft/pylance-release

Show completions ignoring what is to right of cursor

<!-- Please search existing feature requests to avoid creating duplicates. -->

<!-- Describe the feature you'd like. --> When generating completions, I'd like them to be based on what is to the left of the cursor, so, for example, if I have:

import pandas as pd

pd.r[]

and the cursor is between the r and [, I should see completions for pd.r such as read_csv.

created time in a month

issue commentmicrosoft/pylance-release

Pandas filter inferred as Series instead of DataFrame

There clearly is an issue here Italo; I think the team should look into it more deeply. It may be related to how we process overloads. I'm not suggesting the issue be moved to pyright; we can do that once we have verified further.

erictraut

comment created time in a month

issue commentmicrosoft/pylance-release

Pandas `aggregate` return type is Series instead of Dataframe

I split this code up into:

def group_tx(tx_df: pd.DataFrame, grouping_fields: List[str]) -> pd.DataFrame:
    foo = tx_df.groupby(grouping_fields)
    bar = foo[['date', 'amount']]
    grouped = bar.aggregate(lambda x: list(x))
    return grouped

It looks like bar gets inferred as a DataFrame, but then the call to aggregate is ambiguous, as it could be either Series or DataFrame (the right-hand expression on the line that assigns to grouped is flagged as an error:

Type of "aggregate" is partially unknown
  Type of "aggregate" is "Overload[(func: (*args: Unknown, **kwargs: Unknown) -> Unknown | str, axis: str | int = ..., **kwargs: Unknown) -> Series[Dtype], (func: List[(*args: Unknown, **kwargs: Unknown) -> Unknown] | Dict[_str, (*args: Unknown, **kwargs: Unknown) -> Unknown], axis: str | int = ..., **kwargs: Unknown) -> DataFrame]"

For some reason that then gets turned into Series in the last line, when I would expect it to be a union of Series and DataFrame. That seems like a pyright issue (yes, we could probably expand our overloads even more to the point where maybe we could disambiguate, but I don't think that changes things; AFAICT the type here should be Union[DataFrame, Series], not Series.

tekumara

comment created time in a month

issue commentmicrosoft/pylance-release

Pandas `aggregate` return type is Series instead of Dataframe

Looking at our stubs, calling groupby on a DataFrame returns a DataFrameGroupBy object. That has 3 overloads for aggregate all of which return DataFrame. So this doesn't seem to be a stub issue.

tekumara

comment created time in a month

issue commentmicrosoft/pylance-release

Pandas filter inferred as Series instead of DataFrame

Here are the stubs for DataFrame.__getitem__:

    @overload
    def __getitem__(self, idx: _str) -> Series[Dtype]: ...
    @overload
    def __getitem__(self, rows: slice) -> DataFrame: ...
    @overload
    def __getitem__(
        self, idx: Union[Series[_bool], DataFrame, List[_str], Index[_str], np.ndarray_str],
    ) -> DataFrame: ...

Looking at those, it looks like the stubs are saying the return type is a DataFrame.

erictraut

comment created time in a month

push eventgramster/ipython-kusto

Graham Wheeler

commit sha bbca34485784c73939866f23ed8559f414af7e06

0.0.5 - add --noexpand option

view details

push time in a month

push eventgramster/ipython-kusto

Graham Wheeler

commit sha 3e8fe1516e10a1e6cc5569b6b7e02f4793fb586a

Improved error reporting.

view details

push time in a month

push eventgramster/ipython-kusto

Graham Wheeler

commit sha 2e430e1d114f5510a86d4d55b44da5387f8423f5

Updated URL.

view details

push time in a month

push eventgramster/ipython-kusto

Graham Wheeler

commit sha fd74a4477395caeebfe3ad7dc8030967b0fa01bc

A few fixes and improvements.

view details

Graham Wheeler

commit sha 3ab8e482854e5739411779246eec6acc45d5d5c4

Updated README, added TODO, updated sample.

view details

Graham Wheeler

commit sha 69ebe174325ad240baa3525a6c4c0ecfd6e9700d

0.0.2 release

view details

push time in a month

create barnchgramster/ipython-kusto

branch : master

created branch time in a month

created repositorygramster/ipython-kusto

IPython kernel extension for running Kusto queries in Azure

created time in a month

issue commentSynoCommunity/spksrc

Sickbeard failing all TVDB searches after update

In my case I am not sending any credentials or other secrets from Sickbeard. I’d rather make a change limited to Sickbeard than install a less secure version of Python that affects multiple apps.

On Tue, Aug 18, 2020 at 10:24 PM blueflame2020 notifications@github.com wrote:

I have the same issue. (#4137 https://github.com/SynoCommunity/spksrc/issues/4137) What you write here is more a temporary workaround and definitely not a fix for the underlying problem. Disabling certificate verification is something you should only do with the utmost caution.

I suggest you do the same as I did:

backup your sickbeard directory (/volume1/@appdata/sickbeard-custom/var)

remove sickbeard and python

install previous version of python (found here: https://synocommunity.com/package/python, place it somewhere on the NAS and install using synopkg install <path to .spk file>)

install sickbeard-custom (without starting it after install)

move the config.ini, cache.db, cache directory and sickbeard.db back to the sickbeard directory and fix permissions and ownership of the files.

start sickbeard-custom

And then wait for a fix of the python package by the maintainers :)

— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub https://github.com/SynoCommunity/spksrc/issues/4113#issuecomment-675858692, or unsubscribe https://github.com/notifications/unsubscribe-auth/AAVCPCFKLA24YQHE43UB4ILSBNO2BANCNFSM4PZHGP4Q .

gramster

comment created time in a month

issue commentSynoCommunity/spksrc

Sickbeard failing all TVDB searches after update

Thanks. It looks like that fork is pretty dormant so I may just create my own as well.

On Tue, Aug 18, 2020 at 1:18 PM Yves Martin notifications@github.com wrote:

@gramster https://github.com/gramster It may be worth to report this upstream to "sickbeard" fork you have selected.

— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub https://github.com/SynoCommunity/spksrc/issues/4113#issuecomment-675691419, or unsubscribe https://github.com/notifications/unsubscribe-auth/AAVCPCATAGICY3G3IL22MM3SBLOYLANCNFSM4PZHGP4Q .

gramster

comment created time in a month

issue closedSynoCommunity/spksrc

Sickbeard failing all TVDB searches after update

For new Package Requests, see the guidelines

Setup

Package Name: Sickbear Custom Package Version: 20200804-8

NAS Model: DS1517+ NAS Architecture: Intel DSM version: 6.2.3-25426 Update 2

Expected behavior

Searches should succeed

Actual behavior

I updated Sickbeard Custom via the Syno Package Manager and now all the TVDB searches fail. I tried uninstalling and reinstalling Sickbeard but still have an issue (and now all my existing shows are gone because Sickbeard can't seem to add them back without TVDB).

Steps to reproduce

Search for a new show. Response is almost immediate with no results.

Package log

Check Package Center or /usr/local/{package}/var/

This is after a reboot and a search:

2020-08-09 07:57:11 INFO     SEARCHQUEUE-RSS-SEARCH :: No needed episodes found on the RSS feeds
2020-08-09 07:56:22 ERROR    CP Server Thread-9 :: Unable to get URL: http://thetvdb.com/api/GetSeries.php?seriesname=big+mouth&language=en
2020-08-09 07:56:22 WARNING  CP Server Thread-9 :: URL error [SSL: CERTIFICATE_VERIFY_FAILED] certificate verify failed (_ssl.c:727) while loading URL http://thetvdb.com/api/GetSeries.php?seriesname=big+mouth&language=en
2020-08-09 07:54:04 INFO     CHECKVERSION :: No scene exceptions update needed
2020-08-09 07:54:03 INFO     SEARCHQUEUE-RSS-SEARCH :: Clearing Sick Beard Index cache and updating with new information
2020-08-09 07:53:58 INFO     CHECKVERSION :: Check scene exceptions update
2020-08-09 07:53:58 INFO     CHECKVERSION :: No update needed
2020-08-09 07:53:57 ERROR    SEARCHQUEUE-RSS-SEARCH :: Error loading Womble's Index URL: http://newshost.co.za/rss/?sec=tv-dvd&fr=false
2020-08-09 07:53:57 WARNING  SEARCHQUEUE-RSS-SEARCH :: URL error [SSL: TLSV1_ALERT_PROTOCOL_VERSION] tlsv1 alert protocol version (_ssl.c:727) while loading URL http://newshost.co.za/rss/?sec=tv-dvd&fr=false
2020-08-09 07:53:57 ERROR    SEARCHQUEUE-RSS-SEARCH :: Error loading Womble's Index URL: http://newshost.co.za/rss/?sec=tv-x264&fr=false
2020-08-09 07:53:57 WARNING  SEARCHQUEUE-RSS-SEARCH :: URL error [SSL: TLSV1_ALERT_PROTOCOL_VERSION] tlsv1 alert protocol version (_ssl.c:727) while loading URL http://newshost.co.za/rss/?sec=tv-x264&fr=false
2020-08-09 07:53:57 INFO     SEARCHQUEUE-RSS-SEARCH :: Searching all providers for any needed episodes
2020-08-09 07:53:57 INFO     SEARCHQUEUE-RSS-SEARCH :: Beginning search for new episodes on RSS
2020-08-09 07:53:57 INFO     SEARCHQUEUE-RSS-SEARCH :: Changing all old missing episodes (UNAIRED) to status WANTED
2020-08-09 07:53:57 INFO     CHECKVERSION :: Checking if git needs an update
2020-08-09 07:53:57 INFO     MAIN :: Loading initial show list
2020-08-09 07:53:57 INFO     MAIN :: Starting Sick Beard on http://0.0.0.0:8083/
2020-08-09 07:51:22 INFO     MAIN :: Writing PID: 18838 to /volume1/@appstore/sickbeard-custom/var/sickbeard-custom.pid
2020-08-09 07:51:21 INFO     MAIN :: No orphan episodes, check passed
2020-08-09 07:51:21 INFO     MAIN :: No duplicate episode, check passed
2020-08-09 07:51:21 INFO     MAIN :: No duplicate show, check passed
2020-08-09 07:51:21 INFO     MAIN :: Checking database structure...
2020-08-09 07:51:21 INFO     MAIN :: Checking database structure...

Other logs

E.g. /var/log/messages or /var/log/synopkg.log

Insert log here

closed time in 2 months

gramster

issue commentSynoCommunity/spksrc

Sickbeard failing all TVDB searches after update

It seems like this might be from TVDB forcing SSL usage. I had to add this line:

ssl._create_default_https_context = ssl._create_unverified_contex

after the import ssl in /volume1/@appstore/sickbeard-custom/var/SickBeard/lib/httplib2/__init__.py

gramster

comment created time in 2 months

fork gramster/Sick-Beard

PVR & episode guide that downloads and manages all your TV shows

http://code.google.com/p/sickbeard/

fork in 2 months

issue commentSynoCommunity/spksrc

Radarr fails due to missing write permission that isn't actually missing

Thank you! That worked. Interestingly the video folder seemed to be the only one with that issue.

On Tue, Aug 11, 2020 at 2:25 PM BenjV notifications@github.com wrote:

Ok, you have an shared folder created with an older DSM version. Go to control panel, select the folder, choose the tab action and if it is not "greyed out" you should choose "Convert To Windows ACL"

As of DSM 6 the packages from the SynoCommunity are making use of Acl's so the shared folder must be able to use Acl's. This is as of DSM 6 also the default when DSM creates a new shared folder.

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/SynoCommunity/spksrc/issues/4118#issuecomment-672287828, or unsubscribe https://github.com/notifications/unsubscribe-auth/AAVCPCFWDDVEZIZEIYYFHIDSAGZONANCNFSM4P2TZUUQ .

gramster

comment created time in 2 months

issue commentSynoCommunity/spksrc

Radarr fails due to missing write permission that isn't actually missing

I have no right click action; right click brings up a menu from Chrome, not File Station. I can get to a Properties pane via left clicks and the menus, but that does not have 'Advanced Options'. The closest it has is:

Screen Shot 2020-08-11 at 7 50 11 AM

and I can select the checkbox to apply to subfolders and apply that, but it doesn't fix the problem.

gramster

comment created time in 2 months

issue openedSynoCommunity/spksrc

Radarr fails due to missing write permission that isn't actually missing

For new Package Requests, see the guidelines

Setup

Package Name: Radarr Package Version: 20190320-8

NAS Model: DMS1517+ NAS Architecture: Intel DSM version: DSM 6.2.3-25426 Update 2

Expected behavior

I should be able to add a movie location folder.

Actual behavior

I explicitly added R/W permission to the folder for the user sc-radarr (which I thought would not be needed as sc-download group has this permission). Screen Shot 2020-08-10 at 9 28 36 PM

Screen Shot 2020-08-10 at 9 26 49 PM

However, I get the error:

Screen Shot 2020-08-10 at 9 25 01 PM

Steps to reproduce

1. Install package 2. Set permissions as shown above 3. Restart package 4. Try to add the folder

Package log

Check Package Center or /usr/local/{package}/var/

Insert the package log here

Other logs

E.g. /var/log/messages or /var/log/synopkg.log

Insert log here

created time in 2 months

pull request commentjulia-vscode/julia-vscode

Add initial notebook provider implementation

@davidanthoff, I am from the Python team at Microsoft. We are certainly aware of the issues you bring up and are having discussions about how best to address them, but our immediate goal for the next couple of months is the migration to the VS Code notebook APIs. I expect we'll have more to say soon, including soliciting input from the broader Jupyter community.

davidanthoff

comment created time in 2 months

issue commentmicrosoft/SandDance

add json(s), Excel and arrow data formats support

I was thinking of data in the Plasma object store. We had an intern prototype viewing dataframes from the Jupyter notebook in VS Code in SandDance, but that involved (IIRC) serializing the data as CSV and passing it in a URL, which clearly won't scale well. I'm wondering what we could do for large datasets (obviously writing to a file on disk is an option too, and maybe that's all we really need).

RandomFractals

comment created time in 2 months

issue commentmicrosoft/SandDance

add json(s), Excel and arrow data formats support

I am surprised this only had one vote and it was a downvote, at least for the Arrow support, as that would clearly be a good way to share data from Jupyter implementations.

RandomFractals

comment created time in 2 months

issue closedSynoCommunity/spkrepo

Sickbeard failing all TVDB searches after update

Not sure if this is the right place to file this, but I updated Sickbeard Custom via the Syno Package Manager and now all the TVDB searches fail. I tried uninstalling and reinstalling Sickbeard but still have an issue (and now all my existing shows are gone because Sickbeard can't seem to add them back without TVDB).

It's possible its just TVDB being down, as the logs show:

2020-08-08 15:04:45 SHOWQUEUE-ADD :: Error contacting TVDB: Could not connect to server:

But I checked their forums and see no mention of this.

closed time in 2 months

gramster

issue commentSynoCommunity/spkrepo

Sickbeard failing all TVDB searches after update

Closing; filing elsewhere.

gramster

comment created time in 2 months

issue openedSynoCommunity/spksrc

Sickbeard failing all TVDB searches after update

For new Package Requests, see the guidelines

Setup

Package Name: Sickbear Custom Package Version: 20200804-8

NAS Model: DS1517+ NAS Architecture: Intel DSM version: 6.2.3-25426 Update 2

Expected behavior

Searches should succeed

Actual behavior

I updated Sickbeard Custom via the Syno Package Manager and now all the TVDB searches fail. I tried uninstalling and reinstalling Sickbeard but still have an issue (and now all my existing shows are gone because Sickbeard can't seem to add them back without TVDB).

Steps to reproduce

Search for a new show. Response is almost immediate with no results.

Package log

Check Package Center or /usr/local/{package}/var/

This is after a reboot and a search:

2020-08-09 07:57:11 INFO     SEARCHQUEUE-RSS-SEARCH :: No needed episodes found on the RSS feeds
2020-08-09 07:56:22 ERROR    CP Server Thread-9 :: Unable to get URL: http://thetvdb.com/api/GetSeries.php?seriesname=big+mouth&language=en
2020-08-09 07:56:22 WARNING  CP Server Thread-9 :: URL error [SSL: CERTIFICATE_VERIFY_FAILED] certificate verify failed (_ssl.c:727) while loading URL http://thetvdb.com/api/GetSeries.php?seriesname=big+mouth&language=en
2020-08-09 07:54:04 INFO     CHECKVERSION :: No scene exceptions update needed
2020-08-09 07:54:03 INFO     SEARCHQUEUE-RSS-SEARCH :: Clearing Sick Beard Index cache and updating with new information
2020-08-09 07:53:58 INFO     CHECKVERSION :: Check scene exceptions update
2020-08-09 07:53:58 INFO     CHECKVERSION :: No update needed
2020-08-09 07:53:57 ERROR    SEARCHQUEUE-RSS-SEARCH :: Error loading Womble's Index URL: http://newshost.co.za/rss/?sec=tv-dvd&fr=false
2020-08-09 07:53:57 WARNING  SEARCHQUEUE-RSS-SEARCH :: URL error [SSL: TLSV1_ALERT_PROTOCOL_VERSION] tlsv1 alert protocol version (_ssl.c:727) while loading URL http://newshost.co.za/rss/?sec=tv-dvd&fr=false
2020-08-09 07:53:57 ERROR    SEARCHQUEUE-RSS-SEARCH :: Error loading Womble's Index URL: http://newshost.co.za/rss/?sec=tv-x264&fr=false
2020-08-09 07:53:57 WARNING  SEARCHQUEUE-RSS-SEARCH :: URL error [SSL: TLSV1_ALERT_PROTOCOL_VERSION] tlsv1 alert protocol version (_ssl.c:727) while loading URL http://newshost.co.za/rss/?sec=tv-x264&fr=false
2020-08-09 07:53:57 INFO     SEARCHQUEUE-RSS-SEARCH :: Searching all providers for any needed episodes
2020-08-09 07:53:57 INFO     SEARCHQUEUE-RSS-SEARCH :: Beginning search for new episodes on RSS
2020-08-09 07:53:57 INFO     SEARCHQUEUE-RSS-SEARCH :: Changing all old missing episodes (UNAIRED) to status WANTED
2020-08-09 07:53:57 INFO     CHECKVERSION :: Checking if git needs an update
2020-08-09 07:53:57 INFO     MAIN :: Loading initial show list
2020-08-09 07:53:57 INFO     MAIN :: Starting Sick Beard on http://0.0.0.0:8083/
2020-08-09 07:51:22 INFO     MAIN :: Writing PID: 18838 to /volume1/@appstore/sickbeard-custom/var/sickbeard-custom.pid
2020-08-09 07:51:21 INFO     MAIN :: No orphan episodes, check passed
2020-08-09 07:51:21 INFO     MAIN :: No duplicate episode, check passed
2020-08-09 07:51:21 INFO     MAIN :: No duplicate show, check passed
2020-08-09 07:51:21 INFO     MAIN :: Checking database structure...
2020-08-09 07:51:21 INFO     MAIN :: Checking database structure...

Other logs

E.g. /var/log/messages or /var/log/synopkg.log

Insert log here

created time in 2 months

issue openedSynoCommunity/spkrepo

Sickbeard failing all TVDB searches after update

Not sure if this is the right place to file this, but I updated Sickbeard Custom via the Syno Package Manager and now all the TVDB searches fail. I tried uninstalling and reinstalling Sickbeard but still have an issue (and now all my existing shows are gone because Sickbeard can't seem to add them back without TVDB).

created time in 2 months

issue commentmicrosoft/pylance-release

Incorrect showing of method/function parameters and 'docstring' information

So @huguesv in the next version the stubs will reflect the correct file layout but will still not show these docstrings, so they are likely cases where the docs are synthesized as part of pandas build.

Episkiliski

comment created time in 2 months

issue commentmicrosoft/pylance-release

pandas stubs - cast Series as float (reportGeneralTypeIssues error)

Should be fixed in next release.

tekumara

comment created time in 2 months

issue commentmicrosoft/pylance-release

DataFrame.sort_values doesn't accept str for `by` param

Should be fixed in the next release.

tekumara

comment created time in 2 months

issue commentmicrosoft/pylance-release

wrong "overload is not iterable" error

Should be fixed in the next release.

geepy

comment created time in 2 months

more