Skip to content

Bug: cannot find <object> in scope issue is emitted but the object does exist. #15

Open

Description

@PadraigK

When I create a new file and define a new class, referencing the new class in another file will produce a cannot find <object> in scope error. It persists through builds (which work fine). The menu option to clear issues from previous builds doesn't remove it.

The only way I know to clear this error is to toggle off the Icarus extension and then toggle it on again.

Screenshot 2023-10-05 at 11 08 45 AM Screenshot 2023-10-05 at 11 08 35 AM

I reproduced this from a fresh launch and watched the extension console, but nothing was emitted there as I added the file and referenced it.

I also noticed that the LSP will crash with a notification if I delete a file, in case that's relevant.

Activity

  1. PadraigK commented on Oct 5, 2023

    @PadraigK
    Author

    This is with Xcode 15 as my xcode-select Xcode and no custom settings on Icarus.

  2. PadraigK commented on Oct 5, 2023

    @PadraigK
    Author

    The new file part is the key thing, I can make a new class in an existing file and everything works fine, but as soon as I move the class into a new file, this error appears and won't go away until the LSP restarts.

  3. alicerunsonfedora commented on Nov 24, 2023

    @alicerunsonfedora

    I noticed this as well when generating a new file altogether. The LSP doesn't seem to recognize it until I close and re-open the project.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

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