Skip to content
This repository has been archived by the owner on Apr 3, 2018. It is now read-only.

"guru" does not work properly in Goclipse. #246

Open
Siisl opened this issue Jun 2, 2017 · 2 comments
Open

"guru" does not work properly in Goclipse. #246

Siisl opened this issue Jun 2, 2017 · 2 comments

Comments

@Siisl
Copy link

Siisl commented Jun 2, 2017

Goclipse error msg:
Running: /usr/bin/guru -json describe /tmp/_goclipse1015479663249275511/src/describe_temp/describe.go:#8,#8
flag provided but not defined: -json
Run 'guru -help' for more information.
^^^ Terminated, exit code: 2 ^^^

In a shell works fine with "-format json" flag:
guru -format json describe ...

@dotwilbert
Copy link

Looks like the file composes an incorrect command line.
plugin_tooling/src/com/googlecode/goclipse/tooling/oracle/GuruDescribeOperation.java:

ArrayList2<String> commandLine = ArrayList2.create(
			guruPath,
			"-json",
			"describe",
			fileLoc.toPathString() + ":#" + offset + ",#" + offset
);

maybe should be

ArrayList2<String> commandLine = ArrayList2.create(
			guruPath,
			"-format",
			"json",
			"describe",
			fileLoc.toPathString() + ":#" + offset + ",#" + offset
);

@dotwilbert
Copy link

Submitted pull request #252

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants