You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
What is the HOME variable? There's no place to specify setting HOME. What is its value?
It's one of common system environments in Linux OS... You can search it in the internet.
Closing. Thanks.
I know about home, but what’s strange to me is this error message. Doesn’t my Linux have home? What should I do to make the program run properly. thanks.
hello,When I directly run main.dart, I receive the following error:
Dec 04 16:24:19 ztl demo_nolibs[48299]: #17 PointerRouter._dispatchEventToRoutes. (package:flutter/src/gestures/pointer_router.dart:143)
Dec 04 16:24:19 ztl demo_nolibs[48299]: #18 _LinkedHashMapMixin.forEach (dart:collection-patch/compact_hash.dart:625)
Dec 04 16:24:19 ztl demo_nolibs[48299]: #19 PointerRouter._dispatchEventToRoutes (package:flutter/src/gestures/pointer_router.dart:141)
Dec 04 16:24:19 ztl demo_nolibs[48299]: #20 PointerRouter.route (package:flutter/src/gestures/pointer_router.dart:127)
Dec 04 16:24:19 ztl demo_nolibs[48299]: #21 GestureBinding.handleEvent (package:flutter/src/gestures/binding.dart:488)
Dec 04 16:24:19 ztl demo_nolibs[48299]: #22 GestureBinding.dispatchEvent (package:flutter/src/gestures/binding.dart:468)
Dec 04 16:24:19 ztl demo_nolibs[48299]: #23 RendererBinding.dispatchEvent (package:flutter/src/rendering/binding.dart:333)
Dec 04 16:24:19 ztl demo_nolibs[48299]: #24 GestureBinding._handlePointerEventImmediately (package:flutter/src/gestures/binding.dart:413)
Dec 04 16:24:19 ztl demo_nolibs[48299]: #25 GestureBinding.handlePointerEvent (package:flutter/src/gestures/binding.dart:376)
Dec 04 16:24:19 ztl demo_nolibs[48299]: #26 GestureBinding._flushPointerEventQueue (package:flutter/src/gestures/binding.dart:323)
Dec 04 16:24:19 ztl demo_nolibs[48299]: #27 GestureBinding._handlePointerDataPacket (package:flutter/src/gestures/binding.dart:292)
Dec 04 16:24:19 ztl demo_nolibs[48299]: #28 _invoke1 (dart:ui/hooks.dart:186)
Dec 04 16:24:19 ztl demo_nolibs[48299]: #29 PlatformDispatcher._dispatchPointerDataPacket (dart:ui/platform_dispatcher.dart:424)
Dec 04 16:24:19 ztl demo_nolibs[48299]: #30 _dispatchPointerDataPacket (dart:ui/hooks.dart:119)
Dec 04 16:24:20 ztl demo_nolibs[48299]: [ERROR:flutter/runtime/dart_vm_initializer.cc(41)] Unhandled Exception: Bad state: The "HOME" environment variable is not set. This package (and POSIX) requires that HOME be set.
Dec 04 16:24:20 ztl demo_nolibs[48299]: #0 _getDirectory (package:xdg_directories/xdg_directories.dart:120)
Dec 04 16:24:20 ztl demo_nolibs[48299]: #1 _directoryFromEnvironmentWithFallback (package:xdg_directories/xdg_directories.dart:109)
Dec 04 16:24:20 ztl demo_nolibs[48299]: #2 dataHome (package:xdg_directories/xdg_directories.dart:170)
Dec 04 16:24:20 ztl demo_nolibs[48299]: #3 PathProviderELinux.getApplicationSupportPath (package:path_provider_elinux/src/path_provider_elinux.dart:52)
Dec 04 16:24:20 ztl demo_nolibs[48299]: #4 SharedPreferencesELinux._getLocalDataFile (package:shared_preferences_elinux/shared_preferences_elinux.dart:46)
Dec 04 16:24:20 ztl demo_nolibs[48299]: #5 SharedPreferencesELinux._reload (package:shared_preferences_elinux/shared_preferences_elinux.dart:56)
Dec 04 16:24:20 ztl demo_nolibs[48299]: #6 SharedPreferencesELinux._readPreferences (package:shared_preferences_elinux/shared_preferences_elinux.dart:73)
Dec 04 16:24:20 ztl demo_nolibs[48299]: #7 SharedPreferencesELinux.getAllWithParameters (package:shared_preferences_elinux/shared_preferences_elinux.dart:142)
Dec 04 16:24:20 ztl demo_nolibs[48299]: #8 SharedPreferencesELinux.getAll (package:shared_preferences_elinux/shared_preferences_elinux.dart:124)
Dec 04 16:24:20 ztl demo_nolibs[48299]: #9 SharedPreferencesDemoState._incrementCounter (package:demo_nolibs/main.dart:41)
Dec 04 16:24:20 ztl demo_nolibs[48299]: #10 _InkResponseState.handleTap (package:flutter/src/material/ink_well.dart:1154)
Dec 04 16:24:20 ztl demo_nolibs[48299]: #11 GestureRecognizer.invokeCallback (package:flutter/src/gestures/recognizer.dart:275)
Dec 04 16:24:20 ztl demo_nolibs[48299]: #12 TapGestureRecognizer.handleTapUp (package:flutter/src/gestures/tap.dart:654)
Dec 04 16:24:20 ztl demo_nolibs[48299]: #13 BaseTapGestureRecognizer._checkUp (package:flutter/src/gestures/tap.dart:311)
Dec 04 16:24:20 ztl demo_nolibs[48299]: #14 BaseTapGestureRecognizer.handlePrimaryPointer (package:flutter/src/gestures/tap.dart:244)
Dec 04 16:24:20 ztl demo_nolibs[48299]: #15 PrimaryPointerGestureRecognizer.handleEvent (package:flutter/src/gestures/recognizer.dart:630)
Dec 04 16:24:20 ztl demo_nolibs[48299]: #16 PointerRouter._dispatch (package:flutter/src/gestures/pointer_router.dart:98)
Dec 04 16:24:20 ztl demo_nolibs[48299]: #17 PointerRouter._dispatchEventToRoutes. (package:flutter/src/gestures/pointer_router.dart:143)
Dec 04 16:24:20 ztl demo_nolibs[48299]: #18 _LinkedHashMapMixin.forEach (dart:collection-patch/compact_hash.dart:625)
Dec 04 16:24:20 ztl demo_nolibs[48299]: #19 PointerRouter._dispatchEventToRoutes (package:flutter/src/gestures/pointer_router.dart:141)
Dec 04 16:24:20 ztl demo_nolibs[48299]: #20 PointerRouter.route (package:flutter/src/gestures/pointer_router.dart:127)
Dec 04 16:24:20 ztl demo_nolibs[48299]: #21 GestureBinding.handleEvent (package:flutter/src/gestures/binding.dart:488)
Dec 04 16:24:20 ztl demo_nolibs[48299]: #22 GestureBinding.dispatchEvent (package:flutter/src/gestures/binding.dart:468)
Dec 04 16:24:20 ztl demo_nolibs[48299]: #23 RendererBinding.dispatchEvent (package:flutter/src/rendering/binding.dart:333)
Dec 04 16:24:20 ztl demo_nolibs[48299]: #24 GestureBinding._handlePointerEventImmediately (package:flutter/src/gestures/binding.dart:413)
Dec 04 16:24:20 ztl demo_nolibs[48299]: #25 GestureBinding.handlePointerEvent (package:flutter/src/gestures/binding.dart:376)
Dec 04 16:24:20 ztl demo_nolibs[48299]: #26 GestureBinding._flushPointerEventQueue (package:flutter/src/gestures/binding.dart:323)
Dec 04 16:24:20 ztl demo_nolibs[48299]: #27 GestureBinding._handlePointerDataPacket (package:flutter/src/gestures/binding.dart:292)
Dec 04 16:24:20 ztl demo_nolibs[48299]: #28 _invoke1 (dart:ui/hooks.dart:186)
Dec 04 16:24:20 ztl demo_nolibs[48299]: #29 PlatformDispatcher._dispatchPointerDataPacket (dart:ui/platform_dispatcher.dart:424)
Dec 04 16:24:20 ztl demo_nolibs[48299]: #30 _dispatchPointerDataPacket (dart:ui/hooks.dart:119)
dependencies:
flutter:
sdk: flutter
shared_preferences_elinux:
git:
url: https://github.com/sony/flutter-elinux-plugins.git
path: packages/shared_preferences
ref: main
env:
flutter-elinux --version
Flutter 3.13.9 • channel [user-branch] • unknown source
Framework • revision d211f42860 (6 周前) • 2023-10-25 13:42:25 -0700
Engine • revision 0545f8705d
Tools • Dart 3.1.5 • DevTools 2.25.0
thanks~
The text was updated successfully, but these errors were encountered: