bblanchon / SublimeText-HighlightBuildErrors

👻 A plugin for Sublime Text 3 that highlights the lines that caused errors in the build
https://sublime.wbond.net/packages/Highlight%20Build%20Errors
MIT License
12 stars 7 forks source link

Highlighting doesn't seem to pickup error shown in this build output #29

Closed humbleaudio closed 4 years ago

humbleaudio commented 4 years ago

Hello,

Thanks, great plugin! I'm excited to use it! Xcode has got me down ;\

I'm attempting to use the package for the first time, and it seems like this test build error should be getting picked up by the package. It's a standard clang error message, looks quite similar to your example on the package website so I thought it would be pretty seemless.

Any thoughts?

Prepare build
note: Using legacy build system
=== BUILD TARGET AppName - Shared Code OF PROJECT AppName WITH CONFIGURATION Debug ===

Check dependencies

CompileC /Users/will/Library/Developer/Xcode/DerivedData/AppName-qwertyuiopasdfghjklzxcvbnm12/Build/Intermediates.noindex/AppName.build/Debug/AppName\ -\ Shared\ Code.build/Objects-normal/x86_64/ThingRequest.o /Users/will/projfolder/ProductX/Products/AppName/ProductXAppName/NetworkManager_AppName/Kits/ThingRequest.cpp normal x86_64 c++ com.apple.compilers.llvm.clang.1_0.compiler
    cd /Users/will/projfolder/ProductX/Products/AppName/Builds/MacOSX
    export LANG=en_US.US-ASCII
    /Users/will/Downloads/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/clang -x c++ -target x86_64-apple-macos10.9 -fmessage-length=0 -fdiagnostics-show-note-include-stack -fmacro-backtrace-limit=0 -std=c++14 -stdlib=libc++ -Wno-trigraphs -fpascal-strings -O0 -fno-common -Wno-missing-field-initializers -Wno-missing-prototypes -Wunreachable-code -Wnon-virtual-dtor -Wno-overloaded-virtual -Wno-exit-time-destructors -Wno-missing-braces -Wparentheses -Wswitch -Wunused-function -Wno-unused-label -Wno-unused-parameter -Wunused-variable -Wunused-value -Wempty-body -Wuninitialized -Wno-unknown-pragmas -Wno-shadow -Wno-four-char-constants -Wno-conversion -Wconstant-conversion -Wint-conversion -Wbool-conversion -Wenum-conversion -Wno-float-conversion -Wnon-literal-null-conversion -Wobjc-literal-conversion -Wshorten-64-to-32 -Wno-newline-eof -Wno-c++11-extensions -D_DEBUG=1 -DDEBUG=1 -DJUCE_USE_CUSTOM_PLUGIN_STANDALONE_APP=1 -DJUCER_XCODE_MAC_F6D2F4CF=1 -DJUCE_APP_VERSION=1.0.0 -DJUCE_APP_VERSION_HEX=0x10000 -DJucePlugin_Build_VST=1 -DJucePlugin_Build_VST3=1 -DJucePlugin_Build_AU=1 -DJucePlugin_Build_AUv3=0 -DJucePlugin_Build_RTAS=0 -DJucePlugin_Build_AAX=1 -DJucePlugin_Build_Standalone=1 -DJucePlugin_Build_Unity=0 -DJUCE_SHARED_CODE=1 -isysroot /Users/will/Downloads/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk -fasm-blocks -fstrict-aliasing -Wdeprecated-declarations -Winvalid-offsetof -g -fvisibility-inlines-hidden -Wno-sign-conversion -Winfinite-recursion -Wmove -Wcomma -Wblock-capture-autoreleasing -Wstrict-prototypes -Wrange-loop-analysis -Wno-semicolon-before-method-body -index-store-path /Users/will/Library/Developer/Xcode/DerivedData/AppName-qwertyuiopasdfghjklzxcvbnm12/Index/DataStore -iquote /Users/will/Library/Developer/Xcode/DerivedData/AppName-qwertyuiopasdfghjklzxcvbnm12/Build/Intermediates.noindex/AppName.build/Debug/AppName\ -\ Shared\ Code.build/AppName-generated-files.hmap -I/Users/will/Library/Developer/Xcode/DerivedData/AppName-qwertyuiopasdfghjklzxcvbnm12/Build/Intermediates.noindex/AppName.build/Debug/AppName\ -\ Shared\ Code.build/AppName-own-target-headers.hmap -I/Users/will/Library/Developer/Xcode/DerivedData/AppName-qwertyuiopasdfghjklzxcvbnm12/Build/Intermediates.noindex/AppName.build/Debug/AppName\ -\ Shared\ Code.build/AppName-all-target-headers.hmap -iquote /Users/will/Library/Developer/Xcode/DerivedData/AppName-qwertyuiopasdfghjklzxcvbnm12/Build/Intermediates.noindex/AppName.build/Debug/AppName\ -\ Shared\ Code.build/AppName-project-headers.hmap -I/Users/will/projfolder/ProductX/Products/AppName/Builds/MacOSX/build/Debug/include -I../../../../External/VST3 -I../../../../External/VST2 -I../../JuceLibraryCode -I../../../../External/AAX -I../../../../External/AAX/Interfaces -I../../../../External/AAX/Interfaces/ACF -I../../../../External/JuceModules -I../../../../External/JuceModules/juce_audio_plugin_client -I/Users/will/Library/Developer/Xcode/DerivedData/AppName-qwertyuiopasdfghjklzxcvbnm12/Build/Intermediates.noindex/AppName.build/Debug/AppName\ -\ Shared\ Code.build/DerivedSources-normal/x86_64 -I/Users/will/Library/Developer/Xcode/DerivedData/AppName-qwertyuiopasdfghjklzxcvbnm12/Build/Intermediates.noindex/AppName.build/Debug/AppName\ -\ Shared\ Code.build/DerivedSources/x86_64 -I/Users/will/Library/Developer/Xcode/DerivedData/AppName-qwertyuiopasdfghjklzxcvbnm12/Build/Intermediates.noindex/AppName.build/Debug/AppName\ -\ Shared\ Code.build/DerivedSources -Wreorder -F/Users/will/projfolder/ProductX/Products/AppName/Builds/MacOSX/build/Debug -I../../../../External -MMD -MT dependencies -MF /Users/will/Library/Developer/Xcode/DerivedData/AppName-qwertyuiopasdfghjklzxcvbnm12/Build/Intermediates.noindex/AppName.build/Debug/AppName\ -\ Shared\ Code.build/Objects-normal/x86_64/ThingRequest.d --serialize-diagnostics /Users/will/Library/Developer/Xcode/DerivedData/AppName-qwertyuiopasdfghjklzxcvbnm12/Build/Intermediates.noindex/AppName.build/Debug/AppName\ -\ Shared\ Code.build/Objects-normal/x86_64/ThingRequest.dia -c /Users/will/projfolder/ProductX/Products/AppName/ProductXAppName/NetworkManager_AppName/Kits/ThingRequest.cpp -o /Users/will/Library/Developer/Xcode/DerivedData/AppName-qwertyuiopasdfghjklzxcvbnm12/Build/Intermediates.noindex/AppName.build/Debug/AppName\ -\ Shared\ Code.build/Objects-normal/x86_64/ThingRequest.o
/Users/will/projfolder/ProductX/Products/AppName/ProductXAppName/NetworkManager_AppName/Kits/ThingRequest.cpp:20:60: error: expected ';' at end of declaration
    DynamicObject::Ptr loopObj = jsonVar.getDynamicObject()
                                                           ^
                                                           ;
1 error generated.

** BUILD FAILED **

The following build commands failed:
    CompileC /Users/will/Library/Developer/Xcode/DerivedData/AppName-qwertyuiopasdfghjklzxcvbnm12/Build/Intermediates.noindex/AppName.build/Debug/AppName\ -\ Shared\ Code.build/Objects-normal/x86_64/ThingRequest.o /Users/will/projfolder/ProductX/Products/AppName/ProductXAppName/NetworkManager_AppName/Kits/ThingRequest.cpp normal x86_64 c++ com.apple.compilers.llvm.clang.1_0.compiler
(1 failure)
[Finished in 8.1s with exit code 65]
[cmd: ['xcodebuild', '-scheme', 'AppName - Shared Code', '-workspace', 'Products/XXX/Builds/MacOSX/AppName.xcodeproj/project.xcworkspace/']]
[dir: /Users/will/projfolder/ProductX]
[path: /Users/will/Dropbox/google-cloud-sdk/bin:/usr/local/bin:/usr/bin:/bin:/usr/sbin:/sbin:/opt/X11/bin:/Library/Apple/usr/bin:/Users/will/.rvm/bin:/Users/will/bin]
bblanchon commented 4 years ago

Hi,

For this plugin to work, it's crucial that you configure the file_regex settings correctly. See: https://www.sublimetext.com/docs/3/build_systems.html

Something like that:

^(.*):([0-9]+):?([0-9]+)?:? (.*)$

Best regards, Benoit

shickey commented 4 years ago

I got this working with this file_regex for my xcodebuild-based build system:

^([^0-9]*):([0-9]+):?([0-9]+)?:? (.*)$

The one in the previous comment was incorrectly capturing the line number in the first capture group. Hope it's helpful to someone!

humbleaudio commented 4 years ago

Nice thanks!