Skip to content

Commit

Permalink
Merge pull request #1 from compleathorseplayer/no-analysis
Browse files Browse the repository at this point in the history
Merge non reactive stuff with master
  • Loading branch information
Sov-trotter committed Dec 21, 2020
2 parents e3a9b97 + be23140 commit d164168
Show file tree
Hide file tree
Showing 6 changed files with 12 additions and 149 deletions.
80 changes: 0 additions & 80 deletions .github/workflows/FrontendTest.yml

This file was deleted.

19 changes: 0 additions & 19 deletions .github/workflows/TagBot.yml

This file was deleted.

47 changes: 0 additions & 47 deletions .github/workflows/Test.yml

This file was deleted.

8 changes: 5 additions & 3 deletions src/analysis/ExpressionExplorer.jl
Expand Up @@ -882,11 +882,12 @@ function compute_symbolreferences(ex::Any)::SymbolsState
end

function try_compute_symbolreferences(ex::Any)::SymbolsState
try
try
error()
compute_symbolreferences(ex)
catch e
@error "Expression explorer failed on: " ex
showerror(stderr, e, stacktrace(catch_backtrace()))
# @error "Expression explorer failed on: " ex
# showerror(stderr, e, stacktrace(catch_backtrace()))
SymbolsState(references=Set{Symbol}([:fake_reference_to_prevent_it_from_looking_like_a_text_only_cell]))
end
end
Expand Down Expand Up @@ -927,6 +928,7 @@ get_rootassignee(ex::Any, recuse::Bool=true)::Union{Symbol,Nothing} = nothing

"Is this code simple enough that we can wrap it inside a function to boost performance? Look for [`PlutoRunner.Computer`](@ref) to learn more."
function can_be_function_wrapped(x::Expr)
return false
if x.head === :global || # better safe than sorry
x.head === :using ||
x.head === :import ||
Expand Down
3 changes: 3 additions & 0 deletions src/runner/PlutoRunner.jl
Expand Up @@ -43,6 +43,9 @@ ObjectDimPair = Tuple{ObjectID,Int64}
current_module = Main

function set_current_module(newname)
if current_module !== Main
return
end
# Revise.jl support
if isdefined(current_module, :Revise) &&
isdefined(current_module.Revise, :revise) && current_module.Revise.revise isa Function &&
Expand Down
4 changes: 4 additions & 0 deletions src/webserver/WebServer.jl
Expand Up @@ -119,6 +119,10 @@ end
Specifiy the [`Pluto.ServerSession`](@ref) to run the web server on, which includes the configuration. Passing a session as argument allows you to start the web server with some notebooks already running. See [`SessionActions`](@ref) to learn more about manipulating a `ServerSession`.
"""
function run(session::ServerSession)
@warn """
This non-reactive version of Pluto is only meant as a one-time experiment.
"""

pluto_router = http_router_for(session)
host = session.options.server.host
port = session.options.server.port
Expand Down

0 comments on commit d164168

Please sign in to comment.