profile
viewpoint

kwikwag/mathml2latex 2

Javascript library for converting MathML to LaTeX, based on the MathParser Java library

kwikwag/ok-templates 1

Open Knesset Templates

kwikwag/ok-webfront 1

Frontend web server for Open Knesset.

kwikwag/biojava 0

:book::microscope::coffee: BioJava is an open-source project dedicated to providing a Java framework for processing biological data.

kwikwag/cpython 0

The Python programming language

kwikwag/crouton 0

Chromium OS Universal Chroot Environment

kwikwag/cyrusmol_v2 0

CyrusMol is an experimental frontend for molecular modelling simulators such as Rosetta

kwikwag/docker-minecraft-server 0

Docker image that provides a Minecraft Server that will automatically download selected version at startup

kwikwag/dokan-sshfs 0

Dokan SSHFS

issue commentmicrosoft/vscode-python

Breakpoints not hit when set in cells starting with by blank lines (and on other occasions)

@greazer Any updates on this? Saving does not help.

kwikwag

comment created time in 2 months

issue commentmicrosoft/vscode-python

Breakpoints not hit when set in cells starting with by blank lines (and on other occasions)

I can confirm that it happens even when I save the file, and even when I restart VS Code with the given file (I checked a file with import sys and without).

kwikwag

comment created time in 2 months

issue commentmicrosoft/vscode-python

Breakpoints not hit when set in cells starting with by blank lines (and on other occasions)

In the screen capture, the following scenarios are demonstrated:

  • Run with no problems - all breakpoints hit
  • First line of file is a blank line - first cell breakpoints aren't hit, second cell breakpoints are hit
  • First line of file is a comment - one second breakpoint of first cell is hit, second cell breakpoints are hit
  • First line of first cell is blank - first cell breakpoints aren't hit
  • First line of second cell is blank - first cell breakpoints are hit, second cell breakpoints aren't hit
  • Code before first line in file

I also am experiencing other types of issues that I couldn't pinpoint involving comments (perhaps only ## lines?) and/or blank lines as first lines of cells and/or at the beginning of a Python file.

kwikwag

comment created time in 2 months

issue openedmicrosoft/vscode-python

Breakpoints not hit when set in cells starting with by blank lines (and on other occasions)

Bug: Notebook Editor, Interactive Window, Editor cells

Steps to cause the bug to occur

  1. Create a Python file with cells, one cell - the first in the file - with function definition A, another cell with function definition B, and another cell which calls A and B. Have both A and B contain more than one line.
  2. Place breakpoints on more than one line in each function definition.
  3. Perform any one of the following:
  • Add a space before the first cell in the file
  • Add code before the first cell in the file
  • Add a blank line to either of the cells with function definitions
  1. Run Debug Cell on the cell with function calls.

e.g.

issue-vscode-snippet-debug-cell-brakpoints-not-hit

import sys
# %%
def test():
    print(1)    
    print(2)

# %%
def test2():
    print(3)
    print(4)

# %%
test()
test2()

...and set breakpoints on all print() calls

Actual behavior

Some or all of the breakpoints are not hit.

Expected behavior

All breakpoints set should be hit on function calls.

Your Jupyter and/or Python environment

Please provide as much info as you readily know

  • Jupyter server running: Local
  • Extension version: 2020.8.101144
  • VS Code version: 1.48.0 (system setup)
  • Setting python.jediEnabled: false
  • Setting python.languageServer: Microsoft
  • Python and/or Anaconda version: Python 3.7.4
  • OS: Windows | Mac | Linux (distro): Windows 10.0.19041 x64
  • Virtual environment: N/A (system Python)

Python Output

I prefer not to.

Microsoft Data Science for VS Code Engineering Team: @rchiodo, @IanMatthewHuff, @DavidKutu, @DonJayamanne, @greazer, @joyceerhl

created time in 2 months

issue openedmicrosoft/vscode

Tabs don't get replaced with spaces in snippet transformations

<!-- ⚠️⚠️ Do Not Delete This! bug_report_template ⚠️⚠️ --> <!-- Please read our Rules of Conduct: https://opensource.microsoft.com/codeofconduct/ --> <!-- Please search existing issues to avoid creating duplicates. --> <!-- Also please test using the latest insiders build to make sure your issue has not already been fixed: https://code.visualstudio.com/insiders/ -->

<!-- Use Help > Report Issue to prefill these. -->

  • VSCode Version: 1.47.3 (system setup)
  • OS Version: Windows_NT x64 10.0.18362

Steps to Reproduce:

issue-vscode-snippet-transformation-tabs

  1. Create a snippet with a transformation which replaces part of the text with tabs, e.g. the following Python snippet
	"Plain object": {
		"prefix": ["class"],
		"body": [
			"class ${1:Name}:",
			"\tdef __init__(self, ${2:arg_list}):",
			"\t\t${2/ *([^:]+?) *(:[^,]+)? *(,|$)/self.${1} = ${1}\n\t\t/g}",
			"\tdef __repr__(self):",
			"\t\treturn repr(self.__dict__)",
			""
		]
	}
  1. Use the snippet. The explicit tabs at the beginning of lines get replaced with spaces per the file preferences. However, the tabs that result from the transform don't overgo the same process.

Does this issue occur when all extensions are disabled?: Didn't check

created time in 3 months

issue commentpython/typing

How to add hint to factory method?

I would like to add another example I just encountered -- implementing any binary operation on an immutable instance, for instance, this doesn't compile:

class Vector(tuple):
  def __add__(self, other: Vector) -> Vector:
    return tuple(sum(vals) for vals in zip(self, other))
methane

comment created time in 3 months

issue commentmicrosoft/vscode-python

Paste in Jupyter Notebook makes a copy to the Terminal window

Another issue I reported (#13042) was transitively marked as a dup of this one (via #13017) but these seem to be separate (perhaps related?) issues.

Locietta

comment created time in 3 months

issue commentmicrosoft/vscode-python

Copy and paste breaks intermittently in Python Interactive Window

@greazer This does not seem to be a dup of #13016 , but indeed of the bug that I reported #13042. This seems to do with the window group focus (please note my workaround), and while it might be related, the functionality involved and side-effects are not similar to the upstream bug https://github.com/microsoft/vscode/issues/103200 mentioned in #13016. I would vote to re-open.

JPIvan

comment created time in 3 months

issue commentmicrosoft/vscode-python

Switching from code to Python Interactive window causes Copy text command to break

A partial workaround - put a regular code editor in the same window group. Once that is done, and the cursor is first placed in that code editor, you'll be able to copy. If you need, I can post a gif.

kwikwag

comment created time in 3 months

issue commentmicrosoft/vscode-python

Switching from code to Python Interactive window causes Copy text command to break

Thanks for the reply. Note that this only when switching between window groups. If the Python Interactive Window is in the same window group as another plain code editor, the bug doesn't happen. I'm pretty sure this bug only showed up after upgrading VS Code. I'm not sure what my previous version was.

kwikwag

comment created time in 3 months

issue openedmicrosoft/vscode-python

Switching from code to Python Interactive window causes Copy text command to break

Bug: Notebook Editor, Interactive Window, Editor cells

Steps to cause the bug to occur

  1. Create a Python file with one cell that outputs some text
  2. Execute the cell
  3. Select and copy the text from the Python Interactive window - paste it somewhere - it copied fine
  4. Change the selection in the code window (preferable to a line with some content)
  5. Select and copy other text from the Python Interactive window - paste it somewhere - it copied the text from the code window rather than the Python Interactive window

Actual behavior

Sometimes, when the active window is the Python Interactive window, the text selected in the code window gets copied when I hit Ctrl + C instead of the text in the active window.

issue-copy-paste-python-interactive

Expected behavior

Text selected in the active window will be copied when I hit Ctrl + C.

Your Jupyter and/or Python environment

  • Jupyter server running: Local
  • Extension version: v2020.7.94776
  • VS Code version: 1.47.2 (system setup; commit: 17299e413d5590b14ab0340ea477cdd86ff13daf)
  • Setting python.jediEnabled: false
  • Setting python.languageServer: Microsoft
  • Python and/or Anaconda version: CPython 3.7.4
  • OS: Windows_NT x64 10.0.18362
  • Virtual environment: none (system install)

Developer Tools Console Output

No output

created time in 3 months

more