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

Unexpected error from LS when suggesting #120

Open
3 tasks done
kittaakos opened this issue Jun 23, 2022 · 0 comments
Open
3 tasks done

Unexpected error from LS when suggesting #120

kittaakos opened this issue Jun 23, 2022 · 0 comments
Assignees
Labels
topic: code Related to content of the project itself type: imperfection Perceived defect in any part of project

Comments

@kittaakos
Copy link
Contributor

Describe the problem

Error:

errors.ts:26 Uncaught Error: Cannot read properties of null (reading 'map')

TypeError: Cannot read properties of null (reading 'map')
    at asCompletionResult (/Users/a.kitta/dev/g…ist/bundle.js:11434)
    at errors.ts:26

To reproduce

Broken snippet:

#include <ArduinoGraphics.h>
#include <Arduino_MKRRGB.h>
#include <

void setup() {
  MATRIX.begin();

}

void loop() {
}

Then complete the < with > in the third line so you get:

#include <ArduinoGraphics.h>
#include <Arduino_MKRRGB.h>
#include <>

void setup() {
  MATRIX.begin();

}

void loop() {
}

Expected behavior

Does not throw.

Arduino Language Server version

HEAD of the main branch.

Arduino CLI version

From sources: cmaglie:skip_lib_search_result

Operating system

macOS

Operating system version

12.3.1

Additional context

No response

Issue checklist

  • I searched for previous reports in the issue tracker
  • I verified the problem still occurs when using the latest version
  • My report contains all necessary details
@kittaakos kittaakos added topic: code Related to content of the project itself type: imperfection Perceived defect in any part of project labels Jun 23, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
topic: code Related to content of the project itself type: imperfection Perceived defect in any part of project
Projects
None yet
Development

No branches or pull requests

2 participants