JuliaGizmos / Vue.jl

a Julia wrapper for Vue.js
Other
21 stars 8 forks source link

Unable to Pkg.add("Vue") #12

Open milesfrain opened 5 years ago

milesfrain commented 5 years ago

I'm guessing this a compatibility issue with Julia 1.0.0+. I'm on Julia 1.1.0.

julia> Pkg.add("Vue")                                                                                                                       
  Updating registry at `~/.julia/registries/General`                                                                                        
  Updating git-repo `https://github.com/JuliaRegistries/General.git`                                                                        
 Resolving package versions...                                                                                                              
ERROR: Unsatisfiable requirements detected for package Vue [147f7a91]:                                                                      
 Vue [147f7a91] log:                                                                                                                        
 ├─possible versions are: 0.1.0 or uninstalled
 ├─restricted to versions * by an explicit requirement, leaving only versions 0.1.0
 └─restricted by julia compatibility requirements to versions: uninstalled — no versions left
milesfrain commented 5 years ago

This issue affects InteractNext https://github.com/JuliaGizmos/InteractNext.jl/issues/21

Rednas83 commented 5 years ago

You can also use include I think

# Packages
using WebIO
#using JSExpr
include("..\\Lib\\JSExpr.jl") 
# using Vue
include("..\\Lib\\Vue.jl") 

template = dom"p[v-if=visible]"("{{message}}")
Vue.vue(template, [:message=>"hello", :visible=>true])

Still 2 warnings and 1 error though

┌ Warning: newid(prefix) is deprecated. Scopes don't need this anymore. To get the scope's id, use scopeid(scope) │ caller = ip:0x0 └ @ Core :-1 ┌ Warning: Scope(id; kwargs...) is deprecated, use Scope(kwargs...) instead. │ caller = ip:0x0 └ @ Core :-1 ERROR: LoadError: MethodError: no method matching iterate(::typeof(values)) Stacktrace: [1] iterate at .\generator.jl:44 [inlined] [2] collect(::Base.Generator{typeof(values),typeof(JSExpr.jsexpr)}) at .\array.jl:606 [3] map(::Function, ::Function) at .\abstractarray.jl:2044 [4] #vue#1(::Base.Iterators.Pairs{Union{},Union{},Tuple{},NamedTuple{(),Tuple{}}}, ::Function, ::Node{WebIO.DOM}, ::Array{Pair{Symbol,Any},1}) at c:\Cloud Files\Projecten\Generator\Lib\Vue.jl:69 [5] vue(::Node{WebIO.DOM}, ::Array{Pair{Symbol,Any},1}) at c:\Cloud Files\Projecten\Generator\Lib\Vue.jl:26 [6] top-level scope at none:0 [7] include at .\boot.jl:326 [inlined] [8] include_relative(::Module, ::String) at .\loading.jl:1038 [9] include(::Module, ::String) at .\sysimg.jl:29 [10] exec_options(::Base.JLOptions) at .\client.jl:267 [11] _start() at .\client.jl:436

Was someone able to fix this?