-
-
Notifications
You must be signed in to change notification settings - Fork 46
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Build failed on Windows #122
Comments
I changed the build key to: {
build = "cmake -S. -Bbuild -DCMAKE_BUILD_TYPE=Release && cmake --build build --config Release && cmake --install build --prefix build",
} and got this error messages when building. Import-PowerShellDataFile : The term 'Import-PowerShellDataFile' is not recognized as the name of a cmdlet, function, script file, or operable program. Check the spelling of the name, or if a path was included, verify that the path is correct and try again.
At C:\userpath\scoop\modules\Terminal-Icons\Terminal-Icons.psm1:210 char:33
+ $hash.Add($_.Basename, (Import-PowerShellDataFile $_.FullName ...
+ ~~~~~~~~~~~~~~~~~~~~~~~~~
+ CategoryInfo : ObjectNotFound: (Import-PowerShellDataFile:String) [], CommandNotFoundException
+ FullyQualifiedErrorId : CommandNotFoundException
Import-PowerShellDataFile : The term 'Import-PowerShellDataFile' is not recognized as the name of a cmdlet, function, script file, or operable program. Check the spelling of the name, or if a path was included, verify that the path is correct and try again.
At C:\userpath\scoop\modules\Terminal-Icons\Terminal-Icons.psm1:196 char:22
+ $colorData = Import-PowerShellDataFile $_.FullName
+ ~~~~~~~~~~~~~~~~~~~~~~~~~
+ CategoryInfo : ObjectNotFound: (Import-PowerShellDataFile:String) [], CommandNotFoundException
+ FullyQualifiedErrorId : CommandNotFoundException
Index operation failed; the array index evaluated to null.
At C:\userpath\scoop\modules\Terminal-Icons\Terminal-Icons.psm1:197 char:9
+ $hash[$colorData.Name] = $colorData
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
+ CategoryInfo : InvalidOperation: (:) [], RuntimeException
+ FullyQualifiedErrorId : NullArrayIndex
Index operation failed; the array index evaluated to null.
At C:\userpath\scoop\modules\Terminal-Icons\Terminal-Icons.psm1:198 char:9
+ $hash[$colorData.Name].Types.Directories[''] = $colorReset
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
+ CategoryInfo : InvalidOperation: (:) [], RuntimeException
+ FullyQualifiedErrorId : NullArrayIndex
Index operation failed; the array index evaluated to null.
At C:\Users\imBLZ\scoop\modules\Terminal-Icons\Terminal-Icons.psm1:199 char:9
+ $hash[$colorData.Name].Types.Files[''] = $colorReset
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
+ CategoryInfo : InvalidOperation: (:) [], RuntimeException
+ FullyQualifiedErrorId : NullArrayIndex
Import-PowerShellDataFile : The term 'Import-PowerShellDataFile' is not recognized as the name of a cmdlet, function, script file, or operable program. Check the spelling of the name, or if a path was included, verify that the path is correct and try again.
At C:\userpath\scoop\modules\Terminal-Icons\Terminal-Icons.psm1:196 char:22
+ $colorData = Import-PowerShellDataFile $_.FullName
+ ~~~~~~~~~~~~~~~~~~~~~~~~~
+ CategoryInfo : ObjectNotFound: (Import-PowerShellDataFile:String) [], CommandNotFoundException
+ FullyQualifiedErrorId : CommandNotFoundException
Index operation failed; the array index evaluated to null.
At C:\userpath\scoop\modules\Terminal-Icons\Terminal-Icons.psm1:197 char:9
+ $hash[$colorData.Name] = $colorData
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
+ CategoryInfo : InvalidOperation: (:) [], RuntimeException
+ FullyQualifiedErrorId : NullArrayIndex
Index operation failed; the array index evaluated to null.
At C:\userpath\scoop\modules\Terminal-Icons\Terminal-Icons.psm1:198 char:9
+ $hash[$colorData.Name].Types.Directories[''] = $colorReset
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
+ CategoryInfo : InvalidOperation: (:) [], RuntimeException
+ FullyQualifiedErrorId : NullArrayIndex
Index operation failed; the array index evaluated to null.
At C:\userpath\scoop\modules\Terminal-Icons\Terminal-Icons.psm1:199 char:9
+ $hash[$colorData.Name].Types.Files[''] = $colorReset
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
+ CategoryInfo : InvalidOperation: (:) [], RuntimeException
+ FullyQualifiedErrorId : NullArrayIndex
At line:1 char:46
+ cmake -S. -Bbuild -DCMAKE_BUILD_TYPE=Release && cmake --build build - ...
+ ~~
The token '&&' is not a valid statement separator in this version.
At line:1 char:86
+ ... BUILD_TYPE=Release && cmake --build build --config Release && cmake - ...
+ ~~
The token '&&' is not a valid statement separator in this version.
+ CategoryInfo : ParserError: (:) [], ParentContainsErrorRecordException
+ FullyQualifiedErrorId : InvalidEndOfLine |
The way I made it work is install Zig language, and execute, from plugin's folder zig cc -O3 -Wall -Werror -fpic -std=gnu99 -shared src/fzf.c -o build/libfzf.dll basically the same command but with |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
I tried using fzf plugin in Windows but failed at the building step, in Linux and Mac seems to be working just fine.
Windows version
11
Nvim version
9.5
fzf version
0.46.1 (3c0a630)
Error message
from lazy ui:
mkdir -p build cc -O3 -Wall -Werror -fpic -std=gnu99 -shared src/fzf.c -o build/libfzf.so process_begin: CreateProcess(NULL, cc -O3 -Wall -Werror -fpic -std=gnu99 -shared src/fzf.c -o build/libfzf.so, ...) failed. make: *** [Makefile:24: build/libfzf.so] Error 2
The text was updated successfully, but these errors were encountered: