Skip to content

Package breaks 0n 0.5 with a " invalid iteration specification" #17668

Closed
@joa-quim

Description

@joa-quim

Hi,

This is the GMT package that works fine with 0.4 and used to work too with a some months old 0.5dev, but now it errors on loading with

using GMT
... (deprecation messages)
WARNING: Base.UTF8String is deprecated, use String instead.
  likely near C:\j\.julia\v0.5\GMT\src\gmt_main.jl:57
ERROR: LoadError: LoadError: syntax: invalid iteration specification
 in include_from_node1(::String) at .\loading.jl:426 (repeats 2 times)
 in eval(::Module, ::Any) at .\boot.jl:234
 in require(::Symbol) at .\loading.jl:357
while loading C:\j\.julia\v0.5\GMT\src\gmt_main.jl, in expression starting on line 149
while loading C:\j\.julia\v0.5\GMT\src\GMT.jl, in expression starting on line 49

The offending code is

    XX = Array(GMT_RESOURCE, 1, n_items)
    for (k = 1:n_items)
        XX[k] = unsafe_load(X, k) 
    end

Julia version (nightly)

Version 0.5.0-rc0+4 (2016-07-27 09:20 UTC)
Commit 347057b (1 day old master)
x86_64-w64-mingw32

Metadata

Metadata

Assignees

Labels

docsThis change adds or pertains to documentationregressionRegression in behavior compared to a previous version

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions