I upgraded Dart Editor today and now the Editor will not activate.
Instead I receive the following error in the "Tools Output" window:
"pub list-package-dirs failed: exit code 1"
None of the below actions has resolved this issue:
- Deleting and reinstalling Dart Editor and Dartium
- Running pub cache repair from command line,
- Manually deleting package cache directory and running pub get again.
I appreciate any advise on this.
My Dart Editor is version 1.8.3.release (STABLE)
Dart SDK version 1.8.3
Pubspec.yaml contents:
name: mpower
description: Sample app built with the polymer.dart package
environment:
sdk: '>=1.2.0 <2.0.0'
dependencies:
polymer: '>=0.15.1 <0.16.0'
dev_dependencies:
unittest: '>=0.10.0 <0.11.0'
transformers:
- polymer:
entry_points:
- web/index.html
Result of pub-list-package-dirs from Command Line:
{"packages":{"mpower":"C:\Users\jfontana\dart\mpower\lib","browser":"C:\Users\jfontana\AppData\Roaming\Pub\Cache\hosted\pub.dartlang.org\browser-0.10.0+2\lib","matcher":"C:\Users\jfontana\AppData\Roaming\Pub\Cache\hosted\pub.dartlang.org\matcher-0.10.1+1\lib","utf":"C:\Users\jfontana\AppData\Roaming\Pub\Cache\hosted\pub.dartlang.org\utf-0.9.0+1\lib","source_span":"C:\Users\jfontana\AppData\Roaming\Pub\Cache\hosted\pub.dartlang.org\source_span-1.0.0\lib","web_components":"C:\Users\jfontana\AppData\Roaming\Pub\Cache\hosted\pub.dartlang.org\web_components-0.9.0\lib","string_scanner":"C:\Users\jfontana\AppData\Roaming\Pub\Cache\hosted\pub.dartlang.org\string_scanner-0.1.2\lib","source_maps":"C:\Users\jfontana\AppData\Roaming\Pub\Cache\hosted\pub.dartlang.org\source_maps-0.10.0\lib","mock":"C:\Users\jfontana\AppData\Roaming\Pub\Cache\hosted\pub.dartlang.org\mock-0.10.0+1\lib","watcher":"C:\Users\jfontana\AppData\Roaming\Pub\Cache\hosted\pub.dartlang.org\watcher-0.9.3\lib","args":"C:\Users\jfontana\AppData\Roaming\Pub\Cache\hosted\pub.dartlang.org\args-0.12.1\lib","collection":"C:\Users\jfontana\AppData\Roaming\Pub\Cache\hosted\pub.dartlang.org\collection-1.1.0\lib","barback":"C:\Users\jfontana\AppData\Roaming\Pub\Cache\hosted\pub.dartlang.org\barback-0.15.0+1\lib","code_transformers":"C:\Users\jfontana\AppData\Roaming\Pub\Cache\hosted\pub.dartlang.org\code_transformers-0.2.3+1\lib","csslib":"C:\Users\jfontana\AppData\Roaming\Pub\Cache\hosted\pub.dartlang.org\csslib-0.11.0+2\lib","pool":"C:\Users\jfontana\AppData\Roaming\Pub\Cache\hosted\pub.dartlang.org\pool-1.0.1\lib","polymer":"C:\Users\jfontana\AppData\Roaming\Pub\Cache\hosted\pub.dartlang.org\polymer-0.15.1+3\lib","template_binding":"C:\Users\jfontana\AppData\Roaming\Pub\Cache\hosted\pub.dartlang.org\template_binding-0.13.1\lib","smoke":"C:\Users\jfontana\AppData\Roaming\Pub\Cache\hosted\pub.dartlang.org\smoke-0.2.1+1\lib","stack_trace":"C:\Users\jfontana\AppData\Roaming\Pub\Cache\hosted\pub.dartlang.org\stack_trace-0.9.3+2\lib","html5lib":"C:\Users\jfontana\AppData\Roaming\Pub\Cache\hosted\pub.dartlang.org\html5lib-0.12.0\lib","path":"C:\Users\jfontana\AppData\Roaming\Pub\Cache\hosted\pub.dartlang.org\path-1.3.0\lib","observe":"C:\Users\jfontana\AppData\Roaming\Pub\Cache\hosted\pub.dartlang.org\observe-0.12.1+1\lib","logging":"C:\Users\jfontana\AppData\Roaming\Pub\Cache\hosted\pub.dartlang.org\logging-0.9.2\lib","yaml":"C:\Users\jfontana\AppData\Roaming\Pub\Cache\hosted\pub.dartlang.org\yaml-2.0.1+1\lib","unittest":"C:\Users\jfontana\AppData\Roaming\Pub\Cache\hosted\pub.dartlang.org\unittest-0.10.1+2\lib","analyzer":"C:\Users\jfontana\AppData\Roaming\Pub\Cache\hosted\pub.dartlang.org\analyzer-0.22.4\lib","polymer_expressions":"C:\Users\jfontana\AppData\Roaming\Pub\Cache\hosted\pub.dartlang.org\polymer_expressions-0.13.0\lib"},"input_files":["C:\Users\jfontana\dart\mpower\pubspec.lock","C:\Users\jfontana\dart\mpower\pubspec.yaml"]}
My OS is Windows 8.1
Java Version "1.8.0_25"
Java SE Runtime Environment (build 1.80_25-b18)
Java Hotspot 64-bit Server VM (build 25.25-b02, mixed mode)
Dart Editor version 1.8.3.release (STABLE)
Dart SDK version 1.8.3
I installed Dart by downloading darteditor-windows-x64.zip
and extracting contents into C:\Dart folder
Related
I had Dart SDK with version 2.16 installed and worked fine on my machine.
I tried to install the Dart with version 3 which is currently in development (3.0.0-0.0.dev), so in order to try it, I replaced the path of the Dart sdk in the environment variables with the path of the new dart with version 3, Then I created a new project on VScode, and this showed up:
Here I am writing code with the Records feature ( Which exists only in that Dart 3 dev version), and this error shows up:
This requires the 'records' language feature to be enabled.
Try updating your pubspec.yaml to set the minimum SDK constraint to 3.0.0 or higher, and running 'pub get'.
But on my pubspec.yaml:
environment:
sdk: '>=3.0.0-0.0.dev <3.0.0'
but that error is thrown, and I have no idea what cause it and how I can fix it and run the code successfully.
Thank you.
When running tests on Cypress 8.6.0 and above, we get the following error:
Full version info:
Cypress package version: 8.6.0
Cypress binary version: 8.6.0
Electron version: 14.1.0
Bundled Node version: 14.17.0
The tests works fine, and we got no render issue on versions below 8.6.0, such as 8.5.0. They start to appear in version 8.6.0.
Full version info from one of the working releases:
Cypress package version: 8.5.0
Cypress binary version: 8.5.0
Electron version: 13.2.0
Bundled Node version: 14.16.0
Perhaps there's something in the new version of Electron/Chromium, bundled with Cypress 8.6.0, that makes it crash?
How could one go on about trobuleshooting this further? Is there any way to run the specific version of Electron (headless) manually on the machine, to see if it works at all with that version of Chromium?
Any input is appreciated, thank you!
I'm having problems with VS Code not able to find packages after updating to dart 2.17. This worked fine while using dart 2.16.
With the following dart file:
import 'package:test/test.dart';
...
And the following pubspec.yaml
dev_dependencies:
test: ^1.17.4
VSCode is showing that there's a problem:
Target of URI doesn't exist: 'package:test/test.dart'.
Try creating the file referenced by the URI, or Try using a URI for a file that does exist.
The project can be run from CLI fine, just that VS Code IDE is showing issues to resolve.
This is using:
VSCode Version: 1.67.2
Dart extension in VSCode: v3.40.0
macOS 12.4
Dart SDK version: 2.17.1 (stable) (Tue May 17 17:58:21 2022 +0000) on "macos_arm64"
Note: This is a pure dart project, no flutter libraries are installed/used.
We have developed an application on the dart version 1.4.2 and has a pubspec.yaml following configuration
dependencies:
browser: any
angular: 0.12.0
angular_ui: ">=0.5.1 <0.6.0"
logging: ">=0.9.1+1 <0.10.0"
json_object: any
js: 0.2.2
It is running fine on chrome version 77.0.3865.120, but when I upgrade the chrome version, so dart is not working or not supporting properly.It generates following error in the Web Developer Tool Console.
"NullError: Cannot call "call" on null↵↵STACKTRACE:↵TypeError: Cannot read property 'call' of undefined↵
at qEj.cv.er (https://localhost/xxxx/secure/secure.dart.js:46593:70)↵
at ecJ.$6 https://localhost/xxxx/secure/secure.dart.js:6898:5)↵
at Wan.$1 (https://localhost/xxxx/secure/secure.dart.js:6887:5)↵
at dx.wh (https://localhost/xxxx/secure/secure.dart.js:59133:32)↵
at dx.h2 (https://localhost/xxxx/secure/secure.dart.js:59134:37)↵
at qo.ymM.Ix (https://localhost/xxxx/secure/secure.dart.js:58919:49)↵
at qo.ymM.y6 (https://localhost/xxxx/secure/secure.dart.js:58932:29)↵
at atm.$1 (https://localhost/xxxx/secure/secure.dart.js:5860:10)↵
at dart.bQ (https://localhost/xxxx/secure/secure.dart.js:17363:29)↵
at Gv.Q.aN (https://localhost/xxxx/secure/secure.dart.js:2512:28)"
I am also putting before and after image that how it was on chrome version 77.0.3865.120 and How It was after updating to new chrome version.
Before
After Update to new chrome version
You can see that translation is not working any more on the webpage and It is appearing as it is, we have in the code.
I got Dart version 2.9.0. And my flutter is running with that version now.
However, I got this message:
Set literals weren't supported until version 2.2, but this code is required to be able to run on earlier versions
But I don't want it to be required to run on Dart versions earlier than 2.2.
How do I force it to run only on versions after 2.2 ?
You can edit the dart sdk constraints in your pubspec.yaml file to only use dart versions 2.2 and later.
environment:
sdk: '>=2.2.0 <3.0.0'
See this site for more information about the pubspec.yaml file.