Skip to content
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

Can't build Terminal Studio Lite on Windows 10 #1

Open
Tembocs opened this issue Oct 2, 2020 · 3 comments
Open

Can't build Terminal Studio Lite on Windows 10 #1

Tembocs opened this issue Oct 2, 2020 · 3 comments

Comments

@Tembocs
Copy link

Tembocs commented Oct 2, 2020

I tried to build Terminal Studio Lite and got this error message. I use Flutter 1.23 master channel on Windows 10 version 2004, build 20201.1000.

>  flutter run --release
Launching lib\main.dart on Windows in release mode...
~\flutter\lite\windows\runner\flutter_window.cpp(23,44): error C2664: 'void RegisterPlugins(flutter::PluginRegistry *)': 
    cannot convert argument 1 from 'flutter::FlutterViewController *' to 'flutter::PluginRegistry *'
    [~\flutter\lite\build\windows\runner\lite.vcxproj]

~\flutter\lite\windows\runner\run_loop.cpp(63,29):
    error C2039: 'ProcessMessages': is not a member of 'flutter::FlutterViewController' 
    [~\flutter\lite\build\windows\runner\lite.vcxproj]
Building Windows application...
Exception: Build process failed.
@xtyxtyx
Copy link
Member

xtyxtyx commented Oct 3, 2020

It seems that flutter had updated its windows template since 1.23.0.

Try delete the windows folder and run flutter create ., or checkout the flutter_1.23.0 branch which is compatible with Flutter 1.23.0+.

@Tembocs
Copy link
Author

Tembocs commented Oct 3, 2020

After cloning the project afresh and upgraded Flutter successful built the project but it starts with the Lite terminal showing this message:

Do you want to run software from this untrusted publisher?                                                                                                                                     
File C:\Users\<user-name>\Documents\PowerShell\Modules\PSReadline\2.1.0\PSReadLine.format.ps1xml is published by 
CN=Microsoft Corporation, O=Microsoft Corporation, L=Redmond, S=Washington, C=US    
and is not trusted on your system. Only run scripts from trusted publishers.                                                                                                                   
[V] Never run  [D] Do not run  [R] Run once  [A] Always run  [?] Help (default is "D"):    

It does not allow for typing anything, so I can't accept or deny anything.

@xtyxtyx
Copy link
Member

xtyxtyx commented Oct 4, 2020

Try run the following command in Powershell

Set-ExecutionPolicy Unrestricted

Details: https://docs.microsoft.com/en-us/powershell/module/microsoft.powershell.security/set-executionpolicy?view=powershell-7

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants