Skip to content

#64: Fixed some of test compile errors #84

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

Merged
merged 1 commit into from
Feb 3, 2017
Merged

#64: Fixed some of test compile errors #84

merged 1 commit into from
Feb 3, 2017

Conversation

oporkka
Copy link
Collaborator

@oporkka oporkka commented Feb 1, 2017

  • Ensured that absolute imports are used for spray.json instead of relative
    imports possibly refering to org.zalando.jsonapi packages.
  • Updated missing dependency

This change is Reviewable

- Ensured that absolute imports are used for `spray.json` instead of relative
  imports possibly refering to org.zalando.jsonapi packages.
- Updated missing dependency
@@ -6,7 +6,7 @@ import akka.http.scaladsl.unmarshalling._
import org.zalando.jsonapi.model._
import org.zalando.jsonapi.sprayjson.SprayJsonJsonapiProtocol
import org.zalando.jsonapi.{JsonapiRootObjectReader, JsonapiRootObjectWriter, _}
import spray.json._
import _root_.spray.json._
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I don't get it, why do we have to add it?

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

You're right, it's not actually required to get sbt compile to work, but IntelliJ Idea thinks that we're refering to package org.zalando.jsonapi.spray.json which does not exist.

It's because on previous line there's include for import org.zalando.jsonapi._

Also this would work in both Idea and SBT

import org.zalando.jsonapi.{JsonapiRootObjectReader, JsonapiRootObjectWriter, ToJsonapiRootObjectWriterOps}
import spray.json._

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I should have understood to mention that I was also fixing errors in Idea by adding _root_ to some of the imports.

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Do we need to merge this PR first?

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I would take the approach of merging these changes as small individual pull requests to make it easier to review. This one should be independent of pull request #85 and can be merged at will :)

@zmeda zmeda merged commit c800b66 into scala-jsonapi:issue/64 Feb 3, 2017
@oporkka oporkka deleted the issue/64 branch February 3, 2017 15:49
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants