| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
There was a problem hiding this comment.
Thanks! One comment about error handling
Sorry, something went wrong.
| } catch (IOException | CompoundNotFoundException e) { | ||
| // TODO Auto-generated catch block | ||
| e.printStackTrace(); | ||
| return null; |
There was a problem hiding this comment.
I'd rather throw the exception forward and let the caller handle it. Returning null means all callers have to handle the null and that they lose the ability to provide a good error message.
Sorry, something went wrong.
|
Could you merge master into your branch? The tests should pass then. A problem with them was fixed in #871 |
Sorry, something went wrong.
|
I thought I had... I'll double check.
As far as the exception goes, can you actually pass that exception on? If I
try, Eclipse tells me it's an error...
…On Wed, Apr 15, 2020, 3:39 PM Jose Manuel Duarte ***@***.***> wrote:
Could you merge master into your branch? The tests should pass then. A
problem with them was fixed in #871
<#871>
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub
<#870 (comment)>, or
unsubscribe
<https://github.com/notifications/unsubscribe-auth/ABLFC4FBPELB7NPSY7DUQ3LRMYEOZANCNFSM4MIQXC4A>
.
|
Sorry, something went wrong.
|
I successfully merged the new stuff in.
There are ways to get the exception out of the lambda. They are a bit
tedious, but if it is helpful, I can give that a try...
…On Wed, Apr 15, 2020, 4:02 PM Erik McKee ***@***.***> wrote:
I thought I had... I'll double check.
As far as the exception goes, can you actually pass that exception on? If
I try, Eclipse tells me it's an error...
On Wed, Apr 15, 2020, 3:39 PM Jose Manuel Duarte ***@***.***>
wrote:
> Could you merge master into your branch? The tests should pass then. A
> problem with them was fixed in #871
> <#871>
>
> —
> You are receiving this because you authored the thread.
> Reply to this email directly, view it on GitHub
> <#870 (comment)>, or
> unsubscribe
> <https://github.com/notifications/unsubscribe-auth/ABLFC4FBPELB7NPSY7DUQ3LRMYEOZANCNFSM4MIQXC4A>
> .
>
|
Sorry, something went wrong.
|
There seems to be an issue with the new test. See logs from travis, there's a timeout after running GenbankReaderTest |
Sorry, something went wrong.
|
I'll take a look... if I run it in junit in eclipse it runs fine... that's
odd
…On Sun, Apr 19, 2020, 6:40 PM Jose Manuel Duarte ***@***.***> wrote:
There seems to be an issue with the new test. See logs from travis,
there's a timeout after running GenbankReaderTest
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub
<#870 (comment)>, or
unsubscribe
<https://github.com/notifications/unsubscribe-auth/ABLFC4CKWIYXS7Z365VEHXDRNN4VJANCNFSM4MIQXC4A>
.
|
Sorry, something went wrong.
|
How do i rerun Travis after adding a new commit? (or what is a better debugging mechanism here?) |
Sorry, something went wrong.
|
I've just triggered the travis tests again |
Sorry, something went wrong.
|
I commented out the new test to verify that it is the cause. Is there an
easy way to debug?
…On Tue, Apr 21, 2020, 1:41 PM Jose Manuel Duarte ***@***.***> wrote:
I've just triggered the travis tests again
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub
<#870 (comment)>, or
unsubscribe
<https://github.com/notifications/unsubscribe-auth/ABLFC4HHRK6FTP2BQZKPBW3RNXLFFANCNFSM4MIQXC4A>
.
|
Sorry, something went wrong.
|
OK, it still hangs even if not executing my test... |
Sorry, something went wrong.
Can you try to run mvn install locally from the command line or using Maven Install in eclipse? |
Sorry, something went wrong.
|
|
||
| @Test | ||
| public void testSequenceStream() { | ||
| CheckableInputStream inStream = new CheckableInputStream(this.getClass().getResourceAsStream("/two-dnaseqs.gb")); |
There was a problem hiding this comment.
Did you also include this file in the test resources directory? It seems not to be in this PR
Sorry, something went wrong.
| LinkedHashMap<String,S> sequences = new LinkedHashMap<>(); | ||
| @SuppressWarnings("unchecked") | ||
| int i=0; | ||
| while(true) { |
There was a problem hiding this comment.
This is what is hanging the build. Because the stream returned is null (the file does not exist, see comment below), sequence is always null and this while loop never finishes.
The while loop is not needed anymore, simply take an action if the sequence is null.
Sorry, something went wrong.
|
Isn't that the same file used by one of the existing tests?
…On Wed, Apr 22, 2020, 6:41 AM Aleix Lafita ***@***.***> wrote:
***@***.**** requested changes on this pull request.
------------------------------
In
biojava-core/src/test/java/org/biojava/nbio/core/sequence/io/GenbankReaderTest.java
<#870 (comment)>:
> @@ -163,6 +164,27 @@ public void testProcess() throws Exception {
assertEquals(3, dnaSequence.getAccession().getVersion().intValue());
assertTrue(genbankDNA.isClosed());
}
+
+ @test
+ public void testSequenceStream() {
+ CheckableInputStream inStream = new CheckableInputStream(this.getClass().getResourceAsStream("/two-dnaseqs.gb"));
Did you also include this file in the test resources directory? It seems
not to be in this PR
------------------------------
In
biojava-core/src/main/java/org/biojava/nbio/core/sequence/io/GenbankReader.java
<#870 (comment)>:
> @@ -153,35 +154,56 @@ public GenbankReader(
}
LinkedHashMap<String,S> sequences = new LinkedHashMap<>();
- @SuppressWarnings("unchecked")
int i=0;
while(true) {
This is what is hanging the build. Because the stream returned is null
(the file does not exist, see comment below), sequence is always null and
this while loop never finishes.
The while loop is not needed anymore, simply take an action if the
sequence is null.
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub
<#870 (review)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/ABLFC4CR43PCDWUP4RHOMALRN3CVRANCNFSM4MIQXC4A>
.
|
Sorry, something went wrong.
|
True the file exists, but the while loop is not needed anymore and probably the one causing the timeout in travis. @emckee2006 does maven install work locally for you? |
Sorry, something went wrong.
|
Why doesn't that method need the while loop? It still needs to support
grabbing multiple sequences...
…On Wed, Apr 22, 2020, 10:55 AM Aleix Lafita ***@***.***> wrote:
True the file exists, but the while loop is not needed anymore and
probably the one causing the timeout in travis. @emckee2006
<https://github.com/emckee2006> does maven install work locally for you?
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
<#870 (comment)>, or
unsubscribe
<https://github.com/notifications/unsubscribe-auth/ABLFC4ELVXNIZIJCRTIS4Z3RN4AP3ANCNFSM4MIQXC4A>
.
|
Sorry, something went wrong.
|
This needs help... closing for now... |
Sorry, something went wrong.
| Back | FazBrowse Home | New Git URL |
No description provided.