First time here? Check out the FAQ!

Tmr's profile - activity

2025-05-17 04:19:28 -0500 received badge Notable Question (source)
2025-05-11 10:48:35 -0500 received badge Popular Question (source)
2025-05-09 23:04:07 -0500 marked best answer Wing doesn't print repr of dataclasses in some cases

I've noticed that Wing doesn't print a full repr of some dataclasses in the debug console. For example, a dataclass containing a builtin datetime as one of its fields prints it in its repr, while one using a pendulum.DateTime does not. Is this deliberate? Is there a way to make Wing print all contents, similar to how it would print a namedtuple?

EDIT: I think I was wrong about what triggers this; I'm now able to reproduce it using builtin datetimes, but only if the pprint option is checked in the debug console preferences. I've updated the example below to use datetime.

For example:

from dataclasses import dataclass
import datetime
import typing as tp

@dataclass
class A:
    f: tp.Any = None
    g: tp.Any = None


# Wing shows this as  `A(f=1, g=2)` in the debug console:
A(f=1, g=2)

# Wing shows this as `A()` in the debug console when the pprint option is checked.
A(datetime.datetime.now(), datetime.datetime.now())

Here's a screenshot to prove I'm not crazy: image description

2025-05-09 22:24:36 -0500 commented question Wing doesn't print repr of dataclasses in some cases

I have reproduced this on Wing 10.0.9.1, on Ubuntu and MacOS, in Python 3.11 through 3.13.

2025-05-09 13:00:50 -0500 commented answer Wing doesn't print repr of dataclasses in some cases

I'm confused, as my own example now behaves differently than it did yesterday. However, I'm still able to reproduce if I

2025-05-09 13:00:48 -0500 edited question Wing doesn't print repr of dataclasses in some cases

Wing doesn't print repr of dataclasses in some cases I've noticed that Wing doesn't print a full repr of some dataclasse

2025-05-09 13:00:48 -0500 received badge Editor (source)
2025-05-08 15:59:15 -0500 asked a question Wing doesn't print repr of dataclasses in some cases

Wing doesn't print repr of dataclasses in some cases I've noticed that Wing doesn't print a full repr of some dataclasse

2024-11-05 05:32:58 -0500 marked best answer Docker remote host: OCI runtime exec failed: exec failed: unable to start container process: chdir to cwd

I'm trying to configure a new project to use a docker environment, but Wing's python doesn't seem to launch correctly. In the logs, I see references to my home directory, which doesn't exist in the container.

Is there some configuration that tells wing what cwd to use inside the container?

More info:

Wing launches a container successfully (I'm able to exec into it myself), but when I select restart shell in wing's python directory, this message appears in the python window:

OCI runtime exec failed: exec failed: unable to start container process: chdir to cwd ("/home/rutherford") set in config.json failed: no such file or directory: unknown further, I see the following in ide.log:

popenE with ['docker', 'exec', '-w', '/home/rutherford', ...

/home/rutherford is my home directory (on the host machine). It doesn't exist in the container.

2024-11-05 05:32:16 -0500 received badge Famous Question (source)
2024-11-04 14:22:14 -0500 commented answer Docker remote host: OCI runtime exec failed: exec failed: unable to start container process: chdir to cwd

It would be nice to have the option to not pass -w, for situations like this. I guess that's a feature request.

2024-11-04 08:37:58 -0500 received badge Notable Question (source)
2024-11-03 07:28:11 -0500 received badge Popular Question (source)
2024-11-01 13:03:14 -0500 commented answer Docker remote host: OCI runtime exec failed: exec failed: unable to start container process: chdir to cwd

I was actually just trying to use Wing to view (and maybe debug) the files in the container. I had no plans to edit them

2024-10-31 17:45:58 -0500 commented answer Docker remote host: OCI runtime exec failed: exec failed: unable to start container process: chdir to cwd

I don't have an entry to map /home/rutherford into the container, but I also don't want it to be mapped! Can I not use a

2024-10-31 14:02:33 -0500 commented answer Docker remote host: OCI runtime exec failed: exec failed: unable to start container process: chdir to cwd

I have tried setting WORKDIR, but I don't think that's the issue here. Note that Wing is logging ['docker', 'exec', '-w'

2024-10-31 13:33:09 -0500 received badge Enthusiast
2024-10-30 17:42:04 -0500 asked a question Docker remote host: OCI runtime exec failed: exec failed: unable to start container process: chdir to cwd

Docker remote host: OCI runtime exec failed: exec failed: unable to start container process: chdir to cwd I'm trying to

2023-04-05 14:04:43 -0500 received badge Popular Question (source)
2023-02-08 13:51:18 -0500 marked best answer Docker: When does wing use build script?

I'm experimenting with Wing's docker integration, and I see that when I create a new project using docker, wing creates a build.sh file that builds a docker image when executed. I see that this script is set in the "Specify Build Script:" field of the container options screen.

What I don't understand though, is when Wing uses this script. I assume it does so when the project is initially created, but if I delete the image and restart the python shell (or wing), the image isn't rebuilt. So, when does wing execute this script itself, and when should I execute it?

2023-02-08 13:51:08 -0500 commented answer Docker: When does wing use build script?

Thanks! I didn't know about the Containers tool. I see it mentioned now on the new containers documentation

2023-02-07 18:48:31 -0500 received badge Popular Question (source)
2023-02-07 18:48:31 -0500 received badge Famous Question (source)
2023-02-07 18:48:31 -0500 received badge Notable Question (source)
2023-02-07 18:48:03 -0500 asked a question Docker: When does wing use build script?

Docker: When does wing use build script? I'm experimenting with Wing's docker integration, and I see that when I create

2021-09-03 12:56:11 -0500 marked best answer Test discovery without test running?

Is there any way to populate the list of individual tests in Wing's 'Testing' window without executing all the tests in a module? I would like to be able to select an individual test to run without first having to execute all the tests. Something similar to pytest --collect-only.

2021-09-03 12:56:11 -0500 received badge Scholar ( source )
2021-09-03 12:56:10 -0500 received badge Supporter ( source )
2021-09-02 17:33:48 -0500 commented answer Test discovery without test running?

Ah, I see it now. The testing menu item works as you describe. Thanks! If possible, It would also be nice if we could p

2021-09-02 15:26:45 -0500 commented answer Test discovery without test running?

Are you referring to 'Run Tests' in the right click menu? I wasn't aware of that feature. When I try to use it however I

2021-09-02 07:40:57 -0500 received badge Student (source)
2021-09-02 07:38:02 -0500 asked a question Test discovery without test running?

Test discovery without test running? Is there any way to populate the list of individual tests in Wing's 'Testing' windo