-
Notifications
You must be signed in to change notification settings - Fork 133
File changes desynced leading to syntax errors #1929
Comments
I can't reproduce this. Can you give exactly the file up to those errors? Are you certain those parenthesis/commas aren't some unicode-variant Python cannot accept? |
If I close VS Code and open it again it's fine. So it's not something wrong with the file - the extension seems to sometimes get confused. |
Still need the code to be able to try it out myself, as I still cannot reproduce it. Even if it's just the first 25 lines you show in the screenshot. See also https://github.com/microsoft/python-language-server/blob/master/TROUBLESHOOTING.md#filing-an-issue |
Sure thing, here we go: import json
from datetime import datetime
from log_config import logging
from metrics import Metrics
from .json_to_df import (
accepted_carrier_job_columns,
facilities_columns,
hypothetical_carrier_job_columns,
json_to_df,
shipments_columns,
)
from .massage_raw_input import get_post_process_carrier_jobs, get_post_process_shipments
from .trip_metrics import (
basic_summary_of_trip_outputs,
metrics_comparing_trip_and_mp,
basic_inputs_summary,
summary_shape_of_marketplace_cjs,
summary_trailer_counts,
)
from .trip_tools import (
solve_from_dfs_to_trip_selections,
write_selected_hypothetical_decisions,
) |
This hints at buffer corruption, rather than an actual parser issue. The squiggle's bounds don't make any sense and that string is definitely wrong. |
Probably another manifestation of #1009 which was mostly fixed, but I guess not entirely. |
Issue Type: Bug
Python is showing parsing errors on valid code.
Extension version: 2020.2.64397
VS Code version: Code 1.42.1 (c47d83b293181d9be64f27ff093689e8e7aed054, 2020-02-11T14:44:27.652Z)
OS version: Darwin x64 19.3.0
System Info
flash_3d: enabled
flash_stage3d: enabled
flash_stage3d_baseline: enabled
gpu_compositing: enabled
metal: disabled_off
multiple_raster_threads: enabled_on
oop_rasterization: disabled_off
protected_video_decode: unavailable_off
rasterization: enabled
skia_renderer: disabled_off
surface_control: disabled_off
surface_synchronization: enabled_on
video_decode: enabled
viz_display_compositor: enabled_on
viz_hit_test_surface_layer: disabled_off
webgl: enabled
webgl2: enabled
The text was updated successfully, but these errors were encountered: