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

CxxREPL not working? #63

Closed
mturok opened this issue Jan 6, 2015 · 5 comments
Closed

CxxREPL not working? #63

mturok opened this issue Jan 6, 2015 · 5 comments

Comments

@mturok
Copy link

mturok commented Jan 6, 2015

Hi folks,

Not sure if the replpane is ready for prime-time yet, but I'm seeing the following errors when trying it. Once again, thanks in advance.

First up, I'm running julia within emacs, and then with an xterm. (Note that since I did a fresh build of julia, I now see the warning message "WARNING: Terminal not fully functional" - and I'm not yet sure about the ::gets error message).

I include versioninfo(true) at the end, as well as the git log -1 for Cxx itself.

First from emacs:

               _
   _       _ _(_)_     |  A fresh approach to technical computing
  (_)     | (_) (_)    |  Documentation: http://docs.julialang.org
   _ _   _| |_  __ _   |  Type "help()" for help.
  | | | | | | |/ _' |  |
  | | |_| | | | (_| |  |  Version 0.4.0-dev+2514 (2015-01-05 22:41 UTC)
 _/ |\__'_|_|_|\__'_|  |  Commit 51976a3 (1 day old master)
|__/                   |  x86_64-linux-gnu

WARNING: Terminal not fully functional
julia> 
julia> using Cxx
Warning: requiring "Cxx" did not define a corresponding module.

julia> include(joinpath(Pkg.dir("Cxx"), "src/CxxREPL/replpane.jl"))
In file included from :1:
In file included from __cxxjl_0.cpp:6:
In file included from /home/mturok/src/julia/usr/bin/../../usr/include/clang/Parse/Parser.h:17:
In file included from /home/mturok/src/julia/usr/bin/../../usr/include/clang/Basic/OpenMPKinds.h:18:
In file included from /home/mturok/src/julia/usr/bin/../../usr/include/llvm/ADT/StringRef.h:13:
In file included from /usr/lib/gcc/x86_64-linux-gnu/4.8/../../../../include/c++/4.8/algorithm:62:
In file included from /usr/lib/gcc/x86_64-linux-gnu/4.8/../../../../include/c++/4.8/bits/stl_algo.h:65:
In file included from /usr/lib/gcc/x86_64-linux-gnu/4.8/../../../../include/c++/4.8/random:39:
/usr/lib/gcc/x86_64-linux-gnu/4.8/../../../../include/c++/4.8/cstdio:120:11: error: no member named 'gets' in the global namespace
  using ::gets;
        ~~^
ERROR: type BasicREPL has no field interface
 in include at ./boot.jl:248
 in include_from_node1 at ./loading.jl:128
 in print at ./string.jl
while loading /home/mturok/.julia/v0.4/Cxx/src/CxxREPL/replpane.jl, in expression starting on line 144

And from an xterm:

mturok@mturok-xubuntu:~$ src/julia/usr/bin/julia
               _
   _       _ _(_)_     |  A fresh approach to technical computing
  (_)     | (_) (_)    |  Documentation: http://docs.julialang.org
   _ _   _| |_  __ _   |  Type "help()" for help.
  | | | | | | |/ _` |  |
  | | |_| | | | (_| |  |  Version 0.4.0-dev+2514 (2015-01-05 22:41 UTC)
 _/ |\__'_|_|_|\__'_|  |  Commit 51976a3 (1 day old master)
|__/                   |  x86_64-linux-gnu

julia> using Cxx
Warning: requiring "Cxx" did not define a corresponding module.

julia> include(joinpath(Pkg.dir("Cxx"), "src/CxxREPL/replpane.jl"))
In file included from :1:
In file included from __cxxjl_0.cpp:6:
In file included from /home/mturok/src/julia/usr/bin/../../usr/include/clang/Parse/Parser.h:17:
In file included from /home/mturok/src/julia/usr/bin/../../usr/include/clang/Basic/OpenMPKinds.h:18:
In file included from /home/mturok/src/julia/usr/bin/../../usr/include/llvm/ADT/StringRef.h:13:
In file included from /usr/lib/gcc/x86_64-linux-gnu/4.8/../../../../include/c++/4.8/algorithm:62:
In file included from /usr/lib/gcc/x86_64-linux-gnu/4.8/../../../../include/c++/4.8/bits/stl_algo.h:65:
In file included from /usr/lib/gcc/x86_64-linux-gnu/4.8/../../../../include/c++/4.8/random:39:
/usr/lib/gcc/x86_64-linux-gnu/4.8/../../../../include/c++/4.8/cstdio:120:11: error: no member named 'gets' in the global namespace
  using ::gets;
        ~~^

WARNING: deprecated syntax "{a=>b, ...}" at /home/mturok/.julia/v0.4/Cxx/src/CxxREPL/replpane.jl:163.
Use "Dict{Any,Any}(a=>b, ...)" instead.
Dict{Char,Any} with 36 entries:
  '\x1e' => nothing
  '\x12' => (anonymous function)
  '\x02' => (anonymous function)
  '\x10' => (anonymous function)
  '\v'   => (anonymous function)
  '\x15' => (anonymous function)
  '\x1a' => (anonymous function)
  '\a'   => nothing
  '\x19' => (anonymous function)
  '\t'   => (anonymous function)
  '\n'   => Base.LineEdit.KeyAlias("\r")
  '\x1d' => nothing
  '\0'   => (anonymous function)
  '<'    => (anonymous function)
  '\x13' => (anonymous function)
  '\x11' => nothing
  ';'    => (anonymous function)
  '\b'   => (anonymous function)
  '\x16' => nothing
  ⋮      => ⋮

julia>

And the version information:

julia> versioninfo(true)
Julia Version 0.4.0-dev+2514
Commit 51976a3 (2015-01-05 22:41 UTC)
Platform Info:
  System: Linux (x86_64-linux-gnu)
  CPU: Intel(R) Core(TM) i7-4770 CPU @ 3.40GHz
  WORD_SIZE: 64
           Ubuntu 14.04.1 LTS
  uname: Linux 3.13.0-43-generic #72-Ubuntu SMP Mon Dec 8 19:35:06 UTC 2014 x86_64 x86_64
Memory: 7.798191070556641 GB (386.73828125 MB free)
Uptime: 87251.0 sec
Load Avg:  0.13427734375  0.0859375  0.056640625
Intel(R) Core(TM) i7-4770 CPU @ 3.40GHz: 
       speed         user         nice          sys         idle          irq
#1  3258 MHz     546846 s        648 s     194286 s    7818837 s         14 s
#2  3258 MHz     474251 s        828 s     183338 s    7897539 s          0 s

  BLAS: libopenblas (USE64BITINT DYNAMIC_ARCH NO_AFFINITY Nehalem)
  LAPACK: libopenblas
  LIBM: libopenlibm
  LLVM: libLLVM-svn
Environment:
  TERM = dumb
  GLADE_CATALOG_PATH = :
  XDG_SESSION_PATH = /org/freedesktop/DisplayManager/Session0
  GLADE_PIXMAP_PATH = :
  PATH = /home/mturok/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games
  DEFAULTS_PATH = /usr/share/gconf/xubuntu.default.path
  MANDATORY_PATH = /usr/share/gconf/xubuntu.mandatory.path
  GLADE_MODULE_PATH = :
  XDG_SEAT_PATH = /org/freedesktop/DisplayManager/Seat0
  HOME = /home/mturok

Package Directory: /home/mturok/.julia/v0.4
15 required packages:
 - BinDeps                       0.3.7
 - Bokeh                         0.0.1
 - DataFrames                    0.6.0
 - Debug                         0.0.4
 - Distributions                 0.6.3
 - GLM                           0.4.2
 - GraphViz                      0.0.3
 - IJulia                        0.1.16
 - JSON                          0.4.0
 - LibBSON                       0.1.2
 - Memoize                       0.0.0
 - Mongo                         0.1.0
 - ODBC                          0.3.10
 - Pandas                        0.2.0
 - PyPlot                        1.5.0
22 additional packages:
 - ArrayViews                    0.4.8
 - Color                         0.3.15
 - Compat                        0.2.8
 - Cxx                           0.0.0-             master (unregistered)
 - DataArrays                    0.2.7              e5391941 (dirty)
 - Dates                         0.4.4
 - FixedPointNumbers             0.0.6
 - GZip                          0.2.13
 - LaTeXStrings                  0.1.2
 - Mustache                      0.0.6
 - Nettle                        0.1.7
 - NumericExtensions             0.6.2
 - NumericFuns                   0.2.3
 - PDMats                        0.3.1
 - PyCall                        0.7.3
 - REPLCompletions               0.0.3
 - Reexport                      0.0.2
 - SHA                           0.0.3
 - SortingAlgorithms             0.0.2
 - StatsBase                     0.6.10
 - URIParser                     0.0.3
 - ZMQ                           0.1.15

julia> 

And here is the specific revision of Cxx I'm using....

mturok@mturok-xubuntu:~/.julia/v0.4/Cxx$ git log -1
commit 6838b0c918d30b5345e092b8ac66f694055a7e5e
Author: Keno Fischer <kfischer@college.harvard.edu>
Date:   Sun Jan 4 15:51:01 2015 +0100

    Cxx.jl is dead - long live Cxx.jl

    Remove the code from the first iteration of this package.
    It is long outdated, doesn't work anymore and never had as
    many features as the current version.
@mturok mturok changed the title CxxREPL not working CxxREPL not working? Jan 6, 2015
@jakebolewski
Copy link
Contributor

You have to use this branch.

@Keno
Copy link
Collaborator

Keno commented Jan 7, 2015

You shouldn't have to. In fact, the xterm version looks fine so far. @mturok what happens when you press <?

@mturok
Copy link
Author

mturok commented Jan 7, 2015

@Keno - the xterm was fine. I just didn't realize I had to press "<". This is great!

But on the emacs side: not sure if I need to get a more recent version of julia-mode.el (I'm using version 0-.3). The warning about the terminal is a new one, only showing up when I rebuilt julia from source yesterday.

Michael

@Keno Keno closed this as completed Jun 27, 2015
@antoine-levitt
Copy link

I get the same error using emacs: ERROR: LoadError: type BasicREPL has no field interface.

@obadz
Copy link

obadz commented Feb 25, 2018

Just got this error in Atom, was told to put this in my atom init script & it worked!

process.env["TERM"] = "xterm"

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

5 participants