Skip to content

graffle CLI not working on windows: Absolute paths must start with / #1481

Description

@P4sca1

graffle version 8.0.0-next.223

PS E:\ips-hosting\frontend> pnpm graffle
file:///E:/ips-hosting/frontend/node_modules/.pnpm/effect@3.19.12/node_modules/effect/dist/esm/ParseResult.js:241
export const parseError = issue => new ParseError({
                                   ^

ParseError: (string <-> (FsPathAbsDir (Encoded side) <-> FsPathAbsDir))
└─ Transformation process failure
   └─ Absolute paths must start with /
    at parseError (file:///E:/ips-hosting/frontend/node_modules/.pnpm/effect@3.19.12/node_modules/effect/dist/esm/ParseResult.js:241:36)
    at file:///E:/ips-hosting/frontend/node_modules/.pnpm/effect@3.19.12/node_modules/effect/dist/esm/Either.js:365:9
    at Module.<anonymous> (file:///E:/ips-hosting/frontend/node_modules/.pnpm/effect@3.19.12/node_modules/effect/dist/esm/Function.js:98:18)
    at file:///E:/ips-hosting/frontend/node_modules/.pnpm/effect@3.19.12/node_modules/effect/dist/esm/ParseResult.js:340:45
    at Module.fromString (file:///E:/ips-hosting/frontend/node_modules/.pnpm/@wollybeard+kit@0.107.0_@ef_a480d3c32b81882308ddbd6c20492f7a/node_modules/@wollybeard/kit/build/fs/path/AbsDir/__.js:72:32)
    at file:///E:/ips-hosting/frontend/node_modules/.pnpm/@wollybeard+kit@0.107.0_@ef_a480d3c32b81882308ddbd6c20492f7a/node_modules/@wollybeard/kit/build/env/live.node.js:14:25
    at ModuleJob.run (node:internal/modules/esm/module_job:271:25)
    at async onImport.tracePromise.__proto__ (node:internal/modules/esm/loader:578:26)
    at async asyncRunEntryPointWithESMLoader (node:internal/modules/run_main:116:5) {
  issue: Transformation {
    ast: Transformation {
      from: StringKeyword {
        annotations: {
          [Symbol(effect/annotation/Title)]: 'string',
          [Symbol(effect/annotation/Description)]: 'a string'
        },
        _tag: 'StringKeyword'
      },
      to: Transformation {
        from: TypeLiteral {
          annotations: {
            [Symbol(effect/annotation/AutoTitle)]: 'FsPathAbsDir (Encoded side)'
          },
          _tag: 'TypeLiteral',
          propertySignatures: [ [PropertySignature], [PropertySignature] ],
          indexSignatures: []
        },
        to: Declaration {
          typeParameters: [ [TypeLiteral] ],
          decodeUnknown: [Function (anonymous)],
          encodeUnknown: [Function (anonymous)],
          annotations: {
            [Symbol(effect/annotation/Surrogate)]: [TypeLiteral],
            [Symbol(effect/annotation/Identifier)]: 'FsPathAbsDir',
            [Symbol(effect/annotation/Arbitrary)]: [Function: arbitrary],
            [Symbol(effect/annotation/Pretty)]: [Function: pretty],
            [Symbol(effect/annotation/Equivalence)]: [Function: identity]
          },
          _tag: 'Declaration'
        },
        transformation: FinalTransformation {
          decode: [Function: decode],
          encode: [Function: encode],
          _tag: 'FinalTransformation'
        },
        annotations: {
          [Symbol(effect/annotation/Surrogate)]: TypeLiteral {
            annotations: {},
            _tag: 'TypeLiteral',
            propertySignatures: [Array],
            indexSignatures: []
          }
        },
        _tag: 'Transformation'
      },
      transformation: FinalTransformation {
        decode: [Function: decode],
        encode: [Function: encode],
        _tag: 'FinalTransformation'
      },
      annotations: {},
      _tag: 'Transformation'
    },
    actual: 'E:\\ips-hosting\\frontend',
    kind: 'Transformation',
    issue: Type {
      ast: Transformation {
        from: StringKeyword {
          annotations: {
            [Symbol(effect/annotation/Title)]: 'string',
            [Symbol(effect/annotation/Description)]: 'a string'
          },
          _tag: 'StringKeyword'
        },
        to: Transformation {
          from: TypeLiteral {
            annotations: [Object],
            _tag: 'TypeLiteral',
            propertySignatures: [Array],
            indexSignatures: []
          },
          to: Declaration {
            typeParameters: [Array],
            decodeUnknown: [Function (anonymous)],
            encodeUnknown: [Function (anonymous)],
            annotations: [Object],
            _tag: 'Declaration'
          },
          transformation: FinalTransformation {
            decode: [Function: decode],
            encode: [Function: encode],
            _tag: 'FinalTransformation'
          },
          annotations: { [Symbol(effect/annotation/Surrogate)]: [TypeLiteral] },
          _tag: 'Transformation'
        },
        transformation: FinalTransformation {
          decode: [Function: decode],
          encode: [Function: encode],
          _tag: 'FinalTransformation'
        },
        annotations: {},
        _tag: 'Transformation'
      },
      actual: 'E:\\ips-hosting\\frontend',
      message: 'Absolute paths must start with /',
      _tag: 'Type'
    },
    _tag: 'Transformation'
  },
  _tag: 'ParseError',
  [Symbol(effect/Schema/ParseErrorTypeId)]: Symbol(effect/Schema/ParseErrorTypeId)
}

Node.js v22.14.0

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions