IFS-HSR / SConsolidator

An Eclipse plug-in for the build system SCons (scons.org).
24 stars 10 forks source link

hyperlinking build errors in console view does not work with local scons build #17

Closed lokimon closed 9 years ago

lokimon commented 10 years ago

We have a cross platform project that we can either build locally using the scons command, or send to remote build servers by adding a buildserver= option.

If there are build errors, the local build does not enable hyperlinking, where as the remote build does.

Local builds are built using visual studios "cl" command. Remote builds are using gcc.

When the local build fails, the path looks like this.

path/to/file.cpp:(50) : error C2065: ...

When the remote build fails, the path looks like this.

path/to/file.cpp:50 : error: ...

As local builds are much faster, we would love to get this working. Any ideas how?

Thanks in advance for your help.

-sb

PeterSommerlad commented 10 years ago

What is the toolchain you have set in your Eclipse CDT project settings? This influences the Error Parser that is used. It might be, that Sconsolidator is always assuming/setting a GCC toolchain (I do not know). If possible, you can circumvent the issue by compiling with MinGW locally on Windows, which uses GCC and emits error messages in its format.

lokimon commented 10 years ago

Toolchain is set to Microsoft Visual C++, so that should work with the cl.exe compiler, right?

mrueegg commented 10 years ago

SConsolidator currently does only support the GCC toolchain. This includes the component to collect all include paths and macros for your CDT project settings, the build dependency overview, but also the error parser SConsolidator is using (I had to implement my own version of it because of some technical details like SCons variant dirs, etc.).

Nevertheless, if it helps, then I can try to make the error parser more flexible and consider more toolchains than GCC.

lokimon commented 10 years ago

That would be awesome!

mrueegg commented 9 years ago

Done. Please update and retry.

lokimon commented 9 years ago

I'm having troubles installing the latest version of sconsolidator.

using eclipse luna R or SR1

An error occurred while collecting items to be installed session context was:(profile=epp.package.cpp, phase=org.eclipse.equinox.internal.p2.engine.phases.Collect, operand=, action=). Artifact not found: http://www.sconsolidator.com/update/plugins/ch.hsr.ifs.sconsolidator.core_0.6.0.201410051446.jar. http://www.sconsolidator.com/update/plugins/ch.hsr.ifs.sconsolidator.core_0.6.0.201410051446.jar Artifact not found: http://www.sconsolidator.com/update/features/ch.hsr.ifs.sconsolidator.feature_0.6.0.201410051446.jar. http://www.sconsolidator.com/update/features/ch.hsr.ifs.sconsolidator.feature_0.6.0.201410051446.jar Artifact not found: http://www.sconsolidator.com/update/plugins/ch.hsr.ifs.sconsolidator.help_0.6.0.201410051446.jar. http://www.sconsolidator.com/update/plugins/ch.hsr.ifs.sconsolidator.help_0.6.0.201410051446.jar

lokimon commented 9 years ago

Looks like a permission problem. http://www.sconsolidator.com/update/plugins/ch.hsr.ifs.sconsolidator.core_0.6.0.201410051446.jar

Gives me a Forbidden error.
You don't have permission to access ... on this server.

lokimon commented 9 years ago

Still forbidden

mrueegg commented 9 years ago

I'm sorry for the inconvenience. We currently have a problem with our build. Therefore, the latest version of SConsolidator is not available. I'll let you know as soon as this is fixed.

misto commented 9 years ago

Yes, we had a permissions problem on our server. Please try again!

lokimon commented 9 years ago

I'm still having the same issue. but perhaps it's how I have Eclipse or the project that's set up that's wrong? What settings need to be configured in order to have sconsolidator parse errors correctly for errors.

no_hyperlink

mrueegg commented 9 years ago

I made the console error parser more flexible in terms of the expected compiler error format. Please update and try again.

lokimon commented 9 years ago

Just thought I'd let you know, it works now. Thanks a ton! It's appreciated!