1. 12
  1. 1

    Looks like this builds electron on its own.. Possible to rewrite using devel/electron6?

    1. 2

      It appears that the version recently added to the ports tree uses the electron package: https://www.freshports.org/editors/vscode/

    2. 1

      wanted to add that, with this release (1.41), plugins I use for development (prettier, eslint, emacs keys) work flawlessly.

      What does not work is Facebook’s flow (the IDE plugin works, but the actual flow binary does not work on FreeBsd), so this is not IDE related at all, but would impede your experience if you rely on Flow.

      1. 1

        Is something lacking in linuxulator for flow?

        (also we really should have a native flow in ports already..)

        1. 1

          I think the error is coming from Flow’s JS wrapper (at least that’s the first step), it basically searches for flow-…platform…/flow and cannot find it, so throws an error.

          ~/pathtoproj/node_modules/flow-bin/cli.js:17
            throw new Error('Platform not supported.');
            ^
          
            Error: Platform not supported.
                at Object.<anonymous> (/usr/home/v/pathtoproj/node_modules/flow-bin/cli.js:17:9)
                at Module._compile (internal/modules/cjs/loader.js:778:30)
                at Object.Module._extensions..js (internal/modules/cjs/loader.js:789:10)
                at Module.load (internal/modules/cjs/loader.js:653:32)
                at tryModuleLoad (internal/modules/cjs/loader.js:593:12)
                at Function.Module._load (internal/modules/cjs/loader.js:585:3)
                at Function.Module.runMain (internal/modules/cjs/loader.js:831:12)
               at startup (internal/bootstrap/node.js:283:19)
               at bootstrapNodeJSCore (internal/bootstrap/node.js:622:3)
          

          flow.js

          #!/usr/bin/env node
          

          /** * Copyright (c) 2015-present, Facebook, Inc. * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. */ ‘use strict’; var spawn = require(‘child_process’).spawn;

          var input = process.argv.slice(2);
          var bin = require('./');
          
          if (bin !== null) {
            spawn(bin, input, {stdio: 'inherit'})
             .on('exit', process.exit);
          } else {
           throw new Error('Platform not supported.');
          

          }


          I tried to find flow in packages (although it would not help me immediately as my edit/build pipe line pulls flow-bin from node_modules)

          pkg search flow
          

          but did not see flow or flow-bin there