goclipse icon indicating copy to clipboard operation
goclipse copied to clipboard

"guru" does not work properly in Goclipse.

Open Siisl opened this issue 8 years ago • 2 comments

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 ...

Siisl avatar Jun 02 '17 17:06 Siisl

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 avatar Aug 09 '17 01:08 dotwilbert

Submitted pull request #252

dotwilbert avatar Aug 09 '17 19:08 dotwilbert