Re: Indexing broken for one project

2022-02-12 Thread Kirk Kerekes via Cocoa-dev
Sort of straw-grasping I would try with Xcode under these circumstances…

Try changing the target CPU/OS setting to something else, build, and see if the 
indexing works. 

If it does, make the minimal changes needed to appropriately build your target. 

If it doesn’t, discard straw. 

Kirk Kerekes 
(iPhone)
___

Cocoa-dev mailing list (Cocoa-dev@lists.apple.com)

Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com

Help/Unsubscribe/Update your Subscription:
https://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com

This email sent to arch...@mail-archive.com


Re: Indexing broken for one project

2022-02-12 Thread Alex Zavatone via Cocoa-dev
Here’s an idea.  Create a new user on your Mac.  Open the project from that new 
user and see if it indexes.

It worked fine on my Mac

Good luck.

> On Feb 12, 2022, at 8:24 AM, Gabriel Zachmann via Cocoa-dev 
>  wrote:
> 
> Here is another attempt at getting to the root of the indexer problem I am 
> experiencing.
> 
> First of all, thanks a lot for your helpful hints, albeit they did not 
> resolve the issue.
> 
> Here is - for recap - the description in a nutshell of my original post:
> 
> 
> A few weeks ago, indexing in Xcode 13 stopped working for one of my 
> projects.
> So, for instance, "Jump to Definition" does not work any more.
> I don't know what stopped indexing to work.
> 
> 
> I have now tried executing the command you can find in the log window of 
> Xcode (Report Navigator),
> which leads to all the crashes.
> (Below, you can find the command for my case.)
> 
> The output in the shell was this:
> clang: error: unable to execute command: Segmentation fault: 11
> clang: error: clang frontend command failed due to signal (use -v to see 
> invocation)
> Apple clang version 13.0.0 (clang-1300.0.29.30)
> Target: x86_64-apple-macos10.14
> Thread model: posix
> InstalledDir: 
> /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin
> clang: error: unable to execute command: Segmentation fault: 11
> clang: note: diagnostic msg: Error generating preprocessed source(s).
> 
> So, I issued the command again with -v, which revealed the "invocation".
> (See below that invocation command.)
> 
> Issuing that clang command produced just this error message:
> 
> clang -cc1 version 13.0.0 (clang-1300.0.29.30) default target 
> x86_64-apple-darwin21.2.0
> Segmentation fault
> 
> 
> So, I am nowhere closer to the root of the problem.
> 
> 
> Does anyone have an idea, how i might get more information?
> 
> 
> Best regards, Gabriel
> 
> 
> 
> 
> Encl.:
> 
> Orig. clang command as reported in the Report Navigator:
> 
> /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/clang
>  -x objective-c -target x86_64-apple-macos10.14 -fmessage-length=0 
> -fdiagnostics-show-note-include-stack -fmacro-backtrace-limit=0 -std=gnu11 
> -fobjc-arc -fobjc-weak -fmodules 
> -fmodules-cache-path=/tmp/ModuleCache.noindex -fmodules-prune-interval=86400 
> -fmodules-prune-after=345600 -Wnon-modular-include-in-framework-module 
> -Werror=non-modular-include-in-framework-module -Wno-trigraphs 
> -fpascal-strings -O0 -fno-common -Wno-missing-field-initializers 
> -Wno-missing-prototypes -Werror=return-type -Wdocumentation 
> -Wunreachable-code -Wno-implicit-atomic-properties 
> -Werror=deprecated-objc-isa-usage -Wno-objc-interface-ivars 
> -Werror=objc-root-class -Wno-arc-repeated-use-of-weak -Wimplicit-retain-self 
> -Wduplicate-method-match -Wno-missing-braces -Wparentheses -Wswitch 
> -Wunused-function -Wno-unused-label -Wno-unused-parameter -Wunused-variable 
> -Wunused-value -Wempty-body -Wuninitialized -Wconditional-uninitialized 
> -Wno-unknown-pragmas -Wshadow -Wno-four-char-constants -Wconversion 
> -Wconstant-conversion -Wint-conversion -Wbool-conversion -Wenum-conversion 
> -Wfloat-conversion -Wnon-literal-null-conversion -Wobjc-literal-conversion 
> -Wsign-compare -Wshorten-64-to-32 -Wpointer-sign -Wno-newline-eof 
> -Wno-selector -Wno-strict-selector-match -Wundeclared-selector 
> -Wdeprecated-implementations -DDEBUG=1 -DDEBUG=1 -DSTAND_ALONE_APP=1 
> -DOBJC_OLD_DISPATCH_PROTOTYPES=0 -isysroot 
> /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX12.1.sdk
>  -fasm-blocks -fstrict-aliasing -Wprotocol -Wdeprecated-declarations -g 
> -Wno-sign-conversion -Winfinite-recursion -Wcomma 
> -Wblock-capture-autoreleasing -Wstrict-prototypes 
> -Wno-semicolon-before-method-body -Wunguarded-availability -index-store-path 
> /tmp/ArtSaver-hcwtwqkubldekzfijehvpaeowamp/Index/DataStore -iquote 
> /tmp/ArtSaver-hcwtwqkubldekzfijehvpaeowamp/Index/Build/Intermediates.noindex/ArtSaver.build/Debug/ArtSaverApp.build/ArtSaverApp-generated-files.hmap
>  
> -I/tmp/ArtSaver-hcwtwqkubldekzfijehvpaeowamp/Index/Build/Intermediates.noindex/ArtSaver.build/Debug/ArtSaverApp.build/ArtSaverApp-own-target-headers.hmap
>  
> -I/tmp/ArtSaver-hcwtwqkubldekzfijehvpaeowamp/Index/Build/Intermediates.noindex/ArtSaver.build/Debug/ArtSaverApp.build/ArtSaverApp-all-target-headers.hmap
>  -iquote 
> /tmp/ArtSaver-hcwtwqkubldekzfijehvpaeowamp/Index/Build/Intermediates.noindex/ArtSaver.build/Debug/ArtSaverApp.build/ArtSaverApp-project-headers.hmap
>  
> -I/tmp/ArtSaver-hcwtwqkubldekzfijehvpaeowamp/Index/Build/Products/Debug/include
>  
> -I/tmp/ArtSaver-hcwtwqkubldekzfijehvpaeowamp/Index/Build/Intermediates.noindex/ArtSaver.build/Debug/ArtSaverApp.build/DerivedSources-normal/x86_64
>  
> -I/tmp/ArtSaver-hcwtwqkubldekzfijehvpaeowamp/Index/Build/Intermediates.noindex/ArtSaver.build/Debug/ArtSaverApp.build/DerivedSources/x86_64
>  
> 

Re: Indexing broken for one project

2022-02-12 Thread Gabriel Zachmann via Cocoa-dev
Here is another attempt at getting to the root of the indexer problem I am 
experiencing.

First of all, thanks a lot for your helpful hints, albeit they did not resolve 
the issue.

Here is - for recap - the description in a nutshell of my original post:


 A few weeks ago, indexing in Xcode 13 stopped working for one of my 
 projects.
 So, for instance, "Jump to Definition" does not work any more.
 I don't know what stopped indexing to work.


I have now tried executing the command you can find in the log window of Xcode 
(Report Navigator),
which leads to all the crashes.
(Below, you can find the command for my case.)

The output in the shell was this:
clang: error: unable to execute command: Segmentation fault: 11
clang: error: clang frontend command failed due to signal (use -v to see 
invocation)
Apple clang version 13.0.0 (clang-1300.0.29.30)
Target: x86_64-apple-macos10.14
Thread model: posix
InstalledDir: 
/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin
clang: error: unable to execute command: Segmentation fault: 11
clang: note: diagnostic msg: Error generating preprocessed source(s).

So, I issued the command again with -v, which revealed the "invocation".
(See below that invocation command.)

Issuing that clang command produced just this error message:

clang -cc1 version 13.0.0 (clang-1300.0.29.30) default target 
x86_64-apple-darwin21.2.0
Segmentation fault


So, I am nowhere closer to the root of the problem.


Does anyone have an idea, how i might get more information?


Best regards, Gabriel




Encl.:

Orig. clang command as reported in the Report Navigator:

/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/clang
 -x objective-c -target x86_64-apple-macos10.14 -fmessage-length=0 
-fdiagnostics-show-note-include-stack -fmacro-backtrace-limit=0 -std=gnu11 
-fobjc-arc -fobjc-weak -fmodules -fmodules-cache-path=/tmp/ModuleCache.noindex 
-fmodules-prune-interval†400 -fmodules-prune-after45600 
-Wnon-modular-include-in-framework-module 
-Werror=non-modular-include-in-framework-module -Wno-trigraphs -fpascal-strings 
-O0 -fno-common -Wno-missing-field-initializers -Wno-missing-prototypes 
-Werror=return-type -Wdocumentation -Wunreachable-code 
-Wno-implicit-atomic-properties -WerrorÞprecated-objc-isa-usage 
-Wno-objc-interface-ivars -Werror=objc-root-class -Wno-arc-repeated-use-of-weak 
-Wimplicit-retain-self -Wduplicate-method-match -Wno-missing-braces 
-Wparentheses -Wswitch -Wunused-function -Wno-unused-label 
-Wno-unused-parameter -Wunused-variable -Wunused-value -Wempty-body 
-Wuninitialized -Wconditional-uninitialized -Wno-unknown-pragmas -Wshadow 
-Wno-four-char-constants -Wconversion -Wconstant-conversion -Wint-conversion 
-Wbool-conversion -Wenum-conversion -Wfloat-conversion 
-Wnon-literal-null-conversion -Wobjc-literal-conversion -Wsign-compare 
-Wshorten-64-to-32 -Wpointer-sign -Wno-newline-eof -Wno-selector 
-Wno-strict-selector-match -Wundeclared-selector -Wdeprecated-implementations 
-DDEBUG=1 -DDEBUG=1 -DSTAND_ALONE_APP=1 -DOBJC_OLD_DISPATCH_PROTOTYPES=0 
-isysroot 
/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX12.1.sdk
 -fasm-blocks -fstrict-aliasing -Wprotocol -Wdeprecated-declarations -g 
-Wno-sign-conversion -Winfinite-recursion -Wcomma -Wblock-capture-autoreleasing 
-Wstrict-prototypes -Wno-semicolon-before-method-body -Wunguarded-availability 
-index-store-path /tmp/ArtSaver-hcwtwqkubldekzfijehvpaeowamp/Index/DataStore 
-iquote 
/tmp/ArtSaver-hcwtwqkubldekzfijehvpaeowamp/Index/Build/Intermediates.noindex/ArtSaver.build/Debug/ArtSaverApp.build/ArtSaverApp-generated-files.hmap
 
-I/tmp/ArtSaver-hcwtwqkubldekzfijehvpaeowamp/Index/Build/Intermediates.noindex/ArtSaver.build/Debug/ArtSaverApp.build/ArtSaverApp-own-target-headers.hmap
 
-I/tmp/ArtSaver-hcwtwqkubldekzfijehvpaeowamp/Index/Build/Intermediates.noindex/ArtSaver.build/Debug/ArtSaverApp.build/ArtSaverApp-all-target-headers.hmap
 -iquote 
/tmp/ArtSaver-hcwtwqkubldekzfijehvpaeowamp/Index/Build/Intermediates.noindex/ArtSaver.build/Debug/ArtSaverApp.build/ArtSaverApp-project-headers.hmap
 
-I/tmp/ArtSaver-hcwtwqkubldekzfijehvpaeowamp/Index/Build/Products/Debug/include 
-I/tmp/ArtSaver-hcwtwqkubldekzfijehvpaeowamp/Index/Build/Intermediates.noindex/ArtSaver.build/Debug/ArtSaverApp.build/DerivedSources-normal/x86_64
 
-I/tmp/ArtSaver-hcwtwqkubldekzfijehvpaeowamp/Index/Build/Intermediates.noindex/ArtSaver.build/Debug/ArtSaverApp.build/DerivedSources/x86_64
 
-I/tmp/ArtSaver-hcwtwqkubldekzfijehvpaeowamp/Index/Build/Intermediates.noindex/ArtSaver.build/Debug/ArtSaverApp.build/DerivedSources
 -F/tmp/ArtSaver-hcwtwqkubldekzfijehvpaeowamp/Index/Build/Products/Debug 
-fsyntax-only /Users/zach/Code/ArtSaver/ArtSaverApp/AppDelegate.m -o 
/tmp/ArtSaver.build/Debug/ArtSaverApp.build/Objects-normal/x86_64/AppDelegate.o 
-Xclang -fallow-pcm-with-compiler-errors -ivfsoverlay