Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Regenerate Bloop project in run #79

Open
PhilAndrew opened this issue Feb 13, 2020 · 2 comments
Open

Regenerate Bloop project in run #79

PhilAndrew opened this issue Feb 13, 2020 · 2 comments

Comments

@PhilAndrew
Copy link

If I add this to a script seed (chmod +x) and place in PATH then I run

seed run example:js

It does not work.

To explain what it does do, it downloads seed as an executable script to the current directory and exists.

Now I attempt to run

./seed run example:js

It fails with error

ⓘ Loading project build.toml...
ⓘ Build path: build
ⓘ Running command 'bloop bsp --socket /var/folders/_f/hdpyzm_n6xj0mc5z58_b0gfh0000gp/T/seed-bsp-1581629844458.socket'...
  Working directory: /Users/philip/home/projects/seedexample
↪ Connecting to BSP...
  PID: 33658
↪ Connecting to BSP...
↪ [BSP] The server is listening for incoming connections at local:///var/folders/_f/hdpyzm_n6xj0mc5z58_b0gfh0000gp/T/seed-bsp-1581629844458.socket...
↪ Connecting to BSP...
↪ [BSP] Accepted incoming BSP client connection at local:///var/folders/_f/hdpyzm_n6xj0mc5z58_b0gfh0000gp/T/seed-bsp-1581629844458.socket
↪ [BSP] request received: build/initialize
↪ [BSP] BSP initialization handshake complete.
ⓘ Compiling 1 modules...
ⓘ No project associated with Uri(file:///Users/philip/home/projects/seedexample/?id=example-js)
 [⠿] example (JavaScript) [░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░]
↪ [BSP] shutdown request received: build/shutdown
↪ BSP server cancelled, closing socket...
↪ Process terminated successfully

Your script

# Use latest released version
version=$(curl https://api.github.com/repos/tindzk/seed/tags | jq -r '.[0].name')

# Use pre-release version
version=$(curl https://api.bintray.com/packages/tindzk/maven/seed | jq -r '.latest_version')

blp-coursier bootstrap \
    -r bintray:tindzk/maven \
    tindzk:seed_2.12:$version \
    -f -o seed

@PhilAndrew
Copy link
Author

No, its my fault.

I needed to run

seed bloop

But I had not done so.

@tindzk
Copy link
Owner

tindzk commented Feb 14, 2020

This is indeed confusing and I plan to change the default behaviour such that run (re-)generates the Bloop project.

@tindzk tindzk reopened this Feb 14, 2020
@tindzk tindzk changed the title Seed not working on Apple Mac OSX Regenerate Bloop project in run Feb 14, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants