evhub / coconut

Simple, elegant, Pythonic functional programming.
http://coconut-lang.org
Apache License 2.0
4.09k stars 125 forks source link

Cannot access hidden directories on linux in xonsh #726

Closed caedmon-kitty closed 1 year ago

caedmon-kitty commented 1 year ago

coconut version 2.2.0 xonsh version 0.13.4 coconut installed using pip - pip install -U coconut

Attempts to reference directories beginning with a '.' character (linux hidden directories) results in an error. ⇨ cd .local cd: no such file or directory: .l

⇨ cp .xonshrc.now .xonshrc cp: missing destination file operand after '.xonshrc.now' Try 'cp --help' for more information.

xontrib unload coconut does not solve the problem. xonsh --no-rc does not solve the problem xontrib unload coconut does not solve the problem. The only fix is to comment out the call to CoconutXontribLoader() in coconut/integrations.py

As a work around is it possible to not auto load coconut on xonsh startup but be able to xontrib load is if needed?

evhub commented 1 year ago

Fixed on coconut-develop>=3.0.0-a_dev22 (pip uninstall coconut and pip install -U coconut-develop>=3.0.0-a_dev22 to get the fix). xontrib unload coconut should also be working on coconut-develop as of #724.

As a work around is it possible to not auto load coconut on xonsh startup but be able to xontrib load is if needed?

This is how it used to work, but for some reason on the newest major version of xonsh doing it that way doesn't seem to work anymore and I'm not sure why. Feel free to open another issue for this.