Giter Club home page Giter Club logo

docseeker.jl's People

Contributors

aviatesk avatar juliatagbot avatar pfitzseb avatar philipvinc avatar rafaqz avatar visr avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar

docseeker.jl's Issues

Bump StringDistances?

Is it possible to use the latest version of StringDistances (currently v0.10.0)?
Among others, it would allow Atom to coexist in same environments using latest StringDistances

database not created

Hello,

I am trying to use this package in julia v1.0. When I run

using DocSeeker
DocSeeker.generatedocsdb()

nothing happens.
Looking in the path reported by
DocSeeker.dbpath
there is no database created.
If I run
DocSeeker._createdocsdb("DocSeeker.jl")
I get this error:

ERROR: UndefVarError: serialize not defined
Stacktrace:
[1] (::getfield(DocSeeker, Symbol("##28#30")))(::IOStream) at C:\Users\Miguel.julia\packages\DocSeeker\PZWMc\src\static.jl:54
[2] #open#294(::Base.Iterators.Pairs{Union{},Union{},Tuple{},NamedTuple{(),Tuple{}}}, ::Function, ::getfield(DocSeeker, Symbol("##28#30")), ::String, ::Vararg{String,N} where N) at .\iostream.jl:369
[3] open at .\iostream.jl:367 [inlined]
[4] _createdocsdb(::String) at C:\Users\Miguel.julia\packages\DocSeeker\PZWMc\src\static.jl:53
[5] top-level scope at none:0

However, if I load package Compat, the same command gives the error

ERROR: EOFError: read end of file
Stacktrace:
[1] read at .\iostream.jl:395 [inlined]
[2] deserialize at C:\cygwin\home\Administrator\buildbot\worker\package_win64\build\usr\share\julia\stdlib\v1.0\Serialization\src\Serialization.jl:703 [inlined]
[3] deserialize(::IOStream) at C:\cygwin\home\Administrator\buildbot\worker\package_win64\build\usr\share\julia\stdlib\v1.0\Serialization\src\Serialization.jl:700
[4] #27 at C:\Users\Miguel.julia\packages\DocSeeker\PZWMc\src\static.jl:48 [inlined]
[5] #open#294(::Base.Iterators.Pairs{Union{},Union{},Tuple{},NamedTuple{(),Tuple{}}}, ::Function, ::getfield(DocSeeker, Symbol("##27#29")), ::String, ::Vararg{String,N} where N) at .\iostream.jl:369
[6] open at .\iostream.jl:367 [inlined]
[7] _createdocsdb(::String) at C:\Users\Miguel.julia\packages\DocSeeker\PZWMc\src\static.jl:46
[8] top-level scope at none:0

Error when searching in Documentation tab of Juno

In Documentation tab of Juno, I typed @printf and received this error in REPL tab:

Julia-1.2.0> ┌ Warning: `compare(dist::PreMetric, s1::AbstractString, s2::AbstractString)` is deprecated, use `compare(s1, s2, dist)` instead.│   caller = score(::String, ::DocSeeker.DocObj, ::Bool) at DocSeeker.jl:46└ @ DocSeeker C:\Users\Greg\.julia\packages\DocSeeker\PZWMc\src\DocSeeker.jl:46┌ Warning: `compare(dist::PreMetric, s1::AbstractString, s2::AbstractString)` is deprecated, use `compare(s1, s2, dist)` instead.       │   caller = score(::String, ::DocSeeker.DocObj, ::Bool) at DocSeeker.jl:47│   exception =│    UndefRefError: access to undefined reference│     [2] ht_keyindex2!(::Dict{Any,Int64}, ::Tuple{Ptr{Nothing},Symbol}) at .\dict.jl:326│     [3] get!(::getfield(Base, Symbol("##241#242")){Int64}, ::Dict{Any,Int64}, ::Tuple{Ptr{Nothing},Symbol}) at .\dict.jl:447│     [4] get! at .\dict.jl:420 [inlined]│     [5] #handle_message#2(::Int64, ::Base.Iterators.Pairs{Symbol,Base.StackTraces.StackFrame,Tuple{Symbol},NamedTuple{(:caller,),Tuple{Base.StackTraces.StackFrame}}}, ::typeof(Base.CoreLogging.handle_message), ::Logging.ConsoleLogger, ::Base.CoreLogging.LogLevel, ::String, ::Module, ::Symbol, ::Tuple{Ptr{Nothing},Symbol}, ::String, ::Int64) at C:\cygwin\home\Administrator\buildbot\worker\package_win64\build\usr\share\julia\stdlib\v1.2\Logging\src\ConsoleLogger.jl:101│     [6] (::getfield(Base.CoreLogging, Symbol("#kw##handle_message")))(::NamedTuple{(:caller, :maxlog),Tuple{Base.StackTraces.StackFrame,Int64}}, ::typeof(Base.CoreLogging.handle_message), ::Logging.ConsoleLogger, ::Base.CoreLogging.LogLevel, ::String, ::Module, ::Symbol, ::Tuple{Ptr{Nothing},Symbol}, ::String, ::Int64) at .\none:0│     [7] macro expansion at .\logging.jl:320 [inlined]│     [8] depwarn(::String, ::Symbol) at .\deprecated.jl:80│     [9] compare(::StringDistances.Winkler{StringDistances.Jaro,Float64,Float64}, ::String, ::String) at .\deprecated.jl:66
│     [10] score(::String, ::DocSeeker.DocObj, ::Bool) at C:\Users\Greg\.julia\packages\DocSeeker\PZWMc\src\DocSeeker.jl:46
│     [11] macro expansion at C:\Users\Greg\.julia\packages\DocSeeker\PZWMc\src\introspective.jl:20 [inlined]
│     [12] (::getfield(DocSeeker, Symbol("##20#threadsfor_fun#7")){String,Bool,Array{DocSeeker.DocObj,1},Array{Float64,1},Base.OneTo{Int64}})(::Bool) at .\threadingconstructs.jl:64
│     [13] (::getfield(DocSeeker, Symbol("##20#threadsfor_fun#7")){String,Bool,Array{DocSeeker.DocObj,1},Array{Float64,1},Base.OneTo{Int64}})() at .\threadingconstructs.jl:31└ @ DocSeeker C:\Users\Greg\.julia\packages\DocSeeker\PZWMc\src\DocSeeker.jl:46┌ Error: Exception while generating log record in module DocSeeker at C:\Users\Greg\.julia\packages\DocSeeker\PZWMc\src\DocSeeker.jl:46 │   exception =
│    UndefRefError: access to undefined reference
│    Stacktrace:
│     [1] getindex at .\array.jl:728 [inlined]
│     [2] ht_keyindex2!(::Dict{Any,Int64}, ::Tuple{Ptr{Nothing},Symbol}) at .\dict.jl:326
│     [3] get!(::getfield(Base, Symbol("##241#242")){Int64}, ::Dict{Any,Int64}, ::Tuple{Ptr{Nothing},Symbol}) at .\dict.jl:447
│     [4] get! at .\dict.jl:420 [inlined]
│     [5] #handle_message#2(::Int64, ::Base.Iterators.Pairs{Symbol,Base.StackTraces.StackFrame,Tuple{Symbol},NamedTuple{(:caller,),Tuple{Base.StackTraces.StackFrame}}}, ::typeof(Base.CoreLogging.handle_message), ::Logging.ConsoleLogger, ::Base.CoreLogging.LogLevel, ::String, ::Module, ::Symbol, ::Tuple{Ptr{Nothing},Symbol}, ::String, ::Int64) at C:\cygwin\home\Administrator\buildbot\worker\package_win64\build\usr\share\julia\stdlib\v1.2\Logging\src\ConsoleLogger.jl:101│     [6] (::getfield(Base.CoreLogging, Symbol("#kw##handle_message")))(::NamedTuple{(:caller, :maxlog),Tuple{Base.StackTraces.StackFrame,Int64}}, ::typeof(Base.CoreLogging.handle_message), ::Logging.ConsoleLogger, ::Base.CoreLogging.LogLevel, ::String, ::Module, ::Symbol, ::Tuple{Ptr{Nothing},Symbol}, ::String, ::Int64) at .\none:0│     [7] macro expansion at .\logging.jl:320 [inlined]│     [8] depwarn(::String, ::Symbol) at .\deprecated.jl:80│     [9] compare(::StringDistances.Winkler{StringDistances.Jaro,Float64,Float64}, ::String, ::String) at .\deprecated.jl:66
│     [10] score(::String, ::DocSeeker.DocObj, ::Bool) at C:\Users\Greg\.julia\packages\DocSeeker\PZWMc\src\DocSeeker.jl:46
│     [11] macro expansion at C:\Users\Greg\.julia\packages\DocSeeker\PZWMc\src\introspective.jl:20 [inlined]
│     [12] (::getfield(DocSeeker, Symbol("##20#threadsfor_fun#7")){String,Bool,Array{DocSeeker.DocObj,1},Array{Float64,1},Base.OneTo{Int64}})(::Bool) at .\threadingconstructs.jl:64
│     [13] (::getfield(DocSeeker, Symbol("##20#threadsfor_fun#7")){String,Bool,Array{DocSeeker.DocObj,1},Array{Float64,1},Base.OneTo{Int64}})() at .\threadingconstructs.jl:31└ @ DocSeeker C:\Users\Greg\.julia\packages\DocSeeker\PZWMc\src\DocSeeker.jl:46┌ Warning: `compare(dist::PreMetric, s1::AbstractString, s2::AbstractString)` is deprecated, use `compare(s1, s2, dist)` instead.       │   caller = score(::String, ::DocSeeker.DocObj, ::Bool) at DocSeeker.jl:52
└ @ DocSeeker C:\Users\Greg\.julia\packages\DocSeeker\PZWMc\src\DocSeeker.jl:52

I cannot reproduce the exact error, but restarting Juno and typing println into the Documention tab reproduces this:

Julia-1.2.0> ┌ Warning: `compare(dist::PreMetric, s1::AbstractString, s2::AbstractString)` is deprecated, use `compare(s1, s2, dist)` instead.
│   caller = score(::String, ::DocSeeker.DocObj, ::Bool) at DocSeeker.jl:52
└ @ DocSeeker C:\Users\Greg\.julia\packages\DocSeeker\PZWMc\src\DocSeeker.jl:52
┌ Warning: `compare(dist::PreMetric, s1::AbstractString, s2::AbstractString)` is deprecated, use `compare(s1, s2, dist)` instead.
│   caller = score(::String, ::DocSeeker.DocObj, ::Bool) at DocSeeker.jl:46
└ @ DocSeeker C:\Users\Greg\.julia\packages\DocSeeker\PZWMc\src\DocSeeker.jl:46
┌ Warning: `compare(dist::PreMetric, s1::AbstractString, s2::AbstractString)` is deprecated, use `compare(s1, s2, dist)` instead.
│   caller = score(::String, ::DocSeeker.DocObj, ::Bool) at DocSeeker.jl:47
└ @ DocSeeker C:\Users\Greg\.julia\packages\DocSeeker\PZWMc\src\DocSeeker.jl:47

Debug info:

# Atom:
Version: 1.40.1
Dev Mode: false
Official Release: true
{
  "http_parser": "2.8.0",
  "node": "10.2.0",
  "v8": "6.6.346.32",
  "uv": "1.20.3",
  "zlib": "1.2.11",
  "ares": "1.14.0",
  "modules": "64",
  "nghttp2": "1.29.0",
  "napi": "3",
  "openssl": "1.1.0h",
  "electron": "3.1.10",
  "chrome": "66.0.3359.181"
}
# julia-client:
Version: 0.9.4
Config:
{
  "firstBoot": false,
  "juliaPath": "C:\\Program Files\\Julia-1.2.0\\bin\\julia.exe",
  "uiOptions": {
    "enableMenu": true,
    "enableToolBar": true,
    "layouts": {
      "openDefaultPanesOnStartUp": false
    }
  }
}


# ink:
Version: 0.10.12
Config:
undefined


# uber-juno:not installed


# language-julia:
Version: 0.19.1
Config:
undefined


# language-weave:not installed


# indent-detective:not installed


Julia Version 1.2.0
Commit c6da87ff4b (2019-08-20 00:03 UTC)
Platform Info:
  OS: Windows (x86_64-w64-mingw32)
  CPU: AMD A8-7600 Radeon R7, 10 Compute Cores 4C+6G  
  WORD_SIZE: 64
  LIBM: libopenlibm
  LLVM: libLLVM-6.0.1 (ORCJIT, bdver3)
Environment:
  JULIA_EDITOR = "C:\Program Files\Sublime Text 3\sublime_text.exe"
  JULIA_NUM_THREADS = 4
  JULIA_SHELL = cmd
  JULIA_SSH_CMD = "C:\Program Files (x86)\Bitvise SSH Client\sexec.exe"

    Status `C:\Users\Greg\.julia\environments\v1.2\Project.toml`
  [dce04be8] ArgCheck v1.0.1
  [c52e3926] Atom v0.9.1
  [fbb218c0] BSON v0.2.3
  [6e4b80f9] BenchmarkTools v0.4.2
  [336ed68f] CSV v0.5.11
  [5ae59095] Colors v0.9.6
  [861a8166] Combinatorics v0.7.0
  [adafc99b] CpuId v0.2.2
  [a93c6f00] DataFrames v0.19.3
  [864edb3b] DataStructures v0.17.0
  [31a5f54b] Debugger v0.5.0
  [55939f99] DecFP v0.4.8
  [aaf54ef3] DistributedArrays v0.6.3
  [31c24e10] Distributions v0.21.1
  [497a8b3b] DoubleFloats v0.9.7
  [5f923234] Fatou v1.1.0
  [5789e2e9] FileIO v1.0.7
  [59287772] Formatting v0.3.5
  [da1fdf0e] FreqTables v0.3.1
  [c91e804a] Gadfly v1.0.1
  [6218d12a] ImageMagick v0.7.5
  [86fae568] ImageView v0.9.0
  [916415d5] Images v0.18.0
  [6deec6e2] IndexedTables v0.12.2
  [033835bb] JLD2 v0.1.2
  [a93385a2] JuliaDB v0.12.0
  [aa1ae85d] JuliaInterpreter v0.6.1
  [e5e0dc1b] Juno v0.7.2
  [5078a376] LazyArrays v0.10.0
  [1914dd2f] MacroTools v0.5.1
  [2774e3e8] NLsolve v4.1.0
  [6fe1bfb0] OffsetArrays v0.11.1
  [429524aa] Optim v0.19.2
  [69de0a69] Parsers v0.3.6
  [08abe8d2] PrettyTables v0.5.1
  [27ebfcd6] Primes v0.4.0
  [c46f51b8] ProfileView v0.4.1
  [be4d8f0f] Quadmath v0.5.0
  [97cc5700] RNGTest v1.4.0
  [74087812] Random123 v1.2.0
  [e6cf234a] RandomNumbers v1.3.0
  [ee283ea6] Rebugger v0.3.2
  [a39b5e78] ReusePatterns v0.1.2
  [295af30f] Revise v2.1.8
  [90137ffa] StaticArrays v0.11.0
  [2913bbd2] StatsBase v0.32.0
  [70df011a] TableReader v0.4.0
  [40c74d1a] TableView v0.4.0
  [bd369af6] Tables v0.2.11
  [5e47fb64] TestImages v0.5.1
  [37b6cedf] Traceur v0.3.0
  [28d57a85] Transducers v0.4.0
  [b8865327] UnicodePlots v1.1.0
  [fdbf4ff8] XLSX v0.5.4

DocSeeker broken on julia master

It looks like JuliaLang/Pkg.jl#1086 removed Pkg.installed(), so this package (and thus Atom.jl) is now broken on julia master:

Press Enter to start Julia. 
Starting Julia...
[ Info: Precompiling Atom [c52e3926-4ff0-5f6e-af25-54175e0327b1]
ERROR: LoadError: LoadError: UndefVarError: installed not defined
Stacktrace:
 [1] include(::Module, ::String) at ./Base.jl:377
 [2] include(::String) at /Users/nathan.daly/.julia/packages/DocSeeker/551Y8/src/DocSeeker.jl:3
 [3] top-level scope at /Users/nathan.daly/.julia/packages/DocSeeker/551Y8/src/DocSeeker.jl:83
 [4] include(::Module, ::String) at ./Base.jl:377
 [5] top-level scope at none:2
 [6] eval at ./boot.jl:330 [inlined]
 [7] eval(::Expr) at ./client.jl:457
 [8] top-level scope at ./none:3
in expression starting at /Users/nathan.daly/.julia/packages/DocSeeker/551Y8/src/static.jl:1
in expression starting at /Users/nathan.daly/.julia/packages/DocSeeker/551Y8/src/DocSeeker.jl:83
ERROR: LoadError: LoadError: Failed to precompile DocSeeker [33d173f1-3be9-53c5-a697-8225b67db89c] to /Users/nathan.daly/.julia/compiled/v1.4/DocSeeker/zL2Vm_zz0KN.ji.
Stacktrace:
 [1] error(::String) at ./error.jl:33
 [2] compilecache(::Base.PkgId, ::String) at ./loading.jl:1247
 [3] _require(::Base.PkgId) at ./loading.jl:1009
 [4] require(::Base.PkgId) at ./loading.jl:907
 [5] require(::Module, ::Symbol) at ./loading.jl:902
 [6] include(::Module, ::String) at ./Base.jl:377
 [7] include(::String) at /Users/nathan.daly/.julia/packages/Atom/BVajq/src/Atom.jl:3
 [8] top-level scope at /Users/nathan.daly/.julia/packages/Atom/BVajq/src/Atom.jl:47
 [9] include(::Module, ::String) at ./Base.jl:377
 [10] top-level scope at none:2
 [11] eval at ./boot.jl:330 [inlined]
 [12] eval(::Expr) at ./client.jl:457
 [13] top-level scope at ./none:3
in expression starting at /Users/nathan.daly/.julia/packages/Atom/BVajq/src/docs.jl:1
in expression starting at /Users/nathan.daly/.julia/packages/Atom/BVajq/src/Atom.jl:47
ERROR: LoadError: Failed to precompile Atom [c52e3926-4ff0-5f6e-af25-54175e0327b1] to /Users/nathan.daly/.julia/compiled/v1.4/Atom/w9XOh_zz0KN.ji.
Stacktrace:
 [1] error(::String) at ./error.jl:33
 [2] compilecache(::Base.PkgId, ::String) at ./loading.jl:1247
 [3] _require(::Base.PkgId) at ./loading.jl:1009
 [4] require(::Base.PkgId) at ./loading.jl:907
 [5] require(::Module, ::Symbol) at ./loading.jl:902
 [6] top-level scope at /Users/nathan.daly/dotfiles/nhdaly/atom/packages/julia-client/script/boot_repl.jl:31
 [7] include(::Module, ::String) at ./Base.jl:377
 [8] exec_options(::Base.JLOptions) at ./client.jl:296
 [9] _start() at ./client.jl:492
in expression starting at /Users/nathan.daly/dotfiles/nhdaly/atom/packages/julia-client/script/boot_repl.jl:1
               _
   _       _ _(_)_     |  Documentation: https://docs.julialang.org
  (_)     | (_) (_)    |
   _ _   _| |_  __ _   |  Type "?" for help, "]?" for Pkg help.
  | | | | | | |/ _` |  |
  | | |_| | | | (_| |  |  Version 1.4.0-DEV.249 (2019-10-03)
 _/ |\__'_|_|_|\__'_|  |  Commit 1739ca0aea (0 days old master)
|__/                   |

julia> VERSION
v"1.4.0-DEV.249"

It looks like dependencies() is now what you want?:
https://github.com/JuliaLang/Pkg.jl/pull/1086/files#diff-cac25e1e95e0a8d859cacad2a2e69677R161

I'm not sure though.

TagBot trigger issue

This issue is used to trigger TagBot; feel free to unsubscribe.

If you haven't already, you should update your TagBot.yml to include issue comment triggers.
Please see this post on Discourse for instructions and more details.

If you'd like for me to do this for you, comment TagBot fix on this issue.
I'll open a PR within a few hours, please be patient!

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.