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

codecrumbs with -i ide feature #88

Open
rluiten opened this issue Aug 19, 2019 · 8 comments
Open

codecrumbs with -i ide feature #88

rluiten opened this issue Aug 19, 2019 · 8 comments

Comments

@rluiten
Copy link

rluiten commented Aug 19, 2019

Finally go to trying this out last Friday and the navigation in vscode using -i code didnt work.

I notice today you have removed this '-i code' documenation in last few days.

This is no longer a feature?

@rluiten
Copy link
Author

rluiten commented Aug 19, 2019

Just tried it with Webstorm it isn't navigating either.

Maybe its my OS I am on Windows 10.

@Bogdan-Lyashenko
Copy link
Owner

Hi, feature is working, just need to improve on it; did you make changes to launch webstorm? Here https://www.jetbrains.com/help/webstorm/working-with-the-ide-features-from-command-line.html; so idea is to expose that command first and then put it to CLI -i param. For webstorm it’s working (I use it), for VS Code I hadn’t tried.

@rluiten
Copy link
Author

rluiten commented Aug 20, 2019

Oops, no I didn't do the webstorm setup, I'll try it.
But setting '-i code' as parameter to starting codecrumbs did not appear to work with vscode.
And code works from console on my box, i will look a bit further.

@rluiten
Copy link
Author

rluiten commented Aug 21, 2019

I have now setup webstorm to be in my path and webstorm README.md at my console starts it with a file.
However clicking on trail steps does not cause webstorm to navigate to file.
I'll run this up at home and see if i can get more information later in week I hope.

@Bogdan-Lyashenko
Copy link
Owner

Alt+click? Also try to run command you configured in terminal, just to see it works

@rluiten
Copy link
Author

rluiten commented Aug 22, 2019

I am stupid I missed the word 'command' in 'command-click' in your video in the 3 times I watched it.

So sort of having i working now though still have a problem on windows I believe.

I have WebStorm 2019.2 installed and configured to start from console by webstorm.
The following works fine from a console webstorm --line 2 README.md

This is an example project I setup to test this at home.
image

When I alt-Click on a file name it loads or switches to it in WebStorm correctly.

When I alt-Click for example on the first trail "the setup" I get the following error displayed by WebStorm.
image

Did a bit of testing with vscode using -i code navigating to files works ok.
But alt-click navigating to trails opens a new code window without loading a file
The syntax to load a file at line for code appears to be code -g src\App.tsx:3

@Bogdan-Lyashenko
Copy link
Owner

Hey @rluiten how do you run codecrumbs command initially? I can see '.\src', seems like '.' mess with path, can you try without that?

@rluiten
Copy link
Author

rluiten commented Aug 24, 2019

I launch it with this in package.json

    "crumbsdm": "codecrumbs -d src -e src/index.tsx -n cra03-test -D",

Possibly some path resolver in nodejs on windows behaves differently ?

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