Code Monkey home page Code Monkey logo

options.jl's People

Contributors

carlobaldassi avatar harlanh avatar johnmyleswhite avatar stefankarpinski avatar timholy avatar tkelman avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

options.jl's Issues

[PkgEval] Options may have a testing issue on Julia 0.4 (2014-10-08)

PackageEvaluator.jl is a script that runs nightly. It attempts to load all Julia packages and run their tests (if available) on both the stable version of Julia (0.3) and the nightly build of the unstable version (0.4). The results of this script are used to generate a package listing enhanced with testing results.

On Julia 0.4

  • On 2014-10-05 the testing status was Tests pass.
  • On 2014-10-08 the testing status changed to Tests fail, but package loads.

Tests pass. means that PackageEvaluator found the tests for your package, executed them, and they all passed.

Tests fail, but package loads. means that PackageEvaluator found the tests for your package, executed them, and they didn't pass. However, trying to load your package with using worked.

Special message from @IainNZ: This change may be due to breaking changes to Dict in JuliaLang/julia#8521, or the removal of deprecated syntax in JuliaLang/julia#8607.

This issue was filed because your testing status became worse. No additional issues will be filed if your package remains in this state, and no issue will be filed if it improves. If you'd like to opt-out of these status-change messages, reply to this message saying you'd like to and @IainNZ will add an exception. If you'd like to discuss PackageEvaluator.jl please file an issue at the repository. For example, your package may be untestable on the test machine due to a dependency - an exception can be added.

Test log:

>>> 'Pkg.add("Options")' log
INFO: Installing Options v0.2.2
INFO: Package database updated
INFO: METADATA is out-of-date a you may not have the latest version of Options
INFO: Use `Pkg.update()` to get the latest versions of your packages

>>> 'using Options' log

WARNING: deprecated syntax "(Symbol=>Int)[]" at /home/idunning/pkgtest/.julia/v0.4/Options/src/Options.jl:53.
Use "Dict{Symbol,Int}()" instead.
Warning: requiring "Options" did not define a corresponding module.
Julia Version 0.4.0-dev+998
Commit e24fac0 (2014-10-07 22:02 UTC)
Platform Info:
  System: Linux (x86_64-unknown-linux-gnu)
  CPU: Intel(R) Xeon(R) CPU E5-2650 0 @ 2.00GHz
  WORD_SIZE: 64
  BLAS: libopenblas (USE64BITINT DYNAMIC_ARCH NO_AFFINITY Sandybridge)
  LAPACK: libopenblas
  LIBM: libopenlibm
  LLVM: libLLVM-3.3

>>> test log

WARNING: deprecated syntax "(Symbol=>Int)[]" at /home/idunning/pkgtest/.julia/v0.4/Options/src/Options.jl:53.
Use "Dict{Symbol,Int}()" instead.
ERROR: `Dict{Symbol,Int64}` has no method matching Dict{Symbol,Int64}(::(Symbol,Symbol), ::(Int64,Int64))
 in Options at /home/idunning/pkgtest/.julia/v0.4/Options/src/Options.jl:45
 in Options at /home/idunning/pkgtest/.julia/v0.4/Options/src/Options.jl:68
 in include at ./boot.jl:245
 in include_from_node1 at loading.jl:128
 in process_options at ./client.jl:293
 in _start at ./client.jl:362
 in _start_3B_3789 at /home/idunning/julia04/usr/bin/../lib/julia/sys.so
while loading /home/idunning/pkgtest/.julia/v0.4/Options/test/runtests.jl, in expression starting on line 6

INFO: Testing Options
===============================[ ERROR: Options ]===============================

failed process: Process(`/home/idunning/julia04/usr/bin/julia /home/idunning/pkgtest/.julia/v0.4/Options/test/runtests.jl`, ProcessExited(1)) [1]

================================================================================
INFO: No packages to install, update or remove
ERROR: Options had test errors
 in error at error.jl:21
 in test at pkg/entry.jl:719
 in anonymous at pkg/dir.jl:28
 in cd at ./file.jl:20
 in cd at pkg/dir.jl:28
 in test at pkg.jl:68
 in process_options at ./client.jl:221
 in _start at ./client.jl:362
 in _start_3B_3789 at /home/idunning/julia04/usr/bin/../lib/julia/sys.so


>>> end of log

Travis

Can someone with admin access activate Travis CI on this repo please? I have pushed a config file in the travis branch, if it works we could merge it.

Block Support for @options & @defaults Broken

When I tried one of the ArgParse examples I saw a ton of errors coming from the use of @options and @defaults. Looking at the source this stemmed from its use of the block form

@defaults desc begin
    nargs = ...
end

After a little tracking it would seem that there is no handling for :line type Expr objects in the macros.

The macros appear to work properly when "|| y.head == :line" is added to the relevant conditionals (Options.jl:203, 264, 301)

On a semi-related note, it would be nice if the docs of either @defaults or @options mentioned block support as it was not apparent that ArgParse was using current syntax (to this Julia beginner).

Rename package

In light of the recent auto-require changes, this package should probably be renamed to OptionsMod, so that using OptionsMod is sufficient to load it.

Either that, or the module name should be changed to Options and the type to something else (Opts?).

ntuple(n::Integer,f::Function) is deprecated

Running on Julia Version 0.4.0-dev+5236 (Commit 01abdc3*), options.jl gives the following warning:

WARNING: ntuple(n::Integer,f::Function) is deprecated, use ntuple(f,n) instead.

[PackageEvaluator.jl] Your package Options may have a testing issue.

This issue is being filed by a script, but if you reply, I will see it.

PackageEvaluator.jl is a script that runs nightly. It attempts to load all Julia packages and run their test (if available) on both the stable version of Julia (0.2) and the nightly build of the unstable version (0.3).

The results of this script are used to generate a package listing enhanced with testing results.

The status of this package, Options, on...

  • Julia 0.2 is 'Package doesn't load.' PackageEvaluator.jl
  • Julia 0.3 is 'Package doesn't load.' PackageEvaluator.jl

'No tests, but package loads.' can be due to their being no tests (you should write some if you can!) but can also be due to PackageEvaluator not being able to find your tests. Consider adding a test/runtests.jl file.

'Package doesn't load.' is the worst-case scenario. Sometimes this arises because your package doesn't have BinDeps support, or needs something that can't be installed with BinDeps. If this is the case for your package, please file an issue and an exception can be made so your package will not be tested.

This automatically filed issue is a one-off message. Starting soon, issues will only be filed when the testing status of your package changes in a negative direction (gets worse). If you'd like to opt-out of these status-change messages, reply to this message.

Info about upcoming removal of packages in the General registry

As described in https://discourse.julialang.org/t/ann-plans-for-removing-packages-that-do-not-yet-support-1-0-from-the-general-registry/ we are planning on removing packages that do not support 1.0 from the General registry. This package has been detected to not support 1.0 and is thus slated to be removed. The removal of packages from the registry will happen approximately a month after this issue is open.

To transition to the new Pkg system using Project.toml, see https://github.com/JuliaRegistries/Registrator.jl#transitioning-from-require-to-projecttoml.
To then tag a new version of the package, see https://github.com/JuliaRegistries/Registrator.jl#via-the-github-app.

If you believe this package has erroneously been detected as not supporting 1.0 or have any other questions, don't hesitate to discuss it here or in the thread linked at the top of this post.

Modify for deprecation of require

Now that require is deprecated, the "Basic usage" of

require("Options")
using OptionsMod

should be modified.

Perhaps Issue #4 should be given consideration.

Problems when adding package

Hello,
I am quite new to Julia so this might be an easy issue, but I guess people might run into it in future. I tried to add some packages, but using them doesn't work. It is new source compiled installation and the console output is in here:

julia> require("pkg")

julia> Pkg.add("TextAnalysis")
Package directory /Users/tomaskrehlik/.julia doesn't exist; run Pkg.init() to create it.
 in cd_pkgdir at /Users/tomaskrehlik/Documents/julia/julia/base/pkg.jl:22
 in add at /Users/tomaskrehlik/Documents/julia/julia/base/pkg.jl:77
 in add at /Users/tomaskrehlik/Documents/julia/julia/base/pkg.jl:102

julia> Pkg.init()
[...]

julia> Pkg.add("TextAnalysis")
[...]

julia> load("DataFrames")
BitArray not defined
 in load_now at util.jl:228
 in require at util.jl:176
 in load_now at util.jl:228
 in load_now at util.jl:240
 in require at util.jl:176
at /Users/tomaskrehlik/.julia/Options/src/Options.jl:26

I was trying to google it, but no luck. Can anybody help?

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.