Comments (7)
This feature has been added to master, though it may need some fix.
from merlin.
Nice. I have a local build of merlin going now -- I'll update and try it out. Is this enabled by default in the emacs mode?
from merlin.
I can't tell anything about emacs support, though it should work out-of-the-box I think. I coded it quickly as a PoC, I will take more time to test it this we.
from merlin.
In this regard, I have a loose suggestion: if you have features that can be enabled via a command line flag to merlin, there should be an obvious mapping between the command line flag to merlin and what one needs to do to enable it via emacs. Maybe this is as simple as having an emacs mode variable called "merlin-command-line-flags". That way there isnt always an this issue of updating the emacs mode to toggle some command line flags to merlin.
from merlin.
It is already implemented in master since 1.2 I believe.
Use M-x merlin-process-add-flag yourflag, and then restart the
process with C-c r (or merlin-restart-process).
@def-lkb, could you update the variable merlin--flags that holds the
list of possible flags in merlin.el when you add a flag ? (or ping me)
There is no mechanism for default flags though setting
merlin--current-flags might do the job for the moment.
On jeu. 15/aoรปt 2013 (17:13), Roshan James wrote:
In this regard, I have a loose suggestion: if you have features that can be enabled via a command line flag to merlin, there should be an obvious mapping between the command line flag to merlin and what one needs to do to enable it via emacs. Maybe this is as simple as having an emacs mode variable called "merlin-command-line-flags". That way there isnt always an this issue of updating the emacs mode to toggle some command line flags to merlin.
Reply to this email directly or view it on GitHub:
#59 (comment)
from merlin.
I tried to verify if merlin will auto-complete from .ml files in the current directory. It does not seem to work. I am at revision fef38bd.
In the directory I have three files called a.ml, b.ml and f.ml. When editing f.ml I type A.{M-/} and I see nothing. Note that the file a.ml is not compiled yet. b.ml is compiled and has a b.cmi. When I type B.{M-/} it does autocomplete.
In the common case, such as when working on a library, there might be many .ml files in a dir which maynot be compiling as yet. They may not have .cmi files. However it would be nice to generate auto-completion for them.
I tried to force the parsing of source files by creating the following .merlin file in the dir:
SRC .
REC
This seemed to have no effect -- i.e. A.{M-/} still did not auto-complete. I restarted the merlin process.
from merlin.
Now that experimental has been merged in master branch, this bug should be fixed.
Can you confirm?
from merlin.
Related Issues (20)
- `complete-prefix` short-circuits too eagerly when deciding whether to return only record field names
- Implement Enhanced Hover Feature for PPXs in Merlin
- Jump to incorrect module HOT 2
- Make `complete-prefix` smarter about field projection expressions passed as `-prefix`
- string litteral with an extension node is wrongly marked as being unterminated HOT 3
- Hover of a mutually recursive type can cause a stack overflow HOT 4
- Can't go-to-definition in generated file HOT 13
- Incorrect module type from `type-enclosing` HOT 1
- Optional argument include by `case-analysis` HOT 1
- Failed to install merlin with opam with gcc14 HOT 1
- Merlin-lib: return the description of a warning based on its identifier HOT 1
- Tracker: project-wide occurrences
- `case-analysis` fails to load module HOT 2
- No config found for file .ocamlinit. Try calling 'dune build'. HOT 3
- Wildcard constructor patterns display an incorrect type on hover HOT 5
- unknown flag `-unboxed-types` HOT 1
- Jump to definition with let-punning HOT 1
- Exception Not_found in merlin locate HOT 1
- Permissions and deletion of temporary files created by preprocessors (pp) HOT 1
- The request for documentation of function argument gives documentation for whole function
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. ๐๐๐
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google โค๏ธ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from merlin.