The version number of perspective-client should track with the version of Ignition. So that version number would have been for 8.1.16, and Ignition 8.1.33 will have version 2.1.33 of perspective-client.
I'm told the packages will show up in the browse if you try to resolve it, they just don't show up in the browse until someone does that. The team has made sure that versions 31-33 are available.
Their next priority is making sure the automatic publishing happens, last priority will be getting older packages up.
Are you going by just browsing or did you try to resolve the packages? If you tried to resolve them, can you post how you did that? That will help us troubleshoot.
Here's what I did, I don't know if it's "resolve packages".
I updated the Client and Designer .json package files and then performed an npm install in the web folder.
I believe that this issue has been resolved (after far more time than I'd like to admit). Just to confirm - you're not crazy, was an issue on our end that was non-obvious, but think the repository should be resolving available versions correctly now. I was able to build against the 8.1.33 version (perspective module package versions 2.1.33) successfully on a clean system with no cached dependencies. Please let me know if you're seeing the same result for this version.
We're going to need to do some manual repopulations of older packages. So for those that have a need for historic versions, let us know which versions you're looking for and we'll try to prioritize redeploying them to public availability.
It looks much better. Package 2.1.33 is detected, but does not seem to be compatible with Java 11.
Cause 2: org.gradle.internal.resolve.ModuleVersionResolveException: Could not resolve com.inductiveautomation.perspective:perspective-common:2.1.33.
Required by:
project :common > com.inductiveautomation.ignitionsdk:perspective-common:8.1.33
Caused by: org.gradle.internal.component.NoMatchingConfigurationSelectionException: No matching variant of com.inductiveautomation.perspective:perspective-common:2.1.33 was found. The consumer was configured to find an API of a libr
ary compatible with Java 11, preferably in the form of class files, preferably optimized for standard JVMs, and its dependencies declared externally but:
- Variant 'apiElements' capability com.inductiveautomation.perspective:perspective-common:2.1.33 declares an API of a library, packaged as a jar, and its dependencies declared externally:
- Incompatible because this component declares a component compatible with Java 17 and the consumer needed a component compatible with Java 11
- Other compatible attribute:
- Doesn't say anything about its target Java environment (preferred optimized for standard JVMs)
- Variant 'javadocElements' capability com.inductiveautomation.perspective:perspective-common:2.1.33 declares a runtime of a component, and its dependencies declared externally:
- Incompatible because this component declares documentation and the consumer needed a library
- Other compatible attributes:
- Doesn't say anything about its target Java environment (preferred optimized for standard JVMs)
- Doesn't say anything about its target Java version (required compatibility with Java 11)
- Doesn't say anything about its elements (required them preferably in the form of class files)
- Variant 'runtimeElements' capability com.inductiveautomation.perspective:perspective-common:2.1.33 declares a runtime of a library, packaged as a jar, and its dependencies declared externally:
- Incompatible because this component declares a component compatible with Java 17 and the consumer needed a component compatible with Java 11
- Other compatible attribute:
- Doesn't say anything about its target Java environment (preferred optimized for standard JVMs)
So I updated Java, but this time I came across an unexpected dependency with the @inductiveautomation/perspective-drawing-common package.
yarn install v1.22.18
[1/4] Resolving packages...
info Visit https://yarnpkg.com/en/docs/cli/install for documentation about this command.
error Couldn't find package "@inductiveautomation/perspective-drawing-common@workspace:*" required by "@inductiveautomation/perspective-designer@^2.1.33" on the "npm" registry.
Error: Couldn't find any versions for "@inductiveautomation/perspective-client" that matches "workspace:*"
at MessageError.ExtendableBuiltin (C:\Users\Enzo\source\ultime\module-aiotools\web\.gradle\yarn\yarn-v1.22.18\node_modules\yarn\lib\cli.js:721:66)
at new MessageError (C:\Users\Enzo\source\ultime\module-aiotools\web\.gradle\yarn\yarn-v1.22.18\node_modules\yarn\lib\cli.js:750:123)
at Function.<anonymous> (C:\Users\Enzo\source\ultime\module-aiotools\web\.gradle\yarn\yarn-v1.22.18\node_modules\yarn\lib\cli.js:50343:13)
at Generator.next (<anonymous>)
at step (C:\Users\Enzo\source\ultime\module-aiotools\web\.gradle\yarn\yarn-v1.22.18\node_modules\yarn\lib\cli.js:310:30)
at C:\Users\Enzo\source\ultime\module-aiotools\web\.gradle\yarn\yarn-v1.22.18\node_modules\yarn\lib\cli.js:321:13
at processTicksAndRejections (node:internal/process/task_queues:96:5)
Just as a quick followup - I confirmed with the perspective team that the drawing-components-common should be published as part of the public api, in support of designer-scope functionality.
We'll get that deployed and update this thread. Thanks for your ongoing patience. This thread has helped us identify some improvements we can make in the release process to make sure we're catching this sort of issue much earlier (ideally before any of you do!).
Will try to get this package deployed today by EoD PST.
Ok, @inductiveautomation/perspective-drawing-common 2.1.33 has been published to nexus. Let me know if there are any remaining issues. We've got a number of tickets opened to improve a number of elements relating to how we publish and validate SDK dependencies. Can't promise perfection, but we'll definitely get to work on improvements.
Thanks again to everyone for patience and ongoing reporting!
It's perfect, everything works for me!
Thanks to all your teams!
I tried to look for some previews in the perspective-drawing-common package, but I didn't find anything intriguing.
Looking forward to discovering more!
Need some updates to dependencies required for this package. 2.1.37 requires react 18 but it has dependencies that are 3 years old that require older versions of react and react-dom. For example
One dependency is react-resize-detector@6.7.2 which requires react 16 or 17
We appreciate your concern. Usually, a message stating incorrect React peer dependency version isn't too much of a concern, since React is great at maintaining backwards compatibility. Unfortunately, some dependencies, react-resize-detector in particular, cannot be upgraded due to dropped browser support. This would mean that Perspective would also have to drop browser support in 8.1. Instead, we are reserving these kind of upgrades for the next major release, which should be happening very soon.