Giter VIP home page Giter VIP logo

Comments (22)

RSC-88 avatar RSC-88 commented on August 12, 2024 7

Why this plugin doesn't have versions? One bad commit and every project is down

from vsts-flutter-tasks.

FlorisDevreese avatar FlorisDevreese commented on August 12, 2024 2

Hi @aloisdeniel,

I tried this pipeline

  - task: FlutterInstall@0
    displayName: Install Flutter
    inputs:
      channel: 'stable'
      version: 'custom'
      customVersion: '1.12.13+hotfix.9'

and got his error: Cannot read property 'version' of undefined

2020-05-08T16:42:08.8602210Z ##[debug]Evaluating condition for step: 'Install Flutter'
2020-05-08T16:42:08.8603380Z ##[debug]Evaluating: SucceededNode()
2020-05-08T16:42:08.8603850Z ##[debug]Evaluating SucceededNode:
2020-05-08T16:42:08.8604380Z ##[debug]=> True
2020-05-08T16:42:08.8604950Z ##[debug]Result: True
2020-05-08T16:42:08.8605530Z ##[section]Starting: Install Flutter
2020-05-08T16:42:08.8612420Z ==============================================================================
2020-05-08T16:42:08.8612810Z Task         : Flutter Install
2020-05-08T16:42:08.8613080Z Description  : Install the Flutter environment.
2020-05-08T16:42:08.8613380Z Version      : 0.2.32
2020-05-08T16:42:08.8613590Z Author       : Aloïs Deniel
2020-05-08T16:42:08.8614100Z Help         : For more information, take a look at the Flutter [documentation](https://flutter.io)
2020-05-08T16:42:08.8614570Z ==============================================================================
2020-05-08T16:42:09.0295400Z ##[debug]agent.TempDirectory=/Users/runner/runners/2.166.4/work/_temp
2020-05-08T16:42:09.0317510Z ##[debug]loading inputs and endpoints
2020-05-08T16:42:09.0323050Z ##[debug]loading INPUT_CHANNEL
2020-05-08T16:42:09.0354220Z ##[debug]loading INPUT_VERSION
2020-05-08T16:42:09.0358640Z ##[debug]loading INPUT_CUSTOMVERSION
2020-05-08T16:42:09.0360950Z ##[debug]loading ENDPOINT_AUTH_SYSTEMVSSCONNECTION
2020-05-08T16:42:09.0363010Z ##[debug]loading ENDPOINT_AUTH_SCHEME_SYSTEMVSSCONNECTION
2020-05-08T16:42:09.0366270Z ##[debug]loading ENDPOINT_AUTH_PARAMETER_SYSTEMVSSCONNECTION_ACCESSTOKEN
2020-05-08T16:42:09.0374080Z ##[debug]loading SECRET_IOS-DISTRIBUTION_P12-PASSWORD
2020-05-08T16:42:09.0377130Z ##[debug]loading SECRET_ANDROIDKEYSTOREPASSWORD
2020-05-08T16:42:09.0378450Z ##[debug]loading SECRET_KEYCHAINPASSWORD
2020-05-08T16:42:09.0381300Z ##[debug]loading SECRET_SYSTEM_ACCESSTOKEN
2020-05-08T16:42:09.0384150Z ##[debug]loading SECRET_IOS_DEVELOPMENT_P12-PASSWORD
2020-05-08T16:42:09.0385720Z ##[debug]loading SECRET_ANDROIDKEYSTOREKEYPASSWORD
2020-05-08T16:42:09.0388210Z ##[debug]loaded 12
2020-05-08T16:42:09.0407490Z ##[debug]Agent.ProxyUrl=undefined
2020-05-08T16:42:09.0408670Z ##[debug]Agent.CAInfo=undefined
2020-05-08T16:42:09.0410300Z ##[debug]Agent.ClientCert=undefined
2020-05-08T16:42:09.0413480Z ##[debug]Agent.SkipCertValidation=undefined
2020-05-08T16:42:09.0495330Z ##[debug]Agent.ProxyUrl=undefined
2020-05-08T16:42:09.0497060Z ##[debug]Agent.CAInfo=undefined
2020-05-08T16:42:09.0497840Z ##[debug]Agent.ClientCert=undefined
2020-05-08T16:42:09.0502120Z ##[debug]check path : /Users/runner/runners/2.166.4/work/_tasks/FlutterInstall_fca8d27d-85f4-4d5d-a519-8d7a7edf15d7/0.2.32/node_modules/azure-pipelines-tool-lib/lib.json
2020-05-08T16:42:09.0504320Z ##[debug]adding resource file: /Users/runner/runners/2.166.4/work/_tasks/FlutterInstall_fca8d27d-85f4-4d5d-a519-8d7a7edf15d7/0.2.32/node_modules/azure-pipelines-tool-lib/lib.json
2020-05-08T16:42:09.0505380Z ##[debug]system.culture=en-US
2020-05-08T16:42:09.0540870Z ##[debug]channel=stable
2020-05-08T16:42:09.0544840Z ##[debug]version=custom
2020-05-08T16:42:09.0546710Z ##[debug]customVersion=1.12.13+hotfix.9
2020-05-08T16:42:09.1384910Z statusCode: 200
2020-05-08T16:42:09.1553110Z ##[debug]task result: Failed
2020-05-08T16:42:09.1605130Z ##[error]TypeError: Cannot read property 'version' of undefined
2020-05-08T16:42:09.1619240Z ##[debug]Processed: ##vso[task.issue type=error;]TypeError: Cannot read property 'version' of undefined
2020-05-08T16:42:09.1631370Z ##[debug]Processed: ##vso[task.complete result=Failed;]TypeError: Cannot read property 'version' of undefined
2020-05-08T16:42:09.1634430Z ##[section]Finishing: Install Flutter

When I run it with the latest flutter version instead of v1.12.13+hotfix.9, then it works 😁

  - task: FlutterInstall@0
    displayName: Install Flutter
    inputs:
      channel: 'stable'
      version: 'latest'

Hope this helps!

FYI: I run it on the macOS-10.15 VM agent

pool:
  vmImage: "macOS-10.15"

from vsts-flutter-tasks.

hectorvillag avatar hectorvillag commented on August 12, 2024 2
1.12.13+hotfix.9

I resolved this issue adding the v to the version string v1.12.13+hotfix.9

from vsts-flutter-tasks.

davidfranquet avatar davidfranquet commented on August 12, 2024 1

Yes.. It doesn't work

from vsts-flutter-tasks.

Sar777 avatar Sar777 commented on August 12, 2024 1

yeah, it is not working...

from vsts-flutter-tasks.

aloisdeniel avatar aloisdeniel commented on August 12, 2024 1

I published a new version without any dependency for http request.

Let me know if it works for you!

from vsts-flutter-tasks.

aloisdeniel avatar aloisdeniel commented on August 12, 2024 1

It seems that distant requests are failing on hosted agents, while working well on local machines.

I just published a 0.2.34 version based on curl. Not the prettiest solution, but let's hope it fixes the issue.

from vsts-flutter-tasks.

aloisdeniel avatar aloisdeniel commented on August 12, 2024 1

And for those who wonder about Azure Pipeline development, it is a real pain! You have different behaviours on hosted agents.

So sorry but I'm alone maintaining all of this, you can host your own extensions if you want to be sure of the stability.

Maybe, Microsoft will maintain this one day with paid engineers, when Xamarin will become obsolete. :)

from vsts-flutter-tasks.

rcharlier-delipay avatar rcharlier-delipay commented on August 12, 2024

@aloisdeniel do you have any idea about the fix deployment? Bug is really impacting right now ..
Thank you in advance !

from vsts-flutter-tasks.

FlorisDevreese avatar FlorisDevreese commented on August 12, 2024

Same issue here. Is there any way you can revert back to an old version
v0.2.15 worked for me

from vsts-flutter-tasks.

INDAPP avatar INDAPP commented on August 12, 2024

Same issue

from vsts-flutter-tasks.

alexaniko88 avatar alexaniko88 commented on August 12, 2024

Same problem here!

from vsts-flutter-tasks.

mweinand avatar mweinand commented on August 12, 2024

Same, please fix!

from vsts-flutter-tasks.

aloisdeniel avatar aloisdeniel commented on August 12, 2024

It seems to be a dependency that doesn't work on the agent ...

from vsts-flutter-tasks.

GerardUmbert avatar GerardUmbert commented on August 12, 2024

Same happens for me, any simpler solution with no upgrades of everything?

from vsts-flutter-tasks.

hectorvillag avatar hectorvillag commented on August 12, 2024

Same issue

from vsts-flutter-tasks.

chadrickman avatar chadrickman commented on August 12, 2024

I'm still getting this error. ##[error]TypeError: Cannot read property 'version' of undefined.

==============================================================================
Task         : Flutter Install
Description  : Install the Flutter environment.
Version      : 0.2.33
Author       : Aloïs Deniel
Help         : For more information, take a look at the Flutter [documentation](https://flutter.io)
==============================================================================

from vsts-flutter-tasks.

chadrickman avatar chadrickman commented on August 12, 2024

Thanks @hectorvillag that seems to have done the trick 🎉

from vsts-flutter-tasks.

chadrickman avatar chadrickman commented on August 12, 2024

Dropping this here in case anyone else runs into this. The Tests tasks is failing on publishing of results now as well. I've spun up a issue over at #54 if anyone else is having this issue.

from vsts-flutter-tasks.

aloisdeniel avatar aloisdeniel commented on August 12, 2024

Thanks a lot @hectorvillag.

I see why now, there's a prefix in the history file. I added the node request logic and added a check to uniformize all version numbers by removing that v prefix.

I hope we're finally good!

from vsts-flutter-tasks.

skela avatar skela commented on August 12, 2024

Install works ok for us now but not test, there’s another issue raised already for that thought just wanted to clarify if it helps at all.

from vsts-flutter-tasks.

aloisdeniel avatar aloisdeniel commented on August 12, 2024

There is dedicated issue.

I’ll close this one, since it seems okay for people.

from vsts-flutter-tasks.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.