code-d icon indicating copy to clipboard operation
code-d copied to clipboard

import paths are not recognized for vibe-d dependency

Open fuzzysloth opened this issue 2 years ago • 0 comments

Navigation and autocompletion are broken for recent versions of vibe-d dependency (e.g. version 0.10.0).

Way to reproduce: open any stand-alone vibe-d based project in vscode and try to navigate to a class definition that belongs to vibe-d or try to autocomlete or navigate to one of vibe-d modules in imports. The operation fails. Also code-d is not able to recognize vibe-d sub-project versions and shows "Import paths are empty!" warning on dub dependencies refresh.

Expected behavior: obviously, autocompletion and navigation to definitions should work.

A partial workaround: generate a list of import paths for a project (as described here, the 1st command) and add them to "importPaths" of your project. (This doesn't fix dub dependency view and the warning, though.)

UPD: dlangide seems to have a similar issue. Dub works fine without any issues.

Versions:

  • code-d: v0.23.2
  • vibe-d: 0.10.0
  • dlangide: 0.8.18
  • dub: 1.36.0
  • serve-d: v0.7.6 with workspace-d v3.7.0

OS: GNU/Linux

fuzzysloth avatar Mar 12 '24 22:03 fuzzysloth