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

import completion prints the path prefix twice #182

Open
brainwo opened this issue Aug 3, 2023 · 0 comments
Open

import completion prints the path prefix twice #182

brainwo opened this issue Aug 3, 2023 · 0 comments

Comments

@brainwo
Copy link

brainwo commented Aug 3, 2023

Description

import completion prints the prefix twice
Some examples of the problem:

import 'package:package:vm_service/'
import 'package:vm_service/package:vm_service/vm_service.dart'

Steps to Reproduce

Steps to reproduce the behavior:

  1. Type import 'package:ffi/
  2. Let the autocompletion window open
  3. Select package:ffi/ffi.dart from the completion
  4. Got this import 'package:ffi/package:ffi/ffi.dart'

Expected behavior
The reproducible steps should produce import 'package:ffi/ffi.dart'.
Just like the VS Code extension or any other Coc extensions.

Desktop:

  • Neovim version: 0.9.1

Output channel:

Output
[dev-command]: register dev command
[sdk]: flutter command path => /opt/flutter/bin/flutter
[sdk]: dart sdk home => /opt/flutter/bin/cache/dart-sdk
[sdk]: analyzer path => /opt/flutter/bin/cache/dart-sdk/bin/snapshots/analysis_server.dart.snapshot
[sdk]: dart command path => /opt/flutter/bin/cache/dart-sdk/bin/dart
[fs]: executing command /opt/flutter/bin/cache/dart-sdk/bin/dart --version
[sdk]: dart version: v3.0.6
[lsp-server]: rightVersion true
[lsp-server]: analysis server ready!
[lsp-closing-labels]: register closing labels
[daemon]: got message: {
  "event": "daemon.connected",
  "params": {
    "version": "0.6.1",
    "pid": 103373
  }
}
[daemon]: got message: {
  "event": "daemon.logMessage",
  "params": {
    "level": "status",
    "message": "Starting device daemon..."
  }
}
[daemon]: got message: {
  "id": 1
}
[daemon]: Message without event
[daemon]: got message: {
  "event": "device.added",
  "params": {
    "id": "linux",
    "name": "Linux",
    "platform": "linux-x64",
    "emulator": false,
    "category": "desktop",
    "platformType": "linux",
    "ephemeral": false,
    "emulatorId": null,
    "sdk": "Arch Linux 6.4.7-arch1-2",
    "capabilities": {
      "hotReload": true,
      "hotRestart": true,
      "screenshot": false,
      "fastStart": false,
      "flutterExit": true,
      "hardwareRendering": true,
      "startPaused": true
    }
  }
}
[daemon]: New device: Linux
[daemon]: got message: {
  "event": "device.added",
  "params": {
    "id": "chrome",
    "name": "Chrome",
    "platform": "web-javascript",
    "emulator": false,
    "category": "web",
    "platformType": "web",
    "ephemeral": false,
    "emulatorId": null,
    "sdk": "Google Chrome 115.0.5790.170",
    "capabilities": {
      "hotReload": true,
      "hotRestart": true,
      "screenshot": false,
      "fastStart": false,
      "flutterExit": false,
      "hardwareRendering": true,
      "startPaused": true
    }
  }
}
[daemon]: New device: Chrome
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant