{"action":"created","issue":{"url":"https://api.github.com/repos/corysimmons/lost/issues/103","labels_url":"https://api.github.com/repos/corysimmons/lost/issues/103/labels{/name}","comments_url":"https://api.github.com/repos/corysimmons/lost/issues/103/comments","events_url":"https://api.github.com/repos/corysimmons/lost/issues/103/events","html_url":"https://github.com/corysimmons/lost/issues/103","id":70709269,"number":103,"title":"lost-column throws errors","user":{"login":"subpixelch","id":5087726,"avatar_url":"https://avatars.githubusercontent.com/u/5087726?v=3","gravatar_id":"","url":"https://api.github.com/users/subpixelch","html_url":"https://github.com/subpixelch","followers_url":"https://api.github.com/users/subpixelch/followers","following_url":"https://api.github.com/users/subpixelch/following{/other_user}","gists_url":"https://api.github.com/users/subpixelch/gists{/gist_id}","starred_url":"https://api.github.com/users/subpixelch/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/subpixelch/subscriptions","organizations_url":"https://api.github.com/users/subpixelch/orgs","repos_url":"https://api.github.com/users/subpixelch/repos","events_url":"https://api.github.com/users/subpixelch/events{/privacy}","received_events_url":"https://api.github.com/users/subpixelch/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":9,"created_at":"2015-04-24T14:50:45Z","updated_at":"2015-05-11T13:53:35Z","closed_at":"2015-04-24T23:07:15Z","body":"$sudo gulp default\r\n\r\nError Output:\r\n```\r\n[16:42:23] Starting 'css'...\r\n{ name: 'TypeError',\r\n  message: 'Object 0 has no method \\'indexOf\\'',\r\n  stack: 'TypeError: Object 0 has no method \\'indexOf\\'\\n    at /srv/users/serverpilot/apps/knecht/public/node_modules/postcss/lib/container.js:330:41\\n    at /srv/users/serverpilot/apps/knecht/public/node_modules/postcss/lib/container.js:121:34\\n    at /srv/users/serverpilot/apps/knecht/public/node_modules/postcss/lib/container.js:106:26\\n    at Rule.each (/srv/users/serverpilot/apps/knecht/public/node_modules/postcss/lib/container.js:91:22)\\n    at Rule.eachInside (/srv/users/serverpilot/apps/knecht/public/node_modules/postcss/lib/container.js:105:21)\\n    at /srv/users/serverpilot/apps/knecht/public/node_modules/postcss/lib/container.js:109:32\\n    at Root.each (/srv/users/serverpilot/apps/knecht/public/node_modules/postcss/lib/container.js:91:22)\\n    at Root.eachInside (/srv/users/serverpilot/apps/knecht/public/node_modules/postcss/lib/container.js:105:21)\\n    at Root.eachDecl (/srv/users/serverpilot/apps/knecht/public/node_modules/postcss/lib/container.js:119:25)\\n    at Root.replaceValues (/srv/users/serverpilot/apps/knecht/public/node_modules/postcss/lib/container.js:328:14)',\r\n  showStack: false,\r\n  showProperties: true,\r\n  plugin: 'gulp-postcss' }\r\n[16:42:23] Finished 'css' after 47 ms\r\n```\r\n\r\nmy gulpfile:\r\n\r\n```Javascript\r\nvar gulp = require('gulp'),\r\n    postcss = require('gulp-postcss'),\r\n    sourcemaps = require('gulp-sourcemaps'),\r\n    minifyCss = require('gulp-minify-css'),\r\n    concat = require('gulp-concat'),\r\n    imagemin = require('gulp-imagemin'),\r\n    changed = require('gulp-changed'),\r\n    jshint = require('gulp-jshint'),\r\n    notify = require('gulp-notify'),\r\n    plumber = require('gulp-plumber'),\r\n    stripDebug = require('gulp-strip-debug'),\r\n    uglify = require('gulp-uglify'),\r\n    lost = require('lost'),\r\n    browserSync = require('browser-sync').create(),\r\n    autoprefixer = require('autoprefixer-core'),\r\n    reload = browserSync.reload,\r\n    mixins = require('postcss-mixins'),\r\n    atImport = require('postcss-import'),\r\n    selector = require('postcss-custom-selectors'),\r\n    size = require('postcss-size'),\r\n    nested = require('postcss-nested'),\r\n    simple = require('postcss-simple-vars'),\r\n    colorFunction = require('postcss-color-function'),\r\n    easing = require('postcss-easings'),\r\n    fontVariant = require('postcss-font-variant'),\r\n    postcssColorGray = require('postcss-color-gray'),\r\n    minmax = require('postcss-media-minmax'),\r\n    customMedia = require('postcss-custom-media'),\r\n    colorHexAlpha = require('postcss-color-hex-alpha'),\r\n    mqpacker = require('css-mqpacker'),\r\n    subpixel = require('postcss-banner'),\r\n    postfocus = require('postcss-focus'),\r\n    customProperties = require('postcss-custom-properties'),\r\n    calc = require('postcss-calc')\r\n\r\nvar onError = function(err) {\r\n    console.log(err);\r\n}\r\n\r\n\r\n// Static Server + watching scss/html files\r\ngulp.task('serve', ['css', 'images', 'jshint', 'scripts', 'fonts'], function() {\r\n    browserSync.init({\r\n        server: \"./www\",\r\n        port: 9000,\r\n        ghostMode: {\r\n            clicks: true,\r\n            location: true,\r\n            forms: true,\r\n            scroll: true\r\n        },\r\n        notify: false,\r\n        open: false\r\n    });\r\n    gulp.watch(\"./src/css/**/*\", ['css']);\r\n    gulp.watch(\"./src/js/**/*\", ['jshint', 'scripts']);\r\n    gulp.watch(\"./src/img/**/*\", ['images']);\r\n    gulp.watch(\"./src/fonts/**/*\", ['fonts']);\r\n    gulp.watch(\"./www/**\").on('change', reload);\r\n});\r\n\r\n\r\n\r\n// Copy fonts from a module outside of our project (like Bower)\r\n\r\ngulp.task('fonts', function() {\r\n    return gulp.src(['./src/fonts/**/*'], {\r\n            read: false\r\n        })\r\n        .pipe(gulp.dest('./www/fonts'));\r\n});\r\n\r\n// Compress and minify images to reduce their file size\r\n\r\ngulp.task('images', function() {\r\n    return gulp.src('./src/img/**')\r\n        .pipe(plumber({\r\n            errorHandler: onError\r\n        }))\r\n        .pipe(changed('./www/img'))\r\n        .pipe(imagemin())\r\n        .pipe(gulp.dest('./www/img'))\r\n        .pipe(notify({\r\n            message: 'Images task complete'\r\n        }));\r\n});\r\n\r\n\r\n// Hint all of our custom developed Javascript to make sure things are clean\r\n\r\ngulp.task('jshint', function() {\r\n    return gulp.src('./src/js/**/*.js')\r\n        .pipe(plumber({\r\n            errorHandler: onError\r\n        }))\r\n        .pipe(jshint())\r\n        .pipe(jshint.reporter('default'))\r\n        .pipe(notify({\r\n            message: 'JS Hinting task complete'\r\n        }));\r\n});\r\n\r\n\r\n// Combine/Minify/Clean Javascript files\r\ngulp.task('scripts', function() {\r\n    return gulp.src(['./src/js/plugins.js', './src/js/main.js', './src/js/vendor/**/*.js'])\r\n        .pipe(plumber({\r\n            errorHandler: onError\r\n        }))\r\n        .pipe(concat('scripts.js'))\r\n        .pipe(stripDebug())\r\n        .pipe(uglify())\r\n        .pipe(gulp.dest('./www/js/'))\r\n        .pipe(notify({\r\n            message: 'Scripts task complete'\r\n        }));\r\n});\r\n\r\n\r\ngulp.task('css', function() {\r\n    var processors = [\r\n        mixins(),\r\n        simple(),\r\n        atImport(),\r\n        nested,\r\n        customProperties({\r\n            preserve: false\r\n        }),\r\n        customMedia(),\r\n        minmax(),\r\n        selector(),\r\n        lost(),\r\n        fontVariant(),\r\n        colorHexAlpha(),\r\n        postcssColorGray(),\r\n        colorFunction(),\r\n        size,\r\n        easing(),\r\n        postfocus(),\r\n        calc({\r\n            precision: 2\r\n        }),\r\n        mqpacker(),\r\n        autoprefixer({\r\n            browsers: ['last 1 version']\r\n        }),\r\n        subpixel({\r\n            banner: '!  █▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀ ♥ ▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀█\\n' +\r\n                '     ▒     subpixel GmbH Rheinfelden    ▒\\n' +\r\n                '     ░         www.subpixel.ch          ░\\n' +\r\n                '     ▒       welcome@subpixel.ch        ▒\\n' +\r\n                '     █▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄█\\n' +\r\n                ''\r\n        })\r\n    ];\r\n    return gulp.src('./src/css/style.css')\r\n        .pipe(plumber({\r\n            errorHandler: onError\r\n        }))\r\n        .pipe(sourcemaps.init())\r\n        .pipe(postcss(processors))\r\n        .pipe(sourcemaps.write('.'))\r\n        .pipe(gulp.dest('./www/css'))\r\n        .pipe(reload({\r\n            stream: true,\r\n            notify: false\r\n        }));\r\n});\r\n\r\ngulp.task('default', ['serve']);\r\n```\r\n\r\n## This is my CSS\r\n```CSS\r\nheader {\r\n    lost-center: 1200px 30px;\r\n}\r\n.logo{\r\n  lost-column: 2/6;\r\n}\r\n```\r\n\r\nAll column-functions throw out the same error. \r\nWithout \"lost-column: 2/6\" it works fine as well\r\nAll other lost functions work just fine...\r\n\r\nAny ideas?"},"comment":{"url":"https://api.github.com/repos/corysimmons/lost/issues/comments/100916018","html_url":"https://github.com/corysimmons/lost/issues/103#issuecomment-100916018","issue_url":"https://api.github.com/repos/corysimmons/lost/issues/103","id":100916018,"user":{"login":"corysimmons","id":224636,"avatar_url":"https://avatars.githubusercontent.com/u/224636?v=3","gravatar_id":"","url":"https://api.github.com/users/corysimmons","html_url":"https://github.com/corysimmons","followers_url":"https://api.github.com/users/corysimmons/followers","following_url":"https://api.github.com/users/corysimmons/following{/other_user}","gists_url":"https://api.github.com/users/corysimmons/gists{/gist_id}","starred_url":"https://api.github.com/users/corysimmons/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/corysimmons/subscriptions","organizations_url":"https://api.github.com/users/corysimmons/orgs","repos_url":"https://api.github.com/users/corysimmons/repos","events_url":"https://api.github.com/users/corysimmons/events{/privacy}","received_events_url":"https://api.github.com/users/corysimmons/received_events","type":"User","site_admin":false},"created_at":"2015-05-11T13:53:35Z","updated_at":"2015-05-11T13:53:35Z","body":"@Dfmarulanda Can you try it without all the other PostCSS plugins?"}}