Version Constrains make live difficult for users of rolling release linux distros. #31

Closed
opened 2026-05-29 05:29:23 -04:00 by istalri · 4 comments
Contributor

It seems the project heavily relies on "pinned" versions of dependencies. I now had trouble correctly building the nexus client especially with aot stuff. Here are some outputs I get in the console:

Note: This was after updating my local pubspec.yaml to allow for newer versions.

/mnt/DataAndStuff/Projects/nexus main* ≡
❯ dart run build_runner watch --delete-conflicting-outputs
Building package executable... (1.0s)
Built build_runner:build_runner.
30s compiling builders/aot                                                                                                                                                                    
5s freezed on 141 inputs: 51 output, 90 no-op; spent 3s analyzing                                                                                                                             
10s json_serializable on 282 inputs: 90 skipped, 48 output, 144 no-op; spent 8s analyzing, 1s resolving                                                                                       
0s source_gen:combining_builder on 282 inputs: 90 skipped, 48 output, 144 no-op                                                                                                               
                                                                                                                                                                                              
build_runner                                                                                                                                                                                  
W These options have been removed and were ignored: --delete-conflicting-outputs                                                                                                              
W Ignoring options for unknown builder `code_assets:code_assets` in target `nexus:nexus`.                                                                                                     
W SDK language version 3.12.0 is newer than `analyzer` language version 3.11.0. Run `flutter packages upgrade`. 
/mnt/DataAndStuff/Projects/nexus main* ≡
❯ flutter packages upgrade
Resolving dependencies... (2.1s)
Downloading packages... 
  _fe_analyzer_shared 92.0.0 (100.0.0 available)
  analysis_server_plugin 0.3.4 (0.3.15 available)
  analyzer 9.0.0 (13.0.0 available)
  analyzer_buffer 0.3.0 (0.3.2 available)
  analyzer_plugin 0.13.11 (0.14.9 available)
  cli_util 0.4.2 (0.5.1 available)
  dart_style 3.1.3 (3.1.9 available)
  dbus 0.7.12 (0.7.13 available)
  get_x_storage 0.0.9 (0.1.0 available)
  image 4.8.0 (4.9.0 available)
+ jni 1.0.0
+ jni_flutter 1.0.1
  json_annotation 4.11.0 (4.12.0 available)
  json_serializable 6.13.0 (6.14.0 available)
! linkify 5.0.0 from git https://github.com/appelladev/linkify at e99002 (overridden)
  matcher 0.12.19 (0.12.20 available)
  meta 1.18.0 (1.18.2 available)
  package_info_plus 9.0.1 (10.1.0 available)
  package_info_plus_platform_interface 3.2.1 (4.1.0 available)
> path_provider_android 2.3.1 (was 2.2.23)
  riverpod_analyzer_utils 1.0.0-dev.9 (1.0.0-dev.10 available)
  test 1.31.0 (1.31.1 available)
  test_api 0.7.11 (0.7.12 available)
  test_core 0.6.17 (0.6.18 available)
  vector_math 2.2.0 (2.3.0 available)
  wakelock_plus 1.5.2 (1.6.1 available)
  win32 5.15.0 (6.3.0 available)
  xml 6.6.1 (7.0.1 available)
Changed 3 dependencies!
24 packages have newer versions incompatible with dependency constraints.
Try `flutter pub outdated` for more information.

Here is a specific problem I ran into:

2026-05-29T11:12:17.824+02:00 INF Initialization complete
2026-05-29T11:12:17.824+02:00 INF Sending initial state to client
Handling client_state...
Finished handling client_state...
Handling sync_status...
Finished handling sync_status...
Handling client_state...
Finished handling client_state...
unhandled element <sodipodi:namedview/>; Picture key: Svg loader
dynamic_color: Accent color detected.
Unhandled exception:
Null check operator used on a null value
#0      new CodeConfig._fromJson (package:code_assets/src/code_assets/config.dart:52:67)
#1      HookConfigCodeConfig.code (package:code_assets/src/code_assets/config.dart:21:37)
#2      main.<anonymous closure> (file:///mnt/DataAndStuff/Projects/nexus/hook/build.dart:6:35)
#3      build (package:hooks/src/api/build_and_link.dart:191:18)
#4      main (file:///mnt/DataAndStuff/Projects/nexus/hook/build.dart:5:41)
#5      _delayEntrypointInvocation.<anonymous closure> (dart:isolate-patch/isolate_patch.dart:311:33)
#6      _RawReceivePort._handleMessage (dart:isolate-patch/isolate_patch.dart:192:12)


  Building assets for package:nexus failed.
  build.dart returned with exit code: 255.
  To reproduce run:
  /mnt/DataAndStuff/flutter/bin/cache/dart-sdk/bin/dart --packages=/mnt/DataAndStuff/Projects/nexus/.dart_tool/package_config.json
  /mnt/DataAndStuff/Projects/nexus/.dart_tool/hooks_runner/nexus/337ce265dc/hook.dill --config=/mnt/DataAndStuff/Projects/nexus/.dart_tool/hooks_runner/nexus/337ce265dc/input.json
  stderr:
  Unhandled exception:
Null check operator used on a null value
#0      new CodeConfig._fromJson (package:code_assets/src/code_assets/config.dart:52:67)
#1      HookConfigCodeConfig.code (package:code_assets/src/code_assets/config.dart:21:37)
#2      main.<anonymous closure> (file:///mnt/DataAndStuff/Projects/nexus/hook/build.dart:6:35)
#3      build (package:hooks/src/api/build_and_link.dart:191:18)
#4      main (file:///mnt/DataAndStuff/Projects/nexus/hook/build.dart:5:41)
#5      _delayEntrypointInvocation.<anonymous closure> (dart:isolate-patch/isolate_patch.dart:311:33)
#6      _RawReceivePort._handleMessage (dart:isolate-patch/isolate_patch.dart:192:12)

  stdout:



Building native assets failed. See the logs for more details.

It seems the project heavily relies on "pinned" versions of dependencies. I now had trouble correctly building the nexus client especially with aot stuff. Here are some outputs I get in the console: **Note: This was after updating my local pubspec.yaml to allow for newer versions.** ``` /mnt/DataAndStuff/Projects/nexus main* ≡ ❯ dart run build_runner watch --delete-conflicting-outputs Building package executable... (1.0s) Built build_runner:build_runner. 30s compiling builders/aot 5s freezed on 141 inputs: 51 output, 90 no-op; spent 3s analyzing 10s json_serializable on 282 inputs: 90 skipped, 48 output, 144 no-op; spent 8s analyzing, 1s resolving 0s source_gen:combining_builder on 282 inputs: 90 skipped, 48 output, 144 no-op build_runner W These options have been removed and were ignored: --delete-conflicting-outputs W Ignoring options for unknown builder `code_assets:code_assets` in target `nexus:nexus`. W SDK language version 3.12.0 is newer than `analyzer` language version 3.11.0. Run `flutter packages upgrade`. ``` ``` /mnt/DataAndStuff/Projects/nexus main* ≡ ❯ flutter packages upgrade Resolving dependencies... (2.1s) Downloading packages... _fe_analyzer_shared 92.0.0 (100.0.0 available) analysis_server_plugin 0.3.4 (0.3.15 available) analyzer 9.0.0 (13.0.0 available) analyzer_buffer 0.3.0 (0.3.2 available) analyzer_plugin 0.13.11 (0.14.9 available) cli_util 0.4.2 (0.5.1 available) dart_style 3.1.3 (3.1.9 available) dbus 0.7.12 (0.7.13 available) get_x_storage 0.0.9 (0.1.0 available) image 4.8.0 (4.9.0 available) + jni 1.0.0 + jni_flutter 1.0.1 json_annotation 4.11.0 (4.12.0 available) json_serializable 6.13.0 (6.14.0 available) ! linkify 5.0.0 from git https://github.com/appelladev/linkify at e99002 (overridden) matcher 0.12.19 (0.12.20 available) meta 1.18.0 (1.18.2 available) package_info_plus 9.0.1 (10.1.0 available) package_info_plus_platform_interface 3.2.1 (4.1.0 available) > path_provider_android 2.3.1 (was 2.2.23) riverpod_analyzer_utils 1.0.0-dev.9 (1.0.0-dev.10 available) test 1.31.0 (1.31.1 available) test_api 0.7.11 (0.7.12 available) test_core 0.6.17 (0.6.18 available) vector_math 2.2.0 (2.3.0 available) wakelock_plus 1.5.2 (1.6.1 available) win32 5.15.0 (6.3.0 available) xml 6.6.1 (7.0.1 available) Changed 3 dependencies! 24 packages have newer versions incompatible with dependency constraints. Try `flutter pub outdated` for more information. ``` **_Here is a specific problem I ran into:_** ``` 2026-05-29T11:12:17.824+02:00 INF Initialization complete 2026-05-29T11:12:17.824+02:00 INF Sending initial state to client Handling client_state... Finished handling client_state... Handling sync_status... Finished handling sync_status... Handling client_state... Finished handling client_state... unhandled element <sodipodi:namedview/>; Picture key: Svg loader dynamic_color: Accent color detected. Unhandled exception: Null check operator used on a null value #0 new CodeConfig._fromJson (package:code_assets/src/code_assets/config.dart:52:67) #1 HookConfigCodeConfig.code (package:code_assets/src/code_assets/config.dart:21:37) #2 main.<anonymous closure> (file:///mnt/DataAndStuff/Projects/nexus/hook/build.dart:6:35) #3 build (package:hooks/src/api/build_and_link.dart:191:18) #4 main (file:///mnt/DataAndStuff/Projects/nexus/hook/build.dart:5:41) #5 _delayEntrypointInvocation.<anonymous closure> (dart:isolate-patch/isolate_patch.dart:311:33) #6 _RawReceivePort._handleMessage (dart:isolate-patch/isolate_patch.dart:192:12) Building assets for package:nexus failed. build.dart returned with exit code: 255. To reproduce run: /mnt/DataAndStuff/flutter/bin/cache/dart-sdk/bin/dart --packages=/mnt/DataAndStuff/Projects/nexus/.dart_tool/package_config.json /mnt/DataAndStuff/Projects/nexus/.dart_tool/hooks_runner/nexus/337ce265dc/hook.dill --config=/mnt/DataAndStuff/Projects/nexus/.dart_tool/hooks_runner/nexus/337ce265dc/input.json stderr: Unhandled exception: Null check operator used on a null value #0 new CodeConfig._fromJson (package:code_assets/src/code_assets/config.dart:52:67) #1 HookConfigCodeConfig.code (package:code_assets/src/code_assets/config.dart:21:37) #2 main.<anonymous closure> (file:///mnt/DataAndStuff/Projects/nexus/hook/build.dart:6:35) #3 build (package:hooks/src/api/build_and_link.dart:191:18) #4 main (file:///mnt/DataAndStuff/Projects/nexus/hook/build.dart:5:41) #5 _delayEntrypointInvocation.<anonymous closure> (dart:isolate-patch/isolate_patch.dart:311:33) #6 _RawReceivePort._handleMessage (dart:isolate-patch/isolate_patch.dart:192:12) stdout: Building native assets failed. See the logs for more details. ```
Author
Contributor

Here is some more info:

/mnt/DataAndStuff/Projects/nexus main* ≡
❯ flutter pub outdated
Showing outdated packages.
[*] indicates versions that are not the latest available.

Package Name                          Current              Upgradable           Resolvable           Latest        

direct dependencies:                 
json_annotation                       *4.11.0              *4.11.0              *4.11.0              4.12.0        
linkify                               *5.0.0 (overridden)  *5.0.0 (overridden)  *5.0.0 (overridden)  5.0.0         

dev_dependencies:                    
json_serializable                     *6.13.0              *6.13.0              *6.13.0              6.14.0        

transitive dependencies:             
_fe_analyzer_shared                   *92.0.0              *92.0.0              *92.0.0              100.0.0       
analyzer                              *9.0.0               *9.0.0               *9.0.0               13.0.0        
cli_util                              *0.4.2               *0.4.2               *0.4.2               0.5.1         
dart_style                            *3.1.3               *3.1.3               *3.1.3               3.1.9         
dbus                                  *0.7.12              *0.7.12              *0.7.12              0.7.13        
get_x_storage                         *0.0.9               *0.0.9               *0.0.9               0.1.0         
image                                 *4.8.0               *4.8.0               *4.8.0               4.9.0         
matcher                               *0.12.19             *0.12.19             *0.12.19             0.12.20       
meta                                  *1.18.0              *1.18.0              *1.18.0              1.18.2        
package_info_plus                     *9.0.1               *9.0.1               *9.0.1               10.1.0        
package_info_plus_platform_interface  *3.2.1               *3.2.1               *3.2.1               4.1.0         
test                                  *1.31.0              *1.31.0              *1.31.0              1.31.1        
test_api                              *0.7.11              *0.7.11              *0.7.11              0.7.12        
test_core                             *0.6.17              *0.6.17              *0.6.17              0.6.18        
vector_math                           *2.2.0               *2.2.0               *2.2.0               2.3.0         
wakelock_plus                         *1.5.2               *1.5.2               *1.5.2               1.6.1         
win32                                 *5.15.0              *5.15.0              *5.15.0              6.3.0         
xml                                   *6.6.1               *6.6.1               *6.6.1               7.0.1         

transitive dev_dependencies:         
analysis_server_plugin                *0.3.4               *0.3.4               *0.3.4               0.3.15        
analyzer_buffer                       *0.3.0               *0.3.0               *0.3.0               0.3.2         
analyzer_plugin                       *0.13.11             *0.13.11             *0.13.11             0.14.9        
riverpod_analyzer_utils               *1.0.0-dev.9         *1.0.0-dev.9         *1.0.0-dev.9         1.0.0-dev.10  
You are already using the newest resolvable versions listed in the 'Resolvable' column.
Newer versions, listed in 'Latest', may not be mutually compatible.
### Here is some more info: ``` /mnt/DataAndStuff/Projects/nexus main* ≡ ❯ flutter pub outdated Showing outdated packages. [*] indicates versions that are not the latest available. Package Name Current Upgradable Resolvable Latest direct dependencies: json_annotation *4.11.0 *4.11.0 *4.11.0 4.12.0 linkify *5.0.0 (overridden) *5.0.0 (overridden) *5.0.0 (overridden) 5.0.0 dev_dependencies: json_serializable *6.13.0 *6.13.0 *6.13.0 6.14.0 transitive dependencies: _fe_analyzer_shared *92.0.0 *92.0.0 *92.0.0 100.0.0 analyzer *9.0.0 *9.0.0 *9.0.0 13.0.0 cli_util *0.4.2 *0.4.2 *0.4.2 0.5.1 dart_style *3.1.3 *3.1.3 *3.1.3 3.1.9 dbus *0.7.12 *0.7.12 *0.7.12 0.7.13 get_x_storage *0.0.9 *0.0.9 *0.0.9 0.1.0 image *4.8.0 *4.8.0 *4.8.0 4.9.0 matcher *0.12.19 *0.12.19 *0.12.19 0.12.20 meta *1.18.0 *1.18.0 *1.18.0 1.18.2 package_info_plus *9.0.1 *9.0.1 *9.0.1 10.1.0 package_info_plus_platform_interface *3.2.1 *3.2.1 *3.2.1 4.1.0 test *1.31.0 *1.31.0 *1.31.0 1.31.1 test_api *0.7.11 *0.7.11 *0.7.11 0.7.12 test_core *0.6.17 *0.6.17 *0.6.17 0.6.18 vector_math *2.2.0 *2.2.0 *2.2.0 2.3.0 wakelock_plus *1.5.2 *1.5.2 *1.5.2 1.6.1 win32 *5.15.0 *5.15.0 *5.15.0 6.3.0 xml *6.6.1 *6.6.1 *6.6.1 7.0.1 transitive dev_dependencies: analysis_server_plugin *0.3.4 *0.3.4 *0.3.4 0.3.15 analyzer_buffer *0.3.0 *0.3.0 *0.3.0 0.3.2 analyzer_plugin *0.13.11 *0.13.11 *0.13.11 0.14.9 riverpod_analyzer_utils *1.0.0-dev.9 *1.0.0-dev.9 *1.0.0-dev.9 1.0.0-dev.10 You are already using the newest resolvable versions listed in the 'Resolvable' column. Newer versions, listed in 'Latest', may not be mutually compatible. ```
Owner

None of these are a problem except for the null check one, which I can look into.

None of these are a problem except for the null check one, which I can look into.
Owner

Can you please revert any changes you made to your pubspec and lockfile, then flutter pub get again, and let me know if you have any issues running then? The error that you had is related to changes in the code_asset library, I believe.

Can you please revert any changes you made to your pubspec and lockfile, then `flutter pub get` again, and let me know if you have any issues running then? The error that you had is related to changes in the code_asset library, I believe.
Owner

Closing this to debug further in the Matrix room, as I believe its not an issue with the app.

Closing this to debug further in the Matrix room, as I believe its not an issue with the app.
Sign in to join this conversation.
No milestone
No project
No assignees
2 participants
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
Nexus/nexus#31
No description provided.