Skip to content

Commit

Permalink
chore: don't use burrito in dev (#161)
Browse files Browse the repository at this point in the history
  • Loading branch information
mhanberg authored Aug 11, 2023
1 parent 7f8fc19 commit ccebfff
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 24 deletions.
22 changes: 1 addition & 21 deletions bin/start
Original file line number Diff line number Diff line change
@@ -1,25 +1,5 @@
#!/usr/bin/env bash

# used for local development


set -e

cd "$(dirname "$0")"/.. || exit 1

function main() {
local machine
local arch
local target
machine="$(uname)"
arch="$(uname -m)"
target="${machine,,}_${arch,,}"

local

BURRITO_TARGET="$target" MIX_ENV=dev mix release --overwrite

exec "./burrito_out/next_ls_$target" "$@"
}

main "$@"
elixir -S mix run --no-halt -e "Application.ensure_all_started(:next_ls)" -- "$@"
6 changes: 3 additions & 3 deletions lib/next_ls/lsp_supervisor.ex
Original file line number Diff line number Diff line change
Expand Up @@ -33,10 +33,10 @@ defmodule NextLS.LSPSupervisor do
if @env == :test do
:ignore
else
argv = if @env == :prod, do: Burrito.Util.Args.get_arguments(), else: System.argv()

{opts, _, invalid} =
OptionParser.parse(Burrito.Util.Args.get_arguments(),
strict: [stdio: :boolean, port: :integer]
)
OptionParser.parse(argv, strict: [stdio: :boolean, port: :integer])

buffer_opts =
cond do
Expand Down

0 comments on commit ccebfff

Please sign in to comment.