-
-
Notifications
You must be signed in to change notification settings - Fork 431
Starting IDE creates "undefined" folder in current directory #394
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
FWIW, I noticed this bug as well and did some digging. I think this is actually a bug inside Theia. But there's just too much typescript interface over engineered junk in the way and I could not find where a simple directory is created. Another observation I made is that the |
I found it. It's here: resources/app/node_modules/node-log-rotate/lib/utils/find-log-file-name.js The module seems to be initialized here. The default_1 function returns this log file name, with an obviously undefined path. It annoyed me to a great extent so I commented the return line and it doesn't do it any more. |
The error is related to an issue on the module node-log-rotate. I have opened a PR with a fix, you can find more info here lemon-sour/node-log-rotate#23 Thanks @ggl for pointing me on the right direction. |
The First, go to Then, find the following lines:
And change them to:
|
@LordRafa I saw your PR, thanks for that! Sadly, seems like |
Otherwise, `node-log-rotate` creates a folder with `undefined` name. Closes #394. Signed-off-by: Akos Kitta <[email protected]>
@fstasi, do we have a concrete bug report on macOS? |
Otherwise, `node-log-rotate` creates a folder with `undefined` name. Closes arduino#394. Signed-off-by: Akos Kitta <[email protected]>
Describe the bug
It is more an oddity than a bug.
Whenever I start the IDE the program creates a folder called "undefined" in my home directory. This folder contains only one folder called "Arduino IDE" which contains logs of the IDE. I think it's good that the logs are saved in an easy to find location. But all the time I'm looking into my home-folder the "undefined" folder kind of confuses me.
To Reproduce
Steps to reproduce the behavior:
Expected behavior
Just giving it a more precise name would make me happy.
Screenshots

Desktop (please complete the following information):
Additional context
As already mentioned in #110 it is not perfectly documented how to install the IDE correctly, so i guess it could also be an error of me in the installation process. In my point of view I went a straight forward way, downloading the newest IDE, unzipping the contents and copying the files to /opt/
To have it listed in the applications menu of Ubuntu I created the file
Arduino 2.0 (beta).desktop
in~/.local/share/applications
with the following content:It is mostly a copy of another .desktop file in the directory.
Now starting the IDE results in generating the undefined-folder. Everything else works perfectly.
The text was updated successfully, but these errors were encountered: