{"record":{"id":"18737f7fc5ab303c","repo":"yorukot/superfile","slug":"cannot-access-location-s","errorCode":null,"errorMessage":"cannot access location : %s","messagePattern":"cannot access location : (.+?)","errorType":"exception","errorClass":null,"httpStatus":null,"severity":"error","filePath":"src/internal/ui/filemodel/update.go","lineNumber":21,"sourceCode":"import (\n\t\"fmt\"\n\t\"log/slog\"\n\t\"os\"\n\n\ttea \"charm.land/bubbletea/v2\"\n\n\t\"github.com/yorukot/superfile/src/internal/common\"\n\t\"github.com/yorukot/superfile/src/internal/ui/filepanel\"\n\t\"github.com/yorukot/superfile/src/internal/ui/preview\"\n)\n\nfunc (m *Model) CreateNewFilePanel(location string) (tea.Cmd, error) {\n\tif m.PanelCount() >= m.MaxFilePanel {\n\t\treturn nil, ErrMaximumPanelCount\n\t}\n\n\tif _, err := os.Stat(location); err != nil {\n\t\treturn nil, fmt.Errorf(\"cannot access location : %s\", location)\n\t}\n\n\tm.FilePanels = append(m.FilePanels, filepanel.New(\n\t\tlocation, false, \"\", m.GetFocusedFilePanel().SortKind,\n\t\tm.GetFocusedFilePanel().SortReversed))\n\n\tnewPanelIndex := m.PanelCount() - 1\n\n\tm.FilePanels[m.FocusedPanelIndex].IsFocused = false\n\tm.FilePanels[newPanelIndex].IsFocused = true\n\tm.FilePanels[newPanelIndex].SetHeight(m.Height)\n\tm.FocusedPanelIndex = newPanelIndex\n\n\tm.updateChildComponentWidth()\n\treturn m.ensurePreviewDimensionsSync(), nil\n}\n\nfunc (m *Model) CloseFilePanel() (tea.Cmd, error) {","sourceCodeStart":3,"sourceCodeEnd":39,"githubUrl":"https://github.com/yorukot/superfile/blob/b72f550bc6e75913f48eb49fdd258e1a2df2fe88/src/internal/ui/filemodel/update.go#L3-L39","documentation":"Error \"cannot access location : %s\" thrown in yorukot/superfile.","triggerScenarios":"Thrown at src/internal/ui/filemodel/update.go:21 when the library encounters an invalid state.","commonSituations":"See trigger scenarios.","solutions":[],"exampleFix":null,"handlingStrategy":null,"validationCode":null,"typeGuard":null,"tryCatchPattern":null,"preventionTips":[],"tags":[],"backgroundTag":null,"analyzedSha":"b72f550bc6e75913f48eb49fdd258e1a2df2fe88","analyzedAt":"2026-09-01T04:38:08.254Z","contentChangedAt":null,"schemaVersion":2},"datasetVersion":"2026-09-08T10:18:20.063Z"}