atom-haskell-archive / haskell-ghc-mod

haskell-ghc-mod atom package
https://atom.io/packages/haskell-ghc-mod
MIT License
69 stars 20 forks source link

go-to definition opens non existent file #158

Closed bblfish closed 8 years ago

bblfish commented 8 years ago

I have succeded in getting most things to work using dalaing's cofun project: https://github.com/dalaing/cofun

most importantly if I leave my mouse over a definition I can see the code definition. Here is an example where it shows me the definition that is just a few lines up higher.

screenshot 2016-06-14 18 07 14

But if I use the goto to definition it will open a new file at the wrong relative URL, so it won't jump to the definition but to an empty file.

lierdakil commented 8 years ago

It might help if you specify how the relative url is "wrong" exactly. Thanks.

2016-06-14 19:10 GMT+03:00 Henry Story notifications@github.com:

I have succeded in getting most things to work using dalaing's cofun project: https://github.com/dalaing/cofun

most importantly if I leave my mouse over a definition I can see the code definition. Here is an example where it shows me the definition that is just a few lines up higher.

[image: screenshot 2016-06-14 18 07 14] https://cloud.githubusercontent.com/assets/124506/16050181/f88e3ca4-325a-11e6-82b9-4b101ce7a08f.png

But if I use the goto to definition it will open a new file at the wrong relative URL, so it won't jump to the definition but to an empty file.

— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub https://github.com/atom-haskell/haskell-ghc-mod/issues/158, or mute the thread https://github.com/notifications/unsubscribe/AG8EZuWQZOmGl5_r3irTnY-6G1ZRpw3lks5qLtKRgaJpZM4I1fn9 .

bblfish commented 8 years ago

yes. The file that is opened is /Volumes/Dev/Programming/Haskell/cofun/code/src/AdderService/Adder/Interpreter/Transformer.hs whereas the file that should be opened is /Volumes/Dev/Programming/Haskell/cofun/code/adder/src/AdderService/Adder/Interpreter/Transformer.hs what is missing is the adder directory. The root directory that contains all the projects is on my file system: /Volumes/Dev/Programming/Haskell/cofun/code/

lierdakil commented 8 years ago

v1.14.6 should hopefully fix this. If not, let me know.

2016-06-15 12:37 GMT+03:00 Henry Story notifications@github.com:

yes. The file that is opened is /Volumes/Dev/Programming/Haskell/cofun/code/src/AdderService/Adder/Interpreter/Transformer.hs whereas the file that should be opened is

/Volumes/Dev/Programming/Haskell/cofun/code/adder/src/AdderService/Adder/Interpreter/Transformer.hs The root directory that contains all the projects is on my file system: /Volumes/Dev/Programming/Haskell/cofun/code/

— You are receiving this because you commented. Reply to this email directly, view it on GitHub https://github.com/atom-haskell/haskell-ghc-mod/issues/158#issuecomment-226137567, or mute the thread https://github.com/notifications/unsubscribe/AG8EZsX0A8DXNRqlA7ndiY4tR1ewMe5bks5qL8fJgaJpZM4I1fn9 .

bblfish commented 8 years ago

yep that works now thanks!