Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Error: an attribute list cannot appear here JSON_HEDLEY_DEPRECATED_FOR #2342

Closed
2 of 3 tasks
SylvainCorlay opened this issue Aug 6, 2020 · 21 comments
Closed
2 of 3 tasks
Labels
kind: bug state: needs more info the author of the issue needs to provide more details state: stale the issue has not been updated in a while and will be closed automatically soon unless it is updated

Comments

@SylvainCorlay
Copy link

With nlohmann_json 3.8 and 3.9, including 3.9.1 (but not with earlier versions such as 3.7), we are getting the following error in our builds on OS X (xcode 8).

/Users/travis/miniconda/envs/xtl/include/nlohmann/json.hpp:23086:5: error: an attribute list cannot appear here
    JSON_HEDLEY_DEPRECATED_FOR(3.8.0, parse(ptr, ptr + len))
  • latest release version 3.9.1
  • other release - please state the version: 3.8.x, 3.9.x
  • the develop branch
@SylvainCorlay
Copy link
Author

SylvainCorlay commented Aug 6, 2020

A failing build when removing the constraints nlohmann_json<3.7:

xtensor-stack/xtl#196

@nlohmann
Copy link
Owner

nlohmann commented Aug 6, 2020

Which compiler and operating system are you using? Is it a supported compiler?

@nlohmann nlohmann added the state: needs more info the author of the issue needs to provide more details label Aug 6, 2020
@SylvainCorlay
Copy link
Author

Ok, it seems that you dropped support for xcode 8. Sorry for the noise.

@nlohmann nlohmann reopened this Aug 6, 2020
@nlohmann
Copy link
Owner

nlohmann commented Aug 6, 2020

No, no compiler support was consciously dropped. This seems to be an issue with Hedley. I will check.

@nlohmann
Copy link
Owner

nlohmann commented Aug 6, 2020

So which exact compiler did you use?

@SylvainCorlay
Copy link
Author

I was using the clang from the travis "xcode8" OS X image.

@nlohmann
Copy link
Owner

nlohmann commented Aug 7, 2020

That image seems to be a bit abandoned by Travis and Homebrew. I am currently struggling to install CMake and Ninja there, so I'm not close to the error you reported yet...

@SylvainCorlay
Copy link
Author

I just triggered a buld with xcode 8 for xtl: xtensor-stack/xtl#199

This should show the issue.

Note: we are seeing this in other repositories, because we have the same pattern in many where we install our dependencies from conda.

@nlohmann
Copy link
Owner

nlohmann commented Aug 7, 2020

Also using Hedley?

@SylvainCorlay
Copy link
Author

We are not using Hedley.

@SylvainCorlay
Copy link
Author

Here is the failing build: https://travis-ci.com/github/xtensor-stack/xtl/jobs/369629906

@stale
Copy link

stale bot commented Sep 6, 2020

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.

@stale stale bot added the state: stale the issue has not been updated in a while and will be closed automatically soon unless it is updated label Sep 6, 2020
@nlohmann nlohmann removed the state: stale the issue has not been updated in a while and will be closed automatically soon unless it is updated label Sep 12, 2020
@ketgo
Copy link

ketgo commented Sep 25, 2020

I am also getting the same issue with clang-3.6. In fact all my clang builds are failing. Is that compiler not supported?

@t-b
Copy link
Contributor

t-b commented Sep 25, 2020

@ketgo Which json version are you using? Does it include 411fc32?

@ketgo
Copy link

ketgo commented Sep 25, 2020

@t-b No it does not. I am using v3.9.1

@nlohmann
Copy link
Owner

Can you please try again with the develop branch?

@JuanGarcia345
Copy link

@nlohmann the version in the develop branch works for me. I had the same issue with clang-3.[6-8].

By the way, thank you for the job you have done with this nice library.

@davidbrochart
Copy link

Can you please try again with the develop branch?

I have the same issue, and it was solved by using the develop branch.

@davidbrochart
Copy link

Switching from Xcode 8 to Xcode 9 in Travis CI also solves the issue.

@ketgo
Copy link

ketgo commented Oct 15, 2020

develop branch worked for me. Thanks for the great package! :)

@stale
Copy link

stale bot commented Dec 25, 2020

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.

@stale stale bot added the state: stale the issue has not been updated in a while and will be closed automatically soon unless it is updated label Dec 25, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
kind: bug state: needs more info the author of the issue needs to provide more details state: stale the issue has not been updated in a while and will be closed automatically soon unless it is updated
Projects
None yet
Development

No branches or pull requests

6 participants