Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Plugin is not registering externally created files and directories #24

Open
dschwen opened this issue Dec 29, 2017 · 4 comments
Open

Plugin is not registering externally created files and directories #24

dschwen opened this issue Dec 29, 2017 · 4 comments
Assignees

Comments

@dschwen
Copy link
Owner

dschwen commented Dec 29, 2017

Reported by @KuddLim in #22 :

  1. make a directory and place some headers and sources with terminal. (or anything except atom)
  2. run atom and open directory created in step 1.
  3. open a file and press Alt-o. It works well at this step.
  4. make another directory and place some headers and sources with terminal. (like step 1)
  5. open a file created in step 4
  6. press Alt-o. It is not working at this step.

I guess swithMap is built when atom project (folder) is loaded. So, when I open some file outside this directory, I cannot switch header/source.

@dschwen dschwen self-assigned this Dec 29, 2017
@dschwen
Copy link
Owner Author

dschwen commented Dec 29, 2017

I'm exactly following those steps, but the files all register and switching works @KuddLim. Can you check if this is still an issue with 0.27.1

@KuddLim
Copy link

KuddLim commented Jan 2, 2018

Still not working with 0.27.1.

My test scenario is:

  1. Place bunch of headers and source files in ~/working
  2. Open ~/working with atom.
  3. Open header or source file and package works correctly. => WORKING
  4. Open ~/shs_test/test.cpp. (which is not in current atom directory)
  5. Press Alt-o and see if package works correctly. => NOT WORKING

I am not familiar with coffeescript, so I placed some notification codes in lib/switch-header-source.coffee.

In function "switch: (step) ->"

  • "key" is "test"
  • result of @switchMap.get key is undefined. (value of key is "test") So, codes within if block does not run.

How can I see all items in @SwitchMap in coffeescript?

@dschwen
Copy link
Owner Author

dschwen commented Jan 2, 2018 via email

@KuddLim
Copy link

KuddLim commented Jan 2, 2018

Yes, that is important to me.
I don't think every package user uses atom directory based.

Could you please add feature switching files in out-of-directory?
(For now, I use 0.22 from github and manually modify version number to higher one in package.json)

Thank you.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants