Skip to content

Code completion is not working in all files #8

@FelixLisczyk

Description

@FelixLisczyk

I'm working on a Swift package and have added the project folder to my Neovim config like this:

return {
  {
    "augmentcode/augment.vim",
    config = function()
      vim.g.augment_workspace_folders = {
        vim.fn.expand("~/Developer/Swift/Packages/StoreIntegrationUI/"),
      }
    end,
  },
}

Code completion works fine in my source files (stored under Sources). However, I don't receive any code completions in my tests (stored under Tests).

Here is the log output:

2025-03-02 17:05:20 [INFO] Starting Augment Server v0.14.1
2025-03-02 17:05:20 [INFO] Using workspace folders: [{'uri': 'file:///Users/felix/Developer/Swift/Packages/StoreIntegrationUI/', 'name': ''}]
2025-03-02 17:05:23 [INFO] Received completion with request_id=28e67c79-d8e5-4ff2-b09b-c848b63bac71 text=ect "StoreIntegrationUI"
2025-03-02 17:05:26 [ERROR] Recieved error {'code': -32603, 'message': 'Not tracking the document file:///Users/felix/Developer/Swift/Packages/StoreIntegrationUI/Tests/Unit Tests/ProductLoaderTests.swift'} for completion with params: {'textDocument': {'uri': 'file:///Users/felix/Developer/Swift/Packages/StoreIntegrationUI/Tests/Unit Tests/ProductLoaderTests.swift', 'version': 3}, 'position': {'character': 0, 'line': 20}}
2025-03-02 17:05:27 [ERROR] Recieved error {'code': -32603, 'message': 'Not tracking the document file:///Users/felix/Developer/Swift/Packages/StoreIntegrationUI/Tests/Unit Tests/ProductLoaderTests.swift'} for completion with params: {'textDocument': {'uri': 'file:///Users/felix/Developer/Swift/Packages/StoreIntegrationUI/Tests/Unit Tests/ProductLoaderTests.swift', 'version': 7}, 'position': {'character': 4, 'line': 20}}
2025-03-02 17:05:28 [ERROR] Recieved error {'code': -32603, 'message': 'Not tracking the document file:///Users/felix/Developer/Swift/Packages/StoreIntegrationUI/Tests/Unit Tests/ProductLoaderTests.swift'} for completion with params: {'textDocument': {'uri': 'file:///Users/felix/Developer/Swift/Packages/StoreIntegrationUI/Tests/Unit Tests/ProductLoaderTests.swift', 'version': 8}, 'position': {'character': 5, 'line': 20}}
2025-03-02 17:05:28 [ERROR] Recieved error {'code': -32603, 'message': 'Not tracking the document file:///Users/felix/Developer/Swift/Packages/StoreIntegrationUI/Tests/Unit Tests/ProductLoaderTests.swift'} for completion with params: {'textDocument': {'uri': 'file:///Users/felix/Developer/Swift/Packages/StoreIntegrationUI/Tests/Unit Tests/ProductLoaderTests.swift', 'version': 9}, 'position': {'character': 6, 'line': 20}}
2025-03-02 17:05:28 [ERROR] Recieved error {'code': -32603, 'message': 'Not tracking the document file:///Users/felix/Developer/Swift/Packages/StoreIntegrationUI/Tests/Unit Tests/ProductLoaderTests.swift'} for completion with params: {'textDocument': {'uri': 'file:///Users/felix/Developer/Swift/Packages/StoreIntegrationUI/Tests/Unit Tests/ProductLoaderTests.swift', 'version': 10}, 'position': {'character': 7, 'line': 20}}
2025-03-02 17:05:28 [ERROR] Recieved error {'code': -32603, 'message': 'Not tracking the document file:///Users/felix/Developer/Swift/Packages/StoreIntegrationUI/Tests/Unit Tests/ProductLoaderTests.swift'} for completion with params: {'textDocument': {'uri': 'file:///Users/felix/Developer/Swift/Packages/StoreIntegrationUI/Tests/Unit Tests/ProductLoaderTests.swift', 'version': 11}, 'position': {'character': 8, 'line': 20}}

:Augment status says that the workspace is fully synced. I've also tried restarting Neovim multiple times.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions