GenieFramework / GenieFramework/StippleDemos
Basic examples - Hello Pie
- Dominant language
- HTML
- Stars
- 50
- Forks
- 29
- PR merge metrics
- No merged PRs in 30d
Description
Hi.
I've gone through most of the basic examples now, getting them to work and looking at the code. I could not get Hello Pie to work, and haven't been able to find the issue in the code. A few lines from the error I am getting:
```
MethodError: Cannot `convert` an object of type Char to an object of type AbstractString
│ Closest candidates are:
│ convert(::Type{T}, !Matched::StringEncodings.Encodings.Encoding{enc}) where {T<:AbstractString, enc} at C:\Users\Emile\.julia\packages\StringEncodings\hHXRr\src\encodings.jl:17
│ convert(::Type{T}, !Matched::T) where T<:AbstractString at strings/basic.jl:231
│ convert(::Type{T}, !Matched::AbstractString) where T<:AbstractString at strings/basic.jl:232
│ ...
│ Stacktrace:
│ [1] setindex!(A::Vector{AbstractString}, x::Char, i1::Int64)
│ @ Base .\array.jl:843
│ [2] _append!
│ @ .\array.jl:995 [inlined]
│ [3] append!(a::Vector{AbstractString}, iter::NTuple{156, Char})
│ @ Base .\array.jl:985
│ [4] push!(::Vector{AbstractString}, ::Char, ::Char, ::Char, ::Char, ::Char, ::Vararg{Char, N} where N)
│ @ Base .\array.jl:986
│ [5] deps(channel::String; core_theme::Bool)
│ @ Stipple C:\Users\Emile\.julia\packages\Stipple\5LJ49\src\Stipple.jl:1152
│ [6] layout(output::Vector{AbstractString}; partial::Bool, title::String, class::String, style::String, head_content::String, channel::String, core_theme::Bool)
│ @ Stipple.Layout C:\Users\Emile\.julia\packages\Stipple\5LJ49\src\Layout.jl:47
│ [7] page(elemid::String, args::Vector{ParsedHTMLString}; partial::Bool, title::String, class::String, style::String, channel::String, head_content::String, prepend::String, append::Vector{Any}, core_theme::Bool, kwargs::Base.Iterators.Pairs{Union{}, Union{}, Tuple{}, NamedTuple{(), Tuple{}}})
│ @ Stipple.Layout C:\Users\Emile\.julia\packages\Stipple\5LJ49\src\Layout.jl:89
│ [8] #page#3
│ @ C:\Users\Emile\.julia\packages\Stipple\5LJ49\src\Layout.jl:99 [inlined]
│ [9] ui(model::HelloPie)
│ @ Main c:\Users\Emile\Desktop\Dash2\stipple\HelloPie.jl:36
│ [10] |>
│ @ .\operators.jl:858 [inlined]
│ [11] (::var"#22#23")()
│ @ Main c:\Users\Emile\Desktop\Dash2\stipple\HelloPie.jl:68
```
and there's more going all the way to [28]. Would this be an issue with the packages I have installed or is there a variable name misspelled in the code or something else I cannot find?
Thanks very much.
Contributor guide
No contributing guide indexed for this repository
Research direction
Run the Hello Pie example and start at HelloPie.jl lines 36 and 68, where the stack trace enters ui and the caller. Then inspect Stipple.jl deps at line 1152 and the related Layout calls. Done means the example starts without the reported Char-to-AbstractString MethodError.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- julia
- Domain
- web-dev
- Issue type
- Bug
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 25/100