Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Broken VSCode and Cursor.ai autocomplete #59940

Open
karatekid430 opened this issue Jan 20, 2025 · 4 comments
Open

Broken VSCode and Cursor.ai autocomplete #59940

karatekid430 opened this issue Jan 20, 2025 · 4 comments
Labels
area-analyzer Use area-analyzer for Dart analyzer issues, including the analysis server and code completion.

Comments

@karatekid430
Copy link

karatekid430 commented Jan 20, 2025

For every object, if I type ".", it gives me these same options:

Image

I changed to pre-release extensions for Dart and Flutter. I cleaned the project and re-did it. I even upgraded to the latest Flutter version, 3.27.2.

@karatekid430
Copy link
Author

When I type "." anywhere, it says that the whole file is dead code. That might be why.

@dart-github-bot
Copy link
Collaborator

Summary: The user reports broken autocomplete functionality in VSCode and Cursor.ai when working with Dart. The autocomplete consistently provides the same, incorrect options regardless of the object. They've already tried cleaning the project, updating to the latest Flutter version (3.27.2), and using pre-release extensions.

Thank you for reporting this issue! To help us investigate, could you please provide the following information:

  • The output of dart info
  • Your operating system (Windows, macOS, or Linux)
  • Your IDE version (VSCode version and Cursor.ai version)
  • A minimal reproducible example demonstrating the broken autocomplete behavior. This would ideally be a small Dart project that exhibits the problem.
  • The versions of the Dart and Flutter extensions you are using.

This additional information will help us diagnose the problem more effectively. If this issue is related to Flutter or VSCode extensions, please consider filing the issue in the appropriate repository.

@dart-github-bot dart-github-bot added needs-info We need additional information from the issue author (auto-closed after 14 days if no response) triage-automation See https://github.com/dart-lang/ecosystem/tree/main/pkgs/sdk_triage_bot. labels Jan 20, 2025
@karatekid430
Copy link
Author

If providing this information as part of reporting a bug, please review the information
below to ensure it only contains things you're comfortable posting publicly.

General info

  • Dart 3.6.1 (stable) (Tue Jan 7 09:50:00 2025 -0800) on "macos_arm64"
  • on macos / Version 15.2 (Build 24C101)
  • locale is es-419

Project info

  • sdk constraint: '>=3.2.3 <4.0.0'
  • dependencies: cached_network_image, crypto, cupertino_icons, exif, flutter, flutter_cache_manager, flutter_compass, flutter_downloader, flutter_hooks, flutter_image_compress, flutter_localizations, flutter_map, flutter_native_image, flutter_svg, font_awesome_flutter, geocoding, geolocator, http, image_picker, intl, latlong2, native_device_orientation, native_exif, package_info_plus, path, path_provider, shared_preferences, sliver_fill_remaining_box_adapter, sliver_tools, sqflite, url_launcher, web
  • dev_dependencies: flutter_lints, flutter_test

Process info

Memory CPU Elapsed time Command line
22 MB 0.0% 02-00:35:27 dart development-service --vm-service-uri=http:/ --bind-address=127.0.0.1 --bind-port=0 --devtools-server-address=http:/
84 MB 0.0% 15:02 dart devtools --machine --allow-embedding --dtd-uri ws:/q3RJcKkLhbs=
1188 MB 2.2% 15:02 dart language-server --protocol=lsp --client-id=VS-Code --client-version=3.103.20250116
85 MB 45.2% 00:00 dart pub outdated --show-all --json
84 MB 0.0% 15:02 dart tooling-daemon --machine
136 MB 0.0% 15:02 flutter_tools.snapshot daemon
89 MB 0.0% 02:17 flutter_tools.snapshot debug_adapter
181 MB 0.0% 02:16 flutter_tools.snapshot run --machine --start-paused -d 00008130-001849E424A1401C --devtools-server-address http:/ --target /main.dart --flavor uat

@github-actions github-actions bot removed the needs-info We need additional information from the issue author (auto-closed after 14 days if no response) label Jan 20, 2025
@FMorschel
Copy link
Contributor

Hi @karatekid430, can you reproduce this in a small Flutter app (e.g. the counter app or something similar)? Could you please provide a code that reproduces this? Thanks!

@devoncarew devoncarew added area-analyzer Use area-analyzer for Dart analyzer issues, including the analysis server and code completion. and removed triage-automation See https://github.com/dart-lang/ecosystem/tree/main/pkgs/sdk_triage_bot. labels Jan 21, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area-analyzer Use area-analyzer for Dart analyzer issues, including the analysis server and code completion.
Projects
None yet
Development

No branches or pull requests

4 participants