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

System.NullReferenceException at MyPatternDetector.IsRulesetArgumentListToken #10

Closed
sapsari opened this issue Feb 16, 2023 · 1 comment
Labels
bug Something isn't working completion Auto completion, aka IntelliSense
Milestone

Comments

@sapsari
Copy link
Collaborator

sapsari commented Feb 16, 2023

Message
Unhandled exception at UnityCodeAssistCompletionProvider.ProvideCompletionsAsync

[Stack Trace]

System.NullReferenceException
Object reference not set to an instance of an object.

bool MyPatternDetector.IsRulesetArgumentListToken(SyntaxToken token, CancellationToken cancellationToken, out RuleKey? ruleKey) at line 532:17

bool MyPatternDetector.IsRulesetArgumentToken(SyntaxToken token, CancellationToken cancellationToken, out RuleKey? ruleKey) at line 446:18

async Task<(SyntaxToken? token, RuleKey? ruleKey)> Language.TryGetTokenAtPositionAsync(Document document, int position, bool isArgumentToken, bool isRightSideToken, bool isStringToken, bool isTypeArgumentToken, CancellationToken cancellationToken) at line 73:17

async Task<(SyntaxToken? token, RuleKey? ruleKey)> UnityCodeAssistCompletionProvider.TryGetArgumentListTokenAsync(Document document, int position, CancellationToken cancellationToken) at line 118:13

async Task UnityCodeAssistCompletionProvider.ProvideCompletionsAuxAsync(CompletionContext context) at line 176:17

async Task UnityCodeAssistCompletionProvider.ProvideCompletionsAsync(CompletionContext context) at line 145:17

@sapsari
Copy link
Collaborator Author

sapsari commented Feb 16, 2023

Also same as #5 since methods GetCurrentClass are duplicate

@sapsari sapsari added bug Something isn't working completion Auto completion, aka IntelliSense labels Feb 16, 2023
@sapsari sapsari added this to the 1.0.0.12 milestone Feb 16, 2023
@sapsari sapsari closed this as completed Feb 16, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working completion Auto completion, aka IntelliSense
Projects
None yet
Development

No branches or pull requests

1 participant