opensafely-core / research-template-docker

This provides the devcontainer Docker image used by repos created from the OpenSAFELY research template.
Other
0 stars 0 forks source link

ehrQL imports display syntax errors in VS Code #19

Closed iaindillingham closed 2 months ago

iaindillingham commented 2 months ago

The ehrQL imports in opensafely/research-template analysis/dataset_definition.py display syntax errors in VS Code. However, other imports (e.g. import pandas) don't.

Jongmassey commented 2 months ago

I can't replicate this - can you detail steps to reproduce?

Jongmassey commented 2 months ago

Image

Here's a fresh codespace on that branch

iaindillingham commented 2 months ago

Ah! My apologies, the blue squiggly lines aren't syntax errors. They're spelling errors. I installed the Code Spell Checker extension, and Codespaces is smart enough to use that in VS Code in the browser as well as on the desktop.

improve-devcontainers-vs-code