Skip to content

Function println not matched when using ArduinoCore-samd core #112

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

Closed
enekochan opened this issue Jun 20, 2020 · 6 comments
Closed

Function println not matched when using ArduinoCore-samd core #112

enekochan opened this issue Jun 20, 2020 · 6 comments
Assignees
Labels
conclusion: resolved Issue was resolved criticality: medium Of moderate impact topic: language server Related to the Arduino Language Server type: imperfection Perceived defect in any part of project

Comments

@enekochan
Copy link

Describe the bug
Using the ArduinoCore-samd println function in Serial is highligthed as "No matching member function for call to 'println'" even if it is shown in code completition and the sketch is built without problems:

No matching member function for call to 'println'

/Users/username/Library/Arduino15/packages/arduino/hardware/samd/1.8.6/cores/arduino/Print.h:78:12:
note: candidate function not viable: no known conversion from 'Uart' to 'Print' for object argument

To Reproduce

  1. Install ArduinoCore-samd.
  2. Create a simple sketch and write a Serial.println("..."); statement
  3. See error

Expected behavior
Call to println be correctly recognized as belonging to Serial.

Screenshots
Screenshot 2020-06-20 at 23 13 13

Desktop:

  • OS: macOS 10.15.5
  • Version: Arduino Pro 0.0.6 (0.0.6.20200409.2)
  • ArduinoCore-samd 1.8.6
@ubidefeo
Copy link

@enekochan
This should be resolved, can you try the 0.1.4?
Screenshot 2021-02-18 at 18 04 43

@ubidefeo ubidefeo reopened this Feb 18, 2021
@enekochan
Copy link
Author

Sorry no, still not working.

Screenshot2-2021-02-18-at-18 14 05

@enekochan enekochan reopened this Feb 18, 2021
@enekochan
Copy link
Author

Full error log:

No matching member function for call to 'println'

/Users/enekochan/Library/Arduino15/packages/arduino/hardware/samd/1.8.11/cores/arduino/api/Print.h:79:12:
note: candidate function not viable: no known conversion from 'Uart' to 'arduino::Print' for object argument

/Users/enekochan/Library/Arduino15/packages/arduino/hardware/samd/1.8.11/cores/arduino/api/Print.h:78:12:
note: candidate function not viable: no known conversion from 'Uart' to 'arduino::Print' for object argument

/Users/enekochan/Library/Arduino15/packages/arduino/hardware/samd/1.8.11/cores/arduino/api/Print.h:77:12:
note: candidate function not viable: no known conversion from 'Uart' to 'arduino::Print' for object argument

/Users/enekochan/Library/Arduino15/packages/arduino/hardware/samd/1.8.11/cores/arduino/api/Print.h:80:12:
note: candidate function not viable: no known conversion from 'Uart' to 'arduino::Print' for object argument

/Users/enekochan/Library/Arduino15/packages/arduino/hardware/samd/1.8.11/cores/arduino/api/Print.h:81:12:
note: candidate function not viable: no known conversion from 'Uart' to 'arduino::Print' for object argument

/Users/enekochan/Library/Arduino15/packages/arduino/hardware/samd/1.8.11/cores/arduino/api/Print.h:82:12:
note: candidate function not viable: no known conversion from 'Uart' to 'arduino::Print' for object argument

/Users/enekochan/Library/Arduino15/packages/arduino/hardware/samd/1.8.11/cores/arduino/api/Print.h:83:12:
note: candidate function not viable: no known conversion from 'Uart' to 'arduino::Print' for object argument

/Users/enekochan/Library/Arduino15/packages/arduino/hardware/samd/1.8.11/cores/arduino/api/Print.h:84:12:
note: candidate function not viable: no known conversion from 'Uart' to 'arduino::Print' for object argument

/Users/enekochan/Library/Arduino15/packages/arduino/hardware/samd/1.8.11/cores/arduino/api/Print.h:85:12:
note: candidate function not viable: no known conversion from 'Uart' to 'arduino::Print' for object argument

/Users/enekochan/Library/Arduino15/packages/arduino/hardware/samd/1.8.11/cores/arduino/api/Print.h:86:12:
note: candidate function not viable: no known conversion from 'Uart' to 'arduino::Print' for object argument

/Users/enekochan/Library/Arduino15/packages/arduino/hardware/samd/1.8.11/cores/arduino/api/Print.h:87:12:
note: candidate function not viable: no known conversion from 'Uart' to 'arduino::Print' for object argument

/Users/enekochan/Library/Arduino15/packages/arduino/hardware/samd/1.8.11/cores/arduino/api/Print.h:88:12:
note: candidate function not viable: no known conversion from 'Uart' to 'arduino::Print' for object argument

/Users/enekochan/Library/Arduino15/packages/arduino/hardware/samd/1.8.11/cores/arduino/api/Print.h:89:12:
note: candidate function not viable: no known conversion from 'Uart' to 'arduino::Print' for object argument

/Users/enekochan/Library/Arduino15/packages/arduino/hardware/samd/1.8.11/cores/arduino/api/Print.h:90:12:
note: candidate function not viable: requires 0 arguments, but 1 was provided

@ubidefeo
Copy link

thanks @enekochan
we'll look for a solution :)

@rsora rsora transferred this issue from arduino/arduino-pro-ide Mar 1, 2021
@rsora rsora added the priority: medium Resolution is a medium priority label Mar 1, 2021
@cmaglie cmaglie removed the type: bug label Sep 16, 2021
@rsora rsora added type: imperfection Perceived defect in any part of project topic: language server Related to the Arduino Language Server labels Sep 22, 2021
@rsora rsora added criticality: medium Of moderate impact and removed priority: medium Resolution is a medium priority type: imperfection Perceived defect in any part of project labels Nov 2, 2021
@per1234 per1234 added the type: imperfection Perceived defect in any part of project label Nov 3, 2021
@per1234
Copy link
Contributor

per1234 commented Nov 28, 2021

This issue only occurs with specific boards:

  • Arduino M0
  • Arduino M0 Pro (Native USB Port)
  • Arduino M0 Pro (Programming Port)
  • Arduino Tian
  • Arduino Zero (Native USB Port)
  • Arduino Zero (Programming Port)

It does not occur with these boards:

  • Adafruit Circuit Playground Express
  • Arduino MKR boards (all)
  • Arduino Nano 33 IoT

Similar to #307

cmaglie added a commit to arduino/arduino-language-server that referenced this issue Dec 13, 2021
Those errors are present in the CMSIS-Atmel package, and makes the
language server produce other bogus errors as a consquence of parse
failure of header files.

See arduino/arduino-ide#307
See arduino/arduino-ide#112
cmaglie added a commit to arduino/arduino-language-server that referenced this issue Dec 16, 2021
Those errors are present in the CMSIS-Atmel package, and makes the
language server produce other bogus errors as a consquence of parse
failure of header files.

See arduino/arduino-ide#307
See arduino/arduino-ide#112
@per1234
Copy link
Contributor

per1234 commented Jun 23, 2022

Closing as resolved by arduino/arduino-language-server#92

@per1234 per1234 closed this as completed Jun 23, 2022
@per1234 per1234 added the conclusion: resolved Issue was resolved label Jun 23, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
conclusion: resolved Issue was resolved criticality: medium Of moderate impact topic: language server Related to the Arduino Language Server type: imperfection Perceived defect in any part of project
Projects
None yet
Development

No branches or pull requests

7 participants