question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Writing a comma in a string that is an argument to a function causes the pop up box to display

See original GitHub issue

When writing arguments to functions, the python module shows a pop up box showing the next argument and its documentation, which can be removed by clicking away among other things. However, if you’re writing a string as an argument, if you ever write a comma it will cause the popup box to re-fire.

Environment data

  • VS Code version: 1.24.1
  • Extension version (available under the Extensions sidebar): 2018.6.0
  • OS and version: Windows 10
  • Python version (& distribution if applicable, e.g. Anaconda): Python 3.5.4
  • Type of virtual environment used (N/A | venv | virtualenv | conda | …): venv
  • Relevant/affected Python packages and their versions: N/A

Actual behavior

Pop up box for functions shows when a comma is written inside of a string, not just outside of a string

Expected behavior

Pop up box should not fire if the comma is inside a string

Steps to reproduce:

Write code that would execute a function, add a string as an argument, click to remove the pop up box, write a comma in the string which will show the pop up box.

str("This is my string,")   # Comma causes the box to pop up

Issue Analytics

  • State:closed
  • Created 5 years ago
  • Comments:8

github_iconTop GitHub Comments

2reactions
MikhailArkhipovcommented, Jun 25, 2018

It is a result of a “hover” request

Read more comments on GitHub >

github_iconTop Results From Across the Web

Trailing commas - JavaScript - MDN Web Docs
JavaScript allows trailing commas wherever a comma-separated list of values is accepted and more values may be expected after the last item.
Read more >
Unit 1, Section 1, Activity 7 - Deepnote
Gather, store and use string input(); Format print() output ... By comma-separating strings, print() will output each separated by a space ...
Read more >
String Functions - Tableau Help
This article introduces string functions and their uses in Tableau. It also demonstrates how to create a string calculation using an example.
Read more >
Popup Windows Made Easy: Here's The JavaScript Code To ...
The third argument is a string containing a comma separated list of properties of the window. These properties are explained in more detail...
Read more >
Functions - The Modern JavaScript Tutorial
For example, we need to show a nice-looking message when a ... When a value is passed as a function parameter, it's also...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found