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

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

Open
PadraigK opened this issue Oct 5, 2023 · 3 comments

Comments

@PadraigK
Copy link

PadraigK commented Oct 5, 2023

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.

@PadraigK
Copy link
Author

PadraigK commented Oct 5, 2023

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

@PadraigK
Copy link
Author

PadraigK commented Oct 5, 2023

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.

@alicerunsonfedora
Copy link

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
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants