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

is_linux not defined #17

Open
lapisdecor opened this issue Mar 8, 2019 · 10 comments
Open

is_linux not defined #17

lapisdecor opened this issue Mar 8, 2019 · 10 comments

Comments

@lapisdecor
Copy link

pkg> add https://github.com/jonathanBieler/GtkSourceWidget.jl.git
  Updating registry at `~/.julia/registries/General`
  Updating git-repo `https://github.com/JuliaRegistries/General.git`
   Cloning git-repo `https://github.com/jonathanBieler/GtkSourceWidget.jl.git`
  Updating git-repo `https://github.com/jonathanBieler/GtkSourceWidget.jl.git`
 Resolving package versions...
  Updating `~/teste/GtkIDE/Project.toml`
  [c2b0df9c] ~ GtkSourceWidget v0.1.0 [`~/.julia/dev/GtkSourceWidget`] ⇒ v0.1.0 #master (https://github.com/jonathanBieler/GtkSourceWidget.jl.git)
  Updating `~/teste/GtkIDE/Manifest.toml`
  [c2b0df9c] ~ GtkSourceWidget v0.1.0 [`~/.julia/dev/GtkSourceWidget`] ⇒ v0.1.0 #master (https://github.com/jonathanBieler/GtkSourceWidget.jl.git)
  Building GtkSourceWidget → `~/.julia/packages/GtkSourceWidget/upzqB/deps/build.log`
┌ Error: Error building `GtkSourceWidget`: 
│ ERROR: LoadError: LoadError: UndefVarError: is_linux not defined
│ Stacktrace:
│  [1] top-level scope at none:0
│  [2] eval at ./boot.jl:328 [inlined]
│  [3] @static(::LineNumberNode, ::Module, ::Any) at ./osutils.jl:19
│  [4] include at ./boot.jl:326 [inlined]
│  [5] include_relative(::Module, ::String) at ./loading.jl:1038
│  [6] include(::Module, ::String) at ./sysimg.jl:29
│  [7] include(::String) at ./client.jl:403
│  [8] top-level scope at none:0
│ in expression starting at /home/luis/.julia/packages/GtkSourceWidget/upzqB/deps/build.jl:2
│ in expression starting at /home/luis/.julia/packages/GtkSourceWidget/upzqB/deps/build.jl:2
│ checking for libgtksourceview...
└ @ Pkg.Operations /buildworker/worker/package_linux64/build/usr/share/julia/stdlib/v1.1/Pkg/src/Operations.jl:1075

@jonathanBieler
Copy link
Owner

Hey, the README is a bit outdated, I need to update it. GtkSourceWidget is here now:

https://github.com/JuliaGtk/GtkSourceWidget.jl

There's probably some other issues (you might need the master branch of some packages) but I don't remember exactly. If you want to test it out though it would be useful, you can report other problems here.

@lapisdecor
Copy link
Author

Hey! All were good except the last:

(GtkIDE) pkg> add https://github.com/jonathanBieler/GtkIDE.jl.git
   Cloning git-repo `https://github.com/jonathanBieler/GtkIDE.jl.git`
  Updating git-repo `https://github.com/jonathanBieler/GtkIDE.jl.git`
[ Info: Assigning UUID 82283703-ee88-5a75-b6ba-9c1244a37d65 to GtkIDE
 Resolving package versions...
ERROR: Unsatisfiable requirements detected for package ConfParser [88353bc9]:
 ConfParser [88353bc9] log:
 ├─possible versions are: 0.0.1-0.0.9 or uninstalled
 ├─restricted to versions 0.0.0-* by GtkIDE [82283703], leaving only versions 0.0.1-0.0.9
 │ └─GtkIDE [82283703] log:
 │   ├─possible versions are: 0.0.0 or uninstalled
 │   └─GtkIDE [82283703] is fixed to version 0.0.0
 └─restricted by julia compatibility requirements to versions: uninstalled — no versions left

@jonathanBieler
Copy link
Owner

I just made a new release for ConfParser but in the meanwhile ]add ConfParser#master should do the trick.

@lapisdecor
Copy link
Author

After using GtkIDE I get:
...
ERROR: LoadError: ArgumentError: Package Immerse does not have Cairo in its dependencies:

  • If you have Immerse checked out for development and have
    added Cairo as a dependency but haven't updated your primary
    environment's manifest file, try Pkg.resolve().
  • Otherwise you may need to report an issue with Immerse
    Stacktrace:
    [1] require(::Module, ::Symbol) at ./loading.jl:836
    [2] include at ./boot.jl:326 [inlined]
    [3] include_relative(::Module, ::String) at ./loading.jl:1038
    [4] include(::Module, ::String) at ./sysimg.jl:29
    [5] top-level scope at none:2
    [6] eval at ./boot.jl:328 [inlined]
    [7] eval(::Expr) at ./client.jl:404
    [8] top-level scope at ./none:3
    in expression starting at /home/luis/.julia/packages/Immerse/XTxHV/src/Immerse.jl:9
    ERROR: LoadError: Failed to precompile Immerse [2a4eff87-6e1e-5ceb-a32e-3bc6a5c2833f] to /home/luis/.julia/compiled/v1.1/Immerse/WbzqP.ji.
    Stacktrace:
    [1] error(::String) at ./error.jl:33
    [2] compilecache(::Base.PkgId, ::String) at ./loading.jl:1197
    [3] _require(::Base.PkgId) at ./loading.jl:960
    [4] require(::Base.PkgId) at ./loading.jl:858
    [5] require(::Module, ::Symbol) at ./loading.jl:853
    [6] include at ./boot.jl:326 [inlined]
    [7] include_relative(::Module, ::String) at ./loading.jl:1038
    [8] include(::Module, ::String) at ./sysimg.jl:29
    [9] top-level scope at none:2
    [10] eval at ./boot.jl:328 [inlined]
    [11] eval(::Expr) at ./client.jl:404
    [12] top-level scope at ./none:3
    in expression starting at /home/luis/.julia/packages/GtkIDE/K7fQ3/src/GtkIDE.jl:10
    ERROR: Failed to precompile GtkIDE [82283703-ee88-5a75-b6ba-9c1244a37d65] to /home/luis/.julia/compiled/v1.1/GtkIDE/ZY0Pb.ji.
    Stacktrace:
    [1] error(::String) at ./error.jl:33
    [2] compilecache(::Base.PkgId, ::String) at ./loading.jl:1197
    [3] _require(::Base.PkgId) at ./loading.jl:960
    [4] require(::Base.PkgId) at ./loading.jl:858
    [5] require(::Module, ::Symbol) at ./loading.jl:853

@jonathanBieler
Copy link
Owner

jonathanBieler commented Mar 11, 2019

This I don't get, Immerse does have Cairo in its dependencies:

https://github.com/JuliaGraphics/Immerse.jl/blob/master/REQUIRE#L8

I think doing ]add Cairo should solve the issue but not 100% sure.

@lapisdecor
Copy link
Author

It loaded the GtkIDE window, with nothing on it, and gave this error:

(julia:4722): Gtk-CRITICAL **: 18:08:14.983: gtk_tree_store_set_value: assertion 'VALID_ITER (iter, tree_store)' failed
┌ Warning: Duplicate Julia object creation detected for GObject
└ @ Gtk.GLib ~/.julia/packages/Gtk/RwVPb/src/GLib/gtype.jl:470
┌ Warning: Duplicate Julia object creation detected for GObject
└ @ Gtk.GLib ~/.julia/packages/Gtk/RwVPb/src/GLib/gtype.jl:470
┌ Warning: Duplicate Julia object creation detected for GObject
└ @ Gtk.GLib ~/.julia/packages/Gtk/RwVPb/src/GLib/gtype.jl:470
┌ Warning: Duplicate Julia object creation detected for GObject
└ @ Gtk.GLib ~/.julia/packages/Gtk/RwVPb/src/GLib/gtype.jl:470
ERROR: LoadError: InitError: ArgumentError: Package GtkREPL does not have Gadfly in its dependencies:

  • If you have GtkREPL checked out for development and have
    added Gadfly as a dependency but haven't updated your primary
    environment's manifest file, try Pkg.resolve().
  • Otherwise you may need to report an issue with GtkREPL
    Stacktrace:
    [1] require(::Module, ::Symbol) at ./loading.jl:836
    [2] top-level scope at /home/luis/.julia/packages/GtkREPL/dBWAY/src/GtkREPL.jl:54
    [3] eval at ./boot.jl:328 [inlined]
    [4] gadfly() at /home/luis/.julia/packages/GtkREPL/dBWAY/src/GtkREPL.jl:53
    [5] init() at /home/luis/.julia/packages/GtkIDE/K7fQ3/src/init.jl:167
    [6] include at ./boot.jl:326 [inlined]
    [7] include_relative(::Module, ::String) at ./loading.jl:1038
    [8] _require(::Base.PkgId) at ./loading.jl:986
    [9] require(::Base.PkgId) at ./loading.jl:858
    [10] require(::Module, ::Symbol) at ./loading.jl:853
    during initialization of module GtkIDE
    in expression starting at /home/luis/.julia/packages/GtkIDE/K7fQ3/src/GtkIDE.jl:58

@lapisdecor
Copy link
Author

lapisdecor commented Mar 11, 2019

By the way I noticed you have a REQUIRE file, but I did nothing to install those. Not sure how to do it or if they should be installed by using the package. I'm on Julia v"1.1.0"

@jonathanBieler
Copy link
Owner

jonathanBieler commented Mar 12, 2019

Gadfly is supposed to be an optional dependency to GtkREPL, but that doesn't work anymore like in v0.6. I've added it as a dependency, if you do ]up you should get the last version. Also ]add Gadfly might not hurt.

Anyway thanks for debugging this, I should really add tests on travis for it, I think I have all the info I need now.

@lapisdecor
Copy link
Author

You are welcome.
It now works. I really wanted a save file button though. :-)

@jonathanBieler
Copy link
Owner

Cool, the interface is a bit minimalist indeed, I even do GtkIDE.visible(GtkIDE.main_window.menubar,false) to remove the menus.

Note that zooming on plots also make it crash, it's a bug in Gtk I need to push a fix for.

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

2 participants