Autocomplete and red wiggly lines not working - Arduino IDE 2.0 rc3

First to all thank you for your answer. i just install Arduino IDE 2.0 on my laptop, i was enable the "Editor Quick Suggestions" on preferences...

but when i write for example "pin" the autocomplete not work, there are not any suggest, i use "Ctrl + Space" but only i see a message "no suggestions"...

Only When i write the pinMode function before, and i write again, there are suggest...

Also, when i write some words "xyz or abc" i can not see the red wiggly lines under the words... HELP! any suggest...

Arduino IDE 2.0.0-rc3
macOs 10.13.6

Works perfectly in Windows 10, wiggly lines and all.

image

Willem.

yes i also installed in other PC with w10 and works well, but not work in my laptop with macOs.


I tried uninstall and install again, but not working...

i dont know why!
:slightly_frowning_face:

Hi @maker_lalo. I'm sorry to hear the suggestions feature is not working correctly.

I'm going to ask you to provide some log files that might allow us to determine the cause of the problem.

Generate language server log files

The Arduino IDE has an advanced option for enabling logging by the Arduino Language Server tool that proves the code-aware features in the Arduino IDE such as problem detection, code information on mouse hover, Go to..., code suggestions, and auto format. Although these logs are not of value for regular usage of the Arduino IDE, they can be helpful for troubleshooting problems with the language server.

These are the instructions for generating the log files:

  1. Use the Ctrl/+Shift+P keyboard shortcut to open the Command Palette in the Arduino IDE.
  2. Select the "Preferences: Open Preferences" command.
    The "Preferences" tab will now open in the editor panel.
  3. In the "Search Settings" field, type 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.
  6. Select File > New from the Arduino IDE menus.
  7. Select Sketch > Show Sketch Folder from the Arduino IDE menus.
    The folder containing the sketch will open in your file browser.
  8. ZIP the entire sketch folder.
    • Instructions for Windows:
      1. Right click the sketch folder.
      2. From the context menu that opens, select "Send to".
      3. Select "Compressed (zipped) folder" from the "Send to" menu.
    • Instructions for Linux:
      1. Right click the sketch folder.
      2. From the context menu that opens, select "Compress...".
      3. In the "Create Archive" dialog that opens, click the Create button.
    • Instructions for macOS:
      1. Control-click the sketch folder.
      2. From the shortcut menu that opens, select "Compress"
  9. Attach the .zip file that was created to a reply here on this forum thread.
    You can do this by drag and dropping the file onto a reply, copy/pasting the file, or by clicking the upward pointing arrow icon ("Upload") on the post composer toolbar.
  10. Close the Preferences tab by clicking its X icon.

Disable language server logging

When language server logging is enabled, log files are saved to every sketch you open in the 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 the Arduino IDE.
  2. Select the "Preferences: Open Preferences" command.
    The "Preferences" tab will now open in the editor panel.
  3. In the "Search Settings" field, type 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.

Hey @ptillisch First thank you very much for your answer... i hope made the correct process:

Archivo.zip (8.0 KB)

i stay tuned... :wink:

That was perfect. I can see the problem here in inols-clangd-err.log:

dyld: lazy symbol binding failed: Symbol not found: ____chkstk_darwin
  Referenced from: /Applications/Arduino IDE.app/Contents/Resources/app/node_modules/arduino-ide-extension/build/bin/clangd (which was built for Mac OS X 10.15)
  Expected in: /usr/lib/libSystem.B.dylib

The problem is that the clangd tool used by Arduino Language Server is not compatible with the version of macOS you are using. The Software page says that the minimum requirement for Arduino IDE 2.x is macOS 10.14.

1 Like

@ptillisch im sorry, my bad...i just updated to macOS 10.14. and all functions of Arduino IDE 2.0 Works!!
cap_

Thank you very much.... :+1: :fist_right: :fist_left:

Nothing to apologize for. I'm very glad that you were able to update your macOS and that the language server capabilities are now working for you.

This topic was automatically closed 180 days after the last reply. New replies are no longer allowed.