-
-
Notifications
You must be signed in to change notification settings - Fork 431
Log files in project folder #668
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
Comments
Hi @willie68. These are the Language Server debug logs. By default, Language Server logging is turned off, so you must have enabled it. These logs are only needed for development and troubleshooting of the Arduino IDE and Arduino Language Server. Due to only being needed for development purposes, "Enable language server logging" was removed from the File > Preferences in Arduino IDE 2.0.0-rc1 (#635). It is now controlled solely via the advanced user interface so regular users will not be likely to inadvertently enable them. Since they will not be used under ordinary circumstances, and since they are sketch-specific, I don't think the current location of the logs is a significant problem. Here are the instructions for disabling/enabling Language Server logging: If using Arduino IDE 2.0.0-beta.12 or older
If using Arduino IDE 2.0.0-rc1 or newer
|
I did quite a bit of testing with fresh installations and never was able to reproduce this. I'll keep an eye out for other reports of that because it is something that should only be enabled on demand when it is necessary to troubleshoot the Arduino Language Server. If anyone can provide me with a detailed set of instructions I can follow to reproduce the setting defaulting to enabled, that would be very useful.
No. The classic Arduino IDE does not use a language server at all and it also has a completely separate preferences storage system. So none of your settings from the classic IDE effect Arduino IDE 2.x
Thanks for the correction! I wrote the instructions with the hope that others with the same problem might find and use them, but they won't be so helpful if by giving incorrect information. I forgot that the name changed in the Arduino IDE 2.0.0-rc1 release. I was going off the naming from 2.0.0-beta.12 and earlier. |
Again, thank for your explanation. I disable the Log files and it seems to work. |
Hi @icehousedoo. I wanted to ask you about something you mentioned in passing in your other issue:
I am guessing that the four log files you refer to have these file names:
These are the log files for the language server used by the Arduino IDE. They are intended for troubleshooting problems. The issue here is a report of the language server logging being enabled by default. It is intended to be disabled by default, so you should only see these files in your sketch if you have enabled the language server logging in your IDE preferences, following the procedure I described here. Did you enable the logging in your IDE preferences? If so, then all is well. If not, then I would be interested in investigating this further since we definitely don't want the IDE to produce these files under ordinary circumstances. |
Hi per1234,
Yes language logs was enabled, apologies, just installed RC2 so it must
have picked the setting up from a previous version (also have used VS Code).
Will respond to your other questions in the forum.
Cheers
Isaac
…On Fri, Dec 17, 2021 at 6:56 PM per1234 ***@***.***> wrote:
Hi @icehousedoo <https://github.com/icehousedoo>.
I wanted to ask you about something you mentioned in passing in your other
issue:
#699 (comment)
<#699 (comment)>
Sketch / Show sketch folder shows files as expected inc 4x log files
I am guessing that the four log files you refer to have these file names:
- inols-clangd-err.log
- inols-clangd.log
- inols-err.log
- inols.log
These are the log files for the language server used by the Arduino IDE.
They are intended for troubleshooting problems.
The issue here is a report of the language server logging being enabled by
default. It is intended to be disabled by default, so you should only see
these files in your sketch if you have enabled the language server logging
in your IDE preferences, following the procedure I described here
<#668 (comment)>
.
Did you enable the logging in your IDE preferences? If so, then all is
well. If not, then I would be interested in investigating this further
since we definitely don't want the IDE to produce these files under
ordinary circumstances.
—
Reply to this email directly, view it on GitHub
<#668 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AFRQ5M7I6SRDWBNPM2IZMZTURLUKBANCNFSM5JOASICQ>
.
Triage notifications on the go with GitHub Mobile for iOS
<https://apps.apple.com/app/apple-store/id1477376905?ct=notification-email&mt=8&pt=524675>
or Android
<https://play.google.com/store/apps/details?id=com.github.android&referrer=utm_campaign%3Dnotification-email%26utm_medium%3Demail%26utm_source%3Dgithub>.
You are receiving this because you were mentioned.Message ID:
***@***.***>
|
Thanks so much for your quick response @icehousedoo!
No reason for apologies. You are welcome to leave the logging on if it is useful to you (see the information here for the new method for controlling the setting). I am only trying to keep an eye out for any other reports of the IDE enabling logging by default since that would be a bad experience for the target Arduino user. |
Describe the bug
There are several log files in the project directory, which should not be there.
To Reproduce
Simply start the IDE and open a project. Than yoiu will see 4 log files
inols.log, inols-clangd.log, inols-clangd-err.log, inols-err.log
Expected behavior
Log files are ok, but not in the project folder. Should be somewhere in the temp folder with the possibility to remove them. (Manually, maybe automatically, if they are to old.
Screenshots

Desktop (please complete the following information):
The text was updated successfully, but these errors were encountered: