Skip to content
This repository was archived by the owner on Dec 15, 2022. It is now read-only.
This repository was archived by the owner on Dec 15, 2022. It is now read-only.

Refuse creating links to junctions (Windows) unsupported by Atom #682

@ggreif

Description

@ggreif

Prerequisites

Description

Atom won't honor junctions to SMB shares on windows, but apm will create them, without warning.
See atom/atom#13492. Below steps come from that issue.

In my opinion apm should either refuse creating such "illegal" softlinks (junctions) with an error, or output a big fat warning.

Description: Original

I want to start developing a new derived package from a known one. I run atom on windows. When linking my package folder (which resides in my home dir in linux and is mounted on a SAMBA share in windows), the .atom/dev/packages hierarchy in the atom pane remains empty (also in developer mode).

Steps to Reproduce

  1. in windows cmd I go to my mounted folder: C:\Users\ggreif>pushd Z:\ide-haskell-repl

  2. I link it to atom:

Z:\ide-haskell-repl>apm link --dev
INFO: Could not find files for the given pattern(s).
The system cannot find the file specified.
C:\Users\ggreif\.atom\dev\packages\ide-haskell-repl -> Z:\ide-haskell-repl
  1. I start in dev mode: Z:\ide-haskell-repl>atom -d
  2. I open up the "Settings" pane and hit the Open Config Folder button
  3. I observe: the dev/packages hierarchy is empty.
  4. I confirm that the folder is indeed linked:
Z:\ide-haskell-repl>popd
C:\Users\ggreif>dir .atom\dev
 Volume in drive C is System
 Volume Serial Number is XXXXXXX

 Directory of C:\Users\ggreif\.atom\dev

30.11.2016  17:04    <DIR>          .
30.11.2016  17:04    <DIR>          ..
22.12.2016  14:15    <DIR>          packages
               0 File(s)              0 bytes
               3 Dir(s)  231.205.515.264 bytes free

C:\Users\ggreif>dir .atom\dev\packages
 Volume in drive C is System
 Volume Serial Number is XXXXXXX

 Directory of C:\Users\ggreif\.atom\dev\packages

22.12.2016  14:15    <DIR>          .
22.12.2016  14:15    <DIR>          ..
22.12.2016  14:15    <JUNCTION>     ide-haskell-repl [Z:\ide-haskell-repl]
               0 File(s)              0 bytes
               3 Dir(s)  231.205.515.264 bytes free

Expected behavior: I'd expect that my linked package shows up under dev/packages
Actual behavior: It doesn't

Reproduces how often: Happens always I try it.

Versions

OS: Windows 7 Professional

Z:\hyper-haskell>atom --version

Atom : 1.12.7
Electron: 1.3.13
Chrome : 52.0.2743.82
Node : 6.5.0

Z:\hyper-haskell>apm --version
INFO: Could not find files for the given pattern(s).
The system cannot find the file specified.
apm 1.12.9
npm 3.10.5
node 4.4.5
python
git
visual studio

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions