GtkIDE.jl icon indicating copy to clipboard operation
GtkIDE.jl copied to clipboard

is_linux not defined

Open lapisdecor opened this issue 5 years ago • 10 comments

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

lapisdecor avatar Mar 08 '19 18:03 lapisdecor

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.

jonathanBieler avatar Mar 09 '19 15:03 jonathanBieler

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

lapisdecor avatar Mar 10 '19 20:03 lapisdecor

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

jonathanBieler avatar Mar 11 '19 09:03 jonathanBieler

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

lapisdecor avatar Mar 11 '19 10:03 lapisdecor

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.

jonathanBieler avatar Mar 11 '19 13:03 jonathanBieler

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 avatar Mar 11 '19 18:03 lapisdecor

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"

lapisdecor avatar Mar 11 '19 18:03 lapisdecor

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.

jonathanBieler avatar Mar 12 '19 10:03 jonathanBieler

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

lapisdecor avatar Mar 12 '19 10:03 lapisdecor

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.

jonathanBieler avatar Mar 12 '19 13:03 jonathanBieler