question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Streams order is not respected

See original GitHub issue

When I try to use merge-stream with gulp-concat, the resulting order of concatenated code blocks is different.

const gulp = require('gulp');
const merge = require('merge-stream');
const less = require('gulp-less');
const concat = require('gulp-concat');
const rename = require('gulp-rename');

gulp.task('build', () => {
    const files = ['file1', 'file2', 'file3'];
    const streams = files.map((file) => {
        return gulp.src(`./${file}.less`)
            .pipe(less());
    });
    return merge(...streams)
        .pipe(concat(`merged.css`))
        .pipe(gulp.dest('./result'));
});

Issue Analytics

  • State:closed
  • Created 6 years ago
  • Reactions:2
  • Comments:5

github_iconTop GitHub Comments

0reactions
alexanderbycommented, Jul 6, 2017

ordered-read-streams says I’m using not readable streams.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Encounter order preservation in java stream - Stack Overflow
In other words forEachOrdered preserves the encounter order in an already ordered stream. It does not do any sorting or other ordering ...
Read more >
Java 8 Streams - Ordering - LogicBig
For unordered stream no stability is maintained, the duplicates are just ignored which come later in time rather than respecting encounter ...
Read more >
Stream Ordering - CUDA - NVIDIA Developer Forums
Items issued into the same stream will execute in issue order. Items issued into separate, non-default streams will have no ordering prescribed ...
Read more >
In what order do the elements of a stream become available?
The unordered method may be applied to a stream to indicate to the implementation that a stream's encounter order can be disregarded. Parallel...
Read more >
Getting higher stream number for lower order stream in ArcGIS ...
Result is incorrect, count of higher order streams must be significantly less than lower order. – FelixIP. Jul 14, 2018 at 21:21.
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found