Buck: Latest release fails to build Java project

Created on 4 May 2017  路  11Comments  路  Source: facebook/buck

I recently upgraded to the latest version (buck-2017.05.04.01) on macOS.

I get the following error on a project that previously built:

Warning raised by BUCK file parser: ImportError: No module named buck_parser
No content to map due to end-of-input
at [Source: com.google.common.io.CountingInputStream@36def8d4; line: 1, column: 0]

Any ideas?

Most helpful comment

This usually happens when you have an old daemon hanging around from the previous version. We found that buck kill or killall java (more extreme) to get rid of any old buck daemon processes usually resolves this

All 11 comments

Looking into this.

As a work-around you can install an old version. For example:

brew unlink buck
brew install https://raw.githubusercontent.com/facebook/homebrew-fb/7511722fd58e999e5d8c3a415d4e8cd1deee8f21/buck.rb 

This usually happens when you have an old daemon hanging around from the previous version. We found that buck kill or killall java (more extreme) to get rid of any old buck daemon processes usually resolves this

@aiked it might be wise to invest time into killing old buck daemons after a buck update from brew or .buckversion. Currently we do this in our buckw for okbuck, and have not seen this issue ever since we started doing that

I ran the following to get the latest version working:

# Installed an old version
brew unlink buck
brew install https://raw.githubusercontent.com/facebook/homebrew-fb/7511722fd58e999e5d8c3a415d4e8cd1deee8f21/buck.rb

# Your suggestion
buck kill

# Install latest
brew unlink buck
brew install --HEAD facebook/fb/buck 

So it may have been the reinstall or buck kill (or both!) that did the trick.

@njlr You installed v2017.03.29.01, which is the last working one. I can reproduce the issue in this case, it looks like there is an issue during the bottling of the binary.

@kageiit Makes sense, we should do that. For this specific case, I don't think that the problem is the old buck running.

Update: the issue has been resolved internally but for unrelated reasons open-source buck is a bit behind, I expect this to be resolved tomorrow and a new working version to be out soon.

New release: https://github.com/facebook/buck/releases/tag/v2017.05.09.01
I checked that is working but tell me if something is weird.

I am still seeing this issue when building https://github.com/deezer/weslang

@CzokNorris, which target are you trying to build? Can you please provide repro steps?

/usr/local/Cellar/buck/2017.09.04.02/bin/buck build java/com/deezer/research/language:detection_service_interface

works for me, so I don't think there are any issues with latest release.

Was this page helpful?
0 / 5 - 0 ratings