Skip to content
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

nim creates empty pkgs folders in the pwd when run #15648

Closed
shassard opened this issue Oct 20, 2020 · 5 comments
Closed

nim creates empty pkgs folders in the pwd when run #15648

shassard opened this issue Oct 20, 2020 · 5 comments

Comments

@shassard
Copy link

shassard commented Oct 20, 2020

When running the nim program via the CLI in linux, empty folders named pkgs are created in each directory where the nim executable is executed.

Example

20:18.stephen@yogabba:~% mkdir tmp   
20:18.stephen@yogabba:~% cd tmp
20:18.stephen@yogabba:~/tmp% nim --version
Nim Compiler Version 1.4.0 [Linux: amd64]
Compiled at 2020-10-18
Copyright (c) 2006-2020 by Andreas Rumpf

git hash: bdcd87afca238a0a7b2c70971827cf9172817b12
active boot switches: -d:release
20:18.stephen@yogabba:~/tmp% ls -la
total 0
drwxr-xr-x 1 stephen stephen   8 Oct 19 20:18 ./
drwx------ 1 stephen stephen 466 Oct 19 20:18 ../
drwxr-xr-x 1 stephen stephen   0 Oct 19 20:18 pkgs/

Perhaps this is related to some environment variable being unset in my environment? My env looks like:

20:18.stephen@yogabba:~/tmp% env
COLORFGBG=15;0
COLORTERM=truecolor
DBUS_SESSION_BUS_ADDRESS=unix:path=/run/user/1000/bus
DESKTOP_SESSION=/usr/share/xsessions/plasma
DISPLAY=:0
GDK_DPI_SCALE=0.5
GDK_SCALE=2
GTK2_RC_FILES=/etc/gtk-2.0/gtkrc:/home/stephen/.gtkrc-2.0:/home/stephen/.config/gtkrc-2.0
GTK_MODULES=canberra-gtk-module
GTK_RC_FILES=/etc/gtk/gtkrc:/home/stephen/.gtkrc:/home/stephen/.config/gtkrc
HOME=/home/stephen
KDE_APPLICATIONS_AS_SCOPE=1
KDE_FULL_SESSION=true
KDE_SESSION_UID=1000
KDE_SESSION_VERSION=5
KONSOLE_DBUS_SERVICE=:1.99
KONSOLE_DBUS_SESSION=/Sessions/1
KONSOLE_DBUS_WINDOW=/Windows/1
KONSOLE_VERSION=200802
LANG=en_CA.UTF-8
LANGUAGE=
LOGNAME=stephen
MAIL=/var/spool/mail/stephen
MOTD_SHOWN=pam
OLDPWD=/home/stephen
PAM_KWALLET5_LOGIN=/run/user/1000/kwallet5.socket
PATH=/home/stephen/.nimble/bin:/home/stephen/.nimble/bin:/usr/local/sbin:/usr/local/bin:/usr/bin:/usr/bin/site_perl:/usr/bin/vendor_perl:/usr/bin/core_perl
PROFILEHOME=
PWD=/home/stephen/tmp
QT_AUTO_SCREEN_SCALE_FACTOR=0
QT_SCREEN_SCALE_FACTORS=eDP-1=2;DP-1=2;DP-2=2;
SESSION_MANAGER=local/yogabba:@/tmp/.ICE-unix/598,unix/yogabba:/tmp/.ICE-unix/598
SHELL=/bin/zsh
SHELL_SESSION_ID=cc45f236c9ad4045985c2b468ff16077
SHLVL=1
TERM=xterm-256color
USER=stephen
WINDOWID=4194311
XAUTHORITY=/home/stephen/.Xauthority
XCURSOR_SIZE=48
XCURSOR_THEME=Breeze_Snow
XDG_CURRENT_DESKTOP=KDE
XDG_RUNTIME_DIR=/run/user/1000
XDG_SEAT=seat0
XDG_SEAT_PATH=/org/freedesktop/DisplayManager/Seat0
XDG_SESSION_CLASS=user
XDG_SESSION_DESKTOP=KDE
XDG_SESSION_ID=2
XDG_SESSION_PATH=/org/freedesktop/DisplayManager/Session1
XDG_SESSION_TYPE=x11
XDG_VTNR=1
_=/usr/bin/env
CLICOLOR=1
EDITOR=vi
LC_CTYPE=en_CA.UTF-8

Expected Output

The nim binary shouldn't create these empty folders all over the disk. This didn't seem to happen in the previous release and started happening only with 1.4.0.

@dawkot
Copy link

dawkot commented Oct 20, 2020

Same here (linux).

@alaviss
Copy link
Collaborator

alaviss commented Oct 20, 2020

This is weird, how did you install Nim?

@shassard
Copy link
Author

Installed via choosenim on linux.
It seems like this is the issue:
dom96/choosenim#235

@dawkot
Copy link

dawkot commented Oct 20, 2020

Yeah, I just noticed it does the same with 1.2.8 on choosenim, but not with 1.4.0 downloaded manually.

@shassard
Copy link
Author

I'll close this issue since it's related to choosenim.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants