Skip to content

Quick suggestion does not work #2096

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
3 tasks done
ubaldot opened this issue Jun 12, 2023 · 2 comments
Closed
3 tasks done

Quick suggestion does not work #2096

ubaldot opened this issue Jun 12, 2023 · 2 comments
Assignees
Labels
conclusion: duplicate Has already been submitted topic: CLI Related to Arduino CLI topic: language server Related to the Arduino Language Server type: imperfection Perceived defect in any part of project

Comments

@ubaldot
Copy link

ubaldot commented Jun 12, 2023

Describe the problem

I followed the guideline but when I hit CTRL+Space nothing happens. It also looks like that it is not possible to generate any LSP log (or perhaps it is just me that I haven't found).

To reproduce

Install Arduino IDE

Version: 2.1.0
Date: 2023-04-17T11:52:02.744Z
CLI Version: 0.32.2

on MacOs 13.4 (22F66), attach a ArduinoUno and test the autocomplete.

Expected behavior

Autocomplete suggestions to pop up.

Arduino IDE version

2.1.0

Operating system

macOS

Operating system version

13.4 (22F66)

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 nightly build
  • My report contains all necessary details
@ubaldot ubaldot added the type: imperfection Perceived defect in any part of project label Jun 12, 2023
@per1234 per1234 self-assigned this Jun 12, 2023
@per1234 per1234 added the topic: language server Related to the Arduino Language Server label Jun 12, 2023
@per1234
Copy link
Contributor

per1234 commented Jun 12, 2023

Arduino IDE version

2.1.0

There was a bug in Arduino IDE 2.1.0 that could cause the language server features to not be available under certain conditions (#2034). That bug has already been fixed (#2083) since the time of the 2.1.0 release you are using. Please try with the latest nightly build of Arduino IDE, which contains the fix, then comment here to let us know whether the problem still occurs with the nightly build.

The download links for the nightly build are listed here:

https://www.arduino.cc/en/software#nightly-builds

It also looks like that it is not possible to generate any LSP log

I'll provide instructions:

A. Enable Language Server Logging

  1. Use the Ctrl/+Shift+P keyboard shortcut to open the "Command Palette" in Arduino IDE.
  2. Select the "Preferences: Open Settings (UI)" command from the "Command Palette".
    The "Preferences" tab will now open in the editor panel.
  3. In the "Search Settings" field, type arduino.language.log
  4. Under the "Arduino > Language: Log", section, check the box next to "☐ True if the Arduino Language Server should generate log files into the sketch folder. Otherwise, false. It's false by default."
  5. Close the Preferences tab by clicking its X icon.

B. Gather Logs

  1. Start Arduino IDE.
  2. Perform whatever procedure causes the problem you are experiencing in Arduino IDE.
  3. Select Sketch > Show Sketch Folder from the Arduino IDE menus.
    The folder containing the sketch will open in your file manager.

You will find several .log files in the sketch folder. These are the language server logs.

C. Disable Language Server Logging

When language server logging is enabled, log files are saved to every sketch you open in Arduino IDE and they steadily grow in size whenever you are editing the sketch. So the logging is something you would usually want to disable whenever generation of logs is not needed.

  1. Use the Ctrl/+Shift+P keyboard shortcut to open the "Command Palette" in Arduino IDE.
  2. Select the "Preferences: Open Settings (UI)" command from the "Command Palette".
    The "Preferences" tab will now open in the editor panel.
  3. In the "Search Settings" field, type arduino.language.log
  4. Under the "Arduino > Language: Log", section, uncheck the box next to " True if the Arduino Language Server should generate log files into the sketch folder. Otherwise, false. It's false by default."
  5. Close the Preferences tab by clicking its X icon.
  6. Select File > Quit from the Arduino IDE menus.

You are now welcome to delete the .log files that were added to the sketch folder.

@per1234 per1234 added the status: waiting for information More information must be provided before work can proceed label Jun 12, 2023
@per1234 per1234 changed the title Quick suggestion does not work on MacOs Ventura. Quick suggestion does not work Jun 12, 2023
@ubaldot
Copy link
Author

ubaldot commented Jun 12, 2023

Quick suggestion works with the nightly build! Thanks!

@ubaldot ubaldot closed this as completed Jun 12, 2023
@per1234 per1234 added conclusion: duplicate Has already been submitted topic: CLI Related to Arduino CLI and removed status: waiting for information More information must be provided before work can proceed labels Jun 12, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
conclusion: duplicate Has already been submitted topic: CLI Related to Arduino CLI 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

2 participants