value isBlank is not a member of String
I am using sbt 1.2.6 to compile my project. In my local machine compilation runs fine, but when using travis-ci for testing, the compiler complains that value isBlank is not a member of String
.
You can find the source code here
https://github.com/LukeDS-it/webfleet-driver/blob/679dff9877ea1edd403dc6cd3d55a22d5fd5328f/server/src/main/scala/it/ldsoftware/webfleet/driver/services/v1/AggregateService.scala#L138
And the build report here
https://travis-ci.com/LukeDS-it/webfleet-driver/builds/92441228
I have no more information to provide. My IDE says that everything is fine, and if I run compile or test in local everything works fine.
What am I missing?
scala sbt travis-ci
|
show 1 more comment
I am using sbt 1.2.6 to compile my project. In my local machine compilation runs fine, but when using travis-ci for testing, the compiler complains that value isBlank is not a member of String
.
You can find the source code here
https://github.com/LukeDS-it/webfleet-driver/blob/679dff9877ea1edd403dc6cd3d55a22d5fd5328f/server/src/main/scala/it/ldsoftware/webfleet/driver/services/v1/AggregateService.scala#L138
And the build report here
https://travis-ci.com/LukeDS-it/webfleet-driver/builds/92441228
I have no more information to provide. My IDE says that everything is fine, and if I run compile or test in local everything works fine.
What am I missing?
scala sbt travis-ci
2
It does not compile on my local machine either. I am getting the same error. I noticed, that you have two branches.master
compiles,aggregates
does not compile. Are you sure, that you compileaggregates
on your local machine too ?
– ygor
Nov 24 '18 at 19:42
3
Btw.optional.isDefined && optional.get.isEmpty
can be written asoptional.exists(_.isEmpty)
. See: stackoverflow.com/questions/24086493/…
– ygor
Nov 24 '18 at 19:49
Yes, I am working on that branch in local. Thanks for the suggestion about the option, I appreciate it, being somewhat new in Scala. I will try to do a clean build to see why this issue.
– Luca
Nov 24 '18 at 20:29
2
Okay I found out why it happens: it looks like I'm compiling against Java 11 on my machine, where that method has been introduced. Whereas on travis-ci the java version is lower.
– Luca
Nov 24 '18 at 23:00
4
You should create an answer yourself. This is useful.
– ygor
Nov 25 '18 at 0:38
|
show 1 more comment
I am using sbt 1.2.6 to compile my project. In my local machine compilation runs fine, but when using travis-ci for testing, the compiler complains that value isBlank is not a member of String
.
You can find the source code here
https://github.com/LukeDS-it/webfleet-driver/blob/679dff9877ea1edd403dc6cd3d55a22d5fd5328f/server/src/main/scala/it/ldsoftware/webfleet/driver/services/v1/AggregateService.scala#L138
And the build report here
https://travis-ci.com/LukeDS-it/webfleet-driver/builds/92441228
I have no more information to provide. My IDE says that everything is fine, and if I run compile or test in local everything works fine.
What am I missing?
scala sbt travis-ci
I am using sbt 1.2.6 to compile my project. In my local machine compilation runs fine, but when using travis-ci for testing, the compiler complains that value isBlank is not a member of String
.
You can find the source code here
https://github.com/LukeDS-it/webfleet-driver/blob/679dff9877ea1edd403dc6cd3d55a22d5fd5328f/server/src/main/scala/it/ldsoftware/webfleet/driver/services/v1/AggregateService.scala#L138
And the build report here
https://travis-ci.com/LukeDS-it/webfleet-driver/builds/92441228
I have no more information to provide. My IDE says that everything is fine, and if I run compile or test in local everything works fine.
What am I missing?
scala sbt travis-ci
scala sbt travis-ci
edited Nov 24 '18 at 21:13
Robin Green
22.5k875155
22.5k875155
asked Nov 24 '18 at 18:21
LucaLuca
3891718
3891718
2
It does not compile on my local machine either. I am getting the same error. I noticed, that you have two branches.master
compiles,aggregates
does not compile. Are you sure, that you compileaggregates
on your local machine too ?
– ygor
Nov 24 '18 at 19:42
3
Btw.optional.isDefined && optional.get.isEmpty
can be written asoptional.exists(_.isEmpty)
. See: stackoverflow.com/questions/24086493/…
– ygor
Nov 24 '18 at 19:49
Yes, I am working on that branch in local. Thanks for the suggestion about the option, I appreciate it, being somewhat new in Scala. I will try to do a clean build to see why this issue.
– Luca
Nov 24 '18 at 20:29
2
Okay I found out why it happens: it looks like I'm compiling against Java 11 on my machine, where that method has been introduced. Whereas on travis-ci the java version is lower.
– Luca
Nov 24 '18 at 23:00
4
You should create an answer yourself. This is useful.
– ygor
Nov 25 '18 at 0:38
|
show 1 more comment
2
It does not compile on my local machine either. I am getting the same error. I noticed, that you have two branches.master
compiles,aggregates
does not compile. Are you sure, that you compileaggregates
on your local machine too ?
– ygor
Nov 24 '18 at 19:42
3
Btw.optional.isDefined && optional.get.isEmpty
can be written asoptional.exists(_.isEmpty)
. See: stackoverflow.com/questions/24086493/…
– ygor
Nov 24 '18 at 19:49
Yes, I am working on that branch in local. Thanks for the suggestion about the option, I appreciate it, being somewhat new in Scala. I will try to do a clean build to see why this issue.
– Luca
Nov 24 '18 at 20:29
2
Okay I found out why it happens: it looks like I'm compiling against Java 11 on my machine, where that method has been introduced. Whereas on travis-ci the java version is lower.
– Luca
Nov 24 '18 at 23:00
4
You should create an answer yourself. This is useful.
– ygor
Nov 25 '18 at 0:38
2
2
It does not compile on my local machine either. I am getting the same error. I noticed, that you have two branches.
master
compiles, aggregates
does not compile. Are you sure, that you compile aggregates
on your local machine too ?– ygor
Nov 24 '18 at 19:42
It does not compile on my local machine either. I am getting the same error. I noticed, that you have two branches.
master
compiles, aggregates
does not compile. Are you sure, that you compile aggregates
on your local machine too ?– ygor
Nov 24 '18 at 19:42
3
3
Btw.
optional.isDefined && optional.get.isEmpty
can be written as optional.exists(_.isEmpty)
. See: stackoverflow.com/questions/24086493/…– ygor
Nov 24 '18 at 19:49
Btw.
optional.isDefined && optional.get.isEmpty
can be written as optional.exists(_.isEmpty)
. See: stackoverflow.com/questions/24086493/…– ygor
Nov 24 '18 at 19:49
Yes, I am working on that branch in local. Thanks for the suggestion about the option, I appreciate it, being somewhat new in Scala. I will try to do a clean build to see why this issue.
– Luca
Nov 24 '18 at 20:29
Yes, I am working on that branch in local. Thanks for the suggestion about the option, I appreciate it, being somewhat new in Scala. I will try to do a clean build to see why this issue.
– Luca
Nov 24 '18 at 20:29
2
2
Okay I found out why it happens: it looks like I'm compiling against Java 11 on my machine, where that method has been introduced. Whereas on travis-ci the java version is lower.
– Luca
Nov 24 '18 at 23:00
Okay I found out why it happens: it looks like I'm compiling against Java 11 on my machine, where that method has been introduced. Whereas on travis-ci the java version is lower.
– Luca
Nov 24 '18 at 23:00
4
4
You should create an answer yourself. This is useful.
– ygor
Nov 25 '18 at 0:38
You should create an answer yourself. This is useful.
– ygor
Nov 25 '18 at 0:38
|
show 1 more comment
1 Answer
1
active
oldest
votes
After a bit of digging, I had the idea of looking at the JavaDoc for isEmpty
and found out that it says
since: 11
On my machine I was compiling against Java11, whereas on Travis the java version was lower.
add a comment |
Your Answer
StackExchange.ifUsing("editor", function () {
StackExchange.using("externalEditor", function () {
StackExchange.using("snippets", function () {
StackExchange.snippets.init();
});
});
}, "code-snippets");
StackExchange.ready(function() {
var channelOptions = {
tags: "".split(" "),
id: "1"
};
initTagRenderer("".split(" "), "".split(" "), channelOptions);
StackExchange.using("externalEditor", function() {
// Have to fire editor after snippets, if snippets enabled
if (StackExchange.settings.snippets.snippetsEnabled) {
StackExchange.using("snippets", function() {
createEditor();
});
}
else {
createEditor();
}
});
function createEditor() {
StackExchange.prepareEditor({
heartbeatType: 'answer',
autoActivateHeartbeat: false,
convertImagesToLinks: true,
noModals: true,
showLowRepImageUploadWarning: true,
reputationToPostImages: 10,
bindNavPrevention: true,
postfix: "",
imageUploader: {
brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
allowUrls: true
},
onDemand: true,
discardSelector: ".discard-answer"
,immediatelyShowMarkdownHelp:true
});
}
});
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f53461126%2fvalue-isblank-is-not-a-member-of-string%23new-answer', 'question_page');
}
);
Post as a guest
Required, but never shown
1 Answer
1
active
oldest
votes
1 Answer
1
active
oldest
votes
active
oldest
votes
active
oldest
votes
After a bit of digging, I had the idea of looking at the JavaDoc for isEmpty
and found out that it says
since: 11
On my machine I was compiling against Java11, whereas on Travis the java version was lower.
add a comment |
After a bit of digging, I had the idea of looking at the JavaDoc for isEmpty
and found out that it says
since: 11
On my machine I was compiling against Java11, whereas on Travis the java version was lower.
add a comment |
After a bit of digging, I had the idea of looking at the JavaDoc for isEmpty
and found out that it says
since: 11
On my machine I was compiling against Java11, whereas on Travis the java version was lower.
After a bit of digging, I had the idea of looking at the JavaDoc for isEmpty
and found out that it says
since: 11
On my machine I was compiling against Java11, whereas on Travis the java version was lower.
answered Nov 25 '18 at 13:15
LucaLuca
3891718
3891718
add a comment |
add a comment |
Thanks for contributing an answer to Stack Overflow!
- Please be sure to answer the question. Provide details and share your research!
But avoid …
- Asking for help, clarification, or responding to other answers.
- Making statements based on opinion; back them up with references or personal experience.
To learn more, see our tips on writing great answers.
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f53461126%2fvalue-isblank-is-not-a-member-of-string%23new-answer', 'question_page');
}
);
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
2
It does not compile on my local machine either. I am getting the same error. I noticed, that you have two branches.
master
compiles,aggregates
does not compile. Are you sure, that you compileaggregates
on your local machine too ?– ygor
Nov 24 '18 at 19:42
3
Btw.
optional.isDefined && optional.get.isEmpty
can be written asoptional.exists(_.isEmpty)
. See: stackoverflow.com/questions/24086493/…– ygor
Nov 24 '18 at 19:49
Yes, I am working on that branch in local. Thanks for the suggestion about the option, I appreciate it, being somewhat new in Scala. I will try to do a clean build to see why this issue.
– Luca
Nov 24 '18 at 20:29
2
Okay I found out why it happens: it looks like I'm compiling against Java 11 on my machine, where that method has been introduced. Whereas on travis-ci the java version is lower.
– Luca
Nov 24 '18 at 23:00
4
You should create an answer yourself. This is useful.
– ygor
Nov 25 '18 at 0:38