Comments (13)
Maybe some escape-chars aren't "closed" normally or some output is already colored and stripped...
Try to execute (aprint 1)
for example.
Please, provide sample data (better if it will be a file, not copypaste) and screenshot.
You also can switch off the color temporally as it's mentioned in readme
from aprint.
Redirecting (ap 1) to a file gives me:
^[[34m1^[[0m
Does it help?
from aprint.
Nope. it's correct ^[[0m
is the code to reset color in terminal. it could help if you're not seeing anything. It should terminate any colored string just like a bracket.
I asked for the case to reproduce the problem.
from aprint.
Also, it may be helpful to know that the problem occurs only after I close the REPL. If I run cat myfile
(where myfile
is where I redirected aprint output) it works fine, printing a colored 1 and keeping my terminal working properly. If I do lein run -m my-func
, this also prints a colored 1 and keeps my terminal working properly. So the problem is only after running in the REPL.
from aprint.
Can you please provide a sample application that reproduces the error?
from aprint.
Sure. It is very simple:
$ cat src/my_test/core.clj
(ns my-test.core
(:require [aprint.core]))
(defn my-aprint []
(aprint.core/aprint 123))
$ lein run -m my-test.core/my-aprint
123
------> at this point everything still works fine
$ lein repl
user=> (require 'my-test.core)
nil
user=> (my-test.core/my-aprint)
123
nil
user=> Bye for now!
------> at this point, everything I type in the terminal is invisible
I have tested it on Linux now and it works perfectly. It seems to be some incompatibility with Mac OS.
from aprint.
I think you should check your terminal settings, its colorscheme and probably, shell...
I cannot reproroduce your issue on mac10.9
in iterm2 (my default) - http://take.ms/J4T61
in terminal with my zsh config - http://take.ms/ZHapn
in default terminal with default bash - http://take.ms/oXw7m
You can also try to setup environment like mine if you like :)
i use https://github.com/skwp/dotfiles with some clojurish vim plugins
from aprint.
I have tried in Terminal and iTerm2 in two computers here and both have this problem. Unfortunately I did not find any settings that could solve this. I will tell you if I discover anything new. Thanks for your efforts!
from aprint.
@maurolopes if you like, you can setup a vm image and send it to me.
osx works in parallels and afaik in virtualbox too, but I understand it's not as easy as for linux distro
from aprint.
Last login: Sun Sep 28 22:30:20 on ttys005
192:test tao$ lein repl
nREPL server started on port 60609 on host 127.0.0.1 - nrepl://127.0.0.1:60609
REPL-y 0.3.1
Clojure 1.6.0
Docs: (doc function-name-here)
(find-doc "part-of-name-here")
Source: (source function-name-here)
Javadoc: (javadoc java-object-or-class-here)
Exit: Control+D or (exit) or (quit)
Results: Stored in vars *1, *2, *3, an exception in *e
test.core=> (use 'aprint.core)
nil
test.core=> (aprint {:I ["heard" {:you "like"} {:nifty "tools"} {:very "muuuuuuuuuuuuuuuuuuuch"}], :so ["I" 'made '("something" 4 "you")]})
{:I ["heard"
{:you "like"}
{:nifty "tools"}
{:very "muuuuuuuuuuuuuuuuuuuch"}],
:so ["I" made ("something" 4 "you")]}
nil
test.core=> Bye for now!
192:test tao$ 192:test tao$ 192:test tao$ 192:test tao$ 192:test tao$ 192:test tao$ 192:test tao$ 192:test tao$ 192:test tao$ 192:test tao$
OS: OS X 10.9.5
Terminal: Version 2.4 (326) Copyright © 1991-2013 Apple Inc. All rights reserved.
I use the example in your project’s README.md. You can see, I only used aprint.
from aprint.
strange.. feel like I need a fresh virtual osx installation and will give it a try there, will inform you about progress
from aprint.
I am also experiencing this issue. On OS X Yosemite (10.10.1); iTerm2 Build 2.0.0.20141103. For me the behavior was specifically triggered after making an aprint
function call; the require
for aprint.core
doesn't introduce any problems, nor does the dependency being present (obvz).
from aprint.
I also ran into this when I repeated calling read-line
and aprint
to build my own REPL.
from aprint.
Related Issues (5)
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from aprint.